configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-input-vmmouse 12.6.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<EOF
606 $*
607 EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623 then
624 break
625 fi
626 done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 :
633 else
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
637 #
638 # So, first we look for a working echo in the user's PATH.
639
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
642 IFS="$lt_save_ifs"
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$dir/echo"
648 break
649 fi
650 done
651 IFS="$lt_save_ifs"
652
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
659 echo='print -r'
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
666 export CONFIG_SHELL
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 else
669 # Try using printf.
670 echo='printf %s\n'
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # Cool, printf works
675 :
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 export CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
683 export SHELL
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
690 else
691 # maybe with a smaller string...
692 prev=:
693
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696 then
697 break
698 fi
699 prev="$cmd"
700 done
701
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 else
707 # Oops. We lost completely, so just stick with echo.
708 echo=echo
709 fi
710 fi
711 fi
712 fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 tagnames=${tagnames+${tagnames},}CXX
727
728 tagnames=${tagnames+${tagnames},}F77
729
730 exec 7<&0 </dev/null 6>&1
731
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737 #
738 # Initializations.
739 #
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
749
750 # Identity of this package.
751 PACKAGE_NAME='xf86-input-vmmouse'
752 PACKAGE_TARNAME='xf86-input-vmmouse'
753 PACKAGE_VERSION='12.6.4'
754 PACKAGE_STRING='xf86-input-vmmouse 12.6.4'
755 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
757 ac_unique_file="Makefile.am"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 # include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 # include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_subst_vars='LTLIBOBJS
795 LIBOBJS
796 ADMIN_MAN_DIR
797 DRIVER_MAN_DIR
798 MISC_MAN_DIR
799 FILE_MAN_DIR
800 LIB_MAN_DIR
801 APP_MAN_DIR
802 ADMIN_MAN_SUFFIX
803 DRIVER_MAN_SUFFIX
804 MISC_MAN_SUFFIX
805 FILE_MAN_SUFFIX
806 LIB_MAN_SUFFIX
807 APP_MAN_SUFFIX
808 XORG_LIBS
809 XORG_CFLAGS
810 PKG_CONFIG
811 HAL_FDI_DIR
812 HAL_CALLOUTS_DIR
813 HAL_BIN_DIR
814 inputdir
815 LIBTOOL
816 ac_ct_F77
817 FFLAGS
818 F77
819 CXXCPP
820 am__fastdepCXX_FALSE
821 am__fastdepCXX_TRUE
822 CXXDEPMODE
823 ac_ct_CXX
824 CXXFLAGS
825 CXX
826 CPP
827 NMEDIT
828 DSYMUTIL
829 RANLIB
830 AR
831 ECHO
832 LN_S
833 EGREP
834 GREP
835 SED
836 am__fastdepCC_FALSE
837 am__fastdepCC_TRUE
838 CCDEPMODE
839 AMDEPBACKSLASH
840 AMDEP_FALSE
841 AMDEP_TRUE
842 am__quote
843 am__include
844 DEPDIR
845 OBJEXT
846 EXEEXT
847 ac_ct_CC
848 CPPFLAGS
849 LDFLAGS
850 CFLAGS
851 CC
852 host_os
853 host_vendor
854 host_cpu
855 host
856 build_os
857 build_vendor
858 build_cpu
859 build
860 DRIVER_NAME
861 MAINT
862 MAINTAINER_MODE_FALSE
863 MAINTAINER_MODE_TRUE
864 am__untar
865 am__tar
866 AMTAR
867 am__leading_dot
868 SET_MAKE
869 AWK
870 mkdir_p
871 MKDIR_P
872 INSTALL_STRIP_PROGRAM
873 STRIP
874 install_sh
875 MAKEINFO
876 AUTOHEADER
877 AUTOMAKE
878 AUTOCONF
879 ACLOCAL
880 VERSION
881 PACKAGE
882 CYGPATH_W
883 am__isrc
884 INSTALL_DATA
885 INSTALL_SCRIPT
886 INSTALL_PROGRAM
887 target_alias
888 host_alias
889 build_alias
890 LIBS
891 ECHO_T
892 ECHO_N
893 ECHO_C
894 DEFS
895 mandir
896 localedir
897 libdir
898 psdir
899 pdfdir
900 dvidir
901 htmldir
902 infodir
903 docdir
904 oldincludedir
905 includedir
906 localstatedir
907 sharedstatedir
908 sysconfdir
909 datadir
910 datarootdir
911 libexecdir
912 sbindir
913 bindir
914 program_transform_name
915 prefix
916 exec_prefix
917 PACKAGE_BUGREPORT
918 PACKAGE_STRING
919 PACKAGE_VERSION
920 PACKAGE_TARNAME
921 PACKAGE_NAME
922 PATH_SEPARATOR
923 SHELL'
924 ac_subst_files=''
925 ac_user_opts='
926 enable_option_checking
927 enable_maintainer_mode
928 enable_static
929 enable_shared
930 enable_fast_install
931 enable_dependency_tracking
932 with_gnu_ld
933 enable_libtool_lock
934 with_pic
935 with_tags
936 with_xorg_module_dir
937 with_hal_bin_dir
938 with_hal_callouts_dir
939 with_hal_fdi_dir
940 with_release_version
941 '
942 ac_precious_vars='build_alias
943 host_alias
944 target_alias
945 CC
946 CFLAGS
947 LDFLAGS
948 LIBS
949 CPPFLAGS
950 CPP
951 CXX
952 CXXFLAGS
953 CCC
954 CXXCPP
955 F77
956 FFLAGS
957 PKG_CONFIG
958 XORG_CFLAGS
959 XORG_LIBS'
960
961
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 ac_unrecognized_opts=
966 ac_unrecognized_sep=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
983
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1001 infodir='${datarootdir}/info'
1002 htmldir='${docdir}'
1003 dvidir='${docdir}'
1004 pdfdir='${docdir}'
1005 psdir='${docdir}'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1009
1010 ac_prev=
1011 ac_dashdash=
1012 for ac_option
1013 do
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\$ac_option
1017 ac_prev=
1018 continue
1019 fi
1020
1021 case $ac_option in
1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 *) ac_optarg=yes ;;
1024 esac
1025
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1027
1028 case $ac_dashdash$ac_option in
1029 --)
1030 ac_dashdash=yes ;;
1031
1032 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 ac_prev=bindir ;;
1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035 bindir=$ac_optarg ;;
1036
1037 -build | --build | --buil | --bui | --bu)
1038 ac_prev=build_alias ;;
1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040 build_alias=$ac_optarg ;;
1041
1042 -cache-file | --cache-file | --cache-fil | --cache-fi \
1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044 ac_prev=cache_file ;;
1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047 cache_file=$ac_optarg ;;
1048
1049 --config-cache | -C)
1050 cache_file=config.cache ;;
1051
1052 -datadir | --datadir | --datadi | --datad)
1053 ac_prev=datadir ;;
1054 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055 datadir=$ac_optarg ;;
1056
1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058 | --dataroo | --dataro | --datar)
1059 ac_prev=datarootdir ;;
1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062 datarootdir=$ac_optarg ;;
1063
1064 -disable-* | --disable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1073 *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval enable_$ac_useropt=no ;;
1080
1081 -docdir | --docdir | --docdi | --doc | --do)
1082 ac_prev=docdir ;;
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1085
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 ac_prev=dvidir ;;
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1090
1091 -enable-* | --enable-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101 "enable_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval enable_$ac_useropt=\$ac_optarg ;;
1107
1108 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110 | --exec | --exe | --ex)
1111 ac_prev=exec_prefix ;;
1112 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114 | --exec=* | --exe=* | --ex=*)
1115 exec_prefix=$ac_optarg ;;
1116
1117 -gas | --gas | --ga | --g)
1118 # Obsolete; use --with-gas.
1119 with_gas=yes ;;
1120
1121 -help | --help | --hel | --he | -h)
1122 ac_init_help=long ;;
1123 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124 ac_init_help=recursive ;;
1125 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126 ac_init_help=short ;;
1127
1128 -host | --host | --hos | --ho)
1129 ac_prev=host_alias ;;
1130 -host=* | --host=* | --hos=* | --ho=*)
1131 host_alias=$ac_optarg ;;
1132
1133 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134 ac_prev=htmldir ;;
1135 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136 | --ht=*)
1137 htmldir=$ac_optarg ;;
1138
1139 -includedir | --includedir | --includedi | --included | --include \
1140 | --includ | --inclu | --incl | --inc)
1141 ac_prev=includedir ;;
1142 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143 | --includ=* | --inclu=* | --incl=* | --inc=*)
1144 includedir=$ac_optarg ;;
1145
1146 -infodir | --infodir | --infodi | --infod | --info | --inf)
1147 ac_prev=infodir ;;
1148 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149 infodir=$ac_optarg ;;
1150
1151 -libdir | --libdir | --libdi | --libd)
1152 ac_prev=libdir ;;
1153 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154 libdir=$ac_optarg ;;
1155
1156 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157 | --libexe | --libex | --libe)
1158 ac_prev=libexecdir ;;
1159 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160 | --libexe=* | --libex=* | --libe=*)
1161 libexecdir=$ac_optarg ;;
1162
1163 -localedir | --localedir | --localedi | --localed | --locale)
1164 ac_prev=localedir ;;
1165 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166 localedir=$ac_optarg ;;
1167
1168 -localstatedir | --localstatedir | --localstatedi | --localstated \
1169 | --localstate | --localstat | --localsta | --localst | --locals)
1170 ac_prev=localstatedir ;;
1171 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173 localstatedir=$ac_optarg ;;
1174
1175 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176 ac_prev=mandir ;;
1177 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178 mandir=$ac_optarg ;;
1179
1180 -nfp | --nfp | --nf)
1181 # Obsolete; use --without-fp.
1182 with_fp=no ;;
1183
1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185 | --no-cr | --no-c | -n)
1186 no_create=yes ;;
1187
1188 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190 no_recursion=yes ;;
1191
1192 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194 | --oldin | --oldi | --old | --ol | --o)
1195 ac_prev=oldincludedir ;;
1196 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199 oldincludedir=$ac_optarg ;;
1200
1201 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202 ac_prev=prefix ;;
1203 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204 prefix=$ac_optarg ;;
1205
1206 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207 | --program-pre | --program-pr | --program-p)
1208 ac_prev=program_prefix ;;
1209 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211 program_prefix=$ac_optarg ;;
1212
1213 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214 | --program-suf | --program-su | --program-s)
1215 ac_prev=program_suffix ;;
1216 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218 program_suffix=$ac_optarg ;;
1219
1220 -program-transform-name | --program-transform-name \
1221 | --program-transform-nam | --program-transform-na \
1222 | --program-transform-n | --program-transform- \
1223 | --program-transform | --program-transfor \
1224 | --program-transfo | --program-transf \
1225 | --program-trans | --program-tran \
1226 | --progr-tra | --program-tr | --program-t)
1227 ac_prev=program_transform_name ;;
1228 -program-transform-name=* | --program-transform-name=* \
1229 | --program-transform-nam=* | --program-transform-na=* \
1230 | --program-transform-n=* | --program-transform-=* \
1231 | --program-transform=* | --program-transfor=* \
1232 | --program-transfo=* | --program-transf=* \
1233 | --program-trans=* | --program-tran=* \
1234 | --progr-tra=* | --program-tr=* | --program-t=*)
1235 program_transform_name=$ac_optarg ;;
1236
1237 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238 ac_prev=pdfdir ;;
1239 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240 pdfdir=$ac_optarg ;;
1241
1242 -psdir | --psdir | --psdi | --psd | --ps)
1243 ac_prev=psdir ;;
1244 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245 psdir=$ac_optarg ;;
1246
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 silent=yes ;;
1250
1251 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252 ac_prev=sbindir ;;
1253 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254 | --sbi=* | --sb=*)
1255 sbindir=$ac_optarg ;;
1256
1257 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259 | --sharedst | --shareds | --shared | --share | --shar \
1260 | --sha | --sh)
1261 ac_prev=sharedstatedir ;;
1262 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265 | --sha=* | --sh=*)
1266 sharedstatedir=$ac_optarg ;;
1267
1268 -site | --site | --sit)
1269 ac_prev=site ;;
1270 -site=* | --site=* | --sit=*)
1271 site=$ac_optarg ;;
1272
1273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274 ac_prev=srcdir ;;
1275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276 srcdir=$ac_optarg ;;
1277
1278 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279 | --syscon | --sysco | --sysc | --sys | --sy)
1280 ac_prev=sysconfdir ;;
1281 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283 sysconfdir=$ac_optarg ;;
1284
1285 -target | --target | --targe | --targ | --tar | --ta | --t)
1286 ac_prev=target_alias ;;
1287 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288 target_alias=$ac_optarg ;;
1289
1290 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291 verbose=yes ;;
1292
1293 -version | --version | --versio | --versi | --vers | -V)
1294 ac_init_version=: ;;
1295
1296 -with-* | --with-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1301 { (exit 1); exit 1; }; }
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=\$ac_optarg ;;
1312
1313 -without-* | --without-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1318 { (exit 1); exit 1; }; }
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1322 *"
1323 "with_$ac_useropt"
1324 "*) ;;
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1327 esac
1328 eval with_$ac_useropt=no ;;
1329
1330 --x)
1331 # Obsolete; use --with-x.
1332 with_x=yes ;;
1333
1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335 | --x-incl | --x-inc | --x-in | --x-i)
1336 ac_prev=x_includes ;;
1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339 x_includes=$ac_optarg ;;
1340
1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343 ac_prev=x_libraries ;;
1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346 x_libraries=$ac_optarg ;;
1347
1348 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1349 Try \`$0 --help' for more information." >&2
1350 { (exit 1); exit 1; }; }
1351 ;;
1352
1353 *=*)
1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1357 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1358 { (exit 1); exit 1; }; }
1359 eval $ac_envvar=\$ac_optarg
1360 export $ac_envvar ;;
1361
1362 *)
1363 # FIXME: should be removed in autoconf 3.0.
1364 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1368 ;;
1369
1370 esac
1371 done
1372
1373 if test -n "$ac_prev"; then
1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1376 { (exit 1); exit 1; }; }
1377 fi
1378
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1381 no) ;;
1382 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1383 { (exit 1); exit 1; }; } ;;
1384 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1385 esac
1386 fi
1387
1388 # Check all directory arguments for consistency.
1389 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1390 datadir sysconfdir sharedstatedir localstatedir includedir \
1391 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1392 libdir localedir mandir
1393 do
1394 eval ac_val=\$$ac_var
1395 # Remove trailing slashes.
1396 case $ac_val in
1397 */ )
1398 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1399 eval $ac_var=\$ac_val;;
1400 esac
1401 # Be sure to have absolute directory names.
1402 case $ac_val in
1403 [\\/$]* | ?:[\\/]* ) continue;;
1404 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1405 esac
1406 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1407 { (exit 1); exit 1; }; }
1408 done
1409
1410 # There might be people who depend on the old broken behavior: `$host'
1411 # used to hold the argument of --host etc.
1412 # FIXME: To remove some day.
1413 build=$build_alias
1414 host=$host_alias
1415 target=$target_alias
1416
1417 # FIXME: To remove some day.
1418 if test "x$host_alias" != x; then
1419 if test "x$build_alias" = x; then
1420 cross_compiling=maybe
1421 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1422 If a cross compiler is detected then cross compile mode will be used." >&2
1423 elif test "x$build_alias" != "x$host_alias"; then
1424 cross_compiling=yes
1425 fi
1426 fi
1427
1428 ac_tool_prefix=
1429 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1430
1431 test "$silent" = yes && exec 6>/dev/null
1432
1433
1434 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435 ac_ls_di=`ls -di .` &&
1436 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1438 { (exit 1); exit 1; }; }
1439 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1440 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1441 { (exit 1); exit 1; }; }
1442
1443
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1456 q
1457 }
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\/\)$/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\).*/{
1467 s//\1/
1468 q
1469 }
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1474 fi
1475 else
1476 ac_srcdir_defaulted=no
1477 fi
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1481 { (exit 1); exit 1; }; }
1482 fi
1483 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1484 ac_abs_confdir=`(
1485 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1486 { (exit 1); exit 1; }; }
1487 pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 srcdir=.
1491 fi
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_${ac_var}_value=\$${ac_var}
1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1504
1505 #
1506 # Report the --help message.
1507 #
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1511 cat <<_ACEOF
1512 \`configure' configures xf86-input-vmmouse 12.6.4 to adapt to many kinds of systems.
1513
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1515
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1518
1519 Defaults for the options are specified in brackets.
1520
1521 Configuration:
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1531
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 [PREFIX]
1537
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1542
1543 For better control, use the options below.
1544
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root
1561 [DATAROOTDIR/doc/xf86-input-vmmouse]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1566 _ACEOF
1567
1568 cat <<\_ACEOF
1569
1570 Program names:
1571 --program-prefix=PREFIX prepend PREFIX to installed program names
1572 --program-suffix=SUFFIX append SUFFIX to installed program names
1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1574
1575 System types:
1576 --build=BUILD configure for building on BUILD [guessed]
1577 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1578 _ACEOF
1579 fi
1580
1581 if test -n "$ac_init_help"; then
1582 case $ac_init_help in
1583 short | recursive ) echo "Configuration of xf86-input-vmmouse 12.6.4:";;
1584 esac
1585 cat <<\_ACEOF
1586
1587 Optional Features:
1588 --disable-option-checking ignore unrecognized --enable/--with options
1589 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1590 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1591 --enable-maintainer-mode enable make rules and dependencies not useful
1592 (and sometimes confusing) to the casual installer
1593 --enable-static[=PKGS] build static libraries [default=no]
1594 --enable-shared[=PKGS] build shared libraries [default=yes]
1595 --enable-fast-install[=PKGS]
1596 optimize for fast installation [default=yes]
1597 --disable-dependency-tracking speeds up one-time build
1598 --enable-dependency-tracking do not reject slow dependency extractors
1599 --disable-libtool-lock avoid locking (might break parallel builds)
1600
1601 Optional Packages:
1602 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1603 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-pic try to use only PIC/non-PIC objects [default=use
1606 both]
1607 --with-tags[=TAGS] include additional configurations [automatic]
1608 --with-xorg-module-dir=DIR
1609 Default xorg module directory
1610 [default=$libdir/xorg/modules]
1611 --with-hal-bin-dir=DIR Directory where HAL binaries where installed
1612 [default=$bindir]
1613 --with-hal-callouts-dir=DIR
1614 Directory where HAL expects its callout scripts to
1615 be located [default=$libdir/hal]
1616 --with-hal-fdi-dir=DIR Directory where HAL expects its fdi files to be
1617 located
1618 [default=$datadir/hal/fdi/policy/20thirdparty]
1619 --with-release-version=STRING
1620 Use release version string in package name
1621
1622 Some influential environment variables:
1623 CC C compiler command
1624 CFLAGS C compiler flags
1625 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1626 nonstandard directory <lib dir>
1627 LIBS libraries to pass to the linker, e.g. -l<library>
1628 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1629 you have headers in a nonstandard directory <include dir>
1630 CPP C preprocessor
1631 CXX C++ compiler command
1632 CXXFLAGS C++ compiler flags
1633 CXXCPP C++ preprocessor
1634 F77 Fortran 77 compiler command
1635 FFLAGS Fortran 77 compiler flags
1636 PKG_CONFIG path to pkg-config utility
1637 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1638 XORG_LIBS linker flags for XORG, overriding pkg-config
1639
1640 Use these variables to override the choices made by `configure' or to help
1641 it to find libraries and programs with nonstandard names/locations.
1642
1643 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1644 _ACEOF
1645 ac_status=$?
1646 fi
1647
1648 if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651 test -d "$ac_dir" ||
1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 continue
1654 ac_builddir=.
1655
1656 case "$ac_dir" in
1657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 *)
1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660 # A ".." for each directory in $ac_dir_suffix.
1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662 case $ac_top_builddir_sub in
1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 esac ;;
1666 esac
1667 ac_abs_top_builddir=$ac_pwd
1668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669 # for backward compatibility:
1670 ac_top_builddir=$ac_top_build_prefix
1671
1672 case $srcdir in
1673 .) # We are building in place.
1674 ac_srcdir=.
1675 ac_top_srcdir=$ac_top_builddir_sub
1676 ac_abs_top_srcdir=$ac_pwd ;;
1677 [\\/]* | ?:[\\/]* ) # Absolute name.
1678 ac_srcdir=$srcdir$ac_dir_suffix;
1679 ac_top_srcdir=$srcdir
1680 ac_abs_top_srcdir=$srcdir ;;
1681 *) # Relative name.
1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683 ac_top_srcdir=$ac_top_build_prefix$srcdir
1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1685 esac
1686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688 cd "$ac_dir" || { ac_status=$?; continue; }
1689 # Check for guested configure.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure" --help=recursive
1696 else
1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698 fi || ac_status=$?
1699 cd "$ac_pwd" || { ac_status=$?; break; }
1700 done
1701 fi
1702
1703 test -n "$ac_init_help" && exit $ac_status
1704 if $ac_init_version; then
1705 cat <<\_ACEOF
1706 xf86-input-vmmouse configure 12.6.4
1707 generated by GNU Autoconf 2.63
1708
1709 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1710 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1711 This configure script is free software; the Free Software Foundation
1712 gives unlimited permission to copy, distribute and modify it.
1713 _ACEOF
1714 exit
1715 fi
1716 cat >config.log <<_ACEOF
1717 This file contains any messages produced by compilers while
1718 running configure, to aid debugging if configure makes a mistake.
1719
1720 It was created by xf86-input-vmmouse $as_me 12.6.4, which was
1721 generated by GNU Autoconf 2.63. Invocation command line was
1722
1723 $ $0 $@
1724
1725 _ACEOF
1726 exec 5>>config.log
1727 {
1728 cat <<_ASUNAME
1729 ## --------- ##
1730 ## Platform. ##
1731 ## --------- ##
1732
1733 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1734 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1735 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1736 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1737 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1738
1739 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1740 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1741
1742 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1743 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1744 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1745 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1746 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1747 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1748 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1749
1750 _ASUNAME
1751
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755 IFS=$as_save_IFS
1756 test -z "$as_dir" && as_dir=.
1757 $as_echo "PATH: $as_dir"
1758 done
1759 IFS=$as_save_IFS
1760
1761 } >&5
1762
1763 cat >&5 <<_ACEOF
1764
1765
1766 ## ----------- ##
1767 ## Core tests. ##
1768 ## ----------- ##
1769
1770 _ACEOF
1771
1772
1773 # Keep a trace of the command line.
1774 # Strip out --no-create and --no-recursion so they do not pile up.
1775 # Strip out --silent because we don't want to record it for future runs.
1776 # Also quote any args containing shell meta-characters.
1777 # Make two passes to allow for proper duplicate-argument suppression.
1778 ac_configure_args=
1779 ac_configure_args0=
1780 ac_configure_args1=
1781 ac_must_keep_next=false
1782 for ac_pass in 1 2
1783 do
1784 for ac_arg
1785 do
1786 case $ac_arg in
1787 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789 | -silent | --silent | --silen | --sile | --sil)
1790 continue ;;
1791 *\'*)
1792 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1793 esac
1794 case $ac_pass in
1795 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1796 2)
1797 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1798 if test $ac_must_keep_next = true; then
1799 ac_must_keep_next=false # Got value, back to normal.
1800 else
1801 case $ac_arg in
1802 *=* | --config-cache | -C | -disable-* | --disable-* \
1803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1805 | -with-* | --with-* | -without-* | --without-* | --x)
1806 case "$ac_configure_args0 " in
1807 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1808 esac
1809 ;;
1810 -* ) ac_must_keep_next=true ;;
1811 esac
1812 fi
1813 ac_configure_args="$ac_configure_args '$ac_arg'"
1814 ;;
1815 esac
1816 done
1817 done
1818 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1819 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1820
1821 # When interrupted or exit'd, cleanup temporary files, and complete
1822 # config.log. We remove comments because anyway the quotes in there
1823 # would cause problems or look ugly.
1824 # WARNING: Use '\'' to represent an apostrophe within the trap.
1825 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1826 trap 'exit_status=$?
1827 # Save into config.log some information that might help in debugging.
1828 {
1829 echo
1830
1831 cat <<\_ASBOX
1832 ## ---------------- ##
1833 ## Cache variables. ##
1834 ## ---------------- ##
1835 _ASBOX
1836 echo
1837 # The following way of writing the cache mishandles newlines in values,
1838 (
1839 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1840 eval ac_val=\$$ac_var
1841 case $ac_val in #(
1842 *${as_nl}*)
1843 case $ac_var in #(
1844 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1845 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1846 esac
1847 case $ac_var in #(
1848 _ | IFS | as_nl) ;; #(
1849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1850 *) $as_unset $ac_var ;;
1851 esac ;;
1852 esac
1853 done
1854 (set) 2>&1 |
1855 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1856 *${as_nl}ac_space=\ *)
1857 sed -n \
1858 "s/'\''/'\''\\\\'\'''\''/g;
1859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1860 ;; #(
1861 *)
1862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1863 ;;
1864 esac |
1865 sort
1866 )
1867 echo
1868
1869 cat <<\_ASBOX
1870 ## ----------------- ##
1871 ## Output variables. ##
1872 ## ----------------- ##
1873 _ASBOX
1874 echo
1875 for ac_var in $ac_subst_vars
1876 do
1877 eval ac_val=\$$ac_var
1878 case $ac_val in
1879 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1880 esac
1881 $as_echo "$ac_var='\''$ac_val'\''"
1882 done | sort
1883 echo
1884
1885 if test -n "$ac_subst_files"; then
1886 cat <<\_ASBOX
1887 ## ------------------- ##
1888 ## File substitutions. ##
1889 ## ------------------- ##
1890 _ASBOX
1891 echo
1892 for ac_var in $ac_subst_files
1893 do
1894 eval ac_val=\$$ac_var
1895 case $ac_val in
1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897 esac
1898 $as_echo "$ac_var='\''$ac_val'\''"
1899 done | sort
1900 echo
1901 fi
1902
1903 if test -s confdefs.h; then
1904 cat <<\_ASBOX
1905 ## ----------- ##
1906 ## confdefs.h. ##
1907 ## ----------- ##
1908 _ASBOX
1909 echo
1910 cat confdefs.h
1911 echo
1912 fi
1913 test "$ac_signal" != 0 &&
1914 $as_echo "$as_me: caught signal $ac_signal"
1915 $as_echo "$as_me: exit $exit_status"
1916 } >&5
1917 rm -f core *.core core.conftest.* &&
1918 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1919 exit $exit_status
1920 ' 0
1921 for ac_signal in 1 2 13 15; do
1922 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1923 done
1924 ac_signal=0
1925
1926 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1927 rm -f -r conftest* confdefs.h
1928
1929 # Predefined preprocessor variables.
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_NAME "$PACKAGE_NAME"
1933 _ACEOF
1934
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1938 _ACEOF
1939
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1943 _ACEOF
1944
1945
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_STRING "$PACKAGE_STRING"
1948 _ACEOF
1949
1950
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1953 _ACEOF
1954
1955
1956 # Let the site file select an alternate cache file if it wants to.
1957 # Prefer an explicitly selected file to automatically selected ones.
1958 ac_site_file1=NONE
1959 ac_site_file2=NONE
1960 if test -n "$CONFIG_SITE"; then
1961 ac_site_file1=$CONFIG_SITE
1962 elif test "x$prefix" != xNONE; then
1963 ac_site_file1=$prefix/share/config.site
1964 ac_site_file2=$prefix/etc/config.site
1965 else
1966 ac_site_file1=$ac_default_prefix/share/config.site
1967 ac_site_file2=$ac_default_prefix/etc/config.site
1968 fi
1969 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1970 do
1971 test "x$ac_site_file" = xNONE && continue
1972 if test -r "$ac_site_file"; then
1973 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1974 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1975 sed 's/^/| /' "$ac_site_file" >&5
1976 . "$ac_site_file"
1977 fi
1978 done
1979
1980 if test -r "$cache_file"; then
1981 # Some versions of bash will fail to source /dev/null (special
1982 # files actually), so we avoid doing that.
1983 if test -f "$cache_file"; then
1984 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1985 $as_echo "$as_me: loading cache $cache_file" >&6;}
1986 case $cache_file in
1987 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1988 *) . "./$cache_file";;
1989 esac
1990 fi
1991 else
1992 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1993 $as_echo "$as_me: creating cache $cache_file" >&6;}
1994 >$cache_file
1995 fi
1996
1997 # Check that the precious variables saved in the cache have kept the same
1998 # value.
1999 ac_cache_corrupted=false
2000 for ac_var in $ac_precious_vars; do
2001 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2002 eval ac_new_set=\$ac_env_${ac_var}_set
2003 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2004 eval ac_new_val=\$ac_env_${ac_var}_value
2005 case $ac_old_set,$ac_new_set in
2006 set,)
2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2008 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2009 ac_cache_corrupted=: ;;
2010 ,set)
2011 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2012 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2013 ac_cache_corrupted=: ;;
2014 ,);;
2015 *)
2016 if test "x$ac_old_val" != "x$ac_new_val"; then
2017 # differences in whitespace do not lead to failure.
2018 ac_old_val_w=`echo x $ac_old_val`
2019 ac_new_val_w=`echo x $ac_new_val`
2020 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2021 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2022 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2023 ac_cache_corrupted=:
2024 else
2025 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2026 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2027 eval $ac_var=\$ac_old_val
2028 fi
2029 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2030 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2031 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2032 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2033 fi;;
2034 esac
2035 # Pass precious variables to config.status.
2036 if test "$ac_new_set" = set; then
2037 case $ac_new_val in
2038 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2039 *) ac_arg=$ac_var=$ac_new_val ;;
2040 esac
2041 case " $ac_configure_args " in
2042 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2043 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2044 esac
2045 fi
2046 done
2047 if $ac_cache_corrupted; then
2048 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2050 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2051 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2052 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2053 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2054 { (exit 1); exit 1; }; }
2055 fi
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081 ac_ext=c
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086
2087
2088
2089
2090 ac_aux_dir=
2091 for ac_dir in . "$srcdir"/.; do
2092 if test -f "$ac_dir/install-sh"; then
2093 ac_aux_dir=$ac_dir
2094 ac_install_sh="$ac_aux_dir/install-sh -c"
2095 break
2096 elif test -f "$ac_dir/install.sh"; then
2097 ac_aux_dir=$ac_dir
2098 ac_install_sh="$ac_aux_dir/install.sh -c"
2099 break
2100 elif test -f "$ac_dir/shtool"; then
2101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/shtool install -c"
2103 break
2104 fi
2105 done
2106 if test -z "$ac_aux_dir"; then
2107 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2108 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2109 { (exit 1); exit 1; }; }
2110 fi
2111
2112 # These three variables are undocumented and unsupported,
2113 # and are intended to be withdrawn in a future Autoconf release.
2114 # They can cause serious problems if a builder's source tree is in a directory
2115 # whose full name contains unusual characters.
2116 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2117 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2118 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2119
2120
2121 am__api_version='1.10'
2122
2123 # Find a good install program. We prefer a C program (faster),
2124 # so one script is as good as another. But avoid the broken or
2125 # incompatible versions:
2126 # SysV /etc/install, /usr/sbin/install
2127 # SunOS /usr/etc/install
2128 # IRIX /sbin/install
2129 # AIX /bin/install
2130 # AmigaOS /C/install, which installs bootblocks on floppy discs
2131 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2132 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2133 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2134 # OS/2's system install, which has a completely different semantic
2135 # ./install, which can be erroneously created by make from ./install.sh.
2136 # Reject install programs that cannot install multiple files.
2137 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2138 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2139 if test -z "$INSTALL"; then
2140 if test "${ac_cv_path_install+set}" = set; then
2141 $as_echo_n "(cached) " >&6
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 # Account for people who put trailing slashes in PATH elements.
2149 case $as_dir/ in
2150 ./ | .// | /cC/* | \
2151 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2152 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2153 /usr/ucb/* ) ;;
2154 *)
2155 # OSF1 and SCO ODT 3.0 have their own names for install.
2156 # Don't use installbsd from OSF since it installs stuff as root
2157 # by default.
2158 for ac_prog in ginstall scoinst install; do
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2161 if test $ac_prog = install &&
2162 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163 # AIX install. It has an incompatible calling convention.
2164 :
2165 elif test $ac_prog = install &&
2166 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2167 # program-specific install script used by HP pwplus--don't use.
2168 :
2169 else
2170 rm -rf conftest.one conftest.two conftest.dir
2171 echo one > conftest.one
2172 echo two > conftest.two
2173 mkdir conftest.dir
2174 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2175 test -s conftest.one && test -s conftest.two &&
2176 test -s conftest.dir/conftest.one &&
2177 test -s conftest.dir/conftest.two
2178 then
2179 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2180 break 3
2181 fi
2182 fi
2183 fi
2184 done
2185 done
2186 ;;
2187 esac
2188
2189 done
2190 IFS=$as_save_IFS
2191
2192 rm -rf conftest.one conftest.two conftest.dir
2193
2194 fi
2195 if test "${ac_cv_path_install+set}" = set; then
2196 INSTALL=$ac_cv_path_install
2197 else
2198 # As a last resort, use the slow shell script. Don't cache a
2199 # value for INSTALL within a source directory, because that will
2200 # break other packages using the cache if that directory is
2201 # removed, or if the value is a relative name.
2202 INSTALL=$ac_install_sh
2203 fi
2204 fi
2205 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2206 $as_echo "$INSTALL" >&6; }
2207
2208 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2209 # It thinks the first close brace ends the variable substitution.
2210 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2211
2212 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2213
2214 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2215
2216 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2217 $as_echo_n "checking whether build environment is sane... " >&6; }
2218 # Just in case
2219 sleep 1
2220 echo timestamp > conftest.file
2221 # Do `set' in a subshell so we don't clobber the current shell's
2222 # arguments. Must try -L first in case configure is actually a
2223 # symlink; some systems play weird games with the mod time of symlinks
2224 # (eg FreeBSD returns the mod time of the symlink's containing
2225 # directory).
2226 if (
2227 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2228 if test "$*" = "X"; then
2229 # -L didn't work.
2230 set X `ls -t $srcdir/configure conftest.file`
2231 fi
2232 rm -f conftest.file
2233 if test "$*" != "X $srcdir/configure conftest.file" \
2234 && test "$*" != "X conftest.file $srcdir/configure"; then
2235
2236 # If neither matched, then we have a broken ls. This can happen
2237 # if, for instance, CONFIG_SHELL is bash and it inherits a
2238 # broken ls alias from the environment. This has actually
2239 # happened. Such a system could not be considered "sane".
2240 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2241 alias in your environment" >&5
2242 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2243 alias in your environment" >&2;}
2244 { (exit 1); exit 1; }; }
2245 fi
2246
2247 test "$2" = conftest.file
2248 )
2249 then
2250 # Ok.
2251 :
2252 else
2253 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2254 Check your system clock" >&5
2255 $as_echo "$as_me: error: newly created file is older than distributed files!
2256 Check your system clock" >&2;}
2257 { (exit 1); exit 1; }; }
2258 fi
2259 { $as_echo "$as_me:$LINENO: result: yes" >&5
2260 $as_echo "yes" >&6; }
2261 test "$program_prefix" != NONE &&
2262 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2263 # Use a double $ so make ignores it.
2264 test "$program_suffix" != NONE &&
2265 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2266 # Double any \ or $.
2267 # By default was `s,x,x', remove it if useless.
2268 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2269 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2270
2271 # expand $ac_aux_dir to an absolute path
2272 am_aux_dir=`cd $ac_aux_dir && pwd`
2273
2274 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2275 # Use eval to expand $SHELL
2276 if eval "$MISSING --run true"; then
2277 am_missing_run="$MISSING --run "
2278 else
2279 am_missing_run=
2280 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2281 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2282 fi
2283
2284 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2285 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2286 if test -z "$MKDIR_P"; then
2287 if test "${ac_cv_path_mkdir+set}" = set; then
2288 $as_echo_n "(cached) " >&6
2289 else
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2292 do
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_prog in mkdir gmkdir; do
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2298 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2299 'mkdir (GNU coreutils) '* | \
2300 'mkdir (coreutils) '* | \
2301 'mkdir (fileutils) '4.1*)
2302 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2303 break 3;;
2304 esac
2305 done
2306 done
2307 done
2308 IFS=$as_save_IFS
2309
2310 fi
2311
2312 if test "${ac_cv_path_mkdir+set}" = set; then
2313 MKDIR_P="$ac_cv_path_mkdir -p"
2314 else
2315 # As a last resort, use the slow shell script. Don't cache a
2316 # value for MKDIR_P within a source directory, because that will
2317 # break other packages using the cache if that directory is
2318 # removed, or if the value is a relative name.
2319 test -d ./--version && rmdir ./--version
2320 MKDIR_P="$ac_install_sh -d"
2321 fi
2322 fi
2323 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2324 $as_echo "$MKDIR_P" >&6; }
2325
2326 mkdir_p="$MKDIR_P"
2327 case $mkdir_p in
2328 [\\/$]* | ?:[\\/]*) ;;
2329 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2330 esac
2331
2332 for ac_prog in gawk mawk nawk awk
2333 do
2334 # Extract the first word of "$ac_prog", so it can be a program name with args.
2335 set dummy $ac_prog; ac_word=$2
2336 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2337 $as_echo_n "checking for $ac_word... " >&6; }
2338 if test "${ac_cv_prog_AWK+set}" = set; then
2339 $as_echo_n "(cached) " >&6
2340 else
2341 if test -n "$AWK"; then
2342 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2343 else
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351 ac_cv_prog_AWK="$ac_prog"
2352 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2354 fi
2355 done
2356 done
2357 IFS=$as_save_IFS
2358
2359 fi
2360 fi
2361 AWK=$ac_cv_prog_AWK
2362 if test -n "$AWK"; then
2363 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2364 $as_echo "$AWK" >&6; }
2365 else
2366 { $as_echo "$as_me:$LINENO: result: no" >&5
2367 $as_echo "no" >&6; }
2368 fi
2369
2370
2371 test -n "$AWK" && break
2372 done
2373
2374 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2375 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2376 set x ${MAKE-make}
2377 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2378 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2379 $as_echo_n "(cached) " >&6
2380 else
2381 cat >conftest.make <<\_ACEOF
2382 SHELL = /bin/sh
2383 all:
2384 @echo '@@@%%%=$(MAKE)=@@@%%%'
2385 _ACEOF
2386 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2387 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2388 *@@@%%%=?*=@@@%%%*)
2389 eval ac_cv_prog_make_${ac_make}_set=yes;;
2390 *)
2391 eval ac_cv_prog_make_${ac_make}_set=no;;
2392 esac
2393 rm -f conftest.make
2394 fi
2395 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2396 { $as_echo "$as_me:$LINENO: result: yes" >&5
2397 $as_echo "yes" >&6; }
2398 SET_MAKE=
2399 else
2400 { $as_echo "$as_me:$LINENO: result: no" >&5
2401 $as_echo "no" >&6; }
2402 SET_MAKE="MAKE=${MAKE-make}"
2403 fi
2404
2405 rm -rf .tst 2>/dev/null
2406 mkdir .tst 2>/dev/null
2407 if test -d .tst; then
2408 am__leading_dot=.
2409 else
2410 am__leading_dot=_
2411 fi
2412 rmdir .tst 2>/dev/null
2413
2414 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2415 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2416 # is not polluted with repeated "-I."
2417 am__isrc=' -I$(srcdir)'
2418 # test to see if srcdir already configured
2419 if test -f $srcdir/config.status; then
2420 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2421 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2422 { (exit 1); exit 1; }; }
2423 fi
2424 fi
2425
2426 # test whether we have cygpath
2427 if test -z "$CYGPATH_W"; then
2428 if (cygpath --version) >/dev/null 2>/dev/null; then
2429 CYGPATH_W='cygpath -w'
2430 else
2431 CYGPATH_W=echo
2432 fi
2433 fi
2434
2435
2436 # Define the identity of the package.
2437 PACKAGE='xf86-input-vmmouse'
2438 VERSION='12.6.4'
2439
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE "$PACKAGE"
2443 _ACEOF
2444
2445
2446 cat >>confdefs.h <<_ACEOF
2447 #define VERSION "$VERSION"
2448 _ACEOF
2449
2450 # Some tools Automake needs.
2451
2452 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2453
2454
2455 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2456
2457
2458 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2459
2460
2461 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2462
2463
2464 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2465
2466 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2467
2468 # Installed binaries are usually stripped using `strip' when the user
2469 # run `make install-strip'. However `strip' might not be the right
2470 # tool to use in cross-compilation environments, therefore Automake
2471 # will honor the `STRIP' environment variable to overrule this program.
2472 if test "$cross_compiling" != no; then
2473 if test -n "$ac_tool_prefix"; then
2474 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2475 set dummy ${ac_tool_prefix}strip; ac_word=$2
2476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if test "${ac_cv_prog_STRIP+set}" = set; then
2479 $as_echo_n "(cached) " >&6
2480 else
2481 if test -n "$STRIP"; then
2482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2494 fi
2495 done
2496 done
2497 IFS=$as_save_IFS
2498
2499 fi
2500 fi
2501 STRIP=$ac_cv_prog_STRIP
2502 if test -n "$STRIP"; then
2503 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2504 $as_echo "$STRIP" >&6; }
2505 else
2506 { $as_echo "$as_me:$LINENO: result: no" >&5
2507 $as_echo "no" >&6; }
2508 fi
2509
2510
2511 fi
2512 if test -z "$ac_cv_prog_STRIP"; then
2513 ac_ct_STRIP=$STRIP
2514 # Extract the first word of "strip", so it can be a program name with args.
2515 set dummy strip; ac_word=$2
2516 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2519 $as_echo_n "(cached) " >&6
2520 else
2521 if test -n "$ac_ct_STRIP"; then
2522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2531 ac_cv_prog_ac_ct_STRIP="strip"
2532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535 done
2536 done
2537 IFS=$as_save_IFS
2538
2539 fi
2540 fi
2541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2542 if test -n "$ac_ct_STRIP"; then
2543 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2544 $as_echo "$ac_ct_STRIP" >&6; }
2545 else
2546 { $as_echo "$as_me:$LINENO: result: no" >&5
2547 $as_echo "no" >&6; }
2548 fi
2549
2550 if test "x$ac_ct_STRIP" = x; then
2551 STRIP=":"
2552 else
2553 case $cross_compiling:$ac_tool_warned in
2554 yes:)
2555 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2557 ac_tool_warned=yes ;;
2558 esac
2559 STRIP=$ac_ct_STRIP
2560 fi
2561 else
2562 STRIP="$ac_cv_prog_STRIP"
2563 fi
2564
2565 fi
2566 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2567
2568 # We need awk for the "check" target. The system "awk" is bad on
2569 # some platforms.
2570 # Always define AMTAR for backward compatibility.
2571
2572 AMTAR=${AMTAR-"${am_missing_run}tar"}
2573
2574 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2575
2576
2577
2578
2579
2580
2581 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2582 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2583 # Check whether --enable-maintainer-mode was given.
2584 if test "${enable_maintainer_mode+set}" = set; then
2585 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2586 else
2587 USE_MAINTAINER_MODE=no
2588 fi
2589
2590 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2591 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2592 if test $USE_MAINTAINER_MODE = yes; then
2593 MAINTAINER_MODE_TRUE=
2594 MAINTAINER_MODE_FALSE='#'
2595 else
2596 MAINTAINER_MODE_TRUE='#'
2597 MAINTAINER_MODE_FALSE=
2598 fi
2599
2600 MAINT=$MAINTAINER_MODE_TRUE
2601
2602
2603
2604 DRIVER_NAME=vmmouse
2605
2606
2607 ac_config_headers="$ac_config_headers config.h"
2608
2609
2610 # Checks for programs.
2611 # Check whether --enable-static was given.
2612 if test "${enable_static+set}" = set; then
2613 enableval=$enable_static; p=${PACKAGE-default}
2614 case $enableval in
2615 yes) enable_static=yes ;;
2616 no) enable_static=no ;;
2617 *)
2618 enable_static=no
2619 # Look at the argument we got. We use all the common list separators.
2620 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2621 for pkg in $enableval; do
2622 IFS="$lt_save_ifs"
2623 if test "X$pkg" = "X$p"; then
2624 enable_static=yes
2625 fi
2626 done
2627 IFS="$lt_save_ifs"
2628 ;;
2629 esac
2630 else
2631 enable_static=no
2632 fi
2633
2634
2635
2636 # Check whether --enable-shared was given.
2637 if test "${enable_shared+set}" = set; then
2638 enableval=$enable_shared; p=${PACKAGE-default}
2639 case $enableval in
2640 yes) enable_shared=yes ;;
2641 no) enable_shared=no ;;
2642 *)
2643 enable_shared=no
2644 # Look at the argument we got. We use all the common list separators.
2645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2646 for pkg in $enableval; do
2647 IFS="$lt_save_ifs"
2648 if test "X$pkg" = "X$p"; then
2649 enable_shared=yes
2650 fi
2651 done
2652 IFS="$lt_save_ifs"
2653 ;;
2654 esac
2655 else
2656 enable_shared=yes
2657 fi
2658
2659
2660 # Check whether --enable-fast-install was given.
2661 if test "${enable_fast_install+set}" = set; then
2662 enableval=$enable_fast_install; p=${PACKAGE-default}
2663 case $enableval in
2664 yes) enable_fast_install=yes ;;
2665 no) enable_fast_install=no ;;
2666 *)
2667 enable_fast_install=no
2668 # Look at the argument we got. We use all the common list separators.
2669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2670 for pkg in $enableval; do
2671 IFS="$lt_save_ifs"
2672 if test "X$pkg" = "X$p"; then
2673 enable_fast_install=yes
2674 fi
2675 done
2676 IFS="$lt_save_ifs"
2677 ;;
2678 esac
2679 else
2680 enable_fast_install=yes
2681 fi
2682
2683
2684 # Make sure we can run config.sub.
2685 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2686 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2687 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2688 { (exit 1); exit 1; }; }
2689
2690 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2691 $as_echo_n "checking build system type... " >&6; }
2692 if test "${ac_cv_build+set}" = set; then
2693 $as_echo_n "(cached) " >&6
2694 else
2695 ac_build_alias=$build_alias
2696 test "x$ac_build_alias" = x &&
2697 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2698 test "x$ac_build_alias" = x &&
2699 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2700 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2701 { (exit 1); exit 1; }; }
2702 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2703 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2704 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2705 { (exit 1); exit 1; }; }
2706
2707 fi
2708 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2709 $as_echo "$ac_cv_build" >&6; }
2710 case $ac_cv_build in
2711 *-*-*) ;;
2712 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2713 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2714 { (exit 1); exit 1; }; };;
2715 esac
2716 build=$ac_cv_build
2717 ac_save_IFS=$IFS; IFS='-'
2718 set x $ac_cv_build
2719 shift
2720 build_cpu=$1
2721 build_vendor=$2
2722 shift; shift
2723 # Remember, the first character of IFS is used to create $*,
2724 # except with old shells:
2725 build_os=$*
2726 IFS=$ac_save_IFS
2727 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2728
2729
2730 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2731 $as_echo_n "checking host system type... " >&6; }
2732 if test "${ac_cv_host+set}" = set; then
2733 $as_echo_n "(cached) " >&6
2734 else
2735 if test "x$host_alias" = x; then
2736 ac_cv_host=$ac_cv_build
2737 else
2738 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2739 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2740 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2741 { (exit 1); exit 1; }; }
2742 fi
2743
2744 fi
2745 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2746 $as_echo "$ac_cv_host" >&6; }
2747 case $ac_cv_host in
2748 *-*-*) ;;
2749 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2750 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2751 { (exit 1); exit 1; }; };;
2752 esac
2753 host=$ac_cv_host
2754 ac_save_IFS=$IFS; IFS='-'
2755 set x $ac_cv_host
2756 shift
2757 host_cpu=$1
2758 host_vendor=$2
2759 shift; shift
2760 # Remember, the first character of IFS is used to create $*,
2761 # except with old shells:
2762 host_os=$*
2763 IFS=$ac_save_IFS
2764 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2765
2766
2767 DEPDIR="${am__leading_dot}deps"
2768
2769 ac_config_commands="$ac_config_commands depfiles"
2770
2771
2772 am_make=${MAKE-make}
2773 cat > confinc << 'END'
2774 am__doit:
2775 @echo done
2776 .PHONY: am__doit
2777 END
2778 # If we don't find an include directive, just comment out the code.
2779 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2780 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2781 am__include="#"
2782 am__quote=
2783 _am_result=none
2784 # First try GNU make style include.
2785 echo "include confinc" > confmf
2786 # We grep out `Entering directory' and `Leaving directory'
2787 # messages which can occur if `w' ends up in MAKEFLAGS.
2788 # In particular we don't look at `^make:' because GNU make might
2789 # be invoked under some other name (usually "gmake"), in which
2790 # case it prints its new name instead of `make'.
2791 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2792 am__include=include
2793 am__quote=
2794 _am_result=GNU
2795 fi
2796 # Now try BSD make style include.
2797 if test "$am__include" = "#"; then
2798 echo '.include "confinc"' > confmf
2799 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2800 am__include=.include
2801 am__quote="\""
2802 _am_result=BSD
2803 fi
2804 fi
2805
2806
2807 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2808 $as_echo "$_am_result" >&6; }
2809 rm -f confinc confmf
2810
2811 # Check whether --enable-dependency-tracking was given.
2812 if test "${enable_dependency_tracking+set}" = set; then
2813 enableval=$enable_dependency_tracking;
2814 fi
2815
2816 if test "x$enable_dependency_tracking" != xno; then
2817 am_depcomp="$ac_aux_dir/depcomp"
2818 AMDEPBACKSLASH='\'
2819 fi
2820 if test "x$enable_dependency_tracking" != xno; then
2821 AMDEP_TRUE=
2822 AMDEP_FALSE='#'
2823 else
2824 AMDEP_TRUE='#'
2825 AMDEP_FALSE=
2826 fi
2827
2828
2829 ac_ext=c
2830 ac_cpp='$CPP $CPPFLAGS'
2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834 if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2836 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2837 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if test "${ac_cv_prog_CC+set}" = set; then
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2866 else
2867 { $as_echo "$as_me:$LINENO: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871
2872 fi
2873 if test -z "$ac_cv_prog_CC"; then
2874 ac_ct_CC=$CC
2875 # Extract the first word of "gcc", so it can be a program name with args.
2876 set dummy gcc; ac_word=$2
2877 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$ac_ct_CC"; then
2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_ac_ct_CC="gcc"
2893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2903 if test -n "$ac_ct_CC"; then
2904 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2905 $as_echo "$ac_ct_CC" >&6; }
2906 else
2907 { $as_echo "$as_me:$LINENO: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911 if test "x$ac_ct_CC" = x; then
2912 CC=""
2913 else
2914 case $cross_compiling:$ac_tool_warned in
2915 yes:)
2916 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 ac_tool_warned=yes ;;
2919 esac
2920 CC=$ac_ct_CC
2921 fi
2922 else
2923 CC="$ac_cv_prog_CC"
2924 fi
2925
2926 if test -z "$CC"; then
2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2929 set dummy ${ac_tool_prefix}cc; ac_word=$2
2930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if test "${ac_cv_prog_CC+set}" = set; then
2933 $as_echo_n "(cached) " >&6
2934 else
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_CC="${ac_tool_prefix}cc"
2946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
2955 CC=$ac_cv_prog_CC
2956 if test -n "$CC"; then
2957 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2958 $as_echo "$CC" >&6; }
2959 else
2960 { $as_echo "$as_me:$LINENO: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964
2965 fi
2966 fi
2967 if test -z "$CC"; then
2968 # Extract the first word of "cc", so it can be a program name with args.
2969 set dummy cc; ac_word=$2
2970 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_CC+set}" = set; then
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 ac_prog_rejected=no
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2987 ac_prog_rejected=yes
2988 continue
2989 fi
2990 ac_cv_prog_CC="cc"
2991 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 if test $ac_prog_rejected = yes; then
2999 # We found a bogon in the path, so make sure we never use it.
3000 set dummy $ac_cv_prog_CC
3001 shift
3002 if test $# != 0; then
3003 # We chose a different compiler from the bogus one.
3004 # However, it has the same basename, so the bogon will be chosen
3005 # first if we set CC to just the basename; use the full file name.
3006 shift
3007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3008 fi
3009 fi
3010 fi
3011 fi
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3016 else
3017 { $as_echo "$as_me:$LINENO: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022 fi
3023 if test -z "$CC"; then
3024 if test -n "$ac_tool_prefix"; then
3025 for ac_prog in cl.exe
3026 do
3027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3029 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if test "${ac_cv_prog_CC+set}" = set; then
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048 done
3049 done
3050 IFS=$as_save_IFS
3051
3052 fi
3053 fi
3054 CC=$ac_cv_prog_CC
3055 if test -n "$CC"; then
3056 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3057 $as_echo "$CC" >&6; }
3058 else
3059 { $as_echo "$as_me:$LINENO: result: no" >&5
3060 $as_echo "no" >&6; }
3061 fi
3062
3063
3064 test -n "$CC" && break
3065 done
3066 fi
3067 if test -z "$CC"; then
3068 ac_ct_CC=$CC
3069 for ac_prog in cl.exe
3070 do
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy $ac_prog; ac_word=$2
3073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088 ac_cv_prog_ac_ct_CC="$ac_prog"
3089 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3099 if test -n "$ac_ct_CC"; then
3100 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3101 $as_echo "$ac_ct_CC" >&6; }
3102 else
3103 { $as_echo "$as_me:$LINENO: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 test -n "$ac_ct_CC" && break
3109 done
3110
3111 if test "x$ac_ct_CC" = x; then
3112 CC=""
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115 yes:)
3116 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118 ac_tool_warned=yes ;;
3119 esac
3120 CC=$ac_ct_CC
3121 fi
3122 fi
3123
3124 fi
3125
3126
3127 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3130 See \`config.log' for more details." >&5
3131 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3132 See \`config.log' for more details." >&2;}
3133 { (exit 1); exit 1; }; }; }
3134
3135 # Provide some information about the compiler.
3136 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3137 set X $ac_compile
3138 ac_compiler=$2
3139 { (ac_try="$ac_compiler --version >&5"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3145 $as_echo "$ac_try_echo") >&5
3146 (eval "$ac_compiler --version >&5") 2>&5
3147 ac_status=$?
3148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }
3150 { (ac_try="$ac_compiler -v >&5"
3151 case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3156 $as_echo "$ac_try_echo") >&5
3157 (eval "$ac_compiler -v >&5") 2>&5
3158 ac_status=$?
3159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }
3161 { (ac_try="$ac_compiler -V >&5"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3167 $as_echo "$ac_try_echo") >&5
3168 (eval "$ac_compiler -V >&5") 2>&5
3169 ac_status=$?
3170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }
3172
3173 cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h. */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3179
3180 int
3181 main ()
3182 {
3183
3184 ;
3185 return 0;
3186 }
3187 _ACEOF
3188 ac_clean_files_save=$ac_clean_files
3189 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3190 # Try to create an executable without -o first, disregard a.out.
3191 # It will help us diagnose broken compilers, and finding out an intuition
3192 # of exeext.
3193 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3194 $as_echo_n "checking for C compiler default output file name... " >&6; }
3195 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3196
3197 # The possible output files:
3198 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3199
3200 ac_rmfiles=
3201 for ac_file in $ac_files
3202 do
3203 case $ac_file in
3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3206 esac
3207 done
3208 rm -f $ac_rmfiles
3209
3210 if { (ac_try="$ac_link_default"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3216 $as_echo "$ac_try_echo") >&5
3217 (eval "$ac_link_default") 2>&5
3218 ac_status=$?
3219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; then
3221 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3222 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3223 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3224 # so that the user can short-circuit this test for compilers unknown to
3225 # Autoconf.
3226 for ac_file in $ac_files ''
3227 do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3231 ;;
3232 [ab].out )
3233 # We found the default executable, but exeext='' is most
3234 # certainly right.
3235 break;;
3236 *.* )
3237 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3238 then :; else
3239 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240 fi
3241 # We set ac_cv_exeext here because the later test for it is not
3242 # safe: cross compilers may not add the suffix if given an `-o'
3243 # argument, so we may need to know it at that point already.
3244 # Even if this section looks crufty: it has the advantage of
3245 # actually working.
3246 break;;
3247 * )
3248 break;;
3249 esac
3250 done
3251 test "$ac_cv_exeext" = no && ac_cv_exeext=
3252
3253 else
3254 ac_file=''
3255 fi
3256
3257 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3258 $as_echo "$ac_file" >&6; }
3259 if test -z "$ac_file"; then
3260 $as_echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3266 See \`config.log' for more details." >&5
3267 $as_echo "$as_me: error: C compiler cannot create executables
3268 See \`config.log' for more details." >&2;}
3269 { (exit 77); exit 77; }; }; }
3270 fi
3271
3272 ac_exeext=$ac_cv_exeext
3273
3274 # Check that the compiler produces executables we can run. If not, either
3275 # the compiler is broken, or we cross compile.
3276 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3277 $as_echo_n "checking whether the C compiler works... " >&6; }
3278 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3279 # If not cross compiling, check that we can run a simple program.
3280 if test "$cross_compiling" != yes; then
3281 if { ac_try='./$ac_file'
3282 { (case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3287 $as_echo "$ac_try_echo") >&5
3288 (eval "$ac_try") 2>&5
3289 ac_status=$?
3290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; }; then
3292 cross_compiling=no
3293 else
3294 if test "$cross_compiling" = maybe; then
3295 cross_compiling=yes
3296 else
3297 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3300 If you meant to cross compile, use \`--host'.
3301 See \`config.log' for more details." >&5
3302 $as_echo "$as_me: error: cannot run C compiled programs.
3303 If you meant to cross compile, use \`--host'.
3304 See \`config.log' for more details." >&2;}
3305 { (exit 1); exit 1; }; }; }
3306 fi
3307 fi
3308 fi
3309 { $as_echo "$as_me:$LINENO: result: yes" >&5
3310 $as_echo "yes" >&6; }
3311
3312 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3313 ac_clean_files=$ac_clean_files_save
3314 # Check that the compiler produces executables we can run. If not, either
3315 # the compiler is broken, or we cross compile.
3316 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3317 $as_echo_n "checking whether we are cross compiling... " >&6; }
3318 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3319 $as_echo "$cross_compiling" >&6; }
3320
3321 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3322 $as_echo_n "checking for suffix of executables... " >&6; }
3323 if { (ac_try="$ac_link"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3329 $as_echo "$ac_try_echo") >&5
3330 (eval "$ac_link") 2>&5
3331 ac_status=$?
3332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; then
3334 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3335 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3336 # work properly (i.e., refer to `conftest.exe'), while it won't with
3337 # `rm'.
3338 for ac_file in conftest.exe conftest conftest.*; do
3339 test -f "$ac_file" || continue
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3343 break;;
3344 * ) break;;
3345 esac
3346 done
3347 else
3348 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3351 See \`config.log' for more details." >&5
3352 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3353 See \`config.log' for more details." >&2;}
3354 { (exit 1); exit 1; }; }; }
3355 fi
3356
3357 rm -f conftest$ac_cv_exeext
3358 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3359 $as_echo "$ac_cv_exeext" >&6; }
3360
3361 rm -f conftest.$ac_ext
3362 EXEEXT=$ac_cv_exeext
3363 ac_exeext=$EXEEXT
3364 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3365 $as_echo_n "checking for suffix of object files... " >&6; }
3366 if test "${ac_cv_objext+set}" = set; then
3367 $as_echo_n "(cached) " >&6
3368 else
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h. */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375
3376 int
3377 main ()
3378 {
3379
3380 ;
3381 return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.o conftest.obj
3385 if { (ac_try="$ac_compile"
3386 case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3391 $as_echo "$ac_try_echo") >&5
3392 (eval "$ac_compile") 2>&5
3393 ac_status=$?
3394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; then
3396 for ac_file in conftest.o conftest.obj conftest.*; do
3397 test -f "$ac_file" || continue;
3398 case $ac_file in
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3400 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3401 break;;
3402 esac
3403 done
3404 else
3405 $as_echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3411 See \`config.log' for more details." >&5
3412 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3413 See \`config.log' for more details." >&2;}
3414 { (exit 1); exit 1; }; }; }
3415 fi
3416
3417 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3418 fi
3419 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3420 $as_echo "$ac_cv_objext" >&6; }
3421 OBJEXT=$ac_cv_objext
3422 ac_objext=$OBJEXT
3423 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3424 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3425 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3426 $as_echo_n "(cached) " >&6
3427 else
3428 cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h. */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3434
3435 int
3436 main ()
3437 {
3438 #ifndef __GNUC__
3439 choke me
3440 #endif
3441
3442 ;
3443 return 0;
3444 }
3445 _ACEOF
3446 rm -f conftest.$ac_objext
3447 if { (ac_try="$ac_compile"
3448 case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451 esac
3452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3453 $as_echo "$ac_try_echo") >&5
3454 (eval "$ac_compile") 2>conftest.er1
3455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } && {
3461 test -z "$ac_c_werror_flag" ||
3462 test ! -s conftest.err
3463 } && test -s conftest.$ac_objext; then
3464 ac_compiler_gnu=yes
3465 else
3466 $as_echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 ac_compiler_gnu=no
3470 fi
3471
3472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3474
3475 fi
3476 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3477 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3478 if test $ac_compiler_gnu = yes; then
3479 GCC=yes
3480 else
3481 GCC=
3482 fi
3483 ac_test_CFLAGS=${CFLAGS+set}
3484 ac_save_CFLAGS=$CFLAGS
3485 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3486 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3487 if test "${ac_cv_prog_cc_g+set}" = set; then
3488 $as_echo_n "(cached) " >&6
3489 else
3490 ac_save_c_werror_flag=$ac_c_werror_flag
3491 ac_c_werror_flag=yes
3492 ac_cv_prog_cc_g=no
3493 CFLAGS="-g"
3494 cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h. */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500
3501 int
3502 main ()
3503 {
3504
3505 ;
3506 return 0;
3507 }
3508 _ACEOF
3509 rm -f conftest.$ac_objext
3510 if { (ac_try="$ac_compile"
3511 case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514 esac
3515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3516 $as_echo "$ac_try_echo") >&5
3517 (eval "$ac_compile") 2>conftest.er1
3518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } && {
3524 test -z "$ac_c_werror_flag" ||
3525 test ! -s conftest.err
3526 } && test -s conftest.$ac_objext; then
3527 ac_cv_prog_cc_g=yes
3528 else
3529 $as_echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 CFLAGS=""
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h. */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539
3540 int
3541 main ()
3542 {
3543
3544 ;
3545 return 0;
3546 }
3547 _ACEOF
3548 rm -f conftest.$ac_objext
3549 if { (ac_try="$ac_compile"
3550 case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553 esac
3554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3555 $as_echo "$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 $as_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 :
3567 else
3568 $as_echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3572 CFLAGS="-g"
3573 cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h. */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3579
3580 int
3581 main ()
3582 {
3583
3584 ;
3585 return 0;
3586 }
3587 _ACEOF
3588 rm -f conftest.$ac_objext
3589 if { (ac_try="$ac_compile"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3595 $as_echo "$ac_try_echo") >&5
3596 (eval "$ac_compile") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } && {
3603 test -z "$ac_c_werror_flag" ||
3604 test ! -s conftest.err
3605 } && test -s conftest.$ac_objext; then
3606 ac_cv_prog_cc_g=yes
3607 else
3608 $as_echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611
3612 fi
3613
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 fi
3616
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 fi
3619
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 ac_c_werror_flag=$ac_save_c_werror_flag
3622 fi
3623 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3624 $as_echo "$ac_cv_prog_cc_g" >&6; }
3625 if test "$ac_test_CFLAGS" = set; then
3626 CFLAGS=$ac_save_CFLAGS
3627 elif test $ac_cv_prog_cc_g = yes; then
3628 if test "$GCC" = yes; then
3629 CFLAGS="-g -O2"
3630 else
3631 CFLAGS="-g"
3632 fi
3633 else
3634 if test "$GCC" = yes; then
3635 CFLAGS="-O2"
3636 else
3637 CFLAGS=
3638 fi
3639 fi
3640 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3641 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3642 if test "${ac_cv_prog_cc_c89+set}" = set; then
3643 $as_echo_n "(cached) " >&6
3644 else
3645 ac_cv_prog_cc_c89=no
3646 ac_save_CC=$CC
3647 cat >conftest.$ac_ext <<_ACEOF
3648 /* confdefs.h. */
3649 _ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3653 #include <stdarg.h>
3654 #include <stdio.h>
3655 #include <sys/types.h>
3656 #include <sys/stat.h>
3657 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3658 struct buf { int x; };
3659 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3660 static char *e (p, i)
3661 char **p;
3662 int i;
3663 {
3664 return p[i];
3665 }
3666 static char *f (char * (*g) (char **, int), char **p, ...)
3667 {
3668 char *s;
3669 va_list v;
3670 va_start (v,p);
3671 s = g (p, va_arg (v,int));
3672 va_end (v);
3673 return s;
3674 }
3675
3676 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3677 function prototypes and stuff, but not '\xHH' hex character constants.
3678 These don't provoke an error unfortunately, instead are silently treated
3679 as 'x'. The following induces an error, until -std is added to get
3680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3681 array size at least. It's necessary to write '\x00'==0 to get something
3682 that's true only with -std. */
3683 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3684
3685 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3686 inside strings and character constants. */
3687 #define FOO(x) 'x'
3688 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3689
3690 int test (int i, double x);
3691 struct s1 {int (*f) (int a);};
3692 struct s2 {int (*f) (double a);};
3693 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3694 int argc;
3695 char **argv;
3696 int
3697 main ()
3698 {
3699 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3700 ;
3701 return 0;
3702 }
3703 _ACEOF
3704 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3706 do
3707 CC="$ac_save_CC $ac_arg"
3708 rm -f conftest.$ac_objext
3709 if { (ac_try="$ac_compile"
3710 case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713 esac
3714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3715 $as_echo "$ac_try_echo") >&5
3716 (eval "$ac_compile") 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } && {
3723 test -z "$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 } && test -s conftest.$ac_objext; then
3726 ac_cv_prog_cc_c89=$ac_arg
3727 else
3728 $as_echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731
3732 fi
3733
3734 rm -f core conftest.err conftest.$ac_objext
3735 test "x$ac_cv_prog_cc_c89" != "xno" && break
3736 done
3737 rm -f conftest.$ac_ext
3738 CC=$ac_save_CC
3739
3740 fi
3741 # AC_CACHE_VAL
3742 case "x$ac_cv_prog_cc_c89" in
3743 x)
3744 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3745 $as_echo "none needed" >&6; } ;;
3746 xno)
3747 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3748 $as_echo "unsupported" >&6; } ;;
3749 *)
3750 CC="$CC $ac_cv_prog_cc_c89"
3751 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3752 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3753 esac
3754
3755
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761
3762 depcc="$CC" am_compiler_list=
3763
3764 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3765 $as_echo_n "checking dependency style of $depcc... " >&6; }
3766 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3767 $as_echo_n "(cached) " >&6
3768 else
3769 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3770 # We make a subdir and do the tests there. Otherwise we can end up
3771 # making bogus files that we don't know about and never remove. For
3772 # instance it was reported that on HP-UX the gcc test will end up
3773 # making a dummy file named `D' -- because `-MD' means `put the output
3774 # in D'.
3775 mkdir conftest.dir
3776 # Copy depcomp to subdir because otherwise we won't find it if we're
3777 # using a relative directory.
3778 cp "$am_depcomp" conftest.dir
3779 cd conftest.dir
3780 # We will build objects and dependencies in a subdirectory because
3781 # it helps to detect inapplicable dependency modes. For instance
3782 # both Tru64's cc and ICC support -MD to output dependencies as a
3783 # side effect of compilation, but ICC will put the dependencies in
3784 # the current directory while Tru64 will put them in the object
3785 # directory.
3786 mkdir sub
3787
3788 am_cv_CC_dependencies_compiler_type=none
3789 if test "$am_compiler_list" = ""; then
3790 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3791 fi
3792 for depmode in $am_compiler_list; do
3793 # Setup a source with many dependencies, because some compilers
3794 # like to wrap large dependency lists on column 80 (with \), and
3795 # we should not choose a depcomp mode which is confused by this.
3796 #
3797 # We need to recreate these files for each test, as the compiler may
3798 # overwrite some of them when testing with obscure command lines.
3799 # This happens at least with the AIX C compiler.
3800 : > sub/conftest.c
3801 for i in 1 2 3 4 5 6; do
3802 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3803 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3804 # Solaris 8's {/usr,}/bin/sh.
3805 touch sub/conftst$i.h
3806 done
3807 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3808
3809 case $depmode in
3810 nosideeffect)
3811 # after this tag, mechanisms are not by side-effect, so they'll
3812 # only be used when explicitly requested
3813 if test "x$enable_dependency_tracking" = xyes; then
3814 continue
3815 else
3816 break
3817 fi
3818 ;;
3819 none) break ;;
3820 esac
3821 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3822 # mode. It turns out that the SunPro C++ compiler does not properly
3823 # handle `-M -o', and we need to detect this.
3824 if depmode=$depmode \
3825 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3826 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3827 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3828 >/dev/null 2>conftest.err &&
3829 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3830 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3831 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3832 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3833 # icc doesn't choke on unknown options, it will just issue warnings
3834 # or remarks (even with -Werror). So we grep stderr for any message
3835 # that says an option was ignored or not supported.
3836 # When given -MP, icc 7.0 and 7.1 complain thusly:
3837 # icc: Command line warning: ignoring option '-M'; no argument required
3838 # The diagnosis changed in icc 8.0:
3839 # icc: Command line remark: option '-MP' not supported
3840 if (grep 'ignoring option' conftest.err ||
3841 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3842 am_cv_CC_dependencies_compiler_type=$depmode
3843 break
3844 fi
3845 fi
3846 done
3847
3848 cd ..
3849 rm -rf conftest.dir
3850 else
3851 am_cv_CC_dependencies_compiler_type=none
3852 fi
3853
3854 fi
3855 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3856 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3857 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3858
3859 if
3860 test "x$enable_dependency_tracking" != xno \
3861 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3862 am__fastdepCC_TRUE=
3863 am__fastdepCC_FALSE='#'
3864 else
3865 am__fastdepCC_TRUE='#'
3866 am__fastdepCC_FALSE=
3867 fi
3868
3869
3870 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3871 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3872 if test "${lt_cv_path_SED+set}" = set; then
3873 $as_echo_n "(cached) " >&6
3874 else
3875 # Loop through the user's path and test for sed and gsed.
3876 # Then use that list of sed's as ones to test for truncation.
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH
3879 do
3880 IFS=$as_save_IFS
3881 test -z "$as_dir" && as_dir=.
3882 for lt_ac_prog in sed gsed; do
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3885 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3886 fi
3887 done
3888 done
3889 done
3890 IFS=$as_save_IFS
3891 lt_ac_max=0
3892 lt_ac_count=0
3893 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3894 # along with /bin/sed that truncates output.
3895 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3896 test ! -f $lt_ac_sed && continue
3897 cat /dev/null > conftest.in
3898 lt_ac_count=0
3899 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3900 # Check for GNU sed and select it if it is found.
3901 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3902 lt_cv_path_SED=$lt_ac_sed
3903 break
3904 fi
3905 while true; do
3906 cat conftest.in conftest.in >conftest.tmp
3907 mv conftest.tmp conftest.in
3908 cp conftest.in conftest.nl
3909 echo >>conftest.nl
3910 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3911 cmp -s conftest.out conftest.nl || break
3912 # 10000 chars as input seems more than enough
3913 test $lt_ac_count -gt 10 && break
3914 lt_ac_count=`expr $lt_ac_count + 1`
3915 if test $lt_ac_count -gt $lt_ac_max; then
3916 lt_ac_max=$lt_ac_count
3917 lt_cv_path_SED=$lt_ac_sed
3918 fi
3919 done
3920 done
3921
3922 fi
3923
3924 SED=$lt_cv_path_SED
3925
3926 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3927 $as_echo "$SED" >&6; }
3928
3929 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3930 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3931 if test "${ac_cv_path_GREP+set}" = set; then
3932 $as_echo_n "(cached) " >&6
3933 else
3934 if test -z "$GREP"; then
3935 ac_path_GREP_found=false
3936 # Loop through the user's path and test for each of PROGNAME-LIST
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3939 do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_prog in grep ggrep; do
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3945 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3946 # Check for GNU ac_path_GREP and select it if it is found.
3947 # Check for GNU $ac_path_GREP
3948 case `"$ac_path_GREP" --version 2>&1` in
3949 *GNU*)
3950 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3951 *)
3952 ac_count=0
3953 $as_echo_n 0123456789 >"conftest.in"
3954 while :
3955 do
3956 cat "conftest.in" "conftest.in" >"conftest.tmp"
3957 mv "conftest.tmp" "conftest.in"
3958 cp "conftest.in" "conftest.nl"
3959 $as_echo 'GREP' >> "conftest.nl"
3960 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3962 ac_count=`expr $ac_count + 1`
3963 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3964 # Best one so far, save it but keep looking for a better one
3965 ac_cv_path_GREP="$ac_path_GREP"
3966 ac_path_GREP_max=$ac_count
3967 fi
3968 # 10*(2^10) chars as input seems more than enough
3969 test $ac_count -gt 10 && break
3970 done
3971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3972 esac
3973
3974 $ac_path_GREP_found && break 3
3975 done
3976 done
3977 done
3978 IFS=$as_save_IFS
3979 if test -z "$ac_cv_path_GREP"; then
3980 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3981 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3982 { (exit 1); exit 1; }; }
3983 fi
3984 else
3985 ac_cv_path_GREP=$GREP
3986 fi
3987
3988 fi
3989 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3990 $as_echo "$ac_cv_path_GREP" >&6; }
3991 GREP="$ac_cv_path_GREP"
3992
3993
3994 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3995 $as_echo_n "checking for egrep... " >&6; }
3996 if test "${ac_cv_path_EGREP+set}" = set; then
3997 $as_echo_n "(cached) " >&6
3998 else
3999 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4000 then ac_cv_path_EGREP="$GREP -E"
4001 else
4002 if test -z "$EGREP"; then
4003 ac_path_EGREP_found=false
4004 # Loop through the user's path and test for each of PROGNAME-LIST
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007 do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_prog in egrep; do
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4013 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4014 # Check for GNU ac_path_EGREP and select it if it is found.
4015 # Check for GNU $ac_path_EGREP
4016 case `"$ac_path_EGREP" --version 2>&1` in
4017 *GNU*)
4018 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4019 *)
4020 ac_count=0
4021 $as_echo_n 0123456789 >"conftest.in"
4022 while :
4023 do
4024 cat "conftest.in" "conftest.in" >"conftest.tmp"
4025 mv "conftest.tmp" "conftest.in"
4026 cp "conftest.in" "conftest.nl"
4027 $as_echo 'EGREP' >> "conftest.nl"
4028 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4030 ac_count=`expr $ac_count + 1`
4031 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4032 # Best one so far, save it but keep looking for a better one
4033 ac_cv_path_EGREP="$ac_path_EGREP"
4034 ac_path_EGREP_max=$ac_count
4035 fi
4036 # 10*(2^10) chars as input seems more than enough
4037 test $ac_count -gt 10 && break
4038 done
4039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040 esac
4041
4042 $ac_path_EGREP_found && break 3
4043 done
4044 done
4045 done
4046 IFS=$as_save_IFS
4047 if test -z "$ac_cv_path_EGREP"; then
4048 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4049 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4050 { (exit 1); exit 1; }; }
4051 fi
4052 else
4053 ac_cv_path_EGREP=$EGREP
4054 fi
4055
4056 fi
4057 fi
4058 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4059 $as_echo "$ac_cv_path_EGREP" >&6; }
4060 EGREP="$ac_cv_path_EGREP"
4061
4062
4063
4064 # Check whether --with-gnu-ld was given.
4065 if test "${with_gnu_ld+set}" = set; then
4066 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4067 else
4068 with_gnu_ld=no
4069 fi
4070
4071 ac_prog=ld
4072 if test "$GCC" = yes; then
4073 # Check if gcc -print-prog-name=ld gives a path.
4074 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4075 $as_echo_n "checking for ld used by $CC... " >&6; }
4076 case $host in
4077 *-*-mingw*)
4078 # gcc leaves a trailing carriage return which upsets mingw
4079 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4080 *)
4081 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4082 esac
4083 case $ac_prog in
4084 # Accept absolute paths.
4085 [\\/]* | ?:[\\/]*)
4086 re_direlt='/[^/][^/]*/\.\./'
4087 # Canonicalize the pathname of ld
4088 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4089 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4090 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4091 done
4092 test -z "$LD" && LD="$ac_prog"
4093 ;;
4094 "")
4095 # If it fails, then pretend we aren't using GCC.
4096 ac_prog=ld
4097 ;;
4098 *)
4099 # If it is relative, then search for the first ld in PATH.
4100 with_gnu_ld=unknown
4101 ;;
4102 esac
4103 elif test "$with_gnu_ld" = yes; then
4104 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4105 $as_echo_n "checking for GNU ld... " >&6; }
4106 else
4107 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4108 $as_echo_n "checking for non-GNU ld... " >&6; }
4109 fi
4110 if test "${lt_cv_path_LD+set}" = set; then
4111 $as_echo_n "(cached) " >&6
4112 else
4113 if test -z "$LD"; then
4114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4115 for ac_dir in $PATH; do
4116 IFS="$lt_save_ifs"
4117 test -z "$ac_dir" && ac_dir=.
4118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4119 lt_cv_path_LD="$ac_dir/$ac_prog"
4120 # Check to see if the program is GNU ld. I'd rather use --version,
4121 # but apparently some variants of GNU ld only accept -v.
4122 # Break only if it was the GNU/non-GNU ld that we prefer.
4123 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4124 *GNU* | *'with BFD'*)
4125 test "$with_gnu_ld" != no && break
4126 ;;
4127 *)
4128 test "$with_gnu_ld" != yes && break
4129 ;;
4130 esac
4131 fi
4132 done
4133 IFS="$lt_save_ifs"
4134 else
4135 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4136 fi
4137 fi
4138
4139 LD="$lt_cv_path_LD"
4140 if test -n "$LD"; then
4141 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4142 $as_echo "$LD" >&6; }
4143 else
4144 { $as_echo "$as_me:$LINENO: result: no" >&5
4145 $as_echo "no" >&6; }
4146 fi
4147 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4148 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4149 { (exit 1); exit 1; }; }
4150 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4151 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4152 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4153 $as_echo_n "(cached) " >&6
4154 else
4155 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4156 case `$LD -v 2>&1 </dev/null` in
4157 *GNU* | *'with BFD'*)
4158 lt_cv_prog_gnu_ld=yes
4159 ;;
4160 *)
4161 lt_cv_prog_gnu_ld=no
4162 ;;
4163 esac
4164 fi
4165 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4166 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4167 with_gnu_ld=$lt_cv_prog_gnu_ld
4168
4169
4170 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4171 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4172 if test "${lt_cv_ld_reload_flag+set}" = set; then
4173 $as_echo_n "(cached) " >&6
4174 else
4175 lt_cv_ld_reload_flag='-r'
4176 fi
4177 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4178 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4179 reload_flag=$lt_cv_ld_reload_flag
4180 case $reload_flag in
4181 "" | " "*) ;;
4182 *) reload_flag=" $reload_flag" ;;
4183 esac
4184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4185 case $host_os in
4186 darwin*)
4187 if test "$GCC" = yes; then
4188 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4189 else
4190 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4191 fi
4192 ;;
4193 esac
4194
4195 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4196 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4197 if test "${lt_cv_path_NM+set}" = set; then
4198 $as_echo_n "(cached) " >&6
4199 else
4200 if test -n "$NM"; then
4201 # Let the user override the test.
4202 lt_cv_path_NM="$NM"
4203 else
4204 lt_nm_to_check="${ac_tool_prefix}nm"
4205 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4206 lt_nm_to_check="$lt_nm_to_check nm"
4207 fi
4208 for lt_tmp_nm in $lt_nm_to_check; do
4209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4210 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4211 IFS="$lt_save_ifs"
4212 test -z "$ac_dir" && ac_dir=.
4213 tmp_nm="$ac_dir/$lt_tmp_nm"
4214 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4215 # Check to see if the nm accepts a BSD-compat flag.
4216 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4217 # nm: unknown option "B" ignored
4218 # Tru64's nm complains that /dev/null is an invalid object file
4219 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4220 */dev/null* | *'Invalid file or object type'*)
4221 lt_cv_path_NM="$tmp_nm -B"
4222 break
4223 ;;
4224 *)
4225 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4226 */dev/null*)
4227 lt_cv_path_NM="$tmp_nm -p"
4228 break
4229 ;;
4230 *)
4231 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4232 continue # so that we can try to find one that supports BSD flags
4233 ;;
4234 esac
4235 ;;
4236 esac
4237 fi
4238 done
4239 IFS="$lt_save_ifs"
4240 done
4241 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4242 fi
4243 fi
4244 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4245 $as_echo "$lt_cv_path_NM" >&6; }
4246 NM="$lt_cv_path_NM"
4247
4248 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4249 $as_echo_n "checking whether ln -s works... " >&6; }
4250 LN_S=$as_ln_s
4251 if test "$LN_S" = "ln -s"; then
4252 { $as_echo "$as_me:$LINENO: result: yes" >&5
4253 $as_echo "yes" >&6; }
4254 else
4255 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4256 $as_echo "no, using $LN_S" >&6; }
4257 fi
4258
4259 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4260 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4261 if test "${lt_cv_deplibs_check_method+set}" = set; then
4262 $as_echo_n "(cached) " >&6
4263 else
4264 lt_cv_file_magic_cmd='$MAGIC_CMD'
4265 lt_cv_file_magic_test_file=
4266 lt_cv_deplibs_check_method='unknown'
4267 # Need to set the preceding variable on all platforms that support
4268 # interlibrary dependencies.
4269 # 'none' -- dependencies not supported.
4270 # `unknown' -- same as none, but documents that we really don't know.
4271 # 'pass_all' -- all dependencies passed with no checks.
4272 # 'test_compile' -- check by making test program.
4273 # 'file_magic [[regex]]' -- check by looking for files in library path
4274 # which responds to the $file_magic_cmd with a given extended regex.
4275 # If you have `file' or equivalent on your system and you're not sure
4276 # whether `pass_all' will *always* work, you probably want this one.
4277
4278 case $host_os in
4279 aix[4-9]*)
4280 lt_cv_deplibs_check_method=pass_all
4281 ;;
4282
4283 beos*)
4284 lt_cv_deplibs_check_method=pass_all
4285 ;;
4286
4287 bsdi[45]*)
4288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4289 lt_cv_file_magic_cmd='/usr/bin/file -L'
4290 lt_cv_file_magic_test_file=/shlib/libc.so
4291 ;;
4292
4293 cygwin*)
4294 # func_win32_libid is a shell function defined in ltmain.sh
4295 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4296 lt_cv_file_magic_cmd='func_win32_libid'
4297 ;;
4298
4299 mingw* | pw32*)
4300 # Base MSYS/MinGW do not provide the 'file' command needed by
4301 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4302 # unless we find 'file', for example because we are cross-compiling.
4303 if ( file / ) >/dev/null 2>&1; then
4304 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4305 lt_cv_file_magic_cmd='func_win32_libid'
4306 else
4307 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4308 lt_cv_file_magic_cmd='$OBJDUMP -f'
4309 fi
4310 ;;
4311
4312 darwin* | rhapsody*)
4313 lt_cv_deplibs_check_method=pass_all
4314 ;;
4315
4316 freebsd* | dragonfly*)
4317 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4318 case $host_cpu in
4319 i*86 )
4320 # Not sure whether the presence of OpenBSD here was a mistake.
4321 # Let's accept both of them until this is cleared up.
4322 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4323 lt_cv_file_magic_cmd=/usr/bin/file
4324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4325 ;;
4326 esac
4327 else
4328 lt_cv_deplibs_check_method=pass_all
4329 fi
4330 ;;
4331
4332 gnu*)
4333 lt_cv_deplibs_check_method=pass_all
4334 ;;
4335
4336 hpux10.20* | hpux11*)
4337 lt_cv_file_magic_cmd=/usr/bin/file
4338 case $host_cpu in
4339 ia64*)
4340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4341 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4342 ;;
4343 hppa*64*)
4344 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]'
4345 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4346 ;;
4347 *)
4348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4349 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4350 ;;
4351 esac
4352 ;;
4353
4354 interix[3-9]*)
4355 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4357 ;;
4358
4359 irix5* | irix6* | nonstopux*)
4360 case $LD in
4361 *-32|*"-32 ") libmagic=32-bit;;
4362 *-n32|*"-n32 ") libmagic=N32;;
4363 *-64|*"-64 ") libmagic=64-bit;;
4364 *) libmagic=never-match;;
4365 esac
4366 lt_cv_deplibs_check_method=pass_all
4367 ;;
4368
4369 # This must be Linux ELF.
4370 linux* | k*bsd*-gnu)
4371 lt_cv_deplibs_check_method=pass_all
4372 ;;
4373
4374 netbsd*)
4375 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4377 else
4378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4379 fi
4380 ;;
4381
4382 newos6*)
4383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4384 lt_cv_file_magic_cmd=/usr/bin/file
4385 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4386 ;;
4387
4388 nto-qnx*)
4389 lt_cv_deplibs_check_method=unknown
4390 ;;
4391
4392 openbsd*)
4393 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4395 else
4396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4397 fi
4398 ;;
4399
4400 osf3* | osf4* | osf5*)
4401 lt_cv_deplibs_check_method=pass_all
4402 ;;
4403
4404 rdos*)
4405 lt_cv_deplibs_check_method=pass_all
4406 ;;
4407
4408 solaris*)
4409 lt_cv_deplibs_check_method=pass_all
4410 ;;
4411
4412 sysv4 | sysv4.3*)
4413 case $host_vendor in
4414 motorola)
4415 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]'
4416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4417 ;;
4418 ncr)
4419 lt_cv_deplibs_check_method=pass_all
4420 ;;
4421 sequent)
4422 lt_cv_file_magic_cmd='/bin/file'
4423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4424 ;;
4425 sni)
4426 lt_cv_file_magic_cmd='/bin/file'
4427 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4428 lt_cv_file_magic_test_file=/lib/libc.so
4429 ;;
4430 siemens)
4431 lt_cv_deplibs_check_method=pass_all
4432 ;;
4433 pc)
4434 lt_cv_deplibs_check_method=pass_all
4435 ;;
4436 esac
4437 ;;
4438
4439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4440 lt_cv_deplibs_check_method=pass_all
4441 ;;
4442 esac
4443
4444 fi
4445 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4446 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4447 file_magic_cmd=$lt_cv_file_magic_cmd
4448 deplibs_check_method=$lt_cv_deplibs_check_method
4449 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4450
4451
4452
4453
4454 # If no C compiler was specified, use CC.
4455 LTCC=${LTCC-"$CC"}
4456
4457 # If no C compiler flags were specified, use CFLAGS.
4458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4459
4460 # Allow CC to be a program name with arguments.
4461 compiler=$CC
4462
4463
4464 # Check whether --enable-libtool-lock was given.
4465 if test "${enable_libtool_lock+set}" = set; then
4466 enableval=$enable_libtool_lock;
4467 fi
4468
4469 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4470
4471 # Some flags need to be propagated to the compiler or linker for good
4472 # libtool support.
4473 case $host in
4474 ia64-*-hpux*)
4475 # Find out which ABI we are using.
4476 echo 'int i;' > conftest.$ac_ext
4477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4478 (eval $ac_compile) 2>&5
4479 ac_status=$?
4480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; then
4482 case `/usr/bin/file conftest.$ac_objext` in
4483 *ELF-32*)
4484 HPUX_IA64_MODE="32"
4485 ;;
4486 *ELF-64*)
4487 HPUX_IA64_MODE="64"
4488 ;;
4489 esac
4490 fi
4491 rm -rf conftest*
4492 ;;
4493 *-*-irix6*)
4494 # Find out which ABI we are using.
4495 echo '#line 4495 "configure"' > conftest.$ac_ext
4496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4497 (eval $ac_compile) 2>&5
4498 ac_status=$?
4499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; then
4501 if test "$lt_cv_prog_gnu_ld" = yes; then
4502 case `/usr/bin/file conftest.$ac_objext` in
4503 *32-bit*)
4504 LD="${LD-ld} -melf32bsmip"
4505 ;;
4506 *N32*)
4507 LD="${LD-ld} -melf32bmipn32"
4508 ;;
4509 *64-bit*)
4510 LD="${LD-ld} -melf64bmip"
4511 ;;
4512 esac
4513 else
4514 case `/usr/bin/file conftest.$ac_objext` in
4515 *32-bit*)
4516 LD="${LD-ld} -32"
4517 ;;
4518 *N32*)
4519 LD="${LD-ld} -n32"
4520 ;;
4521 *64-bit*)
4522 LD="${LD-ld} -64"
4523 ;;
4524 esac
4525 fi
4526 fi
4527 rm -rf conftest*
4528 ;;
4529
4530 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4531 s390*-*linux*|sparc*-*linux*)
4532 # Find out which ABI we are using.
4533 echo 'int i;' > conftest.$ac_ext
4534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4535 (eval $ac_compile) 2>&5
4536 ac_status=$?
4537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; then
4539 case `/usr/bin/file conftest.o` in
4540 *32-bit*)
4541 case $host in
4542 x86_64-*kfreebsd*-gnu)
4543 LD="${LD-ld} -m elf_i386_fbsd"
4544 ;;
4545 x86_64-*linux*)
4546 LD="${LD-ld} -m elf_i386"
4547 ;;
4548 ppc64-*linux*|powerpc64-*linux*)
4549 LD="${LD-ld} -m elf32ppclinux"
4550 ;;
4551 s390x-*linux*)
4552 LD="${LD-ld} -m elf_s390"
4553 ;;
4554 sparc64-*linux*)
4555 LD="${LD-ld} -m elf32_sparc"
4556 ;;
4557 esac
4558 ;;
4559 *64-bit*)
4560 case $host in
4561 x86_64-*kfreebsd*-gnu)
4562 LD="${LD-ld} -m elf_x86_64_fbsd"
4563 ;;
4564 x86_64-*linux*)
4565 LD="${LD-ld} -m elf_x86_64"
4566 ;;
4567 ppc*-*linux*|powerpc*-*linux*)
4568 LD="${LD-ld} -m elf64ppc"
4569 ;;
4570 s390*-*linux*)
4571 LD="${LD-ld} -m elf64_s390"
4572 ;;
4573 sparc*-*linux*)
4574 LD="${LD-ld} -m elf64_sparc"
4575 ;;
4576 esac
4577 ;;
4578 esac
4579 fi
4580 rm -rf conftest*
4581 ;;
4582
4583 *-*-sco3.2v5*)
4584 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4585 SAVE_CFLAGS="$CFLAGS"
4586 CFLAGS="$CFLAGS -belf"
4587 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4588 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4589 if test "${lt_cv_cc_needs_belf+set}" = set; then
4590 $as_echo_n "(cached) " >&6
4591 else
4592 ac_ext=c
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597
4598 cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h. */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604
4605 int
4606 main ()
4607 {
4608
4609 ;
4610 return 0;
4611 }
4612 _ACEOF
4613 rm -f conftest.$ac_objext conftest$ac_exeext
4614 if { (ac_try="$ac_link"
4615 case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618 esac
4619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4620 $as_echo "$ac_try_echo") >&5
4621 (eval "$ac_link") 2>conftest.er1
4622 ac_status=$?
4623 grep -v '^ *+' conftest.er1 >conftest.err
4624 rm -f conftest.er1
4625 cat conftest.err >&5
4626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } && {
4628 test -z "$ac_c_werror_flag" ||
4629 test ! -s conftest.err
4630 } && test -s conftest$ac_exeext && {
4631 test "$cross_compiling" = yes ||
4632 $as_test_x conftest$ac_exeext
4633 }; then
4634 lt_cv_cc_needs_belf=yes
4635 else
4636 $as_echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4638
4639 lt_cv_cc_needs_belf=no
4640 fi
4641
4642 rm -rf conftest.dSYM
4643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4644 conftest$ac_exeext conftest.$ac_ext
4645 ac_ext=c
4646 ac_cpp='$CPP $CPPFLAGS'
4647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650
4651 fi
4652 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4653 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4654 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4655 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4656 CFLAGS="$SAVE_CFLAGS"
4657 fi
4658 ;;
4659 sparc*-*solaris*)
4660 # Find out which ABI we are using.
4661 echo 'int i;' > conftest.$ac_ext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>&5
4664 ac_status=$?
4665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; then
4667 case `/usr/bin/file conftest.o` in
4668 *64-bit*)
4669 case $lt_cv_prog_gnu_ld in
4670 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4671 *)
4672 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4673 LD="${LD-ld} -64"
4674 fi
4675 ;;
4676 esac
4677 ;;
4678 esac
4679 fi
4680 rm -rf conftest*
4681 ;;
4682
4683
4684 esac
4685
4686 need_locks="$enable_libtool_lock"
4687
4688
4689 ac_ext=c
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4695 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4696 # On Suns, sometimes $CPP names a directory.
4697 if test -n "$CPP" && test -d "$CPP"; then
4698 CPP=
4699 fi
4700 if test -z "$CPP"; then
4701 if test "${ac_cv_prog_CPP+set}" = set; then
4702 $as_echo_n "(cached) " >&6
4703 else
4704 # Double quotes because CPP needs to be expanded
4705 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4706 do
4707 ac_preproc_ok=false
4708 for ac_c_preproc_warn_flag in '' yes
4709 do
4710 # Use a header file that comes with gcc, so configuring glibc
4711 # with a fresh cross-compiler works.
4712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4713 # <limits.h> exists even on freestanding compilers.
4714 # On the NeXT, cc -E runs the code through the compiler's parser,
4715 # not just through cpp. "Syntax error" is here to catch this case.
4716 cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h. */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4722 #ifdef __STDC__
4723 # include <limits.h>
4724 #else
4725 # include <assert.h>
4726 #endif
4727 Syntax error
4728 _ACEOF
4729 if { (ac_try="$ac_cpp conftest.$ac_ext"
4730 case "(($ac_try" in
4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732 *) ac_try_echo=$ac_try;;
4733 esac
4734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4735 $as_echo "$ac_try_echo") >&5
4736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4737 ac_status=$?
4738 grep -v '^ *+' conftest.er1 >conftest.err
4739 rm -f conftest.er1
4740 cat conftest.err >&5
4741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } >/dev/null && {
4743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4744 test ! -s conftest.err
4745 }; then
4746 :
4747 else
4748 $as_echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 # Broken: fails on valid input.
4752 continue
4753 fi
4754
4755 rm -f conftest.err conftest.$ac_ext
4756
4757 # OK, works on sane cases. Now check whether nonexistent headers
4758 # can be detected and how.
4759 cat >conftest.$ac_ext <<_ACEOF
4760 /* confdefs.h. */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4765 #include <ac_nonexistent.h>
4766 _ACEOF
4767 if { (ac_try="$ac_cpp conftest.$ac_ext"
4768 case "(($ac_try" in
4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770 *) ac_try_echo=$ac_try;;
4771 esac
4772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4773 $as_echo "$ac_try_echo") >&5
4774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4775 ac_status=$?
4776 grep -v '^ *+' conftest.er1 >conftest.err
4777 rm -f conftest.er1
4778 cat conftest.err >&5
4779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } >/dev/null && {
4781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4782 test ! -s conftest.err
4783 }; then
4784 # Broken: success on invalid input.
4785 continue
4786 else
4787 $as_echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790 # Passes both tests.
4791 ac_preproc_ok=:
4792 break
4793 fi
4794
4795 rm -f conftest.err conftest.$ac_ext
4796
4797 done
4798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4799 rm -f conftest.err conftest.$ac_ext
4800 if $ac_preproc_ok; then
4801 break
4802 fi
4803
4804 done
4805 ac_cv_prog_CPP=$CPP
4806
4807 fi
4808 CPP=$ac_cv_prog_CPP
4809 else
4810 ac_cv_prog_CPP=$CPP
4811 fi
4812 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4813 $as_echo "$CPP" >&6; }
4814 ac_preproc_ok=false
4815 for ac_c_preproc_warn_flag in '' yes
4816 do
4817 # Use a header file that comes with gcc, so configuring glibc
4818 # with a fresh cross-compiler works.
4819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4820 # <limits.h> exists even on freestanding compilers.
4821 # On the NeXT, cc -E runs the code through the compiler's parser,
4822 # not just through cpp. "Syntax error" is here to catch this case.
4823 cat >conftest.$ac_ext <<_ACEOF
4824 /* confdefs.h. */
4825 _ACEOF
4826 cat confdefs.h >>conftest.$ac_ext
4827 cat >>conftest.$ac_ext <<_ACEOF
4828 /* end confdefs.h. */
4829 #ifdef __STDC__
4830 # include <limits.h>
4831 #else
4832 # include <assert.h>
4833 #endif
4834 Syntax error
4835 _ACEOF
4836 if { (ac_try="$ac_cpp conftest.$ac_ext"
4837 case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840 esac
4841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4842 $as_echo "$ac_try_echo") >&5
4843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null && {
4850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4851 test ! -s conftest.err
4852 }; then
4853 :
4854 else
4855 $as_echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858 # Broken: fails on valid input.
4859 continue
4860 fi
4861
4862 rm -f conftest.err conftest.$ac_ext
4863
4864 # OK, works on sane cases. Now check whether nonexistent headers
4865 # can be detected and how.
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 #include <ac_nonexistent.h>
4873 _ACEOF
4874 if { (ac_try="$ac_cpp conftest.$ac_ext"
4875 case "(($ac_try" in
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4878 esac
4879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4880 $as_echo "$ac_try_echo") >&5
4881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } >/dev/null && {
4888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4889 test ! -s conftest.err
4890 }; then
4891 # Broken: success on invalid input.
4892 continue
4893 else
4894 $as_echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4896
4897 # Passes both tests.
4898 ac_preproc_ok=:
4899 break
4900 fi
4901
4902 rm -f conftest.err conftest.$ac_ext
4903
4904 done
4905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4906 rm -f conftest.err conftest.$ac_ext
4907 if $ac_preproc_ok; then
4908 :
4909 else
4910 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4912 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4913 See \`config.log' for more details." >&5
4914 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4915 See \`config.log' for more details." >&2;}
4916 { (exit 1); exit 1; }; }; }
4917 fi
4918
4919 ac_ext=c
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924
4925
4926 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4927 $as_echo_n "checking for ANSI C header files... " >&6; }
4928 if test "${ac_cv_header_stdc+set}" = set; then
4929 $as_echo_n "(cached) " >&6
4930 else
4931 cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h. */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937 #include <stdlib.h>
4938 #include <stdarg.h>
4939 #include <string.h>
4940 #include <float.h>
4941
4942 int
4943 main ()
4944 {
4945
4946 ;
4947 return 0;
4948 }
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (ac_try="$ac_compile"
4952 case "(($ac_try" in
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4955 esac
4956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4957 $as_echo "$ac_try_echo") >&5
4958 (eval "$ac_compile") 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } && {
4965 test -z "$ac_c_werror_flag" ||
4966 test ! -s conftest.err
4967 } && test -s conftest.$ac_objext; then
4968 ac_cv_header_stdc=yes
4969 else
4970 $as_echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973 ac_cv_header_stdc=no
4974 fi
4975
4976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977
4978 if test $ac_cv_header_stdc = yes; then
4979 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 #include <string.h>
4987
4988 _ACEOF
4989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4990 $EGREP "memchr" >/dev/null 2>&1; then
4991 :
4992 else
4993 ac_cv_header_stdc=no
4994 fi
4995 rm -f conftest*
4996
4997 fi
4998
4999 if test $ac_cv_header_stdc = yes; then
5000 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5001 cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h. */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 #include <stdlib.h>
5008
5009 _ACEOF
5010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5011 $EGREP "free" >/dev/null 2>&1; then
5012 :
5013 else
5014 ac_cv_header_stdc=no
5015 fi
5016 rm -f conftest*
5017
5018 fi
5019
5020 if test $ac_cv_header_stdc = yes; then
5021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5022 if test "$cross_compiling" = yes; then
5023 :
5024 else
5025 cat >conftest.$ac_ext <<_ACEOF
5026 /* confdefs.h. */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5031 #include <ctype.h>
5032 #include <stdlib.h>
5033 #if ((' ' & 0x0FF) == 0x020)
5034 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5035 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5036 #else
5037 # define ISLOWER(c) \
5038 (('a' <= (c) && (c) <= 'i') \
5039 || ('j' <= (c) && (c) <= 'r') \
5040 || ('s' <= (c) && (c) <= 'z'))
5041 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5042 #endif
5043
5044 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5045 int
5046 main ()
5047 {
5048 int i;
5049 for (i = 0; i < 256; i++)
5050 if (XOR (islower (i), ISLOWER (i))
5051 || toupper (i) != TOUPPER (i))
5052 return 2;
5053 return 0;
5054 }
5055 _ACEOF
5056 rm -f conftest$ac_exeext
5057 if { (ac_try="$ac_link"
5058 case "(($ac_try" in
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5061 esac
5062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5063 $as_echo "$ac_try_echo") >&5
5064 (eval "$ac_link") 2>&5
5065 ac_status=$?
5066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5068 { (case "(($ac_try" in
5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070 *) ac_try_echo=$ac_try;;
5071 esac
5072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5073 $as_echo "$ac_try_echo") >&5
5074 (eval "$ac_try") 2>&5
5075 ac_status=$?
5076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 :
5079 else
5080 $as_echo "$as_me: program exited with status $ac_status" >&5
5081 $as_echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5083
5084 ( exit $ac_status )
5085 ac_cv_header_stdc=no
5086 fi
5087 rm -rf conftest.dSYM
5088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5089 fi
5090
5091
5092 fi
5093 fi
5094 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5095 $as_echo "$ac_cv_header_stdc" >&6; }
5096 if test $ac_cv_header_stdc = yes; then
5097
5098 cat >>confdefs.h <<\_ACEOF
5099 #define STDC_HEADERS 1
5100 _ACEOF
5101
5102 fi
5103
5104 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5115 inttypes.h stdint.h unistd.h
5116 do
5117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5118 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5119 $as_echo_n "checking for $ac_header... " >&6; }
5120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5121 $as_echo_n "(cached) " >&6
5122 else
5123 cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h. */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 $ac_includes_default
5130
5131 #include <$ac_header>
5132 _ACEOF
5133 rm -f conftest.$ac_objext
5134 if { (ac_try="$ac_compile"
5135 case "(($ac_try" in
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5138 esac
5139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5140 $as_echo "$ac_try_echo") >&5
5141 (eval "$ac_compile") 2>conftest.er1
5142 ac_status=$?
5143 grep -v '^ *+' conftest.er1 >conftest.err
5144 rm -f conftest.er1
5145 cat conftest.err >&5
5146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } && {
5148 test -z "$ac_c_werror_flag" ||
5149 test ! -s conftest.err
5150 } && test -s conftest.$ac_objext; then
5151 eval "$as_ac_Header=yes"
5152 else
5153 $as_echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156 eval "$as_ac_Header=no"
5157 fi
5158
5159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 fi
5161 ac_res=`eval 'as_val=${'$as_ac_Header'}
5162 $as_echo "$as_val"'`
5163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5164 $as_echo "$ac_res" >&6; }
5165 as_val=`eval 'as_val=${'$as_ac_Header'}
5166 $as_echo "$as_val"'`
5167 if test "x$as_val" = x""yes; then
5168 cat >>confdefs.h <<_ACEOF
5169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5170 _ACEOF
5171
5172 fi
5173
5174 done
5175
5176
5177
5178 for ac_header in dlfcn.h
5179 do
5180 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5182 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5183 $as_echo_n "checking for $ac_header... " >&6; }
5184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5185 $as_echo_n "(cached) " >&6
5186 fi
5187 ac_res=`eval 'as_val=${'$as_ac_Header'}
5188 $as_echo "$as_val"'`
5189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5190 $as_echo "$ac_res" >&6; }
5191 else
5192 # Is the header compilable?
5193 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5194 $as_echo_n "checking $ac_header usability... " >&6; }
5195 cat >conftest.$ac_ext <<_ACEOF
5196 /* confdefs.h. */
5197 _ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h. */
5201 $ac_includes_default
5202 #include <$ac_header>
5203 _ACEOF
5204 rm -f conftest.$ac_objext
5205 if { (ac_try="$ac_compile"
5206 case "(($ac_try" in
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5209 esac
5210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5211 $as_echo "$ac_try_echo") >&5
5212 (eval "$ac_compile") 2>conftest.er1
5213 ac_status=$?
5214 grep -v '^ *+' conftest.er1 >conftest.err
5215 rm -f conftest.er1
5216 cat conftest.err >&5
5217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } && {
5219 test -z "$ac_c_werror_flag" ||
5220 test ! -s conftest.err
5221 } && test -s conftest.$ac_objext; then
5222 ac_header_compiler=yes
5223 else
5224 $as_echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5226
5227 ac_header_compiler=no
5228 fi
5229
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5232 $as_echo "$ac_header_compiler" >&6; }
5233
5234 # Is the header present?
5235 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5236 $as_echo_n "checking $ac_header presence... " >&6; }
5237 cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h. */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 #include <$ac_header>
5244 _ACEOF
5245 if { (ac_try="$ac_cpp conftest.$ac_ext"
5246 case "(($ac_try" in
5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248 *) ac_try_echo=$ac_try;;
5249 esac
5250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5251 $as_echo "$ac_try_echo") >&5
5252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } >/dev/null && {
5259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 }; then
5262 ac_header_preproc=yes
5263 else
5264 $as_echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5266
5267 ac_header_preproc=no
5268 fi
5269
5270 rm -f conftest.err conftest.$ac_ext
5271 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5272 $as_echo "$ac_header_preproc" >&6; }
5273
5274 # So? What about this header?
5275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5276 yes:no: )
5277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5278 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5280 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5281 ac_header_preproc=yes
5282 ;;
5283 no:yes:* )
5284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5285 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5287 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5289 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5291 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5293 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5295 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5296 ( cat <<\_ASBOX
5297 ## ---------------------------------------------------------------------- ##
5298 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5299 ## ---------------------------------------------------------------------- ##
5300 _ASBOX
5301 ) | sed "s/^/$as_me: WARNING: /" >&2
5302 ;;
5303 esac
5304 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5305 $as_echo_n "checking for $ac_header... " >&6; }
5306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5307 $as_echo_n "(cached) " >&6
5308 else
5309 eval "$as_ac_Header=\$ac_header_preproc"
5310 fi
5311 ac_res=`eval 'as_val=${'$as_ac_Header'}
5312 $as_echo "$as_val"'`
5313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5314 $as_echo "$ac_res" >&6; }
5315
5316 fi
5317 as_val=`eval 'as_val=${'$as_ac_Header'}
5318 $as_echo "$as_val"'`
5319 if test "x$as_val" = x""yes; then
5320 cat >>confdefs.h <<_ACEOF
5321 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5322 _ACEOF
5323
5324 fi
5325
5326 done
5327
5328 ac_ext=cpp
5329 ac_cpp='$CXXCPP $CPPFLAGS'
5330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5333 if test -z "$CXX"; then
5334 if test -n "$CCC"; then
5335 CXX=$CCC
5336 else
5337 if test -n "$ac_tool_prefix"; then
5338 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5339 do
5340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if test "${ac_cv_prog_CXX+set}" = set; then
5345 $as_echo_n "(cached) " >&6
5346 else
5347 if test -n "$CXX"; then
5348 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5360 fi
5361 done
5362 done
5363 IFS=$as_save_IFS
5364
5365 fi
5366 fi
5367 CXX=$ac_cv_prog_CXX
5368 if test -n "$CXX"; then
5369 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5370 $as_echo "$CXX" >&6; }
5371 else
5372 { $as_echo "$as_me:$LINENO: result: no" >&5
5373 $as_echo "no" >&6; }
5374 fi
5375
5376
5377 test -n "$CXX" && break
5378 done
5379 fi
5380 if test -z "$CXX"; then
5381 ac_ct_CXX=$CXX
5382 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5383 do
5384 # Extract the first word of "$ac_prog", so it can be a program name with args.
5385 set dummy $ac_prog; ac_word=$2
5386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test -n "$ac_ct_CXX"; then
5392 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5393 else
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5396 do
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5401 ac_cv_prog_ac_ct_CXX="$ac_prog"
5402 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 break 2
5404 fi
5405 done
5406 done
5407 IFS=$as_save_IFS
5408
5409 fi
5410 fi
5411 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5412 if test -n "$ac_ct_CXX"; then
5413 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5414 $as_echo "$ac_ct_CXX" >&6; }
5415 else
5416 { $as_echo "$as_me:$LINENO: result: no" >&5
5417 $as_echo "no" >&6; }
5418 fi
5419
5420
5421 test -n "$ac_ct_CXX" && break
5422 done
5423
5424 if test "x$ac_ct_CXX" = x; then
5425 CXX="g++"
5426 else
5427 case $cross_compiling:$ac_tool_warned in
5428 yes:)
5429 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5431 ac_tool_warned=yes ;;
5432 esac
5433 CXX=$ac_ct_CXX
5434 fi
5435 fi
5436
5437 fi
5438 fi
5439 # Provide some information about the compiler.
5440 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5441 set X $ac_compile
5442 ac_compiler=$2
5443 { (ac_try="$ac_compiler --version >&5"
5444 case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447 esac
5448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5449 $as_echo "$ac_try_echo") >&5
5450 (eval "$ac_compiler --version >&5") 2>&5
5451 ac_status=$?
5452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }
5454 { (ac_try="$ac_compiler -v >&5"
5455 case "(($ac_try" in
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5458 esac
5459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5460 $as_echo "$ac_try_echo") >&5
5461 (eval "$ac_compiler -v >&5") 2>&5
5462 ac_status=$?
5463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }
5465 { (ac_try="$ac_compiler -V >&5"
5466 case "(($ac_try" in
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5469 esac
5470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5471 $as_echo "$ac_try_echo") >&5
5472 (eval "$ac_compiler -V >&5") 2>&5
5473 ac_status=$?
5474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }
5476
5477 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5478 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5479 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5480 $as_echo_n "(cached) " >&6
5481 else
5482 cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h. */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488
5489 int
5490 main ()
5491 {
5492 #ifndef __GNUC__
5493 choke me
5494 #endif
5495
5496 ;
5497 return 0;
5498 }
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5502 case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5507 $as_echo "$ac_try_echo") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_cxx_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
5518 ac_compiler_gnu=yes
5519 else
5520 $as_echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5522
5523 ac_compiler_gnu=no
5524 fi
5525
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5528
5529 fi
5530 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5531 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5532 if test $ac_compiler_gnu = yes; then
5533 GXX=yes
5534 else
5535 GXX=
5536 fi
5537 ac_test_CXXFLAGS=${CXXFLAGS+set}
5538 ac_save_CXXFLAGS=$CXXFLAGS
5539 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5540 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5541 if test "${ac_cv_prog_cxx_g+set}" = set; then
5542 $as_echo_n "(cached) " >&6
5543 else
5544 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5545 ac_cxx_werror_flag=yes
5546 ac_cv_prog_cxx_g=no
5547 CXXFLAGS="-g"
5548 cat >conftest.$ac_ext <<_ACEOF
5549 /* confdefs.h. */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5554
5555 int
5556 main ()
5557 {
5558
5559 ;
5560 return 0;
5561 }
5562 _ACEOF
5563 rm -f conftest.$ac_objext
5564 if { (ac_try="$ac_compile"
5565 case "(($ac_try" in
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5568 esac
5569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5570 $as_echo "$ac_try_echo") >&5
5571 (eval "$ac_compile") 2>conftest.er1
5572 ac_status=$?
5573 grep -v '^ *+' conftest.er1 >conftest.err
5574 rm -f conftest.er1
5575 cat conftest.err >&5
5576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } && {
5578 test -z "$ac_cxx_werror_flag" ||
5579 test ! -s conftest.err
5580 } && test -s conftest.$ac_objext; then
5581 ac_cv_prog_cxx_g=yes
5582 else
5583 $as_echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 CXXFLAGS=""
5587 cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h. */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593
5594 int
5595 main ()
5596 {
5597
5598 ;
5599 return 0;
5600 }
5601 _ACEOF
5602 rm -f conftest.$ac_objext
5603 if { (ac_try="$ac_compile"
5604 case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607 esac
5608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5609 $as_echo "$ac_try_echo") >&5
5610 (eval "$ac_compile") 2>conftest.er1
5611 ac_status=$?
5612 grep -v '^ *+' conftest.er1 >conftest.err
5613 rm -f conftest.er1
5614 cat conftest.err >&5
5615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } && {
5617 test -z "$ac_cxx_werror_flag" ||
5618 test ! -s conftest.err
5619 } && test -s conftest.$ac_objext; then
5620 :
5621 else
5622 $as_echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5624
5625 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5626 CXXFLAGS="-g"
5627 cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h. */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633
5634 int
5635 main ()
5636 {
5637
5638 ;
5639 return 0;
5640 }
5641 _ACEOF
5642 rm -f conftest.$ac_objext
5643 if { (ac_try="$ac_compile"
5644 case "(($ac_try" in
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5647 esac
5648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5649 $as_echo "$ac_try_echo") >&5
5650 (eval "$ac_compile") 2>conftest.er1
5651 ac_status=$?
5652 grep -v '^ *+' conftest.er1 >conftest.err
5653 rm -f conftest.er1
5654 cat conftest.err >&5
5655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } && {
5657 test -z "$ac_cxx_werror_flag" ||
5658 test ! -s conftest.err
5659 } && test -s conftest.$ac_objext; then
5660 ac_cv_prog_cxx_g=yes
5661 else
5662 $as_echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5664
5665
5666 fi
5667
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 fi
5670
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672 fi
5673
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5676 fi
5677 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5678 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5679 if test "$ac_test_CXXFLAGS" = set; then
5680 CXXFLAGS=$ac_save_CXXFLAGS
5681 elif test $ac_cv_prog_cxx_g = yes; then
5682 if test "$GXX" = yes; then
5683 CXXFLAGS="-g -O2"
5684 else
5685 CXXFLAGS="-g"
5686 fi
5687 else
5688 if test "$GXX" = yes; then
5689 CXXFLAGS="-O2"
5690 else
5691 CXXFLAGS=
5692 fi
5693 fi
5694 ac_ext=cpp
5695 ac_cpp='$CXXCPP $CPPFLAGS'
5696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5699
5700 depcc="$CXX" am_compiler_list=
5701
5702 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5703 $as_echo_n "checking dependency style of $depcc... " >&6; }
5704 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5708 # We make a subdir and do the tests there. Otherwise we can end up
5709 # making bogus files that we don't know about and never remove. For
5710 # instance it was reported that on HP-UX the gcc test will end up
5711 # making a dummy file named `D' -- because `-MD' means `put the output
5712 # in D'.
5713 mkdir conftest.dir
5714 # Copy depcomp to subdir because otherwise we won't find it if we're
5715 # using a relative directory.
5716 cp "$am_depcomp" conftest.dir
5717 cd conftest.dir
5718 # We will build objects and dependencies in a subdirectory because
5719 # it helps to detect inapplicable dependency modes. For instance
5720 # both Tru64's cc and ICC support -MD to output dependencies as a
5721 # side effect of compilation, but ICC will put the dependencies in
5722 # the current directory while Tru64 will put them in the object
5723 # directory.
5724 mkdir sub
5725
5726 am_cv_CXX_dependencies_compiler_type=none
5727 if test "$am_compiler_list" = ""; then
5728 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5729 fi
5730 for depmode in $am_compiler_list; do
5731 # Setup a source with many dependencies, because some compilers
5732 # like to wrap large dependency lists on column 80 (with \), and
5733 # we should not choose a depcomp mode which is confused by this.
5734 #
5735 # We need to recreate these files for each test, as the compiler may
5736 # overwrite some of them when testing with obscure command lines.
5737 # This happens at least with the AIX C compiler.
5738 : > sub/conftest.c
5739 for i in 1 2 3 4 5 6; do
5740 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5741 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5742 # Solaris 8's {/usr,}/bin/sh.
5743 touch sub/conftst$i.h
5744 done
5745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5746
5747 case $depmode in
5748 nosideeffect)
5749 # after this tag, mechanisms are not by side-effect, so they'll
5750 # only be used when explicitly requested
5751 if test "x$enable_dependency_tracking" = xyes; then
5752 continue
5753 else
5754 break
5755 fi
5756 ;;
5757 none) break ;;
5758 esac
5759 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5760 # mode. It turns out that the SunPro C++ compiler does not properly
5761 # handle `-M -o', and we need to detect this.
5762 if depmode=$depmode \
5763 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5764 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5765 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5766 >/dev/null 2>conftest.err &&
5767 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5768 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5769 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5770 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5771 # icc doesn't choke on unknown options, it will just issue warnings
5772 # or remarks (even with -Werror). So we grep stderr for any message
5773 # that says an option was ignored or not supported.
5774 # When given -MP, icc 7.0 and 7.1 complain thusly:
5775 # icc: Command line warning: ignoring option '-M'; no argument required
5776 # The diagnosis changed in icc 8.0:
5777 # icc: Command line remark: option '-MP' not supported
5778 if (grep 'ignoring option' conftest.err ||
5779 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5780 am_cv_CXX_dependencies_compiler_type=$depmode
5781 break
5782 fi
5783 fi
5784 done
5785
5786 cd ..
5787 rm -rf conftest.dir
5788 else
5789 am_cv_CXX_dependencies_compiler_type=none
5790 fi
5791
5792 fi
5793 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5794 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5795 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5796
5797 if
5798 test "x$enable_dependency_tracking" != xno \
5799 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5800 am__fastdepCXX_TRUE=
5801 am__fastdepCXX_FALSE='#'
5802 else
5803 am__fastdepCXX_TRUE='#'
5804 am__fastdepCXX_FALSE=
5805 fi
5806
5807
5808
5809
5810 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5811 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5812 (test "X$CXX" != "Xg++"))) ; then
5813 ac_ext=cpp
5814 ac_cpp='$CXXCPP $CPPFLAGS'
5815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5818 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5819 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5820 if test -z "$CXXCPP"; then
5821 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5822 $as_echo_n "(cached) " >&6
5823 else
5824 # Double quotes because CXXCPP needs to be expanded
5825 for CXXCPP in "$CXX -E" "/lib/cpp"
5826 do
5827 ac_preproc_ok=false
5828 for ac_cxx_preproc_warn_flag in '' yes
5829 do
5830 # Use a header file that comes with gcc, so configuring glibc
5831 # with a fresh cross-compiler works.
5832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5833 # <limits.h> exists even on freestanding compilers.
5834 # On the NeXT, cc -E runs the code through the compiler's parser,
5835 # not just through cpp. "Syntax error" is here to catch this case.
5836 cat >conftest.$ac_ext <<_ACEOF
5837 /* confdefs.h. */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5842 #ifdef __STDC__
5843 # include <limits.h>
5844 #else
5845 # include <assert.h>
5846 #endif
5847 Syntax error
5848 _ACEOF
5849 if { (ac_try="$ac_cpp conftest.$ac_ext"
5850 case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853 esac
5854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5855 $as_echo "$ac_try_echo") >&5
5856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } >/dev/null && {
5863 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5864 test ! -s conftest.err
5865 }; then
5866 :
5867 else
5868 $as_echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5870
5871 # Broken: fails on valid input.
5872 continue
5873 fi
5874
5875 rm -f conftest.err conftest.$ac_ext
5876
5877 # OK, works on sane cases. Now check whether nonexistent headers
5878 # can be detected and how.
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <ac_nonexistent.h>
5886 _ACEOF
5887 if { (ac_try="$ac_cpp conftest.$ac_ext"
5888 case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891 esac
5892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5893 $as_echo "$ac_try_echo") >&5
5894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } >/dev/null && {
5901 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5902 test ! -s conftest.err
5903 }; then
5904 # Broken: success on invalid input.
5905 continue
5906 else
5907 $as_echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 # Passes both tests.
5911 ac_preproc_ok=:
5912 break
5913 fi
5914
5915 rm -f conftest.err conftest.$ac_ext
5916
5917 done
5918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5919 rm -f conftest.err conftest.$ac_ext
5920 if $ac_preproc_ok; then
5921 break
5922 fi
5923
5924 done
5925 ac_cv_prog_CXXCPP=$CXXCPP
5926
5927 fi
5928 CXXCPP=$ac_cv_prog_CXXCPP
5929 else
5930 ac_cv_prog_CXXCPP=$CXXCPP
5931 fi
5932 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5933 $as_echo "$CXXCPP" >&6; }
5934 ac_preproc_ok=false
5935 for ac_cxx_preproc_warn_flag in '' yes
5936 do
5937 # Use a header file that comes with gcc, so configuring glibc
5938 # with a fresh cross-compiler works.
5939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5940 # <limits.h> exists even on freestanding compilers.
5941 # On the NeXT, cc -E runs the code through the compiler's parser,
5942 # not just through cpp. "Syntax error" is here to catch this case.
5943 cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h. */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 #ifdef __STDC__
5950 # include <limits.h>
5951 #else
5952 # include <assert.h>
5953 #endif
5954 Syntax error
5955 _ACEOF
5956 if { (ac_try="$ac_cpp conftest.$ac_ext"
5957 case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960 esac
5961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5962 $as_echo "$ac_try_echo") >&5
5963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5964 ac_status=$?
5965 grep -v '^ *+' conftest.er1 >conftest.err
5966 rm -f conftest.er1
5967 cat conftest.err >&5
5968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } >/dev/null && {
5970 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5971 test ! -s conftest.err
5972 }; then
5973 :
5974 else
5975 $as_echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5977
5978 # Broken: fails on valid input.
5979 continue
5980 fi
5981
5982 rm -f conftest.err conftest.$ac_ext
5983
5984 # OK, works on sane cases. Now check whether nonexistent headers
5985 # can be detected and how.
5986 cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h. */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <ac_nonexistent.h>
5993 _ACEOF
5994 if { (ac_try="$ac_cpp conftest.$ac_ext"
5995 case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998 esac
5999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6000 $as_echo "$ac_try_echo") >&5
6001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } >/dev/null && {
6008 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6009 test ! -s conftest.err
6010 }; then
6011 # Broken: success on invalid input.
6012 continue
6013 else
6014 $as_echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 # Passes both tests.
6018 ac_preproc_ok=:
6019 break
6020 fi
6021
6022 rm -f conftest.err conftest.$ac_ext
6023
6024 done
6025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6026 rm -f conftest.err conftest.$ac_ext
6027 if $ac_preproc_ok; then
6028 :
6029 else
6030 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6032 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6033 See \`config.log' for more details." >&5
6034 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6035 See \`config.log' for more details." >&2;}
6036 { (exit 1); exit 1; }; }; }
6037 fi
6038
6039 ac_ext=cpp
6040 ac_cpp='$CXXCPP $CPPFLAGS'
6041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6044
6045 fi
6046
6047
6048 ac_ext=f
6049 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6050 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6051 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6052 if test -n "$ac_tool_prefix"; then
6053 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
6054 do
6055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if test "${ac_cv_prog_F77+set}" = set; then
6060 $as_echo_n "(cached) " >&6
6061 else
6062 if test -n "$F77"; then
6063 ac_cv_prog_F77="$F77" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6073 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6075 fi
6076 done
6077 done
6078 IFS=$as_save_IFS
6079
6080 fi
6081 fi
6082 F77=$ac_cv_prog_F77
6083 if test -n "$F77"; then
6084 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6085 $as_echo "$F77" >&6; }
6086 else
6087 { $as_echo "$as_me:$LINENO: result: no" >&5
6088 $as_echo "no" >&6; }
6089 fi
6090
6091
6092 test -n "$F77" && break
6093 done
6094 fi
6095 if test -z "$F77"; then
6096 ac_ct_F77=$F77
6097 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
6098 do
6099 # Extract the first word of "$ac_prog", so it can be a program name with args.
6100 set dummy $ac_prog; ac_word=$2
6101 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if test -n "$ac_ct_F77"; then
6107 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6116 ac_cv_prog_ac_ct_F77="$ac_prog"
6117 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120 done
6121 done
6122 IFS=$as_save_IFS
6123
6124 fi
6125 fi
6126 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6127 if test -n "$ac_ct_F77"; then
6128 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6129 $as_echo "$ac_ct_F77" >&6; }
6130 else
6131 { $as_echo "$as_me:$LINENO: result: no" >&5
6132 $as_echo "no" >&6; }
6133 fi
6134
6135
6136 test -n "$ac_ct_F77" && break
6137 done
6138
6139 if test "x$ac_ct_F77" = x; then
6140 F77=""
6141 else
6142 case $cross_compiling:$ac_tool_warned in
6143 yes:)
6144 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6146 ac_tool_warned=yes ;;
6147 esac
6148 F77=$ac_ct_F77
6149 fi
6150 fi
6151
6152
6153 # Provide some information about the compiler.
6154 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6155 set X $ac_compile
6156 ac_compiler=$2
6157 { (ac_try="$ac_compiler --version >&5"
6158 case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161 esac
6162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6163 $as_echo "$ac_try_echo") >&5
6164 (eval "$ac_compiler --version >&5") 2>&5
6165 ac_status=$?
6166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }
6168 { (ac_try="$ac_compiler -v >&5"
6169 case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172 esac
6173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6174 $as_echo "$ac_try_echo") >&5
6175 (eval "$ac_compiler -v >&5") 2>&5
6176 ac_status=$?
6177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }
6179 { (ac_try="$ac_compiler -V >&5"
6180 case "(($ac_try" in
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6183 esac
6184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6185 $as_echo "$ac_try_echo") >&5
6186 (eval "$ac_compiler -V >&5") 2>&5
6187 ac_status=$?
6188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }
6190 rm -f a.out
6191
6192 # If we don't use `.F' as extension, the preprocessor is not run on the
6193 # input file. (Note that this only needs to work for GNU compilers.)
6194 ac_save_ext=$ac_ext
6195 ac_ext=F
6196 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6197 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6198 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6199 $as_echo_n "(cached) " >&6
6200 else
6201 cat >conftest.$ac_ext <<_ACEOF
6202 program main
6203 #ifndef __GNUC__
6204 choke me
6205 #endif
6206
6207 end
6208 _ACEOF
6209 rm -f conftest.$ac_objext
6210 if { (ac_try="$ac_compile"
6211 case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6214 esac
6215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6216 $as_echo "$ac_try_echo") >&5
6217 (eval "$ac_compile") 2>conftest.er1
6218 ac_status=$?
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
6222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } && {
6224 test -z "$ac_f77_werror_flag" ||
6225 test ! -s conftest.err
6226 } && test -s conftest.$ac_objext; then
6227 ac_compiler_gnu=yes
6228 else
6229 $as_echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6231
6232 ac_compiler_gnu=no
6233 fi
6234
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6237
6238 fi
6239 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6240 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6241 ac_ext=$ac_save_ext
6242 ac_test_FFLAGS=${FFLAGS+set}
6243 ac_save_FFLAGS=$FFLAGS
6244 FFLAGS=
6245 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6246 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6247 if test "${ac_cv_prog_f77_g+set}" = set; then
6248 $as_echo_n "(cached) " >&6
6249 else
6250 FFLAGS=-g
6251 cat >conftest.$ac_ext <<_ACEOF
6252 program main
6253
6254 end
6255 _ACEOF
6256 rm -f conftest.$ac_objext
6257 if { (ac_try="$ac_compile"
6258 case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261 esac
6262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6263 $as_echo "$ac_try_echo") >&5
6264 (eval "$ac_compile") 2>conftest.er1
6265 ac_status=$?
6266 grep -v '^ *+' conftest.er1 >conftest.err
6267 rm -f conftest.er1
6268 cat conftest.err >&5
6269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_f77_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest.$ac_objext; then
6274 ac_cv_prog_f77_g=yes
6275 else
6276 $as_echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6278
6279 ac_cv_prog_f77_g=no
6280 fi
6281
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283
6284 fi
6285 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6286 $as_echo "$ac_cv_prog_f77_g" >&6; }
6287 if test "$ac_test_FFLAGS" = set; then
6288 FFLAGS=$ac_save_FFLAGS
6289 elif test $ac_cv_prog_f77_g = yes; then
6290 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6291 FFLAGS="-g -O2"
6292 else
6293 FFLAGS="-g"
6294 fi
6295 else
6296 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6297 FFLAGS="-O2"
6298 else
6299 FFLAGS=
6300 fi
6301 fi
6302
6303 if test $ac_compiler_gnu = yes; then
6304 G77=yes
6305 else
6306 G77=
6307 fi
6308 ac_ext=c
6309 ac_cpp='$CPP $CPPFLAGS'
6310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6313
6314
6315
6316 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6317 # find the maximum length of command line arguments
6318 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6319 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6320 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6321 $as_echo_n "(cached) " >&6
6322 else
6323 i=0
6324 teststring="ABCD"
6325
6326 case $build_os in
6327 msdosdjgpp*)
6328 # On DJGPP, this test can blow up pretty badly due to problems in libc
6329 # (any single argument exceeding 2000 bytes causes a buffer overrun
6330 # during glob expansion). Even if it were fixed, the result of this
6331 # check would be larger than it should be.
6332 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6333 ;;
6334
6335 gnu*)
6336 # Under GNU Hurd, this test is not required because there is
6337 # no limit to the length of command line arguments.
6338 # Libtool will interpret -1 as no limit whatsoever
6339 lt_cv_sys_max_cmd_len=-1;
6340 ;;
6341
6342 cygwin* | mingw*)
6343 # On Win9x/ME, this test blows up -- it succeeds, but takes
6344 # about 5 minutes as the teststring grows exponentially.
6345 # Worse, since 9x/ME are not pre-emptively multitasking,
6346 # you end up with a "frozen" computer, even though with patience
6347 # the test eventually succeeds (with a max line length of 256k).
6348 # Instead, let's just punt: use the minimum linelength reported by
6349 # all of the supported platforms: 8192 (on NT/2K/XP).
6350 lt_cv_sys_max_cmd_len=8192;
6351 ;;
6352
6353 amigaos*)
6354 # On AmigaOS with pdksh, this test takes hours, literally.
6355 # So we just punt and use a minimum line length of 8192.
6356 lt_cv_sys_max_cmd_len=8192;
6357 ;;
6358
6359 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6360 # This has been around since 386BSD, at least. Likely further.
6361 if test -x /sbin/sysctl; then
6362 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6363 elif test -x /usr/sbin/sysctl; then
6364 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6365 else
6366 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6367 fi
6368 # And add a safety zone
6369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6371 ;;
6372
6373 interix*)
6374 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6375 lt_cv_sys_max_cmd_len=196608
6376 ;;
6377
6378 osf*)
6379 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6380 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6381 # nice to cause kernel panics so lets avoid the loop below.
6382 # First set a reasonable default.
6383 lt_cv_sys_max_cmd_len=16384
6384 #
6385 if test -x /sbin/sysconfig; then
6386 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6387 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6388 esac
6389 fi
6390 ;;
6391 sco3.2v5*)
6392 lt_cv_sys_max_cmd_len=102400
6393 ;;
6394 sysv5* | sco5v6* | sysv4.2uw2*)
6395 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6396 if test -n "$kargmax"; then
6397 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6398 else
6399 lt_cv_sys_max_cmd_len=32768
6400 fi
6401 ;;
6402 *)
6403 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6404 if test -n "$lt_cv_sys_max_cmd_len"; then
6405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6407 else
6408 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6409 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6410 = "XX$teststring") >/dev/null 2>&1 &&
6411 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6412 lt_cv_sys_max_cmd_len=$new_result &&
6413 test $i != 17 # 1/2 MB should be enough
6414 do
6415 i=`expr $i + 1`
6416 teststring=$teststring$teststring
6417 done
6418 teststring=
6419 # Add a significant safety factor because C++ compilers can tack on massive
6420 # amounts of additional arguments before passing them to the linker.
6421 # It appears as though 1/2 is a usable value.
6422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6423 fi
6424 ;;
6425 esac
6426
6427 fi
6428
6429 if test -n $lt_cv_sys_max_cmd_len ; then
6430 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6431 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6432 else
6433 { $as_echo "$as_me:$LINENO: result: none" >&5
6434 $as_echo "none" >&6; }
6435 fi
6436
6437
6438
6439
6440
6441 # Check for command to grab the raw symbol name followed by C symbol from nm.
6442 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6443 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6444 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6445 $as_echo_n "(cached) " >&6
6446 else
6447
6448 # These are sane defaults that work on at least a few old systems.
6449 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6450
6451 # Character class describing NM global symbol codes.
6452 symcode='[BCDEGRST]'
6453
6454 # Regexp to match symbols that can be accessed directly from C.
6455 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6456
6457 # Transform an extracted symbol line into a proper C declaration
6458 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6459
6460 # Transform an extracted symbol line into symbol name and symbol address
6461 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'"
6462
6463 # Define system-specific variables.
6464 case $host_os in
6465 aix*)
6466 symcode='[BCDT]'
6467 ;;
6468 cygwin* | mingw* | pw32*)
6469 symcode='[ABCDGISTW]'
6470 ;;
6471 hpux*) # Its linker distinguishes data from code symbols
6472 if test "$host_cpu" = ia64; then
6473 symcode='[ABCDEGRST]'
6474 fi
6475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6476 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'"
6477 ;;
6478 linux* | k*bsd*-gnu)
6479 if test "$host_cpu" = ia64; then
6480 symcode='[ABCDGIRSTW]'
6481 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6482 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'"
6483 fi
6484 ;;
6485 irix* | nonstopux*)
6486 symcode='[BCDEGRST]'
6487 ;;
6488 osf*)
6489 symcode='[BCDEGQRST]'
6490 ;;
6491 solaris*)
6492 symcode='[BDRT]'
6493 ;;
6494 sco3.2v5*)
6495 symcode='[DT]'
6496 ;;
6497 sysv4.2uw2*)
6498 symcode='[DT]'
6499 ;;
6500 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6501 symcode='[ABDT]'
6502 ;;
6503 sysv4)
6504 symcode='[DFNSTU]'
6505 ;;
6506 esac
6507
6508 # Handle CRLF in mingw tool chain
6509 opt_cr=
6510 case $build_os in
6511 mingw*)
6512 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6513 ;;
6514 esac
6515
6516 # If we're using GNU nm, then use its standard symbol codes.
6517 case `$NM -V 2>&1` in
6518 *GNU* | *'with BFD'*)
6519 symcode='[ABCDGIRSTW]' ;;
6520 esac
6521
6522 # Try without a prefix undercore, then with it.
6523 for ac_symprfx in "" "_"; do
6524
6525 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6526 symxfrm="\\1 $ac_symprfx\\2 \\2"
6527
6528 # Write the raw and C identifiers.
6529 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6530
6531 # Check to see that the pipe works correctly.
6532 pipe_works=no
6533
6534 rm -f conftest*
6535 cat > conftest.$ac_ext <<EOF
6536 #ifdef __cplusplus
6537 extern "C" {
6538 #endif
6539 char nm_test_var;
6540 void nm_test_func(){}
6541 #ifdef __cplusplus
6542 }
6543 #endif
6544 int main(){nm_test_var='a';nm_test_func();return(0);}
6545 EOF
6546
6547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6548 (eval $ac_compile) 2>&5
6549 ac_status=$?
6550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; then
6552 # Now try to grab the symbols.
6553 nlist=conftest.nm
6554 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6555 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6556 ac_status=$?
6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && test -s "$nlist"; then
6559 # Try sorting and uniquifying the output.
6560 if sort "$nlist" | uniq > "$nlist"T; then
6561 mv -f "$nlist"T "$nlist"
6562 else
6563 rm -f "$nlist"T
6564 fi
6565
6566 # Make sure that we snagged all the symbols we need.
6567 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6568 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6569 cat <<EOF > conftest.$ac_ext
6570 #ifdef __cplusplus
6571 extern "C" {
6572 #endif
6573
6574 EOF
6575 # Now generate the symbol file.
6576 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6577
6578 cat <<EOF >> conftest.$ac_ext
6579 #if defined (__STDC__) && __STDC__
6580 # define lt_ptr_t void *
6581 #else
6582 # define lt_ptr_t char *
6583 # define const
6584 #endif
6585
6586 /* The mapping between symbol names and symbols. */
6587 const struct {
6588 const char *name;
6589 lt_ptr_t address;
6590 }
6591 lt_preloaded_symbols[] =
6592 {
6593 EOF
6594 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6595 cat <<\EOF >> conftest.$ac_ext
6596 {0, (lt_ptr_t) 0}
6597 };
6598
6599 #ifdef __cplusplus
6600 }
6601 #endif
6602 EOF
6603 # Now try linking the two files.
6604 mv conftest.$ac_objext conftstm.$ac_objext
6605 lt_save_LIBS="$LIBS"
6606 lt_save_CFLAGS="$CFLAGS"
6607 LIBS="conftstm.$ac_objext"
6608 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6610 (eval $ac_link) 2>&5
6611 ac_status=$?
6612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6614 pipe_works=yes
6615 fi
6616 LIBS="$lt_save_LIBS"
6617 CFLAGS="$lt_save_CFLAGS"
6618 else
6619 echo "cannot find nm_test_func in $nlist" >&5
6620 fi
6621 else
6622 echo "cannot find nm_test_var in $nlist" >&5
6623 fi
6624 else
6625 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6626 fi
6627 else
6628 echo "$progname: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6630 fi
6631 rm -rf conftest* conftst*
6632
6633 # Do not use the global_symbol_pipe unless it works.
6634 if test "$pipe_works" = yes; then
6635 break
6636 else
6637 lt_cv_sys_global_symbol_pipe=
6638 fi
6639 done
6640
6641 fi
6642
6643 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6644 lt_cv_sys_global_symbol_to_cdecl=
6645 fi
6646 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6647 { $as_echo "$as_me:$LINENO: result: failed" >&5
6648 $as_echo "failed" >&6; }
6649 else
6650 { $as_echo "$as_me:$LINENO: result: ok" >&5
6651 $as_echo "ok" >&6; }
6652 fi
6653
6654 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6655 $as_echo_n "checking for objdir... " >&6; }
6656 if test "${lt_cv_objdir+set}" = set; then
6657 $as_echo_n "(cached) " >&6
6658 else
6659 rm -f .libs 2>/dev/null
6660 mkdir .libs 2>/dev/null
6661 if test -d .libs; then
6662 lt_cv_objdir=.libs
6663 else
6664 # MS-DOS does not allow filenames that begin with a dot.
6665 lt_cv_objdir=_libs
6666 fi
6667 rmdir .libs 2>/dev/null
6668 fi
6669 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6670 $as_echo "$lt_cv_objdir" >&6; }
6671 objdir=$lt_cv_objdir
6672
6673
6674
6675
6676
6677 case $host_os in
6678 aix3*)
6679 # AIX sometimes has problems with the GCC collect2 program. For some
6680 # reason, if we set the COLLECT_NAMES environment variable, the problems
6681 # vanish in a puff of smoke.
6682 if test "X${COLLECT_NAMES+set}" != Xset; then
6683 COLLECT_NAMES=
6684 export COLLECT_NAMES
6685 fi
6686 ;;
6687 esac
6688
6689 # Sed substitution that helps us do robust quoting. It backslashifies
6690 # metacharacters that are still active within double-quoted strings.
6691 Xsed='sed -e 1s/^X//'
6692 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6693
6694 # Same as above, but do not quote variable references.
6695 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6696
6697 # Sed substitution to delay expansion of an escaped shell variable in a
6698 # double_quote_subst'ed string.
6699 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6700
6701 # Sed substitution to avoid accidental globbing in evaled expressions
6702 no_glob_subst='s/\*/\\\*/g'
6703
6704 # Constants:
6705 rm="rm -f"
6706
6707 # Global variables:
6708 default_ofile=libtool
6709 can_build_shared=yes
6710
6711 # All known linkers require a `.a' archive for static linking (except MSVC,
6712 # which needs '.lib').
6713 libext=a
6714 ltmain="$ac_aux_dir/ltmain.sh"
6715 ofile="$default_ofile"
6716 with_gnu_ld="$lt_cv_prog_gnu_ld"
6717
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ar; ac_word=$2
6721 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if test "${ac_cv_prog_AR+set}" = set; then
6724 $as_echo_n "(cached) " >&6
6725 else
6726 if test -n "$AR"; then
6727 ac_cv_prog_AR="$AR" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_AR="${ac_tool_prefix}ar"
6737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 AR=$ac_cv_prog_AR
6747 if test -n "$AR"; then
6748 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6749 $as_echo "$AR" >&6; }
6750 else
6751 { $as_echo "$as_me:$LINENO: result: no" >&5
6752 $as_echo "no" >&6; }
6753 fi
6754
6755
6756 fi
6757 if test -z "$ac_cv_prog_AR"; then
6758 ac_ct_AR=$AR
6759 # Extract the first word of "ar", so it can be a program name with args.
6760 set dummy ar; ac_word=$2
6761 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 $as_echo_n "checking for $ac_word... " >&6; }
6763 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6764 $as_echo_n "(cached) " >&6
6765 else
6766 if test -n "$ac_ct_AR"; then
6767 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_ac_ct_AR="ar"
6777 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6787 if test -n "$ac_ct_AR"; then
6788 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6789 $as_echo "$ac_ct_AR" >&6; }
6790 else
6791 { $as_echo "$as_me:$LINENO: result: no" >&5
6792 $as_echo "no" >&6; }
6793 fi
6794
6795 if test "x$ac_ct_AR" = x; then
6796 AR="false"
6797 else
6798 case $cross_compiling:$ac_tool_warned in
6799 yes:)
6800 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802 ac_tool_warned=yes ;;
6803 esac
6804 AR=$ac_ct_AR
6805 fi
6806 else
6807 AR="$ac_cv_prog_AR"
6808 fi
6809
6810 if test -n "$ac_tool_prefix"; then
6811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6813 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if test "${ac_cv_prog_RANLIB+set}" = set; then
6816 $as_echo_n "(cached) " >&6
6817 else
6818 if test -n "$RANLIB"; then
6819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6829 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 RANLIB=$ac_cv_prog_RANLIB
6839 if test -n "$RANLIB"; then
6840 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6841 $as_echo "$RANLIB" >&6; }
6842 else
6843 { $as_echo "$as_me:$LINENO: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6846
6847
6848 fi
6849 if test -z "$ac_cv_prog_RANLIB"; then
6850 ac_ct_RANLIB=$RANLIB
6851 # Extract the first word of "ranlib", so it can be a program name with args.
6852 set dummy ranlib; ac_word=$2
6853 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6856 $as_echo_n "(cached) " >&6
6857 else
6858 if test -n "$ac_ct_RANLIB"; then
6859 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_prog_ac_ct_RANLIB="ranlib"
6869 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6879 if test -n "$ac_ct_RANLIB"; then
6880 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6881 $as_echo "$ac_ct_RANLIB" >&6; }
6882 else
6883 { $as_echo "$as_me:$LINENO: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6886
6887 if test "x$ac_ct_RANLIB" = x; then
6888 RANLIB=":"
6889 else
6890 case $cross_compiling:$ac_tool_warned in
6891 yes:)
6892 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6895 esac
6896 RANLIB=$ac_ct_RANLIB
6897 fi
6898 else
6899 RANLIB="$ac_cv_prog_RANLIB"
6900 fi
6901
6902 if test -n "$ac_tool_prefix"; then
6903 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6904 set dummy ${ac_tool_prefix}strip; ac_word=$2
6905 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if test "${ac_cv_prog_STRIP+set}" = set; then
6908 $as_echo_n "(cached) " >&6
6909 else
6910 if test -n "$STRIP"; then
6911 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6920 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6921 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924 done
6925 done
6926 IFS=$as_save_IFS
6927
6928 fi
6929 fi
6930 STRIP=$ac_cv_prog_STRIP
6931 if test -n "$STRIP"; then
6932 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6933 $as_echo "$STRIP" >&6; }
6934 else
6935 { $as_echo "$as_me:$LINENO: result: no" >&5
6936 $as_echo "no" >&6; }
6937 fi
6938
6939
6940 fi
6941 if test -z "$ac_cv_prog_STRIP"; then
6942 ac_ct_STRIP=$STRIP
6943 # Extract the first word of "strip", so it can be a program name with args.
6944 set dummy strip; ac_word=$2
6945 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6948 $as_echo_n "(cached) " >&6
6949 else
6950 if test -n "$ac_ct_STRIP"; then
6951 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960 ac_cv_prog_ac_ct_STRIP="strip"
6961 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6963 fi
6964 done
6965 done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6971 if test -n "$ac_ct_STRIP"; then
6972 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6973 $as_echo "$ac_ct_STRIP" >&6; }
6974 else
6975 { $as_echo "$as_me:$LINENO: result: no" >&5
6976 $as_echo "no" >&6; }
6977 fi
6978
6979 if test "x$ac_ct_STRIP" = x; then
6980 STRIP=":"
6981 else
6982 case $cross_compiling:$ac_tool_warned in
6983 yes:)
6984 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986 ac_tool_warned=yes ;;
6987 esac
6988 STRIP=$ac_ct_STRIP
6989 fi
6990 else
6991 STRIP="$ac_cv_prog_STRIP"
6992 fi
6993
6994
6995 old_CC="$CC"
6996 old_CFLAGS="$CFLAGS"
6997
6998 # Set sane defaults for various variables
6999 test -z "$AR" && AR=ar
7000 test -z "$AR_FLAGS" && AR_FLAGS=cru
7001 test -z "$AS" && AS=as
7002 test -z "$CC" && CC=cc
7003 test -z "$LTCC" && LTCC=$CC
7004 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7005 test -z "$DLLTOOL" && DLLTOOL=dlltool
7006 test -z "$LD" && LD=ld
7007 test -z "$LN_S" && LN_S="ln -s"
7008 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7009 test -z "$NM" && NM=nm
7010 test -z "$SED" && SED=sed
7011 test -z "$OBJDUMP" && OBJDUMP=objdump
7012 test -z "$RANLIB" && RANLIB=:
7013 test -z "$STRIP" && STRIP=:
7014 test -z "$ac_objext" && ac_objext=o
7015
7016 # Determine commands to create old-style static archives.
7017 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7018 old_postinstall_cmds='chmod 644 $oldlib'
7019 old_postuninstall_cmds=
7020
7021 if test -n "$RANLIB"; then
7022 case $host_os in
7023 openbsd*)
7024 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7025 ;;
7026 *)
7027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7028 ;;
7029 esac
7030 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7031 fi
7032
7033 for cc_temp in $compiler""; do
7034 case $cc_temp in
7035 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7036 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7037 \-*) ;;
7038 *) break;;
7039 esac
7040 done
7041 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7042
7043
7044 # Only perform the check for file, if the check method requires it
7045 case $deplibs_check_method in
7046 file_magic*)
7047 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7048 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7049 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7050 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7051 $as_echo_n "(cached) " >&6
7052 else
7053 case $MAGIC_CMD in
7054 [\\/*] | ?:[\\/]*)
7055 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7056 ;;
7057 *)
7058 lt_save_MAGIC_CMD="$MAGIC_CMD"
7059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7060 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7061 for ac_dir in $ac_dummy; do
7062 IFS="$lt_save_ifs"
7063 test -z "$ac_dir" && ac_dir=.
7064 if test -f $ac_dir/${ac_tool_prefix}file; then
7065 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7066 if test -n "$file_magic_test_file"; then
7067 case $deplibs_check_method in
7068 "file_magic "*)
7069 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7071 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7072 $EGREP "$file_magic_regex" > /dev/null; then
7073 :
7074 else
7075 cat <<EOF 1>&2
7076
7077 *** Warning: the command libtool uses to detect shared libraries,
7078 *** $file_magic_cmd, produces output that libtool cannot recognize.
7079 *** The result is that libtool may fail to recognize shared libraries
7080 *** as such. This will affect the creation of libtool libraries that
7081 *** depend on shared libraries, but programs linked with such libtool
7082 *** libraries will work regardless of this problem. Nevertheless, you
7083 *** may want to report the problem to your system manager and/or to
7084 *** bug-libtool@gnu.org
7085
7086 EOF
7087 fi ;;
7088 esac
7089 fi
7090 break
7091 fi
7092 done
7093 IFS="$lt_save_ifs"
7094 MAGIC_CMD="$lt_save_MAGIC_CMD"
7095 ;;
7096 esac
7097 fi
7098
7099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7100 if test -n "$MAGIC_CMD"; then
7101 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7102 $as_echo "$MAGIC_CMD" >&6; }
7103 else
7104 { $as_echo "$as_me:$LINENO: result: no" >&5
7105 $as_echo "no" >&6; }
7106 fi
7107
7108 if test -z "$lt_cv_path_MAGIC_CMD"; then
7109 if test -n "$ac_tool_prefix"; then
7110 { $as_echo "$as_me:$LINENO: checking for file" >&5
7111 $as_echo_n "checking for file... " >&6; }
7112 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7113 $as_echo_n "(cached) " >&6
7114 else
7115 case $MAGIC_CMD in
7116 [\\/*] | ?:[\\/]*)
7117 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7118 ;;
7119 *)
7120 lt_save_MAGIC_CMD="$MAGIC_CMD"
7121 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7122 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7123 for ac_dir in $ac_dummy; do
7124 IFS="$lt_save_ifs"
7125 test -z "$ac_dir" && ac_dir=.
7126 if test -f $ac_dir/file; then
7127 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7128 if test -n "$file_magic_test_file"; then
7129 case $deplibs_check_method in
7130 "file_magic "*)
7131 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7132 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7133 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7134 $EGREP "$file_magic_regex" > /dev/null; then
7135 :
7136 else
7137 cat <<EOF 1>&2
7138
7139 *** Warning: the command libtool uses to detect shared libraries,
7140 *** $file_magic_cmd, produces output that libtool cannot recognize.
7141 *** The result is that libtool may fail to recognize shared libraries
7142 *** as such. This will affect the creation of libtool libraries that
7143 *** depend on shared libraries, but programs linked with such libtool
7144 *** libraries will work regardless of this problem. Nevertheless, you
7145 *** may want to report the problem to your system manager and/or to
7146 *** bug-libtool@gnu.org
7147
7148 EOF
7149 fi ;;
7150 esac
7151 fi
7152 break
7153 fi
7154 done
7155 IFS="$lt_save_ifs"
7156 MAGIC_CMD="$lt_save_MAGIC_CMD"
7157 ;;
7158 esac
7159 fi
7160
7161 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7162 if test -n "$MAGIC_CMD"; then
7163 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7164 $as_echo "$MAGIC_CMD" >&6; }
7165 else
7166 { $as_echo "$as_me:$LINENO: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169
7170 else
7171 MAGIC_CMD=:
7172 fi
7173 fi
7174
7175 fi
7176 ;;
7177 esac
7178
7179
7180 case $host_os in
7181 rhapsody* | darwin*)
7182 if test -n "$ac_tool_prefix"; then
7183 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7184 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 $as_echo_n "checking for $ac_word... " >&6; }
7187 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7188 $as_echo_n "(cached) " >&6
7189 else
7190 if test -n "$DSYMUTIL"; then
7191 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7192 else
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204 done
7205 done
7206 IFS=$as_save_IFS
7207
7208 fi
7209 fi
7210 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7211 if test -n "$DSYMUTIL"; then
7212 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7213 $as_echo "$DSYMUTIL" >&6; }
7214 else
7215 { $as_echo "$as_me:$LINENO: result: no" >&5
7216 $as_echo "no" >&6; }
7217 fi
7218
7219
7220 fi
7221 if test -z "$ac_cv_prog_DSYMUTIL"; then
7222 ac_ct_DSYMUTIL=$DSYMUTIL
7223 # Extract the first word of "dsymutil", so it can be a program name with args.
7224 set dummy dsymutil; ac_word=$2
7225 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7228 $as_echo_n "(cached) " >&6
7229 else
7230 if test -n "$ac_ct_DSYMUTIL"; then
7231 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7232 else
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7240 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 break 2
7243 fi
7244 done
7245 done
7246 IFS=$as_save_IFS
7247
7248 fi
7249 fi
7250 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7251 if test -n "$ac_ct_DSYMUTIL"; then
7252 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7253 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7254 else
7255 { $as_echo "$as_me:$LINENO: result: no" >&5
7256 $as_echo "no" >&6; }
7257 fi
7258
7259 if test "x$ac_ct_DSYMUTIL" = x; then
7260 DSYMUTIL=":"
7261 else
7262 case $cross_compiling:$ac_tool_warned in
7263 yes:)
7264 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7266 ac_tool_warned=yes ;;
7267 esac
7268 DSYMUTIL=$ac_ct_DSYMUTIL
7269 fi
7270 else
7271 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7272 fi
7273
7274 if test -n "$ac_tool_prefix"; then
7275 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7276 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7278 $as_echo_n "checking for $ac_word... " >&6; }
7279 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7280 $as_echo_n "(cached) " >&6
7281 else
7282 if test -n "$NMEDIT"; then
7283 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7284 else
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7287 do
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7292 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 break 2
7295 fi
7296 done
7297 done
7298 IFS=$as_save_IFS
7299
7300 fi
7301 fi
7302 NMEDIT=$ac_cv_prog_NMEDIT
7303 if test -n "$NMEDIT"; then
7304 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7305 $as_echo "$NMEDIT" >&6; }
7306 else
7307 { $as_echo "$as_me:$LINENO: result: no" >&5
7308 $as_echo "no" >&6; }
7309 fi
7310
7311
7312 fi
7313 if test -z "$ac_cv_prog_NMEDIT"; then
7314 ac_ct_NMEDIT=$NMEDIT
7315 # Extract the first word of "nmedit", so it can be a program name with args.
7316 set dummy nmedit; ac_word=$2
7317 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7320 $as_echo_n "(cached) " >&6
7321 else
7322 if test -n "$ac_ct_NMEDIT"; then
7323 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7332 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336 done
7337 done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7343 if test -n "$ac_ct_NMEDIT"; then
7344 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7345 $as_echo "$ac_ct_NMEDIT" >&6; }
7346 else
7347 { $as_echo "$as_me:$LINENO: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351 if test "x$ac_ct_NMEDIT" = x; then
7352 NMEDIT=":"
7353 else
7354 case $cross_compiling:$ac_tool_warned in
7355 yes:)
7356 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358 ac_tool_warned=yes ;;
7359 esac
7360 NMEDIT=$ac_ct_NMEDIT
7361 fi
7362 else
7363 NMEDIT="$ac_cv_prog_NMEDIT"
7364 fi
7365
7366
7367 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7368 $as_echo_n "checking for -single_module linker flag... " >&6; }
7369 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7370 $as_echo_n "(cached) " >&6
7371 else
7372 lt_cv_apple_cc_single_mod=no
7373 if test -z "${LT_MULTI_MODULE}"; then
7374 # By default we will add the -single_module flag. You can override
7375 # by either setting the environment variable LT_MULTI_MODULE
7376 # non-empty at configure time, or by adding -multi_module to the
7377 # link flags.
7378 echo "int foo(void){return 1;}" > conftest.c
7379 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7380 -dynamiclib ${wl}-single_module conftest.c
7381 if test -f libconftest.dylib; then
7382 lt_cv_apple_cc_single_mod=yes
7383 rm -rf libconftest.dylib*
7384 fi
7385 rm conftest.c
7386 fi
7387 fi
7388 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7389 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7390 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7391 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7392 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7393 $as_echo_n "(cached) " >&6
7394 else
7395 lt_cv_ld_exported_symbols_list=no
7396 save_LDFLAGS=$LDFLAGS
7397 echo "_main" > conftest.sym
7398 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7399 cat >conftest.$ac_ext <<_ACEOF
7400 /* confdefs.h. */
7401 _ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7405
7406 int
7407 main ()
7408 {
7409
7410 ;
7411 return 0;
7412 }
7413 _ACEOF
7414 rm -f conftest.$ac_objext conftest$ac_exeext
7415 if { (ac_try="$ac_link"
7416 case "(($ac_try" in
7417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418 *) ac_try_echo=$ac_try;;
7419 esac
7420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7421 $as_echo "$ac_try_echo") >&5
7422 (eval "$ac_link") 2>conftest.er1
7423 ac_status=$?
7424 grep -v '^ *+' conftest.er1 >conftest.err
7425 rm -f conftest.er1
7426 cat conftest.err >&5
7427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } && {
7429 test -z "$ac_c_werror_flag" ||
7430 test ! -s conftest.err
7431 } && test -s conftest$ac_exeext && {
7432 test "$cross_compiling" = yes ||
7433 $as_test_x conftest$ac_exeext
7434 }; then
7435 lt_cv_ld_exported_symbols_list=yes
7436 else
7437 $as_echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7439
7440 lt_cv_ld_exported_symbols_list=no
7441 fi
7442
7443 rm -rf conftest.dSYM
7444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7445 conftest$ac_exeext conftest.$ac_ext
7446 LDFLAGS="$save_LDFLAGS"
7447
7448 fi
7449 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7450 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7451 case $host_os in
7452 rhapsody* | darwin1.[0123])
7453 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7454 darwin1.*)
7455 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7456 darwin*)
7457 # if running on 10.5 or later, the deployment target defaults
7458 # to the OS version, if on x86, and 10.4, the deployment
7459 # target defaults to 10.4. Don't you love it?
7460 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7461 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7462 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7463 10.[012]*)
7464 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7465 10.*)
7466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7467 esac
7468 ;;
7469 esac
7470 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7471 _lt_dar_single_mod='$single_module'
7472 fi
7473 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7474 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7475 else
7476 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7477 fi
7478 if test "$DSYMUTIL" != ":"; then
7479 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7480 else
7481 _lt_dsymutil=
7482 fi
7483 ;;
7484 esac
7485
7486
7487 enable_dlopen=no
7488 enable_win32_dll=no
7489
7490 # Check whether --enable-libtool-lock was given.
7491 if test "${enable_libtool_lock+set}" = set; then
7492 enableval=$enable_libtool_lock;
7493 fi
7494
7495 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7496
7497
7498 # Check whether --with-pic was given.
7499 if test "${with_pic+set}" = set; then
7500 withval=$with_pic; pic_mode="$withval"
7501 else
7502 pic_mode=default
7503 fi
7504
7505 test -z "$pic_mode" && pic_mode=default
7506
7507 # Use C for the default configuration in the libtool script
7508 tagname=
7509 lt_save_CC="$CC"
7510 ac_ext=c
7511 ac_cpp='$CPP $CPPFLAGS'
7512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7515
7516
7517 # Source file extension for C test sources.
7518 ac_ext=c
7519
7520 # Object file extension for compiled C test sources.
7521 objext=o
7522 objext=$objext
7523
7524 # Code to be used in simple compile tests
7525 lt_simple_compile_test_code="int some_variable = 0;"
7526
7527 # Code to be used in simple link tests
7528 lt_simple_link_test_code='int main(){return(0);}'
7529
7530
7531 # If no C compiler was specified, use CC.
7532 LTCC=${LTCC-"$CC"}
7533
7534 # If no C compiler flags were specified, use CFLAGS.
7535 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7536
7537 # Allow CC to be a program name with arguments.
7538 compiler=$CC
7539
7540
7541 # save warnings/boilerplate of simple test code
7542 ac_outfile=conftest.$ac_objext
7543 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7544 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7545 _lt_compiler_boilerplate=`cat conftest.err`
7546 $rm conftest*
7547
7548 ac_outfile=conftest.$ac_objext
7549 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7550 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7551 _lt_linker_boilerplate=`cat conftest.err`
7552 $rm -r conftest*
7553
7554
7555
7556 lt_prog_compiler_no_builtin_flag=
7557
7558 if test "$GCC" = yes; then
7559 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7560
7561
7562 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7563 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7564 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7565 $as_echo_n "(cached) " >&6
7566 else
7567 lt_cv_prog_compiler_rtti_exceptions=no
7568 ac_outfile=conftest.$ac_objext
7569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7570 lt_compiler_flag="-fno-rtti -fno-exceptions"
7571 # Insert the option either (1) after the last *FLAGS variable, or
7572 # (2) before a word containing "conftest.", or (3) at the end.
7573 # Note that $ac_compile itself does not contain backslashes and begins
7574 # with a dollar sign (not a hyphen), so the echo should work correctly.
7575 # The option is referenced via a variable to avoid confusing sed.
7576 lt_compile=`echo "$ac_compile" | $SED \
7577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7579 -e 's:$: $lt_compiler_flag:'`
7580 (eval echo "\"\$as_me:7580: $lt_compile\"" >&5)
7581 (eval "$lt_compile" 2>conftest.err)
7582 ac_status=$?
7583 cat conftest.err >&5
7584 echo "$as_me:7584: \$? = $ac_status" >&5
7585 if (exit $ac_status) && test -s "$ac_outfile"; then
7586 # The compiler can only warn and ignore the option if not recognized
7587 # So say no if there are warnings other than the usual output.
7588 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7590 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7591 lt_cv_prog_compiler_rtti_exceptions=yes
7592 fi
7593 fi
7594 $rm conftest*
7595
7596 fi
7597 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7598 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7599
7600 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7601 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7602 else
7603 :
7604 fi
7605
7606 fi
7607
7608 lt_prog_compiler_wl=
7609 lt_prog_compiler_pic=
7610 lt_prog_compiler_static=
7611
7612 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7613 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7614
7615 if test "$GCC" = yes; then
7616 lt_prog_compiler_wl='-Wl,'
7617 lt_prog_compiler_static='-static'
7618
7619 case $host_os in
7620 aix*)
7621 # All AIX code is PIC.
7622 if test "$host_cpu" = ia64; then
7623 # AIX 5 now supports IA64 processor
7624 lt_prog_compiler_static='-Bstatic'
7625 fi
7626 ;;
7627
7628 amigaos*)
7629 # FIXME: we need at least 68020 code to build shared libraries, but
7630 # adding the `-m68020' flag to GCC prevents building anything better,
7631 # like `-m68040'.
7632 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7633 ;;
7634
7635 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7636 # PIC is the default for these OSes.
7637 ;;
7638
7639 mingw* | cygwin* | pw32* | os2*)
7640 # This hack is so that the source file can tell whether it is being
7641 # built for inclusion in a dll (and should export symbols for example).
7642 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7643 # (--disable-auto-import) libraries
7644 lt_prog_compiler_pic='-DDLL_EXPORT'
7645 ;;
7646
7647 darwin* | rhapsody*)
7648 # PIC is the default on this platform
7649 # Common symbols not allowed in MH_DYLIB files
7650 lt_prog_compiler_pic='-fno-common'
7651 ;;
7652
7653 interix[3-9]*)
7654 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7655 # Instead, we relocate shared libraries at runtime.
7656 ;;
7657
7658 msdosdjgpp*)
7659 # Just because we use GCC doesn't mean we suddenly get shared libraries
7660 # on systems that don't support them.
7661 lt_prog_compiler_can_build_shared=no
7662 enable_shared=no
7663 ;;
7664
7665 sysv4*MP*)
7666 if test -d /usr/nec; then
7667 lt_prog_compiler_pic=-Kconform_pic
7668 fi
7669 ;;
7670
7671 hpux*)
7672 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7673 # not for PA HP-UX.
7674 case $host_cpu in
7675 hppa*64*|ia64*)
7676 # +Z the default
7677 ;;
7678 *)
7679 lt_prog_compiler_pic='-fPIC'
7680 ;;
7681 esac
7682 ;;
7683
7684 *)
7685 lt_prog_compiler_pic='-fPIC'
7686 ;;
7687 esac
7688 else
7689 # PORTME Check for flag to pass linker flags through the system compiler.
7690 case $host_os in
7691 aix*)
7692 lt_prog_compiler_wl='-Wl,'
7693 if test "$host_cpu" = ia64; then
7694 # AIX 5 now supports IA64 processor
7695 lt_prog_compiler_static='-Bstatic'
7696 else
7697 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7698 fi
7699 ;;
7700 darwin*)
7701 # PIC is the default on this platform
7702 # Common symbols not allowed in MH_DYLIB files
7703 case $cc_basename in
7704 xlc*)
7705 lt_prog_compiler_pic='-qnocommon'
7706 lt_prog_compiler_wl='-Wl,'
7707 ;;
7708 esac
7709 ;;
7710
7711 mingw* | cygwin* | pw32* | os2*)
7712 # This hack is so that the source file can tell whether it is being
7713 # built for inclusion in a dll (and should export symbols for example).
7714 lt_prog_compiler_pic='-DDLL_EXPORT'
7715 ;;
7716
7717 hpux9* | hpux10* | hpux11*)
7718 lt_prog_compiler_wl='-Wl,'
7719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7720 # not for PA HP-UX.
7721 case $host_cpu in
7722 hppa*64*|ia64*)
7723 # +Z the default
7724 ;;
7725 *)
7726 lt_prog_compiler_pic='+Z'
7727 ;;
7728 esac
7729 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7730 lt_prog_compiler_static='${wl}-a ${wl}archive'
7731 ;;
7732
7733 irix5* | irix6* | nonstopux*)
7734 lt_prog_compiler_wl='-Wl,'
7735 # PIC (with -KPIC) is the default.
7736 lt_prog_compiler_static='-non_shared'
7737 ;;
7738
7739 newsos6)
7740 lt_prog_compiler_pic='-KPIC'
7741 lt_prog_compiler_static='-Bstatic'
7742 ;;
7743
7744 linux* | k*bsd*-gnu)
7745 case $cc_basename in
7746 icc* | ecc*)
7747 lt_prog_compiler_wl='-Wl,'
7748 lt_prog_compiler_pic='-KPIC'
7749 lt_prog_compiler_static='-static'
7750 ;;
7751 pgcc* | pgf77* | pgf90* | pgf95*)
7752 # Portland Group compilers (*not* the Pentium gcc compiler,
7753 # which looks to be a dead project)
7754 lt_prog_compiler_wl='-Wl,'
7755 lt_prog_compiler_pic='-fpic'
7756 lt_prog_compiler_static='-Bstatic'
7757 ;;
7758 ccc*)
7759 lt_prog_compiler_wl='-Wl,'
7760 # All Alpha code is PIC.
7761 lt_prog_compiler_static='-non_shared'
7762 ;;
7763 *)
7764 case `$CC -V 2>&1 | sed 5q` in
7765 *Sun\ C*)
7766 # Sun C 5.9
7767 lt_prog_compiler_pic='-KPIC'
7768 lt_prog_compiler_static='-Bstatic'
7769 lt_prog_compiler_wl='-Wl,'
7770 ;;
7771 *Sun\ F*)
7772 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7773 lt_prog_compiler_pic='-KPIC'
7774 lt_prog_compiler_static='-Bstatic'
7775 lt_prog_compiler_wl=''
7776 ;;
7777 esac
7778 ;;
7779 esac
7780 ;;
7781
7782 osf3* | osf4* | osf5*)
7783 lt_prog_compiler_wl='-Wl,'
7784 # All OSF/1 code is PIC.
7785 lt_prog_compiler_static='-non_shared'
7786 ;;
7787
7788 rdos*)
7789 lt_prog_compiler_static='-non_shared'
7790 ;;
7791
7792 solaris*)
7793 lt_prog_compiler_pic='-KPIC'
7794 lt_prog_compiler_static='-Bstatic'
7795 case $cc_basename in
7796 f77* | f90* | f95*)
7797 lt_prog_compiler_wl='-Qoption ld ';;
7798 *)
7799 lt_prog_compiler_wl='-Wl,';;
7800 esac
7801 ;;
7802
7803 sunos4*)
7804 lt_prog_compiler_wl='-Qoption ld '
7805 lt_prog_compiler_pic='-PIC'
7806 lt_prog_compiler_static='-Bstatic'
7807 ;;
7808
7809 sysv4 | sysv4.2uw2* | sysv4.3*)
7810 lt_prog_compiler_wl='-Wl,'
7811 lt_prog_compiler_pic='-KPIC'
7812 lt_prog_compiler_static='-Bstatic'
7813 ;;
7814
7815 sysv4*MP*)
7816 if test -d /usr/nec ;then
7817 lt_prog_compiler_pic='-Kconform_pic'
7818 lt_prog_compiler_static='-Bstatic'
7819 fi
7820 ;;
7821
7822 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7823 lt_prog_compiler_wl='-Wl,'
7824 lt_prog_compiler_pic='-KPIC'
7825 lt_prog_compiler_static='-Bstatic'
7826 ;;
7827
7828 unicos*)
7829 lt_prog_compiler_wl='-Wl,'
7830 lt_prog_compiler_can_build_shared=no
7831 ;;
7832
7833 uts4*)
7834 lt_prog_compiler_pic='-pic'
7835 lt_prog_compiler_static='-Bstatic'
7836 ;;
7837
7838 *)
7839 lt_prog_compiler_can_build_shared=no
7840 ;;
7841 esac
7842 fi
7843
7844 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7845 $as_echo "$lt_prog_compiler_pic" >&6; }
7846
7847 #
7848 # Check to make sure the PIC flag actually works.
7849 #
7850 if test -n "$lt_prog_compiler_pic"; then
7851
7852 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7853 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7854 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7855 $as_echo_n "(cached) " >&6
7856 else
7857 lt_cv_prog_compiler_pic_works=no
7858 ac_outfile=conftest.$ac_objext
7859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7860 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7861 # Insert the option either (1) after the last *FLAGS variable, or
7862 # (2) before a word containing "conftest.", or (3) at the end.
7863 # Note that $ac_compile itself does not contain backslashes and begins
7864 # with a dollar sign (not a hyphen), so the echo should work correctly.
7865 # The option is referenced via a variable to avoid confusing sed.
7866 lt_compile=`echo "$ac_compile" | $SED \
7867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7869 -e 's:$: $lt_compiler_flag:'`
7870 (eval echo "\"\$as_me:7870: $lt_compile\"" >&5)
7871 (eval "$lt_compile" 2>conftest.err)
7872 ac_status=$?
7873 cat conftest.err >&5
7874 echo "$as_me:7874: \$? = $ac_status" >&5
7875 if (exit $ac_status) && test -s "$ac_outfile"; then
7876 # The compiler can only warn and ignore the option if not recognized
7877 # So say no if there are warnings other than the usual output.
7878 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7880 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7881 lt_cv_prog_compiler_pic_works=yes
7882 fi
7883 fi
7884 $rm conftest*
7885
7886 fi
7887 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7888 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7889
7890 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7891 case $lt_prog_compiler_pic in
7892 "" | " "*) ;;
7893 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7894 esac
7895 else
7896 lt_prog_compiler_pic=
7897 lt_prog_compiler_can_build_shared=no
7898 fi
7899
7900 fi
7901 case $host_os in
7902 # For platforms which do not support PIC, -DPIC is meaningless:
7903 *djgpp*)
7904 lt_prog_compiler_pic=
7905 ;;
7906 *)
7907 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7908 ;;
7909 esac
7910
7911 #
7912 # Check to make sure the static flag actually works.
7913 #
7914 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7915 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7916 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7917 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7918 $as_echo_n "(cached) " >&6
7919 else
7920 lt_cv_prog_compiler_static_works=no
7921 save_LDFLAGS="$LDFLAGS"
7922 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7923 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7924 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7925 # The linker can only warn and ignore the option if not recognized
7926 # So say no if there are warnings
7927 if test -s conftest.err; then
7928 # Append any errors to the config.log.
7929 cat conftest.err 1>&5
7930 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932 if diff conftest.exp conftest.er2 >/dev/null; then
7933 lt_cv_prog_compiler_static_works=yes
7934 fi
7935 else
7936 lt_cv_prog_compiler_static_works=yes
7937 fi
7938 fi
7939 $rm -r conftest*
7940 LDFLAGS="$save_LDFLAGS"
7941
7942 fi
7943 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7944 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7945
7946 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7947 :
7948 else
7949 lt_prog_compiler_static=
7950 fi
7951
7952
7953 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7954 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7955 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7956 $as_echo_n "(cached) " >&6
7957 else
7958 lt_cv_prog_compiler_c_o=no
7959 $rm -r conftest 2>/dev/null
7960 mkdir conftest
7961 cd conftest
7962 mkdir out
7963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7964
7965 lt_compiler_flag="-o out/conftest2.$ac_objext"
7966 # Insert the option either (1) after the last *FLAGS variable, or
7967 # (2) before a word containing "conftest.", or (3) at the end.
7968 # Note that $ac_compile itself does not contain backslashes and begins
7969 # with a dollar sign (not a hyphen), so the echo should work correctly.
7970 lt_compile=`echo "$ac_compile" | $SED \
7971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973 -e 's:$: $lt_compiler_flag:'`
7974 (eval echo "\"\$as_me:7974: $lt_compile\"" >&5)
7975 (eval "$lt_compile" 2>out/conftest.err)
7976 ac_status=$?
7977 cat out/conftest.err >&5
7978 echo "$as_me:7978: \$? = $ac_status" >&5
7979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7980 then
7981 # The compiler can only warn and ignore the option if not recognized
7982 # So say no if there are warnings
7983 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7986 lt_cv_prog_compiler_c_o=yes
7987 fi
7988 fi
7989 chmod u+w . 2>&5
7990 $rm conftest*
7991 # SGI C++ compiler will create directory out/ii_files/ for
7992 # template instantiation
7993 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7994 $rm out/* && rmdir out
7995 cd ..
7996 rmdir conftest
7997 $rm conftest*
7998
7999 fi
8000 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8001 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8002
8003
8004 hard_links="nottested"
8005 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8006 # do not overwrite the value of need_locks provided by the user
8007 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8008 $as_echo_n "checking if we can lock with hard links... " >&6; }
8009 hard_links=yes
8010 $rm conftest*
8011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8012 touch conftest.a
8013 ln conftest.a conftest.b 2>&5 || hard_links=no
8014 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8015 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8016 $as_echo "$hard_links" >&6; }
8017 if test "$hard_links" = no; then
8018 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8019 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8020 need_locks=warn
8021 fi
8022 else
8023 need_locks=no
8024 fi
8025
8026 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8027 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8028
8029 runpath_var=
8030 allow_undefined_flag=
8031 enable_shared_with_static_runtimes=no
8032 archive_cmds=
8033 archive_expsym_cmds=
8034 old_archive_From_new_cmds=
8035 old_archive_from_expsyms_cmds=
8036 export_dynamic_flag_spec=
8037 whole_archive_flag_spec=
8038 thread_safe_flag_spec=
8039 hardcode_libdir_flag_spec=
8040 hardcode_libdir_flag_spec_ld=
8041 hardcode_libdir_separator=
8042 hardcode_direct=no
8043 hardcode_minus_L=no
8044 hardcode_shlibpath_var=unsupported
8045 link_all_deplibs=unknown
8046 hardcode_automatic=no
8047 module_cmds=
8048 module_expsym_cmds=
8049 always_export_symbols=no
8050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8051 # include_expsyms should be a list of space-separated symbols to be *always*
8052 # included in the symbol list
8053 include_expsyms=
8054 # exclude_expsyms can be an extended regexp of symbols to exclude
8055 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8056 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8057 # as well as any symbol that contains `d'.
8058 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8059 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8060 # platforms (ab)use it in PIC code, but their linkers get confused if
8061 # the symbol is explicitly referenced. Since portable code cannot
8062 # rely on this symbol name, it's probably fine to never include it in
8063 # preloaded symbol tables.
8064 # Exclude shared library initialization/finalization symbols.
8065 extract_expsyms_cmds=
8066 # Just being paranoid about ensuring that cc_basename is set.
8067 for cc_temp in $compiler""; do
8068 case $cc_temp in
8069 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8070 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8071 \-*) ;;
8072 *) break;;
8073 esac
8074 done
8075 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8076
8077 case $host_os in
8078 cygwin* | mingw* | pw32*)
8079 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8080 # When not using gcc, we currently assume that we are using
8081 # Microsoft Visual C++.
8082 if test "$GCC" != yes; then
8083 with_gnu_ld=no
8084 fi
8085 ;;
8086 interix*)
8087 # we just hope/assume this is gcc and not c89 (= MSVC++)
8088 with_gnu_ld=yes
8089 ;;
8090 openbsd*)
8091 with_gnu_ld=no
8092 ;;
8093 esac
8094
8095 ld_shlibs=yes
8096 if test "$with_gnu_ld" = yes; then
8097 # If archive_cmds runs LD, not CC, wlarc should be empty
8098 wlarc='${wl}'
8099
8100 # Set some defaults for GNU ld with shared library support. These
8101 # are reset later if shared libraries are not supported. Putting them
8102 # here allows them to be overridden if necessary.
8103 runpath_var=LD_RUN_PATH
8104 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8105 export_dynamic_flag_spec='${wl}--export-dynamic'
8106 # ancient GNU ld didn't support --whole-archive et. al.
8107 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8108 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8109 else
8110 whole_archive_flag_spec=
8111 fi
8112 supports_anon_versioning=no
8113 case `$LD -v 2>/dev/null` in
8114 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8115 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8116 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8117 *\ 2.11.*) ;; # other 2.11 versions
8118 *) supports_anon_versioning=yes ;;
8119 esac
8120
8121 # See if GNU ld supports shared libraries.
8122 case $host_os in
8123 aix[3-9]*)
8124 # On AIX/PPC, the GNU linker is very broken
8125 if test "$host_cpu" != ia64; then
8126 ld_shlibs=no
8127 cat <<EOF 1>&2
8128
8129 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8130 *** to be unable to reliably create shared libraries on AIX.
8131 *** Therefore, libtool is disabling shared libraries support. If you
8132 *** really care for shared libraries, you may want to modify your PATH
8133 *** so that a non-GNU linker is found, and then restart.
8134
8135 EOF
8136 fi
8137 ;;
8138
8139 amigaos*)
8140 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)'
8141 hardcode_libdir_flag_spec='-L$libdir'
8142 hardcode_minus_L=yes
8143
8144 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
8145 # that the semantics of dynamic libraries on AmigaOS, at least up
8146 # to version 4, is to share data among multiple programs linked
8147 # with the same dynamic library. Since this doesn't match the
8148 # behavior of shared libraries on other platforms, we can't use
8149 # them.
8150 ld_shlibs=no
8151 ;;
8152
8153 beos*)
8154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8155 allow_undefined_flag=unsupported
8156 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8157 # support --undefined. This deserves some investigation. FIXME
8158 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8159 else
8160 ld_shlibs=no
8161 fi
8162 ;;
8163
8164 cygwin* | mingw* | pw32*)
8165 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8166 # as there is no search path for DLLs.
8167 hardcode_libdir_flag_spec='-L$libdir'
8168 allow_undefined_flag=unsupported
8169 always_export_symbols=no
8170 enable_shared_with_static_runtimes=yes
8171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8172
8173 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8175 # If the export-symbols file already is a .def file (1st line
8176 # is EXPORTS), use it as is; otherwise, prepend...
8177 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8178 cp $export_symbols $output_objdir/$soname.def;
8179 else
8180 echo EXPORTS > $output_objdir/$soname.def;
8181 cat $export_symbols >> $output_objdir/$soname.def;
8182 fi~
8183 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8184 else
8185 ld_shlibs=no
8186 fi
8187 ;;
8188
8189 interix[3-9]*)
8190 hardcode_direct=no
8191 hardcode_shlibpath_var=no
8192 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8193 export_dynamic_flag_spec='${wl}-E'
8194 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8195 # Instead, shared libraries are loaded at an image base (0x10000000 by
8196 # default) and relocated if they conflict, which is a slow very memory
8197 # consuming and fragmenting process. To avoid this, we pick a random,
8198 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8199 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8200 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8201 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'
8202 ;;
8203
8204 gnu* | linux* | k*bsd*-gnu)
8205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8206 tmp_addflag=
8207 case $cc_basename,$host_cpu in
8208 pgcc*) # Portland Group C compiler
8209 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'
8210 tmp_addflag=' $pic_flag'
8211 ;;
8212 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8213 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'
8214 tmp_addflag=' $pic_flag -Mnomain' ;;
8215 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8216 tmp_addflag=' -i_dynamic' ;;
8217 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8218 tmp_addflag=' -i_dynamic -nofor_main' ;;
8219 ifc* | ifort*) # Intel Fortran compiler
8220 tmp_addflag=' -nofor_main' ;;
8221 esac
8222 case `$CC -V 2>&1 | sed 5q` in
8223 *Sun\ C*) # Sun C 5.9
8224 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'
8225 tmp_sharedflag='-G' ;;
8226 *Sun\ F*) # Sun Fortran 8.3
8227 tmp_sharedflag='-G' ;;
8228 *)
8229 tmp_sharedflag='-shared' ;;
8230 esac
8231 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8232
8233 if test $supports_anon_versioning = yes; then
8234 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8235 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8236 $echo "local: *; };" >> $output_objdir/$libname.ver~
8237 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8238 fi
8239 else
8240 ld_shlibs=no
8241 fi
8242 ;;
8243
8244 netbsd*)
8245 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8246 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8247 wlarc=
8248 else
8249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8250 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8251 fi
8252 ;;
8253
8254 solaris*)
8255 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8256 ld_shlibs=no
8257 cat <<EOF 1>&2
8258
8259 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8260 *** create shared libraries on Solaris systems. Therefore, libtool
8261 *** is disabling shared libraries support. We urge you to upgrade GNU
8262 *** binutils to release 2.9.1 or newer. Another option is to modify
8263 *** your PATH or compiler configuration so that the native linker is
8264 *** used, and then restart.
8265
8266 EOF
8267 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8269 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8270 else
8271 ld_shlibs=no
8272 fi
8273 ;;
8274
8275 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8276 case `$LD -v 2>&1` in
8277 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8278 ld_shlibs=no
8279 cat <<_LT_EOF 1>&2
8280
8281 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8282 *** reliably create shared libraries on SCO systems. Therefore, libtool
8283 *** is disabling shared libraries support. We urge you to upgrade GNU
8284 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8285 *** your PATH or compiler configuration so that the native linker is
8286 *** used, and then restart.
8287
8288 _LT_EOF
8289 ;;
8290 *)
8291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8292 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8295 else
8296 ld_shlibs=no
8297 fi
8298 ;;
8299 esac
8300 ;;
8301
8302 sunos4*)
8303 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8304 wlarc=
8305 hardcode_direct=yes
8306 hardcode_shlibpath_var=no
8307 ;;
8308
8309 *)
8310 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8313 else
8314 ld_shlibs=no
8315 fi
8316 ;;
8317 esac
8318
8319 if test "$ld_shlibs" = no; then
8320 runpath_var=
8321 hardcode_libdir_flag_spec=
8322 export_dynamic_flag_spec=
8323 whole_archive_flag_spec=
8324 fi
8325 else
8326 # PORTME fill in a description of your system's linker (not GNU ld)
8327 case $host_os in
8328 aix3*)
8329 allow_undefined_flag=unsupported
8330 always_export_symbols=yes
8331 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'
8332 # Note: this linker hardcodes the directories in LIBPATH if there
8333 # are no directories specified by -L.
8334 hardcode_minus_L=yes
8335 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8336 # Neither direct hardcoding nor static linking is supported with a
8337 # broken collect2.
8338 hardcode_direct=unsupported
8339 fi
8340 ;;
8341
8342 aix[4-9]*)
8343 if test "$host_cpu" = ia64; then
8344 # On IA64, the linker does run time linking by default, so we don't
8345 # have to do anything special.
8346 aix_use_runtimelinking=no
8347 exp_sym_flag='-Bexport'
8348 no_entry_flag=""
8349 else
8350 # If we're using GNU nm, then we don't want the "-C" option.
8351 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8352 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8353 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'
8354 else
8355 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'
8356 fi
8357 aix_use_runtimelinking=no
8358
8359 # Test if we are trying to use run time linking or normal
8360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8361 # need to do runtime linking.
8362 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8363 for ld_flag in $LDFLAGS; do
8364 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8365 aix_use_runtimelinking=yes
8366 break
8367 fi
8368 done
8369 ;;
8370 esac
8371
8372 exp_sym_flag='-bexport'
8373 no_entry_flag='-bnoentry'
8374 fi
8375
8376 # When large executables or shared objects are built, AIX ld can
8377 # have problems creating the table of contents. If linking a library
8378 # or program results in "error TOC overflow" add -mminimal-toc to
8379 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8380 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8381
8382 archive_cmds=''
8383 hardcode_direct=yes
8384 hardcode_libdir_separator=':'
8385 link_all_deplibs=yes
8386
8387 if test "$GCC" = yes; then
8388 case $host_os in aix4.[012]|aix4.[012].*)
8389 # We only want to do this on AIX 4.2 and lower, the check
8390 # below for broken collect2 doesn't work under 4.3+
8391 collect2name=`${CC} -print-prog-name=collect2`
8392 if test -f "$collect2name" && \
8393 strings "$collect2name" | grep resolve_lib_name >/dev/null
8394 then
8395 # We have reworked collect2
8396 :
8397 else
8398 # We have old collect2
8399 hardcode_direct=unsupported
8400 # It fails to find uninstalled libraries when the uninstalled
8401 # path is not listed in the libpath. Setting hardcode_minus_L
8402 # to unsupported forces relinking
8403 hardcode_minus_L=yes
8404 hardcode_libdir_flag_spec='-L$libdir'
8405 hardcode_libdir_separator=
8406 fi
8407 ;;
8408 esac
8409 shared_flag='-shared'
8410 if test "$aix_use_runtimelinking" = yes; then
8411 shared_flag="$shared_flag "'${wl}-G'
8412 fi
8413 else
8414 # not using gcc
8415 if test "$host_cpu" = ia64; then
8416 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8417 # chokes on -Wl,-G. The following line is correct:
8418 shared_flag='-G'
8419 else
8420 if test "$aix_use_runtimelinking" = yes; then
8421 shared_flag='${wl}-G'
8422 else
8423 shared_flag='${wl}-bM:SRE'
8424 fi
8425 fi
8426 fi
8427
8428 # It seems that -bexpall does not export symbols beginning with
8429 # underscore (_), so it is better to generate a list of symbols to export.
8430 always_export_symbols=yes
8431 if test "$aix_use_runtimelinking" = yes; then
8432 # Warning - without using the other runtime loading flags (-brtl),
8433 # -berok will link without error, but may produce a broken library.
8434 allow_undefined_flag='-berok'
8435 # Determine the default libpath from the value encoded in an empty executable.
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h. */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442
8443 int
8444 main ()
8445 {
8446
8447 ;
8448 return 0;
8449 }
8450 _ACEOF
8451 rm -f conftest.$ac_objext conftest$ac_exeext
8452 if { (ac_try="$ac_link"
8453 case "(($ac_try" in
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8456 esac
8457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8458 $as_echo "$ac_try_echo") >&5
8459 (eval "$ac_link") 2>conftest.er1
8460 ac_status=$?
8461 grep -v '^ *+' conftest.er1 >conftest.err
8462 rm -f conftest.er1
8463 cat conftest.err >&5
8464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } && {
8466 test -z "$ac_c_werror_flag" ||
8467 test ! -s conftest.err
8468 } && test -s conftest$ac_exeext && {
8469 test "$cross_compiling" = yes ||
8470 $as_test_x conftest$ac_exeext
8471 }; then
8472
8473 lt_aix_libpath_sed='
8474 /Import File Strings/,/^$/ {
8475 /^0/ {
8476 s/^0 *\(.*\)$/\1/
8477 p
8478 }
8479 }'
8480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8481 # Check for a 64-bit object if we didn't find anything.
8482 if test -z "$aix_libpath"; then
8483 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8484 fi
8485 else
8486 $as_echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8488
8489
8490 fi
8491
8492 rm -rf conftest.dSYM
8493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8494 conftest$ac_exeext conftest.$ac_ext
8495 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8496
8497 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8498 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"
8499 else
8500 if test "$host_cpu" = ia64; then
8501 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8502 allow_undefined_flag="-z nodefs"
8503 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"
8504 else
8505 # Determine the default libpath from the value encoded in an empty executable.
8506 cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h. */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512
8513 int
8514 main ()
8515 {
8516
8517 ;
8518 return 0;
8519 }
8520 _ACEOF
8521 rm -f conftest.$ac_objext conftest$ac_exeext
8522 if { (ac_try="$ac_link"
8523 case "(($ac_try" in
8524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8526 esac
8527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8528 $as_echo "$ac_try_echo") >&5
8529 (eval "$ac_link") 2>conftest.er1
8530 ac_status=$?
8531 grep -v '^ *+' conftest.er1 >conftest.err
8532 rm -f conftest.er1
8533 cat conftest.err >&5
8534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } && {
8536 test -z "$ac_c_werror_flag" ||
8537 test ! -s conftest.err
8538 } && test -s conftest$ac_exeext && {
8539 test "$cross_compiling" = yes ||
8540 $as_test_x conftest$ac_exeext
8541 }; then
8542
8543 lt_aix_libpath_sed='
8544 /Import File Strings/,/^$/ {
8545 /^0/ {
8546 s/^0 *\(.*\)$/\1/
8547 p
8548 }
8549 }'
8550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8551 # Check for a 64-bit object if we didn't find anything.
8552 if test -z "$aix_libpath"; then
8553 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8554 fi
8555 else
8556 $as_echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8558
8559
8560 fi
8561
8562 rm -rf conftest.dSYM
8563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8564 conftest$ac_exeext conftest.$ac_ext
8565 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8566
8567 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8568 # Warning - without using the other run time loading flags,
8569 # -berok will link without error, but may produce a broken library.
8570 no_undefined_flag=' ${wl}-bernotok'
8571 allow_undefined_flag=' ${wl}-berok'
8572 # Exported symbols can be pulled into shared objects from archives
8573 whole_archive_flag_spec='$convenience'
8574 archive_cmds_need_lc=yes
8575 # This is similar to how AIX traditionally builds its shared libraries.
8576 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'
8577 fi
8578 fi
8579 ;;
8580
8581 amigaos*)
8582 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)'
8583 hardcode_libdir_flag_spec='-L$libdir'
8584 hardcode_minus_L=yes
8585 # see comment about different semantics on the GNU ld section
8586 ld_shlibs=no
8587 ;;
8588
8589 bsdi[45]*)
8590 export_dynamic_flag_spec=-rdynamic
8591 ;;
8592
8593 cygwin* | mingw* | pw32*)
8594 # When not using gcc, we currently assume that we are using
8595 # Microsoft Visual C++.
8596 # hardcode_libdir_flag_spec is actually meaningless, as there is
8597 # no search path for DLLs.
8598 hardcode_libdir_flag_spec=' '
8599 allow_undefined_flag=unsupported
8600 # Tell ltmain to make .lib files, not .a files.
8601 libext=lib
8602 # Tell ltmain to make .dll files, not .so files.
8603 shrext_cmds=".dll"
8604 # FIXME: Setting linknames here is a bad hack.
8605 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8606 # The linker will automatically build a .lib file if we build a DLL.
8607 old_archive_From_new_cmds='true'
8608 # FIXME: Should let the user specify the lib program.
8609 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8610 fix_srcfile_path='`cygpath -w "$srcfile"`'
8611 enable_shared_with_static_runtimes=yes
8612 ;;
8613
8614 darwin* | rhapsody*)
8615 case $host_os in
8616 rhapsody* | darwin1.[012])
8617 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8618 ;;
8619 *) # Darwin 1.3 on
8620 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8621 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8622 else
8623 case ${MACOSX_DEPLOYMENT_TARGET} in
8624 10.[012])
8625 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8626 ;;
8627 10.*)
8628 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8629 ;;
8630 esac
8631 fi
8632 ;;
8633 esac
8634 archive_cmds_need_lc=no
8635 hardcode_direct=no
8636 hardcode_automatic=yes
8637 hardcode_shlibpath_var=unsupported
8638 whole_archive_flag_spec=''
8639 link_all_deplibs=yes
8640 if test "$GCC" = yes ; then
8641 output_verbose_link_cmd='echo'
8642 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8643 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8644 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8645 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8646 else
8647 case $cc_basename in
8648 xlc*)
8649 output_verbose_link_cmd='echo'
8650 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8651 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8652 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8653 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}'
8654 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}'
8655 ;;
8656 *)
8657 ld_shlibs=no
8658 ;;
8659 esac
8660 fi
8661 ;;
8662
8663 dgux*)
8664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665 hardcode_libdir_flag_spec='-L$libdir'
8666 hardcode_shlibpath_var=no
8667 ;;
8668
8669 freebsd1*)
8670 ld_shlibs=no
8671 ;;
8672
8673 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8674 # support. Future versions do this automatically, but an explicit c++rt0.o
8675 # does not break anything, and helps significantly (at the cost of a little
8676 # extra space).
8677 freebsd2.2*)
8678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8679 hardcode_libdir_flag_spec='-R$libdir'
8680 hardcode_direct=yes
8681 hardcode_shlibpath_var=no
8682 ;;
8683
8684 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8685 freebsd2*)
8686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8687 hardcode_direct=yes
8688 hardcode_minus_L=yes
8689 hardcode_shlibpath_var=no
8690 ;;
8691
8692 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8693 freebsd* | dragonfly*)
8694 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8695 hardcode_libdir_flag_spec='-R$libdir'
8696 hardcode_direct=yes
8697 hardcode_shlibpath_var=no
8698 ;;
8699
8700 hpux9*)
8701 if test "$GCC" = yes; then
8702 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'
8703 else
8704 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'
8705 fi
8706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8707 hardcode_libdir_separator=:
8708 hardcode_direct=yes
8709
8710 # hardcode_minus_L: Not really in the search PATH,
8711 # but as the default location of the library.
8712 hardcode_minus_L=yes
8713 export_dynamic_flag_spec='${wl}-E'
8714 ;;
8715
8716 hpux10*)
8717 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8718 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8719 else
8720 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8721 fi
8722 if test "$with_gnu_ld" = no; then
8723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8724 hardcode_libdir_separator=:
8725
8726 hardcode_direct=yes
8727 export_dynamic_flag_spec='${wl}-E'
8728
8729 # hardcode_minus_L: Not really in the search PATH,
8730 # but as the default location of the library.
8731 hardcode_minus_L=yes
8732 fi
8733 ;;
8734
8735 hpux11*)
8736 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8737 case $host_cpu in
8738 hppa*64*)
8739 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8740 ;;
8741 ia64*)
8742 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8743 ;;
8744 *)
8745 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8746 ;;
8747 esac
8748 else
8749 case $host_cpu in
8750 hppa*64*)
8751 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8752 ;;
8753 ia64*)
8754 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8755 ;;
8756 *)
8757 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8758 ;;
8759 esac
8760 fi
8761 if test "$with_gnu_ld" = no; then
8762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8763 hardcode_libdir_separator=:
8764
8765 case $host_cpu in
8766 hppa*64*|ia64*)
8767 hardcode_libdir_flag_spec_ld='+b $libdir'
8768 hardcode_direct=no
8769 hardcode_shlibpath_var=no
8770 ;;
8771 *)
8772 hardcode_direct=yes
8773 export_dynamic_flag_spec='${wl}-E'
8774
8775 # hardcode_minus_L: Not really in the search PATH,
8776 # but as the default location of the library.
8777 hardcode_minus_L=yes
8778 ;;
8779 esac
8780 fi
8781 ;;
8782
8783 irix5* | irix6* | nonstopux*)
8784 if test "$GCC" = yes; then
8785 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'
8786 else
8787 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'
8788 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8789 fi
8790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8791 hardcode_libdir_separator=:
8792 link_all_deplibs=yes
8793 ;;
8794
8795 netbsd*)
8796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8798 else
8799 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8800 fi
8801 hardcode_libdir_flag_spec='-R$libdir'
8802 hardcode_direct=yes
8803 hardcode_shlibpath_var=no
8804 ;;
8805
8806 newsos6)
8807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_direct=yes
8809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8810 hardcode_libdir_separator=:
8811 hardcode_shlibpath_var=no
8812 ;;
8813
8814 openbsd*)
8815 if test -f /usr/libexec/ld.so; then
8816 hardcode_direct=yes
8817 hardcode_shlibpath_var=no
8818 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8820 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8821 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8822 export_dynamic_flag_spec='${wl}-E'
8823 else
8824 case $host_os in
8825 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8827 hardcode_libdir_flag_spec='-R$libdir'
8828 ;;
8829 *)
8830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8831 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8832 ;;
8833 esac
8834 fi
8835 else
8836 ld_shlibs=no
8837 fi
8838 ;;
8839
8840 os2*)
8841 hardcode_libdir_flag_spec='-L$libdir'
8842 hardcode_minus_L=yes
8843 allow_undefined_flag=unsupported
8844 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'
8845 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8846 ;;
8847
8848 osf3*)
8849 if test "$GCC" = yes; then
8850 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8851 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'
8852 else
8853 allow_undefined_flag=' -expect_unresolved \*'
8854 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'
8855 fi
8856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8857 hardcode_libdir_separator=:
8858 ;;
8859
8860 osf4* | osf5*) # as osf3* with the addition of -msym flag
8861 if test "$GCC" = yes; then
8862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8863 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'
8864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8865 else
8866 allow_undefined_flag=' -expect_unresolved \*'
8867 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'
8868 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8869 $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'
8870
8871 # Both c and cxx compiler support -rpath directly
8872 hardcode_libdir_flag_spec='-rpath $libdir'
8873 fi
8874 hardcode_libdir_separator=:
8875 ;;
8876
8877 solaris*)
8878 no_undefined_flag=' -z text'
8879 if test "$GCC" = yes; then
8880 wlarc='${wl}'
8881 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8882 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8883 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8884 else
8885 wlarc=''
8886 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8887 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8888 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8889 fi
8890 hardcode_libdir_flag_spec='-R$libdir'
8891 hardcode_shlibpath_var=no
8892 case $host_os in
8893 solaris2.[0-5] | solaris2.[0-5].*) ;;
8894 *)
8895 # The compiler driver will combine and reorder linker options,
8896 # but understands `-z linker_flag'. GCC discards it without `$wl',
8897 # but is careful enough not to reorder.
8898 # Supported since Solaris 2.6 (maybe 2.5.1?)
8899 if test "$GCC" = yes; then
8900 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8901 else
8902 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8903 fi
8904 ;;
8905 esac
8906 link_all_deplibs=yes
8907 ;;
8908
8909 sunos4*)
8910 if test "x$host_vendor" = xsequent; then
8911 # Use $CC to link under sequent, because it throws in some extra .o
8912 # files that make .init and .fini sections work.
8913 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8914 else
8915 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8916 fi
8917 hardcode_libdir_flag_spec='-L$libdir'
8918 hardcode_direct=yes
8919 hardcode_minus_L=yes
8920 hardcode_shlibpath_var=no
8921 ;;
8922
8923 sysv4)
8924 case $host_vendor in
8925 sni)
8926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927 hardcode_direct=yes # is this really true???
8928 ;;
8929 siemens)
8930 ## LD is ld it makes a PLAMLIB
8931 ## CC just makes a GrossModule.
8932 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8933 reload_cmds='$CC -r -o $output$reload_objs'
8934 hardcode_direct=no
8935 ;;
8936 motorola)
8937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8939 ;;
8940 esac
8941 runpath_var='LD_RUN_PATH'
8942 hardcode_shlibpath_var=no
8943 ;;
8944
8945 sysv4.3*)
8946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8947 hardcode_shlibpath_var=no
8948 export_dynamic_flag_spec='-Bexport'
8949 ;;
8950
8951 sysv4*MP*)
8952 if test -d /usr/nec; then
8953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8954 hardcode_shlibpath_var=no
8955 runpath_var=LD_RUN_PATH
8956 hardcode_runpath_var=yes
8957 ld_shlibs=yes
8958 fi
8959 ;;
8960
8961 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8962 no_undefined_flag='${wl}-z,text'
8963 archive_cmds_need_lc=no
8964 hardcode_shlibpath_var=no
8965 runpath_var='LD_RUN_PATH'
8966
8967 if test "$GCC" = yes; then
8968 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8969 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8970 else
8971 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8972 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8973 fi
8974 ;;
8975
8976 sysv5* | sco3.2v5* | sco5v6*)
8977 # Note: We can NOT use -z defs as we might desire, because we do not
8978 # link with -lc, and that would cause any symbols used from libc to
8979 # always be unresolved, which means just about no library would
8980 # ever link correctly. If we're not using GNU ld we use -z text
8981 # though, which does catch some bad symbols but isn't as heavy-handed
8982 # as -z defs.
8983 no_undefined_flag='${wl}-z,text'
8984 allow_undefined_flag='${wl}-z,nodefs'
8985 archive_cmds_need_lc=no
8986 hardcode_shlibpath_var=no
8987 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8988 hardcode_libdir_separator=':'
8989 link_all_deplibs=yes
8990 export_dynamic_flag_spec='${wl}-Bexport'
8991 runpath_var='LD_RUN_PATH'
8992
8993 if test "$GCC" = yes; then
8994 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8995 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8996 else
8997 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8998 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8999 fi
9000 ;;
9001
9002 uts4*)
9003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004 hardcode_libdir_flag_spec='-L$libdir'
9005 hardcode_shlibpath_var=no
9006 ;;
9007
9008 *)
9009 ld_shlibs=no
9010 ;;
9011 esac
9012 fi
9013
9014 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9015 $as_echo "$ld_shlibs" >&6; }
9016 test "$ld_shlibs" = no && can_build_shared=no
9017
9018 #
9019 # Do we need to explicitly link libc?
9020 #
9021 case "x$archive_cmds_need_lc" in
9022 x|xyes)
9023 # Assume -lc should be added
9024 archive_cmds_need_lc=yes
9025
9026 if test "$enable_shared" = yes && test "$GCC" = yes; then
9027 case $archive_cmds in
9028 *'~'*)
9029 # FIXME: we may have to deal with multi-command sequences.
9030 ;;
9031 '$CC '*)
9032 # Test whether the compiler implicitly links with -lc since on some
9033 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9034 # to ld, don't add -lc before -lgcc.
9035 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9036 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9037 $rm conftest*
9038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9039
9040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9041 (eval $ac_compile) 2>&5
9042 ac_status=$?
9043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } 2>conftest.err; then
9045 soname=conftest
9046 lib=conftest
9047 libobjs=conftest.$ac_objext
9048 deplibs=
9049 wl=$lt_prog_compiler_wl
9050 pic_flag=$lt_prog_compiler_pic
9051 compiler_flags=-v
9052 linker_flags=-v
9053 verstring=
9054 output_objdir=.
9055 libname=conftest
9056 lt_save_allow_undefined_flag=$allow_undefined_flag
9057 allow_undefined_flag=
9058 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9059 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9060 ac_status=$?
9061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }
9063 then
9064 archive_cmds_need_lc=no
9065 else
9066 archive_cmds_need_lc=yes
9067 fi
9068 allow_undefined_flag=$lt_save_allow_undefined_flag
9069 else
9070 cat conftest.err 1>&5
9071 fi
9072 $rm conftest*
9073 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9074 $as_echo "$archive_cmds_need_lc" >&6; }
9075 ;;
9076 esac
9077 fi
9078 ;;
9079 esac
9080
9081 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9082 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9083 library_names_spec=
9084 libname_spec='lib$name'
9085 soname_spec=
9086 shrext_cmds=".so"
9087 postinstall_cmds=
9088 postuninstall_cmds=
9089 finish_cmds=
9090 finish_eval=
9091 shlibpath_var=
9092 shlibpath_overrides_runpath=unknown
9093 version_type=none
9094 dynamic_linker="$host_os ld.so"
9095 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9096
9097 if test "$GCC" = yes; then
9098 case $host_os in
9099 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9100 *) lt_awk_arg="/^libraries:/" ;;
9101 esac
9102 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9103 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9104 # if the path contains ";" then we assume it to be the separator
9105 # otherwise default to the standard path separator (i.e. ":") - it is
9106 # assumed that no part of a normal pathname contains ";" but that should
9107 # okay in the real world where ";" in dirpaths is itself problematic.
9108 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9109 else
9110 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9111 fi
9112 # Ok, now we have the path, separated by spaces, we can step through it
9113 # and add multilib dir if necessary.
9114 lt_tmp_lt_search_path_spec=
9115 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9116 for lt_sys_path in $lt_search_path_spec; do
9117 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9118 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9119 else
9120 test -d "$lt_sys_path" && \
9121 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9122 fi
9123 done
9124 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9125 BEGIN {RS=" "; FS="/|\n";} {
9126 lt_foo="";
9127 lt_count=0;
9128 for (lt_i = NF; lt_i > 0; lt_i--) {
9129 if ($lt_i != "" && $lt_i != ".") {
9130 if ($lt_i == "..") {
9131 lt_count++;
9132 } else {
9133 if (lt_count == 0) {
9134 lt_foo="/" $lt_i lt_foo;
9135 } else {
9136 lt_count--;
9137 }
9138 }
9139 }
9140 }
9141 if (lt_foo != "") { lt_freq[lt_foo]++; }
9142 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9143 }'`
9144 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9145 else
9146 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9147 fi
9148 need_lib_prefix=unknown
9149 hardcode_into_libs=no
9150
9151 # when you set need_version to no, make sure it does not cause -set_version
9152 # flags to be left without arguments
9153 need_version=unknown
9154
9155 case $host_os in
9156 aix3*)
9157 version_type=linux
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9159 shlibpath_var=LIBPATH
9160
9161 # AIX 3 has no versioning support, so we append a major version to the name.
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 ;;
9164
9165 aix[4-9]*)
9166 version_type=linux
9167 need_lib_prefix=no
9168 need_version=no
9169 hardcode_into_libs=yes
9170 if test "$host_cpu" = ia64; then
9171 # AIX 5 supports IA64
9172 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 else
9175 # With GCC up to 2.95.x, collect2 would create an import file
9176 # for dependence libraries. The import file would start with
9177 # the line `#! .'. This would cause the generated library to
9178 # depend on `.', always an invalid library. This was fixed in
9179 # development snapshots of GCC prior to 3.0.
9180 case $host_os in
9181 aix4 | aix4.[01] | aix4.[01].*)
9182 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9183 echo ' yes '
9184 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9185 :
9186 else
9187 can_build_shared=no
9188 fi
9189 ;;
9190 esac
9191 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9192 # soname into executable. Probably we can add versioning support to
9193 # collect2, so additional links can be useful in future.
9194 if test "$aix_use_runtimelinking" = yes; then
9195 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9196 # instead of lib<name>.a to let people know that these are not
9197 # typical AIX shared libraries.
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 else
9200 # We preserve .a as extension for shared libraries through AIX4.2
9201 # and later when we are not doing run time linking.
9202 library_names_spec='${libname}${release}.a $libname.a'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 fi
9205 shlibpath_var=LIBPATH
9206 fi
9207 ;;
9208
9209 amigaos*)
9210 library_names_spec='$libname.ixlibrary $libname.a'
9211 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9212 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'
9213 ;;
9214
9215 beos*)
9216 library_names_spec='${libname}${shared_ext}'
9217 dynamic_linker="$host_os ld.so"
9218 shlibpath_var=LIBRARY_PATH
9219 ;;
9220
9221 bsdi[45]*)
9222 version_type=linux
9223 need_version=no
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 soname_spec='${libname}${release}${shared_ext}$major'
9226 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9227 shlibpath_var=LD_LIBRARY_PATH
9228 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9229 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9230 # the default ld.so.conf also contains /usr/contrib/lib and
9231 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9232 # libtool to hard-code these into programs
9233 ;;
9234
9235 cygwin* | mingw* | pw32*)
9236 version_type=windows
9237 shrext_cmds=".dll"
9238 need_version=no
9239 need_lib_prefix=no
9240
9241 case $GCC,$host_os in
9242 yes,cygwin* | yes,mingw* | yes,pw32*)
9243 library_names_spec='$libname.dll.a'
9244 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9245 postinstall_cmds='base_file=`basename \${file}`~
9246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9247 dldir=$destdir/`dirname \$dlpath`~
9248 test -d \$dldir || mkdir -p \$dldir~
9249 $install_prog $dir/$dlname \$dldir/$dlname~
9250 chmod a+x \$dldir/$dlname'
9251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9252 dlpath=$dir/\$dldll~
9253 $rm \$dlpath'
9254 shlibpath_overrides_runpath=yes
9255
9256 case $host_os in
9257 cygwin*)
9258 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9259 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9260 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9261 ;;
9262 mingw*)
9263 # MinGW DLLs use traditional 'lib' prefix
9264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9265 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9266 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9267 # It is most probably a Windows format PATH printed by
9268 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9269 # path with ; separators, and with drive letters. We can handle the
9270 # drive letters (cygwin fileutils understands them), so leave them,
9271 # especially as we might pass files found there to a mingw objdump,
9272 # which wouldn't understand a cygwinified path. Ahh.
9273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9274 else
9275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9276 fi
9277 ;;
9278 pw32*)
9279 # pw32 DLLs use 'pw' prefix rather than 'lib'
9280 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9281 ;;
9282 esac
9283 ;;
9284
9285 *)
9286 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9287 ;;
9288 esac
9289 dynamic_linker='Win32 ld.exe'
9290 # FIXME: first we should search . and the directory the executable is in
9291 shlibpath_var=PATH
9292 ;;
9293
9294 darwin* | rhapsody*)
9295 dynamic_linker="$host_os dyld"
9296 version_type=darwin
9297 need_lib_prefix=no
9298 need_version=no
9299 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9300 soname_spec='${libname}${release}${major}$shared_ext'
9301 shlibpath_overrides_runpath=yes
9302 shlibpath_var=DYLD_LIBRARY_PATH
9303 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9304
9305 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9306 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9307 ;;
9308
9309 dgux*)
9310 version_type=linux
9311 need_lib_prefix=no
9312 need_version=no
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 ;;
9317
9318 freebsd1*)
9319 dynamic_linker=no
9320 ;;
9321
9322 freebsd* | dragonfly*)
9323 # DragonFly does not have aout. When/if they implement a new
9324 # versioning mechanism, adjust this.
9325 if test -x /usr/bin/objformat; then
9326 objformat=`/usr/bin/objformat`
9327 else
9328 case $host_os in
9329 freebsd[123]*) objformat=aout ;;
9330 *) objformat=elf ;;
9331 esac
9332 fi
9333 version_type=freebsd-$objformat
9334 case $version_type in
9335 freebsd-elf*)
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9337 need_version=no
9338 need_lib_prefix=no
9339 ;;
9340 freebsd-*)
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9342 need_version=yes
9343 ;;
9344 esac
9345 shlibpath_var=LD_LIBRARY_PATH
9346 case $host_os in
9347 freebsd2*)
9348 shlibpath_overrides_runpath=yes
9349 ;;
9350 freebsd3.[01]* | freebsdelf3.[01]*)
9351 shlibpath_overrides_runpath=yes
9352 hardcode_into_libs=yes
9353 ;;
9354 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9355 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9356 shlibpath_overrides_runpath=no
9357 hardcode_into_libs=yes
9358 ;;
9359 *) # from 4.6 on, and DragonFly
9360 shlibpath_overrides_runpath=yes
9361 hardcode_into_libs=yes
9362 ;;
9363 esac
9364 ;;
9365
9366 gnu*)
9367 version_type=linux
9368 need_lib_prefix=no
9369 need_version=no
9370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9371 soname_spec='${libname}${release}${shared_ext}$major'
9372 shlibpath_var=LD_LIBRARY_PATH
9373 hardcode_into_libs=yes
9374 ;;
9375
9376 hpux9* | hpux10* | hpux11*)
9377 # Give a soname corresponding to the major version so that dld.sl refuses to
9378 # link against other versions.
9379 version_type=sunos
9380 need_lib_prefix=no
9381 need_version=no
9382 case $host_cpu in
9383 ia64*)
9384 shrext_cmds='.so'
9385 hardcode_into_libs=yes
9386 dynamic_linker="$host_os dld.so"
9387 shlibpath_var=LD_LIBRARY_PATH
9388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9390 soname_spec='${libname}${release}${shared_ext}$major'
9391 if test "X$HPUX_IA64_MODE" = X32; then
9392 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9393 else
9394 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9395 fi
9396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9397 ;;
9398 hppa*64*)
9399 shrext_cmds='.sl'
9400 hardcode_into_libs=yes
9401 dynamic_linker="$host_os dld.sl"
9402 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9403 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9408 ;;
9409 *)
9410 shrext_cmds='.sl'
9411 dynamic_linker="$host_os dld.sl"
9412 shlibpath_var=SHLIB_PATH
9413 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 ;;
9417 esac
9418 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9419 postinstall_cmds='chmod 555 $lib'
9420 ;;
9421
9422 interix[3-9]*)
9423 version_type=linux
9424 need_lib_prefix=no
9425 need_version=no
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9427 soname_spec='${libname}${release}${shared_ext}$major'
9428 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 shlibpath_overrides_runpath=no
9431 hardcode_into_libs=yes
9432 ;;
9433
9434 irix5* | irix6* | nonstopux*)
9435 case $host_os in
9436 nonstopux*) version_type=nonstopux ;;
9437 *)
9438 if test "$lt_cv_prog_gnu_ld" = yes; then
9439 version_type=linux
9440 else
9441 version_type=irix
9442 fi ;;
9443 esac
9444 need_lib_prefix=no
9445 need_version=no
9446 soname_spec='${libname}${release}${shared_ext}$major'
9447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9448 case $host_os in
9449 irix5* | nonstopux*)
9450 libsuff= shlibsuff=
9451 ;;
9452 *)
9453 case $LD in # libtool.m4 will add one of these switches to LD
9454 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9455 libsuff= shlibsuff= libmagic=32-bit;;
9456 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9457 libsuff=32 shlibsuff=N32 libmagic=N32;;
9458 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9459 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9460 *) libsuff= shlibsuff= libmagic=never-match;;
9461 esac
9462 ;;
9463 esac
9464 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9465 shlibpath_overrides_runpath=no
9466 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9467 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9468 hardcode_into_libs=yes
9469 ;;
9470
9471 # No shared lib support for Linux oldld, aout, or coff.
9472 linux*oldld* | linux*aout* | linux*coff*)
9473 dynamic_linker=no
9474 ;;
9475
9476 # This must be Linux ELF.
9477 linux* | k*bsd*-gnu)
9478 version_type=linux
9479 need_lib_prefix=no
9480 need_version=no
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482 soname_spec='${libname}${release}${shared_ext}$major'
9483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 shlibpath_overrides_runpath=no
9486 # This implies no fast_install, which is unacceptable.
9487 # Some rework will be needed to allow for fast_install
9488 # before this can be enabled.
9489 hardcode_into_libs=yes
9490
9491 # Append ld.so.conf contents to the search path
9492 if test -f /etc/ld.so.conf; then
9493 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' ' '`
9494 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9495 fi
9496
9497 # We used to test for /lib/ld.so.1 and disable shared libraries on
9498 # powerpc, because MkLinux only supported shared libraries with the
9499 # GNU dynamic linker. Since this was broken with cross compilers,
9500 # most powerpc-linux boxes support dynamic linking these days and
9501 # people can always --disable-shared, the test was removed, and we
9502 # assume the GNU/Linux dynamic linker is in use.
9503 dynamic_linker='GNU/Linux ld.so'
9504 ;;
9505
9506 netbsd*)
9507 version_type=sunos
9508 need_lib_prefix=no
9509 need_version=no
9510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9513 dynamic_linker='NetBSD (a.out) ld.so'
9514 else
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9516 soname_spec='${libname}${release}${shared_ext}$major'
9517 dynamic_linker='NetBSD ld.elf_so'
9518 fi
9519 shlibpath_var=LD_LIBRARY_PATH
9520 shlibpath_overrides_runpath=yes
9521 hardcode_into_libs=yes
9522 ;;
9523
9524 newsos6)
9525 version_type=linux
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527 shlibpath_var=LD_LIBRARY_PATH
9528 shlibpath_overrides_runpath=yes
9529 ;;
9530
9531 nto-qnx*)
9532 version_type=linux
9533 need_lib_prefix=no
9534 need_version=no
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9536 soname_spec='${libname}${release}${shared_ext}$major'
9537 shlibpath_var=LD_LIBRARY_PATH
9538 shlibpath_overrides_runpath=yes
9539 ;;
9540
9541 openbsd*)
9542 version_type=sunos
9543 sys_lib_dlsearch_path_spec="/usr/lib"
9544 need_lib_prefix=no
9545 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9546 case $host_os in
9547 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9548 *) need_version=no ;;
9549 esac
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9554 case $host_os in
9555 openbsd2.[89] | openbsd2.[89].*)
9556 shlibpath_overrides_runpath=no
9557 ;;
9558 *)
9559 shlibpath_overrides_runpath=yes
9560 ;;
9561 esac
9562 else
9563 shlibpath_overrides_runpath=yes
9564 fi
9565 ;;
9566
9567 os2*)
9568 libname_spec='$name'
9569 shrext_cmds=".dll"
9570 need_lib_prefix=no
9571 library_names_spec='$libname${shared_ext} $libname.a'
9572 dynamic_linker='OS/2 ld.exe'
9573 shlibpath_var=LIBPATH
9574 ;;
9575
9576 osf3* | osf4* | osf5*)
9577 version_type=osf
9578 need_lib_prefix=no
9579 need_version=no
9580 soname_spec='${libname}${release}${shared_ext}$major'
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582 shlibpath_var=LD_LIBRARY_PATH
9583 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9584 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9585 ;;
9586
9587 rdos*)
9588 dynamic_linker=no
9589 ;;
9590
9591 solaris*)
9592 version_type=linux
9593 need_lib_prefix=no
9594 need_version=no
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 shlibpath_var=LD_LIBRARY_PATH
9598 shlibpath_overrides_runpath=yes
9599 hardcode_into_libs=yes
9600 # ldd complains unless libraries are executable
9601 postinstall_cmds='chmod +x $lib'
9602 ;;
9603
9604 sunos4*)
9605 version_type=sunos
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9607 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 shlibpath_overrides_runpath=yes
9610 if test "$with_gnu_ld" = yes; then
9611 need_lib_prefix=no
9612 fi
9613 need_version=yes
9614 ;;
9615
9616 sysv4 | sysv4.3*)
9617 version_type=linux
9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9619 soname_spec='${libname}${release}${shared_ext}$major'
9620 shlibpath_var=LD_LIBRARY_PATH
9621 case $host_vendor in
9622 sni)
9623 shlibpath_overrides_runpath=no
9624 need_lib_prefix=no
9625 export_dynamic_flag_spec='${wl}-Blargedynsym'
9626 runpath_var=LD_RUN_PATH
9627 ;;
9628 siemens)
9629 need_lib_prefix=no
9630 ;;
9631 motorola)
9632 need_lib_prefix=no
9633 need_version=no
9634 shlibpath_overrides_runpath=no
9635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9636 ;;
9637 esac
9638 ;;
9639
9640 sysv4*MP*)
9641 if test -d /usr/nec ;then
9642 version_type=linux
9643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9644 soname_spec='$libname${shared_ext}.$major'
9645 shlibpath_var=LD_LIBRARY_PATH
9646 fi
9647 ;;
9648
9649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9650 version_type=freebsd-elf
9651 need_lib_prefix=no
9652 need_version=no
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9654 soname_spec='${libname}${release}${shared_ext}$major'
9655 shlibpath_var=LD_LIBRARY_PATH
9656 hardcode_into_libs=yes
9657 if test "$with_gnu_ld" = yes; then
9658 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9659 shlibpath_overrides_runpath=no
9660 else
9661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9662 shlibpath_overrides_runpath=yes
9663 case $host_os in
9664 sco3.2v5*)
9665 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9666 ;;
9667 esac
9668 fi
9669 sys_lib_dlsearch_path_spec='/usr/lib'
9670 ;;
9671
9672 uts4*)
9673 version_type=linux
9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675 soname_spec='${libname}${release}${shared_ext}$major'
9676 shlibpath_var=LD_LIBRARY_PATH
9677 ;;
9678
9679 *)
9680 dynamic_linker=no
9681 ;;
9682 esac
9683 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9684 $as_echo "$dynamic_linker" >&6; }
9685 test "$dynamic_linker" = no && can_build_shared=no
9686
9687 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9688 $as_echo_n "(cached) " >&6
9689 else
9690 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9691 fi
9692
9693 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9694 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9695 $as_echo_n "(cached) " >&6
9696 else
9697 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9698 fi
9699
9700 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9701
9702 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9703 if test "$GCC" = yes; then
9704 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9705 fi
9706
9707 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9708 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9709 hardcode_action=
9710 if test -n "$hardcode_libdir_flag_spec" || \
9711 test -n "$runpath_var" || \
9712 test "X$hardcode_automatic" = "Xyes" ; then
9713
9714 # We can hardcode non-existant directories.
9715 if test "$hardcode_direct" != no &&
9716 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9717 # have to relink, otherwise we might link with an installed library
9718 # when we should be linking with a yet-to-be-installed one
9719 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9720 test "$hardcode_minus_L" != no; then
9721 # Linking always hardcodes the temporary library directory.
9722 hardcode_action=relink
9723 else
9724 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9725 hardcode_action=immediate
9726 fi
9727 else
9728 # We cannot hardcode anything, or else we can only hardcode existing
9729 # directories.
9730 hardcode_action=unsupported
9731 fi
9732 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9733 $as_echo "$hardcode_action" >&6; }
9734
9735 if test "$hardcode_action" = relink; then
9736 # Fast installation is not supported
9737 enable_fast_install=no
9738 elif test "$shlibpath_overrides_runpath" = yes ||
9739 test "$enable_shared" = no; then
9740 # Fast installation is not necessary
9741 enable_fast_install=needless
9742 fi
9743
9744 striplib=
9745 old_striplib=
9746 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9747 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9748 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9749 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9750 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9751 { $as_echo "$as_me:$LINENO: result: yes" >&5
9752 $as_echo "yes" >&6; }
9753 else
9754 # FIXME - insert some real tests, host_os isn't really good enough
9755 case $host_os in
9756 darwin*)
9757 if test -n "$STRIP" ; then
9758 striplib="$STRIP -x"
9759 old_striplib="$STRIP -S"
9760 { $as_echo "$as_me:$LINENO: result: yes" >&5
9761 $as_echo "yes" >&6; }
9762 else
9763 { $as_echo "$as_me:$LINENO: result: no" >&5
9764 $as_echo "no" >&6; }
9765 fi
9766 ;;
9767 *)
9768 { $as_echo "$as_me:$LINENO: result: no" >&5
9769 $as_echo "no" >&6; }
9770 ;;
9771 esac
9772 fi
9773
9774 if test "x$enable_dlopen" != xyes; then
9775 enable_dlopen=unknown
9776 enable_dlopen_self=unknown
9777 enable_dlopen_self_static=unknown
9778 else
9779 lt_cv_dlopen=no
9780 lt_cv_dlopen_libs=
9781
9782 case $host_os in
9783 beos*)
9784 lt_cv_dlopen="load_add_on"
9785 lt_cv_dlopen_libs=
9786 lt_cv_dlopen_self=yes
9787 ;;
9788
9789 mingw* | pw32*)
9790 lt_cv_dlopen="LoadLibrary"
9791 lt_cv_dlopen_libs=
9792 ;;
9793
9794 cygwin*)
9795 lt_cv_dlopen="dlopen"
9796 lt_cv_dlopen_libs=
9797 ;;
9798
9799 darwin*)
9800 # if libdl is installed we need to link against it
9801 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9802 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9804 $as_echo_n "(cached) " >&6
9805 else
9806 ac_check_lib_save_LIBS=$LIBS
9807 LIBS="-ldl $LIBS"
9808 cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h. */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814
9815 /* Override any GCC internal prototype to avoid an error.
9816 Use char because int might match the return type of a GCC
9817 builtin and then its argument prototype would still apply. */
9818 #ifdef __cplusplus
9819 extern "C"
9820 #endif
9821 char dlopen ();
9822 int
9823 main ()
9824 {
9825 return dlopen ();
9826 ;
9827 return 0;
9828 }
9829 _ACEOF
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (ac_try="$ac_link"
9832 case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835 esac
9836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9837 $as_echo "$ac_try_echo") >&5
9838 (eval "$ac_link") 2>conftest.er1
9839 ac_status=$?
9840 grep -v '^ *+' conftest.er1 >conftest.err
9841 rm -f conftest.er1
9842 cat conftest.err >&5
9843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } && {
9845 test -z "$ac_c_werror_flag" ||
9846 test ! -s conftest.err
9847 } && test -s conftest$ac_exeext && {
9848 test "$cross_compiling" = yes ||
9849 $as_test_x conftest$ac_exeext
9850 }; then
9851 ac_cv_lib_dl_dlopen=yes
9852 else
9853 $as_echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856 ac_cv_lib_dl_dlopen=no
9857 fi
9858
9859 rm -rf conftest.dSYM
9860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9861 conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9863 fi
9864 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9865 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9866 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9868 else
9869
9870 lt_cv_dlopen="dyld"
9871 lt_cv_dlopen_libs=
9872 lt_cv_dlopen_self=yes
9873
9874 fi
9875
9876 ;;
9877
9878 *)
9879 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9880 $as_echo_n "checking for shl_load... " >&6; }
9881 if test "${ac_cv_func_shl_load+set}" = set; then
9882 $as_echo_n "(cached) " >&6
9883 else
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h. */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9892 #define shl_load innocuous_shl_load
9893
9894 /* System header to define __stub macros and hopefully few prototypes,
9895 which can conflict with char shl_load (); below.
9896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9897 <limits.h> exists even on freestanding compilers. */
9898
9899 #ifdef __STDC__
9900 # include <limits.h>
9901 #else
9902 # include <assert.h>
9903 #endif
9904
9905 #undef shl_load
9906
9907 /* Override any GCC internal prototype to avoid an error.
9908 Use char because int might match the return type of a GCC
9909 builtin and then its argument prototype would still apply. */
9910 #ifdef __cplusplus
9911 extern "C"
9912 #endif
9913 char shl_load ();
9914 /* The GNU C library defines this for functions which it implements
9915 to always fail with ENOSYS. Some functions are actually named
9916 something starting with __ and the normal name is an alias. */
9917 #if defined __stub_shl_load || defined __stub___shl_load
9918 choke me
9919 #endif
9920
9921 int
9922 main ()
9923 {
9924 return shl_load ();
9925 ;
9926 return 0;
9927 }
9928 _ACEOF
9929 rm -f conftest.$ac_objext conftest$ac_exeext
9930 if { (ac_try="$ac_link"
9931 case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9934 esac
9935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9936 $as_echo "$ac_try_echo") >&5
9937 (eval "$ac_link") 2>conftest.er1
9938 ac_status=$?
9939 grep -v '^ *+' conftest.er1 >conftest.err
9940 rm -f conftest.er1
9941 cat conftest.err >&5
9942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } && {
9944 test -z "$ac_c_werror_flag" ||
9945 test ! -s conftest.err
9946 } && test -s conftest$ac_exeext && {
9947 test "$cross_compiling" = yes ||
9948 $as_test_x conftest$ac_exeext
9949 }; then
9950 ac_cv_func_shl_load=yes
9951 else
9952 $as_echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9954
9955 ac_cv_func_shl_load=no
9956 fi
9957
9958 rm -rf conftest.dSYM
9959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9960 conftest$ac_exeext conftest.$ac_ext
9961 fi
9962 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9963 $as_echo "$ac_cv_func_shl_load" >&6; }
9964 if test "x$ac_cv_func_shl_load" = x""yes; then
9965 lt_cv_dlopen="shl_load"
9966 else
9967 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9968 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9969 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9970 $as_echo_n "(cached) " >&6
9971 else
9972 ac_check_lib_save_LIBS=$LIBS
9973 LIBS="-ldld $LIBS"
9974 cat >conftest.$ac_ext <<_ACEOF
9975 /* confdefs.h. */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9980
9981 /* Override any GCC internal prototype to avoid an error.
9982 Use char because int might match the return type of a GCC
9983 builtin and then its argument prototype would still apply. */
9984 #ifdef __cplusplus
9985 extern "C"
9986 #endif
9987 char shl_load ();
9988 int
9989 main ()
9990 {
9991 return shl_load ();
9992 ;
9993 return 0;
9994 }
9995 _ACEOF
9996 rm -f conftest.$ac_objext conftest$ac_exeext
9997 if { (ac_try="$ac_link"
9998 case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001 esac
10002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10003 $as_echo "$ac_try_echo") >&5
10004 (eval "$ac_link") 2>conftest.er1
10005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } && {
10011 test -z "$ac_c_werror_flag" ||
10012 test ! -s conftest.err
10013 } && test -s conftest$ac_exeext && {
10014 test "$cross_compiling" = yes ||
10015 $as_test_x conftest$ac_exeext
10016 }; then
10017 ac_cv_lib_dld_shl_load=yes
10018 else
10019 $as_echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022 ac_cv_lib_dld_shl_load=no
10023 fi
10024
10025 rm -rf conftest.dSYM
10026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10027 conftest$ac_exeext conftest.$ac_ext
10028 LIBS=$ac_check_lib_save_LIBS
10029 fi
10030 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10031 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10032 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10033 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10034 else
10035 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10036 $as_echo_n "checking for dlopen... " >&6; }
10037 if test "${ac_cv_func_dlopen+set}" = set; then
10038 $as_echo_n "(cached) " >&6
10039 else
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10048 #define dlopen innocuous_dlopen
10049
10050 /* System header to define __stub macros and hopefully few prototypes,
10051 which can conflict with char dlopen (); below.
10052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053 <limits.h> exists even on freestanding compilers. */
10054
10055 #ifdef __STDC__
10056 # include <limits.h>
10057 #else
10058 # include <assert.h>
10059 #endif
10060
10061 #undef dlopen
10062
10063 /* Override any GCC internal prototype to avoid an error.
10064 Use char because int might match the return type of a GCC
10065 builtin and then its argument prototype would still apply. */
10066 #ifdef __cplusplus
10067 extern "C"
10068 #endif
10069 char dlopen ();
10070 /* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073 #if defined __stub_dlopen || defined __stub___dlopen
10074 choke me
10075 #endif
10076
10077 int
10078 main ()
10079 {
10080 return dlopen ();
10081 ;
10082 return 0;
10083 }
10084 _ACEOF
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (ac_try="$ac_link"
10087 case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10090 esac
10091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10092 $as_echo "$ac_try_echo") >&5
10093 (eval "$ac_link") 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && {
10100 test -z "$ac_c_werror_flag" ||
10101 test ! -s conftest.err
10102 } && test -s conftest$ac_exeext && {
10103 test "$cross_compiling" = yes ||
10104 $as_test_x conftest$ac_exeext
10105 }; then
10106 ac_cv_func_dlopen=yes
10107 else
10108 $as_echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10110
10111 ac_cv_func_dlopen=no
10112 fi
10113
10114 rm -rf conftest.dSYM
10115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10116 conftest$ac_exeext conftest.$ac_ext
10117 fi
10118 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10119 $as_echo "$ac_cv_func_dlopen" >&6; }
10120 if test "x$ac_cv_func_dlopen" = x""yes; then
10121 lt_cv_dlopen="dlopen"
10122 else
10123 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10124 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10125 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10126 $as_echo_n "(cached) " >&6
10127 else
10128 ac_check_lib_save_LIBS=$LIBS
10129 LIBS="-ldl $LIBS"
10130 cat >conftest.$ac_ext <<_ACEOF
10131 /* confdefs.h. */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10136
10137 /* Override any GCC internal prototype to avoid an error.
10138 Use char because int might match the return type of a GCC
10139 builtin and then its argument prototype would still apply. */
10140 #ifdef __cplusplus
10141 extern "C"
10142 #endif
10143 char dlopen ();
10144 int
10145 main ()
10146 {
10147 return dlopen ();
10148 ;
10149 return 0;
10150 }
10151 _ACEOF
10152 rm -f conftest.$ac_objext conftest$ac_exeext
10153 if { (ac_try="$ac_link"
10154 case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10157 esac
10158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10159 $as_echo "$ac_try_echo") >&5
10160 (eval "$ac_link") 2>conftest.er1
10161 ac_status=$?
10162 grep -v '^ *+' conftest.er1 >conftest.err
10163 rm -f conftest.er1
10164 cat conftest.err >&5
10165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } && {
10167 test -z "$ac_c_werror_flag" ||
10168 test ! -s conftest.err
10169 } && test -s conftest$ac_exeext && {
10170 test "$cross_compiling" = yes ||
10171 $as_test_x conftest$ac_exeext
10172 }; then
10173 ac_cv_lib_dl_dlopen=yes
10174 else
10175 $as_echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10177
10178 ac_cv_lib_dl_dlopen=no
10179 fi
10180
10181 rm -rf conftest.dSYM
10182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10183 conftest$ac_exeext conftest.$ac_ext
10184 LIBS=$ac_check_lib_save_LIBS
10185 fi
10186 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10187 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10188 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10190 else
10191 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10192 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10193 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10194 $as_echo_n "(cached) " >&6
10195 else
10196 ac_check_lib_save_LIBS=$LIBS
10197 LIBS="-lsvld $LIBS"
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h. */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204
10205 /* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10208 #ifdef __cplusplus
10209 extern "C"
10210 #endif
10211 char dlopen ();
10212 int
10213 main ()
10214 {
10215 return dlopen ();
10216 ;
10217 return 0;
10218 }
10219 _ACEOF
10220 rm -f conftest.$ac_objext conftest$ac_exeext
10221 if { (ac_try="$ac_link"
10222 case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10225 esac
10226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10227 $as_echo "$ac_try_echo") >&5
10228 (eval "$ac_link") 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && {
10235 test -z "$ac_c_werror_flag" ||
10236 test ! -s conftest.err
10237 } && test -s conftest$ac_exeext && {
10238 test "$cross_compiling" = yes ||
10239 $as_test_x conftest$ac_exeext
10240 }; then
10241 ac_cv_lib_svld_dlopen=yes
10242 else
10243 $as_echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10245
10246 ac_cv_lib_svld_dlopen=no
10247 fi
10248
10249 rm -rf conftest.dSYM
10250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10251 conftest$ac_exeext conftest.$ac_ext
10252 LIBS=$ac_check_lib_save_LIBS
10253 fi
10254 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10255 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10256 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10258 else
10259 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10260 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10261 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10262 $as_echo_n "(cached) " >&6
10263 else
10264 ac_check_lib_save_LIBS=$LIBS
10265 LIBS="-ldld $LIBS"
10266 cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h. */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272
10273 /* Override any GCC internal prototype to avoid an error.
10274 Use char because int might match the return type of a GCC
10275 builtin and then its argument prototype would still apply. */
10276 #ifdef __cplusplus
10277 extern "C"
10278 #endif
10279 char dld_link ();
10280 int
10281 main ()
10282 {
10283 return dld_link ();
10284 ;
10285 return 0;
10286 }
10287 _ACEOF
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (ac_try="$ac_link"
10290 case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10293 esac
10294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10295 $as_echo "$ac_try_echo") >&5
10296 (eval "$ac_link") 2>conftest.er1
10297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
10301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && {
10303 test -z "$ac_c_werror_flag" ||
10304 test ! -s conftest.err
10305 } && test -s conftest$ac_exeext && {
10306 test "$cross_compiling" = yes ||
10307 $as_test_x conftest$ac_exeext
10308 }; then
10309 ac_cv_lib_dld_dld_link=yes
10310 else
10311 $as_echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314 ac_cv_lib_dld_dld_link=no
10315 fi
10316
10317 rm -rf conftest.dSYM
10318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10319 conftest$ac_exeext conftest.$ac_ext
10320 LIBS=$ac_check_lib_save_LIBS
10321 fi
10322 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10323 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10324 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10325 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10326 fi
10327
10328
10329 fi
10330
10331
10332 fi
10333
10334
10335 fi
10336
10337
10338 fi
10339
10340
10341 fi
10342
10343 ;;
10344 esac
10345
10346 if test "x$lt_cv_dlopen" != xno; then
10347 enable_dlopen=yes
10348 else
10349 enable_dlopen=no
10350 fi
10351
10352 case $lt_cv_dlopen in
10353 dlopen)
10354 save_CPPFLAGS="$CPPFLAGS"
10355 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10356
10357 save_LDFLAGS="$LDFLAGS"
10358 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10359
10360 save_LIBS="$LIBS"
10361 LIBS="$lt_cv_dlopen_libs $LIBS"
10362
10363 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10364 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10365 if test "${lt_cv_dlopen_self+set}" = set; then
10366 $as_echo_n "(cached) " >&6
10367 else
10368 if test "$cross_compiling" = yes; then :
10369 lt_cv_dlopen_self=cross
10370 else
10371 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10372 lt_status=$lt_dlunknown
10373 cat > conftest.$ac_ext <<EOF
10374 #line 10374 "configure"
10375 #include "confdefs.h"
10376
10377 #if HAVE_DLFCN_H
10378 #include <dlfcn.h>
10379 #endif
10380
10381 #include <stdio.h>
10382
10383 #ifdef RTLD_GLOBAL
10384 # define LT_DLGLOBAL RTLD_GLOBAL
10385 #else
10386 # ifdef DL_GLOBAL
10387 # define LT_DLGLOBAL DL_GLOBAL
10388 # else
10389 # define LT_DLGLOBAL 0
10390 # endif
10391 #endif
10392
10393 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10394 find out it does not work in some platform. */
10395 #ifndef LT_DLLAZY_OR_NOW
10396 # ifdef RTLD_LAZY
10397 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10398 # else
10399 # ifdef DL_LAZY
10400 # define LT_DLLAZY_OR_NOW DL_LAZY
10401 # else
10402 # ifdef RTLD_NOW
10403 # define LT_DLLAZY_OR_NOW RTLD_NOW
10404 # else
10405 # ifdef DL_NOW
10406 # define LT_DLLAZY_OR_NOW DL_NOW
10407 # else
10408 # define LT_DLLAZY_OR_NOW 0
10409 # endif
10410 # endif
10411 # endif
10412 # endif
10413 #endif
10414
10415 #ifdef __cplusplus
10416 extern "C" void exit (int);
10417 #endif
10418
10419 void fnord() { int i=42;}
10420 int main ()
10421 {
10422 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10423 int status = $lt_dlunknown;
10424
10425 if (self)
10426 {
10427 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10428 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10429 /* dlclose (self); */
10430 }
10431 else
10432 puts (dlerror ());
10433
10434 exit (status);
10435 }
10436 EOF
10437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438 (eval $ac_link) 2>&5
10439 ac_status=$?
10440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10442 (./conftest; exit; ) >&5 2>/dev/null
10443 lt_status=$?
10444 case x$lt_status in
10445 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10446 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10447 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10448 esac
10449 else :
10450 # compilation failed
10451 lt_cv_dlopen_self=no
10452 fi
10453 fi
10454 rm -fr conftest*
10455
10456
10457 fi
10458 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10459 $as_echo "$lt_cv_dlopen_self" >&6; }
10460
10461 if test "x$lt_cv_dlopen_self" = xyes; then
10462 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10463 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10464 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10465 if test "${lt_cv_dlopen_self_static+set}" = set; then
10466 $as_echo_n "(cached) " >&6
10467 else
10468 if test "$cross_compiling" = yes; then :
10469 lt_cv_dlopen_self_static=cross
10470 else
10471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10472 lt_status=$lt_dlunknown
10473 cat > conftest.$ac_ext <<EOF
10474 #line 10474 "configure"
10475 #include "confdefs.h"
10476
10477 #if HAVE_DLFCN_H
10478 #include <dlfcn.h>
10479 #endif
10480
10481 #include <stdio.h>
10482
10483 #ifdef RTLD_GLOBAL
10484 # define LT_DLGLOBAL RTLD_GLOBAL
10485 #else
10486 # ifdef DL_GLOBAL
10487 # define LT_DLGLOBAL DL_GLOBAL
10488 # else
10489 # define LT_DLGLOBAL 0
10490 # endif
10491 #endif
10492
10493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10494 find out it does not work in some platform. */
10495 #ifndef LT_DLLAZY_OR_NOW
10496 # ifdef RTLD_LAZY
10497 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10498 # else
10499 # ifdef DL_LAZY
10500 # define LT_DLLAZY_OR_NOW DL_LAZY
10501 # else
10502 # ifdef RTLD_NOW
10503 # define LT_DLLAZY_OR_NOW RTLD_NOW
10504 # else
10505 # ifdef DL_NOW
10506 # define LT_DLLAZY_OR_NOW DL_NOW
10507 # else
10508 # define LT_DLLAZY_OR_NOW 0
10509 # endif
10510 # endif
10511 # endif
10512 # endif
10513 #endif
10514
10515 #ifdef __cplusplus
10516 extern "C" void exit (int);
10517 #endif
10518
10519 void fnord() { int i=42;}
10520 int main ()
10521 {
10522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10523 int status = $lt_dlunknown;
10524
10525 if (self)
10526 {
10527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10528 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10529 /* dlclose (self); */
10530 }
10531 else
10532 puts (dlerror ());
10533
10534 exit (status);
10535 }
10536 EOF
10537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10538 (eval $ac_link) 2>&5
10539 ac_status=$?
10540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10542 (./conftest; exit; ) >&5 2>/dev/null
10543 lt_status=$?
10544 case x$lt_status in
10545 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10546 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10547 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10548 esac
10549 else :
10550 # compilation failed
10551 lt_cv_dlopen_self_static=no
10552 fi
10553 fi
10554 rm -fr conftest*
10555
10556
10557 fi
10558 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10559 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10560 fi
10561
10562 CPPFLAGS="$save_CPPFLAGS"
10563 LDFLAGS="$save_LDFLAGS"
10564 LIBS="$save_LIBS"
10565 ;;
10566 esac
10567
10568 case $lt_cv_dlopen_self in
10569 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10570 *) enable_dlopen_self=unknown ;;
10571 esac
10572
10573 case $lt_cv_dlopen_self_static in
10574 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10575 *) enable_dlopen_self_static=unknown ;;
10576 esac
10577 fi
10578
10579
10580 # Report which library types will actually be built
10581 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10582 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10583 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10584 $as_echo "$can_build_shared" >&6; }
10585
10586 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10587 $as_echo_n "checking whether to build shared libraries... " >&6; }
10588 test "$can_build_shared" = "no" && enable_shared=no
10589
10590 # On AIX, shared libraries and static libraries use the same namespace, and
10591 # are all built from PIC.
10592 case $host_os in
10593 aix3*)
10594 test "$enable_shared" = yes && enable_static=no
10595 if test -n "$RANLIB"; then
10596 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10597 postinstall_cmds='$RANLIB $lib'
10598 fi
10599 ;;
10600
10601 aix[4-9]*)
10602 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10603 test "$enable_shared" = yes && enable_static=no
10604 fi
10605 ;;
10606 esac
10607 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10608 $as_echo "$enable_shared" >&6; }
10609
10610 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10611 $as_echo_n "checking whether to build static libraries... " >&6; }
10612 # Make sure either enable_shared or enable_static is yes.
10613 test "$enable_shared" = yes || enable_static=yes
10614 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10615 $as_echo "$enable_static" >&6; }
10616
10617 # The else clause should only fire when bootstrapping the
10618 # libtool distribution, otherwise you forgot to ship ltmain.sh
10619 # with your package, and you will get complaints that there are
10620 # no rules to generate ltmain.sh.
10621 if test -f "$ltmain"; then
10622 # See if we are running on zsh, and set the options which allow our commands through
10623 # without removal of \ escapes.
10624 if test -n "${ZSH_VERSION+set}" ; then
10625 setopt NO_GLOB_SUBST
10626 fi
10627 # Now quote all the things that may contain metacharacters while being
10628 # careful not to overquote the AC_SUBSTed values. We take copies of the
10629 # variables and quote the copies for generation of the libtool script.
10630 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10631 SED SHELL STRIP \
10632 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10633 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10634 deplibs_check_method reload_flag reload_cmds need_locks \
10635 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10636 lt_cv_sys_global_symbol_to_c_name_address \
10637 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10638 old_postinstall_cmds old_postuninstall_cmds \
10639 compiler \
10640 CC \
10641 LD \
10642 lt_prog_compiler_wl \
10643 lt_prog_compiler_pic \
10644 lt_prog_compiler_static \
10645 lt_prog_compiler_no_builtin_flag \
10646 export_dynamic_flag_spec \
10647 thread_safe_flag_spec \
10648 whole_archive_flag_spec \
10649 enable_shared_with_static_runtimes \
10650 old_archive_cmds \
10651 old_archive_from_new_cmds \
10652 predep_objects \
10653 postdep_objects \
10654 predeps \
10655 postdeps \
10656 compiler_lib_search_path \
10657 compiler_lib_search_dirs \
10658 archive_cmds \
10659 archive_expsym_cmds \
10660 postinstall_cmds \
10661 postuninstall_cmds \
10662 old_archive_from_expsyms_cmds \
10663 allow_undefined_flag \
10664 no_undefined_flag \
10665 export_symbols_cmds \
10666 hardcode_libdir_flag_spec \
10667 hardcode_libdir_flag_spec_ld \
10668 hardcode_libdir_separator \
10669 hardcode_automatic \
10670 module_cmds \
10671 module_expsym_cmds \
10672 lt_cv_prog_compiler_c_o \
10673 fix_srcfile_path \
10674 exclude_expsyms \
10675 include_expsyms; do
10676
10677 case $var in
10678 old_archive_cmds | \
10679 old_archive_from_new_cmds | \
10680 archive_cmds | \
10681 archive_expsym_cmds | \
10682 module_cmds | \
10683 module_expsym_cmds | \
10684 old_archive_from_expsyms_cmds | \
10685 export_symbols_cmds | \
10686 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10687 postinstall_cmds | postuninstall_cmds | \
10688 old_postinstall_cmds | old_postuninstall_cmds | \
10689 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10690 # Double-quote double-evaled strings.
10691 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10692 ;;
10693 *)
10694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10695 ;;
10696 esac
10697 done
10698
10699 case $lt_echo in
10700 *'\$0 --fallback-echo"')
10701 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10702 ;;
10703 esac
10704
10705 cfgfile="${ofile}T"
10706 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10707 $rm -f "$cfgfile"
10708 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10709 $as_echo "$as_me: creating $ofile" >&6;}
10710
10711 cat <<__EOF__ >> "$cfgfile"
10712 #! $SHELL
10713
10714 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10715 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10716 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10717 #
10718 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10719 # Free Software Foundation, Inc.
10720 #
10721 # This file is part of GNU Libtool:
10722 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10723 #
10724 # This program is free software; you can redistribute it and/or modify
10725 # it under the terms of the GNU General Public License as published by
10726 # the Free Software Foundation; either version 2 of the License, or
10727 # (at your option) any later version.
10728 #
10729 # This program is distributed in the hope that it will be useful, but
10730 # WITHOUT ANY WARRANTY; without even the implied warranty of
10731 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10732 # General Public License for more details.
10733 #
10734 # You should have received a copy of the GNU General Public License
10735 # along with this program; if not, write to the Free Software
10736 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10737 #
10738 # As a special exception to the GNU General Public License, if you
10739 # distribute this file as part of a program that contains a
10740 # configuration script generated by Autoconf, you may include it under
10741 # the same distribution terms that you use for the rest of that program.
10742
10743 # A sed program that does not truncate output.
10744 SED=$lt_SED
10745
10746 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10747 Xsed="$SED -e 1s/^X//"
10748
10749 # The HP-UX ksh and POSIX shell print the target directory to stdout
10750 # if CDPATH is set.
10751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10752
10753 # The names of the tagged configurations supported by this script.
10754 available_tags=
10755
10756 # ### BEGIN LIBTOOL CONFIG
10757
10758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10759
10760 # Shell to use when invoking shell scripts.
10761 SHELL=$lt_SHELL
10762
10763 # Whether or not to build shared libraries.
10764 build_libtool_libs=$enable_shared
10765
10766 # Whether or not to build static libraries.
10767 build_old_libs=$enable_static
10768
10769 # Whether or not to add -lc for building shared libraries.
10770 build_libtool_need_lc=$archive_cmds_need_lc
10771
10772 # Whether or not to disallow shared libs when runtime libs are static
10773 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10774
10775 # Whether or not to optimize for fast installation.
10776 fast_install=$enable_fast_install
10777
10778 # The host system.
10779 host_alias=$host_alias
10780 host=$host
10781 host_os=$host_os
10782
10783 # The build system.
10784 build_alias=$build_alias
10785 build=$build
10786 build_os=$build_os
10787
10788 # An echo program that does not interpret backslashes.
10789 echo=$lt_echo
10790
10791 # The archiver.
10792 AR=$lt_AR
10793 AR_FLAGS=$lt_AR_FLAGS
10794
10795 # A C compiler.
10796 LTCC=$lt_LTCC
10797
10798 # LTCC compiler flags.
10799 LTCFLAGS=$lt_LTCFLAGS
10800
10801 # A language-specific compiler.
10802 CC=$lt_compiler
10803
10804 # Is the compiler the GNU C compiler?
10805 with_gcc=$GCC
10806
10807 # An ERE matcher.
10808 EGREP=$lt_EGREP
10809
10810 # The linker used to build libraries.
10811 LD=$lt_LD
10812
10813 # Whether we need hard or soft links.
10814 LN_S=$lt_LN_S
10815
10816 # A BSD-compatible nm program.
10817 NM=$lt_NM
10818
10819 # A symbol stripping program
10820 STRIP=$lt_STRIP
10821
10822 # Used to examine libraries when file_magic_cmd begins "file"
10823 MAGIC_CMD=$MAGIC_CMD
10824
10825 # Used on cygwin: DLL creation program.
10826 DLLTOOL="$DLLTOOL"
10827
10828 # Used on cygwin: object dumper.
10829 OBJDUMP="$OBJDUMP"
10830
10831 # Used on cygwin: assembler.
10832 AS="$AS"
10833
10834 # The name of the directory that contains temporary libtool files.
10835 objdir=$objdir
10836
10837 # How to create reloadable object files.
10838 reload_flag=$lt_reload_flag
10839 reload_cmds=$lt_reload_cmds
10840
10841 # How to pass a linker flag through the compiler.
10842 wl=$lt_lt_prog_compiler_wl
10843
10844 # Object file suffix (normally "o").
10845 objext="$ac_objext"
10846
10847 # Old archive suffix (normally "a").
10848 libext="$libext"
10849
10850 # Shared library suffix (normally ".so").
10851 shrext_cmds='$shrext_cmds'
10852
10853 # Executable file suffix (normally "").
10854 exeext="$exeext"
10855
10856 # Additional compiler flags for building library objects.
10857 pic_flag=$lt_lt_prog_compiler_pic
10858 pic_mode=$pic_mode
10859
10860 # What is the maximum length of a command?
10861 max_cmd_len=$lt_cv_sys_max_cmd_len
10862
10863 # Does compiler simultaneously support -c and -o options?
10864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10865
10866 # Must we lock files when doing compilation?
10867 need_locks=$lt_need_locks
10868
10869 # Do we need the lib prefix for modules?
10870 need_lib_prefix=$need_lib_prefix
10871
10872 # Do we need a version for libraries?
10873 need_version=$need_version
10874
10875 # Whether dlopen is supported.
10876 dlopen_support=$enable_dlopen
10877
10878 # Whether dlopen of programs is supported.
10879 dlopen_self=$enable_dlopen_self
10880
10881 # Whether dlopen of statically linked programs is supported.
10882 dlopen_self_static=$enable_dlopen_self_static
10883
10884 # Compiler flag to prevent dynamic linking.
10885 link_static_flag=$lt_lt_prog_compiler_static
10886
10887 # Compiler flag to turn off builtin functions.
10888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10889
10890 # Compiler flag to allow reflexive dlopens.
10891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10892
10893 # Compiler flag to generate shared objects directly from archives.
10894 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10895
10896 # Compiler flag to generate thread-safe objects.
10897 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10898
10899 # Library versioning type.
10900 version_type=$version_type
10901
10902 # Format of library name prefix.
10903 libname_spec=$lt_libname_spec
10904
10905 # List of archive names. First name is the real one, the rest are links.
10906 # The last name is the one that the linker finds with -lNAME.
10907 library_names_spec=$lt_library_names_spec
10908
10909 # The coded name of the library, if different from the real name.
10910 soname_spec=$lt_soname_spec
10911
10912 # Commands used to build and install an old-style archive.
10913 RANLIB=$lt_RANLIB
10914 old_archive_cmds=$lt_old_archive_cmds
10915 old_postinstall_cmds=$lt_old_postinstall_cmds
10916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10917
10918 # Create an old-style archive from a shared archive.
10919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10920
10921 # Create a temporary old-style archive to link instead of a shared archive.
10922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10923
10924 # Commands used to build and install a shared archive.
10925 archive_cmds=$lt_archive_cmds
10926 archive_expsym_cmds=$lt_archive_expsym_cmds
10927 postinstall_cmds=$lt_postinstall_cmds
10928 postuninstall_cmds=$lt_postuninstall_cmds
10929
10930 # Commands used to build a loadable module (assumed same as above if empty)
10931 module_cmds=$lt_module_cmds
10932 module_expsym_cmds=$lt_module_expsym_cmds
10933
10934 # Commands to strip libraries.
10935 old_striplib=$lt_old_striplib
10936 striplib=$lt_striplib
10937
10938 # Dependencies to place before the objects being linked to create a
10939 # shared library.
10940 predep_objects=$lt_predep_objects
10941
10942 # Dependencies to place after the objects being linked to create a
10943 # shared library.
10944 postdep_objects=$lt_postdep_objects
10945
10946 # Dependencies to place before the objects being linked to create a
10947 # shared library.
10948 predeps=$lt_predeps
10949
10950 # Dependencies to place after the objects being linked to create a
10951 # shared library.
10952 postdeps=$lt_postdeps
10953
10954 # The directories searched by this compiler when creating a shared
10955 # library
10956 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10957
10958 # The library search path used internally by the compiler when linking
10959 # a shared library.
10960 compiler_lib_search_path=$lt_compiler_lib_search_path
10961
10962 # Method to check whether dependent libraries are shared objects.
10963 deplibs_check_method=$lt_deplibs_check_method
10964
10965 # Command to use when deplibs_check_method == file_magic.
10966 file_magic_cmd=$lt_file_magic_cmd
10967
10968 # Flag that allows shared libraries with undefined symbols to be built.
10969 allow_undefined_flag=$lt_allow_undefined_flag
10970
10971 # Flag that forces no undefined symbols.
10972 no_undefined_flag=$lt_no_undefined_flag
10973
10974 # Commands used to finish a libtool library installation in a directory.
10975 finish_cmds=$lt_finish_cmds
10976
10977 # Same as above, but a single script fragment to be evaled but not shown.
10978 finish_eval=$lt_finish_eval
10979
10980 # Take the output of nm and produce a listing of raw symbols and C names.
10981 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10982
10983 # Transform the output of nm in a proper C declaration
10984 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10985
10986 # Transform the output of nm in a C name address pair
10987 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10988
10989 # This is the shared library runtime path variable.
10990 runpath_var=$runpath_var
10991
10992 # This is the shared library path variable.
10993 shlibpath_var=$shlibpath_var
10994
10995 # Is shlibpath searched before the hard-coded library search path?
10996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10997
10998 # How to hardcode a shared library path into an executable.
10999 hardcode_action=$hardcode_action
11000
11001 # Whether we should hardcode library paths into libraries.
11002 hardcode_into_libs=$hardcode_into_libs
11003
11004 # Flag to hardcode \$libdir into a binary during linking.
11005 # This must work even if \$libdir does not exist.
11006 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11007
11008 # If ld is used when linking, flag to hardcode \$libdir into
11009 # a binary during linking. This must work even if \$libdir does
11010 # not exist.
11011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11012
11013 # Whether we need a single -rpath flag with a separated argument.
11014 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11015
11016 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11017 # resulting binary.
11018 hardcode_direct=$hardcode_direct
11019
11020 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11021 # resulting binary.
11022 hardcode_minus_L=$hardcode_minus_L
11023
11024 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11025 # the resulting binary.
11026 hardcode_shlibpath_var=$hardcode_shlibpath_var
11027
11028 # Set to yes if building a shared library automatically hardcodes DIR into the library
11029 # and all subsequent libraries and executables linked against it.
11030 hardcode_automatic=$hardcode_automatic
11031
11032 # Variables whose values should be saved in libtool wrapper scripts and
11033 # restored at relink time.
11034 variables_saved_for_relink="$variables_saved_for_relink"
11035
11036 # Whether libtool must link a program against all its dependency libraries.
11037 link_all_deplibs=$link_all_deplibs
11038
11039 # Compile-time system search path for libraries
11040 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11041
11042 # Run-time system search path for libraries
11043 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11044
11045 # Fix the shell variable \$srcfile for the compiler.
11046 fix_srcfile_path=$lt_fix_srcfile_path
11047
11048 # Set to yes if exported symbols are required.
11049 always_export_symbols=$always_export_symbols
11050
11051 # The commands to list exported symbols.
11052 export_symbols_cmds=$lt_export_symbols_cmds
11053
11054 # The commands to extract the exported symbol list from a shared archive.
11055 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11056
11057 # Symbols that should not be listed in the preloaded symbols.
11058 exclude_expsyms=$lt_exclude_expsyms
11059
11060 # Symbols that must always be exported.
11061 include_expsyms=$lt_include_expsyms
11062
11063 # ### END LIBTOOL CONFIG
11064
11065 __EOF__
11066
11067
11068 case $host_os in
11069 aix3*)
11070 cat <<\EOF >> "$cfgfile"
11071
11072 # AIX sometimes has problems with the GCC collect2 program. For some
11073 # reason, if we set the COLLECT_NAMES environment variable, the problems
11074 # vanish in a puff of smoke.
11075 if test "X${COLLECT_NAMES+set}" != Xset; then
11076 COLLECT_NAMES=
11077 export COLLECT_NAMES
11078 fi
11079 EOF
11080 ;;
11081 esac
11082
11083 # We use sed instead of cat because bash on DJGPP gets confused if
11084 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11085 # text mode, it properly converts lines to CR/LF. This bash problem
11086 # is reportedly fixed, but why not run on old versions too?
11087 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11088
11089 mv -f "$cfgfile" "$ofile" || \
11090 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11091 chmod +x "$ofile"
11092
11093 else
11094 # If there is no Makefile yet, we rely on a make rule to execute
11095 # `config.status --recheck' to rerun these tests and create the
11096 # libtool script then.
11097 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11098 if test -f "$ltmain_in"; then
11099 test -f Makefile && make "$ltmain"
11100 fi
11101 fi
11102
11103
11104 ac_ext=c
11105 ac_cpp='$CPP $CPPFLAGS'
11106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11109
11110 CC="$lt_save_CC"
11111
11112
11113 # Check whether --with-tags was given.
11114 if test "${with_tags+set}" = set; then
11115 withval=$with_tags; tagnames="$withval"
11116 fi
11117
11118
11119 if test -f "$ltmain" && test -n "$tagnames"; then
11120 if test ! -f "${ofile}"; then
11121 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11122 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11123 fi
11124
11125 if test -z "$LTCC"; then
11126 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11127 if test -z "$LTCC"; then
11128 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11129 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11130 else
11131 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11132 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11133 fi
11134 fi
11135 if test -z "$LTCFLAGS"; then
11136 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11137 fi
11138
11139 # Extract list of available tagged configurations in $ofile.
11140 # Note that this assumes the entire list is on one line.
11141 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11142
11143 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11144 for tagname in $tagnames; do
11145 IFS="$lt_save_ifs"
11146 # Check whether tagname contains only valid characters
11147 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11148 "") ;;
11149 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11150 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11151 { (exit 1); exit 1; }; }
11152 ;;
11153 esac
11154
11155 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11156 then
11157 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11158 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11159 { (exit 1); exit 1; }; }
11160 fi
11161
11162 # Update the list of available tags.
11163 if test -n "$tagname"; then
11164 echo appending configuration tag \"$tagname\" to $ofile
11165
11166 case $tagname in
11167 CXX)
11168 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11169 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11170 (test "X$CXX" != "Xg++"))) ; then
11171 ac_ext=cpp
11172 ac_cpp='$CXXCPP $CPPFLAGS'
11173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11176
11177
11178
11179
11180 archive_cmds_need_lc_CXX=no
11181 allow_undefined_flag_CXX=
11182 always_export_symbols_CXX=no
11183 archive_expsym_cmds_CXX=
11184 export_dynamic_flag_spec_CXX=
11185 hardcode_direct_CXX=no
11186 hardcode_libdir_flag_spec_CXX=
11187 hardcode_libdir_flag_spec_ld_CXX=
11188 hardcode_libdir_separator_CXX=
11189 hardcode_minus_L_CXX=no
11190 hardcode_shlibpath_var_CXX=unsupported
11191 hardcode_automatic_CXX=no
11192 module_cmds_CXX=
11193 module_expsym_cmds_CXX=
11194 link_all_deplibs_CXX=unknown
11195 old_archive_cmds_CXX=$old_archive_cmds
11196 no_undefined_flag_CXX=
11197 whole_archive_flag_spec_CXX=
11198 enable_shared_with_static_runtimes_CXX=no
11199
11200 # Dependencies to place before and after the object being linked:
11201 predep_objects_CXX=
11202 postdep_objects_CXX=
11203 predeps_CXX=
11204 postdeps_CXX=
11205 compiler_lib_search_path_CXX=
11206 compiler_lib_search_dirs_CXX=
11207
11208 # Source file extension for C++ test sources.
11209 ac_ext=cpp
11210
11211 # Object file extension for compiled C++ test sources.
11212 objext=o
11213 objext_CXX=$objext
11214
11215 # Code to be used in simple compile tests
11216 lt_simple_compile_test_code="int some_variable = 0;"
11217
11218 # Code to be used in simple link tests
11219 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11220
11221 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11222
11223 # If no C compiler was specified, use CC.
11224 LTCC=${LTCC-"$CC"}
11225
11226 # If no C compiler flags were specified, use CFLAGS.
11227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11228
11229 # Allow CC to be a program name with arguments.
11230 compiler=$CC
11231
11232
11233 # save warnings/boilerplate of simple test code
11234 ac_outfile=conftest.$ac_objext
11235 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11236 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11237 _lt_compiler_boilerplate=`cat conftest.err`
11238 $rm conftest*
11239
11240 ac_outfile=conftest.$ac_objext
11241 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11242 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11243 _lt_linker_boilerplate=`cat conftest.err`
11244 $rm -r conftest*
11245
11246
11247 # Allow CC to be a program name with arguments.
11248 lt_save_CC=$CC
11249 lt_save_LD=$LD
11250 lt_save_GCC=$GCC
11251 GCC=$GXX
11252 lt_save_with_gnu_ld=$with_gnu_ld
11253 lt_save_path_LD=$lt_cv_path_LD
11254 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11255 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11256 else
11257 $as_unset lt_cv_prog_gnu_ld
11258 fi
11259 if test -n "${lt_cv_path_LDCXX+set}"; then
11260 lt_cv_path_LD=$lt_cv_path_LDCXX
11261 else
11262 $as_unset lt_cv_path_LD
11263 fi
11264 test -z "${LDCXX+set}" || LD=$LDCXX
11265 CC=${CXX-"c++"}
11266 compiler=$CC
11267 compiler_CXX=$CC
11268 for cc_temp in $compiler""; do
11269 case $cc_temp in
11270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11272 \-*) ;;
11273 *) break;;
11274 esac
11275 done
11276 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11277
11278
11279 # We don't want -fno-exception wen compiling C++ code, so set the
11280 # no_builtin_flag separately
11281 if test "$GXX" = yes; then
11282 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11283 else
11284 lt_prog_compiler_no_builtin_flag_CXX=
11285 fi
11286
11287 if test "$GXX" = yes; then
11288 # Set up default GNU C++ configuration
11289
11290
11291 # Check whether --with-gnu-ld was given.
11292 if test "${with_gnu_ld+set}" = set; then
11293 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11294 else
11295 with_gnu_ld=no
11296 fi
11297
11298 ac_prog=ld
11299 if test "$GCC" = yes; then
11300 # Check if gcc -print-prog-name=ld gives a path.
11301 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11302 $as_echo_n "checking for ld used by $CC... " >&6; }
11303 case $host in
11304 *-*-mingw*)
11305 # gcc leaves a trailing carriage return which upsets mingw
11306 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11307 *)
11308 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11309 esac
11310 case $ac_prog in
11311 # Accept absolute paths.
11312 [\\/]* | ?:[\\/]*)
11313 re_direlt='/[^/][^/]*/\.\./'
11314 # Canonicalize the pathname of ld
11315 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11316 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11317 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11318 done
11319 test -z "$LD" && LD="$ac_prog"
11320 ;;
11321 "")
11322 # If it fails, then pretend we aren't using GCC.
11323 ac_prog=ld
11324 ;;
11325 *)
11326 # If it is relative, then search for the first ld in PATH.
11327 with_gnu_ld=unknown
11328 ;;
11329 esac
11330 elif test "$with_gnu_ld" = yes; then
11331 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11332 $as_echo_n "checking for GNU ld... " >&6; }
11333 else
11334 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11335 $as_echo_n "checking for non-GNU ld... " >&6; }
11336 fi
11337 if test "${lt_cv_path_LD+set}" = set; then
11338 $as_echo_n "(cached) " >&6
11339 else
11340 if test -z "$LD"; then
11341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11342 for ac_dir in $PATH; do
11343 IFS="$lt_save_ifs"
11344 test -z "$ac_dir" && ac_dir=.
11345 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11346 lt_cv_path_LD="$ac_dir/$ac_prog"
11347 # Check to see if the program is GNU ld. I'd rather use --version,
11348 # but apparently some variants of GNU ld only accept -v.
11349 # Break only if it was the GNU/non-GNU ld that we prefer.
11350 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11351 *GNU* | *'with BFD'*)
11352 test "$with_gnu_ld" != no && break
11353 ;;
11354 *)
11355 test "$with_gnu_ld" != yes && break
11356 ;;
11357 esac
11358 fi
11359 done
11360 IFS="$lt_save_ifs"
11361 else
11362 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11363 fi
11364 fi
11365
11366 LD="$lt_cv_path_LD"
11367 if test -n "$LD"; then
11368 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11369 $as_echo "$LD" >&6; }
11370 else
11371 { $as_echo "$as_me:$LINENO: result: no" >&5
11372 $as_echo "no" >&6; }
11373 fi
11374 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11375 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11376 { (exit 1); exit 1; }; }
11377 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11379 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11380 $as_echo_n "(cached) " >&6
11381 else
11382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11383 case `$LD -v 2>&1 </dev/null` in
11384 *GNU* | *'with BFD'*)
11385 lt_cv_prog_gnu_ld=yes
11386 ;;
11387 *)
11388 lt_cv_prog_gnu_ld=no
11389 ;;
11390 esac
11391 fi
11392 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11394 with_gnu_ld=$lt_cv_prog_gnu_ld
11395
11396
11397
11398 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11399 # archiving commands below assume that GNU ld is being used.
11400 if test "$with_gnu_ld" = yes; then
11401 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11402 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'
11403
11404 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11405 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11406
11407 # If archive_cmds runs LD, not CC, wlarc should be empty
11408 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11409 # investigate it a little bit more. (MM)
11410 wlarc='${wl}'
11411
11412 # ancient GNU ld didn't support --whole-archive et. al.
11413 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11414 grep 'no-whole-archive' > /dev/null; then
11415 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11416 else
11417 whole_archive_flag_spec_CXX=
11418 fi
11419 else
11420 with_gnu_ld=no
11421 wlarc=
11422
11423 # A generic and very simple default shared library creation
11424 # command for GNU C++ for the case where it uses the native
11425 # linker, instead of GNU ld. If possible, this setting should
11426 # overridden to take advantage of the native linker features on
11427 # the platform it is being used on.
11428 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11429 fi
11430
11431 # Commands to make compiler produce verbose output that lists
11432 # what "hidden" libraries, object files and flags are used when
11433 # linking a shared library.
11434 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11435
11436 else
11437 GXX=no
11438 with_gnu_ld=no
11439 wlarc=
11440 fi
11441
11442 # PORTME: fill in a description of your system's C++ link characteristics
11443 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11444 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11445 ld_shlibs_CXX=yes
11446 case $host_os in
11447 aix3*)
11448 # FIXME: insert proper C++ library support
11449 ld_shlibs_CXX=no
11450 ;;
11451 aix[4-9]*)
11452 if test "$host_cpu" = ia64; then
11453 # On IA64, the linker does run time linking by default, so we don't
11454 # have to do anything special.
11455 aix_use_runtimelinking=no
11456 exp_sym_flag='-Bexport'
11457 no_entry_flag=""
11458 else
11459 aix_use_runtimelinking=no
11460
11461 # Test if we are trying to use run time linking or normal
11462 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11463 # need to do runtime linking.
11464 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11465 for ld_flag in $LDFLAGS; do
11466 case $ld_flag in
11467 *-brtl*)
11468 aix_use_runtimelinking=yes
11469 break
11470 ;;
11471 esac
11472 done
11473 ;;
11474 esac
11475
11476 exp_sym_flag='-bexport'
11477 no_entry_flag='-bnoentry'
11478 fi
11479
11480 # When large executables or shared objects are built, AIX ld can
11481 # have problems creating the table of contents. If linking a library
11482 # or program results in "error TOC overflow" add -mminimal-toc to
11483 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11484 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11485
11486 archive_cmds_CXX=''
11487 hardcode_direct_CXX=yes
11488 hardcode_libdir_separator_CXX=':'
11489 link_all_deplibs_CXX=yes
11490
11491 if test "$GXX" = yes; then
11492 case $host_os in aix4.[012]|aix4.[012].*)
11493 # We only want to do this on AIX 4.2 and lower, the check
11494 # below for broken collect2 doesn't work under 4.3+
11495 collect2name=`${CC} -print-prog-name=collect2`
11496 if test -f "$collect2name" && \
11497 strings "$collect2name" | grep resolve_lib_name >/dev/null
11498 then
11499 # We have reworked collect2
11500 :
11501 else
11502 # We have old collect2
11503 hardcode_direct_CXX=unsupported
11504 # It fails to find uninstalled libraries when the uninstalled
11505 # path is not listed in the libpath. Setting hardcode_minus_L
11506 # to unsupported forces relinking
11507 hardcode_minus_L_CXX=yes
11508 hardcode_libdir_flag_spec_CXX='-L$libdir'
11509 hardcode_libdir_separator_CXX=
11510 fi
11511 ;;
11512 esac
11513 shared_flag='-shared'
11514 if test "$aix_use_runtimelinking" = yes; then
11515 shared_flag="$shared_flag "'${wl}-G'
11516 fi
11517 else
11518 # not using gcc
11519 if test "$host_cpu" = ia64; then
11520 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11521 # chokes on -Wl,-G. The following line is correct:
11522 shared_flag='-G'
11523 else
11524 if test "$aix_use_runtimelinking" = yes; then
11525 shared_flag='${wl}-G'
11526 else
11527 shared_flag='${wl}-bM:SRE'
11528 fi
11529 fi
11530 fi
11531
11532 # It seems that -bexpall does not export symbols beginning with
11533 # underscore (_), so it is better to generate a list of symbols to export.
11534 always_export_symbols_CXX=yes
11535 if test "$aix_use_runtimelinking" = yes; then
11536 # Warning - without using the other runtime loading flags (-brtl),
11537 # -berok will link without error, but may produce a broken library.
11538 allow_undefined_flag_CXX='-berok'
11539 # Determine the default libpath from the value encoded in an empty executable.
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h. */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546
11547 int
11548 main ()
11549 {
11550
11551 ;
11552 return 0;
11553 }
11554 _ACEOF
11555 rm -f conftest.$ac_objext conftest$ac_exeext
11556 if { (ac_try="$ac_link"
11557 case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560 esac
11561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11562 $as_echo "$ac_try_echo") >&5
11563 (eval "$ac_link") 2>conftest.er1
11564 ac_status=$?
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
11568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } && {
11570 test -z "$ac_cxx_werror_flag" ||
11571 test ! -s conftest.err
11572 } && test -s conftest$ac_exeext && {
11573 test "$cross_compiling" = yes ||
11574 $as_test_x conftest$ac_exeext
11575 }; then
11576
11577 lt_aix_libpath_sed='
11578 /Import File Strings/,/^$/ {
11579 /^0/ {
11580 s/^0 *\(.*\)$/\1/
11581 p
11582 }
11583 }'
11584 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11585 # Check for a 64-bit object if we didn't find anything.
11586 if test -z "$aix_libpath"; then
11587 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11588 fi
11589 else
11590 $as_echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11592
11593
11594 fi
11595
11596 rm -rf conftest.dSYM
11597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11598 conftest$ac_exeext conftest.$ac_ext
11599 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11600
11601 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11602
11603 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"
11604 else
11605 if test "$host_cpu" = ia64; then
11606 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11607 allow_undefined_flag_CXX="-z nodefs"
11608 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"
11609 else
11610 # Determine the default libpath from the value encoded in an empty executable.
11611 cat >conftest.$ac_ext <<_ACEOF
11612 /* confdefs.h. */
11613 _ACEOF
11614 cat confdefs.h >>conftest.$ac_ext
11615 cat >>conftest.$ac_ext <<_ACEOF
11616 /* end confdefs.h. */
11617
11618 int
11619 main ()
11620 {
11621
11622 ;
11623 return 0;
11624 }
11625 _ACEOF
11626 rm -f conftest.$ac_objext conftest$ac_exeext
11627 if { (ac_try="$ac_link"
11628 case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631 esac
11632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11633 $as_echo "$ac_try_echo") >&5
11634 (eval "$ac_link") 2>conftest.er1
11635 ac_status=$?
11636 grep -v '^ *+' conftest.er1 >conftest.err
11637 rm -f conftest.er1
11638 cat conftest.err >&5
11639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } && {
11641 test -z "$ac_cxx_werror_flag" ||
11642 test ! -s conftest.err
11643 } && test -s conftest$ac_exeext && {
11644 test "$cross_compiling" = yes ||
11645 $as_test_x conftest$ac_exeext
11646 }; then
11647
11648 lt_aix_libpath_sed='
11649 /Import File Strings/,/^$/ {
11650 /^0/ {
11651 s/^0 *\(.*\)$/\1/
11652 p
11653 }
11654 }'
11655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11656 # Check for a 64-bit object if we didn't find anything.
11657 if test -z "$aix_libpath"; then
11658 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11659 fi
11660 else
11661 $as_echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11663
11664
11665 fi
11666
11667 rm -rf conftest.dSYM
11668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11669 conftest$ac_exeext conftest.$ac_ext
11670 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11671
11672 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11673 # Warning - without using the other run time loading flags,
11674 # -berok will link without error, but may produce a broken library.
11675 no_undefined_flag_CXX=' ${wl}-bernotok'
11676 allow_undefined_flag_CXX=' ${wl}-berok'
11677 # Exported symbols can be pulled into shared objects from archives
11678 whole_archive_flag_spec_CXX='$convenience'
11679 archive_cmds_need_lc_CXX=yes
11680 # This is similar to how AIX traditionally builds its shared libraries.
11681 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'
11682 fi
11683 fi
11684 ;;
11685
11686 beos*)
11687 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11688 allow_undefined_flag_CXX=unsupported
11689 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11690 # support --undefined. This deserves some investigation. FIXME
11691 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11692 else
11693 ld_shlibs_CXX=no
11694 fi
11695 ;;
11696
11697 chorus*)
11698 case $cc_basename in
11699 *)
11700 # FIXME: insert proper C++ library support
11701 ld_shlibs_CXX=no
11702 ;;
11703 esac
11704 ;;
11705
11706 cygwin* | mingw* | pw32*)
11707 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11708 # as there is no search path for DLLs.
11709 hardcode_libdir_flag_spec_CXX='-L$libdir'
11710 allow_undefined_flag_CXX=unsupported
11711 always_export_symbols_CXX=no
11712 enable_shared_with_static_runtimes_CXX=yes
11713
11714 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11715 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'
11716 # If the export-symbols file already is a .def file (1st line
11717 # is EXPORTS), use it as is; otherwise, prepend...
11718 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11719 cp $export_symbols $output_objdir/$soname.def;
11720 else
11721 echo EXPORTS > $output_objdir/$soname.def;
11722 cat $export_symbols >> $output_objdir/$soname.def;
11723 fi~
11724 $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'
11725 else
11726 ld_shlibs_CXX=no
11727 fi
11728 ;;
11729 darwin* | rhapsody*)
11730 archive_cmds_need_lc_CXX=no
11731 hardcode_direct_CXX=no
11732 hardcode_automatic_CXX=yes
11733 hardcode_shlibpath_var_CXX=unsupported
11734 whole_archive_flag_spec_CXX=''
11735 link_all_deplibs_CXX=yes
11736 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11737 if test "$GXX" = yes ; then
11738 output_verbose_link_cmd='echo'
11739 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11740 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11741 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11742 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11743 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11744 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11745 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11746 fi
11747 else
11748 case $cc_basename in
11749 xlc*)
11750 output_verbose_link_cmd='echo'
11751 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'
11752 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11753 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11754 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}'
11755 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}'
11756 ;;
11757 *)
11758 ld_shlibs_CXX=no
11759 ;;
11760 esac
11761 fi
11762 ;;
11763
11764 dgux*)
11765 case $cc_basename in
11766 ec++*)
11767 # FIXME: insert proper C++ library support
11768 ld_shlibs_CXX=no
11769 ;;
11770 ghcx*)
11771 # Green Hills C++ Compiler
11772 # FIXME: insert proper C++ library support
11773 ld_shlibs_CXX=no
11774 ;;
11775 *)
11776 # FIXME: insert proper C++ library support
11777 ld_shlibs_CXX=no
11778 ;;
11779 esac
11780 ;;
11781 freebsd[12]*)
11782 # C++ shared libraries reported to be fairly broken before switch to ELF
11783 ld_shlibs_CXX=no
11784 ;;
11785 freebsd-elf*)
11786 archive_cmds_need_lc_CXX=no
11787 ;;
11788 freebsd* | dragonfly*)
11789 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11790 # conventions
11791 ld_shlibs_CXX=yes
11792 ;;
11793 gnu*)
11794 ;;
11795 hpux9*)
11796 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11797 hardcode_libdir_separator_CXX=:
11798 export_dynamic_flag_spec_CXX='${wl}-E'
11799 hardcode_direct_CXX=yes
11800 hardcode_minus_L_CXX=yes # Not in the search PATH,
11801 # but as the default
11802 # location of the library.
11803
11804 case $cc_basename in
11805 CC*)
11806 # FIXME: insert proper C++ library support
11807 ld_shlibs_CXX=no
11808 ;;
11809 aCC*)
11810 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'
11811 # Commands to make compiler produce verbose output that lists
11812 # what "hidden" libraries, object files and flags are used when
11813 # linking a shared library.
11814 #
11815 # There doesn't appear to be a way to prevent this compiler from
11816 # explicitly linking system object files so we need to strip them
11817 # from the output so that they don't get included in the library
11818 # dependencies.
11819 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'
11820 ;;
11821 *)
11822 if test "$GXX" = yes; then
11823 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'
11824 else
11825 # FIXME: insert proper C++ library support
11826 ld_shlibs_CXX=no
11827 fi
11828 ;;
11829 esac
11830 ;;
11831 hpux10*|hpux11*)
11832 if test $with_gnu_ld = no; then
11833 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11834 hardcode_libdir_separator_CXX=:
11835
11836 case $host_cpu in
11837 hppa*64*|ia64*) ;;
11838 *)
11839 export_dynamic_flag_spec_CXX='${wl}-E'
11840 ;;
11841 esac
11842 fi
11843 case $host_cpu in
11844 hppa*64*|ia64*)
11845 hardcode_direct_CXX=no
11846 hardcode_shlibpath_var_CXX=no
11847 ;;
11848 *)
11849 hardcode_direct_CXX=yes
11850 hardcode_minus_L_CXX=yes # Not in the search PATH,
11851 # but as the default
11852 # location of the library.
11853 ;;
11854 esac
11855
11856 case $cc_basename in
11857 CC*)
11858 # FIXME: insert proper C++ library support
11859 ld_shlibs_CXX=no
11860 ;;
11861 aCC*)
11862 case $host_cpu in
11863 hppa*64*)
11864 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11865 ;;
11866 ia64*)
11867 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11868 ;;
11869 *)
11870 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11871 ;;
11872 esac
11873 # Commands to make compiler produce verbose output that lists
11874 # what "hidden" libraries, object files and flags are used when
11875 # linking a shared library.
11876 #
11877 # There doesn't appear to be a way to prevent this compiler from
11878 # explicitly linking system object files so we need to strip them
11879 # from the output so that they don't get included in the library
11880 # dependencies.
11881 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'
11882 ;;
11883 *)
11884 if test "$GXX" = yes; then
11885 if test $with_gnu_ld = no; then
11886 case $host_cpu in
11887 hppa*64*)
11888 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11889 ;;
11890 ia64*)
11891 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11892 ;;
11893 *)
11894 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'
11895 ;;
11896 esac
11897 fi
11898 else
11899 # FIXME: insert proper C++ library support
11900 ld_shlibs_CXX=no
11901 fi
11902 ;;
11903 esac
11904 ;;
11905 interix[3-9]*)
11906 hardcode_direct_CXX=no
11907 hardcode_shlibpath_var_CXX=no
11908 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11909 export_dynamic_flag_spec_CXX='${wl}-E'
11910 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11911 # Instead, shared libraries are loaded at an image base (0x10000000 by
11912 # default) and relocated if they conflict, which is a slow very memory
11913 # consuming and fragmenting process. To avoid this, we pick a random,
11914 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11915 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11916 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'
11917 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'
11918 ;;
11919 irix5* | irix6*)
11920 case $cc_basename in
11921 CC*)
11922 # SGI C++
11923 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'
11924
11925 # Archives containing C++ object files must be created using
11926 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11927 # necessary to make sure instantiated templates are included
11928 # in the archive.
11929 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11930 ;;
11931 *)
11932 if test "$GXX" = yes; then
11933 if test "$with_gnu_ld" = no; then
11934 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'
11935 else
11936 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'
11937 fi
11938 fi
11939 link_all_deplibs_CXX=yes
11940 ;;
11941 esac
11942 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11943 hardcode_libdir_separator_CXX=:
11944 ;;
11945 linux* | k*bsd*-gnu)
11946 case $cc_basename in
11947 KCC*)
11948 # Kuck and Associates, Inc. (KAI) C++ Compiler
11949
11950 # KCC will only create a shared library if the output file
11951 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11952 # to its proper name (with version) after linking.
11953 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'
11954 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'
11955 # Commands to make compiler produce verbose output that lists
11956 # what "hidden" libraries, object files and flags are used when
11957 # linking a shared library.
11958 #
11959 # There doesn't appear to be a way to prevent this compiler from
11960 # explicitly linking system object files so we need to strip them
11961 # from the output so that they don't get included in the library
11962 # dependencies.
11963 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'
11964
11965 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11966 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11967
11968 # Archives containing C++ object files must be created using
11969 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11970 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11971 ;;
11972 icpc*)
11973 # Intel C++
11974 with_gnu_ld=yes
11975 # version 8.0 and above of icpc choke on multiply defined symbols
11976 # if we add $predep_objects and $postdep_objects, however 7.1 and
11977 # earlier do not add the objects themselves.
11978 case `$CC -V 2>&1` in
11979 *"Version 7."*)
11980 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11981 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'
11982 ;;
11983 *) # Version 8.0 or newer
11984 tmp_idyn=
11985 case $host_cpu in
11986 ia64*) tmp_idyn=' -i_dynamic';;
11987 esac
11988 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11989 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'
11990 ;;
11991 esac
11992 archive_cmds_need_lc_CXX=no
11993 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11994 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11995 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11996 ;;
11997 pgCC* | pgcpp*)
11998 # Portland Group C++ compiler
11999 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12000 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'
12001
12002 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12003 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12004 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'
12005 ;;
12006 cxx*)
12007 # Compaq C++
12008 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12009 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'
12010
12011 runpath_var=LD_RUN_PATH
12012 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12013 hardcode_libdir_separator_CXX=:
12014
12015 # Commands to make compiler produce verbose output that lists
12016 # what "hidden" libraries, object files and flags are used when
12017 # linking a shared library.
12018 #
12019 # There doesn't appear to be a way to prevent this compiler from
12020 # explicitly linking system object files so we need to strip them
12021 # from the output so that they don't get included in the library
12022 # dependencies.
12023 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'
12024 ;;
12025 *)
12026 case `$CC -V 2>&1 | sed 5q` in
12027 *Sun\ C*)
12028 # Sun C++ 5.9
12029 no_undefined_flag_CXX=' -zdefs'
12030 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12031 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'
12032 hardcode_libdir_flag_spec_CXX='-R$libdir'
12033 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'
12034
12035 # Not sure whether something based on
12036 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12037 # would be better.
12038 output_verbose_link_cmd='echo'
12039
12040 # Archives containing C++ object files must be created using
12041 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12042 # necessary to make sure instantiated templates are included
12043 # in the archive.
12044 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12045 ;;
12046 esac
12047 ;;
12048 esac
12049 ;;
12050 lynxos*)
12051 # FIXME: insert proper C++ library support
12052 ld_shlibs_CXX=no
12053 ;;
12054 m88k*)
12055 # FIXME: insert proper C++ library support
12056 ld_shlibs_CXX=no
12057 ;;
12058 mvs*)
12059 case $cc_basename in
12060 cxx*)
12061 # FIXME: insert proper C++ library support
12062 ld_shlibs_CXX=no
12063 ;;
12064 *)
12065 # FIXME: insert proper C++ library support
12066 ld_shlibs_CXX=no
12067 ;;
12068 esac
12069 ;;
12070 netbsd*)
12071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12072 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12073 wlarc=
12074 hardcode_libdir_flag_spec_CXX='-R$libdir'
12075 hardcode_direct_CXX=yes
12076 hardcode_shlibpath_var_CXX=no
12077 fi
12078 # Workaround some broken pre-1.5 toolchains
12079 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12080 ;;
12081 openbsd2*)
12082 # C++ shared libraries are fairly broken
12083 ld_shlibs_CXX=no
12084 ;;
12085 openbsd*)
12086 if test -f /usr/libexec/ld.so; then
12087 hardcode_direct_CXX=yes
12088 hardcode_shlibpath_var_CXX=no
12089 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12090 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12092 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12093 export_dynamic_flag_spec_CXX='${wl}-E'
12094 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12095 fi
12096 output_verbose_link_cmd='echo'
12097 else
12098 ld_shlibs_CXX=no
12099 fi
12100 ;;
12101 osf3*)
12102 case $cc_basename in
12103 KCC*)
12104 # Kuck and Associates, Inc. (KAI) C++ Compiler
12105
12106 # KCC will only create a shared library if the output file
12107 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12108 # to its proper name (with version) after linking.
12109 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'
12110
12111 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12112 hardcode_libdir_separator_CXX=:
12113
12114 # Archives containing C++ object files must be created using
12115 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12116 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12117
12118 ;;
12119 RCC*)
12120 # Rational C++ 2.4.1
12121 # FIXME: insert proper C++ library support
12122 ld_shlibs_CXX=no
12123 ;;
12124 cxx*)
12125 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12126 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'
12127
12128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12129 hardcode_libdir_separator_CXX=:
12130
12131 # Commands to make compiler produce verbose output that lists
12132 # what "hidden" libraries, object files and flags are used when
12133 # linking a shared library.
12134 #
12135 # There doesn't appear to be a way to prevent this compiler from
12136 # explicitly linking system object files so we need to strip them
12137 # from the output so that they don't get included in the library
12138 # dependencies.
12139 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'
12140 ;;
12141 *)
12142 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12143 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12144 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'
12145
12146 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12147 hardcode_libdir_separator_CXX=:
12148
12149 # Commands to make compiler produce verbose output that lists
12150 # what "hidden" libraries, object files and flags are used when
12151 # linking a shared library.
12152 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12153
12154 else
12155 # FIXME: insert proper C++ library support
12156 ld_shlibs_CXX=no
12157 fi
12158 ;;
12159 esac
12160 ;;
12161 osf4* | osf5*)
12162 case $cc_basename in
12163 KCC*)
12164 # Kuck and Associates, Inc. (KAI) C++ Compiler
12165
12166 # KCC will only create a shared library if the output file
12167 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12168 # to its proper name (with version) after linking.
12169 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'
12170
12171 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12172 hardcode_libdir_separator_CXX=:
12173
12174 # Archives containing C++ object files must be created using
12175 # the KAI C++ compiler.
12176 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12177 ;;
12178 RCC*)
12179 # Rational C++ 2.4.1
12180 # FIXME: insert proper C++ library support
12181 ld_shlibs_CXX=no
12182 ;;
12183 cxx*)
12184 allow_undefined_flag_CXX=' -expect_unresolved \*'
12185 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'
12186 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12187 echo "-hidden">> $lib.exp~
12188 $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~
12189 $rm $lib.exp'
12190
12191 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12192 hardcode_libdir_separator_CXX=:
12193
12194 # Commands to make compiler produce verbose output that lists
12195 # what "hidden" libraries, object files and flags are used when
12196 # linking a shared library.
12197 #
12198 # There doesn't appear to be a way to prevent this compiler from
12199 # explicitly linking system object files so we need to strip them
12200 # from the output so that they don't get included in the library
12201 # dependencies.
12202 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'
12203 ;;
12204 *)
12205 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12206 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12207 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'
12208
12209 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12210 hardcode_libdir_separator_CXX=:
12211
12212 # Commands to make compiler produce verbose output that lists
12213 # what "hidden" libraries, object files and flags are used when
12214 # linking a shared library.
12215 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12216
12217 else
12218 # FIXME: insert proper C++ library support
12219 ld_shlibs_CXX=no
12220 fi
12221 ;;
12222 esac
12223 ;;
12224 psos*)
12225 # FIXME: insert proper C++ library support
12226 ld_shlibs_CXX=no
12227 ;;
12228 sunos4*)
12229 case $cc_basename in
12230 CC*)
12231 # Sun C++ 4.x
12232 # FIXME: insert proper C++ library support
12233 ld_shlibs_CXX=no
12234 ;;
12235 lcc*)
12236 # Lucid
12237 # FIXME: insert proper C++ library support
12238 ld_shlibs_CXX=no
12239 ;;
12240 *)
12241 # FIXME: insert proper C++ library support
12242 ld_shlibs_CXX=no
12243 ;;
12244 esac
12245 ;;
12246 solaris*)
12247 case $cc_basename in
12248 CC*)
12249 # Sun C++ 4.2, 5.x and Centerline C++
12250 archive_cmds_need_lc_CXX=yes
12251 no_undefined_flag_CXX=' -zdefs'
12252 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12253 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12254 $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'
12255
12256 hardcode_libdir_flag_spec_CXX='-R$libdir'
12257 hardcode_shlibpath_var_CXX=no
12258 case $host_os in
12259 solaris2.[0-5] | solaris2.[0-5].*) ;;
12260 *)
12261 # The compiler driver will combine and reorder linker options,
12262 # but understands `-z linker_flag'.
12263 # Supported since Solaris 2.6 (maybe 2.5.1?)
12264 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12265 ;;
12266 esac
12267 link_all_deplibs_CXX=yes
12268
12269 output_verbose_link_cmd='echo'
12270
12271 # Archives containing C++ object files must be created using
12272 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12273 # necessary to make sure instantiated templates are included
12274 # in the archive.
12275 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12276 ;;
12277 gcx*)
12278 # Green Hills C++ Compiler
12279 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12280
12281 # The C++ compiler must be used to create the archive.
12282 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12283 ;;
12284 *)
12285 # GNU C++ compiler with Solaris linker
12286 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12287 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12288 if $CC --version | grep -v '^2\.7' > /dev/null; then
12289 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12290 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12291 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12292
12293 # Commands to make compiler produce verbose output that lists
12294 # what "hidden" libraries, object files and flags are used when
12295 # linking a shared library.
12296 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12297 else
12298 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12299 # platform.
12300 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12301 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12302 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12303
12304 # Commands to make compiler produce verbose output that lists
12305 # what "hidden" libraries, object files and flags are used when
12306 # linking a shared library.
12307 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12308 fi
12309
12310 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12311 case $host_os in
12312 solaris2.[0-5] | solaris2.[0-5].*) ;;
12313 *)
12314 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12315 ;;
12316 esac
12317 fi
12318 ;;
12319 esac
12320 ;;
12321 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12322 no_undefined_flag_CXX='${wl}-z,text'
12323 archive_cmds_need_lc_CXX=no
12324 hardcode_shlibpath_var_CXX=no
12325 runpath_var='LD_RUN_PATH'
12326
12327 case $cc_basename in
12328 CC*)
12329 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12330 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12331 ;;
12332 *)
12333 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12334 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12335 ;;
12336 esac
12337 ;;
12338 sysv5* | sco3.2v5* | sco5v6*)
12339 # Note: We can NOT use -z defs as we might desire, because we do not
12340 # link with -lc, and that would cause any symbols used from libc to
12341 # always be unresolved, which means just about no library would
12342 # ever link correctly. If we're not using GNU ld we use -z text
12343 # though, which does catch some bad symbols but isn't as heavy-handed
12344 # as -z defs.
12345 # For security reasons, it is highly recommended that you always
12346 # use absolute paths for naming shared libraries, and exclude the
12347 # DT_RUNPATH tag from executables and libraries. But doing so
12348 # requires that you compile everything twice, which is a pain.
12349 # So that behaviour is only enabled if SCOABSPATH is set to a
12350 # non-empty value in the environment. Most likely only useful for
12351 # creating official distributions of packages.
12352 # This is a hack until libtool officially supports absolute path
12353 # names for shared libraries.
12354 no_undefined_flag_CXX='${wl}-z,text'
12355 allow_undefined_flag_CXX='${wl}-z,nodefs'
12356 archive_cmds_need_lc_CXX=no
12357 hardcode_shlibpath_var_CXX=no
12358 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12359 hardcode_libdir_separator_CXX=':'
12360 link_all_deplibs_CXX=yes
12361 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12362 runpath_var='LD_RUN_PATH'
12363
12364 case $cc_basename in
12365 CC*)
12366 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12367 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12368 ;;
12369 *)
12370 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12371 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12372 ;;
12373 esac
12374 ;;
12375 tandem*)
12376 case $cc_basename in
12377 NCC*)
12378 # NonStop-UX NCC 3.20
12379 # FIXME: insert proper C++ library support
12380 ld_shlibs_CXX=no
12381 ;;
12382 *)
12383 # FIXME: insert proper C++ library support
12384 ld_shlibs_CXX=no
12385 ;;
12386 esac
12387 ;;
12388 vxworks*)
12389 # FIXME: insert proper C++ library support
12390 ld_shlibs_CXX=no
12391 ;;
12392 *)
12393 # FIXME: insert proper C++ library support
12394 ld_shlibs_CXX=no
12395 ;;
12396 esac
12397 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12398 $as_echo "$ld_shlibs_CXX" >&6; }
12399 test "$ld_shlibs_CXX" = no && can_build_shared=no
12400
12401 GCC_CXX="$GXX"
12402 LD_CXX="$LD"
12403
12404 cat > conftest.$ac_ext <<EOF
12405 class Foo
12406 {
12407 public:
12408 Foo (void) { a = 0; }
12409 private:
12410 int a;
12411 };
12412 EOF
12413
12414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12415 (eval $ac_compile) 2>&5
12416 ac_status=$?
12417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; then
12419 # Parse the compiler output and extract the necessary
12420 # objects, libraries and library flags.
12421
12422 # Sentinel used to keep track of whether or not we are before
12423 # the conftest object file.
12424 pre_test_object_deps_done=no
12425
12426 # The `*' in the case matches for architectures that use `case' in
12427 # $output_verbose_cmd can trigger glob expansion during the loop
12428 # eval without this substitution.
12429 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12430
12431 for p in `eval $output_verbose_link_cmd`; do
12432 case $p in
12433
12434 -L* | -R* | -l*)
12435 # Some compilers place space between "-{L,R}" and the path.
12436 # Remove the space.
12437 if test $p = "-L" \
12438 || test $p = "-R"; then
12439 prev=$p
12440 continue
12441 else
12442 prev=
12443 fi
12444
12445 if test "$pre_test_object_deps_done" = no; then
12446 case $p in
12447 -L* | -R*)
12448 # Internal compiler library paths should come after those
12449 # provided the user. The postdeps already come after the
12450 # user supplied libs so there is no need to process them.
12451 if test -z "$compiler_lib_search_path_CXX"; then
12452 compiler_lib_search_path_CXX="${prev}${p}"
12453 else
12454 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12455 fi
12456 ;;
12457 # The "-l" case would never come before the object being
12458 # linked, so don't bother handling this case.
12459 esac
12460 else
12461 if test -z "$postdeps_CXX"; then
12462 postdeps_CXX="${prev}${p}"
12463 else
12464 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12465 fi
12466 fi
12467 ;;
12468
12469 *.$objext)
12470 # This assumes that the test object file only shows up
12471 # once in the compiler output.
12472 if test "$p" = "conftest.$objext"; then
12473 pre_test_object_deps_done=yes
12474 continue
12475 fi
12476
12477 if test "$pre_test_object_deps_done" = no; then
12478 if test -z "$predep_objects_CXX"; then
12479 predep_objects_CXX="$p"
12480 else
12481 predep_objects_CXX="$predep_objects_CXX $p"
12482 fi
12483 else
12484 if test -z "$postdep_objects_CXX"; then
12485 postdep_objects_CXX="$p"
12486 else
12487 postdep_objects_CXX="$postdep_objects_CXX $p"
12488 fi
12489 fi
12490 ;;
12491
12492 *) ;; # Ignore the rest.
12493
12494 esac
12495 done
12496
12497 # Clean up.
12498 rm -f a.out a.exe
12499 else
12500 echo "libtool.m4: error: problem compiling CXX test program"
12501 fi
12502
12503 $rm -f confest.$objext
12504
12505 compiler_lib_search_dirs_CXX=
12506 if test -n "$compiler_lib_search_path_CXX"; then
12507 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12508 fi
12509
12510 # PORTME: override above test on systems where it is broken
12511 case $host_os in
12512 interix[3-9]*)
12513 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12514 # hack all around it, let's just trust "g++" to DTRT.
12515 predep_objects_CXX=
12516 postdep_objects_CXX=
12517 postdeps_CXX=
12518 ;;
12519
12520 linux*)
12521 case `$CC -V 2>&1 | sed 5q` in
12522 *Sun\ C*)
12523 # Sun C++ 5.9
12524 #
12525 # The more standards-conforming stlport4 library is
12526 # incompatible with the Cstd library. Avoid specifying
12527 # it if it's in CXXFLAGS. Ignore libCrun as
12528 # -library=stlport4 depends on it.
12529 case " $CXX $CXXFLAGS " in
12530 *" -library=stlport4 "*)
12531 solaris_use_stlport4=yes
12532 ;;
12533 esac
12534 if test "$solaris_use_stlport4" != yes; then
12535 postdeps_CXX='-library=Cstd -library=Crun'
12536 fi
12537 ;;
12538 esac
12539 ;;
12540
12541 solaris*)
12542 case $cc_basename in
12543 CC*)
12544 # The more standards-conforming stlport4 library is
12545 # incompatible with the Cstd library. Avoid specifying
12546 # it if it's in CXXFLAGS. Ignore libCrun as
12547 # -library=stlport4 depends on it.
12548 case " $CXX $CXXFLAGS " in
12549 *" -library=stlport4 "*)
12550 solaris_use_stlport4=yes
12551 ;;
12552 esac
12553
12554 # Adding this requires a known-good setup of shared libraries for
12555 # Sun compiler versions before 5.6, else PIC objects from an old
12556 # archive will be linked into the output, leading to subtle bugs.
12557 if test "$solaris_use_stlport4" != yes; then
12558 postdeps_CXX='-library=Cstd -library=Crun'
12559 fi
12560 ;;
12561 esac
12562 ;;
12563 esac
12564
12565 case " $postdeps_CXX " in
12566 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12567 esac
12568
12569 lt_prog_compiler_wl_CXX=
12570 lt_prog_compiler_pic_CXX=
12571 lt_prog_compiler_static_CXX=
12572
12573 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12574 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12575
12576 # C++ specific cases for pic, static, wl, etc.
12577 if test "$GXX" = yes; then
12578 lt_prog_compiler_wl_CXX='-Wl,'
12579 lt_prog_compiler_static_CXX='-static'
12580
12581 case $host_os in
12582 aix*)
12583 # All AIX code is PIC.
12584 if test "$host_cpu" = ia64; then
12585 # AIX 5 now supports IA64 processor
12586 lt_prog_compiler_static_CXX='-Bstatic'
12587 fi
12588 ;;
12589 amigaos*)
12590 # FIXME: we need at least 68020 code to build shared libraries, but
12591 # adding the `-m68020' flag to GCC prevents building anything better,
12592 # like `-m68040'.
12593 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12594 ;;
12595 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12596 # PIC is the default for these OSes.
12597 ;;
12598 mingw* | cygwin* | os2* | pw32*)
12599 # This hack is so that the source file can tell whether it is being
12600 # built for inclusion in a dll (and should export symbols for example).
12601 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12602 # (--disable-auto-import) libraries
12603 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12604 ;;
12605 darwin* | rhapsody*)
12606 # PIC is the default on this platform
12607 # Common symbols not allowed in MH_DYLIB files
12608 lt_prog_compiler_pic_CXX='-fno-common'
12609 ;;
12610 *djgpp*)
12611 # DJGPP does not support shared libraries at all
12612 lt_prog_compiler_pic_CXX=
12613 ;;
12614 interix[3-9]*)
12615 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12616 # Instead, we relocate shared libraries at runtime.
12617 ;;
12618 sysv4*MP*)
12619 if test -d /usr/nec; then
12620 lt_prog_compiler_pic_CXX=-Kconform_pic
12621 fi
12622 ;;
12623 hpux*)
12624 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12625 # not for PA HP-UX.
12626 case $host_cpu in
12627 hppa*64*|ia64*)
12628 ;;
12629 *)
12630 lt_prog_compiler_pic_CXX='-fPIC'
12631 ;;
12632 esac
12633 ;;
12634 *)
12635 lt_prog_compiler_pic_CXX='-fPIC'
12636 ;;
12637 esac
12638 else
12639 case $host_os in
12640 aix[4-9]*)
12641 # All AIX code is PIC.
12642 if test "$host_cpu" = ia64; then
12643 # AIX 5 now supports IA64 processor
12644 lt_prog_compiler_static_CXX='-Bstatic'
12645 else
12646 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12647 fi
12648 ;;
12649 chorus*)
12650 case $cc_basename in
12651 cxch68*)
12652 # Green Hills C++ Compiler
12653 # _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"
12654 ;;
12655 esac
12656 ;;
12657 darwin*)
12658 # PIC is the default on this platform
12659 # Common symbols not allowed in MH_DYLIB files
12660 case $cc_basename in
12661 xlc*)
12662 lt_prog_compiler_pic_CXX='-qnocommon'
12663 lt_prog_compiler_wl_CXX='-Wl,'
12664 ;;
12665 esac
12666 ;;
12667 dgux*)
12668 case $cc_basename in
12669 ec++*)
12670 lt_prog_compiler_pic_CXX='-KPIC'
12671 ;;
12672 ghcx*)
12673 # Green Hills C++ Compiler
12674 lt_prog_compiler_pic_CXX='-pic'
12675 ;;
12676 *)
12677 ;;
12678 esac
12679 ;;
12680 freebsd* | dragonfly*)
12681 # FreeBSD uses GNU C++
12682 ;;
12683 hpux9* | hpux10* | hpux11*)
12684 case $cc_basename in
12685 CC*)
12686 lt_prog_compiler_wl_CXX='-Wl,'
12687 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12688 if test "$host_cpu" != ia64; then
12689 lt_prog_compiler_pic_CXX='+Z'
12690 fi
12691 ;;
12692 aCC*)
12693 lt_prog_compiler_wl_CXX='-Wl,'
12694 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12695 case $host_cpu in
12696 hppa*64*|ia64*)
12697 # +Z the default
12698 ;;
12699 *)
12700 lt_prog_compiler_pic_CXX='+Z'
12701 ;;
12702 esac
12703 ;;
12704 *)
12705 ;;
12706 esac
12707 ;;
12708 interix*)
12709 # This is c89, which is MS Visual C++ (no shared libs)
12710 # Anyone wants to do a port?
12711 ;;
12712 irix5* | irix6* | nonstopux*)
12713 case $cc_basename in
12714 CC*)
12715 lt_prog_compiler_wl_CXX='-Wl,'
12716 lt_prog_compiler_static_CXX='-non_shared'
12717 # CC pic flag -KPIC is the default.
12718 ;;
12719 *)
12720 ;;
12721 esac
12722 ;;
12723 linux* | k*bsd*-gnu)
12724 case $cc_basename in
12725 KCC*)
12726 # KAI C++ Compiler
12727 lt_prog_compiler_wl_CXX='--backend -Wl,'
12728 lt_prog_compiler_pic_CXX='-fPIC'
12729 ;;
12730 icpc* | ecpc*)
12731 # Intel C++
12732 lt_prog_compiler_wl_CXX='-Wl,'
12733 lt_prog_compiler_pic_CXX='-KPIC'
12734 lt_prog_compiler_static_CXX='-static'
12735 ;;
12736 pgCC* | pgcpp*)
12737 # Portland Group C++ compiler.
12738 lt_prog_compiler_wl_CXX='-Wl,'
12739 lt_prog_compiler_pic_CXX='-fpic'
12740 lt_prog_compiler_static_CXX='-Bstatic'
12741 ;;
12742 cxx*)
12743 # Compaq C++
12744 # Make sure the PIC flag is empty. It appears that all Alpha
12745 # Linux and Compaq Tru64 Unix objects are PIC.
12746 lt_prog_compiler_pic_CXX=
12747 lt_prog_compiler_static_CXX='-non_shared'
12748 ;;
12749 *)
12750 case `$CC -V 2>&1 | sed 5q` in
12751 *Sun\ C*)
12752 # Sun C++ 5.9
12753 lt_prog_compiler_pic_CXX='-KPIC'
12754 lt_prog_compiler_static_CXX='-Bstatic'
12755 lt_prog_compiler_wl_CXX='-Qoption ld '
12756 ;;
12757 esac
12758 ;;
12759 esac
12760 ;;
12761 lynxos*)
12762 ;;
12763 m88k*)
12764 ;;
12765 mvs*)
12766 case $cc_basename in
12767 cxx*)
12768 lt_prog_compiler_pic_CXX='-W c,exportall'
12769 ;;
12770 *)
12771 ;;
12772 esac
12773 ;;
12774 netbsd*)
12775 ;;
12776 osf3* | osf4* | osf5*)
12777 case $cc_basename in
12778 KCC*)
12779 lt_prog_compiler_wl_CXX='--backend -Wl,'
12780 ;;
12781 RCC*)
12782 # Rational C++ 2.4.1
12783 lt_prog_compiler_pic_CXX='-pic'
12784 ;;
12785 cxx*)
12786 # Digital/Compaq C++
12787 lt_prog_compiler_wl_CXX='-Wl,'
12788 # Make sure the PIC flag is empty. It appears that all Alpha
12789 # Linux and Compaq Tru64 Unix objects are PIC.
12790 lt_prog_compiler_pic_CXX=
12791 lt_prog_compiler_static_CXX='-non_shared'
12792 ;;
12793 *)
12794 ;;
12795 esac
12796 ;;
12797 psos*)
12798 ;;
12799 solaris*)
12800 case $cc_basename in
12801 CC*)
12802 # Sun C++ 4.2, 5.x and Centerline C++
12803 lt_prog_compiler_pic_CXX='-KPIC'
12804 lt_prog_compiler_static_CXX='-Bstatic'
12805 lt_prog_compiler_wl_CXX='-Qoption ld '
12806 ;;
12807 gcx*)
12808 # Green Hills C++ Compiler
12809 lt_prog_compiler_pic_CXX='-PIC'
12810 ;;
12811 *)
12812 ;;
12813 esac
12814 ;;
12815 sunos4*)
12816 case $cc_basename in
12817 CC*)
12818 # Sun C++ 4.x
12819 lt_prog_compiler_pic_CXX='-pic'
12820 lt_prog_compiler_static_CXX='-Bstatic'
12821 ;;
12822 lcc*)
12823 # Lucid
12824 lt_prog_compiler_pic_CXX='-pic'
12825 ;;
12826 *)
12827 ;;
12828 esac
12829 ;;
12830 tandem*)
12831 case $cc_basename in
12832 NCC*)
12833 # NonStop-UX NCC 3.20
12834 lt_prog_compiler_pic_CXX='-KPIC'
12835 ;;
12836 *)
12837 ;;
12838 esac
12839 ;;
12840 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12841 case $cc_basename in
12842 CC*)
12843 lt_prog_compiler_wl_CXX='-Wl,'
12844 lt_prog_compiler_pic_CXX='-KPIC'
12845 lt_prog_compiler_static_CXX='-Bstatic'
12846 ;;
12847 esac
12848 ;;
12849 vxworks*)
12850 ;;
12851 *)
12852 lt_prog_compiler_can_build_shared_CXX=no
12853 ;;
12854 esac
12855 fi
12856
12857 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12858 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12859
12860 #
12861 # Check to make sure the PIC flag actually works.
12862 #
12863 if test -n "$lt_prog_compiler_pic_CXX"; then
12864
12865 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12866 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12867 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12868 $as_echo_n "(cached) " >&6
12869 else
12870 lt_cv_prog_compiler_pic_works_CXX=no
12871 ac_outfile=conftest.$ac_objext
12872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12873 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12874 # Insert the option either (1) after the last *FLAGS variable, or
12875 # (2) before a word containing "conftest.", or (3) at the end.
12876 # Note that $ac_compile itself does not contain backslashes and begins
12877 # with a dollar sign (not a hyphen), so the echo should work correctly.
12878 # The option is referenced via a variable to avoid confusing sed.
12879 lt_compile=`echo "$ac_compile" | $SED \
12880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12882 -e 's:$: $lt_compiler_flag:'`
12883 (eval echo "\"\$as_me:12883: $lt_compile\"" >&5)
12884 (eval "$lt_compile" 2>conftest.err)
12885 ac_status=$?
12886 cat conftest.err >&5
12887 echo "$as_me:12887: \$? = $ac_status" >&5
12888 if (exit $ac_status) && test -s "$ac_outfile"; then
12889 # The compiler can only warn and ignore the option if not recognized
12890 # So say no if there are warnings other than the usual output.
12891 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12893 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12894 lt_cv_prog_compiler_pic_works_CXX=yes
12895 fi
12896 fi
12897 $rm conftest*
12898
12899 fi
12900 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12901 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12902
12903 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12904 case $lt_prog_compiler_pic_CXX in
12905 "" | " "*) ;;
12906 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12907 esac
12908 else
12909 lt_prog_compiler_pic_CXX=
12910 lt_prog_compiler_can_build_shared_CXX=no
12911 fi
12912
12913 fi
12914 case $host_os in
12915 # For platforms which do not support PIC, -DPIC is meaningless:
12916 *djgpp*)
12917 lt_prog_compiler_pic_CXX=
12918 ;;
12919 *)
12920 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12921 ;;
12922 esac
12923
12924 #
12925 # Check to make sure the static flag actually works.
12926 #
12927 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12928 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12929 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12930 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12931 $as_echo_n "(cached) " >&6
12932 else
12933 lt_cv_prog_compiler_static_works_CXX=no
12934 save_LDFLAGS="$LDFLAGS"
12935 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12936 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12938 # The linker can only warn and ignore the option if not recognized
12939 # So say no if there are warnings
12940 if test -s conftest.err; then
12941 # Append any errors to the config.log.
12942 cat conftest.err 1>&5
12943 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12945 if diff conftest.exp conftest.er2 >/dev/null; then
12946 lt_cv_prog_compiler_static_works_CXX=yes
12947 fi
12948 else
12949 lt_cv_prog_compiler_static_works_CXX=yes
12950 fi
12951 fi
12952 $rm -r conftest*
12953 LDFLAGS="$save_LDFLAGS"
12954
12955 fi
12956 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12957 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12958
12959 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12960 :
12961 else
12962 lt_prog_compiler_static_CXX=
12963 fi
12964
12965
12966 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12967 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12968 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12969 $as_echo_n "(cached) " >&6
12970 else
12971 lt_cv_prog_compiler_c_o_CXX=no
12972 $rm -r conftest 2>/dev/null
12973 mkdir conftest
12974 cd conftest
12975 mkdir out
12976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12977
12978 lt_compiler_flag="-o out/conftest2.$ac_objext"
12979 # Insert the option either (1) after the last *FLAGS variable, or
12980 # (2) before a word containing "conftest.", or (3) at the end.
12981 # Note that $ac_compile itself does not contain backslashes and begins
12982 # with a dollar sign (not a hyphen), so the echo should work correctly.
12983 lt_compile=`echo "$ac_compile" | $SED \
12984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12986 -e 's:$: $lt_compiler_flag:'`
12987 (eval echo "\"\$as_me:12987: $lt_compile\"" >&5)
12988 (eval "$lt_compile" 2>out/conftest.err)
12989 ac_status=$?
12990 cat out/conftest.err >&5
12991 echo "$as_me:12991: \$? = $ac_status" >&5
12992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12993 then
12994 # The compiler can only warn and ignore the option if not recognized
12995 # So say no if there are warnings
12996 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12999 lt_cv_prog_compiler_c_o_CXX=yes
13000 fi
13001 fi
13002 chmod u+w . 2>&5
13003 $rm conftest*
13004 # SGI C++ compiler will create directory out/ii_files/ for
13005 # template instantiation
13006 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13007 $rm out/* && rmdir out
13008 cd ..
13009 rmdir conftest
13010 $rm conftest*
13011
13012 fi
13013 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13014 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13015
13016
13017 hard_links="nottested"
13018 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13019 # do not overwrite the value of need_locks provided by the user
13020 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13021 $as_echo_n "checking if we can lock with hard links... " >&6; }
13022 hard_links=yes
13023 $rm conftest*
13024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13025 touch conftest.a
13026 ln conftest.a conftest.b 2>&5 || hard_links=no
13027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13028 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13029 $as_echo "$hard_links" >&6; }
13030 if test "$hard_links" = no; then
13031 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13032 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13033 need_locks=warn
13034 fi
13035 else
13036 need_locks=no
13037 fi
13038
13039 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13040 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13041
13042 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13043 case $host_os in
13044 aix[4-9]*)
13045 # If we're using GNU nm, then we don't want the "-C" option.
13046 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13047 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13048 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'
13049 else
13050 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'
13051 fi
13052 ;;
13053 pw32*)
13054 export_symbols_cmds_CXX="$ltdll_cmds"
13055 ;;
13056 cygwin* | mingw*)
13057 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'
13058 ;;
13059 *)
13060 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13061 ;;
13062 esac
13063 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13064
13065 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13066 $as_echo "$ld_shlibs_CXX" >&6; }
13067 test "$ld_shlibs_CXX" = no && can_build_shared=no
13068
13069 #
13070 # Do we need to explicitly link libc?
13071 #
13072 case "x$archive_cmds_need_lc_CXX" in
13073 x|xyes)
13074 # Assume -lc should be added
13075 archive_cmds_need_lc_CXX=yes
13076
13077 if test "$enable_shared" = yes && test "$GCC" = yes; then
13078 case $archive_cmds_CXX in
13079 *'~'*)
13080 # FIXME: we may have to deal with multi-command sequences.
13081 ;;
13082 '$CC '*)
13083 # Test whether the compiler implicitly links with -lc since on some
13084 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13085 # to ld, don't add -lc before -lgcc.
13086 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13087 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13088 $rm conftest*
13089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13090
13091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13092 (eval $ac_compile) 2>&5
13093 ac_status=$?
13094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } 2>conftest.err; then
13096 soname=conftest
13097 lib=conftest
13098 libobjs=conftest.$ac_objext
13099 deplibs=
13100 wl=$lt_prog_compiler_wl_CXX
13101 pic_flag=$lt_prog_compiler_pic_CXX
13102 compiler_flags=-v
13103 linker_flags=-v
13104 verstring=
13105 output_objdir=.
13106 libname=conftest
13107 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13108 allow_undefined_flag_CXX=
13109 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13110 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13111 ac_status=$?
13112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }
13114 then
13115 archive_cmds_need_lc_CXX=no
13116 else
13117 archive_cmds_need_lc_CXX=yes
13118 fi
13119 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13120 else
13121 cat conftest.err 1>&5
13122 fi
13123 $rm conftest*
13124 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13125 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13126 ;;
13127 esac
13128 fi
13129 ;;
13130 esac
13131
13132 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13133 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13134 library_names_spec=
13135 libname_spec='lib$name'
13136 soname_spec=
13137 shrext_cmds=".so"
13138 postinstall_cmds=
13139 postuninstall_cmds=
13140 finish_cmds=
13141 finish_eval=
13142 shlibpath_var=
13143 shlibpath_overrides_runpath=unknown
13144 version_type=none
13145 dynamic_linker="$host_os ld.so"
13146 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13147
13148 need_lib_prefix=unknown
13149 hardcode_into_libs=no
13150
13151 # when you set need_version to no, make sure it does not cause -set_version
13152 # flags to be left without arguments
13153 need_version=unknown
13154
13155 case $host_os in
13156 aix3*)
13157 version_type=linux
13158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13159 shlibpath_var=LIBPATH
13160
13161 # AIX 3 has no versioning support, so we append a major version to the name.
13162 soname_spec='${libname}${release}${shared_ext}$major'
13163 ;;
13164
13165 aix[4-9]*)
13166 version_type=linux
13167 need_lib_prefix=no
13168 need_version=no
13169 hardcode_into_libs=yes
13170 if test "$host_cpu" = ia64; then
13171 # AIX 5 supports IA64
13172 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13173 shlibpath_var=LD_LIBRARY_PATH
13174 else
13175 # With GCC up to 2.95.x, collect2 would create an import file
13176 # for dependence libraries. The import file would start with
13177 # the line `#! .'. This would cause the generated library to
13178 # depend on `.', always an invalid library. This was fixed in
13179 # development snapshots of GCC prior to 3.0.
13180 case $host_os in
13181 aix4 | aix4.[01] | aix4.[01].*)
13182 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13183 echo ' yes '
13184 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13185 :
13186 else
13187 can_build_shared=no
13188 fi
13189 ;;
13190 esac
13191 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13192 # soname into executable. Probably we can add versioning support to
13193 # collect2, so additional links can be useful in future.
13194 if test "$aix_use_runtimelinking" = yes; then
13195 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13196 # instead of lib<name>.a to let people know that these are not
13197 # typical AIX shared libraries.
13198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13199 else
13200 # We preserve .a as extension for shared libraries through AIX4.2
13201 # and later when we are not doing run time linking.
13202 library_names_spec='${libname}${release}.a $libname.a'
13203 soname_spec='${libname}${release}${shared_ext}$major'
13204 fi
13205 shlibpath_var=LIBPATH
13206 fi
13207 ;;
13208
13209 amigaos*)
13210 library_names_spec='$libname.ixlibrary $libname.a'
13211 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13212 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'
13213 ;;
13214
13215 beos*)
13216 library_names_spec='${libname}${shared_ext}'
13217 dynamic_linker="$host_os ld.so"
13218 shlibpath_var=LIBRARY_PATH
13219 ;;
13220
13221 bsdi[45]*)
13222 version_type=linux
13223 need_version=no
13224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13225 soname_spec='${libname}${release}${shared_ext}$major'
13226 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13227 shlibpath_var=LD_LIBRARY_PATH
13228 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13229 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13230 # the default ld.so.conf also contains /usr/contrib/lib and
13231 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13232 # libtool to hard-code these into programs
13233 ;;
13234
13235 cygwin* | mingw* | pw32*)
13236 version_type=windows
13237 shrext_cmds=".dll"
13238 need_version=no
13239 need_lib_prefix=no
13240
13241 case $GCC,$host_os in
13242 yes,cygwin* | yes,mingw* | yes,pw32*)
13243 library_names_spec='$libname.dll.a'
13244 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13245 postinstall_cmds='base_file=`basename \${file}`~
13246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13247 dldir=$destdir/`dirname \$dlpath`~
13248 test -d \$dldir || mkdir -p \$dldir~
13249 $install_prog $dir/$dlname \$dldir/$dlname~
13250 chmod a+x \$dldir/$dlname'
13251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13252 dlpath=$dir/\$dldll~
13253 $rm \$dlpath'
13254 shlibpath_overrides_runpath=yes
13255
13256 case $host_os in
13257 cygwin*)
13258 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13259 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13260 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13261 ;;
13262 mingw*)
13263 # MinGW DLLs use traditional 'lib' prefix
13264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13265 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13266 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13267 # It is most probably a Windows format PATH printed by
13268 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13269 # path with ; separators, and with drive letters. We can handle the
13270 # drive letters (cygwin fileutils understands them), so leave them,
13271 # especially as we might pass files found there to a mingw objdump,
13272 # which wouldn't understand a cygwinified path. Ahh.
13273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13274 else
13275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13276 fi
13277 ;;
13278 pw32*)
13279 # pw32 DLLs use 'pw' prefix rather than 'lib'
13280 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13281 ;;
13282 esac
13283 ;;
13284
13285 *)
13286 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13287 ;;
13288 esac
13289 dynamic_linker='Win32 ld.exe'
13290 # FIXME: first we should search . and the directory the executable is in
13291 shlibpath_var=PATH
13292 ;;
13293
13294 darwin* | rhapsody*)
13295 dynamic_linker="$host_os dyld"
13296 version_type=darwin
13297 need_lib_prefix=no
13298 need_version=no
13299 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13300 soname_spec='${libname}${release}${major}$shared_ext'
13301 shlibpath_overrides_runpath=yes
13302 shlibpath_var=DYLD_LIBRARY_PATH
13303 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13304
13305 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13306 ;;
13307
13308 dgux*)
13309 version_type=linux
13310 need_lib_prefix=no
13311 need_version=no
13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13313 soname_spec='${libname}${release}${shared_ext}$major'
13314 shlibpath_var=LD_LIBRARY_PATH
13315 ;;
13316
13317 freebsd1*)
13318 dynamic_linker=no
13319 ;;
13320
13321 freebsd* | dragonfly*)
13322 # DragonFly does not have aout. When/if they implement a new
13323 # versioning mechanism, adjust this.
13324 if test -x /usr/bin/objformat; then
13325 objformat=`/usr/bin/objformat`
13326 else
13327 case $host_os in
13328 freebsd[123]*) objformat=aout ;;
13329 *) objformat=elf ;;
13330 esac
13331 fi
13332 version_type=freebsd-$objformat
13333 case $version_type in
13334 freebsd-elf*)
13335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13336 need_version=no
13337 need_lib_prefix=no
13338 ;;
13339 freebsd-*)
13340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13341 need_version=yes
13342 ;;
13343 esac
13344 shlibpath_var=LD_LIBRARY_PATH
13345 case $host_os in
13346 freebsd2*)
13347 shlibpath_overrides_runpath=yes
13348 ;;
13349 freebsd3.[01]* | freebsdelf3.[01]*)
13350 shlibpath_overrides_runpath=yes
13351 hardcode_into_libs=yes
13352 ;;
13353 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13354 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13355 shlibpath_overrides_runpath=no
13356 hardcode_into_libs=yes
13357 ;;
13358 *) # from 4.6 on, and DragonFly
13359 shlibpath_overrides_runpath=yes
13360 hardcode_into_libs=yes
13361 ;;
13362 esac
13363 ;;
13364
13365 gnu*)
13366 version_type=linux
13367 need_lib_prefix=no
13368 need_version=no
13369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13370 soname_spec='${libname}${release}${shared_ext}$major'
13371 shlibpath_var=LD_LIBRARY_PATH
13372 hardcode_into_libs=yes
13373 ;;
13374
13375 hpux9* | hpux10* | hpux11*)
13376 # Give a soname corresponding to the major version so that dld.sl refuses to
13377 # link against other versions.
13378 version_type=sunos
13379 need_lib_prefix=no
13380 need_version=no
13381 case $host_cpu in
13382 ia64*)
13383 shrext_cmds='.so'
13384 hardcode_into_libs=yes
13385 dynamic_linker="$host_os dld.so"
13386 shlibpath_var=LD_LIBRARY_PATH
13387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389 soname_spec='${libname}${release}${shared_ext}$major'
13390 if test "X$HPUX_IA64_MODE" = X32; then
13391 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13392 else
13393 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13394 fi
13395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13396 ;;
13397 hppa*64*)
13398 shrext_cmds='.sl'
13399 hardcode_into_libs=yes
13400 dynamic_linker="$host_os dld.sl"
13401 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13404 soname_spec='${libname}${release}${shared_ext}$major'
13405 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13407 ;;
13408 *)
13409 shrext_cmds='.sl'
13410 dynamic_linker="$host_os dld.sl"
13411 shlibpath_var=SHLIB_PATH
13412 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414 soname_spec='${libname}${release}${shared_ext}$major'
13415 ;;
13416 esac
13417 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13418 postinstall_cmds='chmod 555 $lib'
13419 ;;
13420
13421 interix[3-9]*)
13422 version_type=linux
13423 need_lib_prefix=no
13424 need_version=no
13425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13426 soname_spec='${libname}${release}${shared_ext}$major'
13427 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13428 shlibpath_var=LD_LIBRARY_PATH
13429 shlibpath_overrides_runpath=no
13430 hardcode_into_libs=yes
13431 ;;
13432
13433 irix5* | irix6* | nonstopux*)
13434 case $host_os in
13435 nonstopux*) version_type=nonstopux ;;
13436 *)
13437 if test "$lt_cv_prog_gnu_ld" = yes; then
13438 version_type=linux
13439 else
13440 version_type=irix
13441 fi ;;
13442 esac
13443 need_lib_prefix=no
13444 need_version=no
13445 soname_spec='${libname}${release}${shared_ext}$major'
13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13447 case $host_os in
13448 irix5* | nonstopux*)
13449 libsuff= shlibsuff=
13450 ;;
13451 *)
13452 case $LD in # libtool.m4 will add one of these switches to LD
13453 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13454 libsuff= shlibsuff= libmagic=32-bit;;
13455 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13456 libsuff=32 shlibsuff=N32 libmagic=N32;;
13457 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13458 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13459 *) libsuff= shlibsuff= libmagic=never-match;;
13460 esac
13461 ;;
13462 esac
13463 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13464 shlibpath_overrides_runpath=no
13465 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13466 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13467 hardcode_into_libs=yes
13468 ;;
13469
13470 # No shared lib support for Linux oldld, aout, or coff.
13471 linux*oldld* | linux*aout* | linux*coff*)
13472 dynamic_linker=no
13473 ;;
13474
13475 # This must be Linux ELF.
13476 linux* | k*bsd*-gnu)
13477 version_type=linux
13478 need_lib_prefix=no
13479 need_version=no
13480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13481 soname_spec='${libname}${release}${shared_ext}$major'
13482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13483 shlibpath_var=LD_LIBRARY_PATH
13484 shlibpath_overrides_runpath=no
13485 # This implies no fast_install, which is unacceptable.
13486 # Some rework will be needed to allow for fast_install
13487 # before this can be enabled.
13488 hardcode_into_libs=yes
13489
13490 # Append ld.so.conf contents to the search path
13491 if test -f /etc/ld.so.conf; then
13492 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' ' '`
13493 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13494 fi
13495
13496 # We used to test for /lib/ld.so.1 and disable shared libraries on
13497 # powerpc, because MkLinux only supported shared libraries with the
13498 # GNU dynamic linker. Since this was broken with cross compilers,
13499 # most powerpc-linux boxes support dynamic linking these days and
13500 # people can always --disable-shared, the test was removed, and we
13501 # assume the GNU/Linux dynamic linker is in use.
13502 dynamic_linker='GNU/Linux ld.so'
13503 ;;
13504
13505 netbsd*)
13506 version_type=sunos
13507 need_lib_prefix=no
13508 need_version=no
13509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13512 dynamic_linker='NetBSD (a.out) ld.so'
13513 else
13514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13515 soname_spec='${libname}${release}${shared_ext}$major'
13516 dynamic_linker='NetBSD ld.elf_so'
13517 fi
13518 shlibpath_var=LD_LIBRARY_PATH
13519 shlibpath_overrides_runpath=yes
13520 hardcode_into_libs=yes
13521 ;;
13522
13523 newsos6)
13524 version_type=linux
13525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13526 shlibpath_var=LD_LIBRARY_PATH
13527 shlibpath_overrides_runpath=yes
13528 ;;
13529
13530 nto-qnx*)
13531 version_type=linux
13532 need_lib_prefix=no
13533 need_version=no
13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13535 soname_spec='${libname}${release}${shared_ext}$major'
13536 shlibpath_var=LD_LIBRARY_PATH
13537 shlibpath_overrides_runpath=yes
13538 ;;
13539
13540 openbsd*)
13541 version_type=sunos
13542 sys_lib_dlsearch_path_spec="/usr/lib"
13543 need_lib_prefix=no
13544 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13545 case $host_os in
13546 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13547 *) need_version=no ;;
13548 esac
13549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13551 shlibpath_var=LD_LIBRARY_PATH
13552 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13553 case $host_os in
13554 openbsd2.[89] | openbsd2.[89].*)
13555 shlibpath_overrides_runpath=no
13556 ;;
13557 *)
13558 shlibpath_overrides_runpath=yes
13559 ;;
13560 esac
13561 else
13562 shlibpath_overrides_runpath=yes
13563 fi
13564 ;;
13565
13566 os2*)
13567 libname_spec='$name'
13568 shrext_cmds=".dll"
13569 need_lib_prefix=no
13570 library_names_spec='$libname${shared_ext} $libname.a'
13571 dynamic_linker='OS/2 ld.exe'
13572 shlibpath_var=LIBPATH
13573 ;;
13574
13575 osf3* | osf4* | osf5*)
13576 version_type=osf
13577 need_lib_prefix=no
13578 need_version=no
13579 soname_spec='${libname}${release}${shared_ext}$major'
13580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13581 shlibpath_var=LD_LIBRARY_PATH
13582 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13583 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13584 ;;
13585
13586 rdos*)
13587 dynamic_linker=no
13588 ;;
13589
13590 solaris*)
13591 version_type=linux
13592 need_lib_prefix=no
13593 need_version=no
13594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13595 soname_spec='${libname}${release}${shared_ext}$major'
13596 shlibpath_var=LD_LIBRARY_PATH
13597 shlibpath_overrides_runpath=yes
13598 hardcode_into_libs=yes
13599 # ldd complains unless libraries are executable
13600 postinstall_cmds='chmod +x $lib'
13601 ;;
13602
13603 sunos4*)
13604 version_type=sunos
13605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13606 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13607 shlibpath_var=LD_LIBRARY_PATH
13608 shlibpath_overrides_runpath=yes
13609 if test "$with_gnu_ld" = yes; then
13610 need_lib_prefix=no
13611 fi
13612 need_version=yes
13613 ;;
13614
13615 sysv4 | sysv4.3*)
13616 version_type=linux
13617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13618 soname_spec='${libname}${release}${shared_ext}$major'
13619 shlibpath_var=LD_LIBRARY_PATH
13620 case $host_vendor in
13621 sni)
13622 shlibpath_overrides_runpath=no
13623 need_lib_prefix=no
13624 export_dynamic_flag_spec='${wl}-Blargedynsym'
13625 runpath_var=LD_RUN_PATH
13626 ;;
13627 siemens)
13628 need_lib_prefix=no
13629 ;;
13630 motorola)
13631 need_lib_prefix=no
13632 need_version=no
13633 shlibpath_overrides_runpath=no
13634 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13635 ;;
13636 esac
13637 ;;
13638
13639 sysv4*MP*)
13640 if test -d /usr/nec ;then
13641 version_type=linux
13642 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13643 soname_spec='$libname${shared_ext}.$major'
13644 shlibpath_var=LD_LIBRARY_PATH
13645 fi
13646 ;;
13647
13648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13649 version_type=freebsd-elf
13650 need_lib_prefix=no
13651 need_version=no
13652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13653 soname_spec='${libname}${release}${shared_ext}$major'
13654 shlibpath_var=LD_LIBRARY_PATH
13655 hardcode_into_libs=yes
13656 if test "$with_gnu_ld" = yes; then
13657 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13658 shlibpath_overrides_runpath=no
13659 else
13660 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13661 shlibpath_overrides_runpath=yes
13662 case $host_os in
13663 sco3.2v5*)
13664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13665 ;;
13666 esac
13667 fi
13668 sys_lib_dlsearch_path_spec='/usr/lib'
13669 ;;
13670
13671 uts4*)
13672 version_type=linux
13673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13674 soname_spec='${libname}${release}${shared_ext}$major'
13675 shlibpath_var=LD_LIBRARY_PATH
13676 ;;
13677
13678 *)
13679 dynamic_linker=no
13680 ;;
13681 esac
13682 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13683 $as_echo "$dynamic_linker" >&6; }
13684 test "$dynamic_linker" = no && can_build_shared=no
13685
13686 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13687 $as_echo_n "(cached) " >&6
13688 else
13689 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13690 fi
13691
13692 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13693 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13694 $as_echo_n "(cached) " >&6
13695 else
13696 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13697 fi
13698
13699 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13700
13701 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13702 if test "$GCC" = yes; then
13703 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13704 fi
13705
13706 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13707 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13708 hardcode_action_CXX=
13709 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13710 test -n "$runpath_var_CXX" || \
13711 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13712
13713 # We can hardcode non-existant directories.
13714 if test "$hardcode_direct_CXX" != no &&
13715 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13716 # have to relink, otherwise we might link with an installed library
13717 # when we should be linking with a yet-to-be-installed one
13718 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13719 test "$hardcode_minus_L_CXX" != no; then
13720 # Linking always hardcodes the temporary library directory.
13721 hardcode_action_CXX=relink
13722 else
13723 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13724 hardcode_action_CXX=immediate
13725 fi
13726 else
13727 # We cannot hardcode anything, or else we can only hardcode existing
13728 # directories.
13729 hardcode_action_CXX=unsupported
13730 fi
13731 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13732 $as_echo "$hardcode_action_CXX" >&6; }
13733
13734 if test "$hardcode_action_CXX" = relink; then
13735 # Fast installation is not supported
13736 enable_fast_install=no
13737 elif test "$shlibpath_overrides_runpath" = yes ||
13738 test "$enable_shared" = no; then
13739 # Fast installation is not necessary
13740 enable_fast_install=needless
13741 fi
13742
13743
13744 # The else clause should only fire when bootstrapping the
13745 # libtool distribution, otherwise you forgot to ship ltmain.sh
13746 # with your package, and you will get complaints that there are
13747 # no rules to generate ltmain.sh.
13748 if test -f "$ltmain"; then
13749 # See if we are running on zsh, and set the options which allow our commands through
13750 # without removal of \ escapes.
13751 if test -n "${ZSH_VERSION+set}" ; then
13752 setopt NO_GLOB_SUBST
13753 fi
13754 # Now quote all the things that may contain metacharacters while being
13755 # careful not to overquote the AC_SUBSTed values. We take copies of the
13756 # variables and quote the copies for generation of the libtool script.
13757 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13758 SED SHELL STRIP \
13759 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13760 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13761 deplibs_check_method reload_flag reload_cmds need_locks \
13762 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13763 lt_cv_sys_global_symbol_to_c_name_address \
13764 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13765 old_postinstall_cmds old_postuninstall_cmds \
13766 compiler_CXX \
13767 CC_CXX \
13768 LD_CXX \
13769 lt_prog_compiler_wl_CXX \
13770 lt_prog_compiler_pic_CXX \
13771 lt_prog_compiler_static_CXX \
13772 lt_prog_compiler_no_builtin_flag_CXX \
13773 export_dynamic_flag_spec_CXX \
13774 thread_safe_flag_spec_CXX \
13775 whole_archive_flag_spec_CXX \
13776 enable_shared_with_static_runtimes_CXX \
13777 old_archive_cmds_CXX \
13778 old_archive_from_new_cmds_CXX \
13779 predep_objects_CXX \
13780 postdep_objects_CXX \
13781 predeps_CXX \
13782 postdeps_CXX \
13783 compiler_lib_search_path_CXX \
13784 compiler_lib_search_dirs_CXX \
13785 archive_cmds_CXX \
13786 archive_expsym_cmds_CXX \
13787 postinstall_cmds_CXX \
13788 postuninstall_cmds_CXX \
13789 old_archive_from_expsyms_cmds_CXX \
13790 allow_undefined_flag_CXX \
13791 no_undefined_flag_CXX \
13792 export_symbols_cmds_CXX \
13793 hardcode_libdir_flag_spec_CXX \
13794 hardcode_libdir_flag_spec_ld_CXX \
13795 hardcode_libdir_separator_CXX \
13796 hardcode_automatic_CXX \
13797 module_cmds_CXX \
13798 module_expsym_cmds_CXX \
13799 lt_cv_prog_compiler_c_o_CXX \
13800 fix_srcfile_path_CXX \
13801 exclude_expsyms_CXX \
13802 include_expsyms_CXX; do
13803
13804 case $var in
13805 old_archive_cmds_CXX | \
13806 old_archive_from_new_cmds_CXX | \
13807 archive_cmds_CXX | \
13808 archive_expsym_cmds_CXX | \
13809 module_cmds_CXX | \
13810 module_expsym_cmds_CXX | \
13811 old_archive_from_expsyms_cmds_CXX | \
13812 export_symbols_cmds_CXX | \
13813 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13814 postinstall_cmds | postuninstall_cmds | \
13815 old_postinstall_cmds | old_postuninstall_cmds | \
13816 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13817 # Double-quote double-evaled strings.
13818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13819 ;;
13820 *)
13821 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13822 ;;
13823 esac
13824 done
13825
13826 case $lt_echo in
13827 *'\$0 --fallback-echo"')
13828 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13829 ;;
13830 esac
13831
13832 cfgfile="$ofile"
13833
13834 cat <<__EOF__ >> "$cfgfile"
13835 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13836
13837 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13838
13839 # Shell to use when invoking shell scripts.
13840 SHELL=$lt_SHELL
13841
13842 # Whether or not to build shared libraries.
13843 build_libtool_libs=$enable_shared
13844
13845 # Whether or not to build static libraries.
13846 build_old_libs=$enable_static
13847
13848 # Whether or not to add -lc for building shared libraries.
13849 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13850
13851 # Whether or not to disallow shared libs when runtime libs are static
13852 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13853
13854 # Whether or not to optimize for fast installation.
13855 fast_install=$enable_fast_install
13856
13857 # The host system.
13858 host_alias=$host_alias
13859 host=$host
13860 host_os=$host_os
13861
13862 # The build system.
13863 build_alias=$build_alias
13864 build=$build
13865 build_os=$build_os
13866
13867 # An echo program that does not interpret backslashes.
13868 echo=$lt_echo
13869
13870 # The archiver.
13871 AR=$lt_AR
13872 AR_FLAGS=$lt_AR_FLAGS
13873
13874 # A C compiler.
13875 LTCC=$lt_LTCC
13876
13877 # LTCC compiler flags.
13878 LTCFLAGS=$lt_LTCFLAGS
13879
13880 # A language-specific compiler.
13881 CC=$lt_compiler_CXX
13882
13883 # Is the compiler the GNU C compiler?
13884 with_gcc=$GCC_CXX
13885
13886 # An ERE matcher.
13887 EGREP=$lt_EGREP
13888
13889 # The linker used to build libraries.
13890 LD=$lt_LD_CXX
13891
13892 # Whether we need hard or soft links.
13893 LN_S=$lt_LN_S
13894
13895 # A BSD-compatible nm program.
13896 NM=$lt_NM
13897
13898 # A symbol stripping program
13899 STRIP=$lt_STRIP
13900
13901 # Used to examine libraries when file_magic_cmd begins "file"
13902 MAGIC_CMD=$MAGIC_CMD
13903
13904 # Used on cygwin: DLL creation program.
13905 DLLTOOL="$DLLTOOL"
13906
13907 # Used on cygwin: object dumper.
13908 OBJDUMP="$OBJDUMP"
13909
13910 # Used on cygwin: assembler.
13911 AS="$AS"
13912
13913 # The name of the directory that contains temporary libtool files.
13914 objdir=$objdir
13915
13916 # How to create reloadable object files.
13917 reload_flag=$lt_reload_flag
13918 reload_cmds=$lt_reload_cmds
13919
13920 # How to pass a linker flag through the compiler.
13921 wl=$lt_lt_prog_compiler_wl_CXX
13922
13923 # Object file suffix (normally "o").
13924 objext="$ac_objext"
13925
13926 # Old archive suffix (normally "a").
13927 libext="$libext"
13928
13929 # Shared library suffix (normally ".so").
13930 shrext_cmds='$shrext_cmds'
13931
13932 # Executable file suffix (normally "").
13933 exeext="$exeext"
13934
13935 # Additional compiler flags for building library objects.
13936 pic_flag=$lt_lt_prog_compiler_pic_CXX
13937 pic_mode=$pic_mode
13938
13939 # What is the maximum length of a command?
13940 max_cmd_len=$lt_cv_sys_max_cmd_len
13941
13942 # Does compiler simultaneously support -c and -o options?
13943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13944
13945 # Must we lock files when doing compilation?
13946 need_locks=$lt_need_locks
13947
13948 # Do we need the lib prefix for modules?
13949 need_lib_prefix=$need_lib_prefix
13950
13951 # Do we need a version for libraries?
13952 need_version=$need_version
13953
13954 # Whether dlopen is supported.
13955 dlopen_support=$enable_dlopen
13956
13957 # Whether dlopen of programs is supported.
13958 dlopen_self=$enable_dlopen_self
13959
13960 # Whether dlopen of statically linked programs is supported.
13961 dlopen_self_static=$enable_dlopen_self_static
13962
13963 # Compiler flag to prevent dynamic linking.
13964 link_static_flag=$lt_lt_prog_compiler_static_CXX
13965
13966 # Compiler flag to turn off builtin functions.
13967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13968
13969 # Compiler flag to allow reflexive dlopens.
13970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13971
13972 # Compiler flag to generate shared objects directly from archives.
13973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13974
13975 # Compiler flag to generate thread-safe objects.
13976 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13977
13978 # Library versioning type.
13979 version_type=$version_type
13980
13981 # Format of library name prefix.
13982 libname_spec=$lt_libname_spec
13983
13984 # List of archive names. First name is the real one, the rest are links.
13985 # The last name is the one that the linker finds with -lNAME.
13986 library_names_spec=$lt_library_names_spec
13987
13988 # The coded name of the library, if different from the real name.
13989 soname_spec=$lt_soname_spec
13990
13991 # Commands used to build and install an old-style archive.
13992 RANLIB=$lt_RANLIB
13993 old_archive_cmds=$lt_old_archive_cmds_CXX
13994 old_postinstall_cmds=$lt_old_postinstall_cmds
13995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13996
13997 # Create an old-style archive from a shared archive.
13998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13999
14000 # Create a temporary old-style archive to link instead of a shared archive.
14001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14002
14003 # Commands used to build and install a shared archive.
14004 archive_cmds=$lt_archive_cmds_CXX
14005 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14006 postinstall_cmds=$lt_postinstall_cmds
14007 postuninstall_cmds=$lt_postuninstall_cmds
14008
14009 # Commands used to build a loadable module (assumed same as above if empty)
14010 module_cmds=$lt_module_cmds_CXX
14011 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14012
14013 # Commands to strip libraries.
14014 old_striplib=$lt_old_striplib
14015 striplib=$lt_striplib
14016
14017 # Dependencies to place before the objects being linked to create a
14018 # shared library.
14019 predep_objects=$lt_predep_objects_CXX
14020
14021 # Dependencies to place after the objects being linked to create a
14022 # shared library.
14023 postdep_objects=$lt_postdep_objects_CXX
14024
14025 # Dependencies to place before the objects being linked to create a
14026 # shared library.
14027 predeps=$lt_predeps_CXX
14028
14029 # Dependencies to place after the objects being linked to create a
14030 # shared library.
14031 postdeps=$lt_postdeps_CXX
14032
14033 # The directories searched by this compiler when creating a shared
14034 # library
14035 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14036
14037 # The library search path used internally by the compiler when linking
14038 # a shared library.
14039 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14040
14041 # Method to check whether dependent libraries are shared objects.
14042 deplibs_check_method=$lt_deplibs_check_method
14043
14044 # Command to use when deplibs_check_method == file_magic.
14045 file_magic_cmd=$lt_file_magic_cmd
14046
14047 # Flag that allows shared libraries with undefined symbols to be built.
14048 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14049
14050 # Flag that forces no undefined symbols.
14051 no_undefined_flag=$lt_no_undefined_flag_CXX
14052
14053 # Commands used to finish a libtool library installation in a directory.
14054 finish_cmds=$lt_finish_cmds
14055
14056 # Same as above, but a single script fragment to be evaled but not shown.
14057 finish_eval=$lt_finish_eval
14058
14059 # Take the output of nm and produce a listing of raw symbols and C names.
14060 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14061
14062 # Transform the output of nm in a proper C declaration
14063 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14064
14065 # Transform the output of nm in a C name address pair
14066 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14067
14068 # This is the shared library runtime path variable.
14069 runpath_var=$runpath_var
14070
14071 # This is the shared library path variable.
14072 shlibpath_var=$shlibpath_var
14073
14074 # Is shlibpath searched before the hard-coded library search path?
14075 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14076
14077 # How to hardcode a shared library path into an executable.
14078 hardcode_action=$hardcode_action_CXX
14079
14080 # Whether we should hardcode library paths into libraries.
14081 hardcode_into_libs=$hardcode_into_libs
14082
14083 # Flag to hardcode \$libdir into a binary during linking.
14084 # This must work even if \$libdir does not exist.
14085 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14086
14087 # If ld is used when linking, flag to hardcode \$libdir into
14088 # a binary during linking. This must work even if \$libdir does
14089 # not exist.
14090 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14091
14092 # Whether we need a single -rpath flag with a separated argument.
14093 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14094
14095 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14096 # resulting binary.
14097 hardcode_direct=$hardcode_direct_CXX
14098
14099 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14100 # resulting binary.
14101 hardcode_minus_L=$hardcode_minus_L_CXX
14102
14103 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14104 # the resulting binary.
14105 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14106
14107 # Set to yes if building a shared library automatically hardcodes DIR into the library
14108 # and all subsequent libraries and executables linked against it.
14109 hardcode_automatic=$hardcode_automatic_CXX
14110
14111 # Variables whose values should be saved in libtool wrapper scripts and
14112 # restored at relink time.
14113 variables_saved_for_relink="$variables_saved_for_relink"
14114
14115 # Whether libtool must link a program against all its dependency libraries.
14116 link_all_deplibs=$link_all_deplibs_CXX
14117
14118 # Compile-time system search path for libraries
14119 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14120
14121 # Run-time system search path for libraries
14122 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14123
14124 # Fix the shell variable \$srcfile for the compiler.
14125 fix_srcfile_path=$lt_fix_srcfile_path
14126
14127 # Set to yes if exported symbols are required.
14128 always_export_symbols=$always_export_symbols_CXX
14129
14130 # The commands to list exported symbols.
14131 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14132
14133 # The commands to extract the exported symbol list from a shared archive.
14134 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14135
14136 # Symbols that should not be listed in the preloaded symbols.
14137 exclude_expsyms=$lt_exclude_expsyms_CXX
14138
14139 # Symbols that must always be exported.
14140 include_expsyms=$lt_include_expsyms_CXX
14141
14142 # ### END LIBTOOL TAG CONFIG: $tagname
14143
14144 __EOF__
14145
14146
14147 else
14148 # If there is no Makefile yet, we rely on a make rule to execute
14149 # `config.status --recheck' to rerun these tests and create the
14150 # libtool script then.
14151 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14152 if test -f "$ltmain_in"; then
14153 test -f Makefile && make "$ltmain"
14154 fi
14155 fi
14156
14157
14158 ac_ext=c
14159 ac_cpp='$CPP $CPPFLAGS'
14160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14163
14164 CC=$lt_save_CC
14165 LDCXX=$LD
14166 LD=$lt_save_LD
14167 GCC=$lt_save_GCC
14168 with_gnu_ldcxx=$with_gnu_ld
14169 with_gnu_ld=$lt_save_with_gnu_ld
14170 lt_cv_path_LDCXX=$lt_cv_path_LD
14171 lt_cv_path_LD=$lt_save_path_LD
14172 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14173 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14174
14175 else
14176 tagname=""
14177 fi
14178 ;;
14179
14180 F77)
14181 if test -n "$F77" && test "X$F77" != "Xno"; then
14182
14183 ac_ext=f
14184 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14185 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14186 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14187
14188
14189 archive_cmds_need_lc_F77=no
14190 allow_undefined_flag_F77=
14191 always_export_symbols_F77=no
14192 archive_expsym_cmds_F77=
14193 export_dynamic_flag_spec_F77=
14194 hardcode_direct_F77=no
14195 hardcode_libdir_flag_spec_F77=
14196 hardcode_libdir_flag_spec_ld_F77=
14197 hardcode_libdir_separator_F77=
14198 hardcode_minus_L_F77=no
14199 hardcode_automatic_F77=no
14200 module_cmds_F77=
14201 module_expsym_cmds_F77=
14202 link_all_deplibs_F77=unknown
14203 old_archive_cmds_F77=$old_archive_cmds
14204 no_undefined_flag_F77=
14205 whole_archive_flag_spec_F77=
14206 enable_shared_with_static_runtimes_F77=no
14207
14208 # Source file extension for f77 test sources.
14209 ac_ext=f
14210
14211 # Object file extension for compiled f77 test sources.
14212 objext=o
14213 objext_F77=$objext
14214
14215 # Code to be used in simple compile tests
14216 lt_simple_compile_test_code="\
14217 subroutine t
14218 return
14219 end
14220 "
14221
14222 # Code to be used in simple link tests
14223 lt_simple_link_test_code="\
14224 program t
14225 end
14226 "
14227
14228 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14229
14230 # If no C compiler was specified, use CC.
14231 LTCC=${LTCC-"$CC"}
14232
14233 # If no C compiler flags were specified, use CFLAGS.
14234 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14235
14236 # Allow CC to be a program name with arguments.
14237 compiler=$CC
14238
14239
14240 # save warnings/boilerplate of simple test code
14241 ac_outfile=conftest.$ac_objext
14242 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14243 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14244 _lt_compiler_boilerplate=`cat conftest.err`
14245 $rm conftest*
14246
14247 ac_outfile=conftest.$ac_objext
14248 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14249 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14250 _lt_linker_boilerplate=`cat conftest.err`
14251 $rm -r conftest*
14252
14253
14254 # Allow CC to be a program name with arguments.
14255 lt_save_CC="$CC"
14256 CC=${F77-"f77"}
14257 compiler=$CC
14258 compiler_F77=$CC
14259 for cc_temp in $compiler""; do
14260 case $cc_temp in
14261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14263 \-*) ;;
14264 *) break;;
14265 esac
14266 done
14267 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14268
14269
14270 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14271 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14272 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14273 $as_echo "$can_build_shared" >&6; }
14274
14275 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14276 $as_echo_n "checking whether to build shared libraries... " >&6; }
14277 test "$can_build_shared" = "no" && enable_shared=no
14278
14279 # On AIX, shared libraries and static libraries use the same namespace, and
14280 # are all built from PIC.
14281 case $host_os in
14282 aix3*)
14283 test "$enable_shared" = yes && enable_static=no
14284 if test -n "$RANLIB"; then
14285 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14286 postinstall_cmds='$RANLIB $lib'
14287 fi
14288 ;;
14289 aix[4-9]*)
14290 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14291 test "$enable_shared" = yes && enable_static=no
14292 fi
14293 ;;
14294 esac
14295 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14296 $as_echo "$enable_shared" >&6; }
14297
14298 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14299 $as_echo_n "checking whether to build static libraries... " >&6; }
14300 # Make sure either enable_shared or enable_static is yes.
14301 test "$enable_shared" = yes || enable_static=yes
14302 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14303 $as_echo "$enable_static" >&6; }
14304
14305 GCC_F77="$G77"
14306 LD_F77="$LD"
14307
14308 lt_prog_compiler_wl_F77=
14309 lt_prog_compiler_pic_F77=
14310 lt_prog_compiler_static_F77=
14311
14312 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14313 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14314
14315 if test "$GCC" = yes; then
14316 lt_prog_compiler_wl_F77='-Wl,'
14317 lt_prog_compiler_static_F77='-static'
14318
14319 case $host_os in
14320 aix*)
14321 # All AIX code is PIC.
14322 if test "$host_cpu" = ia64; then
14323 # AIX 5 now supports IA64 processor
14324 lt_prog_compiler_static_F77='-Bstatic'
14325 fi
14326 ;;
14327
14328 amigaos*)
14329 # FIXME: we need at least 68020 code to build shared libraries, but
14330 # adding the `-m68020' flag to GCC prevents building anything better,
14331 # like `-m68040'.
14332 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14333 ;;
14334
14335 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14336 # PIC is the default for these OSes.
14337 ;;
14338
14339 mingw* | cygwin* | pw32* | os2*)
14340 # This hack is so that the source file can tell whether it is being
14341 # built for inclusion in a dll (and should export symbols for example).
14342 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14343 # (--disable-auto-import) libraries
14344 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14345 ;;
14346
14347 darwin* | rhapsody*)
14348 # PIC is the default on this platform
14349 # Common symbols not allowed in MH_DYLIB files
14350 lt_prog_compiler_pic_F77='-fno-common'
14351 ;;
14352
14353 interix[3-9]*)
14354 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14355 # Instead, we relocate shared libraries at runtime.
14356 ;;
14357
14358 msdosdjgpp*)
14359 # Just because we use GCC doesn't mean we suddenly get shared libraries
14360 # on systems that don't support them.
14361 lt_prog_compiler_can_build_shared_F77=no
14362 enable_shared=no
14363 ;;
14364
14365 sysv4*MP*)
14366 if test -d /usr/nec; then
14367 lt_prog_compiler_pic_F77=-Kconform_pic
14368 fi
14369 ;;
14370
14371 hpux*)
14372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14373 # not for PA HP-UX.
14374 case $host_cpu in
14375 hppa*64*|ia64*)
14376 # +Z the default
14377 ;;
14378 *)
14379 lt_prog_compiler_pic_F77='-fPIC'
14380 ;;
14381 esac
14382 ;;
14383
14384 *)
14385 lt_prog_compiler_pic_F77='-fPIC'
14386 ;;
14387 esac
14388 else
14389 # PORTME Check for flag to pass linker flags through the system compiler.
14390 case $host_os in
14391 aix*)
14392 lt_prog_compiler_wl_F77='-Wl,'
14393 if test "$host_cpu" = ia64; then
14394 # AIX 5 now supports IA64 processor
14395 lt_prog_compiler_static_F77='-Bstatic'
14396 else
14397 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14398 fi
14399 ;;
14400 darwin*)
14401 # PIC is the default on this platform
14402 # Common symbols not allowed in MH_DYLIB files
14403 case $cc_basename in
14404 xlc*)
14405 lt_prog_compiler_pic_F77='-qnocommon'
14406 lt_prog_compiler_wl_F77='-Wl,'
14407 ;;
14408 esac
14409 ;;
14410
14411 mingw* | cygwin* | pw32* | os2*)
14412 # This hack is so that the source file can tell whether it is being
14413 # built for inclusion in a dll (and should export symbols for example).
14414 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14415 ;;
14416
14417 hpux9* | hpux10* | hpux11*)
14418 lt_prog_compiler_wl_F77='-Wl,'
14419 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14420 # not for PA HP-UX.
14421 case $host_cpu in
14422 hppa*64*|ia64*)
14423 # +Z the default
14424 ;;
14425 *)
14426 lt_prog_compiler_pic_F77='+Z'
14427 ;;
14428 esac
14429 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14430 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14431 ;;
14432
14433 irix5* | irix6* | nonstopux*)
14434 lt_prog_compiler_wl_F77='-Wl,'
14435 # PIC (with -KPIC) is the default.
14436 lt_prog_compiler_static_F77='-non_shared'
14437 ;;
14438
14439 newsos6)
14440 lt_prog_compiler_pic_F77='-KPIC'
14441 lt_prog_compiler_static_F77='-Bstatic'
14442 ;;
14443
14444 linux* | k*bsd*-gnu)
14445 case $cc_basename in
14446 icc* | ecc*)
14447 lt_prog_compiler_wl_F77='-Wl,'
14448 lt_prog_compiler_pic_F77='-KPIC'
14449 lt_prog_compiler_static_F77='-static'
14450 ;;
14451 pgcc* | pgf77* | pgf90* | pgf95*)
14452 # Portland Group compilers (*not* the Pentium gcc compiler,
14453 # which looks to be a dead project)
14454 lt_prog_compiler_wl_F77='-Wl,'
14455 lt_prog_compiler_pic_F77='-fpic'
14456 lt_prog_compiler_static_F77='-Bstatic'
14457 ;;
14458 ccc*)
14459 lt_prog_compiler_wl_F77='-Wl,'
14460 # All Alpha code is PIC.
14461 lt_prog_compiler_static_F77='-non_shared'
14462 ;;
14463 *)
14464 case `$CC -V 2>&1 | sed 5q` in
14465 *Sun\ C*)
14466 # Sun C 5.9
14467 lt_prog_compiler_pic_F77='-KPIC'
14468 lt_prog_compiler_static_F77='-Bstatic'
14469 lt_prog_compiler_wl_F77='-Wl,'
14470 ;;
14471 *Sun\ F*)
14472 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14473 lt_prog_compiler_pic_F77='-KPIC'
14474 lt_prog_compiler_static_F77='-Bstatic'
14475 lt_prog_compiler_wl_F77=''
14476 ;;
14477 esac
14478 ;;
14479 esac
14480 ;;
14481
14482 osf3* | osf4* | osf5*)
14483 lt_prog_compiler_wl_F77='-Wl,'
14484 # All OSF/1 code is PIC.
14485 lt_prog_compiler_static_F77='-non_shared'
14486 ;;
14487
14488 rdos*)
14489 lt_prog_compiler_static_F77='-non_shared'
14490 ;;
14491
14492 solaris*)
14493 lt_prog_compiler_pic_F77='-KPIC'
14494 lt_prog_compiler_static_F77='-Bstatic'
14495 case $cc_basename in
14496 f77* | f90* | f95*)
14497 lt_prog_compiler_wl_F77='-Qoption ld ';;
14498 *)
14499 lt_prog_compiler_wl_F77='-Wl,';;
14500 esac
14501 ;;
14502
14503 sunos4*)
14504 lt_prog_compiler_wl_F77='-Qoption ld '
14505 lt_prog_compiler_pic_F77='-PIC'
14506 lt_prog_compiler_static_F77='-Bstatic'
14507 ;;
14508
14509 sysv4 | sysv4.2uw2* | sysv4.3*)
14510 lt_prog_compiler_wl_F77='-Wl,'
14511 lt_prog_compiler_pic_F77='-KPIC'
14512 lt_prog_compiler_static_F77='-Bstatic'
14513 ;;
14514
14515 sysv4*MP*)
14516 if test -d /usr/nec ;then
14517 lt_prog_compiler_pic_F77='-Kconform_pic'
14518 lt_prog_compiler_static_F77='-Bstatic'
14519 fi
14520 ;;
14521
14522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14523 lt_prog_compiler_wl_F77='-Wl,'
14524 lt_prog_compiler_pic_F77='-KPIC'
14525 lt_prog_compiler_static_F77='-Bstatic'
14526 ;;
14527
14528 unicos*)
14529 lt_prog_compiler_wl_F77='-Wl,'
14530 lt_prog_compiler_can_build_shared_F77=no
14531 ;;
14532
14533 uts4*)
14534 lt_prog_compiler_pic_F77='-pic'
14535 lt_prog_compiler_static_F77='-Bstatic'
14536 ;;
14537
14538 *)
14539 lt_prog_compiler_can_build_shared_F77=no
14540 ;;
14541 esac
14542 fi
14543
14544 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14545 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14546
14547 #
14548 # Check to make sure the PIC flag actually works.
14549 #
14550 if test -n "$lt_prog_compiler_pic_F77"; then
14551
14552 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14553 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14554 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14555 $as_echo_n "(cached) " >&6
14556 else
14557 lt_cv_prog_compiler_pic_works_F77=no
14558 ac_outfile=conftest.$ac_objext
14559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14560 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14561 # Insert the option either (1) after the last *FLAGS variable, or
14562 # (2) before a word containing "conftest.", or (3) at the end.
14563 # Note that $ac_compile itself does not contain backslashes and begins
14564 # with a dollar sign (not a hyphen), so the echo should work correctly.
14565 # The option is referenced via a variable to avoid confusing sed.
14566 lt_compile=`echo "$ac_compile" | $SED \
14567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14569 -e 's:$: $lt_compiler_flag:'`
14570 (eval echo "\"\$as_me:14570: $lt_compile\"" >&5)
14571 (eval "$lt_compile" 2>conftest.err)
14572 ac_status=$?
14573 cat conftest.err >&5
14574 echo "$as_me:14574: \$? = $ac_status" >&5
14575 if (exit $ac_status) && test -s "$ac_outfile"; then
14576 # The compiler can only warn and ignore the option if not recognized
14577 # So say no if there are warnings other than the usual output.
14578 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14581 lt_cv_prog_compiler_pic_works_F77=yes
14582 fi
14583 fi
14584 $rm conftest*
14585
14586 fi
14587 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14588 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14589
14590 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14591 case $lt_prog_compiler_pic_F77 in
14592 "" | " "*) ;;
14593 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14594 esac
14595 else
14596 lt_prog_compiler_pic_F77=
14597 lt_prog_compiler_can_build_shared_F77=no
14598 fi
14599
14600 fi
14601 case $host_os in
14602 # For platforms which do not support PIC, -DPIC is meaningless:
14603 *djgpp*)
14604 lt_prog_compiler_pic_F77=
14605 ;;
14606 *)
14607 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14608 ;;
14609 esac
14610
14611 #
14612 # Check to make sure the static flag actually works.
14613 #
14614 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14615 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14616 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14617 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14618 $as_echo_n "(cached) " >&6
14619 else
14620 lt_cv_prog_compiler_static_works_F77=no
14621 save_LDFLAGS="$LDFLAGS"
14622 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14623 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14624 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14625 # The linker can only warn and ignore the option if not recognized
14626 # So say no if there are warnings
14627 if test -s conftest.err; then
14628 # Append any errors to the config.log.
14629 cat conftest.err 1>&5
14630 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14632 if diff conftest.exp conftest.er2 >/dev/null; then
14633 lt_cv_prog_compiler_static_works_F77=yes
14634 fi
14635 else
14636 lt_cv_prog_compiler_static_works_F77=yes
14637 fi
14638 fi
14639 $rm -r conftest*
14640 LDFLAGS="$save_LDFLAGS"
14641
14642 fi
14643 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14644 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14645
14646 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14647 :
14648 else
14649 lt_prog_compiler_static_F77=
14650 fi
14651
14652
14653 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14654 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14655 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14656 $as_echo_n "(cached) " >&6
14657 else
14658 lt_cv_prog_compiler_c_o_F77=no
14659 $rm -r conftest 2>/dev/null
14660 mkdir conftest
14661 cd conftest
14662 mkdir out
14663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14664
14665 lt_compiler_flag="-o out/conftest2.$ac_objext"
14666 # Insert the option either (1) after the last *FLAGS variable, or
14667 # (2) before a word containing "conftest.", or (3) at the end.
14668 # Note that $ac_compile itself does not contain backslashes and begins
14669 # with a dollar sign (not a hyphen), so the echo should work correctly.
14670 lt_compile=`echo "$ac_compile" | $SED \
14671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14673 -e 's:$: $lt_compiler_flag:'`
14674 (eval echo "\"\$as_me:14674: $lt_compile\"" >&5)
14675 (eval "$lt_compile" 2>out/conftest.err)
14676 ac_status=$?
14677 cat out/conftest.err >&5
14678 echo "$as_me:14678: \$? = $ac_status" >&5
14679 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14680 then
14681 # The compiler can only warn and ignore the option if not recognized
14682 # So say no if there are warnings
14683 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14684 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14685 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14686 lt_cv_prog_compiler_c_o_F77=yes
14687 fi
14688 fi
14689 chmod u+w . 2>&5
14690 $rm conftest*
14691 # SGI C++ compiler will create directory out/ii_files/ for
14692 # template instantiation
14693 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14694 $rm out/* && rmdir out
14695 cd ..
14696 rmdir conftest
14697 $rm conftest*
14698
14699 fi
14700 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14701 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14702
14703
14704 hard_links="nottested"
14705 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14706 # do not overwrite the value of need_locks provided by the user
14707 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14708 $as_echo_n "checking if we can lock with hard links... " >&6; }
14709 hard_links=yes
14710 $rm conftest*
14711 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14712 touch conftest.a
14713 ln conftest.a conftest.b 2>&5 || hard_links=no
14714 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14715 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14716 $as_echo "$hard_links" >&6; }
14717 if test "$hard_links" = no; then
14718 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14719 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14720 need_locks=warn
14721 fi
14722 else
14723 need_locks=no
14724 fi
14725
14726 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14727 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14728
14729 runpath_var=
14730 allow_undefined_flag_F77=
14731 enable_shared_with_static_runtimes_F77=no
14732 archive_cmds_F77=
14733 archive_expsym_cmds_F77=
14734 old_archive_From_new_cmds_F77=
14735 old_archive_from_expsyms_cmds_F77=
14736 export_dynamic_flag_spec_F77=
14737 whole_archive_flag_spec_F77=
14738 thread_safe_flag_spec_F77=
14739 hardcode_libdir_flag_spec_F77=
14740 hardcode_libdir_flag_spec_ld_F77=
14741 hardcode_libdir_separator_F77=
14742 hardcode_direct_F77=no
14743 hardcode_minus_L_F77=no
14744 hardcode_shlibpath_var_F77=unsupported
14745 link_all_deplibs_F77=unknown
14746 hardcode_automatic_F77=no
14747 module_cmds_F77=
14748 module_expsym_cmds_F77=
14749 always_export_symbols_F77=no
14750 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14751 # include_expsyms should be a list of space-separated symbols to be *always*
14752 # included in the symbol list
14753 include_expsyms_F77=
14754 # exclude_expsyms can be an extended regexp of symbols to exclude
14755 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14756 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14757 # as well as any symbol that contains `d'.
14758 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14759 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14760 # platforms (ab)use it in PIC code, but their linkers get confused if
14761 # the symbol is explicitly referenced. Since portable code cannot
14762 # rely on this symbol name, it's probably fine to never include it in
14763 # preloaded symbol tables.
14764 # Exclude shared library initialization/finalization symbols.
14765 extract_expsyms_cmds=
14766 # Just being paranoid about ensuring that cc_basename is set.
14767 for cc_temp in $compiler""; do
14768 case $cc_temp in
14769 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14770 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14771 \-*) ;;
14772 *) break;;
14773 esac
14774 done
14775 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14776
14777 case $host_os in
14778 cygwin* | mingw* | pw32*)
14779 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14780 # When not using gcc, we currently assume that we are using
14781 # Microsoft Visual C++.
14782 if test "$GCC" != yes; then
14783 with_gnu_ld=no
14784 fi
14785 ;;
14786 interix*)
14787 # we just hope/assume this is gcc and not c89 (= MSVC++)
14788 with_gnu_ld=yes
14789 ;;
14790 openbsd*)
14791 with_gnu_ld=no
14792 ;;
14793 esac
14794
14795 ld_shlibs_F77=yes
14796 if test "$with_gnu_ld" = yes; then
14797 # If archive_cmds runs LD, not CC, wlarc should be empty
14798 wlarc='${wl}'
14799
14800 # Set some defaults for GNU ld with shared library support. These
14801 # are reset later if shared libraries are not supported. Putting them
14802 # here allows them to be overridden if necessary.
14803 runpath_var=LD_RUN_PATH
14804 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14805 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14806 # ancient GNU ld didn't support --whole-archive et. al.
14807 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14808 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14809 else
14810 whole_archive_flag_spec_F77=
14811 fi
14812 supports_anon_versioning=no
14813 case `$LD -v 2>/dev/null` in
14814 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14815 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14816 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14817 *\ 2.11.*) ;; # other 2.11 versions
14818 *) supports_anon_versioning=yes ;;
14819 esac
14820
14821 # See if GNU ld supports shared libraries.
14822 case $host_os in
14823 aix[3-9]*)
14824 # On AIX/PPC, the GNU linker is very broken
14825 if test "$host_cpu" != ia64; then
14826 ld_shlibs_F77=no
14827 cat <<EOF 1>&2
14828
14829 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14830 *** to be unable to reliably create shared libraries on AIX.
14831 *** Therefore, libtool is disabling shared libraries support. If you
14832 *** really care for shared libraries, you may want to modify your PATH
14833 *** so that a non-GNU linker is found, and then restart.
14834
14835 EOF
14836 fi
14837 ;;
14838
14839 amigaos*)
14840 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)'
14841 hardcode_libdir_flag_spec_F77='-L$libdir'
14842 hardcode_minus_L_F77=yes
14843
14844 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14845 # that the semantics of dynamic libraries on AmigaOS, at least up
14846 # to version 4, is to share data among multiple programs linked
14847 # with the same dynamic library. Since this doesn't match the
14848 # behavior of shared libraries on other platforms, we can't use
14849 # them.
14850 ld_shlibs_F77=no
14851 ;;
14852
14853 beos*)
14854 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14855 allow_undefined_flag_F77=unsupported
14856 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14857 # support --undefined. This deserves some investigation. FIXME
14858 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14859 else
14860 ld_shlibs_F77=no
14861 fi
14862 ;;
14863
14864 cygwin* | mingw* | pw32*)
14865 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14866 # as there is no search path for DLLs.
14867 hardcode_libdir_flag_spec_F77='-L$libdir'
14868 allow_undefined_flag_F77=unsupported
14869 always_export_symbols_F77=no
14870 enable_shared_with_static_runtimes_F77=yes
14871 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14872
14873 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14874 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14875 # If the export-symbols file already is a .def file (1st line
14876 # is EXPORTS), use it as is; otherwise, prepend...
14877 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14878 cp $export_symbols $output_objdir/$soname.def;
14879 else
14880 echo EXPORTS > $output_objdir/$soname.def;
14881 cat $export_symbols >> $output_objdir/$soname.def;
14882 fi~
14883 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14884 else
14885 ld_shlibs_F77=no
14886 fi
14887 ;;
14888
14889 interix[3-9]*)
14890 hardcode_direct_F77=no
14891 hardcode_shlibpath_var_F77=no
14892 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14893 export_dynamic_flag_spec_F77='${wl}-E'
14894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14895 # Instead, shared libraries are loaded at an image base (0x10000000 by
14896 # default) and relocated if they conflict, which is a slow very memory
14897 # consuming and fragmenting process. To avoid this, we pick a random,
14898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14899 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14900 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'
14901 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'
14902 ;;
14903
14904 gnu* | linux* | k*bsd*-gnu)
14905 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14906 tmp_addflag=
14907 case $cc_basename,$host_cpu in
14908 pgcc*) # Portland Group C compiler
14909 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'
14910 tmp_addflag=' $pic_flag'
14911 ;;
14912 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14913 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'
14914 tmp_addflag=' $pic_flag -Mnomain' ;;
14915 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14916 tmp_addflag=' -i_dynamic' ;;
14917 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14918 tmp_addflag=' -i_dynamic -nofor_main' ;;
14919 ifc* | ifort*) # Intel Fortran compiler
14920 tmp_addflag=' -nofor_main' ;;
14921 esac
14922 case `$CC -V 2>&1 | sed 5q` in
14923 *Sun\ C*) # Sun C 5.9
14924 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'
14925 tmp_sharedflag='-G' ;;
14926 *Sun\ F*) # Sun Fortran 8.3
14927 tmp_sharedflag='-G' ;;
14928 *)
14929 tmp_sharedflag='-shared' ;;
14930 esac
14931 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14932
14933 if test $supports_anon_versioning = yes; then
14934 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14935 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14936 $echo "local: *; };" >> $output_objdir/$libname.ver~
14937 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14938 fi
14939 else
14940 ld_shlibs_F77=no
14941 fi
14942 ;;
14943
14944 netbsd*)
14945 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14946 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14947 wlarc=
14948 else
14949 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14950 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14951 fi
14952 ;;
14953
14954 solaris*)
14955 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14956 ld_shlibs_F77=no
14957 cat <<EOF 1>&2
14958
14959 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14960 *** create shared libraries on Solaris systems. Therefore, libtool
14961 *** is disabling shared libraries support. We urge you to upgrade GNU
14962 *** binutils to release 2.9.1 or newer. Another option is to modify
14963 *** your PATH or compiler configuration so that the native linker is
14964 *** used, and then restart.
14965
14966 EOF
14967 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14968 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14969 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14970 else
14971 ld_shlibs_F77=no
14972 fi
14973 ;;
14974
14975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14976 case `$LD -v 2>&1` in
14977 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14978 ld_shlibs_F77=no
14979 cat <<_LT_EOF 1>&2
14980
14981 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14982 *** reliably create shared libraries on SCO systems. Therefore, libtool
14983 *** is disabling shared libraries support. We urge you to upgrade GNU
14984 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14985 *** your PATH or compiler configuration so that the native linker is
14986 *** used, and then restart.
14987
14988 _LT_EOF
14989 ;;
14990 *)
14991 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14992 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14993 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14994 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14995 else
14996 ld_shlibs_F77=no
14997 fi
14998 ;;
14999 esac
15000 ;;
15001
15002 sunos4*)
15003 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15004 wlarc=
15005 hardcode_direct_F77=yes
15006 hardcode_shlibpath_var_F77=no
15007 ;;
15008
15009 *)
15010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15013 else
15014 ld_shlibs_F77=no
15015 fi
15016 ;;
15017 esac
15018
15019 if test "$ld_shlibs_F77" = no; then
15020 runpath_var=
15021 hardcode_libdir_flag_spec_F77=
15022 export_dynamic_flag_spec_F77=
15023 whole_archive_flag_spec_F77=
15024 fi
15025 else
15026 # PORTME fill in a description of your system's linker (not GNU ld)
15027 case $host_os in
15028 aix3*)
15029 allow_undefined_flag_F77=unsupported
15030 always_export_symbols_F77=yes
15031 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'
15032 # Note: this linker hardcodes the directories in LIBPATH if there
15033 # are no directories specified by -L.
15034 hardcode_minus_L_F77=yes
15035 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15036 # Neither direct hardcoding nor static linking is supported with a
15037 # broken collect2.
15038 hardcode_direct_F77=unsupported
15039 fi
15040 ;;
15041
15042 aix[4-9]*)
15043 if test "$host_cpu" = ia64; then
15044 # On IA64, the linker does run time linking by default, so we don't
15045 # have to do anything special.
15046 aix_use_runtimelinking=no
15047 exp_sym_flag='-Bexport'
15048 no_entry_flag=""
15049 else
15050 # If we're using GNU nm, then we don't want the "-C" option.
15051 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15052 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15053 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'
15054 else
15055 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'
15056 fi
15057 aix_use_runtimelinking=no
15058
15059 # Test if we are trying to use run time linking or normal
15060 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15061 # need to do runtime linking.
15062 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15063 for ld_flag in $LDFLAGS; do
15064 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15065 aix_use_runtimelinking=yes
15066 break
15067 fi
15068 done
15069 ;;
15070 esac
15071
15072 exp_sym_flag='-bexport'
15073 no_entry_flag='-bnoentry'
15074 fi
15075
15076 # When large executables or shared objects are built, AIX ld can
15077 # have problems creating the table of contents. If linking a library
15078 # or program results in "error TOC overflow" add -mminimal-toc to
15079 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15080 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15081
15082 archive_cmds_F77=''
15083 hardcode_direct_F77=yes
15084 hardcode_libdir_separator_F77=':'
15085 link_all_deplibs_F77=yes
15086
15087 if test "$GCC" = yes; then
15088 case $host_os in aix4.[012]|aix4.[012].*)
15089 # We only want to do this on AIX 4.2 and lower, the check
15090 # below for broken collect2 doesn't work under 4.3+
15091 collect2name=`${CC} -print-prog-name=collect2`
15092 if test -f "$collect2name" && \
15093 strings "$collect2name" | grep resolve_lib_name >/dev/null
15094 then
15095 # We have reworked collect2
15096 :
15097 else
15098 # We have old collect2
15099 hardcode_direct_F77=unsupported
15100 # It fails to find uninstalled libraries when the uninstalled
15101 # path is not listed in the libpath. Setting hardcode_minus_L
15102 # to unsupported forces relinking
15103 hardcode_minus_L_F77=yes
15104 hardcode_libdir_flag_spec_F77='-L$libdir'
15105 hardcode_libdir_separator_F77=
15106 fi
15107 ;;
15108 esac
15109 shared_flag='-shared'
15110 if test "$aix_use_runtimelinking" = yes; then
15111 shared_flag="$shared_flag "'${wl}-G'
15112 fi
15113 else
15114 # not using gcc
15115 if test "$host_cpu" = ia64; then
15116 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15117 # chokes on -Wl,-G. The following line is correct:
15118 shared_flag='-G'
15119 else
15120 if test "$aix_use_runtimelinking" = yes; then
15121 shared_flag='${wl}-G'
15122 else
15123 shared_flag='${wl}-bM:SRE'
15124 fi
15125 fi
15126 fi
15127
15128 # It seems that -bexpall does not export symbols beginning with
15129 # underscore (_), so it is better to generate a list of symbols to export.
15130 always_export_symbols_F77=yes
15131 if test "$aix_use_runtimelinking" = yes; then
15132 # Warning - without using the other runtime loading flags (-brtl),
15133 # -berok will link without error, but may produce a broken library.
15134 allow_undefined_flag_F77='-berok'
15135 # Determine the default libpath from the value encoded in an empty executable.
15136 cat >conftest.$ac_ext <<_ACEOF
15137 program main
15138
15139 end
15140 _ACEOF
15141 rm -f conftest.$ac_objext conftest$ac_exeext
15142 if { (ac_try="$ac_link"
15143 case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15146 esac
15147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15148 $as_echo "$ac_try_echo") >&5
15149 (eval "$ac_link") 2>conftest.er1
15150 ac_status=$?
15151 grep -v '^ *+' conftest.er1 >conftest.err
15152 rm -f conftest.er1
15153 cat conftest.err >&5
15154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } && {
15156 test -z "$ac_f77_werror_flag" ||
15157 test ! -s conftest.err
15158 } && test -s conftest$ac_exeext && {
15159 test "$cross_compiling" = yes ||
15160 $as_test_x conftest$ac_exeext
15161 }; then
15162
15163 lt_aix_libpath_sed='
15164 /Import File Strings/,/^$/ {
15165 /^0/ {
15166 s/^0 *\(.*\)$/\1/
15167 p
15168 }
15169 }'
15170 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15171 # Check for a 64-bit object if we didn't find anything.
15172 if test -z "$aix_libpath"; then
15173 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15174 fi
15175 else
15176 $as_echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15178
15179
15180 fi
15181
15182 rm -rf conftest.dSYM
15183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15184 conftest$ac_exeext conftest.$ac_ext
15185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15186
15187 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15188 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"
15189 else
15190 if test "$host_cpu" = ia64; then
15191 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15192 allow_undefined_flag_F77="-z nodefs"
15193 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"
15194 else
15195 # Determine the default libpath from the value encoded in an empty executable.
15196 cat >conftest.$ac_ext <<_ACEOF
15197 program main
15198
15199 end
15200 _ACEOF
15201 rm -f conftest.$ac_objext conftest$ac_exeext
15202 if { (ac_try="$ac_link"
15203 case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15206 esac
15207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15208 $as_echo "$ac_try_echo") >&5
15209 (eval "$ac_link") 2>conftest.er1
15210 ac_status=$?
15211 grep -v '^ *+' conftest.er1 >conftest.err
15212 rm -f conftest.er1
15213 cat conftest.err >&5
15214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } && {
15216 test -z "$ac_f77_werror_flag" ||
15217 test ! -s conftest.err
15218 } && test -s conftest$ac_exeext && {
15219 test "$cross_compiling" = yes ||
15220 $as_test_x conftest$ac_exeext
15221 }; then
15222
15223 lt_aix_libpath_sed='
15224 /Import File Strings/,/^$/ {
15225 /^0/ {
15226 s/^0 *\(.*\)$/\1/
15227 p
15228 }
15229 }'
15230 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15231 # Check for a 64-bit object if we didn't find anything.
15232 if test -z "$aix_libpath"; then
15233 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15234 fi
15235 else
15236 $as_echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15238
15239
15240 fi
15241
15242 rm -rf conftest.dSYM
15243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15244 conftest$ac_exeext conftest.$ac_ext
15245 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15246
15247 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15248 # Warning - without using the other run time loading flags,
15249 # -berok will link without error, but may produce a broken library.
15250 no_undefined_flag_F77=' ${wl}-bernotok'
15251 allow_undefined_flag_F77=' ${wl}-berok'
15252 # Exported symbols can be pulled into shared objects from archives
15253 whole_archive_flag_spec_F77='$convenience'
15254 archive_cmds_need_lc_F77=yes
15255 # This is similar to how AIX traditionally builds its shared libraries.
15256 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'
15257 fi
15258 fi
15259 ;;
15260
15261 amigaos*)
15262 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)'
15263 hardcode_libdir_flag_spec_F77='-L$libdir'
15264 hardcode_minus_L_F77=yes
15265 # see comment about different semantics on the GNU ld section
15266 ld_shlibs_F77=no
15267 ;;
15268
15269 bsdi[45]*)
15270 export_dynamic_flag_spec_F77=-rdynamic
15271 ;;
15272
15273 cygwin* | mingw* | pw32*)
15274 # When not using gcc, we currently assume that we are using
15275 # Microsoft Visual C++.
15276 # hardcode_libdir_flag_spec is actually meaningless, as there is
15277 # no search path for DLLs.
15278 hardcode_libdir_flag_spec_F77=' '
15279 allow_undefined_flag_F77=unsupported
15280 # Tell ltmain to make .lib files, not .a files.
15281 libext=lib
15282 # Tell ltmain to make .dll files, not .so files.
15283 shrext_cmds=".dll"
15284 # FIXME: Setting linknames here is a bad hack.
15285 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15286 # The linker will automatically build a .lib file if we build a DLL.
15287 old_archive_From_new_cmds_F77='true'
15288 # FIXME: Should let the user specify the lib program.
15289 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15290 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15291 enable_shared_with_static_runtimes_F77=yes
15292 ;;
15293
15294 darwin* | rhapsody*)
15295 case $host_os in
15296 rhapsody* | darwin1.[012])
15297 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15298 ;;
15299 *) # Darwin 1.3 on
15300 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15301 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15302 else
15303 case ${MACOSX_DEPLOYMENT_TARGET} in
15304 10.[012])
15305 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15306 ;;
15307 10.*)
15308 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15309 ;;
15310 esac
15311 fi
15312 ;;
15313 esac
15314 archive_cmds_need_lc_F77=no
15315 hardcode_direct_F77=no
15316 hardcode_automatic_F77=yes
15317 hardcode_shlibpath_var_F77=unsupported
15318 whole_archive_flag_spec_F77=''
15319 link_all_deplibs_F77=yes
15320 if test "$GCC" = yes ; then
15321 output_verbose_link_cmd='echo'
15322 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15323 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15324 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15325 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15326 else
15327 case $cc_basename in
15328 xlc*)
15329 output_verbose_link_cmd='echo'
15330 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15331 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15332 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15333 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}'
15334 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}'
15335 ;;
15336 *)
15337 ld_shlibs_F77=no
15338 ;;
15339 esac
15340 fi
15341 ;;
15342
15343 dgux*)
15344 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15345 hardcode_libdir_flag_spec_F77='-L$libdir'
15346 hardcode_shlibpath_var_F77=no
15347 ;;
15348
15349 freebsd1*)
15350 ld_shlibs_F77=no
15351 ;;
15352
15353 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15354 # support. Future versions do this automatically, but an explicit c++rt0.o
15355 # does not break anything, and helps significantly (at the cost of a little
15356 # extra space).
15357 freebsd2.2*)
15358 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15359 hardcode_libdir_flag_spec_F77='-R$libdir'
15360 hardcode_direct_F77=yes
15361 hardcode_shlibpath_var_F77=no
15362 ;;
15363
15364 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15365 freebsd2*)
15366 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15367 hardcode_direct_F77=yes
15368 hardcode_minus_L_F77=yes
15369 hardcode_shlibpath_var_F77=no
15370 ;;
15371
15372 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15373 freebsd* | dragonfly*)
15374 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15375 hardcode_libdir_flag_spec_F77='-R$libdir'
15376 hardcode_direct_F77=yes
15377 hardcode_shlibpath_var_F77=no
15378 ;;
15379
15380 hpux9*)
15381 if test "$GCC" = yes; then
15382 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'
15383 else
15384 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'
15385 fi
15386 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15387 hardcode_libdir_separator_F77=:
15388 hardcode_direct_F77=yes
15389
15390 # hardcode_minus_L: Not really in the search PATH,
15391 # but as the default location of the library.
15392 hardcode_minus_L_F77=yes
15393 export_dynamic_flag_spec_F77='${wl}-E'
15394 ;;
15395
15396 hpux10*)
15397 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15398 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15399 else
15400 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15401 fi
15402 if test "$with_gnu_ld" = no; then
15403 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15404 hardcode_libdir_separator_F77=:
15405
15406 hardcode_direct_F77=yes
15407 export_dynamic_flag_spec_F77='${wl}-E'
15408
15409 # hardcode_minus_L: Not really in the search PATH,
15410 # but as the default location of the library.
15411 hardcode_minus_L_F77=yes
15412 fi
15413 ;;
15414
15415 hpux11*)
15416 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15417 case $host_cpu in
15418 hppa*64*)
15419 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15420 ;;
15421 ia64*)
15422 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15423 ;;
15424 *)
15425 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15426 ;;
15427 esac
15428 else
15429 case $host_cpu in
15430 hppa*64*)
15431 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15432 ;;
15433 ia64*)
15434 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15435 ;;
15436 *)
15437 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15438 ;;
15439 esac
15440 fi
15441 if test "$with_gnu_ld" = no; then
15442 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15443 hardcode_libdir_separator_F77=:
15444
15445 case $host_cpu in
15446 hppa*64*|ia64*)
15447 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15448 hardcode_direct_F77=no
15449 hardcode_shlibpath_var_F77=no
15450 ;;
15451 *)
15452 hardcode_direct_F77=yes
15453 export_dynamic_flag_spec_F77='${wl}-E'
15454
15455 # hardcode_minus_L: Not really in the search PATH,
15456 # but as the default location of the library.
15457 hardcode_minus_L_F77=yes
15458 ;;
15459 esac
15460 fi
15461 ;;
15462
15463 irix5* | irix6* | nonstopux*)
15464 if test "$GCC" = yes; then
15465 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'
15466 else
15467 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'
15468 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15469 fi
15470 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15471 hardcode_libdir_separator_F77=:
15472 link_all_deplibs_F77=yes
15473 ;;
15474
15475 netbsd*)
15476 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15477 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15478 else
15479 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15480 fi
15481 hardcode_libdir_flag_spec_F77='-R$libdir'
15482 hardcode_direct_F77=yes
15483 hardcode_shlibpath_var_F77=no
15484 ;;
15485
15486 newsos6)
15487 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15488 hardcode_direct_F77=yes
15489 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15490 hardcode_libdir_separator_F77=:
15491 hardcode_shlibpath_var_F77=no
15492 ;;
15493
15494 openbsd*)
15495 if test -f /usr/libexec/ld.so; then
15496 hardcode_direct_F77=yes
15497 hardcode_shlibpath_var_F77=no
15498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15499 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15500 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15501 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15502 export_dynamic_flag_spec_F77='${wl}-E'
15503 else
15504 case $host_os in
15505 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15506 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15507 hardcode_libdir_flag_spec_F77='-R$libdir'
15508 ;;
15509 *)
15510 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15511 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15512 ;;
15513 esac
15514 fi
15515 else
15516 ld_shlibs_F77=no
15517 fi
15518 ;;
15519
15520 os2*)
15521 hardcode_libdir_flag_spec_F77='-L$libdir'
15522 hardcode_minus_L_F77=yes
15523 allow_undefined_flag_F77=unsupported
15524 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'
15525 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15526 ;;
15527
15528 osf3*)
15529 if test "$GCC" = yes; then
15530 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15531 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'
15532 else
15533 allow_undefined_flag_F77=' -expect_unresolved \*'
15534 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'
15535 fi
15536 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15537 hardcode_libdir_separator_F77=:
15538 ;;
15539
15540 osf4* | osf5*) # as osf3* with the addition of -msym flag
15541 if test "$GCC" = yes; then
15542 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15543 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'
15544 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15545 else
15546 allow_undefined_flag_F77=' -expect_unresolved \*'
15547 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'
15548 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~
15549 $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'
15550
15551 # Both c and cxx compiler support -rpath directly
15552 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15553 fi
15554 hardcode_libdir_separator_F77=:
15555 ;;
15556
15557 solaris*)
15558 no_undefined_flag_F77=' -z text'
15559 if test "$GCC" = yes; then
15560 wlarc='${wl}'
15561 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15562 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15563 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15564 else
15565 wlarc=''
15566 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15567 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15568 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15569 fi
15570 hardcode_libdir_flag_spec_F77='-R$libdir'
15571 hardcode_shlibpath_var_F77=no
15572 case $host_os in
15573 solaris2.[0-5] | solaris2.[0-5].*) ;;
15574 *)
15575 # The compiler driver will combine and reorder linker options,
15576 # but understands `-z linker_flag'. GCC discards it without `$wl',
15577 # but is careful enough not to reorder.
15578 # Supported since Solaris 2.6 (maybe 2.5.1?)
15579 if test "$GCC" = yes; then
15580 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15581 else
15582 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15583 fi
15584 ;;
15585 esac
15586 link_all_deplibs_F77=yes
15587 ;;
15588
15589 sunos4*)
15590 if test "x$host_vendor" = xsequent; then
15591 # Use $CC to link under sequent, because it throws in some extra .o
15592 # files that make .init and .fini sections work.
15593 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15594 else
15595 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15596 fi
15597 hardcode_libdir_flag_spec_F77='-L$libdir'
15598 hardcode_direct_F77=yes
15599 hardcode_minus_L_F77=yes
15600 hardcode_shlibpath_var_F77=no
15601 ;;
15602
15603 sysv4)
15604 case $host_vendor in
15605 sni)
15606 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15607 hardcode_direct_F77=yes # is this really true???
15608 ;;
15609 siemens)
15610 ## LD is ld it makes a PLAMLIB
15611 ## CC just makes a GrossModule.
15612 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15613 reload_cmds_F77='$CC -r -o $output$reload_objs'
15614 hardcode_direct_F77=no
15615 ;;
15616 motorola)
15617 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15618 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15619 ;;
15620 esac
15621 runpath_var='LD_RUN_PATH'
15622 hardcode_shlibpath_var_F77=no
15623 ;;
15624
15625 sysv4.3*)
15626 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15627 hardcode_shlibpath_var_F77=no
15628 export_dynamic_flag_spec_F77='-Bexport'
15629 ;;
15630
15631 sysv4*MP*)
15632 if test -d /usr/nec; then
15633 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15634 hardcode_shlibpath_var_F77=no
15635 runpath_var=LD_RUN_PATH
15636 hardcode_runpath_var=yes
15637 ld_shlibs_F77=yes
15638 fi
15639 ;;
15640
15641 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15642 no_undefined_flag_F77='${wl}-z,text'
15643 archive_cmds_need_lc_F77=no
15644 hardcode_shlibpath_var_F77=no
15645 runpath_var='LD_RUN_PATH'
15646
15647 if test "$GCC" = yes; then
15648 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15649 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15650 else
15651 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15652 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15653 fi
15654 ;;
15655
15656 sysv5* | sco3.2v5* | sco5v6*)
15657 # Note: We can NOT use -z defs as we might desire, because we do not
15658 # link with -lc, and that would cause any symbols used from libc to
15659 # always be unresolved, which means just about no library would
15660 # ever link correctly. If we're not using GNU ld we use -z text
15661 # though, which does catch some bad symbols but isn't as heavy-handed
15662 # as -z defs.
15663 no_undefined_flag_F77='${wl}-z,text'
15664 allow_undefined_flag_F77='${wl}-z,nodefs'
15665 archive_cmds_need_lc_F77=no
15666 hardcode_shlibpath_var_F77=no
15667 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15668 hardcode_libdir_separator_F77=':'
15669 link_all_deplibs_F77=yes
15670 export_dynamic_flag_spec_F77='${wl}-Bexport'
15671 runpath_var='LD_RUN_PATH'
15672
15673 if test "$GCC" = yes; then
15674 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15675 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15676 else
15677 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15678 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15679 fi
15680 ;;
15681
15682 uts4*)
15683 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15684 hardcode_libdir_flag_spec_F77='-L$libdir'
15685 hardcode_shlibpath_var_F77=no
15686 ;;
15687
15688 *)
15689 ld_shlibs_F77=no
15690 ;;
15691 esac
15692 fi
15693
15694 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15695 $as_echo "$ld_shlibs_F77" >&6; }
15696 test "$ld_shlibs_F77" = no && can_build_shared=no
15697
15698 #
15699 # Do we need to explicitly link libc?
15700 #
15701 case "x$archive_cmds_need_lc_F77" in
15702 x|xyes)
15703 # Assume -lc should be added
15704 archive_cmds_need_lc_F77=yes
15705
15706 if test "$enable_shared" = yes && test "$GCC" = yes; then
15707 case $archive_cmds_F77 in
15708 *'~'*)
15709 # FIXME: we may have to deal with multi-command sequences.
15710 ;;
15711 '$CC '*)
15712 # Test whether the compiler implicitly links with -lc since on some
15713 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15714 # to ld, don't add -lc before -lgcc.
15715 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15716 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15717 $rm conftest*
15718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15719
15720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15721 (eval $ac_compile) 2>&5
15722 ac_status=$?
15723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } 2>conftest.err; then
15725 soname=conftest
15726 lib=conftest
15727 libobjs=conftest.$ac_objext
15728 deplibs=
15729 wl=$lt_prog_compiler_wl_F77
15730 pic_flag=$lt_prog_compiler_pic_F77
15731 compiler_flags=-v
15732 linker_flags=-v
15733 verstring=
15734 output_objdir=.
15735 libname=conftest
15736 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15737 allow_undefined_flag_F77=
15738 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15739 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15740 ac_status=$?
15741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }
15743 then
15744 archive_cmds_need_lc_F77=no
15745 else
15746 archive_cmds_need_lc_F77=yes
15747 fi
15748 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15749 else
15750 cat conftest.err 1>&5
15751 fi
15752 $rm conftest*
15753 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15754 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15755 ;;
15756 esac
15757 fi
15758 ;;
15759 esac
15760
15761 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15762 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15763 library_names_spec=
15764 libname_spec='lib$name'
15765 soname_spec=
15766 shrext_cmds=".so"
15767 postinstall_cmds=
15768 postuninstall_cmds=
15769 finish_cmds=
15770 finish_eval=
15771 shlibpath_var=
15772 shlibpath_overrides_runpath=unknown
15773 version_type=none
15774 dynamic_linker="$host_os ld.so"
15775 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15776
15777 need_lib_prefix=unknown
15778 hardcode_into_libs=no
15779
15780 # when you set need_version to no, make sure it does not cause -set_version
15781 # flags to be left without arguments
15782 need_version=unknown
15783
15784 case $host_os in
15785 aix3*)
15786 version_type=linux
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15788 shlibpath_var=LIBPATH
15789
15790 # AIX 3 has no versioning support, so we append a major version to the name.
15791 soname_spec='${libname}${release}${shared_ext}$major'
15792 ;;
15793
15794 aix[4-9]*)
15795 version_type=linux
15796 need_lib_prefix=no
15797 need_version=no
15798 hardcode_into_libs=yes
15799 if test "$host_cpu" = ia64; then
15800 # AIX 5 supports IA64
15801 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15802 shlibpath_var=LD_LIBRARY_PATH
15803 else
15804 # With GCC up to 2.95.x, collect2 would create an import file
15805 # for dependence libraries. The import file would start with
15806 # the line `#! .'. This would cause the generated library to
15807 # depend on `.', always an invalid library. This was fixed in
15808 # development snapshots of GCC prior to 3.0.
15809 case $host_os in
15810 aix4 | aix4.[01] | aix4.[01].*)
15811 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15812 echo ' yes '
15813 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15814 :
15815 else
15816 can_build_shared=no
15817 fi
15818 ;;
15819 esac
15820 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15821 # soname into executable. Probably we can add versioning support to
15822 # collect2, so additional links can be useful in future.
15823 if test "$aix_use_runtimelinking" = yes; then
15824 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15825 # instead of lib<name>.a to let people know that these are not
15826 # typical AIX shared libraries.
15827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15828 else
15829 # We preserve .a as extension for shared libraries through AIX4.2
15830 # and later when we are not doing run time linking.
15831 library_names_spec='${libname}${release}.a $libname.a'
15832 soname_spec='${libname}${release}${shared_ext}$major'
15833 fi
15834 shlibpath_var=LIBPATH
15835 fi
15836 ;;
15837
15838 amigaos*)
15839 library_names_spec='$libname.ixlibrary $libname.a'
15840 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15841 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'
15842 ;;
15843
15844 beos*)
15845 library_names_spec='${libname}${shared_ext}'
15846 dynamic_linker="$host_os ld.so"
15847 shlibpath_var=LIBRARY_PATH
15848 ;;
15849
15850 bsdi[45]*)
15851 version_type=linux
15852 need_version=no
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854 soname_spec='${libname}${release}${shared_ext}$major'
15855 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15856 shlibpath_var=LD_LIBRARY_PATH
15857 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15858 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15859 # the default ld.so.conf also contains /usr/contrib/lib and
15860 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15861 # libtool to hard-code these into programs
15862 ;;
15863
15864 cygwin* | mingw* | pw32*)
15865 version_type=windows
15866 shrext_cmds=".dll"
15867 need_version=no
15868 need_lib_prefix=no
15869
15870 case $GCC,$host_os in
15871 yes,cygwin* | yes,mingw* | yes,pw32*)
15872 library_names_spec='$libname.dll.a'
15873 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15874 postinstall_cmds='base_file=`basename \${file}`~
15875 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15876 dldir=$destdir/`dirname \$dlpath`~
15877 test -d \$dldir || mkdir -p \$dldir~
15878 $install_prog $dir/$dlname \$dldir/$dlname~
15879 chmod a+x \$dldir/$dlname'
15880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15881 dlpath=$dir/\$dldll~
15882 $rm \$dlpath'
15883 shlibpath_overrides_runpath=yes
15884
15885 case $host_os in
15886 cygwin*)
15887 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15888 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15889 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15890 ;;
15891 mingw*)
15892 # MinGW DLLs use traditional 'lib' prefix
15893 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15894 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15895 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15896 # It is most probably a Windows format PATH printed by
15897 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15898 # path with ; separators, and with drive letters. We can handle the
15899 # drive letters (cygwin fileutils understands them), so leave them,
15900 # especially as we might pass files found there to a mingw objdump,
15901 # which wouldn't understand a cygwinified path. Ahh.
15902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15903 else
15904 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15905 fi
15906 ;;
15907 pw32*)
15908 # pw32 DLLs use 'pw' prefix rather than 'lib'
15909 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15910 ;;
15911 esac
15912 ;;
15913
15914 *)
15915 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15916 ;;
15917 esac
15918 dynamic_linker='Win32 ld.exe'
15919 # FIXME: first we should search . and the directory the executable is in
15920 shlibpath_var=PATH
15921 ;;
15922
15923 darwin* | rhapsody*)
15924 dynamic_linker="$host_os dyld"
15925 version_type=darwin
15926 need_lib_prefix=no
15927 need_version=no
15928 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15929 soname_spec='${libname}${release}${major}$shared_ext'
15930 shlibpath_overrides_runpath=yes
15931 shlibpath_var=DYLD_LIBRARY_PATH
15932 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15933
15934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15935 ;;
15936
15937 dgux*)
15938 version_type=linux
15939 need_lib_prefix=no
15940 need_version=no
15941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15942 soname_spec='${libname}${release}${shared_ext}$major'
15943 shlibpath_var=LD_LIBRARY_PATH
15944 ;;
15945
15946 freebsd1*)
15947 dynamic_linker=no
15948 ;;
15949
15950 freebsd* | dragonfly*)
15951 # DragonFly does not have aout. When/if they implement a new
15952 # versioning mechanism, adjust this.
15953 if test -x /usr/bin/objformat; then
15954 objformat=`/usr/bin/objformat`
15955 else
15956 case $host_os in
15957 freebsd[123]*) objformat=aout ;;
15958 *) objformat=elf ;;
15959 esac
15960 fi
15961 version_type=freebsd-$objformat
15962 case $version_type in
15963 freebsd-elf*)
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15965 need_version=no
15966 need_lib_prefix=no
15967 ;;
15968 freebsd-*)
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15970 need_version=yes
15971 ;;
15972 esac
15973 shlibpath_var=LD_LIBRARY_PATH
15974 case $host_os in
15975 freebsd2*)
15976 shlibpath_overrides_runpath=yes
15977 ;;
15978 freebsd3.[01]* | freebsdelf3.[01]*)
15979 shlibpath_overrides_runpath=yes
15980 hardcode_into_libs=yes
15981 ;;
15982 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15983 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15984 shlibpath_overrides_runpath=no
15985 hardcode_into_libs=yes
15986 ;;
15987 *) # from 4.6 on, and DragonFly
15988 shlibpath_overrides_runpath=yes
15989 hardcode_into_libs=yes
15990 ;;
15991 esac
15992 ;;
15993
15994 gnu*)
15995 version_type=linux
15996 need_lib_prefix=no
15997 need_version=no
15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15999 soname_spec='${libname}${release}${shared_ext}$major'
16000 shlibpath_var=LD_LIBRARY_PATH
16001 hardcode_into_libs=yes
16002 ;;
16003
16004 hpux9* | hpux10* | hpux11*)
16005 # Give a soname corresponding to the major version so that dld.sl refuses to
16006 # link against other versions.
16007 version_type=sunos
16008 need_lib_prefix=no
16009 need_version=no
16010 case $host_cpu in
16011 ia64*)
16012 shrext_cmds='.so'
16013 hardcode_into_libs=yes
16014 dynamic_linker="$host_os dld.so"
16015 shlibpath_var=LD_LIBRARY_PATH
16016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16018 soname_spec='${libname}${release}${shared_ext}$major'
16019 if test "X$HPUX_IA64_MODE" = X32; then
16020 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16021 else
16022 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16023 fi
16024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16025 ;;
16026 hppa*64*)
16027 shrext_cmds='.sl'
16028 hardcode_into_libs=yes
16029 dynamic_linker="$host_os dld.sl"
16030 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16033 soname_spec='${libname}${release}${shared_ext}$major'
16034 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16036 ;;
16037 *)
16038 shrext_cmds='.sl'
16039 dynamic_linker="$host_os dld.sl"
16040 shlibpath_var=SHLIB_PATH
16041 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043 soname_spec='${libname}${release}${shared_ext}$major'
16044 ;;
16045 esac
16046 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16047 postinstall_cmds='chmod 555 $lib'
16048 ;;
16049
16050 interix[3-9]*)
16051 version_type=linux
16052 need_lib_prefix=no
16053 need_version=no
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16057 shlibpath_var=LD_LIBRARY_PATH
16058 shlibpath_overrides_runpath=no
16059 hardcode_into_libs=yes
16060 ;;
16061
16062 irix5* | irix6* | nonstopux*)
16063 case $host_os in
16064 nonstopux*) version_type=nonstopux ;;
16065 *)
16066 if test "$lt_cv_prog_gnu_ld" = yes; then
16067 version_type=linux
16068 else
16069 version_type=irix
16070 fi ;;
16071 esac
16072 need_lib_prefix=no
16073 need_version=no
16074 soname_spec='${libname}${release}${shared_ext}$major'
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16076 case $host_os in
16077 irix5* | nonstopux*)
16078 libsuff= shlibsuff=
16079 ;;
16080 *)
16081 case $LD in # libtool.m4 will add one of these switches to LD
16082 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16083 libsuff= shlibsuff= libmagic=32-bit;;
16084 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16085 libsuff=32 shlibsuff=N32 libmagic=N32;;
16086 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16087 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16088 *) libsuff= shlibsuff= libmagic=never-match;;
16089 esac
16090 ;;
16091 esac
16092 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16093 shlibpath_overrides_runpath=no
16094 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16095 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16096 hardcode_into_libs=yes
16097 ;;
16098
16099 # No shared lib support for Linux oldld, aout, or coff.
16100 linux*oldld* | linux*aout* | linux*coff*)
16101 dynamic_linker=no
16102 ;;
16103
16104 # This must be Linux ELF.
16105 linux* | k*bsd*-gnu)
16106 version_type=linux
16107 need_lib_prefix=no
16108 need_version=no
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16110 soname_spec='${libname}${release}${shared_ext}$major'
16111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16112 shlibpath_var=LD_LIBRARY_PATH
16113 shlibpath_overrides_runpath=no
16114 # This implies no fast_install, which is unacceptable.
16115 # Some rework will be needed to allow for fast_install
16116 # before this can be enabled.
16117 hardcode_into_libs=yes
16118
16119 # Append ld.so.conf contents to the search path
16120 if test -f /etc/ld.so.conf; then
16121 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' ' '`
16122 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16123 fi
16124
16125 # We used to test for /lib/ld.so.1 and disable shared libraries on
16126 # powerpc, because MkLinux only supported shared libraries with the
16127 # GNU dynamic linker. Since this was broken with cross compilers,
16128 # most powerpc-linux boxes support dynamic linking these days and
16129 # people can always --disable-shared, the test was removed, and we
16130 # assume the GNU/Linux dynamic linker is in use.
16131 dynamic_linker='GNU/Linux ld.so'
16132 ;;
16133
16134 netbsd*)
16135 version_type=sunos
16136 need_lib_prefix=no
16137 need_version=no
16138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16141 dynamic_linker='NetBSD (a.out) ld.so'
16142 else
16143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16144 soname_spec='${libname}${release}${shared_ext}$major'
16145 dynamic_linker='NetBSD ld.elf_so'
16146 fi
16147 shlibpath_var=LD_LIBRARY_PATH
16148 shlibpath_overrides_runpath=yes
16149 hardcode_into_libs=yes
16150 ;;
16151
16152 newsos6)
16153 version_type=linux
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155 shlibpath_var=LD_LIBRARY_PATH
16156 shlibpath_overrides_runpath=yes
16157 ;;
16158
16159 nto-qnx*)
16160 version_type=linux
16161 need_lib_prefix=no
16162 need_version=no
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164 soname_spec='${libname}${release}${shared_ext}$major'
16165 shlibpath_var=LD_LIBRARY_PATH
16166 shlibpath_overrides_runpath=yes
16167 ;;
16168
16169 openbsd*)
16170 version_type=sunos
16171 sys_lib_dlsearch_path_spec="/usr/lib"
16172 need_lib_prefix=no
16173 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16174 case $host_os in
16175 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16176 *) need_version=no ;;
16177 esac
16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16180 shlibpath_var=LD_LIBRARY_PATH
16181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16182 case $host_os in
16183 openbsd2.[89] | openbsd2.[89].*)
16184 shlibpath_overrides_runpath=no
16185 ;;
16186 *)
16187 shlibpath_overrides_runpath=yes
16188 ;;
16189 esac
16190 else
16191 shlibpath_overrides_runpath=yes
16192 fi
16193 ;;
16194
16195 os2*)
16196 libname_spec='$name'
16197 shrext_cmds=".dll"
16198 need_lib_prefix=no
16199 library_names_spec='$libname${shared_ext} $libname.a'
16200 dynamic_linker='OS/2 ld.exe'
16201 shlibpath_var=LIBPATH
16202 ;;
16203
16204 osf3* | osf4* | osf5*)
16205 version_type=osf
16206 need_lib_prefix=no
16207 need_version=no
16208 soname_spec='${libname}${release}${shared_ext}$major'
16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16210 shlibpath_var=LD_LIBRARY_PATH
16211 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16212 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16213 ;;
16214
16215 rdos*)
16216 dynamic_linker=no
16217 ;;
16218
16219 solaris*)
16220 version_type=linux
16221 need_lib_prefix=no
16222 need_version=no
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224 soname_spec='${libname}${release}${shared_ext}$major'
16225 shlibpath_var=LD_LIBRARY_PATH
16226 shlibpath_overrides_runpath=yes
16227 hardcode_into_libs=yes
16228 # ldd complains unless libraries are executable
16229 postinstall_cmds='chmod +x $lib'
16230 ;;
16231
16232 sunos4*)
16233 version_type=sunos
16234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16235 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16236 shlibpath_var=LD_LIBRARY_PATH
16237 shlibpath_overrides_runpath=yes
16238 if test "$with_gnu_ld" = yes; then
16239 need_lib_prefix=no
16240 fi
16241 need_version=yes
16242 ;;
16243
16244 sysv4 | sysv4.3*)
16245 version_type=linux
16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247 soname_spec='${libname}${release}${shared_ext}$major'
16248 shlibpath_var=LD_LIBRARY_PATH
16249 case $host_vendor in
16250 sni)
16251 shlibpath_overrides_runpath=no
16252 need_lib_prefix=no
16253 export_dynamic_flag_spec='${wl}-Blargedynsym'
16254 runpath_var=LD_RUN_PATH
16255 ;;
16256 siemens)
16257 need_lib_prefix=no
16258 ;;
16259 motorola)
16260 need_lib_prefix=no
16261 need_version=no
16262 shlibpath_overrides_runpath=no
16263 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16264 ;;
16265 esac
16266 ;;
16267
16268 sysv4*MP*)
16269 if test -d /usr/nec ;then
16270 version_type=linux
16271 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16272 soname_spec='$libname${shared_ext}.$major'
16273 shlibpath_var=LD_LIBRARY_PATH
16274 fi
16275 ;;
16276
16277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16278 version_type=freebsd-elf
16279 need_lib_prefix=no
16280 need_version=no
16281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16282 soname_spec='${libname}${release}${shared_ext}$major'
16283 shlibpath_var=LD_LIBRARY_PATH
16284 hardcode_into_libs=yes
16285 if test "$with_gnu_ld" = yes; then
16286 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16287 shlibpath_overrides_runpath=no
16288 else
16289 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16290 shlibpath_overrides_runpath=yes
16291 case $host_os in
16292 sco3.2v5*)
16293 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16294 ;;
16295 esac
16296 fi
16297 sys_lib_dlsearch_path_spec='/usr/lib'
16298 ;;
16299
16300 uts4*)
16301 version_type=linux
16302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16303 soname_spec='${libname}${release}${shared_ext}$major'
16304 shlibpath_var=LD_LIBRARY_PATH
16305 ;;
16306
16307 *)
16308 dynamic_linker=no
16309 ;;
16310 esac
16311 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16312 $as_echo "$dynamic_linker" >&6; }
16313 test "$dynamic_linker" = no && can_build_shared=no
16314
16315 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16316 $as_echo_n "(cached) " >&6
16317 else
16318 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16319 fi
16320
16321 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16322 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16323 $as_echo_n "(cached) " >&6
16324 else
16325 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16326 fi
16327
16328 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16329
16330 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16331 if test "$GCC" = yes; then
16332 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16333 fi
16334
16335 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16336 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16337 hardcode_action_F77=
16338 if test -n "$hardcode_libdir_flag_spec_F77" || \
16339 test -n "$runpath_var_F77" || \
16340 test "X$hardcode_automatic_F77" = "Xyes" ; then
16341
16342 # We can hardcode non-existant directories.
16343 if test "$hardcode_direct_F77" != no &&
16344 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16345 # have to relink, otherwise we might link with an installed library
16346 # when we should be linking with a yet-to-be-installed one
16347 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16348 test "$hardcode_minus_L_F77" != no; then
16349 # Linking always hardcodes the temporary library directory.
16350 hardcode_action_F77=relink
16351 else
16352 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16353 hardcode_action_F77=immediate
16354 fi
16355 else
16356 # We cannot hardcode anything, or else we can only hardcode existing
16357 # directories.
16358 hardcode_action_F77=unsupported
16359 fi
16360 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16361 $as_echo "$hardcode_action_F77" >&6; }
16362
16363 if test "$hardcode_action_F77" = relink; then
16364 # Fast installation is not supported
16365 enable_fast_install=no
16366 elif test "$shlibpath_overrides_runpath" = yes ||
16367 test "$enable_shared" = no; then
16368 # Fast installation is not necessary
16369 enable_fast_install=needless
16370 fi
16371
16372
16373 # The else clause should only fire when bootstrapping the
16374 # libtool distribution, otherwise you forgot to ship ltmain.sh
16375 # with your package, and you will get complaints that there are
16376 # no rules to generate ltmain.sh.
16377 if test -f "$ltmain"; then
16378 # See if we are running on zsh, and set the options which allow our commands through
16379 # without removal of \ escapes.
16380 if test -n "${ZSH_VERSION+set}" ; then
16381 setopt NO_GLOB_SUBST
16382 fi
16383 # Now quote all the things that may contain metacharacters while being
16384 # careful not to overquote the AC_SUBSTed values. We take copies of the
16385 # variables and quote the copies for generation of the libtool script.
16386 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16387 SED SHELL STRIP \
16388 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16389 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16390 deplibs_check_method reload_flag reload_cmds need_locks \
16391 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16392 lt_cv_sys_global_symbol_to_c_name_address \
16393 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16394 old_postinstall_cmds old_postuninstall_cmds \
16395 compiler_F77 \
16396 CC_F77 \
16397 LD_F77 \
16398 lt_prog_compiler_wl_F77 \
16399 lt_prog_compiler_pic_F77 \
16400 lt_prog_compiler_static_F77 \
16401 lt_prog_compiler_no_builtin_flag_F77 \
16402 export_dynamic_flag_spec_F77 \
16403 thread_safe_flag_spec_F77 \
16404 whole_archive_flag_spec_F77 \
16405 enable_shared_with_static_runtimes_F77 \
16406 old_archive_cmds_F77 \
16407 old_archive_from_new_cmds_F77 \
16408 predep_objects_F77 \
16409 postdep_objects_F77 \
16410 predeps_F77 \
16411 postdeps_F77 \
16412 compiler_lib_search_path_F77 \
16413 compiler_lib_search_dirs_F77 \
16414 archive_cmds_F77 \
16415 archive_expsym_cmds_F77 \
16416 postinstall_cmds_F77 \
16417 postuninstall_cmds_F77 \
16418 old_archive_from_expsyms_cmds_F77 \
16419 allow_undefined_flag_F77 \
16420 no_undefined_flag_F77 \
16421 export_symbols_cmds_F77 \
16422 hardcode_libdir_flag_spec_F77 \
16423 hardcode_libdir_flag_spec_ld_F77 \
16424 hardcode_libdir_separator_F77 \
16425 hardcode_automatic_F77 \
16426 module_cmds_F77 \
16427 module_expsym_cmds_F77 \
16428 lt_cv_prog_compiler_c_o_F77 \
16429 fix_srcfile_path_F77 \
16430 exclude_expsyms_F77 \
16431 include_expsyms_F77; do
16432
16433 case $var in
16434 old_archive_cmds_F77 | \
16435 old_archive_from_new_cmds_F77 | \
16436 archive_cmds_F77 | \
16437 archive_expsym_cmds_F77 | \
16438 module_cmds_F77 | \
16439 module_expsym_cmds_F77 | \
16440 old_archive_from_expsyms_cmds_F77 | \
16441 export_symbols_cmds_F77 | \
16442 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16443 postinstall_cmds | postuninstall_cmds | \
16444 old_postinstall_cmds | old_postuninstall_cmds | \
16445 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16446 # Double-quote double-evaled strings.
16447 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16448 ;;
16449 *)
16450 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16451 ;;
16452 esac
16453 done
16454
16455 case $lt_echo in
16456 *'\$0 --fallback-echo"')
16457 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16458 ;;
16459 esac
16460
16461 cfgfile="$ofile"
16462
16463 cat <<__EOF__ >> "$cfgfile"
16464 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16465
16466 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16467
16468 # Shell to use when invoking shell scripts.
16469 SHELL=$lt_SHELL
16470
16471 # Whether or not to build shared libraries.
16472 build_libtool_libs=$enable_shared
16473
16474 # Whether or not to build static libraries.
16475 build_old_libs=$enable_static
16476
16477 # Whether or not to add -lc for building shared libraries.
16478 build_libtool_need_lc=$archive_cmds_need_lc_F77
16479
16480 # Whether or not to disallow shared libs when runtime libs are static
16481 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16482
16483 # Whether or not to optimize for fast installation.
16484 fast_install=$enable_fast_install
16485
16486 # The host system.
16487 host_alias=$host_alias
16488 host=$host
16489 host_os=$host_os
16490
16491 # The build system.
16492 build_alias=$build_alias
16493 build=$build
16494 build_os=$build_os
16495
16496 # An echo program that does not interpret backslashes.
16497 echo=$lt_echo
16498
16499 # The archiver.
16500 AR=$lt_AR
16501 AR_FLAGS=$lt_AR_FLAGS
16502
16503 # A C compiler.
16504 LTCC=$lt_LTCC
16505
16506 # LTCC compiler flags.
16507 LTCFLAGS=$lt_LTCFLAGS
16508
16509 # A language-specific compiler.
16510 CC=$lt_compiler_F77
16511
16512 # Is the compiler the GNU C compiler?
16513 with_gcc=$GCC_F77
16514
16515 # An ERE matcher.
16516 EGREP=$lt_EGREP
16517
16518 # The linker used to build libraries.
16519 LD=$lt_LD_F77
16520
16521 # Whether we need hard or soft links.
16522 LN_S=$lt_LN_S
16523
16524 # A BSD-compatible nm program.
16525 NM=$lt_NM
16526
16527 # A symbol stripping program
16528 STRIP=$lt_STRIP
16529
16530 # Used to examine libraries when file_magic_cmd begins "file"
16531 MAGIC_CMD=$MAGIC_CMD
16532
16533 # Used on cygwin: DLL creation program.
16534 DLLTOOL="$DLLTOOL"
16535
16536 # Used on cygwin: object dumper.
16537 OBJDUMP="$OBJDUMP"
16538
16539 # Used on cygwin: assembler.
16540 AS="$AS"
16541
16542 # The name of the directory that contains temporary libtool files.
16543 objdir=$objdir
16544
16545 # How to create reloadable object files.
16546 reload_flag=$lt_reload_flag
16547 reload_cmds=$lt_reload_cmds
16548
16549 # How to pass a linker flag through the compiler.
16550 wl=$lt_lt_prog_compiler_wl_F77
16551
16552 # Object file suffix (normally "o").
16553 objext="$ac_objext"
16554
16555 # Old archive suffix (normally "a").
16556 libext="$libext"
16557
16558 # Shared library suffix (normally ".so").
16559 shrext_cmds='$shrext_cmds'
16560
16561 # Executable file suffix (normally "").
16562 exeext="$exeext"
16563
16564 # Additional compiler flags for building library objects.
16565 pic_flag=$lt_lt_prog_compiler_pic_F77
16566 pic_mode=$pic_mode
16567
16568 # What is the maximum length of a command?
16569 max_cmd_len=$lt_cv_sys_max_cmd_len
16570
16571 # Does compiler simultaneously support -c and -o options?
16572 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16573
16574 # Must we lock files when doing compilation?
16575 need_locks=$lt_need_locks
16576
16577 # Do we need the lib prefix for modules?
16578 need_lib_prefix=$need_lib_prefix
16579
16580 # Do we need a version for libraries?
16581 need_version=$need_version
16582
16583 # Whether dlopen is supported.
16584 dlopen_support=$enable_dlopen
16585
16586 # Whether dlopen of programs is supported.
16587 dlopen_self=$enable_dlopen_self
16588
16589 # Whether dlopen of statically linked programs is supported.
16590 dlopen_self_static=$enable_dlopen_self_static
16591
16592 # Compiler flag to prevent dynamic linking.
16593 link_static_flag=$lt_lt_prog_compiler_static_F77
16594
16595 # Compiler flag to turn off builtin functions.
16596 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16597
16598 # Compiler flag to allow reflexive dlopens.
16599 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16600
16601 # Compiler flag to generate shared objects directly from archives.
16602 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16603
16604 # Compiler flag to generate thread-safe objects.
16605 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16606
16607 # Library versioning type.
16608 version_type=$version_type
16609
16610 # Format of library name prefix.
16611 libname_spec=$lt_libname_spec
16612
16613 # List of archive names. First name is the real one, the rest are links.
16614 # The last name is the one that the linker finds with -lNAME.
16615 library_names_spec=$lt_library_names_spec
16616
16617 # The coded name of the library, if different from the real name.
16618 soname_spec=$lt_soname_spec
16619
16620 # Commands used to build and install an old-style archive.
16621 RANLIB=$lt_RANLIB
16622 old_archive_cmds=$lt_old_archive_cmds_F77
16623 old_postinstall_cmds=$lt_old_postinstall_cmds
16624 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16625
16626 # Create an old-style archive from a shared archive.
16627 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16628
16629 # Create a temporary old-style archive to link instead of a shared archive.
16630 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16631
16632 # Commands used to build and install a shared archive.
16633 archive_cmds=$lt_archive_cmds_F77
16634 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16635 postinstall_cmds=$lt_postinstall_cmds
16636 postuninstall_cmds=$lt_postuninstall_cmds
16637
16638 # Commands used to build a loadable module (assumed same as above if empty)
16639 module_cmds=$lt_module_cmds_F77
16640 module_expsym_cmds=$lt_module_expsym_cmds_F77
16641
16642 # Commands to strip libraries.
16643 old_striplib=$lt_old_striplib
16644 striplib=$lt_striplib
16645
16646 # Dependencies to place before the objects being linked to create a
16647 # shared library.
16648 predep_objects=$lt_predep_objects_F77
16649
16650 # Dependencies to place after the objects being linked to create a
16651 # shared library.
16652 postdep_objects=$lt_postdep_objects_F77
16653
16654 # Dependencies to place before the objects being linked to create a
16655 # shared library.
16656 predeps=$lt_predeps_F77
16657
16658 # Dependencies to place after the objects being linked to create a
16659 # shared library.
16660 postdeps=$lt_postdeps_F77
16661
16662 # The directories searched by this compiler when creating a shared
16663 # library
16664 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16665
16666 # The library search path used internally by the compiler when linking
16667 # a shared library.
16668 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16669
16670 # Method to check whether dependent libraries are shared objects.
16671 deplibs_check_method=$lt_deplibs_check_method
16672
16673 # Command to use when deplibs_check_method == file_magic.
16674 file_magic_cmd=$lt_file_magic_cmd
16675
16676 # Flag that allows shared libraries with undefined symbols to be built.
16677 allow_undefined_flag=$lt_allow_undefined_flag_F77
16678
16679 # Flag that forces no undefined symbols.
16680 no_undefined_flag=$lt_no_undefined_flag_F77
16681
16682 # Commands used to finish a libtool library installation in a directory.
16683 finish_cmds=$lt_finish_cmds
16684
16685 # Same as above, but a single script fragment to be evaled but not shown.
16686 finish_eval=$lt_finish_eval
16687
16688 # Take the output of nm and produce a listing of raw symbols and C names.
16689 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16690
16691 # Transform the output of nm in a proper C declaration
16692 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16693
16694 # Transform the output of nm in a C name address pair
16695 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16696
16697 # This is the shared library runtime path variable.
16698 runpath_var=$runpath_var
16699
16700 # This is the shared library path variable.
16701 shlibpath_var=$shlibpath_var
16702
16703 # Is shlibpath searched before the hard-coded library search path?
16704 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16705
16706 # How to hardcode a shared library path into an executable.
16707 hardcode_action=$hardcode_action_F77
16708
16709 # Whether we should hardcode library paths into libraries.
16710 hardcode_into_libs=$hardcode_into_libs
16711
16712 # Flag to hardcode \$libdir into a binary during linking.
16713 # This must work even if \$libdir does not exist.
16714 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16715
16716 # If ld is used when linking, flag to hardcode \$libdir into
16717 # a binary during linking. This must work even if \$libdir does
16718 # not exist.
16719 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16720
16721 # Whether we need a single -rpath flag with a separated argument.
16722 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16723
16724 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16725 # resulting binary.
16726 hardcode_direct=$hardcode_direct_F77
16727
16728 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16729 # resulting binary.
16730 hardcode_minus_L=$hardcode_minus_L_F77
16731
16732 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16733 # the resulting binary.
16734 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16735
16736 # Set to yes if building a shared library automatically hardcodes DIR into the library
16737 # and all subsequent libraries and executables linked against it.
16738 hardcode_automatic=$hardcode_automatic_F77
16739
16740 # Variables whose values should be saved in libtool wrapper scripts and
16741 # restored at relink time.
16742 variables_saved_for_relink="$variables_saved_for_relink"
16743
16744 # Whether libtool must link a program against all its dependency libraries.
16745 link_all_deplibs=$link_all_deplibs_F77
16746
16747 # Compile-time system search path for libraries
16748 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16749
16750 # Run-time system search path for libraries
16751 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16752
16753 # Fix the shell variable \$srcfile for the compiler.
16754 fix_srcfile_path=$lt_fix_srcfile_path
16755
16756 # Set to yes if exported symbols are required.
16757 always_export_symbols=$always_export_symbols_F77
16758
16759 # The commands to list exported symbols.
16760 export_symbols_cmds=$lt_export_symbols_cmds_F77
16761
16762 # The commands to extract the exported symbol list from a shared archive.
16763 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16764
16765 # Symbols that should not be listed in the preloaded symbols.
16766 exclude_expsyms=$lt_exclude_expsyms_F77
16767
16768 # Symbols that must always be exported.
16769 include_expsyms=$lt_include_expsyms_F77
16770
16771 # ### END LIBTOOL TAG CONFIG: $tagname
16772
16773 __EOF__
16774
16775
16776 else
16777 # If there is no Makefile yet, we rely on a make rule to execute
16778 # `config.status --recheck' to rerun these tests and create the
16779 # libtool script then.
16780 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16781 if test -f "$ltmain_in"; then
16782 test -f Makefile && make "$ltmain"
16783 fi
16784 fi
16785
16786
16787 ac_ext=c
16788 ac_cpp='$CPP $CPPFLAGS'
16789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16792
16793 CC="$lt_save_CC"
16794
16795 else
16796 tagname=""
16797 fi
16798 ;;
16799
16800 GCJ)
16801 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16802
16803
16804 # Source file extension for Java test sources.
16805 ac_ext=java
16806
16807 # Object file extension for compiled Java test sources.
16808 objext=o
16809 objext_GCJ=$objext
16810
16811 # Code to be used in simple compile tests
16812 lt_simple_compile_test_code="class foo {}"
16813
16814 # Code to be used in simple link tests
16815 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16816
16817 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16818
16819 # If no C compiler was specified, use CC.
16820 LTCC=${LTCC-"$CC"}
16821
16822 # If no C compiler flags were specified, use CFLAGS.
16823 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16824
16825 # Allow CC to be a program name with arguments.
16826 compiler=$CC
16827
16828
16829 # save warnings/boilerplate of simple test code
16830 ac_outfile=conftest.$ac_objext
16831 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16832 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16833 _lt_compiler_boilerplate=`cat conftest.err`
16834 $rm conftest*
16835
16836 ac_outfile=conftest.$ac_objext
16837 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16838 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16839 _lt_linker_boilerplate=`cat conftest.err`
16840 $rm -r conftest*
16841
16842
16843 # Allow CC to be a program name with arguments.
16844 lt_save_CC="$CC"
16845 CC=${GCJ-"gcj"}
16846 compiler=$CC
16847 compiler_GCJ=$CC
16848 for cc_temp in $compiler""; do
16849 case $cc_temp in
16850 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16851 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16852 \-*) ;;
16853 *) break;;
16854 esac
16855 done
16856 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16857
16858
16859 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16860 archive_cmds_need_lc_GCJ=no
16861
16862 old_archive_cmds_GCJ=$old_archive_cmds
16863
16864
16865 lt_prog_compiler_no_builtin_flag_GCJ=
16866
16867 if test "$GCC" = yes; then
16868 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16869
16870
16871 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16872 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16873 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16874 $as_echo_n "(cached) " >&6
16875 else
16876 lt_cv_prog_compiler_rtti_exceptions=no
16877 ac_outfile=conftest.$ac_objext
16878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16879 lt_compiler_flag="-fno-rtti -fno-exceptions"
16880 # Insert the option either (1) after the last *FLAGS variable, or
16881 # (2) before a word containing "conftest.", or (3) at the end.
16882 # Note that $ac_compile itself does not contain backslashes and begins
16883 # with a dollar sign (not a hyphen), so the echo should work correctly.
16884 # The option is referenced via a variable to avoid confusing sed.
16885 lt_compile=`echo "$ac_compile" | $SED \
16886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16888 -e 's:$: $lt_compiler_flag:'`
16889 (eval echo "\"\$as_me:16889: $lt_compile\"" >&5)
16890 (eval "$lt_compile" 2>conftest.err)
16891 ac_status=$?
16892 cat conftest.err >&5
16893 echo "$as_me:16893: \$? = $ac_status" >&5
16894 if (exit $ac_status) && test -s "$ac_outfile"; then
16895 # The compiler can only warn and ignore the option if not recognized
16896 # So say no if there are warnings other than the usual output.
16897 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16900 lt_cv_prog_compiler_rtti_exceptions=yes
16901 fi
16902 fi
16903 $rm conftest*
16904
16905 fi
16906 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16907 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16908
16909 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16910 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16911 else
16912 :
16913 fi
16914
16915 fi
16916
16917 lt_prog_compiler_wl_GCJ=
16918 lt_prog_compiler_pic_GCJ=
16919 lt_prog_compiler_static_GCJ=
16920
16921 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16922 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16923
16924 if test "$GCC" = yes; then
16925 lt_prog_compiler_wl_GCJ='-Wl,'
16926 lt_prog_compiler_static_GCJ='-static'
16927
16928 case $host_os in
16929 aix*)
16930 # All AIX code is PIC.
16931 if test "$host_cpu" = ia64; then
16932 # AIX 5 now supports IA64 processor
16933 lt_prog_compiler_static_GCJ='-Bstatic'
16934 fi
16935 ;;
16936
16937 amigaos*)
16938 # FIXME: we need at least 68020 code to build shared libraries, but
16939 # adding the `-m68020' flag to GCC prevents building anything better,
16940 # like `-m68040'.
16941 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16942 ;;
16943
16944 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16945 # PIC is the default for these OSes.
16946 ;;
16947
16948 mingw* | cygwin* | pw32* | os2*)
16949 # This hack is so that the source file can tell whether it is being
16950 # built for inclusion in a dll (and should export symbols for example).
16951 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16952 # (--disable-auto-import) libraries
16953
16954 ;;
16955
16956 darwin* | rhapsody*)
16957 # PIC is the default on this platform
16958 # Common symbols not allowed in MH_DYLIB files
16959 lt_prog_compiler_pic_GCJ='-fno-common'
16960 ;;
16961
16962 interix[3-9]*)
16963 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16964 # Instead, we relocate shared libraries at runtime.
16965 ;;
16966
16967 msdosdjgpp*)
16968 # Just because we use GCC doesn't mean we suddenly get shared libraries
16969 # on systems that don't support them.
16970 lt_prog_compiler_can_build_shared_GCJ=no
16971 enable_shared=no
16972 ;;
16973
16974 sysv4*MP*)
16975 if test -d /usr/nec; then
16976 lt_prog_compiler_pic_GCJ=-Kconform_pic
16977 fi
16978 ;;
16979
16980 hpux*)
16981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16982 # not for PA HP-UX.
16983 case $host_cpu in
16984 hppa*64*|ia64*)
16985 # +Z the default
16986 ;;
16987 *)
16988 lt_prog_compiler_pic_GCJ='-fPIC'
16989 ;;
16990 esac
16991 ;;
16992
16993 *)
16994 lt_prog_compiler_pic_GCJ='-fPIC'
16995 ;;
16996 esac
16997 else
16998 # PORTME Check for flag to pass linker flags through the system compiler.
16999 case $host_os in
17000 aix*)
17001 lt_prog_compiler_wl_GCJ='-Wl,'
17002 if test "$host_cpu" = ia64; then
17003 # AIX 5 now supports IA64 processor
17004 lt_prog_compiler_static_GCJ='-Bstatic'
17005 else
17006 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17007 fi
17008 ;;
17009 darwin*)
17010 # PIC is the default on this platform
17011 # Common symbols not allowed in MH_DYLIB files
17012 case $cc_basename in
17013 xlc*)
17014 lt_prog_compiler_pic_GCJ='-qnocommon'
17015 lt_prog_compiler_wl_GCJ='-Wl,'
17016 ;;
17017 esac
17018 ;;
17019
17020 mingw* | cygwin* | pw32* | os2*)
17021 # This hack is so that the source file can tell whether it is being
17022 # built for inclusion in a dll (and should export symbols for example).
17023
17024 ;;
17025
17026 hpux9* | hpux10* | hpux11*)
17027 lt_prog_compiler_wl_GCJ='-Wl,'
17028 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17029 # not for PA HP-UX.
17030 case $host_cpu in
17031 hppa*64*|ia64*)
17032 # +Z the default
17033 ;;
17034 *)
17035 lt_prog_compiler_pic_GCJ='+Z'
17036 ;;
17037 esac
17038 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17039 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17040 ;;
17041
17042 irix5* | irix6* | nonstopux*)
17043 lt_prog_compiler_wl_GCJ='-Wl,'
17044 # PIC (with -KPIC) is the default.
17045 lt_prog_compiler_static_GCJ='-non_shared'
17046 ;;
17047
17048 newsos6)
17049 lt_prog_compiler_pic_GCJ='-KPIC'
17050 lt_prog_compiler_static_GCJ='-Bstatic'
17051 ;;
17052
17053 linux* | k*bsd*-gnu)
17054 case $cc_basename in
17055 icc* | ecc*)
17056 lt_prog_compiler_wl_GCJ='-Wl,'
17057 lt_prog_compiler_pic_GCJ='-KPIC'
17058 lt_prog_compiler_static_GCJ='-static'
17059 ;;
17060 pgcc* | pgf77* | pgf90* | pgf95*)
17061 # Portland Group compilers (*not* the Pentium gcc compiler,
17062 # which looks to be a dead project)
17063 lt_prog_compiler_wl_GCJ='-Wl,'
17064 lt_prog_compiler_pic_GCJ='-fpic'
17065 lt_prog_compiler_static_GCJ='-Bstatic'
17066 ;;
17067 ccc*)
17068 lt_prog_compiler_wl_GCJ='-Wl,'
17069 # All Alpha code is PIC.
17070 lt_prog_compiler_static_GCJ='-non_shared'
17071 ;;
17072 *)
17073 case `$CC -V 2>&1 | sed 5q` in
17074 *Sun\ C*)
17075 # Sun C 5.9
17076 lt_prog_compiler_pic_GCJ='-KPIC'
17077 lt_prog_compiler_static_GCJ='-Bstatic'
17078 lt_prog_compiler_wl_GCJ='-Wl,'
17079 ;;
17080 *Sun\ F*)
17081 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17082 lt_prog_compiler_pic_GCJ='-KPIC'
17083 lt_prog_compiler_static_GCJ='-Bstatic'
17084 lt_prog_compiler_wl_GCJ=''
17085 ;;
17086 esac
17087 ;;
17088 esac
17089 ;;
17090
17091 osf3* | osf4* | osf5*)
17092 lt_prog_compiler_wl_GCJ='-Wl,'
17093 # All OSF/1 code is PIC.
17094 lt_prog_compiler_static_GCJ='-non_shared'
17095 ;;
17096
17097 rdos*)
17098 lt_prog_compiler_static_GCJ='-non_shared'
17099 ;;
17100
17101 solaris*)
17102 lt_prog_compiler_pic_GCJ='-KPIC'
17103 lt_prog_compiler_static_GCJ='-Bstatic'
17104 case $cc_basename in
17105 f77* | f90* | f95*)
17106 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17107 *)
17108 lt_prog_compiler_wl_GCJ='-Wl,';;
17109 esac
17110 ;;
17111
17112 sunos4*)
17113 lt_prog_compiler_wl_GCJ='-Qoption ld '
17114 lt_prog_compiler_pic_GCJ='-PIC'
17115 lt_prog_compiler_static_GCJ='-Bstatic'
17116 ;;
17117
17118 sysv4 | sysv4.2uw2* | sysv4.3*)
17119 lt_prog_compiler_wl_GCJ='-Wl,'
17120 lt_prog_compiler_pic_GCJ='-KPIC'
17121 lt_prog_compiler_static_GCJ='-Bstatic'
17122 ;;
17123
17124 sysv4*MP*)
17125 if test -d /usr/nec ;then
17126 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17127 lt_prog_compiler_static_GCJ='-Bstatic'
17128 fi
17129 ;;
17130
17131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17132 lt_prog_compiler_wl_GCJ='-Wl,'
17133 lt_prog_compiler_pic_GCJ='-KPIC'
17134 lt_prog_compiler_static_GCJ='-Bstatic'
17135 ;;
17136
17137 unicos*)
17138 lt_prog_compiler_wl_GCJ='-Wl,'
17139 lt_prog_compiler_can_build_shared_GCJ=no
17140 ;;
17141
17142 uts4*)
17143 lt_prog_compiler_pic_GCJ='-pic'
17144 lt_prog_compiler_static_GCJ='-Bstatic'
17145 ;;
17146
17147 *)
17148 lt_prog_compiler_can_build_shared_GCJ=no
17149 ;;
17150 esac
17151 fi
17152
17153 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17154 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17155
17156 #
17157 # Check to make sure the PIC flag actually works.
17158 #
17159 if test -n "$lt_prog_compiler_pic_GCJ"; then
17160
17161 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17162 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17163 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17164 $as_echo_n "(cached) " >&6
17165 else
17166 lt_cv_prog_compiler_pic_works_GCJ=no
17167 ac_outfile=conftest.$ac_objext
17168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17169 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17170 # Insert the option either (1) after the last *FLAGS variable, or
17171 # (2) before a word containing "conftest.", or (3) at the end.
17172 # Note that $ac_compile itself does not contain backslashes and begins
17173 # with a dollar sign (not a hyphen), so the echo should work correctly.
17174 # The option is referenced via a variable to avoid confusing sed.
17175 lt_compile=`echo "$ac_compile" | $SED \
17176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17178 -e 's:$: $lt_compiler_flag:'`
17179 (eval echo "\"\$as_me:17179: $lt_compile\"" >&5)
17180 (eval "$lt_compile" 2>conftest.err)
17181 ac_status=$?
17182 cat conftest.err >&5
17183 echo "$as_me:17183: \$? = $ac_status" >&5
17184 if (exit $ac_status) && test -s "$ac_outfile"; then
17185 # The compiler can only warn and ignore the option if not recognized
17186 # So say no if there are warnings other than the usual output.
17187 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17189 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17190 lt_cv_prog_compiler_pic_works_GCJ=yes
17191 fi
17192 fi
17193 $rm conftest*
17194
17195 fi
17196 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17197 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17198
17199 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17200 case $lt_prog_compiler_pic_GCJ in
17201 "" | " "*) ;;
17202 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17203 esac
17204 else
17205 lt_prog_compiler_pic_GCJ=
17206 lt_prog_compiler_can_build_shared_GCJ=no
17207 fi
17208
17209 fi
17210 case $host_os in
17211 # For platforms which do not support PIC, -DPIC is meaningless:
17212 *djgpp*)
17213 lt_prog_compiler_pic_GCJ=
17214 ;;
17215 *)
17216 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17217 ;;
17218 esac
17219
17220 #
17221 # Check to make sure the static flag actually works.
17222 #
17223 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17224 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17225 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17226 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17227 $as_echo_n "(cached) " >&6
17228 else
17229 lt_cv_prog_compiler_static_works_GCJ=no
17230 save_LDFLAGS="$LDFLAGS"
17231 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17232 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17233 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17234 # The linker can only warn and ignore the option if not recognized
17235 # So say no if there are warnings
17236 if test -s conftest.err; then
17237 # Append any errors to the config.log.
17238 cat conftest.err 1>&5
17239 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17241 if diff conftest.exp conftest.er2 >/dev/null; then
17242 lt_cv_prog_compiler_static_works_GCJ=yes
17243 fi
17244 else
17245 lt_cv_prog_compiler_static_works_GCJ=yes
17246 fi
17247 fi
17248 $rm -r conftest*
17249 LDFLAGS="$save_LDFLAGS"
17250
17251 fi
17252 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17253 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17254
17255 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17256 :
17257 else
17258 lt_prog_compiler_static_GCJ=
17259 fi
17260
17261
17262 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17263 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17264 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17265 $as_echo_n "(cached) " >&6
17266 else
17267 lt_cv_prog_compiler_c_o_GCJ=no
17268 $rm -r conftest 2>/dev/null
17269 mkdir conftest
17270 cd conftest
17271 mkdir out
17272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17273
17274 lt_compiler_flag="-o out/conftest2.$ac_objext"
17275 # Insert the option either (1) after the last *FLAGS variable, or
17276 # (2) before a word containing "conftest.", or (3) at the end.
17277 # Note that $ac_compile itself does not contain backslashes and begins
17278 # with a dollar sign (not a hyphen), so the echo should work correctly.
17279 lt_compile=`echo "$ac_compile" | $SED \
17280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17282 -e 's:$: $lt_compiler_flag:'`
17283 (eval echo "\"\$as_me:17283: $lt_compile\"" >&5)
17284 (eval "$lt_compile" 2>out/conftest.err)
17285 ac_status=$?
17286 cat out/conftest.err >&5
17287 echo "$as_me:17287: \$? = $ac_status" >&5
17288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17289 then
17290 # The compiler can only warn and ignore the option if not recognized
17291 # So say no if there are warnings
17292 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17295 lt_cv_prog_compiler_c_o_GCJ=yes
17296 fi
17297 fi
17298 chmod u+w . 2>&5
17299 $rm conftest*
17300 # SGI C++ compiler will create directory out/ii_files/ for
17301 # template instantiation
17302 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17303 $rm out/* && rmdir out
17304 cd ..
17305 rmdir conftest
17306 $rm conftest*
17307
17308 fi
17309 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17310 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17311
17312
17313 hard_links="nottested"
17314 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17315 # do not overwrite the value of need_locks provided by the user
17316 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17317 $as_echo_n "checking if we can lock with hard links... " >&6; }
17318 hard_links=yes
17319 $rm conftest*
17320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17321 touch conftest.a
17322 ln conftest.a conftest.b 2>&5 || hard_links=no
17323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17324 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17325 $as_echo "$hard_links" >&6; }
17326 if test "$hard_links" = no; then
17327 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17328 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17329 need_locks=warn
17330 fi
17331 else
17332 need_locks=no
17333 fi
17334
17335 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17336 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17337
17338 runpath_var=
17339 allow_undefined_flag_GCJ=
17340 enable_shared_with_static_runtimes_GCJ=no
17341 archive_cmds_GCJ=
17342 archive_expsym_cmds_GCJ=
17343 old_archive_From_new_cmds_GCJ=
17344 old_archive_from_expsyms_cmds_GCJ=
17345 export_dynamic_flag_spec_GCJ=
17346 whole_archive_flag_spec_GCJ=
17347 thread_safe_flag_spec_GCJ=
17348 hardcode_libdir_flag_spec_GCJ=
17349 hardcode_libdir_flag_spec_ld_GCJ=
17350 hardcode_libdir_separator_GCJ=
17351 hardcode_direct_GCJ=no
17352 hardcode_minus_L_GCJ=no
17353 hardcode_shlibpath_var_GCJ=unsupported
17354 link_all_deplibs_GCJ=unknown
17355 hardcode_automatic_GCJ=no
17356 module_cmds_GCJ=
17357 module_expsym_cmds_GCJ=
17358 always_export_symbols_GCJ=no
17359 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17360 # include_expsyms should be a list of space-separated symbols to be *always*
17361 # included in the symbol list
17362 include_expsyms_GCJ=
17363 # exclude_expsyms can be an extended regexp of symbols to exclude
17364 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17365 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17366 # as well as any symbol that contains `d'.
17367 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17368 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17369 # platforms (ab)use it in PIC code, but their linkers get confused if
17370 # the symbol is explicitly referenced. Since portable code cannot
17371 # rely on this symbol name, it's probably fine to never include it in
17372 # preloaded symbol tables.
17373 # Exclude shared library initialization/finalization symbols.
17374 extract_expsyms_cmds=
17375 # Just being paranoid about ensuring that cc_basename is set.
17376 for cc_temp in $compiler""; do
17377 case $cc_temp in
17378 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17379 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17380 \-*) ;;
17381 *) break;;
17382 esac
17383 done
17384 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17385
17386 case $host_os in
17387 cygwin* | mingw* | pw32*)
17388 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17389 # When not using gcc, we currently assume that we are using
17390 # Microsoft Visual C++.
17391 if test "$GCC" != yes; then
17392 with_gnu_ld=no
17393 fi
17394 ;;
17395 interix*)
17396 # we just hope/assume this is gcc and not c89 (= MSVC++)
17397 with_gnu_ld=yes
17398 ;;
17399 openbsd*)
17400 with_gnu_ld=no
17401 ;;
17402 esac
17403
17404 ld_shlibs_GCJ=yes
17405 if test "$with_gnu_ld" = yes; then
17406 # If archive_cmds runs LD, not CC, wlarc should be empty
17407 wlarc='${wl}'
17408
17409 # Set some defaults for GNU ld with shared library support. These
17410 # are reset later if shared libraries are not supported. Putting them
17411 # here allows them to be overridden if necessary.
17412 runpath_var=LD_RUN_PATH
17413 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17414 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17415 # ancient GNU ld didn't support --whole-archive et. al.
17416 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17417 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17418 else
17419 whole_archive_flag_spec_GCJ=
17420 fi
17421 supports_anon_versioning=no
17422 case `$LD -v 2>/dev/null` in
17423 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17424 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17425 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17426 *\ 2.11.*) ;; # other 2.11 versions
17427 *) supports_anon_versioning=yes ;;
17428 esac
17429
17430 # See if GNU ld supports shared libraries.
17431 case $host_os in
17432 aix[3-9]*)
17433 # On AIX/PPC, the GNU linker is very broken
17434 if test "$host_cpu" != ia64; then
17435 ld_shlibs_GCJ=no
17436 cat <<EOF 1>&2
17437
17438 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17439 *** to be unable to reliably create shared libraries on AIX.
17440 *** Therefore, libtool is disabling shared libraries support. If you
17441 *** really care for shared libraries, you may want to modify your PATH
17442 *** so that a non-GNU linker is found, and then restart.
17443
17444 EOF
17445 fi
17446 ;;
17447
17448 amigaos*)
17449 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)'
17450 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17451 hardcode_minus_L_GCJ=yes
17452
17453 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17454 # that the semantics of dynamic libraries on AmigaOS, at least up
17455 # to version 4, is to share data among multiple programs linked
17456 # with the same dynamic library. Since this doesn't match the
17457 # behavior of shared libraries on other platforms, we can't use
17458 # them.
17459 ld_shlibs_GCJ=no
17460 ;;
17461
17462 beos*)
17463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17464 allow_undefined_flag_GCJ=unsupported
17465 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17466 # support --undefined. This deserves some investigation. FIXME
17467 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17468 else
17469 ld_shlibs_GCJ=no
17470 fi
17471 ;;
17472
17473 cygwin* | mingw* | pw32*)
17474 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17475 # as there is no search path for DLLs.
17476 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17477 allow_undefined_flag_GCJ=unsupported
17478 always_export_symbols_GCJ=no
17479 enable_shared_with_static_runtimes_GCJ=yes
17480 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17481
17482 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17483 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17484 # If the export-symbols file already is a .def file (1st line
17485 # is EXPORTS), use it as is; otherwise, prepend...
17486 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17487 cp $export_symbols $output_objdir/$soname.def;
17488 else
17489 echo EXPORTS > $output_objdir/$soname.def;
17490 cat $export_symbols >> $output_objdir/$soname.def;
17491 fi~
17492 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17493 else
17494 ld_shlibs_GCJ=no
17495 fi
17496 ;;
17497
17498 interix[3-9]*)
17499 hardcode_direct_GCJ=no
17500 hardcode_shlibpath_var_GCJ=no
17501 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17502 export_dynamic_flag_spec_GCJ='${wl}-E'
17503 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17504 # Instead, shared libraries are loaded at an image base (0x10000000 by
17505 # default) and relocated if they conflict, which is a slow very memory
17506 # consuming and fragmenting process. To avoid this, we pick a random,
17507 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17508 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17509 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'
17510 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'
17511 ;;
17512
17513 gnu* | linux* | k*bsd*-gnu)
17514 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17515 tmp_addflag=
17516 case $cc_basename,$host_cpu in
17517 pgcc*) # Portland Group C compiler
17518 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'
17519 tmp_addflag=' $pic_flag'
17520 ;;
17521 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17522 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'
17523 tmp_addflag=' $pic_flag -Mnomain' ;;
17524 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17525 tmp_addflag=' -i_dynamic' ;;
17526 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17527 tmp_addflag=' -i_dynamic -nofor_main' ;;
17528 ifc* | ifort*) # Intel Fortran compiler
17529 tmp_addflag=' -nofor_main' ;;
17530 esac
17531 case `$CC -V 2>&1 | sed 5q` in
17532 *Sun\ C*) # Sun C 5.9
17533 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'
17534 tmp_sharedflag='-G' ;;
17535 *Sun\ F*) # Sun Fortran 8.3
17536 tmp_sharedflag='-G' ;;
17537 *)
17538 tmp_sharedflag='-shared' ;;
17539 esac
17540 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17541
17542 if test $supports_anon_versioning = yes; then
17543 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17544 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17545 $echo "local: *; };" >> $output_objdir/$libname.ver~
17546 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17547 fi
17548 else
17549 ld_shlibs_GCJ=no
17550 fi
17551 ;;
17552
17553 netbsd*)
17554 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17555 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17556 wlarc=
17557 else
17558 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17559 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17560 fi
17561 ;;
17562
17563 solaris*)
17564 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17565 ld_shlibs_GCJ=no
17566 cat <<EOF 1>&2
17567
17568 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17569 *** create shared libraries on Solaris systems. Therefore, libtool
17570 *** is disabling shared libraries support. We urge you to upgrade GNU
17571 *** binutils to release 2.9.1 or newer. Another option is to modify
17572 *** your PATH or compiler configuration so that the native linker is
17573 *** used, and then restart.
17574
17575 EOF
17576 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17577 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17578 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17579 else
17580 ld_shlibs_GCJ=no
17581 fi
17582 ;;
17583
17584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17585 case `$LD -v 2>&1` in
17586 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17587 ld_shlibs_GCJ=no
17588 cat <<_LT_EOF 1>&2
17589
17590 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17591 *** reliably create shared libraries on SCO systems. Therefore, libtool
17592 *** is disabling shared libraries support. We urge you to upgrade GNU
17593 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17594 *** your PATH or compiler configuration so that the native linker is
17595 *** used, and then restart.
17596
17597 _LT_EOF
17598 ;;
17599 *)
17600 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17601 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17602 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17603 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17604 else
17605 ld_shlibs_GCJ=no
17606 fi
17607 ;;
17608 esac
17609 ;;
17610
17611 sunos4*)
17612 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17613 wlarc=
17614 hardcode_direct_GCJ=yes
17615 hardcode_shlibpath_var_GCJ=no
17616 ;;
17617
17618 *)
17619 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17620 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17621 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17622 else
17623 ld_shlibs_GCJ=no
17624 fi
17625 ;;
17626 esac
17627
17628 if test "$ld_shlibs_GCJ" = no; then
17629 runpath_var=
17630 hardcode_libdir_flag_spec_GCJ=
17631 export_dynamic_flag_spec_GCJ=
17632 whole_archive_flag_spec_GCJ=
17633 fi
17634 else
17635 # PORTME fill in a description of your system's linker (not GNU ld)
17636 case $host_os in
17637 aix3*)
17638 allow_undefined_flag_GCJ=unsupported
17639 always_export_symbols_GCJ=yes
17640 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'
17641 # Note: this linker hardcodes the directories in LIBPATH if there
17642 # are no directories specified by -L.
17643 hardcode_minus_L_GCJ=yes
17644 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17645 # Neither direct hardcoding nor static linking is supported with a
17646 # broken collect2.
17647 hardcode_direct_GCJ=unsupported
17648 fi
17649 ;;
17650
17651 aix[4-9]*)
17652 if test "$host_cpu" = ia64; then
17653 # On IA64, the linker does run time linking by default, so we don't
17654 # have to do anything special.
17655 aix_use_runtimelinking=no
17656 exp_sym_flag='-Bexport'
17657 no_entry_flag=""
17658 else
17659 # If we're using GNU nm, then we don't want the "-C" option.
17660 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17661 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17662 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'
17663 else
17664 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'
17665 fi
17666 aix_use_runtimelinking=no
17667
17668 # Test if we are trying to use run time linking or normal
17669 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17670 # need to do runtime linking.
17671 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17672 for ld_flag in $LDFLAGS; do
17673 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17674 aix_use_runtimelinking=yes
17675 break
17676 fi
17677 done
17678 ;;
17679 esac
17680
17681 exp_sym_flag='-bexport'
17682 no_entry_flag='-bnoentry'
17683 fi
17684
17685 # When large executables or shared objects are built, AIX ld can
17686 # have problems creating the table of contents. If linking a library
17687 # or program results in "error TOC overflow" add -mminimal-toc to
17688 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17689 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17690
17691 archive_cmds_GCJ=''
17692 hardcode_direct_GCJ=yes
17693 hardcode_libdir_separator_GCJ=':'
17694 link_all_deplibs_GCJ=yes
17695
17696 if test "$GCC" = yes; then
17697 case $host_os in aix4.[012]|aix4.[012].*)
17698 # We only want to do this on AIX 4.2 and lower, the check
17699 # below for broken collect2 doesn't work under 4.3+
17700 collect2name=`${CC} -print-prog-name=collect2`
17701 if test -f "$collect2name" && \
17702 strings "$collect2name" | grep resolve_lib_name >/dev/null
17703 then
17704 # We have reworked collect2
17705 :
17706 else
17707 # We have old collect2
17708 hardcode_direct_GCJ=unsupported
17709 # It fails to find uninstalled libraries when the uninstalled
17710 # path is not listed in the libpath. Setting hardcode_minus_L
17711 # to unsupported forces relinking
17712 hardcode_minus_L_GCJ=yes
17713 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17714 hardcode_libdir_separator_GCJ=
17715 fi
17716 ;;
17717 esac
17718 shared_flag='-shared'
17719 if test "$aix_use_runtimelinking" = yes; then
17720 shared_flag="$shared_flag "'${wl}-G'
17721 fi
17722 else
17723 # not using gcc
17724 if test "$host_cpu" = ia64; then
17725 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17726 # chokes on -Wl,-G. The following line is correct:
17727 shared_flag='-G'
17728 else
17729 if test "$aix_use_runtimelinking" = yes; then
17730 shared_flag='${wl}-G'
17731 else
17732 shared_flag='${wl}-bM:SRE'
17733 fi
17734 fi
17735 fi
17736
17737 # It seems that -bexpall does not export symbols beginning with
17738 # underscore (_), so it is better to generate a list of symbols to export.
17739 always_export_symbols_GCJ=yes
17740 if test "$aix_use_runtimelinking" = yes; then
17741 # Warning - without using the other runtime loading flags (-brtl),
17742 # -berok will link without error, but may produce a broken library.
17743 allow_undefined_flag_GCJ='-berok'
17744 # Determine the default libpath from the value encoded in an empty executable.
17745 cat >conftest.$ac_ext <<_ACEOF
17746 /* confdefs.h. */
17747 _ACEOF
17748 cat confdefs.h >>conftest.$ac_ext
17749 cat >>conftest.$ac_ext <<_ACEOF
17750 /* end confdefs.h. */
17751
17752 int
17753 main ()
17754 {
17755
17756 ;
17757 return 0;
17758 }
17759 _ACEOF
17760 rm -f conftest.$ac_objext conftest$ac_exeext
17761 if { (ac_try="$ac_link"
17762 case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17765 esac
17766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17767 $as_echo "$ac_try_echo") >&5
17768 (eval "$ac_link") 2>conftest.er1
17769 ac_status=$?
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
17773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } && {
17775 test -z "$ac_c_werror_flag" ||
17776 test ! -s conftest.err
17777 } && test -s conftest$ac_exeext && {
17778 test "$cross_compiling" = yes ||
17779 $as_test_x conftest$ac_exeext
17780 }; then
17781
17782 lt_aix_libpath_sed='
17783 /Import File Strings/,/^$/ {
17784 /^0/ {
17785 s/^0 *\(.*\)$/\1/
17786 p
17787 }
17788 }'
17789 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17790 # Check for a 64-bit object if we didn't find anything.
17791 if test -z "$aix_libpath"; then
17792 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17793 fi
17794 else
17795 $as_echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17797
17798
17799 fi
17800
17801 rm -rf conftest.dSYM
17802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17803 conftest$ac_exeext conftest.$ac_ext
17804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17805
17806 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17807 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"
17808 else
17809 if test "$host_cpu" = ia64; then
17810 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17811 allow_undefined_flag_GCJ="-z nodefs"
17812 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"
17813 else
17814 # Determine the default libpath from the value encoded in an empty executable.
17815 cat >conftest.$ac_ext <<_ACEOF
17816 /* confdefs.h. */
17817 _ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17821
17822 int
17823 main ()
17824 {
17825
17826 ;
17827 return 0;
17828 }
17829 _ACEOF
17830 rm -f conftest.$ac_objext conftest$ac_exeext
17831 if { (ac_try="$ac_link"
17832 case "(($ac_try" in
17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834 *) ac_try_echo=$ac_try;;
17835 esac
17836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17837 $as_echo "$ac_try_echo") >&5
17838 (eval "$ac_link") 2>conftest.er1
17839 ac_status=$?
17840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
17843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } && {
17845 test -z "$ac_c_werror_flag" ||
17846 test ! -s conftest.err
17847 } && test -s conftest$ac_exeext && {
17848 test "$cross_compiling" = yes ||
17849 $as_test_x conftest$ac_exeext
17850 }; then
17851
17852 lt_aix_libpath_sed='
17853 /Import File Strings/,/^$/ {
17854 /^0/ {
17855 s/^0 *\(.*\)$/\1/
17856 p
17857 }
17858 }'
17859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17860 # Check for a 64-bit object if we didn't find anything.
17861 if test -z "$aix_libpath"; then
17862 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17863 fi
17864 else
17865 $as_echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17867
17868
17869 fi
17870
17871 rm -rf conftest.dSYM
17872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17873 conftest$ac_exeext conftest.$ac_ext
17874 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17875
17876 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17877 # Warning - without using the other run time loading flags,
17878 # -berok will link without error, but may produce a broken library.
17879 no_undefined_flag_GCJ=' ${wl}-bernotok'
17880 allow_undefined_flag_GCJ=' ${wl}-berok'
17881 # Exported symbols can be pulled into shared objects from archives
17882 whole_archive_flag_spec_GCJ='$convenience'
17883 archive_cmds_need_lc_GCJ=yes
17884 # This is similar to how AIX traditionally builds its shared libraries.
17885 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'
17886 fi
17887 fi
17888 ;;
17889
17890 amigaos*)
17891 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)'
17892 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17893 hardcode_minus_L_GCJ=yes
17894 # see comment about different semantics on the GNU ld section
17895 ld_shlibs_GCJ=no
17896 ;;
17897
17898 bsdi[45]*)
17899 export_dynamic_flag_spec_GCJ=-rdynamic
17900 ;;
17901
17902 cygwin* | mingw* | pw32*)
17903 # When not using gcc, we currently assume that we are using
17904 # Microsoft Visual C++.
17905 # hardcode_libdir_flag_spec is actually meaningless, as there is
17906 # no search path for DLLs.
17907 hardcode_libdir_flag_spec_GCJ=' '
17908 allow_undefined_flag_GCJ=unsupported
17909 # Tell ltmain to make .lib files, not .a files.
17910 libext=lib
17911 # Tell ltmain to make .dll files, not .so files.
17912 shrext_cmds=".dll"
17913 # FIXME: Setting linknames here is a bad hack.
17914 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17915 # The linker will automatically build a .lib file if we build a DLL.
17916 old_archive_From_new_cmds_GCJ='true'
17917 # FIXME: Should let the user specify the lib program.
17918 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17919 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17920 enable_shared_with_static_runtimes_GCJ=yes
17921 ;;
17922
17923 darwin* | rhapsody*)
17924 case $host_os in
17925 rhapsody* | darwin1.[012])
17926 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17927 ;;
17928 *) # Darwin 1.3 on
17929 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17930 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17931 else
17932 case ${MACOSX_DEPLOYMENT_TARGET} in
17933 10.[012])
17934 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17935 ;;
17936 10.*)
17937 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17938 ;;
17939 esac
17940 fi
17941 ;;
17942 esac
17943 archive_cmds_need_lc_GCJ=no
17944 hardcode_direct_GCJ=no
17945 hardcode_automatic_GCJ=yes
17946 hardcode_shlibpath_var_GCJ=unsupported
17947 whole_archive_flag_spec_GCJ=''
17948 link_all_deplibs_GCJ=yes
17949 if test "$GCC" = yes ; then
17950 output_verbose_link_cmd='echo'
17951 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17952 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17953 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17954 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17955 else
17956 case $cc_basename in
17957 xlc*)
17958 output_verbose_link_cmd='echo'
17959 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17960 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17961 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17962 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}'
17963 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}'
17964 ;;
17965 *)
17966 ld_shlibs_GCJ=no
17967 ;;
17968 esac
17969 fi
17970 ;;
17971
17972 dgux*)
17973 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17974 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17975 hardcode_shlibpath_var_GCJ=no
17976 ;;
17977
17978 freebsd1*)
17979 ld_shlibs_GCJ=no
17980 ;;
17981
17982 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17983 # support. Future versions do this automatically, but an explicit c++rt0.o
17984 # does not break anything, and helps significantly (at the cost of a little
17985 # extra space).
17986 freebsd2.2*)
17987 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17988 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17989 hardcode_direct_GCJ=yes
17990 hardcode_shlibpath_var_GCJ=no
17991 ;;
17992
17993 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17994 freebsd2*)
17995 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17996 hardcode_direct_GCJ=yes
17997 hardcode_minus_L_GCJ=yes
17998 hardcode_shlibpath_var_GCJ=no
17999 ;;
18000
18001 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18002 freebsd* | dragonfly*)
18003 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18004 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18005 hardcode_direct_GCJ=yes
18006 hardcode_shlibpath_var_GCJ=no
18007 ;;
18008
18009 hpux9*)
18010 if test "$GCC" = yes; then
18011 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'
18012 else
18013 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'
18014 fi
18015 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18016 hardcode_libdir_separator_GCJ=:
18017 hardcode_direct_GCJ=yes
18018
18019 # hardcode_minus_L: Not really in the search PATH,
18020 # but as the default location of the library.
18021 hardcode_minus_L_GCJ=yes
18022 export_dynamic_flag_spec_GCJ='${wl}-E'
18023 ;;
18024
18025 hpux10*)
18026 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18027 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18028 else
18029 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18030 fi
18031 if test "$with_gnu_ld" = no; then
18032 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18033 hardcode_libdir_separator_GCJ=:
18034
18035 hardcode_direct_GCJ=yes
18036 export_dynamic_flag_spec_GCJ='${wl}-E'
18037
18038 # hardcode_minus_L: Not really in the search PATH,
18039 # but as the default location of the library.
18040 hardcode_minus_L_GCJ=yes
18041 fi
18042 ;;
18043
18044 hpux11*)
18045 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18046 case $host_cpu in
18047 hppa*64*)
18048 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18049 ;;
18050 ia64*)
18051 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18052 ;;
18053 *)
18054 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18055 ;;
18056 esac
18057 else
18058 case $host_cpu in
18059 hppa*64*)
18060 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18061 ;;
18062 ia64*)
18063 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18064 ;;
18065 *)
18066 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18067 ;;
18068 esac
18069 fi
18070 if test "$with_gnu_ld" = no; then
18071 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18072 hardcode_libdir_separator_GCJ=:
18073
18074 case $host_cpu in
18075 hppa*64*|ia64*)
18076 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18077 hardcode_direct_GCJ=no
18078 hardcode_shlibpath_var_GCJ=no
18079 ;;
18080 *)
18081 hardcode_direct_GCJ=yes
18082 export_dynamic_flag_spec_GCJ='${wl}-E'
18083
18084 # hardcode_minus_L: Not really in the search PATH,
18085 # but as the default location of the library.
18086 hardcode_minus_L_GCJ=yes
18087 ;;
18088 esac
18089 fi
18090 ;;
18091
18092 irix5* | irix6* | nonstopux*)
18093 if test "$GCC" = yes; then
18094 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'
18095 else
18096 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'
18097 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18098 fi
18099 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18100 hardcode_libdir_separator_GCJ=:
18101 link_all_deplibs_GCJ=yes
18102 ;;
18103
18104 netbsd*)
18105 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18106 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18107 else
18108 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18109 fi
18110 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18111 hardcode_direct_GCJ=yes
18112 hardcode_shlibpath_var_GCJ=no
18113 ;;
18114
18115 newsos6)
18116 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18117 hardcode_direct_GCJ=yes
18118 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18119 hardcode_libdir_separator_GCJ=:
18120 hardcode_shlibpath_var_GCJ=no
18121 ;;
18122
18123 openbsd*)
18124 if test -f /usr/libexec/ld.so; then
18125 hardcode_direct_GCJ=yes
18126 hardcode_shlibpath_var_GCJ=no
18127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18128 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18129 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18130 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18131 export_dynamic_flag_spec_GCJ='${wl}-E'
18132 else
18133 case $host_os in
18134 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18135 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18136 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18137 ;;
18138 *)
18139 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18140 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18141 ;;
18142 esac
18143 fi
18144 else
18145 ld_shlibs_GCJ=no
18146 fi
18147 ;;
18148
18149 os2*)
18150 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18151 hardcode_minus_L_GCJ=yes
18152 allow_undefined_flag_GCJ=unsupported
18153 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'
18154 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18155 ;;
18156
18157 osf3*)
18158 if test "$GCC" = yes; then
18159 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18160 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'
18161 else
18162 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18163 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'
18164 fi
18165 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18166 hardcode_libdir_separator_GCJ=:
18167 ;;
18168
18169 osf4* | osf5*) # as osf3* with the addition of -msym flag
18170 if test "$GCC" = yes; then
18171 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18172 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'
18173 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18174 else
18175 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18176 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'
18177 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~
18178 $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'
18179
18180 # Both c and cxx compiler support -rpath directly
18181 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18182 fi
18183 hardcode_libdir_separator_GCJ=:
18184 ;;
18185
18186 solaris*)
18187 no_undefined_flag_GCJ=' -z text'
18188 if test "$GCC" = yes; then
18189 wlarc='${wl}'
18190 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18191 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18192 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18193 else
18194 wlarc=''
18195 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18196 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18197 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18198 fi
18199 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18200 hardcode_shlibpath_var_GCJ=no
18201 case $host_os in
18202 solaris2.[0-5] | solaris2.[0-5].*) ;;
18203 *)
18204 # The compiler driver will combine and reorder linker options,
18205 # but understands `-z linker_flag'. GCC discards it without `$wl',
18206 # but is careful enough not to reorder.
18207 # Supported since Solaris 2.6 (maybe 2.5.1?)
18208 if test "$GCC" = yes; then
18209 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18210 else
18211 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18212 fi
18213 ;;
18214 esac
18215 link_all_deplibs_GCJ=yes
18216 ;;
18217
18218 sunos4*)
18219 if test "x$host_vendor" = xsequent; then
18220 # Use $CC to link under sequent, because it throws in some extra .o
18221 # files that make .init and .fini sections work.
18222 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18223 else
18224 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18225 fi
18226 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18227 hardcode_direct_GCJ=yes
18228 hardcode_minus_L_GCJ=yes
18229 hardcode_shlibpath_var_GCJ=no
18230 ;;
18231
18232 sysv4)
18233 case $host_vendor in
18234 sni)
18235 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18236 hardcode_direct_GCJ=yes # is this really true???
18237 ;;
18238 siemens)
18239 ## LD is ld it makes a PLAMLIB
18240 ## CC just makes a GrossModule.
18241 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18242 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18243 hardcode_direct_GCJ=no
18244 ;;
18245 motorola)
18246 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18247 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18248 ;;
18249 esac
18250 runpath_var='LD_RUN_PATH'
18251 hardcode_shlibpath_var_GCJ=no
18252 ;;
18253
18254 sysv4.3*)
18255 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18256 hardcode_shlibpath_var_GCJ=no
18257 export_dynamic_flag_spec_GCJ='-Bexport'
18258 ;;
18259
18260 sysv4*MP*)
18261 if test -d /usr/nec; then
18262 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18263 hardcode_shlibpath_var_GCJ=no
18264 runpath_var=LD_RUN_PATH
18265 hardcode_runpath_var=yes
18266 ld_shlibs_GCJ=yes
18267 fi
18268 ;;
18269
18270 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18271 no_undefined_flag_GCJ='${wl}-z,text'
18272 archive_cmds_need_lc_GCJ=no
18273 hardcode_shlibpath_var_GCJ=no
18274 runpath_var='LD_RUN_PATH'
18275
18276 if test "$GCC" = yes; then
18277 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18278 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18279 else
18280 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18281 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18282 fi
18283 ;;
18284
18285 sysv5* | sco3.2v5* | sco5v6*)
18286 # Note: We can NOT use -z defs as we might desire, because we do not
18287 # link with -lc, and that would cause any symbols used from libc to
18288 # always be unresolved, which means just about no library would
18289 # ever link correctly. If we're not using GNU ld we use -z text
18290 # though, which does catch some bad symbols but isn't as heavy-handed
18291 # as -z defs.
18292 no_undefined_flag_GCJ='${wl}-z,text'
18293 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18294 archive_cmds_need_lc_GCJ=no
18295 hardcode_shlibpath_var_GCJ=no
18296 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18297 hardcode_libdir_separator_GCJ=':'
18298 link_all_deplibs_GCJ=yes
18299 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18300 runpath_var='LD_RUN_PATH'
18301
18302 if test "$GCC" = yes; then
18303 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18304 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18305 else
18306 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18307 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18308 fi
18309 ;;
18310
18311 uts4*)
18312 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18313 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18314 hardcode_shlibpath_var_GCJ=no
18315 ;;
18316
18317 *)
18318 ld_shlibs_GCJ=no
18319 ;;
18320 esac
18321 fi
18322
18323 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18324 $as_echo "$ld_shlibs_GCJ" >&6; }
18325 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18326
18327 #
18328 # Do we need to explicitly link libc?
18329 #
18330 case "x$archive_cmds_need_lc_GCJ" in
18331 x|xyes)
18332 # Assume -lc should be added
18333 archive_cmds_need_lc_GCJ=yes
18334
18335 if test "$enable_shared" = yes && test "$GCC" = yes; then
18336 case $archive_cmds_GCJ in
18337 *'~'*)
18338 # FIXME: we may have to deal with multi-command sequences.
18339 ;;
18340 '$CC '*)
18341 # Test whether the compiler implicitly links with -lc since on some
18342 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18343 # to ld, don't add -lc before -lgcc.
18344 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18345 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18346 $rm conftest*
18347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18348
18349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18350 (eval $ac_compile) 2>&5
18351 ac_status=$?
18352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } 2>conftest.err; then
18354 soname=conftest
18355 lib=conftest
18356 libobjs=conftest.$ac_objext
18357 deplibs=
18358 wl=$lt_prog_compiler_wl_GCJ
18359 pic_flag=$lt_prog_compiler_pic_GCJ
18360 compiler_flags=-v
18361 linker_flags=-v
18362 verstring=
18363 output_objdir=.
18364 libname=conftest
18365 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18366 allow_undefined_flag_GCJ=
18367 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18368 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18369 ac_status=$?
18370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }
18372 then
18373 archive_cmds_need_lc_GCJ=no
18374 else
18375 archive_cmds_need_lc_GCJ=yes
18376 fi
18377 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18378 else
18379 cat conftest.err 1>&5
18380 fi
18381 $rm conftest*
18382 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18383 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18384 ;;
18385 esac
18386 fi
18387 ;;
18388 esac
18389
18390 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18391 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18392 library_names_spec=
18393 libname_spec='lib$name'
18394 soname_spec=
18395 shrext_cmds=".so"
18396 postinstall_cmds=
18397 postuninstall_cmds=
18398 finish_cmds=
18399 finish_eval=
18400 shlibpath_var=
18401 shlibpath_overrides_runpath=unknown
18402 version_type=none
18403 dynamic_linker="$host_os ld.so"
18404 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18405
18406 need_lib_prefix=unknown
18407 hardcode_into_libs=no
18408
18409 # when you set need_version to no, make sure it does not cause -set_version
18410 # flags to be left without arguments
18411 need_version=unknown
18412
18413 case $host_os in
18414 aix3*)
18415 version_type=linux
18416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18417 shlibpath_var=LIBPATH
18418
18419 # AIX 3 has no versioning support, so we append a major version to the name.
18420 soname_spec='${libname}${release}${shared_ext}$major'
18421 ;;
18422
18423 aix[4-9]*)
18424 version_type=linux
18425 need_lib_prefix=no
18426 need_version=no
18427 hardcode_into_libs=yes
18428 if test "$host_cpu" = ia64; then
18429 # AIX 5 supports IA64
18430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18431 shlibpath_var=LD_LIBRARY_PATH
18432 else
18433 # With GCC up to 2.95.x, collect2 would create an import file
18434 # for dependence libraries. The import file would start with
18435 # the line `#! .'. This would cause the generated library to
18436 # depend on `.', always an invalid library. This was fixed in
18437 # development snapshots of GCC prior to 3.0.
18438 case $host_os in
18439 aix4 | aix4.[01] | aix4.[01].*)
18440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18441 echo ' yes '
18442 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18443 :
18444 else
18445 can_build_shared=no
18446 fi
18447 ;;
18448 esac
18449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18450 # soname into executable. Probably we can add versioning support to
18451 # collect2, so additional links can be useful in future.
18452 if test "$aix_use_runtimelinking" = yes; then
18453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18454 # instead of lib<name>.a to let people know that these are not
18455 # typical AIX shared libraries.
18456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18457 else
18458 # We preserve .a as extension for shared libraries through AIX4.2
18459 # and later when we are not doing run time linking.
18460 library_names_spec='${libname}${release}.a $libname.a'
18461 soname_spec='${libname}${release}${shared_ext}$major'
18462 fi
18463 shlibpath_var=LIBPATH
18464 fi
18465 ;;
18466
18467 amigaos*)
18468 library_names_spec='$libname.ixlibrary $libname.a'
18469 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18470 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'
18471 ;;
18472
18473 beos*)
18474 library_names_spec='${libname}${shared_ext}'
18475 dynamic_linker="$host_os ld.so"
18476 shlibpath_var=LIBRARY_PATH
18477 ;;
18478
18479 bsdi[45]*)
18480 version_type=linux
18481 need_version=no
18482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18483 soname_spec='${libname}${release}${shared_ext}$major'
18484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18485 shlibpath_var=LD_LIBRARY_PATH
18486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18488 # the default ld.so.conf also contains /usr/contrib/lib and
18489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18490 # libtool to hard-code these into programs
18491 ;;
18492
18493 cygwin* | mingw* | pw32*)
18494 version_type=windows
18495 shrext_cmds=".dll"
18496 need_version=no
18497 need_lib_prefix=no
18498
18499 case $GCC,$host_os in
18500 yes,cygwin* | yes,mingw* | yes,pw32*)
18501 library_names_spec='$libname.dll.a'
18502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18503 postinstall_cmds='base_file=`basename \${file}`~
18504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18505 dldir=$destdir/`dirname \$dlpath`~
18506 test -d \$dldir || mkdir -p \$dldir~
18507 $install_prog $dir/$dlname \$dldir/$dlname~
18508 chmod a+x \$dldir/$dlname'
18509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18510 dlpath=$dir/\$dldll~
18511 $rm \$dlpath'
18512 shlibpath_overrides_runpath=yes
18513
18514 case $host_os in
18515 cygwin*)
18516 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18517 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18518 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18519 ;;
18520 mingw*)
18521 # MinGW DLLs use traditional 'lib' prefix
18522 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18524 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18525 # It is most probably a Windows format PATH printed by
18526 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18527 # path with ; separators, and with drive letters. We can handle the
18528 # drive letters (cygwin fileutils understands them), so leave them,
18529 # especially as we might pass files found there to a mingw objdump,
18530 # which wouldn't understand a cygwinified path. Ahh.
18531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18532 else
18533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18534 fi
18535 ;;
18536 pw32*)
18537 # pw32 DLLs use 'pw' prefix rather than 'lib'
18538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18539 ;;
18540 esac
18541 ;;
18542
18543 *)
18544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18545 ;;
18546 esac
18547 dynamic_linker='Win32 ld.exe'
18548 # FIXME: first we should search . and the directory the executable is in
18549 shlibpath_var=PATH
18550 ;;
18551
18552 darwin* | rhapsody*)
18553 dynamic_linker="$host_os dyld"
18554 version_type=darwin
18555 need_lib_prefix=no
18556 need_version=no
18557 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18558 soname_spec='${libname}${release}${major}$shared_ext'
18559 shlibpath_overrides_runpath=yes
18560 shlibpath_var=DYLD_LIBRARY_PATH
18561 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18562
18563 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18564 ;;
18565
18566 dgux*)
18567 version_type=linux
18568 need_lib_prefix=no
18569 need_version=no
18570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18571 soname_spec='${libname}${release}${shared_ext}$major'
18572 shlibpath_var=LD_LIBRARY_PATH
18573 ;;
18574
18575 freebsd1*)
18576 dynamic_linker=no
18577 ;;
18578
18579 freebsd* | dragonfly*)
18580 # DragonFly does not have aout. When/if they implement a new
18581 # versioning mechanism, adjust this.
18582 if test -x /usr/bin/objformat; then
18583 objformat=`/usr/bin/objformat`
18584 else
18585 case $host_os in
18586 freebsd[123]*) objformat=aout ;;
18587 *) objformat=elf ;;
18588 esac
18589 fi
18590 version_type=freebsd-$objformat
18591 case $version_type in
18592 freebsd-elf*)
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18594 need_version=no
18595 need_lib_prefix=no
18596 ;;
18597 freebsd-*)
18598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18599 need_version=yes
18600 ;;
18601 esac
18602 shlibpath_var=LD_LIBRARY_PATH
18603 case $host_os in
18604 freebsd2*)
18605 shlibpath_overrides_runpath=yes
18606 ;;
18607 freebsd3.[01]* | freebsdelf3.[01]*)
18608 shlibpath_overrides_runpath=yes
18609 hardcode_into_libs=yes
18610 ;;
18611 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18612 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18613 shlibpath_overrides_runpath=no
18614 hardcode_into_libs=yes
18615 ;;
18616 *) # from 4.6 on, and DragonFly
18617 shlibpath_overrides_runpath=yes
18618 hardcode_into_libs=yes
18619 ;;
18620 esac
18621 ;;
18622
18623 gnu*)
18624 version_type=linux
18625 need_lib_prefix=no
18626 need_version=no
18627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18628 soname_spec='${libname}${release}${shared_ext}$major'
18629 shlibpath_var=LD_LIBRARY_PATH
18630 hardcode_into_libs=yes
18631 ;;
18632
18633 hpux9* | hpux10* | hpux11*)
18634 # Give a soname corresponding to the major version so that dld.sl refuses to
18635 # link against other versions.
18636 version_type=sunos
18637 need_lib_prefix=no
18638 need_version=no
18639 case $host_cpu in
18640 ia64*)
18641 shrext_cmds='.so'
18642 hardcode_into_libs=yes
18643 dynamic_linker="$host_os dld.so"
18644 shlibpath_var=LD_LIBRARY_PATH
18645 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18647 soname_spec='${libname}${release}${shared_ext}$major'
18648 if test "X$HPUX_IA64_MODE" = X32; then
18649 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18650 else
18651 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18652 fi
18653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18654 ;;
18655 hppa*64*)
18656 shrext_cmds='.sl'
18657 hardcode_into_libs=yes
18658 dynamic_linker="$host_os dld.sl"
18659 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18662 soname_spec='${libname}${release}${shared_ext}$major'
18663 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18665 ;;
18666 *)
18667 shrext_cmds='.sl'
18668 dynamic_linker="$host_os dld.sl"
18669 shlibpath_var=SHLIB_PATH
18670 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18672 soname_spec='${libname}${release}${shared_ext}$major'
18673 ;;
18674 esac
18675 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18676 postinstall_cmds='chmod 555 $lib'
18677 ;;
18678
18679 interix[3-9]*)
18680 version_type=linux
18681 need_lib_prefix=no
18682 need_version=no
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18684 soname_spec='${libname}${release}${shared_ext}$major'
18685 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18686 shlibpath_var=LD_LIBRARY_PATH
18687 shlibpath_overrides_runpath=no
18688 hardcode_into_libs=yes
18689 ;;
18690
18691 irix5* | irix6* | nonstopux*)
18692 case $host_os in
18693 nonstopux*) version_type=nonstopux ;;
18694 *)
18695 if test "$lt_cv_prog_gnu_ld" = yes; then
18696 version_type=linux
18697 else
18698 version_type=irix
18699 fi ;;
18700 esac
18701 need_lib_prefix=no
18702 need_version=no
18703 soname_spec='${libname}${release}${shared_ext}$major'
18704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18705 case $host_os in
18706 irix5* | nonstopux*)
18707 libsuff= shlibsuff=
18708 ;;
18709 *)
18710 case $LD in # libtool.m4 will add one of these switches to LD
18711 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18712 libsuff= shlibsuff= libmagic=32-bit;;
18713 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18714 libsuff=32 shlibsuff=N32 libmagic=N32;;
18715 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18716 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18717 *) libsuff= shlibsuff= libmagic=never-match;;
18718 esac
18719 ;;
18720 esac
18721 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18722 shlibpath_overrides_runpath=no
18723 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18724 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18725 hardcode_into_libs=yes
18726 ;;
18727
18728 # No shared lib support for Linux oldld, aout, or coff.
18729 linux*oldld* | linux*aout* | linux*coff*)
18730 dynamic_linker=no
18731 ;;
18732
18733 # This must be Linux ELF.
18734 linux* | k*bsd*-gnu)
18735 version_type=linux
18736 need_lib_prefix=no
18737 need_version=no
18738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18739 soname_spec='${libname}${release}${shared_ext}$major'
18740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18741 shlibpath_var=LD_LIBRARY_PATH
18742 shlibpath_overrides_runpath=no
18743 # This implies no fast_install, which is unacceptable.
18744 # Some rework will be needed to allow for fast_install
18745 # before this can be enabled.
18746 hardcode_into_libs=yes
18747
18748 # Append ld.so.conf contents to the search path
18749 if test -f /etc/ld.so.conf; then
18750 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' ' '`
18751 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18752 fi
18753
18754 # We used to test for /lib/ld.so.1 and disable shared libraries on
18755 # powerpc, because MkLinux only supported shared libraries with the
18756 # GNU dynamic linker. Since this was broken with cross compilers,
18757 # most powerpc-linux boxes support dynamic linking these days and
18758 # people can always --disable-shared, the test was removed, and we
18759 # assume the GNU/Linux dynamic linker is in use.
18760 dynamic_linker='GNU/Linux ld.so'
18761 ;;
18762
18763 netbsd*)
18764 version_type=sunos
18765 need_lib_prefix=no
18766 need_version=no
18767 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18770 dynamic_linker='NetBSD (a.out) ld.so'
18771 else
18772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18773 soname_spec='${libname}${release}${shared_ext}$major'
18774 dynamic_linker='NetBSD ld.elf_so'
18775 fi
18776 shlibpath_var=LD_LIBRARY_PATH
18777 shlibpath_overrides_runpath=yes
18778 hardcode_into_libs=yes
18779 ;;
18780
18781 newsos6)
18782 version_type=linux
18783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18784 shlibpath_var=LD_LIBRARY_PATH
18785 shlibpath_overrides_runpath=yes
18786 ;;
18787
18788 nto-qnx*)
18789 version_type=linux
18790 need_lib_prefix=no
18791 need_version=no
18792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18793 soname_spec='${libname}${release}${shared_ext}$major'
18794 shlibpath_var=LD_LIBRARY_PATH
18795 shlibpath_overrides_runpath=yes
18796 ;;
18797
18798 openbsd*)
18799 version_type=sunos
18800 sys_lib_dlsearch_path_spec="/usr/lib"
18801 need_lib_prefix=no
18802 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18803 case $host_os in
18804 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18805 *) need_version=no ;;
18806 esac
18807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18809 shlibpath_var=LD_LIBRARY_PATH
18810 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18811 case $host_os in
18812 openbsd2.[89] | openbsd2.[89].*)
18813 shlibpath_overrides_runpath=no
18814 ;;
18815 *)
18816 shlibpath_overrides_runpath=yes
18817 ;;
18818 esac
18819 else
18820 shlibpath_overrides_runpath=yes
18821 fi
18822 ;;
18823
18824 os2*)
18825 libname_spec='$name'
18826 shrext_cmds=".dll"
18827 need_lib_prefix=no
18828 library_names_spec='$libname${shared_ext} $libname.a'
18829 dynamic_linker='OS/2 ld.exe'
18830 shlibpath_var=LIBPATH
18831 ;;
18832
18833 osf3* | osf4* | osf5*)
18834 version_type=osf
18835 need_lib_prefix=no
18836 need_version=no
18837 soname_spec='${libname}${release}${shared_ext}$major'
18838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839 shlibpath_var=LD_LIBRARY_PATH
18840 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18841 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18842 ;;
18843
18844 rdos*)
18845 dynamic_linker=no
18846 ;;
18847
18848 solaris*)
18849 version_type=linux
18850 need_lib_prefix=no
18851 need_version=no
18852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18853 soname_spec='${libname}${release}${shared_ext}$major'
18854 shlibpath_var=LD_LIBRARY_PATH
18855 shlibpath_overrides_runpath=yes
18856 hardcode_into_libs=yes
18857 # ldd complains unless libraries are executable
18858 postinstall_cmds='chmod +x $lib'
18859 ;;
18860
18861 sunos4*)
18862 version_type=sunos
18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18865 shlibpath_var=LD_LIBRARY_PATH
18866 shlibpath_overrides_runpath=yes
18867 if test "$with_gnu_ld" = yes; then
18868 need_lib_prefix=no
18869 fi
18870 need_version=yes
18871 ;;
18872
18873 sysv4 | sysv4.3*)
18874 version_type=linux
18875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18876 soname_spec='${libname}${release}${shared_ext}$major'
18877 shlibpath_var=LD_LIBRARY_PATH
18878 case $host_vendor in
18879 sni)
18880 shlibpath_overrides_runpath=no
18881 need_lib_prefix=no
18882 export_dynamic_flag_spec='${wl}-Blargedynsym'
18883 runpath_var=LD_RUN_PATH
18884 ;;
18885 siemens)
18886 need_lib_prefix=no
18887 ;;
18888 motorola)
18889 need_lib_prefix=no
18890 need_version=no
18891 shlibpath_overrides_runpath=no
18892 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18893 ;;
18894 esac
18895 ;;
18896
18897 sysv4*MP*)
18898 if test -d /usr/nec ;then
18899 version_type=linux
18900 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18901 soname_spec='$libname${shared_ext}.$major'
18902 shlibpath_var=LD_LIBRARY_PATH
18903 fi
18904 ;;
18905
18906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18907 version_type=freebsd-elf
18908 need_lib_prefix=no
18909 need_version=no
18910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18911 soname_spec='${libname}${release}${shared_ext}$major'
18912 shlibpath_var=LD_LIBRARY_PATH
18913 hardcode_into_libs=yes
18914 if test "$with_gnu_ld" = yes; then
18915 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18916 shlibpath_overrides_runpath=no
18917 else
18918 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18919 shlibpath_overrides_runpath=yes
18920 case $host_os in
18921 sco3.2v5*)
18922 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18923 ;;
18924 esac
18925 fi
18926 sys_lib_dlsearch_path_spec='/usr/lib'
18927 ;;
18928
18929 uts4*)
18930 version_type=linux
18931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18932 soname_spec='${libname}${release}${shared_ext}$major'
18933 shlibpath_var=LD_LIBRARY_PATH
18934 ;;
18935
18936 *)
18937 dynamic_linker=no
18938 ;;
18939 esac
18940 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18941 $as_echo "$dynamic_linker" >&6; }
18942 test "$dynamic_linker" = no && can_build_shared=no
18943
18944 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18945 $as_echo_n "(cached) " >&6
18946 else
18947 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18948 fi
18949
18950 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18951 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18952 $as_echo_n "(cached) " >&6
18953 else
18954 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18955 fi
18956
18957 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18958
18959 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18960 if test "$GCC" = yes; then
18961 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18962 fi
18963
18964 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18965 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18966 hardcode_action_GCJ=
18967 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18968 test -n "$runpath_var_GCJ" || \
18969 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18970
18971 # We can hardcode non-existant directories.
18972 if test "$hardcode_direct_GCJ" != no &&
18973 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18974 # have to relink, otherwise we might link with an installed library
18975 # when we should be linking with a yet-to-be-installed one
18976 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18977 test "$hardcode_minus_L_GCJ" != no; then
18978 # Linking always hardcodes the temporary library directory.
18979 hardcode_action_GCJ=relink
18980 else
18981 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18982 hardcode_action_GCJ=immediate
18983 fi
18984 else
18985 # We cannot hardcode anything, or else we can only hardcode existing
18986 # directories.
18987 hardcode_action_GCJ=unsupported
18988 fi
18989 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18990 $as_echo "$hardcode_action_GCJ" >&6; }
18991
18992 if test "$hardcode_action_GCJ" = relink; then
18993 # Fast installation is not supported
18994 enable_fast_install=no
18995 elif test "$shlibpath_overrides_runpath" = yes ||
18996 test "$enable_shared" = no; then
18997 # Fast installation is not necessary
18998 enable_fast_install=needless
18999 fi
19000
19001
19002 # The else clause should only fire when bootstrapping the
19003 # libtool distribution, otherwise you forgot to ship ltmain.sh
19004 # with your package, and you will get complaints that there are
19005 # no rules to generate ltmain.sh.
19006 if test -f "$ltmain"; then
19007 # See if we are running on zsh, and set the options which allow our commands through
19008 # without removal of \ escapes.
19009 if test -n "${ZSH_VERSION+set}" ; then
19010 setopt NO_GLOB_SUBST
19011 fi
19012 # Now quote all the things that may contain metacharacters while being
19013 # careful not to overquote the AC_SUBSTed values. We take copies of the
19014 # variables and quote the copies for generation of the libtool script.
19015 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19016 SED SHELL STRIP \
19017 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19018 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19019 deplibs_check_method reload_flag reload_cmds need_locks \
19020 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19021 lt_cv_sys_global_symbol_to_c_name_address \
19022 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19023 old_postinstall_cmds old_postuninstall_cmds \
19024 compiler_GCJ \
19025 CC_GCJ \
19026 LD_GCJ \
19027 lt_prog_compiler_wl_GCJ \
19028 lt_prog_compiler_pic_GCJ \
19029 lt_prog_compiler_static_GCJ \
19030 lt_prog_compiler_no_builtin_flag_GCJ \
19031 export_dynamic_flag_spec_GCJ \
19032 thread_safe_flag_spec_GCJ \
19033 whole_archive_flag_spec_GCJ \
19034 enable_shared_with_static_runtimes_GCJ \
19035 old_archive_cmds_GCJ \
19036 old_archive_from_new_cmds_GCJ \
19037 predep_objects_GCJ \
19038 postdep_objects_GCJ \
19039 predeps_GCJ \
19040 postdeps_GCJ \
19041 compiler_lib_search_path_GCJ \
19042 compiler_lib_search_dirs_GCJ \
19043 archive_cmds_GCJ \
19044 archive_expsym_cmds_GCJ \
19045 postinstall_cmds_GCJ \
19046 postuninstall_cmds_GCJ \
19047 old_archive_from_expsyms_cmds_GCJ \
19048 allow_undefined_flag_GCJ \
19049 no_undefined_flag_GCJ \
19050 export_symbols_cmds_GCJ \
19051 hardcode_libdir_flag_spec_GCJ \
19052 hardcode_libdir_flag_spec_ld_GCJ \
19053 hardcode_libdir_separator_GCJ \
19054 hardcode_automatic_GCJ \
19055 module_cmds_GCJ \
19056 module_expsym_cmds_GCJ \
19057 lt_cv_prog_compiler_c_o_GCJ \
19058 fix_srcfile_path_GCJ \
19059 exclude_expsyms_GCJ \
19060 include_expsyms_GCJ; do
19061
19062 case $var in
19063 old_archive_cmds_GCJ | \
19064 old_archive_from_new_cmds_GCJ | \
19065 archive_cmds_GCJ | \
19066 archive_expsym_cmds_GCJ | \
19067 module_cmds_GCJ | \
19068 module_expsym_cmds_GCJ | \
19069 old_archive_from_expsyms_cmds_GCJ | \
19070 export_symbols_cmds_GCJ | \
19071 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19072 postinstall_cmds | postuninstall_cmds | \
19073 old_postinstall_cmds | old_postuninstall_cmds | \
19074 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19075 # Double-quote double-evaled strings.
19076 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19077 ;;
19078 *)
19079 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19080 ;;
19081 esac
19082 done
19083
19084 case $lt_echo in
19085 *'\$0 --fallback-echo"')
19086 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19087 ;;
19088 esac
19089
19090 cfgfile="$ofile"
19091
19092 cat <<__EOF__ >> "$cfgfile"
19093 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19094
19095 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19096
19097 # Shell to use when invoking shell scripts.
19098 SHELL=$lt_SHELL
19099
19100 # Whether or not to build shared libraries.
19101 build_libtool_libs=$enable_shared
19102
19103 # Whether or not to build static libraries.
19104 build_old_libs=$enable_static
19105
19106 # Whether or not to add -lc for building shared libraries.
19107 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19108
19109 # Whether or not to disallow shared libs when runtime libs are static
19110 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19111
19112 # Whether or not to optimize for fast installation.
19113 fast_install=$enable_fast_install
19114
19115 # The host system.
19116 host_alias=$host_alias
19117 host=$host
19118 host_os=$host_os
19119
19120 # The build system.
19121 build_alias=$build_alias
19122 build=$build
19123 build_os=$build_os
19124
19125 # An echo program that does not interpret backslashes.
19126 echo=$lt_echo
19127
19128 # The archiver.
19129 AR=$lt_AR
19130 AR_FLAGS=$lt_AR_FLAGS
19131
19132 # A C compiler.
19133 LTCC=$lt_LTCC
19134
19135 # LTCC compiler flags.
19136 LTCFLAGS=$lt_LTCFLAGS
19137
19138 # A language-specific compiler.
19139 CC=$lt_compiler_GCJ
19140
19141 # Is the compiler the GNU C compiler?
19142 with_gcc=$GCC_GCJ
19143
19144 # An ERE matcher.
19145 EGREP=$lt_EGREP
19146
19147 # The linker used to build libraries.
19148 LD=$lt_LD_GCJ
19149
19150 # Whether we need hard or soft links.
19151 LN_S=$lt_LN_S
19152
19153 # A BSD-compatible nm program.
19154 NM=$lt_NM
19155
19156 # A symbol stripping program
19157 STRIP=$lt_STRIP
19158
19159 # Used to examine libraries when file_magic_cmd begins "file"
19160 MAGIC_CMD=$MAGIC_CMD
19161
19162 # Used on cygwin: DLL creation program.
19163 DLLTOOL="$DLLTOOL"
19164
19165 # Used on cygwin: object dumper.
19166 OBJDUMP="$OBJDUMP"
19167
19168 # Used on cygwin: assembler.
19169 AS="$AS"
19170
19171 # The name of the directory that contains temporary libtool files.
19172 objdir=$objdir
19173
19174 # How to create reloadable object files.
19175 reload_flag=$lt_reload_flag
19176 reload_cmds=$lt_reload_cmds
19177
19178 # How to pass a linker flag through the compiler.
19179 wl=$lt_lt_prog_compiler_wl_GCJ
19180
19181 # Object file suffix (normally "o").
19182 objext="$ac_objext"
19183
19184 # Old archive suffix (normally "a").
19185 libext="$libext"
19186
19187 # Shared library suffix (normally ".so").
19188 shrext_cmds='$shrext_cmds'
19189
19190 # Executable file suffix (normally "").
19191 exeext="$exeext"
19192
19193 # Additional compiler flags for building library objects.
19194 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19195 pic_mode=$pic_mode
19196
19197 # What is the maximum length of a command?
19198 max_cmd_len=$lt_cv_sys_max_cmd_len
19199
19200 # Does compiler simultaneously support -c and -o options?
19201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19202
19203 # Must we lock files when doing compilation?
19204 need_locks=$lt_need_locks
19205
19206 # Do we need the lib prefix for modules?
19207 need_lib_prefix=$need_lib_prefix
19208
19209 # Do we need a version for libraries?
19210 need_version=$need_version
19211
19212 # Whether dlopen is supported.
19213 dlopen_support=$enable_dlopen
19214
19215 # Whether dlopen of programs is supported.
19216 dlopen_self=$enable_dlopen_self
19217
19218 # Whether dlopen of statically linked programs is supported.
19219 dlopen_self_static=$enable_dlopen_self_static
19220
19221 # Compiler flag to prevent dynamic linking.
19222 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19223
19224 # Compiler flag to turn off builtin functions.
19225 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19226
19227 # Compiler flag to allow reflexive dlopens.
19228 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19229
19230 # Compiler flag to generate shared objects directly from archives.
19231 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19232
19233 # Compiler flag to generate thread-safe objects.
19234 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19235
19236 # Library versioning type.
19237 version_type=$version_type
19238
19239 # Format of library name prefix.
19240 libname_spec=$lt_libname_spec
19241
19242 # List of archive names. First name is the real one, the rest are links.
19243 # The last name is the one that the linker finds with -lNAME.
19244 library_names_spec=$lt_library_names_spec
19245
19246 # The coded name of the library, if different from the real name.
19247 soname_spec=$lt_soname_spec
19248
19249 # Commands used to build and install an old-style archive.
19250 RANLIB=$lt_RANLIB
19251 old_archive_cmds=$lt_old_archive_cmds_GCJ
19252 old_postinstall_cmds=$lt_old_postinstall_cmds
19253 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19254
19255 # Create an old-style archive from a shared archive.
19256 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19257
19258 # Create a temporary old-style archive to link instead of a shared archive.
19259 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19260
19261 # Commands used to build and install a shared archive.
19262 archive_cmds=$lt_archive_cmds_GCJ
19263 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19264 postinstall_cmds=$lt_postinstall_cmds
19265 postuninstall_cmds=$lt_postuninstall_cmds
19266
19267 # Commands used to build a loadable module (assumed same as above if empty)
19268 module_cmds=$lt_module_cmds_GCJ
19269 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19270
19271 # Commands to strip libraries.
19272 old_striplib=$lt_old_striplib
19273 striplib=$lt_striplib
19274
19275 # Dependencies to place before the objects being linked to create a
19276 # shared library.
19277 predep_objects=$lt_predep_objects_GCJ
19278
19279 # Dependencies to place after the objects being linked to create a
19280 # shared library.
19281 postdep_objects=$lt_postdep_objects_GCJ
19282
19283 # Dependencies to place before the objects being linked to create a
19284 # shared library.
19285 predeps=$lt_predeps_GCJ
19286
19287 # Dependencies to place after the objects being linked to create a
19288 # shared library.
19289 postdeps=$lt_postdeps_GCJ
19290
19291 # The directories searched by this compiler when creating a shared
19292 # library
19293 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19294
19295 # The library search path used internally by the compiler when linking
19296 # a shared library.
19297 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19298
19299 # Method to check whether dependent libraries are shared objects.
19300 deplibs_check_method=$lt_deplibs_check_method
19301
19302 # Command to use when deplibs_check_method == file_magic.
19303 file_magic_cmd=$lt_file_magic_cmd
19304
19305 # Flag that allows shared libraries with undefined symbols to be built.
19306 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19307
19308 # Flag that forces no undefined symbols.
19309 no_undefined_flag=$lt_no_undefined_flag_GCJ
19310
19311 # Commands used to finish a libtool library installation in a directory.
19312 finish_cmds=$lt_finish_cmds
19313
19314 # Same as above, but a single script fragment to be evaled but not shown.
19315 finish_eval=$lt_finish_eval
19316
19317 # Take the output of nm and produce a listing of raw symbols and C names.
19318 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19319
19320 # Transform the output of nm in a proper C declaration
19321 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19322
19323 # Transform the output of nm in a C name address pair
19324 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19325
19326 # This is the shared library runtime path variable.
19327 runpath_var=$runpath_var
19328
19329 # This is the shared library path variable.
19330 shlibpath_var=$shlibpath_var
19331
19332 # Is shlibpath searched before the hard-coded library search path?
19333 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19334
19335 # How to hardcode a shared library path into an executable.
19336 hardcode_action=$hardcode_action_GCJ
19337
19338 # Whether we should hardcode library paths into libraries.
19339 hardcode_into_libs=$hardcode_into_libs
19340
19341 # Flag to hardcode \$libdir into a binary during linking.
19342 # This must work even if \$libdir does not exist.
19343 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19344
19345 # If ld is used when linking, flag to hardcode \$libdir into
19346 # a binary during linking. This must work even if \$libdir does
19347 # not exist.
19348 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19349
19350 # Whether we need a single -rpath flag with a separated argument.
19351 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19352
19353 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19354 # resulting binary.
19355 hardcode_direct=$hardcode_direct_GCJ
19356
19357 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19358 # resulting binary.
19359 hardcode_minus_L=$hardcode_minus_L_GCJ
19360
19361 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19362 # the resulting binary.
19363 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19364
19365 # Set to yes if building a shared library automatically hardcodes DIR into the library
19366 # and all subsequent libraries and executables linked against it.
19367 hardcode_automatic=$hardcode_automatic_GCJ
19368
19369 # Variables whose values should be saved in libtool wrapper scripts and
19370 # restored at relink time.
19371 variables_saved_for_relink="$variables_saved_for_relink"
19372
19373 # Whether libtool must link a program against all its dependency libraries.
19374 link_all_deplibs=$link_all_deplibs_GCJ
19375
19376 # Compile-time system search path for libraries
19377 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19378
19379 # Run-time system search path for libraries
19380 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19381
19382 # Fix the shell variable \$srcfile for the compiler.
19383 fix_srcfile_path=$lt_fix_srcfile_path
19384
19385 # Set to yes if exported symbols are required.
19386 always_export_symbols=$always_export_symbols_GCJ
19387
19388 # The commands to list exported symbols.
19389 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19390
19391 # The commands to extract the exported symbol list from a shared archive.
19392 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19393
19394 # Symbols that should not be listed in the preloaded symbols.
19395 exclude_expsyms=$lt_exclude_expsyms_GCJ
19396
19397 # Symbols that must always be exported.
19398 include_expsyms=$lt_include_expsyms_GCJ
19399
19400 # ### END LIBTOOL TAG CONFIG: $tagname
19401
19402 __EOF__
19403
19404
19405 else
19406 # If there is no Makefile yet, we rely on a make rule to execute
19407 # `config.status --recheck' to rerun these tests and create the
19408 # libtool script then.
19409 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19410 if test -f "$ltmain_in"; then
19411 test -f Makefile && make "$ltmain"
19412 fi
19413 fi
19414
19415
19416 ac_ext=c
19417 ac_cpp='$CPP $CPPFLAGS'
19418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19421
19422 CC="$lt_save_CC"
19423
19424 else
19425 tagname=""
19426 fi
19427 ;;
19428
19429 RC)
19430
19431
19432 # Source file extension for RC test sources.
19433 ac_ext=rc
19434
19435 # Object file extension for compiled RC test sources.
19436 objext=o
19437 objext_RC=$objext
19438
19439 # Code to be used in simple compile tests
19440 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19441
19442 # Code to be used in simple link tests
19443 lt_simple_link_test_code="$lt_simple_compile_test_code"
19444
19445 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19446
19447 # If no C compiler was specified, use CC.
19448 LTCC=${LTCC-"$CC"}
19449
19450 # If no C compiler flags were specified, use CFLAGS.
19451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19452
19453 # Allow CC to be a program name with arguments.
19454 compiler=$CC
19455
19456
19457 # save warnings/boilerplate of simple test code
19458 ac_outfile=conftest.$ac_objext
19459 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19460 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19461 _lt_compiler_boilerplate=`cat conftest.err`
19462 $rm conftest*
19463
19464 ac_outfile=conftest.$ac_objext
19465 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19466 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19467 _lt_linker_boilerplate=`cat conftest.err`
19468 $rm -r conftest*
19469
19470
19471 # Allow CC to be a program name with arguments.
19472 lt_save_CC="$CC"
19473 CC=${RC-"windres"}
19474 compiler=$CC
19475 compiler_RC=$CC
19476 for cc_temp in $compiler""; do
19477 case $cc_temp in
19478 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19479 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19480 \-*) ;;
19481 *) break;;
19482 esac
19483 done
19484 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19485
19486 lt_cv_prog_compiler_c_o_RC=yes
19487
19488 # The else clause should only fire when bootstrapping the
19489 # libtool distribution, otherwise you forgot to ship ltmain.sh
19490 # with your package, and you will get complaints that there are
19491 # no rules to generate ltmain.sh.
19492 if test -f "$ltmain"; then
19493 # See if we are running on zsh, and set the options which allow our commands through
19494 # without removal of \ escapes.
19495 if test -n "${ZSH_VERSION+set}" ; then
19496 setopt NO_GLOB_SUBST
19497 fi
19498 # Now quote all the things that may contain metacharacters while being
19499 # careful not to overquote the AC_SUBSTed values. We take copies of the
19500 # variables and quote the copies for generation of the libtool script.
19501 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19502 SED SHELL STRIP \
19503 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19504 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19505 deplibs_check_method reload_flag reload_cmds need_locks \
19506 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19507 lt_cv_sys_global_symbol_to_c_name_address \
19508 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19509 old_postinstall_cmds old_postuninstall_cmds \
19510 compiler_RC \
19511 CC_RC \
19512 LD_RC \
19513 lt_prog_compiler_wl_RC \
19514 lt_prog_compiler_pic_RC \
19515 lt_prog_compiler_static_RC \
19516 lt_prog_compiler_no_builtin_flag_RC \
19517 export_dynamic_flag_spec_RC \
19518 thread_safe_flag_spec_RC \
19519 whole_archive_flag_spec_RC \
19520 enable_shared_with_static_runtimes_RC \
19521 old_archive_cmds_RC \
19522 old_archive_from_new_cmds_RC \
19523 predep_objects_RC \
19524 postdep_objects_RC \
19525 predeps_RC \
19526 postdeps_RC \
19527 compiler_lib_search_path_RC \
19528 compiler_lib_search_dirs_RC \
19529 archive_cmds_RC \
19530 archive_expsym_cmds_RC \
19531 postinstall_cmds_RC \
19532 postuninstall_cmds_RC \
19533 old_archive_from_expsyms_cmds_RC \
19534 allow_undefined_flag_RC \
19535 no_undefined_flag_RC \
19536 export_symbols_cmds_RC \
19537 hardcode_libdir_flag_spec_RC \
19538 hardcode_libdir_flag_spec_ld_RC \
19539 hardcode_libdir_separator_RC \
19540 hardcode_automatic_RC \
19541 module_cmds_RC \
19542 module_expsym_cmds_RC \
19543 lt_cv_prog_compiler_c_o_RC \
19544 fix_srcfile_path_RC \
19545 exclude_expsyms_RC \
19546 include_expsyms_RC; do
19547
19548 case $var in
19549 old_archive_cmds_RC | \
19550 old_archive_from_new_cmds_RC | \
19551 archive_cmds_RC | \
19552 archive_expsym_cmds_RC | \
19553 module_cmds_RC | \
19554 module_expsym_cmds_RC | \
19555 old_archive_from_expsyms_cmds_RC | \
19556 export_symbols_cmds_RC | \
19557 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19558 postinstall_cmds | postuninstall_cmds | \
19559 old_postinstall_cmds | old_postuninstall_cmds | \
19560 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19561 # Double-quote double-evaled strings.
19562 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19563 ;;
19564 *)
19565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19566 ;;
19567 esac
19568 done
19569
19570 case $lt_echo in
19571 *'\$0 --fallback-echo"')
19572 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19573 ;;
19574 esac
19575
19576 cfgfile="$ofile"
19577
19578 cat <<__EOF__ >> "$cfgfile"
19579 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19580
19581 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19582
19583 # Shell to use when invoking shell scripts.
19584 SHELL=$lt_SHELL
19585
19586 # Whether or not to build shared libraries.
19587 build_libtool_libs=$enable_shared
19588
19589 # Whether or not to build static libraries.
19590 build_old_libs=$enable_static
19591
19592 # Whether or not to add -lc for building shared libraries.
19593 build_libtool_need_lc=$archive_cmds_need_lc_RC
19594
19595 # Whether or not to disallow shared libs when runtime libs are static
19596 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19597
19598 # Whether or not to optimize for fast installation.
19599 fast_install=$enable_fast_install
19600
19601 # The host system.
19602 host_alias=$host_alias
19603 host=$host
19604 host_os=$host_os
19605
19606 # The build system.
19607 build_alias=$build_alias
19608 build=$build
19609 build_os=$build_os
19610
19611 # An echo program that does not interpret backslashes.
19612 echo=$lt_echo
19613
19614 # The archiver.
19615 AR=$lt_AR
19616 AR_FLAGS=$lt_AR_FLAGS
19617
19618 # A C compiler.
19619 LTCC=$lt_LTCC
19620
19621 # LTCC compiler flags.
19622 LTCFLAGS=$lt_LTCFLAGS
19623
19624 # A language-specific compiler.
19625 CC=$lt_compiler_RC
19626
19627 # Is the compiler the GNU C compiler?
19628 with_gcc=$GCC_RC
19629
19630 # An ERE matcher.
19631 EGREP=$lt_EGREP
19632
19633 # The linker used to build libraries.
19634 LD=$lt_LD_RC
19635
19636 # Whether we need hard or soft links.
19637 LN_S=$lt_LN_S
19638
19639 # A BSD-compatible nm program.
19640 NM=$lt_NM
19641
19642 # A symbol stripping program
19643 STRIP=$lt_STRIP
19644
19645 # Used to examine libraries when file_magic_cmd begins "file"
19646 MAGIC_CMD=$MAGIC_CMD
19647
19648 # Used on cygwin: DLL creation program.
19649 DLLTOOL="$DLLTOOL"
19650
19651 # Used on cygwin: object dumper.
19652 OBJDUMP="$OBJDUMP"
19653
19654 # Used on cygwin: assembler.
19655 AS="$AS"
19656
19657 # The name of the directory that contains temporary libtool files.
19658 objdir=$objdir
19659
19660 # How to create reloadable object files.
19661 reload_flag=$lt_reload_flag
19662 reload_cmds=$lt_reload_cmds
19663
19664 # How to pass a linker flag through the compiler.
19665 wl=$lt_lt_prog_compiler_wl_RC
19666
19667 # Object file suffix (normally "o").
19668 objext="$ac_objext"
19669
19670 # Old archive suffix (normally "a").
19671 libext="$libext"
19672
19673 # Shared library suffix (normally ".so").
19674 shrext_cmds='$shrext_cmds'
19675
19676 # Executable file suffix (normally "").
19677 exeext="$exeext"
19678
19679 # Additional compiler flags for building library objects.
19680 pic_flag=$lt_lt_prog_compiler_pic_RC
19681 pic_mode=$pic_mode
19682
19683 # What is the maximum length of a command?
19684 max_cmd_len=$lt_cv_sys_max_cmd_len
19685
19686 # Does compiler simultaneously support -c and -o options?
19687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19688
19689 # Must we lock files when doing compilation?
19690 need_locks=$lt_need_locks
19691
19692 # Do we need the lib prefix for modules?
19693 need_lib_prefix=$need_lib_prefix
19694
19695 # Do we need a version for libraries?
19696 need_version=$need_version
19697
19698 # Whether dlopen is supported.
19699 dlopen_support=$enable_dlopen
19700
19701 # Whether dlopen of programs is supported.
19702 dlopen_self=$enable_dlopen_self
19703
19704 # Whether dlopen of statically linked programs is supported.
19705 dlopen_self_static=$enable_dlopen_self_static
19706
19707 # Compiler flag to prevent dynamic linking.
19708 link_static_flag=$lt_lt_prog_compiler_static_RC
19709
19710 # Compiler flag to turn off builtin functions.
19711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19712
19713 # Compiler flag to allow reflexive dlopens.
19714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19715
19716 # Compiler flag to generate shared objects directly from archives.
19717 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19718
19719 # Compiler flag to generate thread-safe objects.
19720 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19721
19722 # Library versioning type.
19723 version_type=$version_type
19724
19725 # Format of library name prefix.
19726 libname_spec=$lt_libname_spec
19727
19728 # List of archive names. First name is the real one, the rest are links.
19729 # The last name is the one that the linker finds with -lNAME.
19730 library_names_spec=$lt_library_names_spec
19731
19732 # The coded name of the library, if different from the real name.
19733 soname_spec=$lt_soname_spec
19734
19735 # Commands used to build and install an old-style archive.
19736 RANLIB=$lt_RANLIB
19737 old_archive_cmds=$lt_old_archive_cmds_RC
19738 old_postinstall_cmds=$lt_old_postinstall_cmds
19739 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19740
19741 # Create an old-style archive from a shared archive.
19742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19743
19744 # Create a temporary old-style archive to link instead of a shared archive.
19745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19746
19747 # Commands used to build and install a shared archive.
19748 archive_cmds=$lt_archive_cmds_RC
19749 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19750 postinstall_cmds=$lt_postinstall_cmds
19751 postuninstall_cmds=$lt_postuninstall_cmds
19752
19753 # Commands used to build a loadable module (assumed same as above if empty)
19754 module_cmds=$lt_module_cmds_RC
19755 module_expsym_cmds=$lt_module_expsym_cmds_RC
19756
19757 # Commands to strip libraries.
19758 old_striplib=$lt_old_striplib
19759 striplib=$lt_striplib
19760
19761 # Dependencies to place before the objects being linked to create a
19762 # shared library.
19763 predep_objects=$lt_predep_objects_RC
19764
19765 # Dependencies to place after the objects being linked to create a
19766 # shared library.
19767 postdep_objects=$lt_postdep_objects_RC
19768
19769 # Dependencies to place before the objects being linked to create a
19770 # shared library.
19771 predeps=$lt_predeps_RC
19772
19773 # Dependencies to place after the objects being linked to create a
19774 # shared library.
19775 postdeps=$lt_postdeps_RC
19776
19777 # The directories searched by this compiler when creating a shared
19778 # library
19779 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19780
19781 # The library search path used internally by the compiler when linking
19782 # a shared library.
19783 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19784
19785 # Method to check whether dependent libraries are shared objects.
19786 deplibs_check_method=$lt_deplibs_check_method
19787
19788 # Command to use when deplibs_check_method == file_magic.
19789 file_magic_cmd=$lt_file_magic_cmd
19790
19791 # Flag that allows shared libraries with undefined symbols to be built.
19792 allow_undefined_flag=$lt_allow_undefined_flag_RC
19793
19794 # Flag that forces no undefined symbols.
19795 no_undefined_flag=$lt_no_undefined_flag_RC
19796
19797 # Commands used to finish a libtool library installation in a directory.
19798 finish_cmds=$lt_finish_cmds
19799
19800 # Same as above, but a single script fragment to be evaled but not shown.
19801 finish_eval=$lt_finish_eval
19802
19803 # Take the output of nm and produce a listing of raw symbols and C names.
19804 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19805
19806 # Transform the output of nm in a proper C declaration
19807 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19808
19809 # Transform the output of nm in a C name address pair
19810 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19811
19812 # This is the shared library runtime path variable.
19813 runpath_var=$runpath_var
19814
19815 # This is the shared library path variable.
19816 shlibpath_var=$shlibpath_var
19817
19818 # Is shlibpath searched before the hard-coded library search path?
19819 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19820
19821 # How to hardcode a shared library path into an executable.
19822 hardcode_action=$hardcode_action_RC
19823
19824 # Whether we should hardcode library paths into libraries.
19825 hardcode_into_libs=$hardcode_into_libs
19826
19827 # Flag to hardcode \$libdir into a binary during linking.
19828 # This must work even if \$libdir does not exist.
19829 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19830
19831 # If ld is used when linking, flag to hardcode \$libdir into
19832 # a binary during linking. This must work even if \$libdir does
19833 # not exist.
19834 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19835
19836 # Whether we need a single -rpath flag with a separated argument.
19837 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19838
19839 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19840 # resulting binary.
19841 hardcode_direct=$hardcode_direct_RC
19842
19843 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19844 # resulting binary.
19845 hardcode_minus_L=$hardcode_minus_L_RC
19846
19847 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19848 # the resulting binary.
19849 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19850
19851 # Set to yes if building a shared library automatically hardcodes DIR into the library
19852 # and all subsequent libraries and executables linked against it.
19853 hardcode_automatic=$hardcode_automatic_RC
19854
19855 # Variables whose values should be saved in libtool wrapper scripts and
19856 # restored at relink time.
19857 variables_saved_for_relink="$variables_saved_for_relink"
19858
19859 # Whether libtool must link a program against all its dependency libraries.
19860 link_all_deplibs=$link_all_deplibs_RC
19861
19862 # Compile-time system search path for libraries
19863 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19864
19865 # Run-time system search path for libraries
19866 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19867
19868 # Fix the shell variable \$srcfile for the compiler.
19869 fix_srcfile_path=$lt_fix_srcfile_path
19870
19871 # Set to yes if exported symbols are required.
19872 always_export_symbols=$always_export_symbols_RC
19873
19874 # The commands to list exported symbols.
19875 export_symbols_cmds=$lt_export_symbols_cmds_RC
19876
19877 # The commands to extract the exported symbol list from a shared archive.
19878 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19879
19880 # Symbols that should not be listed in the preloaded symbols.
19881 exclude_expsyms=$lt_exclude_expsyms_RC
19882
19883 # Symbols that must always be exported.
19884 include_expsyms=$lt_include_expsyms_RC
19885
19886 # ### END LIBTOOL TAG CONFIG: $tagname
19887
19888 __EOF__
19889
19890
19891 else
19892 # If there is no Makefile yet, we rely on a make rule to execute
19893 # `config.status --recheck' to rerun these tests and create the
19894 # libtool script then.
19895 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19896 if test -f "$ltmain_in"; then
19897 test -f Makefile && make "$ltmain"
19898 fi
19899 fi
19900
19901
19902 ac_ext=c
19903 ac_cpp='$CPP $CPPFLAGS'
19904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19907
19908 CC="$lt_save_CC"
19909
19910 ;;
19911
19912 *)
19913 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19914 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19915 { (exit 1); exit 1; }; }
19916 ;;
19917 esac
19918
19919 # Append the new tag name to the list of available tags.
19920 if test -n "$tagname" ; then
19921 available_tags="$available_tags $tagname"
19922 fi
19923 fi
19924 done
19925 IFS="$lt_save_ifs"
19926
19927 # Now substitute the updated list of available tags.
19928 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19929 mv "${ofile}T" "$ofile"
19930 chmod +x "$ofile"
19931 else
19932 rm -f "${ofile}T"
19933 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19934 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19935 { (exit 1); exit 1; }; }
19936 fi
19937 fi
19938
19939
19940
19941 # This can be used to rebuild libtool when needed
19942 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19943
19944 # Always use our own libtool.
19945 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19946
19947 # Prevent multiple expansion
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968 ac_ext=c
19969 ac_cpp='$CPP $CPPFLAGS'
19970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19973 if test -n "$ac_tool_prefix"; then
19974 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19975 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19976 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19977 $as_echo_n "checking for $ac_word... " >&6; }
19978 if test "${ac_cv_prog_CC+set}" = set; then
19979 $as_echo_n "(cached) " >&6
19980 else
19981 if test -n "$CC"; then
19982 ac_cv_prog_CC="$CC" # Let the user override the test.
19983 else
19984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19985 for as_dir in $PATH
19986 do
19987 IFS=$as_save_IFS
19988 test -z "$as_dir" && as_dir=.
19989 for ac_exec_ext in '' $ac_executable_extensions; do
19990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19991 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19992 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19993 break 2
19994 fi
19995 done
19996 done
19997 IFS=$as_save_IFS
19998
19999 fi
20000 fi
20001 CC=$ac_cv_prog_CC
20002 if test -n "$CC"; then
20003 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20004 $as_echo "$CC" >&6; }
20005 else
20006 { $as_echo "$as_me:$LINENO: result: no" >&5
20007 $as_echo "no" >&6; }
20008 fi
20009
20010
20011 fi
20012 if test -z "$ac_cv_prog_CC"; then
20013 ac_ct_CC=$CC
20014 # Extract the first word of "gcc", so it can be a program name with args.
20015 set dummy gcc; ac_word=$2
20016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20017 $as_echo_n "checking for $ac_word... " >&6; }
20018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20019 $as_echo_n "(cached) " >&6
20020 else
20021 if test -n "$ac_ct_CC"; then
20022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20023 else
20024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20025 for as_dir in $PATH
20026 do
20027 IFS=$as_save_IFS
20028 test -z "$as_dir" && as_dir=.
20029 for ac_exec_ext in '' $ac_executable_extensions; do
20030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20031 ac_cv_prog_ac_ct_CC="gcc"
20032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20033 break 2
20034 fi
20035 done
20036 done
20037 IFS=$as_save_IFS
20038
20039 fi
20040 fi
20041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20042 if test -n "$ac_ct_CC"; then
20043 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20044 $as_echo "$ac_ct_CC" >&6; }
20045 else
20046 { $as_echo "$as_me:$LINENO: result: no" >&5
20047 $as_echo "no" >&6; }
20048 fi
20049
20050 if test "x$ac_ct_CC" = x; then
20051 CC=""
20052 else
20053 case $cross_compiling:$ac_tool_warned in
20054 yes:)
20055 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20057 ac_tool_warned=yes ;;
20058 esac
20059 CC=$ac_ct_CC
20060 fi
20061 else
20062 CC="$ac_cv_prog_CC"
20063 fi
20064
20065 if test -z "$CC"; then
20066 if test -n "$ac_tool_prefix"; then
20067 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20068 set dummy ${ac_tool_prefix}cc; ac_word=$2
20069 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20070 $as_echo_n "checking for $ac_word... " >&6; }
20071 if test "${ac_cv_prog_CC+set}" = set; then
20072 $as_echo_n "(cached) " >&6
20073 else
20074 if test -n "$CC"; then
20075 ac_cv_prog_CC="$CC" # Let the user override the test.
20076 else
20077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20078 for as_dir in $PATH
20079 do
20080 IFS=$as_save_IFS
20081 test -z "$as_dir" && as_dir=.
20082 for ac_exec_ext in '' $ac_executable_extensions; do
20083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20084 ac_cv_prog_CC="${ac_tool_prefix}cc"
20085 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20086 break 2
20087 fi
20088 done
20089 done
20090 IFS=$as_save_IFS
20091
20092 fi
20093 fi
20094 CC=$ac_cv_prog_CC
20095 if test -n "$CC"; then
20096 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20097 $as_echo "$CC" >&6; }
20098 else
20099 { $as_echo "$as_me:$LINENO: result: no" >&5
20100 $as_echo "no" >&6; }
20101 fi
20102
20103
20104 fi
20105 fi
20106 if test -z "$CC"; then
20107 # Extract the first word of "cc", so it can be a program name with args.
20108 set dummy cc; ac_word=$2
20109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20110 $as_echo_n "checking for $ac_word... " >&6; }
20111 if test "${ac_cv_prog_CC+set}" = set; then
20112 $as_echo_n "(cached) " >&6
20113 else
20114 if test -n "$CC"; then
20115 ac_cv_prog_CC="$CC" # Let the user override the test.
20116 else
20117 ac_prog_rejected=no
20118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20119 for as_dir in $PATH
20120 do
20121 IFS=$as_save_IFS
20122 test -z "$as_dir" && as_dir=.
20123 for ac_exec_ext in '' $ac_executable_extensions; do
20124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20125 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20126 ac_prog_rejected=yes
20127 continue
20128 fi
20129 ac_cv_prog_CC="cc"
20130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20131 break 2
20132 fi
20133 done
20134 done
20135 IFS=$as_save_IFS
20136
20137 if test $ac_prog_rejected = yes; then
20138 # We found a bogon in the path, so make sure we never use it.
20139 set dummy $ac_cv_prog_CC
20140 shift
20141 if test $# != 0; then
20142 # We chose a different compiler from the bogus one.
20143 # However, it has the same basename, so the bogon will be chosen
20144 # first if we set CC to just the basename; use the full file name.
20145 shift
20146 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20147 fi
20148 fi
20149 fi
20150 fi
20151 CC=$ac_cv_prog_CC
20152 if test -n "$CC"; then
20153 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20154 $as_echo "$CC" >&6; }
20155 else
20156 { $as_echo "$as_me:$LINENO: result: no" >&5
20157 $as_echo "no" >&6; }
20158 fi
20159
20160
20161 fi
20162 if test -z "$CC"; then
20163 if test -n "$ac_tool_prefix"; then
20164 for ac_prog in cl.exe
20165 do
20166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20168 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20169 $as_echo_n "checking for $ac_word... " >&6; }
20170 if test "${ac_cv_prog_CC+set}" = set; then
20171 $as_echo_n "(cached) " >&6
20172 else
20173 if test -n "$CC"; then
20174 ac_cv_prog_CC="$CC" # Let the user override the test.
20175 else
20176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20177 for as_dir in $PATH
20178 do
20179 IFS=$as_save_IFS
20180 test -z "$as_dir" && as_dir=.
20181 for ac_exec_ext in '' $ac_executable_extensions; do
20182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20183 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20185 break 2
20186 fi
20187 done
20188 done
20189 IFS=$as_save_IFS
20190
20191 fi
20192 fi
20193 CC=$ac_cv_prog_CC
20194 if test -n "$CC"; then
20195 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20196 $as_echo "$CC" >&6; }
20197 else
20198 { $as_echo "$as_me:$LINENO: result: no" >&5
20199 $as_echo "no" >&6; }
20200 fi
20201
20202
20203 test -n "$CC" && break
20204 done
20205 fi
20206 if test -z "$CC"; then
20207 ac_ct_CC=$CC
20208 for ac_prog in cl.exe
20209 do
20210 # Extract the first word of "$ac_prog", so it can be a program name with args.
20211 set dummy $ac_prog; ac_word=$2
20212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20213 $as_echo_n "checking for $ac_word... " >&6; }
20214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20215 $as_echo_n "(cached) " >&6
20216 else
20217 if test -n "$ac_ct_CC"; then
20218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20219 else
20220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20221 for as_dir in $PATH
20222 do
20223 IFS=$as_save_IFS
20224 test -z "$as_dir" && as_dir=.
20225 for ac_exec_ext in '' $ac_executable_extensions; do
20226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20227 ac_cv_prog_ac_ct_CC="$ac_prog"
20228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20229 break 2
20230 fi
20231 done
20232 done
20233 IFS=$as_save_IFS
20234
20235 fi
20236 fi
20237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20238 if test -n "$ac_ct_CC"; then
20239 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20240 $as_echo "$ac_ct_CC" >&6; }
20241 else
20242 { $as_echo "$as_me:$LINENO: result: no" >&5
20243 $as_echo "no" >&6; }
20244 fi
20245
20246
20247 test -n "$ac_ct_CC" && break
20248 done
20249
20250 if test "x$ac_ct_CC" = x; then
20251 CC=""
20252 else
20253 case $cross_compiling:$ac_tool_warned in
20254 yes:)
20255 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20257 ac_tool_warned=yes ;;
20258 esac
20259 CC=$ac_ct_CC
20260 fi
20261 fi
20262
20263 fi
20264
20265
20266 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20268 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20269 See \`config.log' for more details." >&5
20270 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20271 See \`config.log' for more details." >&2;}
20272 { (exit 1); exit 1; }; }; }
20273
20274 # Provide some information about the compiler.
20275 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20276 set X $ac_compile
20277 ac_compiler=$2
20278 { (ac_try="$ac_compiler --version >&5"
20279 case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20282 esac
20283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20284 $as_echo "$ac_try_echo") >&5
20285 (eval "$ac_compiler --version >&5") 2>&5
20286 ac_status=$?
20287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }
20289 { (ac_try="$ac_compiler -v >&5"
20290 case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20293 esac
20294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20295 $as_echo "$ac_try_echo") >&5
20296 (eval "$ac_compiler -v >&5") 2>&5
20297 ac_status=$?
20298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }
20300 { (ac_try="$ac_compiler -V >&5"
20301 case "(($ac_try" in
20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20304 esac
20305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20306 $as_echo "$ac_try_echo") >&5
20307 (eval "$ac_compiler -V >&5") 2>&5
20308 ac_status=$?
20309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }
20311
20312 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20313 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20314 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20315 $as_echo_n "(cached) " >&6
20316 else
20317 cat >conftest.$ac_ext <<_ACEOF
20318 /* confdefs.h. */
20319 _ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20323
20324 int
20325 main ()
20326 {
20327 #ifndef __GNUC__
20328 choke me
20329 #endif
20330
20331 ;
20332 return 0;
20333 }
20334 _ACEOF
20335 rm -f conftest.$ac_objext
20336 if { (ac_try="$ac_compile"
20337 case "(($ac_try" in
20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339 *) ac_try_echo=$ac_try;;
20340 esac
20341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20342 $as_echo "$ac_try_echo") >&5
20343 (eval "$ac_compile") 2>conftest.er1
20344 ac_status=$?
20345 grep -v '^ *+' conftest.er1 >conftest.err
20346 rm -f conftest.er1
20347 cat conftest.err >&5
20348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); } && {
20350 test -z "$ac_c_werror_flag" ||
20351 test ! -s conftest.err
20352 } && test -s conftest.$ac_objext; then
20353 ac_compiler_gnu=yes
20354 else
20355 $as_echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20357
20358 ac_compiler_gnu=no
20359 fi
20360
20361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20362 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20363
20364 fi
20365 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20366 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20367 if test $ac_compiler_gnu = yes; then
20368 GCC=yes
20369 else
20370 GCC=
20371 fi
20372 ac_test_CFLAGS=${CFLAGS+set}
20373 ac_save_CFLAGS=$CFLAGS
20374 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20375 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20376 if test "${ac_cv_prog_cc_g+set}" = set; then
20377 $as_echo_n "(cached) " >&6
20378 else
20379 ac_save_c_werror_flag=$ac_c_werror_flag
20380 ac_c_werror_flag=yes
20381 ac_cv_prog_cc_g=no
20382 CFLAGS="-g"
20383 cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h. */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20389
20390 int
20391 main ()
20392 {
20393
20394 ;
20395 return 0;
20396 }
20397 _ACEOF
20398 rm -f conftest.$ac_objext
20399 if { (ac_try="$ac_compile"
20400 case "(($ac_try" in
20401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402 *) ac_try_echo=$ac_try;;
20403 esac
20404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20405 $as_echo "$ac_try_echo") >&5
20406 (eval "$ac_compile") 2>conftest.er1
20407 ac_status=$?
20408 grep -v '^ *+' conftest.er1 >conftest.err
20409 rm -f conftest.er1
20410 cat conftest.err >&5
20411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } && {
20413 test -z "$ac_c_werror_flag" ||
20414 test ! -s conftest.err
20415 } && test -s conftest.$ac_objext; then
20416 ac_cv_prog_cc_g=yes
20417 else
20418 $as_echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20420
20421 CFLAGS=""
20422 cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h. */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20428
20429 int
20430 main ()
20431 {
20432
20433 ;
20434 return 0;
20435 }
20436 _ACEOF
20437 rm -f conftest.$ac_objext
20438 if { (ac_try="$ac_compile"
20439 case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20442 esac
20443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20444 $as_echo "$ac_try_echo") >&5
20445 (eval "$ac_compile") 2>conftest.er1
20446 ac_status=$?
20447 grep -v '^ *+' conftest.er1 >conftest.err
20448 rm -f conftest.er1
20449 cat conftest.err >&5
20450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } && {
20452 test -z "$ac_c_werror_flag" ||
20453 test ! -s conftest.err
20454 } && test -s conftest.$ac_objext; then
20455 :
20456 else
20457 $as_echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20459
20460 ac_c_werror_flag=$ac_save_c_werror_flag
20461 CFLAGS="-g"
20462 cat >conftest.$ac_ext <<_ACEOF
20463 /* confdefs.h. */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h. */
20468
20469 int
20470 main ()
20471 {
20472
20473 ;
20474 return 0;
20475 }
20476 _ACEOF
20477 rm -f conftest.$ac_objext
20478 if { (ac_try="$ac_compile"
20479 case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20482 esac
20483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20484 $as_echo "$ac_try_echo") >&5
20485 (eval "$ac_compile") 2>conftest.er1
20486 ac_status=$?
20487 grep -v '^ *+' conftest.er1 >conftest.err
20488 rm -f conftest.er1
20489 cat conftest.err >&5
20490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } && {
20492 test -z "$ac_c_werror_flag" ||
20493 test ! -s conftest.err
20494 } && test -s conftest.$ac_objext; then
20495 ac_cv_prog_cc_g=yes
20496 else
20497 $as_echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20499
20500
20501 fi
20502
20503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20504 fi
20505
20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507 fi
20508
20509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20510 ac_c_werror_flag=$ac_save_c_werror_flag
20511 fi
20512 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20513 $as_echo "$ac_cv_prog_cc_g" >&6; }
20514 if test "$ac_test_CFLAGS" = set; then
20515 CFLAGS=$ac_save_CFLAGS
20516 elif test $ac_cv_prog_cc_g = yes; then
20517 if test "$GCC" = yes; then
20518 CFLAGS="-g -O2"
20519 else
20520 CFLAGS="-g"
20521 fi
20522 else
20523 if test "$GCC" = yes; then
20524 CFLAGS="-O2"
20525 else
20526 CFLAGS=
20527 fi
20528 fi
20529 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20530 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20531 if test "${ac_cv_prog_cc_c89+set}" = set; then
20532 $as_echo_n "(cached) " >&6
20533 else
20534 ac_cv_prog_cc_c89=no
20535 ac_save_CC=$CC
20536 cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h. */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 #include <stdarg.h>
20543 #include <stdio.h>
20544 #include <sys/types.h>
20545 #include <sys/stat.h>
20546 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20547 struct buf { int x; };
20548 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20549 static char *e (p, i)
20550 char **p;
20551 int i;
20552 {
20553 return p[i];
20554 }
20555 static char *f (char * (*g) (char **, int), char **p, ...)
20556 {
20557 char *s;
20558 va_list v;
20559 va_start (v,p);
20560 s = g (p, va_arg (v,int));
20561 va_end (v);
20562 return s;
20563 }
20564
20565 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20566 function prototypes and stuff, but not '\xHH' hex character constants.
20567 These don't provoke an error unfortunately, instead are silently treated
20568 as 'x'. The following induces an error, until -std is added to get
20569 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20570 array size at least. It's necessary to write '\x00'==0 to get something
20571 that's true only with -std. */
20572 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20573
20574 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20575 inside strings and character constants. */
20576 #define FOO(x) 'x'
20577 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20578
20579 int test (int i, double x);
20580 struct s1 {int (*f) (int a);};
20581 struct s2 {int (*f) (double a);};
20582 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20583 int argc;
20584 char **argv;
20585 int
20586 main ()
20587 {
20588 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20589 ;
20590 return 0;
20591 }
20592 _ACEOF
20593 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20594 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20595 do
20596 CC="$ac_save_CC $ac_arg"
20597 rm -f conftest.$ac_objext
20598 if { (ac_try="$ac_compile"
20599 case "(($ac_try" in
20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601 *) ac_try_echo=$ac_try;;
20602 esac
20603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20604 $as_echo "$ac_try_echo") >&5
20605 (eval "$ac_compile") 2>conftest.er1
20606 ac_status=$?
20607 grep -v '^ *+' conftest.er1 >conftest.err
20608 rm -f conftest.er1
20609 cat conftest.err >&5
20610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } && {
20612 test -z "$ac_c_werror_flag" ||
20613 test ! -s conftest.err
20614 } && test -s conftest.$ac_objext; then
20615 ac_cv_prog_cc_c89=$ac_arg
20616 else
20617 $as_echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20619
20620
20621 fi
20622
20623 rm -f core conftest.err conftest.$ac_objext
20624 test "x$ac_cv_prog_cc_c89" != "xno" && break
20625 done
20626 rm -f conftest.$ac_ext
20627 CC=$ac_save_CC
20628
20629 fi
20630 # AC_CACHE_VAL
20631 case "x$ac_cv_prog_cc_c89" in
20632 x)
20633 { $as_echo "$as_me:$LINENO: result: none needed" >&5
20634 $as_echo "none needed" >&6; } ;;
20635 xno)
20636 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20637 $as_echo "unsupported" >&6; } ;;
20638 *)
20639 CC="$CC $ac_cv_prog_cc_c89"
20640 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20641 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20642 esac
20643
20644
20645 ac_ext=c
20646 ac_cpp='$CPP $CPPFLAGS'
20647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20650
20651 depcc="$CC" am_compiler_list=
20652
20653 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20654 $as_echo_n "checking dependency style of $depcc... " >&6; }
20655 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20656 $as_echo_n "(cached) " >&6
20657 else
20658 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20659 # We make a subdir and do the tests there. Otherwise we can end up
20660 # making bogus files that we don't know about and never remove. For
20661 # instance it was reported that on HP-UX the gcc test will end up
20662 # making a dummy file named `D' -- because `-MD' means `put the output
20663 # in D'.
20664 mkdir conftest.dir
20665 # Copy depcomp to subdir because otherwise we won't find it if we're
20666 # using a relative directory.
20667 cp "$am_depcomp" conftest.dir
20668 cd conftest.dir
20669 # We will build objects and dependencies in a subdirectory because
20670 # it helps to detect inapplicable dependency modes. For instance
20671 # both Tru64's cc and ICC support -MD to output dependencies as a
20672 # side effect of compilation, but ICC will put the dependencies in
20673 # the current directory while Tru64 will put them in the object
20674 # directory.
20675 mkdir sub
20676
20677 am_cv_CC_dependencies_compiler_type=none
20678 if test "$am_compiler_list" = ""; then
20679 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20680 fi
20681 for depmode in $am_compiler_list; do
20682 # Setup a source with many dependencies, because some compilers
20683 # like to wrap large dependency lists on column 80 (with \), and
20684 # we should not choose a depcomp mode which is confused by this.
20685 #
20686 # We need to recreate these files for each test, as the compiler may
20687 # overwrite some of them when testing with obscure command lines.
20688 # This happens at least with the AIX C compiler.
20689 : > sub/conftest.c
20690 for i in 1 2 3 4 5 6; do
20691 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20692 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20693 # Solaris 8's {/usr,}/bin/sh.
20694 touch sub/conftst$i.h
20695 done
20696 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20697
20698 case $depmode in
20699 nosideeffect)
20700 # after this tag, mechanisms are not by side-effect, so they'll
20701 # only be used when explicitly requested
20702 if test "x$enable_dependency_tracking" = xyes; then
20703 continue
20704 else
20705 break
20706 fi
20707 ;;
20708 none) break ;;
20709 esac
20710 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20711 # mode. It turns out that the SunPro C++ compiler does not properly
20712 # handle `-M -o', and we need to detect this.
20713 if depmode=$depmode \
20714 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20715 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20716 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20717 >/dev/null 2>conftest.err &&
20718 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20719 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20720 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20721 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20722 # icc doesn't choke on unknown options, it will just issue warnings
20723 # or remarks (even with -Werror). So we grep stderr for any message
20724 # that says an option was ignored or not supported.
20725 # When given -MP, icc 7.0 and 7.1 complain thusly:
20726 # icc: Command line warning: ignoring option '-M'; no argument required
20727 # The diagnosis changed in icc 8.0:
20728 # icc: Command line remark: option '-MP' not supported
20729 if (grep 'ignoring option' conftest.err ||
20730 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20731 am_cv_CC_dependencies_compiler_type=$depmode
20732 break
20733 fi
20734 fi
20735 done
20736
20737 cd ..
20738 rm -rf conftest.dir
20739 else
20740 am_cv_CC_dependencies_compiler_type=none
20741 fi
20742
20743 fi
20744 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20745 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20746 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20747
20748 if
20749 test "x$enable_dependency_tracking" != xno \
20750 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20751 am__fastdepCC_TRUE=
20752 am__fastdepCC_FALSE='#'
20753 else
20754 am__fastdepCC_TRUE='#'
20755 am__fastdepCC_FALSE=
20756 fi
20757
20758
20759
20760
20761
20762
20763 #AC_DEFINE(XFree86LOADER,1,[Stub define for loadable drivers])
20764 #
20765 #AC_ARG_ENABLE(XINPUT, AS_HELP_STRING([--enable-xinput],
20766 # [Build XInput support (default: yes)]),
20767 # [XINPUT=$enableval],[XINPUT=yes])
20768 #AM_CONDITIONAL(XINPUT, test "x$XINPUT" = "xyes")
20769 #if test "x$XINPUT" = "xyes" ; then
20770 # AC_DEFINE(XINPUT,1,[Enable XInput support])
20771 #fi
20772 #
20773 #AC_ARG_ENABLE(XKB, AS_HELP_STRING([--enable-xkb],
20774 # [Build XKB support (default: yes)]),
20775 # [XKB=$enableval],[XKB=yes])
20776 #AM_CONDITIONAL(XKB, test "x$XKB" = "xyes")
20777 #if test "x$XKB" = "xyes" ; then
20778 # AC_DEFINE(XKB,1,[Enable XKB support])
20779 #fi
20780
20781
20782 # Check whether --with-xorg-module-dir was given.
20783 if test "${with_xorg_module_dir+set}" = set; then
20784 withval=$with_xorg_module_dir; moduledir="$withval"
20785 else
20786 moduledir="$libdir/xorg/modules"
20787 fi
20788
20789 inputdir=${moduledir}/input
20790
20791
20792
20793 # Check whether --with-hal-bin-dir was given.
20794 if test "${with_hal_bin_dir+set}" = set; then
20795 withval=$with_hal_bin_dir; halbindir="$withval"
20796 else
20797 halbindir="$bindir"
20798 fi
20799
20800 HAL_BIN_DIR=${halbindir}
20801
20802
20803
20804 # Check whether --with-hal-callouts-dir was given.
20805 if test "${with_hal_callouts_dir+set}" = set; then
20806 withval=$with_hal_callouts_dir; halcalloutsdir="$withval"
20807 else
20808 halcalloutsdir="$libdir/hal"
20809 fi
20810
20811 HAL_CALLOUTS_DIR=${halcalloutsdir}
20812
20813
20814
20815 # Check whether --with-hal-fdi-dir was given.
20816 if test "${with_hal_fdi_dir+set}" = set; then
20817 withval=$with_hal_fdi_dir; halfdidir="$withval"
20818 else
20819 halfdidir="$datadir/hal/fdi/policy/20thirdparty"
20820 fi
20821
20822 HAL_FDI_DIR=${halfdidir}
20823
20824
20825 # Checks for extensions
20826
20827 SAVE_CFLAGS="$CFLAGS"
20828 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20829 cat >conftest.$ac_ext <<_ACEOF
20830 /* confdefs.h. */
20831 _ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h. */
20835
20836 #include "xorg-server.h"
20837 #if !defined RANDR
20838 #error RANDR not defined
20839 #endif
20840
20841 int
20842 main ()
20843 {
20844
20845 ;
20846 return 0;
20847 }
20848 _ACEOF
20849 rm -f conftest.$ac_objext
20850 if { (ac_try="$ac_compile"
20851 case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20854 esac
20855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20856 $as_echo "$ac_try_echo") >&5
20857 (eval "$ac_compile") 2>conftest.er1
20858 ac_status=$?
20859 grep -v '^ *+' conftest.er1 >conftest.err
20860 rm -f conftest.er1
20861 cat conftest.err >&5
20862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } && {
20864 test -z "$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest.$ac_objext; then
20867 _EXT_CHECK=yes
20868 else
20869 $as_echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20871
20872 _EXT_CHECK=no
20873 fi
20874
20875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876 CFLAGS="$SAVE_CFLAGS"
20877 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20878 $as_echo_n "checking if RANDR is defined... " >&6; }
20879 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20880 $as_echo "$_EXT_CHECK" >&6; }
20881 if test "$_EXT_CHECK" != no; then
20882 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20883 fi
20884
20885
20886 SAVE_CFLAGS="$CFLAGS"
20887 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20888 cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h. */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20894
20895 #include "xorg-server.h"
20896 #if !defined XINPUT
20897 #error XINPUT not defined
20898 #endif
20899
20900 int
20901 main ()
20902 {
20903
20904 ;
20905 return 0;
20906 }
20907 _ACEOF
20908 rm -f conftest.$ac_objext
20909 if { (ac_try="$ac_compile"
20910 case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20913 esac
20914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20915 $as_echo "$ac_try_echo") >&5
20916 (eval "$ac_compile") 2>conftest.er1
20917 ac_status=$?
20918 grep -v '^ *+' conftest.er1 >conftest.err
20919 rm -f conftest.er1
20920 cat conftest.err >&5
20921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && {
20923 test -z "$ac_c_werror_flag" ||
20924 test ! -s conftest.err
20925 } && test -s conftest.$ac_objext; then
20926 _EXT_CHECK=yes
20927 else
20928 $as_echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20930
20931 _EXT_CHECK=no
20932 fi
20933
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935 CFLAGS="$SAVE_CFLAGS"
20936 { $as_echo "$as_me:$LINENO: checking if XINPUT is defined" >&5
20937 $as_echo_n "checking if XINPUT is defined... " >&6; }
20938 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20939 $as_echo "$_EXT_CHECK" >&6; }
20940 if test "$_EXT_CHECK" != no; then
20941 REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
20942 fi
20943
20944
20945 # Checks for pkg-config packages
20946
20947
20948 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20949 if test -n "$ac_tool_prefix"; then
20950 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20951 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20953 $as_echo_n "checking for $ac_word... " >&6; }
20954 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20955 $as_echo_n "(cached) " >&6
20956 else
20957 case $PKG_CONFIG in
20958 [\\/]* | ?:[\\/]*)
20959 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20960 ;;
20961 *)
20962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20963 for as_dir in $PATH
20964 do
20965 IFS=$as_save_IFS
20966 test -z "$as_dir" && as_dir=.
20967 for ac_exec_ext in '' $ac_executable_extensions; do
20968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20969 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20970 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20971 break 2
20972 fi
20973 done
20974 done
20975 IFS=$as_save_IFS
20976
20977 ;;
20978 esac
20979 fi
20980 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20981 if test -n "$PKG_CONFIG"; then
20982 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20983 $as_echo "$PKG_CONFIG" >&6; }
20984 else
20985 { $as_echo "$as_me:$LINENO: result: no" >&5
20986 $as_echo "no" >&6; }
20987 fi
20988
20989
20990 fi
20991 if test -z "$ac_cv_path_PKG_CONFIG"; then
20992 ac_pt_PKG_CONFIG=$PKG_CONFIG
20993 # Extract the first word of "pkg-config", so it can be a program name with args.
20994 set dummy pkg-config; ac_word=$2
20995 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20996 $as_echo_n "checking for $ac_word... " >&6; }
20997 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20998 $as_echo_n "(cached) " >&6
20999 else
21000 case $ac_pt_PKG_CONFIG in
21001 [\\/]* | ?:[\\/]*)
21002 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21003 ;;
21004 *)
21005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21006 for as_dir in $PATH
21007 do
21008 IFS=$as_save_IFS
21009 test -z "$as_dir" && as_dir=.
21010 for ac_exec_ext in '' $ac_executable_extensions; do
21011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21012 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21014 break 2
21015 fi
21016 done
21017 done
21018 IFS=$as_save_IFS
21019
21020 ;;
21021 esac
21022 fi
21023 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21024 if test -n "$ac_pt_PKG_CONFIG"; then
21025 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21026 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21027 else
21028 { $as_echo "$as_me:$LINENO: result: no" >&5
21029 $as_echo "no" >&6; }
21030 fi
21031
21032 if test "x$ac_pt_PKG_CONFIG" = x; then
21033 PKG_CONFIG=""
21034 else
21035 case $cross_compiling:$ac_tool_warned in
21036 yes:)
21037 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21039 ac_tool_warned=yes ;;
21040 esac
21041 PKG_CONFIG=$ac_pt_PKG_CONFIG
21042 fi
21043 else
21044 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21045 fi
21046
21047 fi
21048 if test -n "$PKG_CONFIG"; then
21049 _pkg_min_version=0.9.0
21050 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21051 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21052 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21053 { $as_echo "$as_me:$LINENO: result: yes" >&5
21054 $as_echo "yes" >&6; }
21055 else
21056 { $as_echo "$as_me:$LINENO: result: no" >&5
21057 $as_echo "no" >&6; }
21058 PKG_CONFIG=""
21059 fi
21060
21061 fi
21062
21063 pkg_failed=no
21064 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
21065 $as_echo_n "checking for XORG... " >&6; }
21066
21067 if test -n "$XORG_CFLAGS"; then
21068 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21069 elif test -n "$PKG_CONFIG"; then
21070 if test -n "$PKG_CONFIG" && \
21071 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto \$REQUIRED_MODULES\"") >&5
21072 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES") 2>&5
21073 ac_status=$?
21074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; then
21076 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>/dev/null`
21077 else
21078 pkg_failed=yes
21079 fi
21080 else
21081 pkg_failed=untried
21082 fi
21083 if test -n "$XORG_LIBS"; then
21084 pkg_cv_XORG_LIBS="$XORG_LIBS"
21085 elif test -n "$PKG_CONFIG"; then
21086 if test -n "$PKG_CONFIG" && \
21087 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto \$REQUIRED_MODULES\"") >&5
21088 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES") 2>&5
21089 ac_status=$?
21090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; then
21092 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>/dev/null`
21093 else
21094 pkg_failed=yes
21095 fi
21096 else
21097 pkg_failed=untried
21098 fi
21099
21100
21101
21102 if test $pkg_failed = yes; then
21103
21104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21105 _pkg_short_errors_supported=yes
21106 else
21107 _pkg_short_errors_supported=no
21108 fi
21109 if test $_pkg_short_errors_supported = yes; then
21110 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>&1`
21111 else
21112 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>&1`
21113 fi
21114 # Put the nasty error message in config.log where it belongs
21115 echo "$XORG_PKG_ERRORS" >&5
21116
21117 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.1 xproto $REQUIRED_MODULES) were not met:
21118
21119 $XORG_PKG_ERRORS
21120
21121 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21122 installed software in a non-standard prefix.
21123
21124 Alternatively, you may set the environment variables XORG_CFLAGS
21125 and XORG_LIBS to avoid the need to call pkg-config.
21126 See the pkg-config man page for more details.
21127 " >&5
21128 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.1 xproto $REQUIRED_MODULES) were not met:
21129
21130 $XORG_PKG_ERRORS
21131
21132 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21133 installed software in a non-standard prefix.
21134
21135 Alternatively, you may set the environment variables XORG_CFLAGS
21136 and XORG_LIBS to avoid the need to call pkg-config.
21137 See the pkg-config man page for more details.
21138 " >&2;}
21139 { (exit 1); exit 1; }; }
21140 elif test $pkg_failed = untried; then
21141 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21143 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21144 is in your PATH or set the PKG_CONFIG environment variable to the full
21145 path to pkg-config.
21146
21147 Alternatively, you may set the environment variables XORG_CFLAGS
21148 and XORG_LIBS to avoid the need to call pkg-config.
21149 See the pkg-config man page for more details.
21150
21151 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21152 See \`config.log' for more details." >&5
21153 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21154 is in your PATH or set the PKG_CONFIG environment variable to the full
21155 path to pkg-config.
21156
21157 Alternatively, you may set the environment variables XORG_CFLAGS
21158 and XORG_LIBS to avoid the need to call pkg-config.
21159 See the pkg-config man page for more details.
21160
21161 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21162 See \`config.log' for more details." >&2;}
21163 { (exit 1); exit 1; }; }; }
21164 else
21165 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21166 XORG_LIBS=$pkg_cv_XORG_LIBS
21167 { $as_echo "$as_me:$LINENO: result: yes" >&5
21168 $as_echo "yes" >&6; }
21169 :
21170 fi
21171 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21172
21173 if test -n "$PKG_CONFIG" && \
21174 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\"") >&5
21175 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5
21176 ac_status=$?
21177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; then
21179
21180 cat >>confdefs.h <<\_ACEOF
21181 #define HAVE_XORG_SERVER_1_1_0 1
21182 _ACEOF
21183
21184 fi
21185
21186 if test -n "$PKG_CONFIG" && \
21187 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3.99.0 xorg-server <= 1.4.0.90\"") >&5
21188 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3.99.0 xorg-server <= 1.4.0.90") 2>&5
21189 ac_status=$?
21190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); }; then
21192
21193 cat >>confdefs.h <<\_ACEOF
21194 #define CALL_CONVERSION_PROC 1
21195 _ACEOF
21196
21197 fi
21198 if test -n "$PKG_CONFIG" && \
21199 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server > 1.4.0.90\"") >&5
21200 ($PKG_CONFIG --exists --print-errors "xorg-server > 1.4.0.90") 2>&5
21201 ac_status=$?
21202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; then
21204
21205 cat >>confdefs.h <<\_ACEOF
21206 #define ABS_VALUATOR_AXES 1
21207 _ACEOF
21208
21209 fi
21210
21211 CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
21212
21213
21214 # Checks for libraries.
21215
21216 # Checks for header files.
21217 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21218 $as_echo_n "checking for ANSI C header files... " >&6; }
21219 if test "${ac_cv_header_stdc+set}" = set; then
21220 $as_echo_n "(cached) " >&6
21221 else
21222 cat >conftest.$ac_ext <<_ACEOF
21223 /* confdefs.h. */
21224 _ACEOF
21225 cat confdefs.h >>conftest.$ac_ext
21226 cat >>conftest.$ac_ext <<_ACEOF
21227 /* end confdefs.h. */
21228 #include <stdlib.h>
21229 #include <stdarg.h>
21230 #include <string.h>
21231 #include <float.h>
21232
21233 int
21234 main ()
21235 {
21236
21237 ;
21238 return 0;
21239 }
21240 _ACEOF
21241 rm -f conftest.$ac_objext
21242 if { (ac_try="$ac_compile"
21243 case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21246 esac
21247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21248 $as_echo "$ac_try_echo") >&5
21249 (eval "$ac_compile") 2>conftest.er1
21250 ac_status=$?
21251 grep -v '^ *+' conftest.er1 >conftest.err
21252 rm -f conftest.er1
21253 cat conftest.err >&5
21254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } && {
21256 test -z "$ac_c_werror_flag" ||
21257 test ! -s conftest.err
21258 } && test -s conftest.$ac_objext; then
21259 ac_cv_header_stdc=yes
21260 else
21261 $as_echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264 ac_cv_header_stdc=no
21265 fi
21266
21267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21268
21269 if test $ac_cv_header_stdc = yes; then
21270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21271 cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h. */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 #include <string.h>
21278
21279 _ACEOF
21280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21281 $EGREP "memchr" >/dev/null 2>&1; then
21282 :
21283 else
21284 ac_cv_header_stdc=no
21285 fi
21286 rm -f conftest*
21287
21288 fi
21289
21290 if test $ac_cv_header_stdc = yes; then
21291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21292 cat >conftest.$ac_ext <<_ACEOF
21293 /* confdefs.h. */
21294 _ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h. */
21298 #include <stdlib.h>
21299
21300 _ACEOF
21301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21302 $EGREP "free" >/dev/null 2>&1; then
21303 :
21304 else
21305 ac_cv_header_stdc=no
21306 fi
21307 rm -f conftest*
21308
21309 fi
21310
21311 if test $ac_cv_header_stdc = yes; then
21312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21313 if test "$cross_compiling" = yes; then
21314 :
21315 else
21316 cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h. */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h. */
21322 #include <ctype.h>
21323 #include <stdlib.h>
21324 #if ((' ' & 0x0FF) == 0x020)
21325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21327 #else
21328 # define ISLOWER(c) \
21329 (('a' <= (c) && (c) <= 'i') \
21330 || ('j' <= (c) && (c) <= 'r') \
21331 || ('s' <= (c) && (c) <= 'z'))
21332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21333 #endif
21334
21335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21336 int
21337 main ()
21338 {
21339 int i;
21340 for (i = 0; i < 256; i++)
21341 if (XOR (islower (i), ISLOWER (i))
21342 || toupper (i) != TOUPPER (i))
21343 return 2;
21344 return 0;
21345 }
21346 _ACEOF
21347 rm -f conftest$ac_exeext
21348 if { (ac_try="$ac_link"
21349 case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21352 esac
21353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21354 $as_echo "$ac_try_echo") >&5
21355 (eval "$ac_link") 2>&5
21356 ac_status=$?
21357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21359 { (case "(($ac_try" in
21360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21362 esac
21363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21364 $as_echo "$ac_try_echo") >&5
21365 (eval "$ac_try") 2>&5
21366 ac_status=$?
21367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369 :
21370 else
21371 $as_echo "$as_me: program exited with status $ac_status" >&5
21372 $as_echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375 ( exit $ac_status )
21376 ac_cv_header_stdc=no
21377 fi
21378 rm -rf conftest.dSYM
21379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21380 fi
21381
21382
21383 fi
21384 fi
21385 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21386 $as_echo "$ac_cv_header_stdc" >&6; }
21387 if test $ac_cv_header_stdc = yes; then
21388
21389 cat >>confdefs.h <<\_ACEOF
21390 #define STDC_HEADERS 1
21391 _ACEOF
21392
21393 fi
21394
21395
21396
21397
21398
21399 if test x$APP_MAN_SUFFIX = x ; then
21400 APP_MAN_SUFFIX=1
21401 fi
21402 if test x$APP_MAN_DIR = x ; then
21403 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21404 fi
21405
21406 if test x$LIB_MAN_SUFFIX = x ; then
21407 LIB_MAN_SUFFIX=3
21408 fi
21409 if test x$LIB_MAN_DIR = x ; then
21410 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21411 fi
21412
21413 if test x$FILE_MAN_SUFFIX = x ; then
21414 case $host_os in
21415 solaris*) FILE_MAN_SUFFIX=4 ;;
21416 *) FILE_MAN_SUFFIX=5 ;;
21417 esac
21418 fi
21419 if test x$FILE_MAN_DIR = x ; then
21420 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21421 fi
21422
21423 if test x$MISC_MAN_SUFFIX = x ; then
21424 case $host_os in
21425 solaris*) MISC_MAN_SUFFIX=5 ;;
21426 *) MISC_MAN_SUFFIX=7 ;;
21427 esac
21428 fi
21429 if test x$MISC_MAN_DIR = x ; then
21430 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21431 fi
21432
21433 if test x$DRIVER_MAN_SUFFIX = x ; then
21434 case $host_os in
21435 solaris*) DRIVER_MAN_SUFFIX=7 ;;
21436 *) DRIVER_MAN_SUFFIX=4 ;;
21437 esac
21438 fi
21439 if test x$DRIVER_MAN_DIR = x ; then
21440 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21441 fi
21442
21443 if test x$ADMIN_MAN_SUFFIX = x ; then
21444 case $host_os in
21445 solaris*) ADMIN_MAN_SUFFIX=1m ;;
21446 *) ADMIN_MAN_SUFFIX=8 ;;
21447 esac
21448 fi
21449 if test x$ADMIN_MAN_DIR = x ; then
21450 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21451 fi
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469 # Check whether --with-release-version was given.
21470 if test "${with_release_version+set}" = set; then
21471 withval=$with_release_version; RELEASE_VERSION="$withval"
21472 else
21473 RELEASE_VERSION=""
21474 fi
21475
21476 if test "x$RELEASE_VERSION" != "x"; then
21477 PACKAGE="$PACKAGE-$RELEASE_VERSION"
21478 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21479 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21480 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21481 fi
21482
21483 cat >>confdefs.h <<_ACEOF
21484 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21485 _ACEOF
21486
21487 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21488 if test "x$PVM" = "x"; then
21489 PVM="0"
21490 fi
21491
21492 cat >>confdefs.h <<_ACEOF
21493 #define PACKAGE_VERSION_MINOR $PVM
21494 _ACEOF
21495
21496 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21497 if test "x$PVP" = "x"; then
21498 PVP="0"
21499 fi
21500
21501 cat >>confdefs.h <<_ACEOF
21502 #define PACKAGE_VERSION_PATCHLEVEL $PVP
21503 _ACEOF
21504
21505
21506
21507 ac_config_files="$ac_config_files Makefile shared/Makefile src/Makefile tools/Makefile fdi/Makefile man/Makefile"
21508
21509 cat >confcache <<\_ACEOF
21510 # This file is a shell script that caches the results of configure
21511 # tests run on this system so they can be shared between configure
21512 # scripts and configure runs, see configure's option --config-cache.
21513 # It is not useful on other systems. If it contains results you don't
21514 # want to keep, you may remove or edit it.
21515 #
21516 # config.status only pays attention to the cache file if you give it
21517 # the --recheck option to rerun configure.
21518 #
21519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21521 # following values.
21522
21523 _ACEOF
21524
21525 # The following way of writing the cache mishandles newlines in values,
21526 # but we know of no workaround that is simple, portable, and efficient.
21527 # So, we kill variables containing newlines.
21528 # Ultrix sh set writes to stderr and can't be redirected directly,
21529 # and sets the high bit in the cache file unless we assign to the vars.
21530 (
21531 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21532 eval ac_val=\$$ac_var
21533 case $ac_val in #(
21534 *${as_nl}*)
21535 case $ac_var in #(
21536 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21537 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21538 esac
21539 case $ac_var in #(
21540 _ | IFS | as_nl) ;; #(
21541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21542 *) $as_unset $ac_var ;;
21543 esac ;;
21544 esac
21545 done
21546
21547 (set) 2>&1 |
21548 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21549 *${as_nl}ac_space=\ *)
21550 # `set' does not quote correctly, so add quotes (double-quote
21551 # substitution turns \\\\ into \\, and sed turns \\ into \).
21552 sed -n \
21553 "s/'/'\\\\''/g;
21554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21555 ;; #(
21556 *)
21557 # `set' quotes correctly as required by POSIX, so do not add quotes.
21558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21559 ;;
21560 esac |
21561 sort
21562 ) |
21563 sed '
21564 /^ac_cv_env_/b end
21565 t clear
21566 :clear
21567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21568 t end
21569 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21570 :end' >>confcache
21571 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21572 if test -w "$cache_file"; then
21573 test "x$cache_file" != "x/dev/null" &&
21574 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21575 $as_echo "$as_me: updating cache $cache_file" >&6;}
21576 cat confcache >$cache_file
21577 else
21578 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21579 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21580 fi
21581 fi
21582 rm -f confcache
21583
21584 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21585 # Let make expand exec_prefix.
21586 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21587
21588 DEFS=-DHAVE_CONFIG_H
21589
21590 ac_libobjs=
21591 ac_ltlibobjs=
21592 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21593 # 1. Remove the extension, and $U if already installed.
21594 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21595 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21596 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21597 # will be set to the directory where LIBOBJS objects are built.
21598 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21599 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21600 done
21601 LIBOBJS=$ac_libobjs
21602
21603 LTLIBOBJS=$ac_ltlibobjs
21604
21605
21606 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21607 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21608 Usually this means the macro was only invoked conditionally." >&5
21609 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21610 Usually this means the macro was only invoked conditionally." >&2;}
21611 { (exit 1); exit 1; }; }
21612 fi
21613 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21614 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21615 Usually this means the macro was only invoked conditionally." >&5
21616 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21617 Usually this means the macro was only invoked conditionally." >&2;}
21618 { (exit 1); exit 1; }; }
21619 fi
21620 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21621 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21622 Usually this means the macro was only invoked conditionally." >&5
21623 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21624 Usually this means the macro was only invoked conditionally." >&2;}
21625 { (exit 1); exit 1; }; }
21626 fi
21627 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21628 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21629 Usually this means the macro was only invoked conditionally." >&5
21630 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21631 Usually this means the macro was only invoked conditionally." >&2;}
21632 { (exit 1); exit 1; }; }
21633 fi
21634 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21635 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21636 Usually this means the macro was only invoked conditionally." >&5
21637 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21638 Usually this means the macro was only invoked conditionally." >&2;}
21639 { (exit 1); exit 1; }; }
21640 fi
21641
21642 : ${CONFIG_STATUS=./config.status}
21643 ac_write_fail=0
21644 ac_clean_files_save=$ac_clean_files
21645 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21646 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21647 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21648 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21649 #! $SHELL
21650 # Generated by $as_me.
21651 # Run this file to recreate the current configuration.
21652 # Compiler output produced by configure, useful for debugging
21653 # configure, is in config.log if it exists.
21654
21655 debug=false
21656 ac_cs_recheck=false
21657 ac_cs_silent=false
21658 SHELL=\${CONFIG_SHELL-$SHELL}
21659 _ACEOF
21660
21661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21662 ## --------------------- ##
21663 ## M4sh Initialization. ##
21664 ## --------------------- ##
21665
21666 # Be more Bourne compatible
21667 DUALCASE=1; export DUALCASE # for MKS sh
21668 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21669 emulate sh
21670 NULLCMD=:
21671 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21672 # is contrary to our usage. Disable this feature.
21673 alias -g '${1+"$@"}'='"$@"'
21674 setopt NO_GLOB_SUBST
21675 else
21676 case `(set -o) 2>/dev/null` in
21677 *posix*) set -o posix ;;
21678 esac
21679
21680 fi
21681
21682
21683
21684
21685 # PATH needs CR
21686 # Avoid depending upon Character Ranges.
21687 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21688 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21689 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21690 as_cr_digits='0123456789'
21691 as_cr_alnum=$as_cr_Letters$as_cr_digits
21692
21693 as_nl='
21694 '
21695 export as_nl
21696 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21697 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21698 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21699 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21700 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21701 as_echo='printf %s\n'
21702 as_echo_n='printf %s'
21703 else
21704 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21705 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21706 as_echo_n='/usr/ucb/echo -n'
21707 else
21708 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21709 as_echo_n_body='eval
21710 arg=$1;
21711 case $arg in
21712 *"$as_nl"*)
21713 expr "X$arg" : "X\\(.*\\)$as_nl";
21714 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21715 esac;
21716 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21717 '
21718 export as_echo_n_body
21719 as_echo_n='sh -c $as_echo_n_body as_echo'
21720 fi
21721 export as_echo_body
21722 as_echo='sh -c $as_echo_body as_echo'
21723 fi
21724
21725 # The user is always right.
21726 if test "${PATH_SEPARATOR+set}" != set; then
21727 PATH_SEPARATOR=:
21728 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21729 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21730 PATH_SEPARATOR=';'
21731 }
21732 fi
21733
21734 # Support unset when possible.
21735 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21736 as_unset=unset
21737 else
21738 as_unset=false
21739 fi
21740
21741
21742 # IFS
21743 # We need space, tab and new line, in precisely that order. Quoting is
21744 # there to prevent editors from complaining about space-tab.
21745 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21746 # splitting by setting IFS to empty value.)
21747 IFS=" "" $as_nl"
21748
21749 # Find who we are. Look in the path if we contain no directory separator.
21750 case $0 in
21751 *[\\/]* ) as_myself=$0 ;;
21752 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21753 for as_dir in $PATH
21754 do
21755 IFS=$as_save_IFS
21756 test -z "$as_dir" && as_dir=.
21757 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21758 done
21759 IFS=$as_save_IFS
21760
21761 ;;
21762 esac
21763 # We did not find ourselves, most probably we were run as `sh COMMAND'
21764 # in which case we are not to be found in the path.
21765 if test "x$as_myself" = x; then
21766 as_myself=$0
21767 fi
21768 if test ! -f "$as_myself"; then
21769 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21770 { (exit 1); exit 1; }
21771 fi
21772
21773 # Work around bugs in pre-3.0 UWIN ksh.
21774 for as_var in ENV MAIL MAILPATH
21775 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21776 done
21777 PS1='$ '
21778 PS2='> '
21779 PS4='+ '
21780
21781 # NLS nuisances.
21782 LC_ALL=C
21783 export LC_ALL
21784 LANGUAGE=C
21785 export LANGUAGE
21786
21787 # Required to use basename.
21788 if expr a : '\(a\)' >/dev/null 2>&1 &&
21789 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21790 as_expr=expr
21791 else
21792 as_expr=false
21793 fi
21794
21795 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21796 as_basename=basename
21797 else
21798 as_basename=false
21799 fi
21800
21801
21802 # Name of the executable.
21803 as_me=`$as_basename -- "$0" ||
21804 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21805 X"$0" : 'X\(//\)$' \| \
21806 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21807 $as_echo X/"$0" |
21808 sed '/^.*\/\([^/][^/]*\)\/*$/{
21809 s//\1/
21810 q
21811 }
21812 /^X\/\(\/\/\)$/{
21813 s//\1/
21814 q
21815 }
21816 /^X\/\(\/\).*/{
21817 s//\1/
21818 q
21819 }
21820 s/.*/./; q'`
21821
21822 # CDPATH.
21823 $as_unset CDPATH
21824
21825
21826
21827 as_lineno_1=$LINENO
21828 as_lineno_2=$LINENO
21829 test "x$as_lineno_1" != "x$as_lineno_2" &&
21830 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21831
21832 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21833 # uniformly replaced by the line number. The first 'sed' inserts a
21834 # line-number line after each line using $LINENO; the second 'sed'
21835 # does the real work. The second script uses 'N' to pair each
21836 # line-number line with the line containing $LINENO, and appends
21837 # trailing '-' during substitution so that $LINENO is not a special
21838 # case at line end.
21839 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21840 # scripts with optimization help from Paolo Bonzini. Blame Lee
21841 # E. McMahon (1931-1989) for sed's syntax. :-)
21842 sed -n '
21843 p
21844 /[$]LINENO/=
21845 ' <$as_myself |
21846 sed '
21847 s/[$]LINENO.*/&-/
21848 t lineno
21849 b
21850 :lineno
21851 N
21852 :loop
21853 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21854 t loop
21855 s/-\n.*//
21856 ' >$as_me.lineno &&
21857 chmod +x "$as_me.lineno" ||
21858 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21859 { (exit 1); exit 1; }; }
21860
21861 # Don't try to exec as it changes $[0], causing all sort of problems
21862 # (the dirname of $[0] is not the place where we might find the
21863 # original and so on. Autoconf is especially sensitive to this).
21864 . "./$as_me.lineno"
21865 # Exit status is that of the last command.
21866 exit
21867 }
21868
21869
21870 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21871 as_dirname=dirname
21872 else
21873 as_dirname=false
21874 fi
21875
21876 ECHO_C= ECHO_N= ECHO_T=
21877 case `echo -n x` in
21878 -n*)
21879 case `echo 'x\c'` in
21880 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21881 *) ECHO_C='\c';;
21882 esac;;
21883 *)
21884 ECHO_N='-n';;
21885 esac
21886 if expr a : '\(a\)' >/dev/null 2>&1 &&
21887 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21888 as_expr=expr
21889 else
21890 as_expr=false
21891 fi
21892
21893 rm -f conf$$ conf$$.exe conf$$.file
21894 if test -d conf$$.dir; then
21895 rm -f conf$$.dir/conf$$.file
21896 else
21897 rm -f conf$$.dir
21898 mkdir conf$$.dir 2>/dev/null
21899 fi
21900 if (echo >conf$$.file) 2>/dev/null; then
21901 if ln -s conf$$.file conf$$ 2>/dev/null; then
21902 as_ln_s='ln -s'
21903 # ... but there are two gotchas:
21904 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21905 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21906 # In both cases, we have to default to `cp -p'.
21907 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21908 as_ln_s='cp -p'
21909 elif ln conf$$.file conf$$ 2>/dev/null; then
21910 as_ln_s=ln
21911 else
21912 as_ln_s='cp -p'
21913 fi
21914 else
21915 as_ln_s='cp -p'
21916 fi
21917 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21918 rmdir conf$$.dir 2>/dev/null
21919
21920 if mkdir -p . 2>/dev/null; then
21921 as_mkdir_p=:
21922 else
21923 test -d ./-p && rmdir ./-p
21924 as_mkdir_p=false
21925 fi
21926
21927 if test -x / >/dev/null 2>&1; then
21928 as_test_x='test -x'
21929 else
21930 if ls -dL / >/dev/null 2>&1; then
21931 as_ls_L_option=L
21932 else
21933 as_ls_L_option=
21934 fi
21935 as_test_x='
21936 eval sh -c '\''
21937 if test -d "$1"; then
21938 test -d "$1/.";
21939 else
21940 case $1 in
21941 -*)set "./$1";;
21942 esac;
21943 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21944 ???[sx]*):;;*)false;;esac;fi
21945 '\'' sh
21946 '
21947 fi
21948 as_executable_p=$as_test_x
21949
21950 # Sed expression to map a string onto a valid CPP name.
21951 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21952
21953 # Sed expression to map a string onto a valid variable name.
21954 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21955
21956
21957 exec 6>&1
21958
21959 # Save the log message, to keep $[0] and so on meaningful, and to
21960 # report actual input values of CONFIG_FILES etc. instead of their
21961 # values after options handling.
21962 ac_log="
21963 This file was extended by xf86-input-vmmouse $as_me 12.6.4, which was
21964 generated by GNU Autoconf 2.63. Invocation command line was
21965
21966 CONFIG_FILES = $CONFIG_FILES
21967 CONFIG_HEADERS = $CONFIG_HEADERS
21968 CONFIG_LINKS = $CONFIG_LINKS
21969 CONFIG_COMMANDS = $CONFIG_COMMANDS
21970 $ $0 $@
21971
21972 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21973 "
21974
21975 _ACEOF
21976
21977 case $ac_config_files in *"
21978 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21979 esac
21980
21981 case $ac_config_headers in *"
21982 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21983 esac
21984
21985
21986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21987 # Files that config.status was made for.
21988 config_files="$ac_config_files"
21989 config_headers="$ac_config_headers"
21990 config_commands="$ac_config_commands"
21991
21992 _ACEOF
21993
21994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21995 ac_cs_usage="\
21996 \`$as_me' instantiates files from templates according to the
21997 current configuration.
21998
21999 Usage: $0 [OPTION]... [FILE]...
22000
22001 -h, --help print this help, then exit
22002 -V, --version print version number and configuration settings, then exit
22003 -q, --quiet, --silent
22004 do not print progress messages
22005 -d, --debug don't remove temporary files
22006 --recheck update $as_me by reconfiguring in the same conditions
22007 --file=FILE[:TEMPLATE]
22008 instantiate the configuration file FILE
22009 --header=FILE[:TEMPLATE]
22010 instantiate the configuration header FILE
22011
22012 Configuration files:
22013 $config_files
22014
22015 Configuration headers:
22016 $config_headers
22017
22018 Configuration commands:
22019 $config_commands
22020
22021 Report bugs to <bug-autoconf (at] gnu.org>."
22022
22023 _ACEOF
22024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22025 ac_cs_version="\\
22026 xf86-input-vmmouse config.status 12.6.4
22027 configured by $0, generated by GNU Autoconf 2.63,
22028 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22029
22030 Copyright (C) 2008 Free Software Foundation, Inc.
22031 This config.status script is free software; the Free Software Foundation
22032 gives unlimited permission to copy, distribute and modify it."
22033
22034 ac_pwd='$ac_pwd'
22035 srcdir='$srcdir'
22036 INSTALL='$INSTALL'
22037 MKDIR_P='$MKDIR_P'
22038 AWK='$AWK'
22039 test -n "\$AWK" || AWK=awk
22040 _ACEOF
22041
22042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22043 # The default lists apply if the user does not specify any file.
22044 ac_need_defaults=:
22045 while test $# != 0
22046 do
22047 case $1 in
22048 --*=*)
22049 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22050 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22051 ac_shift=:
22052 ;;
22053 *)
22054 ac_option=$1
22055 ac_optarg=$2
22056 ac_shift=shift
22057 ;;
22058 esac
22059
22060 case $ac_option in
22061 # Handling of the options.
22062 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22063 ac_cs_recheck=: ;;
22064 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22065 $as_echo "$ac_cs_version"; exit ;;
22066 --debug | --debu | --deb | --de | --d | -d )
22067 debug=: ;;
22068 --file | --fil | --fi | --f )
22069 $ac_shift
22070 case $ac_optarg in
22071 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22072 esac
22073 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22074 ac_need_defaults=false;;
22075 --header | --heade | --head | --hea )
22076 $ac_shift
22077 case $ac_optarg in
22078 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22079 esac
22080 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22081 ac_need_defaults=false;;
22082 --he | --h)
22083 # Conflict between --help and --header
22084 { $as_echo "$as_me: error: ambiguous option: $1
22085 Try \`$0 --help' for more information." >&2
22086 { (exit 1); exit 1; }; };;
22087 --help | --hel | -h )
22088 $as_echo "$ac_cs_usage"; exit ;;
22089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22090 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22091 ac_cs_silent=: ;;
22092
22093 # This is an error.
22094 -*) { $as_echo "$as_me: error: unrecognized option: $1
22095 Try \`$0 --help' for more information." >&2
22096 { (exit 1); exit 1; }; } ;;
22097
22098 *) ac_config_targets="$ac_config_targets $1"
22099 ac_need_defaults=false ;;
22100
22101 esac
22102 shift
22103 done
22104
22105 ac_configure_extra_args=
22106
22107 if $ac_cs_silent; then
22108 exec 6>/dev/null
22109 ac_configure_extra_args="$ac_configure_extra_args --silent"
22110 fi
22111
22112 _ACEOF
22113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22114 if \$ac_cs_recheck; then
22115 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22116 shift
22117 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22118 CONFIG_SHELL='$SHELL'
22119 export CONFIG_SHELL
22120 exec "\$@"
22121 fi
22122
22123 _ACEOF
22124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22125 exec 5>>config.log
22126 {
22127 echo
22128 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22129 ## Running $as_me. ##
22130 _ASBOX
22131 $as_echo "$ac_log"
22132 } >&5
22133
22134 _ACEOF
22135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22136 #
22137 # INIT-COMMANDS
22138 #
22139 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22140
22141 _ACEOF
22142
22143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22144
22145 # Handling of arguments.
22146 for ac_config_target in $ac_config_targets
22147 do
22148 case $ac_config_target in
22149 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22150 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22151 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22152 "shared/Makefile") CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;;
22153 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22154 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22155 "fdi/Makefile") CONFIG_FILES="$CONFIG_FILES fdi/Makefile" ;;
22156 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22157
22158 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22159 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22160 { (exit 1); exit 1; }; };;
22161 esac
22162 done
22163
22164
22165 # If the user did not use the arguments to specify the items to instantiate,
22166 # then the envvar interface is used. Set only those that are not.
22167 # We use the long form for the default assignment because of an extremely
22168 # bizarre bug on SunOS 4.1.3.
22169 if $ac_need_defaults; then
22170 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22171 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22172 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22173 fi
22174
22175 # Have a temporary directory for convenience. Make it in the build tree
22176 # simply because there is no reason against having it here, and in addition,
22177 # creating and moving files from /tmp can sometimes cause problems.
22178 # Hook for its removal unless debugging.
22179 # Note that there is a small window in which the directory will not be cleaned:
22180 # after its creation but before its name has been assigned to `$tmp'.
22181 $debug ||
22182 {
22183 tmp=
22184 trap 'exit_status=$?
22185 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22186 ' 0
22187 trap '{ (exit 1); exit 1; }' 1 2 13 15
22188 }
22189 # Create a (secure) tmp directory for tmp files.
22190
22191 {
22192 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22193 test -n "$tmp" && test -d "$tmp"
22194 } ||
22195 {
22196 tmp=./conf$$-$RANDOM
22197 (umask 077 && mkdir "$tmp")
22198 } ||
22199 {
22200 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22201 { (exit 1); exit 1; }
22202 }
22203
22204 # Set up the scripts for CONFIG_FILES section.
22205 # No need to generate them if there are no CONFIG_FILES.
22206 # This happens for instance with `./config.status config.h'.
22207 if test -n "$CONFIG_FILES"; then
22208
22209
22210 ac_cr='
'
22212 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22213 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22214 ac_cs_awk_cr='\\r'
22215 else
22216 ac_cs_awk_cr=$ac_cr
22217 fi
22218
22219 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22220 _ACEOF
22221
22222
22223 {
22224 echo "cat >conf$$subs.awk <<_ACEOF" &&
22225 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22226 echo "_ACEOF"
22227 } >conf$$subs.sh ||
22228 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22229 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22230 { (exit 1); exit 1; }; }
22231 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22232 ac_delim='%!_!# '
22233 for ac_last_try in false false false false false :; do
22234 . ./conf$$subs.sh ||
22235 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22236 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22237 { (exit 1); exit 1; }; }
22238
22239 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22240 if test $ac_delim_n = $ac_delim_num; then
22241 break
22242 elif $ac_last_try; then
22243 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22244 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22245 { (exit 1); exit 1; }; }
22246 else
22247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22248 fi
22249 done
22250 rm -f conf$$subs.sh
22251
22252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22253 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22254 _ACEOF
22255 sed -n '
22256 h
22257 s/^/S["/; s/!.*/"]=/
22258 p
22259 g
22260 s/^[^!]*!//
22261 :repl
22262 t repl
22263 s/'"$ac_delim"'$//
22264 t delim
22265 :nl
22266 h
22267 s/\(.\{148\}\).*/\1/
22268 t more1
22269 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22270 p
22271 n
22272 b repl
22273 :more1
22274 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22275 p
22276 g
22277 s/.\{148\}//
22278 t nl
22279 :delim
22280 h
22281 s/\(.\{148\}\).*/\1/
22282 t more2
22283 s/["\\]/\\&/g; s/^/"/; s/$/"/
22284 p
22285 b
22286 :more2
22287 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22288 p
22289 g
22290 s/.\{148\}//
22291 t delim
22292 ' <conf$$subs.awk | sed '
22293 /^[^""]/{
22294 N
22295 s/\n//
22296 }
22297 ' >>$CONFIG_STATUS || ac_write_fail=1
22298 rm -f conf$$subs.awk
22299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22300 _ACAWK
22301 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22302 for (key in S) S_is_set[key] = 1
22303 FS = ""
22304
22305 }
22306 {
22307 line = $ 0
22308 nfields = split(line, field, "@")
22309 substed = 0
22310 len = length(field[1])
22311 for (i = 2; i < nfields; i++) {
22312 key = field[i]
22313 keylen = length(key)
22314 if (S_is_set[key]) {
22315 value = S[key]
22316 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22317 len += length(value) + length(field[++i])
22318 substed = 1
22319 } else
22320 len += 1 + keylen
22321 }
22322
22323 print line
22324 }
22325
22326 _ACAWK
22327 _ACEOF
22328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22329 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22330 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22331 else
22332 cat
22333 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22334 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22335 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22336 { (exit 1); exit 1; }; }
22337 _ACEOF
22338
22339 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22340 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22341 # trailing colons and then remove the whole line if VPATH becomes empty
22342 # (actually we leave an empty line to preserve line numbers).
22343 if test "x$srcdir" = x.; then
22344 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22345 s/:*\$(srcdir):*/:/
22346 s/:*\${srcdir}:*/:/
22347 s/:*@srcdir@:*/:/
22348 s/^\([^=]*=[ ]*\):*/\1/
22349 s/:*$//
22350 s/^[^=]*=[ ]*$//
22351 }'
22352 fi
22353
22354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22355 fi # test -n "$CONFIG_FILES"
22356
22357 # Set up the scripts for CONFIG_HEADERS section.
22358 # No need to generate them if there are no CONFIG_HEADERS.
22359 # This happens for instance with `./config.status Makefile'.
22360 if test -n "$CONFIG_HEADERS"; then
22361 cat >"$tmp/defines.awk" <<\_ACAWK ||
22362 BEGIN {
22363 _ACEOF
22364
22365 # Transform confdefs.h into an awk script `defines.awk', embedded as
22366 # here-document in config.status, that substitutes the proper values into
22367 # config.h.in to produce config.h.
22368
22369 # Create a delimiter string that does not exist in confdefs.h, to ease
22370 # handling of long lines.
22371 ac_delim='%!_!# '
22372 for ac_last_try in false false :; do
22373 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22374 if test -z "$ac_t"; then
22375 break
22376 elif $ac_last_try; then
22377 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22378 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22379 { (exit 1); exit 1; }; }
22380 else
22381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22382 fi
22383 done
22384
22385 # For the awk script, D is an array of macro values keyed by name,
22386 # likewise P contains macro parameters if any. Preserve backslash
22387 # newline sequences.
22388
22389 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22390 sed -n '
22391 s/.\{148\}/&'"$ac_delim"'/g
22392 t rset
22393 :rset
22394 s/^[ ]*#[ ]*define[ ][ ]*/ /
22395 t def
22396 d
22397 :def
22398 s/\\$//
22399 t bsnl
22400 s/["\\]/\\&/g
22401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22402 D["\1"]=" \3"/p
22403 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22404 d
22405 :bsnl
22406 s/["\\]/\\&/g
22407 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22408 D["\1"]=" \3\\\\\\n"\\/p
22409 t cont
22410 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22411 t cont
22412 d
22413 :cont
22414 n
22415 s/.\{148\}/&'"$ac_delim"'/g
22416 t clear
22417 :clear
22418 s/\\$//
22419 t bsnlc
22420 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22421 d
22422 :bsnlc
22423 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22424 b cont
22425 ' <confdefs.h | sed '
22426 s/'"$ac_delim"'/"\\\
22427 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22428
22429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22430 for (key in D) D_is_set[key] = 1
22431 FS = ""
22432 }
22433 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22434 line = \$ 0
22435 split(line, arg, " ")
22436 if (arg[1] == "#") {
22437 defundef = arg[2]
22438 mac1 = arg[3]
22439 } else {
22440 defundef = substr(arg[1], 2)
22441 mac1 = arg[2]
22442 }
22443 split(mac1, mac2, "(") #)
22444 macro = mac2[1]
22445 prefix = substr(line, 1, index(line, defundef) - 1)
22446 if (D_is_set[macro]) {
22447 # Preserve the white space surrounding the "#".
22448 print prefix "define", macro P[macro] D[macro]
22449 next
22450 } else {
22451 # Replace #undef with comments. This is necessary, for example,
22452 # in the case of _POSIX_SOURCE, which is predefined and required
22453 # on some systems where configure will not decide to define it.
22454 if (defundef == "undef") {
22455 print "/*", prefix defundef, macro, "*/"
22456 next
22457 }
22458 }
22459 }
22460 { print }
22461 _ACAWK
22462 _ACEOF
22463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22464 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22465 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22466 { (exit 1); exit 1; }; }
22467 fi # test -n "$CONFIG_HEADERS"
22468
22469
22470 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22471 shift
22472 for ac_tag
22473 do
22474 case $ac_tag in
22475 :[FHLC]) ac_mode=$ac_tag; continue;;
22476 esac
22477 case $ac_mode$ac_tag in
22478 :[FHL]*:*);;
22479 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22480 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22481 { (exit 1); exit 1; }; };;
22482 :[FH]-) ac_tag=-:-;;
22483 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22484 esac
22485 ac_save_IFS=$IFS
22486 IFS=:
22487 set x $ac_tag
22488 IFS=$ac_save_IFS
22489 shift
22490 ac_file=$1
22491 shift
22492
22493 case $ac_mode in
22494 :L) ac_source=$1;;
22495 :[FH])
22496 ac_file_inputs=
22497 for ac_f
22498 do
22499 case $ac_f in
22500 -) ac_f="$tmp/stdin";;
22501 *) # Look for the file first in the build tree, then in the source tree
22502 # (if the path is not absolute). The absolute path cannot be DOS-style,
22503 # because $ac_f cannot contain `:'.
22504 test -f "$ac_f" ||
22505 case $ac_f in
22506 [\\/$]*) false;;
22507 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22508 esac ||
22509 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22510 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22511 { (exit 1); exit 1; }; };;
22512 esac
22513 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22514 ac_file_inputs="$ac_file_inputs '$ac_f'"
22515 done
22516
22517 # Let's still pretend it is `configure' which instantiates (i.e., don't
22518 # use $as_me), people would be surprised to read:
22519 # /* config.h. Generated by config.status. */
22520 configure_input='Generated from '`
22521 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22522 `' by configure.'
22523 if test x"$ac_file" != x-; then
22524 configure_input="$ac_file. $configure_input"
22525 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22526 $as_echo "$as_me: creating $ac_file" >&6;}
22527 fi
22528 # Neutralize special characters interpreted by sed in replacement strings.
22529 case $configure_input in #(
22530 *\&* | *\|* | *\\* )
22531 ac_sed_conf_input=`$as_echo "$configure_input" |
22532 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22533 *) ac_sed_conf_input=$configure_input;;
22534 esac
22535
22536 case $ac_tag in
22537 *:-:* | *:-) cat >"$tmp/stdin" \
22538 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22539 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22540 { (exit 1); exit 1; }; } ;;
22541 esac
22542 ;;
22543 esac
22544
22545 ac_dir=`$as_dirname -- "$ac_file" ||
22546 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22547 X"$ac_file" : 'X\(//\)[^/]' \| \
22548 X"$ac_file" : 'X\(//\)$' \| \
22549 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22550 $as_echo X"$ac_file" |
22551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22552 s//\1/
22553 q
22554 }
22555 /^X\(\/\/\)[^/].*/{
22556 s//\1/
22557 q
22558 }
22559 /^X\(\/\/\)$/{
22560 s//\1/
22561 q
22562 }
22563 /^X\(\/\).*/{
22564 s//\1/
22565 q
22566 }
22567 s/.*/./; q'`
22568 { as_dir="$ac_dir"
22569 case $as_dir in #(
22570 -*) as_dir=./$as_dir;;
22571 esac
22572 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22573 as_dirs=
22574 while :; do
22575 case $as_dir in #(
22576 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22577 *) as_qdir=$as_dir;;
22578 esac
22579 as_dirs="'$as_qdir' $as_dirs"
22580 as_dir=`$as_dirname -- "$as_dir" ||
22581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22582 X"$as_dir" : 'X\(//\)[^/]' \| \
22583 X"$as_dir" : 'X\(//\)$' \| \
22584 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22585 $as_echo X"$as_dir" |
22586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22587 s//\1/
22588 q
22589 }
22590 /^X\(\/\/\)[^/].*/{
22591 s//\1/
22592 q
22593 }
22594 /^X\(\/\/\)$/{
22595 s//\1/
22596 q
22597 }
22598 /^X\(\/\).*/{
22599 s//\1/
22600 q
22601 }
22602 s/.*/./; q'`
22603 test -d "$as_dir" && break
22604 done
22605 test -z "$as_dirs" || eval "mkdir $as_dirs"
22606 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22607 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22608 { (exit 1); exit 1; }; }; }
22609 ac_builddir=.
22610
22611 case "$ac_dir" in
22612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22613 *)
22614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22615 # A ".." for each directory in $ac_dir_suffix.
22616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22617 case $ac_top_builddir_sub in
22618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22620 esac ;;
22621 esac
22622 ac_abs_top_builddir=$ac_pwd
22623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22624 # for backward compatibility:
22625 ac_top_builddir=$ac_top_build_prefix
22626
22627 case $srcdir in
22628 .) # We are building in place.
22629 ac_srcdir=.
22630 ac_top_srcdir=$ac_top_builddir_sub
22631 ac_abs_top_srcdir=$ac_pwd ;;
22632 [\\/]* | ?:[\\/]* ) # Absolute name.
22633 ac_srcdir=$srcdir$ac_dir_suffix;
22634 ac_top_srcdir=$srcdir
22635 ac_abs_top_srcdir=$srcdir ;;
22636 *) # Relative name.
22637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22638 ac_top_srcdir=$ac_top_build_prefix$srcdir
22639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22640 esac
22641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22642
22643
22644 case $ac_mode in
22645 :F)
22646 #
22647 # CONFIG_FILE
22648 #
22649
22650 case $INSTALL in
22651 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22652 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22653 esac
22654 ac_MKDIR_P=$MKDIR_P
22655 case $MKDIR_P in
22656 [\\/$]* | ?:[\\/]* ) ;;
22657 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22658 esac
22659 _ACEOF
22660
22661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22662 # If the template does not know about datarootdir, expand it.
22663 # FIXME: This hack should be removed a few years after 2.60.
22664 ac_datarootdir_hack=; ac_datarootdir_seen=
22665
22666 ac_sed_dataroot='
22667 /datarootdir/ {
22668 p
22669 q
22670 }
22671 /@datadir@/p
22672 /@docdir@/p
22673 /@infodir@/p
22674 /@localedir@/p
22675 /@mandir@/p
22676 '
22677 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22678 *datarootdir*) ac_datarootdir_seen=yes;;
22679 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22680 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22681 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22682 _ACEOF
22683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22684 ac_datarootdir_hack='
22685 s&@datadir@&$datadir&g
22686 s&@docdir@&$docdir&g
22687 s&@infodir@&$infodir&g
22688 s&@localedir@&$localedir&g
22689 s&@mandir@&$mandir&g
22690 s&\\\${datarootdir}&$datarootdir&g' ;;
22691 esac
22692 _ACEOF
22693
22694 # Neutralize VPATH when `$srcdir' = `.'.
22695 # Shell code in configure.ac might set extrasub.
22696 # FIXME: do we really want to maintain this feature?
22697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22698 ac_sed_extra="$ac_vpsub
22699 $extrasub
22700 _ACEOF
22701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22702 :t
22703 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22704 s|@configure_input@|$ac_sed_conf_input|;t t
22705 s&@top_builddir@&$ac_top_builddir_sub&;t t
22706 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22707 s&@srcdir@&$ac_srcdir&;t t
22708 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22709 s&@top_srcdir@&$ac_top_srcdir&;t t
22710 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22711 s&@builddir@&$ac_builddir&;t t
22712 s&@abs_builddir@&$ac_abs_builddir&;t t
22713 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22714 s&@INSTALL@&$ac_INSTALL&;t t
22715 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22716 $ac_datarootdir_hack
22717 "
22718 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22719 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22720 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22721 { (exit 1); exit 1; }; }
22722
22723 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22724 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22725 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22726 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22727 which seems to be undefined. Please make sure it is defined." >&5
22728 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22729 which seems to be undefined. Please make sure it is defined." >&2;}
22730
22731 rm -f "$tmp/stdin"
22732 case $ac_file in
22733 -) cat "$tmp/out" && rm -f "$tmp/out";;
22734 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22735 esac \
22736 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22737 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22738 { (exit 1); exit 1; }; }
22739 ;;
22740 :H)
22741 #
22742 # CONFIG_HEADER
22743 #
22744 if test x"$ac_file" != x-; then
22745 {
22746 $as_echo "/* $configure_input */" \
22747 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22748 } >"$tmp/config.h" \
22749 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22750 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22751 { (exit 1); exit 1; }; }
22752 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22753 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22754 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22755 else
22756 rm -f "$ac_file"
22757 mv "$tmp/config.h" "$ac_file" \
22758 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22759 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22760 { (exit 1); exit 1; }; }
22761 fi
22762 else
22763 $as_echo "/* $configure_input */" \
22764 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22765 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22766 $as_echo "$as_me: error: could not create -" >&2;}
22767 { (exit 1); exit 1; }; }
22768 fi
22769 # Compute "$ac_file"'s index in $config_headers.
22770 _am_arg="$ac_file"
22771 _am_stamp_count=1
22772 for _am_header in $config_headers :; do
22773 case $_am_header in
22774 $_am_arg | $_am_arg:* )
22775 break ;;
22776 * )
22777 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22778 esac
22779 done
22780 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22781 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22782 X"$_am_arg" : 'X\(//\)[^/]' \| \
22783 X"$_am_arg" : 'X\(//\)$' \| \
22784 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22785 $as_echo X"$_am_arg" |
22786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22787 s//\1/
22788 q
22789 }
22790 /^X\(\/\/\)[^/].*/{
22791 s//\1/
22792 q
22793 }
22794 /^X\(\/\/\)$/{
22795 s//\1/
22796 q
22797 }
22798 /^X\(\/\).*/{
22799 s//\1/
22800 q
22801 }
22802 s/.*/./; q'`/stamp-h$_am_stamp_count
22803 ;;
22804
22805 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22806 $as_echo "$as_me: executing $ac_file commands" >&6;}
22807 ;;
22808 esac
22809
22810
22811 case $ac_file$ac_mode in
22812 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22813 # Strip MF so we end up with the name of the file.
22814 mf=`echo "$mf" | sed -e 's/:.*$//'`
22815 # Check whether this is an Automake generated Makefile or not.
22816 # We used to match only the files named `Makefile.in', but
22817 # some people rename them; so instead we look at the file content.
22818 # Grep'ing the first line is not enough: some people post-process
22819 # each Makefile.in and add a new line on top of each file to say so.
22820 # Grep'ing the whole file is not good either: AIX grep has a line
22821 # limit of 2048, but all sed's we know have understand at least 4000.
22822 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22823 dirpart=`$as_dirname -- "$mf" ||
22824 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22825 X"$mf" : 'X\(//\)[^/]' \| \
22826 X"$mf" : 'X\(//\)$' \| \
22827 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22828 $as_echo X"$mf" |
22829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22830 s//\1/
22831 q
22832 }
22833 /^X\(\/\/\)[^/].*/{
22834 s//\1/
22835 q
22836 }
22837 /^X\(\/\/\)$/{
22838 s//\1/
22839 q
22840 }
22841 /^X\(\/\).*/{
22842 s//\1/
22843 q
22844 }
22845 s/.*/./; q'`
22846 else
22847 continue
22848 fi
22849 # Extract the definition of DEPDIR, am__include, and am__quote
22850 # from the Makefile without running `make'.
22851 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22852 test -z "$DEPDIR" && continue
22853 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22854 test -z "am__include" && continue
22855 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22856 # When using ansi2knr, U may be empty or an underscore; expand it
22857 U=`sed -n 's/^U = //p' < "$mf"`
22858 # Find all dependency output files, they are included files with
22859 # $(DEPDIR) in their names. We invoke sed twice because it is the
22860 # simplest approach to changing $(DEPDIR) to its actual value in the
22861 # expansion.
22862 for file in `sed -n "
22863 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22864 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22865 # Make sure the directory exists.
22866 test -f "$dirpart/$file" && continue
22867 fdir=`$as_dirname -- "$file" ||
22868 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22869 X"$file" : 'X\(//\)[^/]' \| \
22870 X"$file" : 'X\(//\)$' \| \
22871 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22872 $as_echo X"$file" |
22873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22874 s//\1/
22875 q
22876 }
22877 /^X\(\/\/\)[^/].*/{
22878 s//\1/
22879 q
22880 }
22881 /^X\(\/\/\)$/{
22882 s//\1/
22883 q
22884 }
22885 /^X\(\/\).*/{
22886 s//\1/
22887 q
22888 }
22889 s/.*/./; q'`
22890 { as_dir=$dirpart/$fdir
22891 case $as_dir in #(
22892 -*) as_dir=./$as_dir;;
22893 esac
22894 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22895 as_dirs=
22896 while :; do
22897 case $as_dir in #(
22898 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22899 *) as_qdir=$as_dir;;
22900 esac
22901 as_dirs="'$as_qdir' $as_dirs"
22902 as_dir=`$as_dirname -- "$as_dir" ||
22903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22904 X"$as_dir" : 'X\(//\)[^/]' \| \
22905 X"$as_dir" : 'X\(//\)$' \| \
22906 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22907 $as_echo X"$as_dir" |
22908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22909 s//\1/
22910 q
22911 }
22912 /^X\(\/\/\)[^/].*/{
22913 s//\1/
22914 q
22915 }
22916 /^X\(\/\/\)$/{
22917 s//\1/
22918 q
22919 }
22920 /^X\(\/\).*/{
22921 s//\1/
22922 q
22923 }
22924 s/.*/./; q'`
22925 test -d "$as_dir" && break
22926 done
22927 test -z "$as_dirs" || eval "mkdir $as_dirs"
22928 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22929 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22930 { (exit 1); exit 1; }; }; }
22931 # echo "creating $dirpart/$file"
22932 echo '# dummy' > "$dirpart/$file"
22933 done
22934 done
22935 ;;
22936
22937 esac
22938 done # for ac_tag
22939
22940
22941 { (exit 0); exit 0; }
22942 _ACEOF
22943 chmod +x $CONFIG_STATUS
22944 ac_clean_files=$ac_clean_files_save
22945
22946 test $ac_write_fail = 0 ||
22947 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22948 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22949 { (exit 1); exit 1; }; }
22950
22951
22952 # configure is writing to config.log, and then calls config.status.
22953 # config.status does its own redirection, appending to config.log.
22954 # Unfortunately, on DOS this fails, as config.log is still kept open
22955 # by configure, so config.status won't be able to write to it; its
22956 # output is simply discarded. So we exec the FD to /dev/null,
22957 # effectively closing config.log, so it can be properly (re)opened and
22958 # appended to by config.status. When coming back to configure, we
22959 # need to make the FD available again.
22960 if test "$no_create" != yes; then
22961 ac_cs_success=:
22962 ac_config_status_args=
22963 test "$silent" = yes &&
22964 ac_config_status_args="$ac_config_status_args --quiet"
22965 exec 5>/dev/null
22966 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22967 exec 5>>config.log
22968 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22969 # would make configure fail if this is the last instruction.
22970 $ac_cs_success || { (exit 1); exit 1; }
22971 fi
22972 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22973 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22974 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22975 fi
22976
22977