configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libXi 1.1.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='libXi'
730 PACKAGE_TARNAME='libXi'
731 PACKAGE_VERSION='1.1.3'
732 PACKAGE_STRING='libXi 1.1.3'
733 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 # include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 # include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 am__isrc
812 CYGPATH_W
813 PACKAGE
814 VERSION
815 ACLOCAL
816 AUTOCONF
817 AUTOMAKE
818 AUTOHEADER
819 MAKEINFO
820 install_sh
821 STRIP
822 INSTALL_STRIP_PROGRAM
823 mkdir_p
824 AWK
825 SET_MAKE
826 am__leading_dot
827 AMTAR
828 am__tar
829 am__untar
830 MAINTAINER_MODE_TRUE
831 MAINTAINER_MODE_FALSE
832 MAINT
833 CC
834 CFLAGS
835 LDFLAGS
836 CPPFLAGS
837 ac_ct_CC
838 EXEEXT
839 OBJEXT
840 DEPDIR
841 am__include
842 am__quote
843 AMDEP_TRUE
844 AMDEP_FALSE
845 AMDEPBACKSLASH
846 CCDEPMODE
847 am__fastdepCC_TRUE
848 am__fastdepCC_FALSE
849 build
850 build_cpu
851 build_vendor
852 build_os
853 host
854 host_cpu
855 host_vendor
856 host_os
857 GREP
858 EGREP
859 LN_S
860 ECHO
861 AR
862 RANLIB
863 CPP
864 CXX
865 CXXFLAGS
866 ac_ct_CXX
867 CXXDEPMODE
868 am__fastdepCXX_TRUE
869 am__fastdepCXX_FALSE
870 CXXCPP
871 F77
872 FFLAGS
873 ac_ct_F77
874 LIBTOOL
875 PKG_CONFIG
876 XI_CFLAGS
877 XI_LIBS
878 MALLOC_ZERO_CFLAGS
879 XMALLOC_ZERO_CFLAGS
880 XTMALLOC_ZERO_CFLAGS
881 APP_MAN_SUFFIX
882 LIB_MAN_SUFFIX
883 FILE_MAN_SUFFIX
884 MISC_MAN_SUFFIX
885 DRIVER_MAN_SUFFIX
886 ADMIN_MAN_SUFFIX
887 APP_MAN_DIR
888 LIB_MAN_DIR
889 FILE_MAN_DIR
890 MISC_MAN_DIR
891 DRIVER_MAN_DIR
892 ADMIN_MAN_DIR
893 LIBOBJS
894 LTLIBOBJS'
895 ac_subst_files=''
896 ac_precious_vars='build_alias
897 host_alias
898 target_alias
899 CC
900 CFLAGS
901 LDFLAGS
902 LIBS
903 CPPFLAGS
904 CPP
905 CXX
906 CXXFLAGS
907 CCC
908 CXXCPP
909 F77
910 FFLAGS
911 PKG_CONFIG
912 XI_CFLAGS
913 XI_LIBS'
914
915
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
921 cache_file=/dev/null
922 exec_prefix=NONE
923 no_create=
924 no_recursion=
925 prefix=NONE
926 program_prefix=NONE
927 program_suffix=NONE
928 program_transform_name=s,x,x,
929 silent=
930 site=
931 srcdir=
932 verbose=
933 x_includes=NONE
934 x_libraries=NONE
935
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir='${exec_prefix}/bin'
943 sbindir='${exec_prefix}/sbin'
944 libexecdir='${exec_prefix}/libexec'
945 datarootdir='${prefix}/share'
946 datadir='${datarootdir}'
947 sysconfdir='${prefix}/etc'
948 sharedstatedir='${prefix}/com'
949 localstatedir='${prefix}/var'
950 includedir='${prefix}/include'
951 oldincludedir='/usr/include'
952 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953 infodir='${datarootdir}/info'
954 htmldir='${docdir}'
955 dvidir='${docdir}'
956 pdfdir='${docdir}'
957 psdir='${docdir}'
958 libdir='${exec_prefix}/lib'
959 localedir='${datarootdir}/locale'
960 mandir='${datarootdir}/man'
961
962 ac_prev=
963 ac_dashdash=
964 for ac_option
965 do
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\$ac_option
969 ac_prev=
970 continue
971 fi
972
973 case $ac_option in
974 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 *) ac_optarg=yes ;;
976 esac
977
978 # Accept the important Cygnus configure options, so we can diagnose typos.
979
980 case $ac_dashdash$ac_option in
981 --)
982 ac_dashdash=yes ;;
983
984 -bindir | --bindir | --bindi | --bind | --bin | --bi)
985 ac_prev=bindir ;;
986 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987 bindir=$ac_optarg ;;
988
989 -build | --build | --buil | --bui | --bu)
990 ac_prev=build_alias ;;
991 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992 build_alias=$ac_optarg ;;
993
994 -cache-file | --cache-file | --cache-fil | --cache-fi \
995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996 ac_prev=cache_file ;;
997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999 cache_file=$ac_optarg ;;
1000
1001 --config-cache | -C)
1002 cache_file=config.cache ;;
1003
1004 -datadir | --datadir | --datadi | --datad)
1005 ac_prev=datadir ;;
1006 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007 datadir=$ac_optarg ;;
1008
1009 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010 | --dataroo | --dataro | --datar)
1011 ac_prev=datarootdir ;;
1012 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014 datarootdir=$ac_optarg ;;
1015
1016 -disable-* | --disable-*)
1017 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023 eval enable_$ac_feature=no ;;
1024
1025 -docdir | --docdir | --docdi | --doc | --do)
1026 ac_prev=docdir ;;
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1029
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 ac_prev=dvidir ;;
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
1034
1035 -enable-* | --enable-*)
1036 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1042 eval enable_$ac_feature=\$ac_optarg ;;
1043
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1052
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1056
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1063
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1068
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1074
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1081
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1086
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1091
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1098
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1103
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir=$ac_optarg ;;
1110
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1115
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1119
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1122 no_create=yes ;;
1123
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1127
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1136
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1141
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1148
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1155
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1172
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1177
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1182
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1186
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
1191 sbindir=$ac_optarg ;;
1192
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
1202 sharedstatedir=$ac_optarg ;;
1203
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
1207 site=$ac_optarg ;;
1208
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1213
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1220
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1225
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1228
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1231
1232 -with-* | --with-*)
1233 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 { echo "$as_me: error: invalid package name: $ac_package" >&2
1237 { (exit 1); exit 1; }; }
1238 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239 eval with_$ac_package=\$ac_optarg ;;
1240
1241 -without-* | --without-*)
1242 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 { echo "$as_me: error: invalid package name: $ac_package" >&2
1246 { (exit 1); exit 1; }; }
1247 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1248 eval with_$ac_package=no ;;
1249
1250 --x)
1251 # Obsolete; use --with-x.
1252 with_x=yes ;;
1253
1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255 | --x-incl | --x-inc | --x-in | --x-i)
1256 ac_prev=x_includes ;;
1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259 x_includes=$ac_optarg ;;
1260
1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263 ac_prev=x_libraries ;;
1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266 x_libraries=$ac_optarg ;;
1267
1268 -*) { echo "$as_me: error: unrecognized option: $ac_option
1269 Try \`$0 --help' for more information." >&2
1270 { (exit 1); exit 1; }; }
1271 ;;
1272
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1277 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1278 { (exit 1); exit 1; }; }
1279 eval $ac_envvar=\$ac_optarg
1280 export $ac_envvar ;;
1281
1282 *)
1283 # FIXME: should be removed in autoconf 3.0.
1284 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 ;;
1289
1290 esac
1291 done
1292
1293 if test -n "$ac_prev"; then
1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295 { echo "$as_me: error: missing argument to $ac_option" >&2
1296 { (exit 1); exit 1; }; }
1297 fi
1298
1299 # Be sure to have absolute directory names.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
1304 do
1305 eval ac_val=\$$ac_var
1306 case $ac_val in
1307 [\\/$]* | ?:[\\/]* ) continue;;
1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 esac
1310 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311 { (exit 1); exit 1; }; }
1312 done
1313
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1320
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
1325 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326 If a cross compiler is detected then cross compile mode will be used." >&2
1327 elif test "x$build_alias" != "x$host_alias"; then
1328 cross_compiling=yes
1329 fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 { echo "$as_me: error: Working directory cannot be determined" >&2
1342 { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 { echo "$as_me: error: pwd does not report name of working directory" >&2
1345 { (exit 1); exit 1; }; }
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$0" ||
1353 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$0" : 'X\(//\)[^/]' \| \
1355 X"$0" : 'X\(//\)$' \| \
1356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1357 echo X"$0" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)[^/].*/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\).*/{
1371 s//\1/
1372 q
1373 }
1374 s/.*/./; q'`
1375 srcdir=$ac_confdir
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 srcdir=..
1378 fi
1379 else
1380 ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385 { (exit 1); exit 1; }; }
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1390 { (exit 1); exit 1; }; }
1391 pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1415 cat <<_ACEOF
1416 \`configure' configures libXi 1.1.3 to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1469 _ACEOF
1470
1471 cat <<\_ACEOF
1472
1473 Program names:
1474 --program-prefix=PREFIX prepend PREFIX to installed program names
1475 --program-suffix=SUFFIX append SUFFIX to installed program names
1476 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1477
1478 System types:
1479 --build=BUILD configure for building on BUILD [guessed]
1480 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 _ACEOF
1482 fi
1483
1484 if test -n "$ac_init_help"; then
1485 case $ac_init_help in
1486 short | recursive ) echo "Configuration of libXi 1.1.3:";;
1487 esac
1488 cat <<\_ACEOF
1489
1490 Optional Features:
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-maintainer-mode enable make rules and dependencies not useful
1494 (and sometimes confusing) to the casual installer
1495 --disable-dependency-tracking speeds up one-time build
1496 --enable-dependency-tracking do not reject slow dependency extractors
1497 --enable-shared[=PKGS] build shared libraries [default=yes]
1498 --enable-static[=PKGS] build static libraries [default=yes]
1499 --enable-fast-install[=PKGS]
1500 optimize for fast installation [default=yes]
1501 --disable-libtool-lock avoid locking (might break parallel builds)
1502 --enable-malloc0returnsnull
1503 malloc(0) returns NULL (default: auto)
1504
1505 Optional Packages:
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1509 --with-pic try to use only PIC/non-PIC objects [default=use
1510 both]
1511 --with-tags[=TAGS] include additional configurations [automatic]
1512 --with-release-version=STRING
1513 Use release version string in package name
1514
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CPP C preprocessor
1524 CXX C++ compiler command
1525 CXXFLAGS C++ compiler flags
1526 CXXCPP C++ preprocessor
1527 F77 Fortran 77 compiler command
1528 FFLAGS Fortran 77 compiler flags
1529 PKG_CONFIG path to pkg-config utility
1530 XI_CFLAGS C compiler flags for XI, overriding pkg-config
1531 XI_LIBS linker flags for XI, overriding pkg-config
1532
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1535
1536 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" || continue
1545 ac_builddir=.
1546
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *)
1550 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1562
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1592 fi
1593
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 libXi configure 1.1.3
1598 generated by GNU Autoconf 2.61
1599
1600 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1601 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1604 _ACEOF
1605 exit
1606 fi
1607 cat >config.log <<_ACEOF
1608 This file contains any messages produced by compilers while
1609 running configure, to aid debugging if configure makes a mistake.
1610
1611 It was created by libXi $as_me 1.1.3, which was
1612 generated by GNU Autoconf 2.61. Invocation command line was
1613
1614 $ $0 $@
1615
1616 _ACEOF
1617 exec 5>>config.log
1618 {
1619 cat <<_ASUNAME
1620 ## --------- ##
1621 ## Platform. ##
1622 ## --------- ##
1623
1624 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1625 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1626 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1627 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1628 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1629
1630 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1631 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1632
1633 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1634 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1635 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1636 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1637 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1638 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1639 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1640
1641 _ASUNAME
1642
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1645 do
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 echo "PATH: $as_dir"
1649 done
1650 IFS=$as_save_IFS
1651
1652 } >&5
1653
1654 cat >&5 <<_ACEOF
1655
1656
1657 ## ----------- ##
1658 ## Core tests. ##
1659 ## ----------- ##
1660
1661 _ACEOF
1662
1663
1664 # Keep a trace of the command line.
1665 # Strip out --no-create and --no-recursion so they do not pile up.
1666 # Strip out --silent because we don't want to record it for future runs.
1667 # Also quote any args containing shell meta-characters.
1668 # Make two passes to allow for proper duplicate-argument suppression.
1669 ac_configure_args=
1670 ac_configure_args0=
1671 ac_configure_args1=
1672 ac_must_keep_next=false
1673 for ac_pass in 1 2
1674 do
1675 for ac_arg
1676 do
1677 case $ac_arg in
1678 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1680 | -silent | --silent | --silen | --sile | --sil)
1681 continue ;;
1682 *\'*)
1683 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1684 esac
1685 case $ac_pass in
1686 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1687 2)
1688 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1689 if test $ac_must_keep_next = true; then
1690 ac_must_keep_next=false # Got value, back to normal.
1691 else
1692 case $ac_arg in
1693 *=* | --config-cache | -C | -disable-* | --disable-* \
1694 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1695 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1696 | -with-* | --with-* | -without-* | --without-* | --x)
1697 case "$ac_configure_args0 " in
1698 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1699 esac
1700 ;;
1701 -* ) ac_must_keep_next=true ;;
1702 esac
1703 fi
1704 ac_configure_args="$ac_configure_args '$ac_arg'"
1705 ;;
1706 esac
1707 done
1708 done
1709 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1710 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1711
1712 # When interrupted or exit'd, cleanup temporary files, and complete
1713 # config.log. We remove comments because anyway the quotes in there
1714 # would cause problems or look ugly.
1715 # WARNING: Use '\'' to represent an apostrophe within the trap.
1716 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1717 trap 'exit_status=$?
1718 # Save into config.log some information that might help in debugging.
1719 {
1720 echo
1721
1722 cat <<\_ASBOX
1723 ## ---------------- ##
1724 ## Cache variables. ##
1725 ## ---------------- ##
1726 _ASBOX
1727 echo
1728 # The following way of writing the cache mishandles newlines in values,
1729 (
1730 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1731 eval ac_val=\$$ac_var
1732 case $ac_val in #(
1733 *${as_nl}*)
1734 case $ac_var in #(
1735 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1736 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1737 esac
1738 case $ac_var in #(
1739 _ | IFS | as_nl) ;; #(
1740 *) $as_unset $ac_var ;;
1741 esac ;;
1742 esac
1743 done
1744 (set) 2>&1 |
1745 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1746 *${as_nl}ac_space=\ *)
1747 sed -n \
1748 "s/'\''/'\''\\\\'\'''\''/g;
1749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1750 ;; #(
1751 *)
1752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1753 ;;
1754 esac |
1755 sort
1756 )
1757 echo
1758
1759 cat <<\_ASBOX
1760 ## ----------------- ##
1761 ## Output variables. ##
1762 ## ----------------- ##
1763 _ASBOX
1764 echo
1765 for ac_var in $ac_subst_vars
1766 do
1767 eval ac_val=\$$ac_var
1768 case $ac_val in
1769 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770 esac
1771 echo "$ac_var='\''$ac_val'\''"
1772 done | sort
1773 echo
1774
1775 if test -n "$ac_subst_files"; then
1776 cat <<\_ASBOX
1777 ## ------------------- ##
1778 ## File substitutions. ##
1779 ## ------------------- ##
1780 _ASBOX
1781 echo
1782 for ac_var in $ac_subst_files
1783 do
1784 eval ac_val=\$$ac_var
1785 case $ac_val in
1786 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787 esac
1788 echo "$ac_var='\''$ac_val'\''"
1789 done | sort
1790 echo
1791 fi
1792
1793 if test -s confdefs.h; then
1794 cat <<\_ASBOX
1795 ## ----------- ##
1796 ## confdefs.h. ##
1797 ## ----------- ##
1798 _ASBOX
1799 echo
1800 cat confdefs.h
1801 echo
1802 fi
1803 test "$ac_signal" != 0 &&
1804 echo "$as_me: caught signal $ac_signal"
1805 echo "$as_me: exit $exit_status"
1806 } >&5
1807 rm -f core *.core core.conftest.* &&
1808 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1809 exit $exit_status
1810 ' 0
1811 for ac_signal in 1 2 13 15; do
1812 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1813 done
1814 ac_signal=0
1815
1816 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1817 rm -f -r conftest* confdefs.h
1818
1819 # Predefined preprocessor variables.
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_NAME "$PACKAGE_NAME"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1828 _ACEOF
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_STRING "$PACKAGE_STRING"
1838 _ACEOF
1839
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1843 _ACEOF
1844
1845
1846 # Let the site file select an alternate cache file if it wants to.
1847 # Prefer explicitly selected file to automatically selected ones.
1848 if test -n "$CONFIG_SITE"; then
1849 set x "$CONFIG_SITE"
1850 elif test "x$prefix" != xNONE; then
1851 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1852 else
1853 set x "$ac_default_prefix/share/config.site" \
1854 "$ac_default_prefix/etc/config.site"
1855 fi
1856 shift
1857 for ac_site_file
1858 do
1859 if test -r "$ac_site_file"; then
1860 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1861 echo "$as_me: loading site script $ac_site_file" >&6;}
1862 sed 's/^/| /' "$ac_site_file" >&5
1863 . "$ac_site_file"
1864 fi
1865 done
1866
1867 if test -r "$cache_file"; then
1868 # Some versions of bash will fail to source /dev/null (special
1869 # files actually), so we avoid doing that.
1870 if test -f "$cache_file"; then
1871 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1872 echo "$as_me: loading cache $cache_file" >&6;}
1873 case $cache_file in
1874 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1875 *) . "./$cache_file";;
1876 esac
1877 fi
1878 else
1879 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1880 echo "$as_me: creating cache $cache_file" >&6;}
1881 >$cache_file
1882 fi
1883
1884 # Check that the precious variables saved in the cache have kept the same
1885 # value.
1886 ac_cache_corrupted=false
1887 for ac_var in $ac_precious_vars; do
1888 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1889 eval ac_new_set=\$ac_env_${ac_var}_set
1890 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1891 eval ac_new_val=\$ac_env_${ac_var}_value
1892 case $ac_old_set,$ac_new_set in
1893 set,)
1894 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1895 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1896 ac_cache_corrupted=: ;;
1897 ,set)
1898 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1899 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1900 ac_cache_corrupted=: ;;
1901 ,);;
1902 *)
1903 if test "x$ac_old_val" != "x$ac_new_val"; then
1904 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1905 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1906 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1907 echo "$as_me: former value: $ac_old_val" >&2;}
1908 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1909 echo "$as_me: current value: $ac_new_val" >&2;}
1910 ac_cache_corrupted=:
1911 fi;;
1912 esac
1913 # Pass precious variables to config.status.
1914 if test "$ac_new_set" = set; then
1915 case $ac_new_val in
1916 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1917 *) ac_arg=$ac_var=$ac_new_val ;;
1918 esac
1919 case " $ac_configure_args " in
1920 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1921 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1922 esac
1923 fi
1924 done
1925 if $ac_cache_corrupted; then
1926 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1927 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1928 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1929 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1930 { (exit 1); exit 1; }; }
1931 fi
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957 ac_ext=c
1958 ac_cpp='$CPP $CPPFLAGS'
1959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962
1963
1964 am__api_version='1.10'
1965
1966 ac_aux_dir=
1967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1968 if test -f "$ac_dir/install-sh"; then
1969 ac_aux_dir=$ac_dir
1970 ac_install_sh="$ac_aux_dir/install-sh -c"
1971 break
1972 elif test -f "$ac_dir/install.sh"; then
1973 ac_aux_dir=$ac_dir
1974 ac_install_sh="$ac_aux_dir/install.sh -c"
1975 break
1976 elif test -f "$ac_dir/shtool"; then
1977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/shtool install -c"
1979 break
1980 fi
1981 done
1982 if test -z "$ac_aux_dir"; then
1983 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1984 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1985 { (exit 1); exit 1; }; }
1986 fi
1987
1988 # These three variables are undocumented and unsupported,
1989 # and are intended to be withdrawn in a future Autoconf release.
1990 # They can cause serious problems if a builder's source tree is in a directory
1991 # whose full name contains unusual characters.
1992 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1993 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1994 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1995
1996
1997 # Find a good install program. We prefer a C program (faster),
1998 # so one script is as good as another. But avoid the broken or
1999 # incompatible versions:
2000 # SysV /etc/install, /usr/sbin/install
2001 # SunOS /usr/etc/install
2002 # IRIX /sbin/install
2003 # AIX /bin/install
2004 # AmigaOS /C/install, which installs bootblocks on floppy discs
2005 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2006 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2007 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2008 # OS/2's system install, which has a completely different semantic
2009 # ./install, which can be erroneously created by make from ./install.sh.
2010 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2011 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2012 if test -z "$INSTALL"; then
2013 if test "${ac_cv_path_install+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 # Account for people who put trailing slashes in PATH elements.
2022 case $as_dir/ in
2023 ./ | .// | /cC/* | \
2024 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2025 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2026 /usr/ucb/* ) ;;
2027 *)
2028 # OSF1 and SCO ODT 3.0 have their own names for install.
2029 # Don't use installbsd from OSF since it installs stuff as root
2030 # by default.
2031 for ac_prog in ginstall scoinst install; do
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2034 if test $ac_prog = install &&
2035 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2036 # AIX install. It has an incompatible calling convention.
2037 :
2038 elif test $ac_prog = install &&
2039 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2040 # program-specific install script used by HP pwplus--don't use.
2041 :
2042 else
2043 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2044 break 3
2045 fi
2046 fi
2047 done
2048 done
2049 ;;
2050 esac
2051 done
2052 IFS=$as_save_IFS
2053
2054
2055 fi
2056 if test "${ac_cv_path_install+set}" = set; then
2057 INSTALL=$ac_cv_path_install
2058 else
2059 # As a last resort, use the slow shell script. Don't cache a
2060 # value for INSTALL within a source directory, because that will
2061 # break other packages using the cache if that directory is
2062 # removed, or if the value is a relative name.
2063 INSTALL=$ac_install_sh
2064 fi
2065 fi
2066 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2067 echo "${ECHO_T}$INSTALL" >&6; }
2068
2069 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2070 # It thinks the first close brace ends the variable substitution.
2071 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2072
2073 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2074
2075 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2076
2077 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2078 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2079 # Just in case
2080 sleep 1
2081 echo timestamp > conftest.file
2082 # Do `set' in a subshell so we don't clobber the current shell's
2083 # arguments. Must try -L first in case configure is actually a
2084 # symlink; some systems play weird games with the mod time of symlinks
2085 # (eg FreeBSD returns the mod time of the symlink's containing
2086 # directory).
2087 if (
2088 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2089 if test "$*" = "X"; then
2090 # -L didn't work.
2091 set X `ls -t $srcdir/configure conftest.file`
2092 fi
2093 rm -f conftest.file
2094 if test "$*" != "X $srcdir/configure conftest.file" \
2095 && test "$*" != "X conftest.file $srcdir/configure"; then
2096
2097 # If neither matched, then we have a broken ls. This can happen
2098 # if, for instance, CONFIG_SHELL is bash and it inherits a
2099 # broken ls alias from the environment. This has actually
2100 # happened. Such a system could not be considered "sane".
2101 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2102 alias in your environment" >&5
2103 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2104 alias in your environment" >&2;}
2105 { (exit 1); exit 1; }; }
2106 fi
2107
2108 test "$2" = conftest.file
2109 )
2110 then
2111 # Ok.
2112 :
2113 else
2114 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2115 Check your system clock" >&5
2116 echo "$as_me: error: newly created file is older than distributed files!
2117 Check your system clock" >&2;}
2118 { (exit 1); exit 1; }; }
2119 fi
2120 { echo "$as_me:$LINENO: result: yes" >&5
2121 echo "${ECHO_T}yes" >&6; }
2122 test "$program_prefix" != NONE &&
2123 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2124 # Use a double $ so make ignores it.
2125 test "$program_suffix" != NONE &&
2126 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2127 # Double any \ or $. echo might interpret backslashes.
2128 # By default was `s,x,x', remove it if useless.
2129 cat <<\_ACEOF >conftest.sed
2130 s/[\\$]/&&/g;s/;s,x,x,$//
2131 _ACEOF
2132 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2133 rm -f conftest.sed
2134
2135 # expand $ac_aux_dir to an absolute path
2136 am_aux_dir=`cd $ac_aux_dir && pwd`
2137
2138 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2139 # Use eval to expand $SHELL
2140 if eval "$MISSING --run true"; then
2141 am_missing_run="$MISSING --run "
2142 else
2143 am_missing_run=
2144 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2145 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2146 fi
2147
2148 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2149 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2150 if test -z "$MKDIR_P"; then
2151 if test "${ac_cv_path_mkdir+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2156 do
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_prog in mkdir gmkdir; do
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2162 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2163 'mkdir (GNU coreutils) '* | \
2164 'mkdir (coreutils) '* | \
2165 'mkdir (fileutils) '4.1*)
2166 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2167 break 3;;
2168 esac
2169 done
2170 done
2171 done
2172 IFS=$as_save_IFS
2173
2174 fi
2175
2176 if test "${ac_cv_path_mkdir+set}" = set; then
2177 MKDIR_P="$ac_cv_path_mkdir -p"
2178 else
2179 # As a last resort, use the slow shell script. Don't cache a
2180 # value for MKDIR_P within a source directory, because that will
2181 # break other packages using the cache if that directory is
2182 # removed, or if the value is a relative name.
2183 test -d ./--version && rmdir ./--version
2184 MKDIR_P="$ac_install_sh -d"
2185 fi
2186 fi
2187 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2188 echo "${ECHO_T}$MKDIR_P" >&6; }
2189
2190 mkdir_p="$MKDIR_P"
2191 case $mkdir_p in
2192 [\\/$]* | ?:[\\/]*) ;;
2193 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2194 esac
2195
2196 for ac_prog in gawk mawk nawk awk
2197 do
2198 # Extract the first word of "$ac_prog", so it can be a program name with args.
2199 set dummy $ac_prog; ac_word=$2
2200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2202 if test "${ac_cv_prog_AWK+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205 if test -n "$AWK"; then
2206 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2215 ac_cv_prog_AWK="$ac_prog"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 break 2
2218 fi
2219 done
2220 done
2221 IFS=$as_save_IFS
2222
2223 fi
2224 fi
2225 AWK=$ac_cv_prog_AWK
2226 if test -n "$AWK"; then
2227 { echo "$as_me:$LINENO: result: $AWK" >&5
2228 echo "${ECHO_T}$AWK" >&6; }
2229 else
2230 { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2232 fi
2233
2234
2235 test -n "$AWK" && break
2236 done
2237
2238 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2239 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2240 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2241 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 cat >conftest.make <<\_ACEOF
2245 SHELL = /bin/sh
2246 all:
2247 @echo '@@@%%%=$(MAKE)=@@@%%%'
2248 _ACEOF
2249 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2250 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2251 *@@@%%%=?*=@@@%%%*)
2252 eval ac_cv_prog_make_${ac_make}_set=yes;;
2253 *)
2254 eval ac_cv_prog_make_${ac_make}_set=no;;
2255 esac
2256 rm -f conftest.make
2257 fi
2258 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2259 { echo "$as_me:$LINENO: result: yes" >&5
2260 echo "${ECHO_T}yes" >&6; }
2261 SET_MAKE=
2262 else
2263 { echo "$as_me:$LINENO: result: no" >&5
2264 echo "${ECHO_T}no" >&6; }
2265 SET_MAKE="MAKE=${MAKE-make}"
2266 fi
2267
2268 rm -rf .tst 2>/dev/null
2269 mkdir .tst 2>/dev/null
2270 if test -d .tst; then
2271 am__leading_dot=.
2272 else
2273 am__leading_dot=_
2274 fi
2275 rmdir .tst 2>/dev/null
2276
2277 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2278 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2279 # is not polluted with repeated "-I."
2280 am__isrc=' -I$(srcdir)'
2281 # test to see if srcdir already configured
2282 if test -f $srcdir/config.status; then
2283 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2284 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2285 { (exit 1); exit 1; }; }
2286 fi
2287 fi
2288
2289 # test whether we have cygpath
2290 if test -z "$CYGPATH_W"; then
2291 if (cygpath --version) >/dev/null 2>/dev/null; then
2292 CYGPATH_W='cygpath -w'
2293 else
2294 CYGPATH_W=echo
2295 fi
2296 fi
2297
2298
2299 # Define the identity of the package.
2300 PACKAGE='libXi'
2301 VERSION='1.1.3'
2302
2303
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE "$PACKAGE"
2306 _ACEOF
2307
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define VERSION "$VERSION"
2311 _ACEOF
2312
2313 # Some tools Automake needs.
2314
2315 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2316
2317
2318 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2319
2320
2321 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2322
2323
2324 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2325
2326
2327 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2328
2329 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2330
2331 # Installed binaries are usually stripped using `strip' when the user
2332 # run `make install-strip'. However `strip' might not be the right
2333 # tool to use in cross-compilation environments, therefore Automake
2334 # will honor the `STRIP' environment variable to overrule this program.
2335 if test "$cross_compiling" != no; then
2336 if test -n "$ac_tool_prefix"; then
2337 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2338 set dummy ${ac_tool_prefix}strip; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_STRIP+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344 if test -n "$STRIP"; then
2345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 break 2
2357 fi
2358 done
2359 done
2360 IFS=$as_save_IFS
2361
2362 fi
2363 fi
2364 STRIP=$ac_cv_prog_STRIP
2365 if test -n "$STRIP"; then
2366 { echo "$as_me:$LINENO: result: $STRIP" >&5
2367 echo "${ECHO_T}$STRIP" >&6; }
2368 else
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2371 fi
2372
2373
2374 fi
2375 if test -z "$ac_cv_prog_STRIP"; then
2376 ac_ct_STRIP=$STRIP
2377 # Extract the first word of "strip", so it can be a program name with args.
2378 set dummy strip; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384 if test -n "$ac_ct_STRIP"; then
2385 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2389 do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_ac_ct_STRIP="strip"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2397 fi
2398 done
2399 done
2400 IFS=$as_save_IFS
2401
2402 fi
2403 fi
2404 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2405 if test -n "$ac_ct_STRIP"; then
2406 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2407 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2408 else
2409 { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2411 fi
2412
2413 if test "x$ac_ct_STRIP" = x; then
2414 STRIP=":"
2415 else
2416 case $cross_compiling:$ac_tool_warned in
2417 yes:)
2418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2419 whose name does not start with the host triplet. If you think this
2420 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2422 whose name does not start with the host triplet. If you think this
2423 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2424 ac_tool_warned=yes ;;
2425 esac
2426 STRIP=$ac_ct_STRIP
2427 fi
2428 else
2429 STRIP="$ac_cv_prog_STRIP"
2430 fi
2431
2432 fi
2433 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2434
2435 # We need awk for the "check" target. The system "awk" is bad on
2436 # some platforms.
2437 # Always define AMTAR for backward compatibility.
2438
2439 AMTAR=${AMTAR-"${am_missing_run}tar"}
2440
2441 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2442
2443
2444
2445
2446
2447 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2448 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2449 # Check whether --enable-maintainer-mode was given.
2450 if test "${enable_maintainer_mode+set}" = set; then
2451 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2452 else
2453 USE_MAINTAINER_MODE=no
2454 fi
2455
2456 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2457 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2458 if test $USE_MAINTAINER_MODE = yes; then
2459 MAINTAINER_MODE_TRUE=
2460 MAINTAINER_MODE_FALSE='#'
2461 else
2462 MAINTAINER_MODE_TRUE='#'
2463 MAINTAINER_MODE_FALSE=
2464 fi
2465
2466 MAINT=$MAINTAINER_MODE_TRUE
2467
2468
2469
2470 ac_config_headers="$ac_config_headers src/config.h"
2471
2472
2473 # Check for progs
2474 ac_ext=c
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479 if test -n "$ac_tool_prefix"; then
2480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487 if test -n "$CC"; then
2488 ac_cv_prog_CC="$CC" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 CC=$ac_cv_prog_CC
2508 if test -n "$CC"; then
2509 { echo "$as_me:$LINENO: result: $CC" >&5
2510 echo "${ECHO_T}$CC" >&6; }
2511 else
2512 { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2514 fi
2515
2516
2517 fi
2518 if test -z "$ac_cv_prog_CC"; then
2519 ac_ct_CC=$CC
2520 # Extract the first word of "gcc", so it can be a program name with args.
2521 set dummy gcc; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 if test -n "$ac_ct_CC"; then
2528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_ac_ct_CC="gcc"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2548 if test -n "$ac_ct_CC"; then
2549 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2550 echo "${ECHO_T}$ac_ct_CC" >&6; }
2551 else
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2554 fi
2555
2556 if test "x$ac_ct_CC" = x; then
2557 CC=""
2558 else
2559 case $cross_compiling:$ac_tool_warned in
2560 yes:)
2561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2562 whose name does not start with the host triplet. If you think this
2563 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2565 whose name does not start with the host triplet. If you think this
2566 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2567 ac_tool_warned=yes ;;
2568 esac
2569 CC=$ac_ct_CC
2570 fi
2571 else
2572 CC="$ac_cv_prog_CC"
2573 fi
2574
2575 if test -z "$CC"; then
2576 if test -n "$ac_tool_prefix"; then
2577 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2578 set dummy ${ac_tool_prefix}cc; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_CC="${ac_tool_prefix}cc"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 CC=$ac_cv_prog_CC
2605 if test -n "$CC"; then
2606 { echo "$as_me:$LINENO: result: $CC" >&5
2607 echo "${ECHO_T}$CC" >&6; }
2608 else
2609 { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2611 fi
2612
2613
2614 fi
2615 fi
2616 if test -z "$CC"; then
2617 # Extract the first word of "cc", so it can be a program name with args.
2618 set dummy cc; ac_word=$2
2619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2621 if test "${ac_cv_prog_CC+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 else
2627 ac_prog_rejected=no
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2636 ac_prog_rejected=yes
2637 continue
2638 fi
2639 ac_cv_prog_CC="cc"
2640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2642 fi
2643 done
2644 done
2645 IFS=$as_save_IFS
2646
2647 if test $ac_prog_rejected = yes; then
2648 # We found a bogon in the path, so make sure we never use it.
2649 set dummy $ac_cv_prog_CC
2650 shift
2651 if test $# != 0; then
2652 # We chose a different compiler from the bogus one.
2653 # However, it has the same basename, so the bogon will be chosen
2654 # first if we set CC to just the basename; use the full file name.
2655 shift
2656 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2657 fi
2658 fi
2659 fi
2660 fi
2661 CC=$ac_cv_prog_CC
2662 if test -n "$CC"; then
2663 { echo "$as_me:$LINENO: result: $CC" >&5
2664 echo "${ECHO_T}$CC" >&6; }
2665 else
2666 { echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6; }
2668 fi
2669
2670
2671 fi
2672 if test -z "$CC"; then
2673 if test -n "$ac_tool_prefix"; then
2674 for ac_prog in cl.exe
2675 do
2676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 CC=$ac_cv_prog_CC
2704 if test -n "$CC"; then
2705 { echo "$as_me:$LINENO: result: $CC" >&5
2706 echo "${ECHO_T}$CC" >&6; }
2707 else
2708 { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2710 fi
2711
2712
2713 test -n "$CC" && break
2714 done
2715 fi
2716 if test -z "$CC"; then
2717 ac_ct_CC=$CC
2718 for ac_prog in cl.exe
2719 do
2720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2721 set dummy $ac_prog; ac_word=$2
2722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727 if test -n "$ac_ct_CC"; then
2728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_ac_ct_CC="$ac_prog"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741 done
2742 done
2743 IFS=$as_save_IFS
2744
2745 fi
2746 fi
2747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748 if test -n "$ac_ct_CC"; then
2749 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2750 echo "${ECHO_T}$ac_ct_CC" >&6; }
2751 else
2752 { echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6; }
2754 fi
2755
2756
2757 test -n "$ac_ct_CC" && break
2758 done
2759
2760 if test "x$ac_ct_CC" = x; then
2761 CC=""
2762 else
2763 case $cross_compiling:$ac_tool_warned in
2764 yes:)
2765 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2766 whose name does not start with the host triplet. If you think this
2767 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2768 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2769 whose name does not start with the host triplet. If you think this
2770 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2771 ac_tool_warned=yes ;;
2772 esac
2773 CC=$ac_ct_CC
2774 fi
2775 fi
2776
2777 fi
2778
2779
2780 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2781 See \`config.log' for more details." >&5
2782 echo "$as_me: error: no acceptable C compiler found in \$PATH
2783 See \`config.log' for more details." >&2;}
2784 { (exit 1); exit 1; }; }
2785
2786 # Provide some information about the compiler.
2787 echo "$as_me:$LINENO: checking for C compiler version" >&5
2788 ac_compiler=`set X $ac_compile; echo $2`
2789 { (ac_try="$ac_compiler --version >&5"
2790 case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793 esac
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_compiler --version >&5") 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }
2799 { (ac_try="$ac_compiler -v >&5"
2800 case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2803 esac
2804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805 (eval "$ac_compiler -v >&5") 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }
2809 { (ac_try="$ac_compiler -V >&5"
2810 case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813 esac
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_compiler -V >&5") 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }
2819
2820 cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h. */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2826
2827 int
2828 main ()
2829 {
2830
2831 ;
2832 return 0;
2833 }
2834 _ACEOF
2835 ac_clean_files_save=$ac_clean_files
2836 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2837 # Try to create an executable without -o first, disregard a.out.
2838 # It will help us diagnose broken compilers, and finding out an intuition
2839 # of exeext.
2840 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2841 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2842 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2843 #
2844 # List of possible output files, starting from the most likely.
2845 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2846 # only as a last resort. b.out is created by i960 compilers.
2847 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2848 #
2849 # The IRIX 6 linker writes into existing files which may not be
2850 # executable, retaining their permissions. Remove them first so a
2851 # subsequent execution test works.
2852 ac_rmfiles=
2853 for ac_file in $ac_files
2854 do
2855 case $ac_file in
2856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2857 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2858 esac
2859 done
2860 rm -f $ac_rmfiles
2861
2862 if { (ac_try="$ac_link_default"
2863 case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866 esac
2867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868 (eval "$ac_link_default") 2>&5
2869 ac_status=$?
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; then
2872 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2873 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2874 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2875 # so that the user can short-circuit this test for compilers unknown to
2876 # Autoconf.
2877 for ac_file in $ac_files ''
2878 do
2879 test -f "$ac_file" || continue
2880 case $ac_file in
2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2882 ;;
2883 [ab].out )
2884 # We found the default executable, but exeext='' is most
2885 # certainly right.
2886 break;;
2887 *.* )
2888 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2889 then :; else
2890 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2891 fi
2892 # We set ac_cv_exeext here because the later test for it is not
2893 # safe: cross compilers may not add the suffix if given an `-o'
2894 # argument, so we may need to know it at that point already.
2895 # Even if this section looks crufty: it has the advantage of
2896 # actually working.
2897 break;;
2898 * )
2899 break;;
2900 esac
2901 done
2902 test "$ac_cv_exeext" = no && ac_cv_exeext=
2903
2904 else
2905 ac_file=''
2906 fi
2907
2908 { echo "$as_me:$LINENO: result: $ac_file" >&5
2909 echo "${ECHO_T}$ac_file" >&6; }
2910 if test -z "$ac_file"; then
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2913
2914 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2915 See \`config.log' for more details." >&5
2916 echo "$as_me: error: C compiler cannot create executables
2917 See \`config.log' for more details." >&2;}
2918 { (exit 77); exit 77; }; }
2919 fi
2920
2921 ac_exeext=$ac_cv_exeext
2922
2923 # Check that the compiler produces executables we can run. If not, either
2924 # the compiler is broken, or we cross compile.
2925 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2926 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2927 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2928 # If not cross compiling, check that we can run a simple program.
2929 if test "$cross_compiling" != yes; then
2930 if { ac_try='./$ac_file'
2931 { (case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_try") 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 cross_compiling=no
2941 else
2942 if test "$cross_compiling" = maybe; then
2943 cross_compiling=yes
2944 else
2945 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2946 If you meant to cross compile, use \`--host'.
2947 See \`config.log' for more details." >&5
2948 echo "$as_me: error: cannot run C compiled programs.
2949 If you meant to cross compile, use \`--host'.
2950 See \`config.log' for more details." >&2;}
2951 { (exit 1); exit 1; }; }
2952 fi
2953 fi
2954 fi
2955 { echo "$as_me:$LINENO: result: yes" >&5
2956 echo "${ECHO_T}yes" >&6; }
2957
2958 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2959 ac_clean_files=$ac_clean_files_save
2960 # Check that the compiler produces executables we can run. If not, either
2961 # the compiler is broken, or we cross compile.
2962 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2963 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2964 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2965 echo "${ECHO_T}$cross_compiling" >&6; }
2966
2967 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2968 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2969 if { (ac_try="$ac_link"
2970 case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_link") 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; then
2979 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2980 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2981 # work properly (i.e., refer to `conftest.exe'), while it won't with
2982 # `rm'.
2983 for ac_file in conftest.exe conftest conftest.*; do
2984 test -f "$ac_file" || continue
2985 case $ac_file in
2986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2987 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2988 break;;
2989 * ) break;;
2990 esac
2991 done
2992 else
2993 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2994 See \`config.log' for more details." >&5
2995 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2996 See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
2998 fi
2999
3000 rm -f conftest$ac_cv_exeext
3001 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3002 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3003
3004 rm -f conftest.$ac_ext
3005 EXEEXT=$ac_cv_exeext
3006 ac_exeext=$EXEEXT
3007 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3008 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3009 if test "${ac_cv_objext+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012 cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h. */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3018
3019 int
3020 main ()
3021 {
3022
3023 ;
3024 return 0;
3025 }
3026 _ACEOF
3027 rm -f conftest.o conftest.obj
3028 if { (ac_try="$ac_compile"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; then
3038 for ac_file in conftest.o conftest.obj conftest.*; do
3039 test -f "$ac_file" || continue;
3040 case $ac_file in
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3042 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3043 break;;
3044 esac
3045 done
3046 else
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3051 See \`config.log' for more details." >&5
3052 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3053 See \`config.log' for more details." >&2;}
3054 { (exit 1); exit 1; }; }
3055 fi
3056
3057 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3058 fi
3059 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3060 echo "${ECHO_T}$ac_cv_objext" >&6; }
3061 OBJEXT=$ac_cv_objext
3062 ac_objext=$OBJEXT
3063 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3064 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3065 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074
3075 int
3076 main ()
3077 {
3078 #ifndef __GNUC__
3079 choke me
3080 #endif
3081
3082 ;
3083 return 0;
3084 }
3085 _ACEOF
3086 rm -f conftest.$ac_objext
3087 if { (ac_try="$ac_compile"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } && {
3100 test -z "$ac_c_werror_flag" ||
3101 test ! -s conftest.err
3102 } && test -s conftest.$ac_objext; then
3103 ac_compiler_gnu=yes
3104 else
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 ac_compiler_gnu=no
3109 fi
3110
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3113
3114 fi
3115 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3116 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3117 GCC=`test $ac_compiler_gnu = yes && echo yes`
3118 ac_test_CFLAGS=${CFLAGS+set}
3119 ac_save_CFLAGS=$CFLAGS
3120 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3121 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3122 if test "${ac_cv_prog_cc_g+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 ac_save_c_werror_flag=$ac_c_werror_flag
3126 ac_c_werror_flag=yes
3127 ac_cv_prog_cc_g=no
3128 CFLAGS="-g"
3129 cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135
3136 int
3137 main ()
3138 {
3139
3140 ;
3141 return 0;
3142 }
3143 _ACEOF
3144 rm -f conftest.$ac_objext
3145 if { (ac_try="$ac_compile"
3146 case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_compile") 2>conftest.er1
3152 ac_status=$?
3153 grep -v '^ *+' conftest.er1 >conftest.err
3154 rm -f conftest.er1
3155 cat conftest.err >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } && {
3158 test -z "$ac_c_werror_flag" ||
3159 test ! -s conftest.err
3160 } && test -s conftest.$ac_objext; then
3161 ac_cv_prog_cc_g=yes
3162 else
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 CFLAGS=""
3167 cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h. */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3173
3174 int
3175 main ()
3176 {
3177
3178 ;
3179 return 0;
3180 }
3181 _ACEOF
3182 rm -f conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_compile") 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } && {
3196 test -z "$ac_c_werror_flag" ||
3197 test ! -s conftest.err
3198 } && test -s conftest.$ac_objext; then
3199 :
3200 else
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204 ac_c_werror_flag=$ac_save_c_werror_flag
3205 CFLAGS="-g"
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212
3213 int
3214 main ()
3215 {
3216
3217 ;
3218 return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
3229 ac_status=$?
3230 grep -v '^ *+' conftest.er1 >conftest.err
3231 rm -f conftest.er1
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } && {
3235 test -z "$ac_c_werror_flag" ||
3236 test ! -s conftest.err
3237 } && test -s conftest.$ac_objext; then
3238 ac_cv_prog_cc_g=yes
3239 else
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243
3244 fi
3245
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 fi
3248
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 fi
3251
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 ac_c_werror_flag=$ac_save_c_werror_flag
3254 fi
3255 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3256 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3257 if test "$ac_test_CFLAGS" = set; then
3258 CFLAGS=$ac_save_CFLAGS
3259 elif test $ac_cv_prog_cc_g = yes; then
3260 if test "$GCC" = yes; then
3261 CFLAGS="-g -O2"
3262 else
3263 CFLAGS="-g"
3264 fi
3265 else
3266 if test "$GCC" = yes; then
3267 CFLAGS="-O2"
3268 else
3269 CFLAGS=
3270 fi
3271 fi
3272 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3273 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3274 if test "${ac_cv_prog_cc_c89+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277 ac_cv_prog_cc_c89=no
3278 ac_save_CC=$CC
3279 cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h. */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3285 #include <stdarg.h>
3286 #include <stdio.h>
3287 #include <sys/types.h>
3288 #include <sys/stat.h>
3289 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3290 struct buf { int x; };
3291 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3292 static char *e (p, i)
3293 char **p;
3294 int i;
3295 {
3296 return p[i];
3297 }
3298 static char *f (char * (*g) (char **, int), char **p, ...)
3299 {
3300 char *s;
3301 va_list v;
3302 va_start (v,p);
3303 s = g (p, va_arg (v,int));
3304 va_end (v);
3305 return s;
3306 }
3307
3308 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3309 function prototypes and stuff, but not '\xHH' hex character constants.
3310 These don't provoke an error unfortunately, instead are silently treated
3311 as 'x'. The following induces an error, until -std is added to get
3312 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3313 array size at least. It's necessary to write '\x00'==0 to get something
3314 that's true only with -std. */
3315 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3316
3317 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3318 inside strings and character constants. */
3319 #define FOO(x) 'x'
3320 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3321
3322 int test (int i, double x);
3323 struct s1 {int (*f) (int a);};
3324 struct s2 {int (*f) (double a);};
3325 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3326 int argc;
3327 char **argv;
3328 int
3329 main ()
3330 {
3331 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3332 ;
3333 return 0;
3334 }
3335 _ACEOF
3336 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3337 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3338 do
3339 CC="$ac_save_CC $ac_arg"
3340 rm -f conftest.$ac_objext
3341 if { (ac_try="$ac_compile"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_compile") 2>conftest.er1
3348 ac_status=$?
3349 grep -v '^ *+' conftest.er1 >conftest.err
3350 rm -f conftest.er1
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } && {
3354 test -z "$ac_c_werror_flag" ||
3355 test ! -s conftest.err
3356 } && test -s conftest.$ac_objext; then
3357 ac_cv_prog_cc_c89=$ac_arg
3358 else
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362
3363 fi
3364
3365 rm -f core conftest.err conftest.$ac_objext
3366 test "x$ac_cv_prog_cc_c89" != "xno" && break
3367 done
3368 rm -f conftest.$ac_ext
3369 CC=$ac_save_CC
3370
3371 fi
3372 # AC_CACHE_VAL
3373 case "x$ac_cv_prog_cc_c89" in
3374 x)
3375 { echo "$as_me:$LINENO: result: none needed" >&5
3376 echo "${ECHO_T}none needed" >&6; } ;;
3377 xno)
3378 { echo "$as_me:$LINENO: result: unsupported" >&5
3379 echo "${ECHO_T}unsupported" >&6; } ;;
3380 *)
3381 CC="$CC $ac_cv_prog_cc_c89"
3382 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3383 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3384 esac
3385
3386
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 DEPDIR="${am__leading_dot}deps"
3393
3394 ac_config_commands="$ac_config_commands depfiles"
3395
3396
3397 am_make=${MAKE-make}
3398 cat > confinc << 'END'
3399 am__doit:
3400 @echo done
3401 .PHONY: am__doit
3402 END
3403 # If we don't find an include directive, just comment out the code.
3404 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3405 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3406 am__include="#"
3407 am__quote=
3408 _am_result=none
3409 # First try GNU make style include.
3410 echo "include confinc" > confmf
3411 # We grep out `Entering directory' and `Leaving directory'
3412 # messages which can occur if `w' ends up in MAKEFLAGS.
3413 # In particular we don't look at `^make:' because GNU make might
3414 # be invoked under some other name (usually "gmake"), in which
3415 # case it prints its new name instead of `make'.
3416 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3417 am__include=include
3418 am__quote=
3419 _am_result=GNU
3420 fi
3421 # Now try BSD make style include.
3422 if test "$am__include" = "#"; then
3423 echo '.include "confinc"' > confmf
3424 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3425 am__include=.include
3426 am__quote="\""
3427 _am_result=BSD
3428 fi
3429 fi
3430
3431
3432 { echo "$as_me:$LINENO: result: $_am_result" >&5
3433 echo "${ECHO_T}$_am_result" >&6; }
3434 rm -f confinc confmf
3435
3436 # Check whether --enable-dependency-tracking was given.
3437 if test "${enable_dependency_tracking+set}" = set; then
3438 enableval=$enable_dependency_tracking;
3439 fi
3440
3441 if test "x$enable_dependency_tracking" != xno; then
3442 am_depcomp="$ac_aux_dir/depcomp"
3443 AMDEPBACKSLASH='\'
3444 fi
3445 if test "x$enable_dependency_tracking" != xno; then
3446 AMDEP_TRUE=
3447 AMDEP_FALSE='#'
3448 else
3449 AMDEP_TRUE='#'
3450 AMDEP_FALSE=
3451 fi
3452
3453
3454
3455 depcc="$CC" am_compiler_list=
3456
3457 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3458 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3459 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3463 # We make a subdir and do the tests there. Otherwise we can end up
3464 # making bogus files that we don't know about and never remove. For
3465 # instance it was reported that on HP-UX the gcc test will end up
3466 # making a dummy file named `D' -- because `-MD' means `put the output
3467 # in D'.
3468 mkdir conftest.dir
3469 # Copy depcomp to subdir because otherwise we won't find it if we're
3470 # using a relative directory.
3471 cp "$am_depcomp" conftest.dir
3472 cd conftest.dir
3473 # We will build objects and dependencies in a subdirectory because
3474 # it helps to detect inapplicable dependency modes. For instance
3475 # both Tru64's cc and ICC support -MD to output dependencies as a
3476 # side effect of compilation, but ICC will put the dependencies in
3477 # the current directory while Tru64 will put them in the object
3478 # directory.
3479 mkdir sub
3480
3481 am_cv_CC_dependencies_compiler_type=none
3482 if test "$am_compiler_list" = ""; then
3483 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3484 fi
3485 for depmode in $am_compiler_list; do
3486 # Setup a source with many dependencies, because some compilers
3487 # like to wrap large dependency lists on column 80 (with \), and
3488 # we should not choose a depcomp mode which is confused by this.
3489 #
3490 # We need to recreate these files for each test, as the compiler may
3491 # overwrite some of them when testing with obscure command lines.
3492 # This happens at least with the AIX C compiler.
3493 : > sub/conftest.c
3494 for i in 1 2 3 4 5 6; do
3495 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3496 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3497 # Solaris 8's {/usr,}/bin/sh.
3498 touch sub/conftst$i.h
3499 done
3500 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3501
3502 case $depmode in
3503 nosideeffect)
3504 # after this tag, mechanisms are not by side-effect, so they'll
3505 # only be used when explicitly requested
3506 if test "x$enable_dependency_tracking" = xyes; then
3507 continue
3508 else
3509 break
3510 fi
3511 ;;
3512 none) break ;;
3513 esac
3514 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3515 # mode. It turns out that the SunPro C++ compiler does not properly
3516 # handle `-M -o', and we need to detect this.
3517 if depmode=$depmode \
3518 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3519 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3520 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3521 >/dev/null 2>conftest.err &&
3522 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3523 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3524 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3525 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3526 # icc doesn't choke on unknown options, it will just issue warnings
3527 # or remarks (even with -Werror). So we grep stderr for any message
3528 # that says an option was ignored or not supported.
3529 # When given -MP, icc 7.0 and 7.1 complain thusly:
3530 # icc: Command line warning: ignoring option '-M'; no argument required
3531 # The diagnosis changed in icc 8.0:
3532 # icc: Command line remark: option '-MP' not supported
3533 if (grep 'ignoring option' conftest.err ||
3534 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3535 am_cv_CC_dependencies_compiler_type=$depmode
3536 break
3537 fi
3538 fi
3539 done
3540
3541 cd ..
3542 rm -rf conftest.dir
3543 else
3544 am_cv_CC_dependencies_compiler_type=none
3545 fi
3546
3547 fi
3548 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3549 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3550 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3551
3552 if
3553 test "x$enable_dependency_tracking" != xno \
3554 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3555 am__fastdepCC_TRUE=
3556 am__fastdepCC_FALSE='#'
3557 else
3558 am__fastdepCC_TRUE='#'
3559 am__fastdepCC_FALSE=
3560 fi
3561
3562
3563 # Check whether --enable-shared was given.
3564 if test "${enable_shared+set}" = set; then
3565 enableval=$enable_shared; p=${PACKAGE-default}
3566 case $enableval in
3567 yes) enable_shared=yes ;;
3568 no) enable_shared=no ;;
3569 *)
3570 enable_shared=no
3571 # Look at the argument we got. We use all the common list separators.
3572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3573 for pkg in $enableval; do
3574 IFS="$lt_save_ifs"
3575 if test "X$pkg" = "X$p"; then
3576 enable_shared=yes
3577 fi
3578 done
3579 IFS="$lt_save_ifs"
3580 ;;
3581 esac
3582 else
3583 enable_shared=yes
3584 fi
3585
3586
3587 # Check whether --enable-static was given.
3588 if test "${enable_static+set}" = set; then
3589 enableval=$enable_static; p=${PACKAGE-default}
3590 case $enableval in
3591 yes) enable_static=yes ;;
3592 no) enable_static=no ;;
3593 *)
3594 enable_static=no
3595 # Look at the argument we got. We use all the common list separators.
3596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3597 for pkg in $enableval; do
3598 IFS="$lt_save_ifs"
3599 if test "X$pkg" = "X$p"; then
3600 enable_static=yes
3601 fi
3602 done
3603 IFS="$lt_save_ifs"
3604 ;;
3605 esac
3606 else
3607 enable_static=yes
3608 fi
3609
3610
3611 # Check whether --enable-fast-install was given.
3612 if test "${enable_fast_install+set}" = set; then
3613 enableval=$enable_fast_install; p=${PACKAGE-default}
3614 case $enableval in
3615 yes) enable_fast_install=yes ;;
3616 no) enable_fast_install=no ;;
3617 *)
3618 enable_fast_install=no
3619 # Look at the argument we got. We use all the common list separators.
3620 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3621 for pkg in $enableval; do
3622 IFS="$lt_save_ifs"
3623 if test "X$pkg" = "X$p"; then
3624 enable_fast_install=yes
3625 fi
3626 done
3627 IFS="$lt_save_ifs"
3628 ;;
3629 esac
3630 else
3631 enable_fast_install=yes
3632 fi
3633
3634
3635 # Make sure we can run config.sub.
3636 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3637 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3638 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3639 { (exit 1); exit 1; }; }
3640
3641 { echo "$as_me:$LINENO: checking build system type" >&5
3642 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3643 if test "${ac_cv_build+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646 ac_build_alias=$build_alias
3647 test "x$ac_build_alias" = x &&
3648 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3649 test "x$ac_build_alias" = x &&
3650 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3651 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3652 { (exit 1); exit 1; }; }
3653 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3654 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3655 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3656 { (exit 1); exit 1; }; }
3657
3658 fi
3659 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3660 echo "${ECHO_T}$ac_cv_build" >&6; }
3661 case $ac_cv_build in
3662 *-*-*) ;;
3663 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3664 echo "$as_me: error: invalid value of canonical build" >&2;}
3665 { (exit 1); exit 1; }; };;
3666 esac
3667 build=$ac_cv_build
3668 ac_save_IFS=$IFS; IFS='-'
3669 set x $ac_cv_build
3670 shift
3671 build_cpu=$1
3672 build_vendor=$2
3673 shift; shift
3674 # Remember, the first character of IFS is used to create $*,
3675 # except with old shells:
3676 build_os=$*
3677 IFS=$ac_save_IFS
3678 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3679
3680
3681 { echo "$as_me:$LINENO: checking host system type" >&5
3682 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3683 if test "${ac_cv_host+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686 if test "x$host_alias" = x; then
3687 ac_cv_host=$ac_cv_build
3688 else
3689 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3690 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3691 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3692 { (exit 1); exit 1; }; }
3693 fi
3694
3695 fi
3696 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3697 echo "${ECHO_T}$ac_cv_host" >&6; }
3698 case $ac_cv_host in
3699 *-*-*) ;;
3700 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3701 echo "$as_me: error: invalid value of canonical host" >&2;}
3702 { (exit 1); exit 1; }; };;
3703 esac
3704 host=$ac_cv_host
3705 ac_save_IFS=$IFS; IFS='-'
3706 set x $ac_cv_host
3707 shift
3708 host_cpu=$1
3709 host_vendor=$2
3710 shift; shift
3711 # Remember, the first character of IFS is used to create $*,
3712 # except with old shells:
3713 host_os=$*
3714 IFS=$ac_save_IFS
3715 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3716
3717
3718 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3719 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3720 if test "${lt_cv_path_SED+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 # Loop through the user's path and test for sed and gsed.
3724 # Then use that list of sed's as ones to test for truncation.
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3727 do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for lt_ac_prog in sed gsed; do
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3733 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3734 fi
3735 done
3736 done
3737 done
3738 lt_ac_max=0
3739 lt_ac_count=0
3740 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3741 # along with /bin/sed that truncates output.
3742 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3743 test ! -f $lt_ac_sed && continue
3744 cat /dev/null > conftest.in
3745 lt_ac_count=0
3746 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3747 # Check for GNU sed and select it if it is found.
3748 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3749 lt_cv_path_SED=$lt_ac_sed
3750 break
3751 fi
3752 while true; do
3753 cat conftest.in conftest.in >conftest.tmp
3754 mv conftest.tmp conftest.in
3755 cp conftest.in conftest.nl
3756 echo >>conftest.nl
3757 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3758 cmp -s conftest.out conftest.nl || break
3759 # 10000 chars as input seems more than enough
3760 test $lt_ac_count -gt 10 && break
3761 lt_ac_count=`expr $lt_ac_count + 1`
3762 if test $lt_ac_count -gt $lt_ac_max; then
3763 lt_ac_max=$lt_ac_count
3764 lt_cv_path_SED=$lt_ac_sed
3765 fi
3766 done
3767 done
3768
3769 fi
3770
3771 SED=$lt_cv_path_SED
3772 { echo "$as_me:$LINENO: result: $SED" >&5
3773 echo "${ECHO_T}$SED" >&6; }
3774
3775 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3776 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3777 if test "${ac_cv_path_GREP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780 # Extract the first word of "grep ggrep" to use in msg output
3781 if test -z "$GREP"; then
3782 set dummy grep ggrep; ac_prog_name=$2
3783 if test "${ac_cv_path_GREP+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786 ac_path_GREP_found=false
3787 # Loop through the user's path and test for each of PROGNAME-LIST
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3790 do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_prog in grep ggrep; do
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3796 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3797 # Check for GNU ac_path_GREP and select it if it is found.
3798 # Check for GNU $ac_path_GREP
3799 case `"$ac_path_GREP" --version 2>&1` in
3800 *GNU*)
3801 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3802 *)
3803 ac_count=0
3804 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3805 while :
3806 do
3807 cat "conftest.in" "conftest.in" >"conftest.tmp"
3808 mv "conftest.tmp" "conftest.in"
3809 cp "conftest.in" "conftest.nl"
3810 echo 'GREP' >> "conftest.nl"
3811 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3812 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3813 ac_count=`expr $ac_count + 1`
3814 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3815 # Best one so far, save it but keep looking for a better one
3816 ac_cv_path_GREP="$ac_path_GREP"
3817 ac_path_GREP_max=$ac_count
3818 fi
3819 # 10*(2^10) chars as input seems more than enough
3820 test $ac_count -gt 10 && break
3821 done
3822 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3823 esac
3824
3825
3826 $ac_path_GREP_found && break 3
3827 done
3828 done
3829
3830 done
3831 IFS=$as_save_IFS
3832
3833
3834 fi
3835
3836 GREP="$ac_cv_path_GREP"
3837 if test -z "$GREP"; then
3838 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3839 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3840 { (exit 1); exit 1; }; }
3841 fi
3842
3843 else
3844 ac_cv_path_GREP=$GREP
3845 fi
3846
3847
3848 fi
3849 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3850 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3851 GREP="$ac_cv_path_GREP"
3852
3853
3854 { echo "$as_me:$LINENO: checking for egrep" >&5
3855 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3856 if test "${ac_cv_path_EGREP+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3860 then ac_cv_path_EGREP="$GREP -E"
3861 else
3862 # Extract the first word of "egrep" to use in msg output
3863 if test -z "$EGREP"; then
3864 set dummy egrep; ac_prog_name=$2
3865 if test "${ac_cv_path_EGREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 ac_path_EGREP_found=false
3869 # Loop through the user's path and test for each of PROGNAME-LIST
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872 do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_prog in egrep; do
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3878 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3879 # Check for GNU ac_path_EGREP and select it if it is found.
3880 # Check for GNU $ac_path_EGREP
3881 case `"$ac_path_EGREP" --version 2>&1` in
3882 *GNU*)
3883 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3884 *)
3885 ac_count=0
3886 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3887 while :
3888 do
3889 cat "conftest.in" "conftest.in" >"conftest.tmp"
3890 mv "conftest.tmp" "conftest.in"
3891 cp "conftest.in" "conftest.nl"
3892 echo 'EGREP' >> "conftest.nl"
3893 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3895 ac_count=`expr $ac_count + 1`
3896 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3897 # Best one so far, save it but keep looking for a better one
3898 ac_cv_path_EGREP="$ac_path_EGREP"
3899 ac_path_EGREP_max=$ac_count
3900 fi
3901 # 10*(2^10) chars as input seems more than enough
3902 test $ac_count -gt 10 && break
3903 done
3904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3905 esac
3906
3907
3908 $ac_path_EGREP_found && break 3
3909 done
3910 done
3911
3912 done
3913 IFS=$as_save_IFS
3914
3915
3916 fi
3917
3918 EGREP="$ac_cv_path_EGREP"
3919 if test -z "$EGREP"; then
3920 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3921 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3922 { (exit 1); exit 1; }; }
3923 fi
3924
3925 else
3926 ac_cv_path_EGREP=$EGREP
3927 fi
3928
3929
3930 fi
3931 fi
3932 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3933 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3934 EGREP="$ac_cv_path_EGREP"
3935
3936
3937
3938 # Check whether --with-gnu-ld was given.
3939 if test "${with_gnu_ld+set}" = set; then
3940 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3941 else
3942 with_gnu_ld=no
3943 fi
3944
3945 ac_prog=ld
3946 if test "$GCC" = yes; then
3947 # Check if gcc -print-prog-name=ld gives a path.
3948 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3949 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3950 case $host in
3951 *-*-mingw*)
3952 # gcc leaves a trailing carriage return which upsets mingw
3953 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3954 *)
3955 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3956 esac
3957 case $ac_prog in
3958 # Accept absolute paths.
3959 [\\/]* | ?:[\\/]*)
3960 re_direlt='/[^/][^/]*/\.\./'
3961 # Canonicalize the pathname of ld
3962 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3963 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3964 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3965 done
3966 test -z "$LD" && LD="$ac_prog"
3967 ;;
3968 "")
3969 # If it fails, then pretend we aren't using GCC.
3970 ac_prog=ld
3971 ;;
3972 *)
3973 # If it is relative, then search for the first ld in PATH.
3974 with_gnu_ld=unknown
3975 ;;
3976 esac
3977 elif test "$with_gnu_ld" = yes; then
3978 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3979 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3980 else
3981 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3982 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3983 fi
3984 if test "${lt_cv_path_LD+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 if test -z "$LD"; then
3988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3989 for ac_dir in $PATH; do
3990 IFS="$lt_save_ifs"
3991 test -z "$ac_dir" && ac_dir=.
3992 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3993 lt_cv_path_LD="$ac_dir/$ac_prog"
3994 # Check to see if the program is GNU ld. I'd rather use --version,
3995 # but apparently some variants of GNU ld only accept -v.
3996 # Break only if it was the GNU/non-GNU ld that we prefer.
3997 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3998 *GNU* | *'with BFD'*)
3999 test "$with_gnu_ld" != no && break
4000 ;;
4001 *)
4002 test "$with_gnu_ld" != yes && break
4003 ;;
4004 esac
4005 fi
4006 done
4007 IFS="$lt_save_ifs"
4008 else
4009 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4010 fi
4011 fi
4012
4013 LD="$lt_cv_path_LD"
4014 if test -n "$LD"; then
4015 { echo "$as_me:$LINENO: result: $LD" >&5
4016 echo "${ECHO_T}$LD" >&6; }
4017 else
4018 { echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6; }
4020 fi
4021 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4022 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4023 { (exit 1); exit 1; }; }
4024 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4025 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4026 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4030 case `$LD -v 2>&1 </dev/null` in
4031 *GNU* | *'with BFD'*)
4032 lt_cv_prog_gnu_ld=yes
4033 ;;
4034 *)
4035 lt_cv_prog_gnu_ld=no
4036 ;;
4037 esac
4038 fi
4039 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4040 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4041 with_gnu_ld=$lt_cv_prog_gnu_ld
4042
4043
4044 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4045 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4046 if test "${lt_cv_ld_reload_flag+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 lt_cv_ld_reload_flag='-r'
4050 fi
4051 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4052 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4053 reload_flag=$lt_cv_ld_reload_flag
4054 case $reload_flag in
4055 "" | " "*) ;;
4056 *) reload_flag=" $reload_flag" ;;
4057 esac
4058 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4059 case $host_os in
4060 darwin*)
4061 if test "$GCC" = yes; then
4062 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4063 else
4064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4065 fi
4066 ;;
4067 esac
4068
4069 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4070 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4071 if test "${lt_cv_path_NM+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 if test -n "$NM"; then
4075 # Let the user override the test.
4076 lt_cv_path_NM="$NM"
4077 else
4078 lt_nm_to_check="${ac_tool_prefix}nm"
4079 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4080 lt_nm_to_check="$lt_nm_to_check nm"
4081 fi
4082 for lt_tmp_nm in $lt_nm_to_check; do
4083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4084 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4085 IFS="$lt_save_ifs"
4086 test -z "$ac_dir" && ac_dir=.
4087 tmp_nm="$ac_dir/$lt_tmp_nm"
4088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4089 # Check to see if the nm accepts a BSD-compat flag.
4090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4091 # nm: unknown option "B" ignored
4092 # Tru64's nm complains that /dev/null is an invalid object file
4093 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4094 */dev/null* | *'Invalid file or object type'*)
4095 lt_cv_path_NM="$tmp_nm -B"
4096 break
4097 ;;
4098 *)
4099 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4100 */dev/null*)
4101 lt_cv_path_NM="$tmp_nm -p"
4102 break
4103 ;;
4104 *)
4105 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4106 continue # so that we can try to find one that supports BSD flags
4107 ;;
4108 esac
4109 ;;
4110 esac
4111 fi
4112 done
4113 IFS="$lt_save_ifs"
4114 done
4115 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4116 fi
4117 fi
4118 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4119 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4120 NM="$lt_cv_path_NM"
4121
4122 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4123 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4124 LN_S=$as_ln_s
4125 if test "$LN_S" = "ln -s"; then
4126 { echo "$as_me:$LINENO: result: yes" >&5
4127 echo "${ECHO_T}yes" >&6; }
4128 else
4129 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4130 echo "${ECHO_T}no, using $LN_S" >&6; }
4131 fi
4132
4133 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4134 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4135 if test "${lt_cv_deplibs_check_method+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 lt_cv_file_magic_cmd='$MAGIC_CMD'
4139 lt_cv_file_magic_test_file=
4140 lt_cv_deplibs_check_method='unknown'
4141 # Need to set the preceding variable on all platforms that support
4142 # interlibrary dependencies.
4143 # 'none' -- dependencies not supported.
4144 # `unknown' -- same as none, but documents that we really don't know.
4145 # 'pass_all' -- all dependencies passed with no checks.
4146 # 'test_compile' -- check by making test program.
4147 # 'file_magic [[regex]]' -- check by looking for files in library path
4148 # which responds to the $file_magic_cmd with a given extended regex.
4149 # If you have `file' or equivalent on your system and you're not sure
4150 # whether `pass_all' will *always* work, you probably want this one.
4151
4152 case $host_os in
4153 aix4* | aix5*)
4154 lt_cv_deplibs_check_method=pass_all
4155 ;;
4156
4157 beos*)
4158 lt_cv_deplibs_check_method=pass_all
4159 ;;
4160
4161 bsdi[45]*)
4162 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4163 lt_cv_file_magic_cmd='/usr/bin/file -L'
4164 lt_cv_file_magic_test_file=/shlib/libc.so
4165 ;;
4166
4167 cygwin*)
4168 # func_win32_libid is a shell function defined in ltmain.sh
4169 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4170 lt_cv_file_magic_cmd='func_win32_libid'
4171 ;;
4172
4173 mingw* | pw32*)
4174 # Base MSYS/MinGW do not provide the 'file' command needed by
4175 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4176 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4177 lt_cv_file_magic_cmd='$OBJDUMP -f'
4178 ;;
4179
4180 darwin* | rhapsody*)
4181 lt_cv_deplibs_check_method=pass_all
4182 ;;
4183
4184 freebsd* | kfreebsd*-gnu | dragonfly*)
4185 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4186 case $host_cpu in
4187 i*86 )
4188 # Not sure whether the presence of OpenBSD here was a mistake.
4189 # Let's accept both of them until this is cleared up.
4190 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4191 lt_cv_file_magic_cmd=/usr/bin/file
4192 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4193 ;;
4194 esac
4195 else
4196 lt_cv_deplibs_check_method=pass_all
4197 fi
4198 ;;
4199
4200 gnu*)
4201 lt_cv_deplibs_check_method=pass_all
4202 ;;
4203
4204 hpux10.20* | hpux11*)
4205 lt_cv_file_magic_cmd=/usr/bin/file
4206 case $host_cpu in
4207 ia64*)
4208 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4209 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4210 ;;
4211 hppa*64*)
4212 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4213 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4214 ;;
4215 *)
4216 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4217 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4218 ;;
4219 esac
4220 ;;
4221
4222 interix3*)
4223 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4225 ;;
4226
4227 irix5* | irix6* | nonstopux*)
4228 case $LD in
4229 *-32|*"-32 ") libmagic=32-bit;;
4230 *-n32|*"-n32 ") libmagic=N32;;
4231 *-64|*"-64 ") libmagic=64-bit;;
4232 *) libmagic=never-match;;
4233 esac
4234 lt_cv_deplibs_check_method=pass_all
4235 ;;
4236
4237 # This must be Linux ELF.
4238 linux*)
4239 lt_cv_deplibs_check_method=pass_all
4240 ;;
4241
4242 netbsd*)
4243 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4245 else
4246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4247 fi
4248 ;;
4249
4250 newos6*)
4251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4252 lt_cv_file_magic_cmd=/usr/bin/file
4253 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4254 ;;
4255
4256 nto-qnx*)
4257 lt_cv_deplibs_check_method=unknown
4258 ;;
4259
4260 openbsd*)
4261 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4263 else
4264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4265 fi
4266 ;;
4267
4268 osf3* | osf4* | osf5*)
4269 lt_cv_deplibs_check_method=pass_all
4270 ;;
4271
4272 solaris*)
4273 lt_cv_deplibs_check_method=pass_all
4274 ;;
4275
4276 sysv4 | sysv4.3*)
4277 case $host_vendor in
4278 motorola)
4279 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]'
4280 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4281 ;;
4282 ncr)
4283 lt_cv_deplibs_check_method=pass_all
4284 ;;
4285 sequent)
4286 lt_cv_file_magic_cmd='/bin/file'
4287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4288 ;;
4289 sni)
4290 lt_cv_file_magic_cmd='/bin/file'
4291 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4292 lt_cv_file_magic_test_file=/lib/libc.so
4293 ;;
4294 siemens)
4295 lt_cv_deplibs_check_method=pass_all
4296 ;;
4297 pc)
4298 lt_cv_deplibs_check_method=pass_all
4299 ;;
4300 esac
4301 ;;
4302
4303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4304 lt_cv_deplibs_check_method=pass_all
4305 ;;
4306 esac
4307
4308 fi
4309 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4310 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4311 file_magic_cmd=$lt_cv_file_magic_cmd
4312 deplibs_check_method=$lt_cv_deplibs_check_method
4313 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4314
4315
4316
4317
4318 # If no C compiler was specified, use CC.
4319 LTCC=${LTCC-"$CC"}
4320
4321 # If no C compiler flags were specified, use CFLAGS.
4322 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4323
4324 # Allow CC to be a program name with arguments.
4325 compiler=$CC
4326
4327
4328 # Check whether --enable-libtool-lock was given.
4329 if test "${enable_libtool_lock+set}" = set; then
4330 enableval=$enable_libtool_lock;
4331 fi
4332
4333 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4334
4335 # Some flags need to be propagated to the compiler or linker for good
4336 # libtool support.
4337 case $host in
4338 ia64-*-hpux*)
4339 # Find out which ABI we are using.
4340 echo 'int i;' > conftest.$ac_ext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342 (eval $ac_compile) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; then
4346 case `/usr/bin/file conftest.$ac_objext` in
4347 *ELF-32*)
4348 HPUX_IA64_MODE="32"
4349 ;;
4350 *ELF-64*)
4351 HPUX_IA64_MODE="64"
4352 ;;
4353 esac
4354 fi
4355 rm -rf conftest*
4356 ;;
4357 *-*-irix6*)
4358 # Find out which ABI we are using.
4359 echo '#line 4359 "configure"' > conftest.$ac_ext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; then
4365 if test "$lt_cv_prog_gnu_ld" = yes; then
4366 case `/usr/bin/file conftest.$ac_objext` in
4367 *32-bit*)
4368 LD="${LD-ld} -melf32bsmip"
4369 ;;
4370 *N32*)
4371 LD="${LD-ld} -melf32bmipn32"
4372 ;;
4373 *64-bit*)
4374 LD="${LD-ld} -melf64bmip"
4375 ;;
4376 esac
4377 else
4378 case `/usr/bin/file conftest.$ac_objext` in
4379 *32-bit*)
4380 LD="${LD-ld} -32"
4381 ;;
4382 *N32*)
4383 LD="${LD-ld} -n32"
4384 ;;
4385 *64-bit*)
4386 LD="${LD-ld} -64"
4387 ;;
4388 esac
4389 fi
4390 fi
4391 rm -rf conftest*
4392 ;;
4393
4394 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4395 # Find out which ABI we are using.
4396 echo 'int i;' > conftest.$ac_ext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398 (eval $ac_compile) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; then
4402 case `/usr/bin/file conftest.o` in
4403 *32-bit*)
4404 case $host in
4405 x86_64-*linux*)
4406 LD="${LD-ld} -m elf_i386"
4407 ;;
4408 ppc64-*linux*|powerpc64-*linux*)
4409 LD="${LD-ld} -m elf32ppclinux"
4410 ;;
4411 s390x-*linux*)
4412 LD="${LD-ld} -m elf_s390"
4413 ;;
4414 sparc64-*linux*)
4415 LD="${LD-ld} -m elf32_sparc"
4416 ;;
4417 esac
4418 ;;
4419 *64-bit*)
4420 case $host in
4421 x86_64-*linux*)
4422 LD="${LD-ld} -m elf_x86_64"
4423 ;;
4424 ppc*-*linux*|powerpc*-*linux*)
4425 LD="${LD-ld} -m elf64ppc"
4426 ;;
4427 s390*-*linux*)
4428 LD="${LD-ld} -m elf64_s390"
4429 ;;
4430 sparc*-*linux*)
4431 LD="${LD-ld} -m elf64_sparc"
4432 ;;
4433 esac
4434 ;;
4435 esac
4436 fi
4437 rm -rf conftest*
4438 ;;
4439
4440 *-*-sco3.2v5*)
4441 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4442 SAVE_CFLAGS="$CFLAGS"
4443 CFLAGS="$CFLAGS -belf"
4444 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4445 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4446 if test "${lt_cv_cc_needs_belf+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449 ac_ext=c
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461
4462 int
4463 main ()
4464 {
4465
4466 ;
4467 return 0;
4468 }
4469 _ACEOF
4470 rm -f conftest.$ac_objext conftest$ac_exeext
4471 if { (ac_try="$ac_link"
4472 case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_link") 2>conftest.er1
4478 ac_status=$?
4479 grep -v '^ *+' conftest.er1 >conftest.err
4480 rm -f conftest.er1
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } && {
4484 test -z "$ac_c_werror_flag" ||
4485 test ! -s conftest.err
4486 } && test -s conftest$ac_exeext &&
4487 $as_test_x conftest$ac_exeext; then
4488 lt_cv_cc_needs_belf=yes
4489 else
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493 lt_cv_cc_needs_belf=no
4494 fi
4495
4496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4497 conftest$ac_exeext conftest.$ac_ext
4498 ac_ext=c
4499 ac_cpp='$CPP $CPPFLAGS'
4500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4503
4504 fi
4505 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4506 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4507 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4508 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4509 CFLAGS="$SAVE_CFLAGS"
4510 fi
4511 ;;
4512 sparc*-*solaris*)
4513 # Find out which ABI we are using.
4514 echo 'int i;' > conftest.$ac_ext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4516 (eval $ac_compile) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; then
4520 case `/usr/bin/file conftest.o` in
4521 *64-bit*)
4522 case $lt_cv_prog_gnu_ld in
4523 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4524 *) LD="${LD-ld} -64" ;;
4525 esac
4526 ;;
4527 esac
4528 fi
4529 rm -rf conftest*
4530 ;;
4531
4532
4533 esac
4534
4535 need_locks="$enable_libtool_lock"
4536
4537
4538 ac_ext=c
4539 ac_cpp='$CPP $CPPFLAGS'
4540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4544 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4545 # On Suns, sometimes $CPP names a directory.
4546 if test -n "$CPP" && test -d "$CPP"; then
4547 CPP=
4548 fi
4549 if test -z "$CPP"; then
4550 if test "${ac_cv_prog_CPP+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 # Double quotes because CPP needs to be expanded
4554 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4555 do
4556 ac_preproc_ok=false
4557 for ac_c_preproc_warn_flag in '' yes
4558 do
4559 # Use a header file that comes with gcc, so configuring glibc
4560 # with a fresh cross-compiler works.
4561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4562 # <limits.h> exists even on freestanding compilers.
4563 # On the NeXT, cc -E runs the code through the compiler's parser,
4564 # not just through cpp. "Syntax error" is here to catch this case.
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h. */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 #ifdef __STDC__
4572 # include <limits.h>
4573 #else
4574 # include <assert.h>
4575 #endif
4576 Syntax error
4577 _ACEOF
4578 if { (ac_try="$ac_cpp conftest.$ac_ext"
4579 case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582 esac
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } >/dev/null && {
4591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4592 test ! -s conftest.err
4593 }; then
4594 :
4595 else
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599 # Broken: fails on valid input.
4600 continue
4601 fi
4602
4603 rm -f conftest.err conftest.$ac_ext
4604
4605 # OK, works on sane cases. Now check whether nonexistent headers
4606 # can be detected and how.
4607 cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h. */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 #include <ac_nonexistent.h>
4614 _ACEOF
4615 if { (ac_try="$ac_cpp conftest.$ac_ext"
4616 case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619 esac
4620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4622 ac_status=$?
4623 grep -v '^ *+' conftest.er1 >conftest.err
4624 rm -f conftest.er1
4625 cat conftest.err >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } >/dev/null && {
4628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4629 test ! -s conftest.err
4630 }; then
4631 # Broken: success on invalid input.
4632 continue
4633 else
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4636
4637 # Passes both tests.
4638 ac_preproc_ok=:
4639 break
4640 fi
4641
4642 rm -f conftest.err conftest.$ac_ext
4643
4644 done
4645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4646 rm -f conftest.err conftest.$ac_ext
4647 if $ac_preproc_ok; then
4648 break
4649 fi
4650
4651 done
4652 ac_cv_prog_CPP=$CPP
4653
4654 fi
4655 CPP=$ac_cv_prog_CPP
4656 else
4657 ac_cv_prog_CPP=$CPP
4658 fi
4659 { echo "$as_me:$LINENO: result: $CPP" >&5
4660 echo "${ECHO_T}$CPP" >&6; }
4661 ac_preproc_ok=false
4662 for ac_c_preproc_warn_flag in '' yes
4663 do
4664 # Use a header file that comes with gcc, so configuring glibc
4665 # with a fresh cross-compiler works.
4666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4667 # <limits.h> exists even on freestanding compilers.
4668 # On the NeXT, cc -E runs the code through the compiler's parser,
4669 # not just through cpp. "Syntax error" is here to catch this case.
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 #ifdef __STDC__
4677 # include <limits.h>
4678 #else
4679 # include <assert.h>
4680 #endif
4681 Syntax error
4682 _ACEOF
4683 if { (ac_try="$ac_cpp conftest.$ac_ext"
4684 case "(($ac_try" in
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4687 esac
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4690 ac_status=$?
4691 grep -v '^ *+' conftest.er1 >conftest.err
4692 rm -f conftest.er1
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } >/dev/null && {
4696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4697 test ! -s conftest.err
4698 }; then
4699 :
4700 else
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704 # Broken: fails on valid input.
4705 continue
4706 fi
4707
4708 rm -f conftest.err conftest.$ac_ext
4709
4710 # OK, works on sane cases. Now check whether nonexistent headers
4711 # can be detected and how.
4712 cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h. */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4718 #include <ac_nonexistent.h>
4719 _ACEOF
4720 if { (ac_try="$ac_cpp conftest.$ac_ext"
4721 case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724 esac
4725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4727 ac_status=$?
4728 grep -v '^ *+' conftest.er1 >conftest.err
4729 rm -f conftest.er1
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } >/dev/null && {
4733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4734 test ! -s conftest.err
4735 }; then
4736 # Broken: success on invalid input.
4737 continue
4738 else
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4741
4742 # Passes both tests.
4743 ac_preproc_ok=:
4744 break
4745 fi
4746
4747 rm -f conftest.err conftest.$ac_ext
4748
4749 done
4750 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4751 rm -f conftest.err conftest.$ac_ext
4752 if $ac_preproc_ok; then
4753 :
4754 else
4755 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4756 See \`config.log' for more details." >&5
4757 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4758 See \`config.log' for more details." >&2;}
4759 { (exit 1); exit 1; }; }
4760 fi
4761
4762 ac_ext=c
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767
4768
4769 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4770 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4771 if test "${ac_cv_header_stdc+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774 cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h. */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4780 #include <stdlib.h>
4781 #include <stdarg.h>
4782 #include <string.h>
4783 #include <float.h>
4784
4785 int
4786 main ()
4787 {
4788
4789 ;
4790 return 0;
4791 }
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
4795 case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_compile") 2>conftest.er1
4801 ac_status=$?
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } && {
4807 test -z "$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4809 } && test -s conftest.$ac_objext; then
4810 ac_cv_header_stdc=yes
4811 else
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ac_cv_header_stdc=no
4816 fi
4817
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819
4820 if test $ac_cv_header_stdc = yes; then
4821 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4822 cat >conftest.$ac_ext <<_ACEOF
4823 /* confdefs.h. */
4824 _ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4828 #include <string.h>
4829
4830 _ACEOF
4831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4832 $EGREP "memchr" >/dev/null 2>&1; then
4833 :
4834 else
4835 ac_cv_header_stdc=no
4836 fi
4837 rm -f conftest*
4838
4839 fi
4840
4841 if test $ac_cv_header_stdc = yes; then
4842 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h. */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 #include <stdlib.h>
4850
4851 _ACEOF
4852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4853 $EGREP "free" >/dev/null 2>&1; then
4854 :
4855 else
4856 ac_cv_header_stdc=no
4857 fi
4858 rm -f conftest*
4859
4860 fi
4861
4862 if test $ac_cv_header_stdc = yes; then
4863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4864 if test "$cross_compiling" = yes; then
4865 :
4866 else
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 #include <ctype.h>
4874 #include <stdlib.h>
4875 #if ((' ' & 0x0FF) == 0x020)
4876 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4877 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4878 #else
4879 # define ISLOWER(c) \
4880 (('a' <= (c) && (c) <= 'i') \
4881 || ('j' <= (c) && (c) <= 'r') \
4882 || ('s' <= (c) && (c) <= 'z'))
4883 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4884 #endif
4885
4886 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4887 int
4888 main ()
4889 {
4890 int i;
4891 for (i = 0; i < 256; i++)
4892 if (XOR (islower (i), ISLOWER (i))
4893 || toupper (i) != TOUPPER (i))
4894 return 2;
4895 return 0;
4896 }
4897 _ACEOF
4898 rm -f conftest$ac_exeext
4899 if { (ac_try="$ac_link"
4900 case "(($ac_try" in
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4903 esac
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_link") 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4909 { (case "(($ac_try" in
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4912 esac
4913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4914 (eval "$ac_try") 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 :
4919 else
4920 echo "$as_me: program exited with status $ac_status" >&5
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924 ( exit $ac_status )
4925 ac_cv_header_stdc=no
4926 fi
4927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4928 fi
4929
4930
4931 fi
4932 fi
4933 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4934 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4935 if test $ac_cv_header_stdc = yes; then
4936
4937 cat >>confdefs.h <<\_ACEOF
4938 #define STDC_HEADERS 1
4939 _ACEOF
4940
4941 fi
4942
4943 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4954 inttypes.h stdint.h unistd.h
4955 do
4956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962 cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h. */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 $ac_includes_default
4969
4970 #include <$ac_header>
4971 _ACEOF
4972 rm -f conftest.$ac_objext
4973 if { (ac_try="$ac_compile"
4974 case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979 (eval "$ac_compile") 2>conftest.er1
4980 ac_status=$?
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && {
4986 test -z "$ac_c_werror_flag" ||
4987 test ! -s conftest.err
4988 } && test -s conftest.$ac_objext; then
4989 eval "$as_ac_Header=yes"
4990 else
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994 eval "$as_ac_Header=no"
4995 fi
4996
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 fi
4999 ac_res=`eval echo '${'$as_ac_Header'}'`
5000 { echo "$as_me:$LINENO: result: $ac_res" >&5
5001 echo "${ECHO_T}$ac_res" >&6; }
5002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5003 cat >>confdefs.h <<_ACEOF
5004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5005 _ACEOF
5006
5007 fi
5008
5009 done
5010
5011
5012
5013 for ac_header in dlfcn.h
5014 do
5015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5017 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 fi
5022 ac_res=`eval echo '${'$as_ac_Header'}'`
5023 { echo "$as_me:$LINENO: result: $ac_res" >&5
5024 echo "${ECHO_T}$ac_res" >&6; }
5025 else
5026 # Is the header compilable?
5027 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h. */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5035 $ac_includes_default
5036 #include <$ac_header>
5037 _ACEOF
5038 rm -f conftest.$ac_objext
5039 if { (ac_try="$ac_compile"
5040 case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043 esac
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_compile") 2>conftest.er1
5046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } && {
5052 test -z "$ac_c_werror_flag" ||
5053 test ! -s conftest.err
5054 } && test -s conftest.$ac_objext; then
5055 ac_header_compiler=yes
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 ac_header_compiler=no
5061 fi
5062
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5065 echo "${ECHO_T}$ac_header_compiler" >&6; }
5066
5067 # Is the header present?
5068 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 #include <$ac_header>
5077 _ACEOF
5078 if { (ac_try="$ac_cpp conftest.$ac_ext"
5079 case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082 esac
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5085 ac_status=$?
5086 grep -v '^ *+' conftest.er1 >conftest.err
5087 rm -f conftest.er1
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } >/dev/null && {
5091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5092 test ! -s conftest.err
5093 }; then
5094 ac_header_preproc=yes
5095 else
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5098
5099 ac_header_preproc=no
5100 fi
5101
5102 rm -f conftest.err conftest.$ac_ext
5103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5104 echo "${ECHO_T}$ac_header_preproc" >&6; }
5105
5106 # So? What about this header?
5107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5108 yes:no: )
5109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5113 ac_header_preproc=yes
5114 ;;
5115 no:yes:* )
5116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5128 ( cat <<\_ASBOX
5129 ## ---------------------------------------------------------------------- ##
5130 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5131 ## ---------------------------------------------------------------------- ##
5132 _ASBOX
5133 ) | sed "s/^/$as_me: WARNING: /" >&2
5134 ;;
5135 esac
5136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141 eval "$as_ac_Header=\$ac_header_preproc"
5142 fi
5143 ac_res=`eval echo '${'$as_ac_Header'}'`
5144 { echo "$as_me:$LINENO: result: $ac_res" >&5
5145 echo "${ECHO_T}$ac_res" >&6; }
5146
5147 fi
5148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5149 cat >>confdefs.h <<_ACEOF
5150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5151 _ACEOF
5152
5153 fi
5154
5155 done
5156
5157 ac_ext=cpp
5158 ac_cpp='$CXXCPP $CPPFLAGS'
5159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5162 if test -z "$CXX"; then
5163 if test -n "$CCC"; then
5164 CXX=$CCC
5165 else
5166 if test -n "$ac_tool_prefix"; then
5167 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5168 do
5169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5173 if test "${ac_cv_prog_CXX+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176 if test -n "$CXX"; then
5177 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5189 fi
5190 done
5191 done
5192 IFS=$as_save_IFS
5193
5194 fi
5195 fi
5196 CXX=$ac_cv_prog_CXX
5197 if test -n "$CXX"; then
5198 { echo "$as_me:$LINENO: result: $CXX" >&5
5199 echo "${ECHO_T}$CXX" >&6; }
5200 else
5201 { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5203 fi
5204
5205
5206 test -n "$CXX" && break
5207 done
5208 fi
5209 if test -z "$CXX"; then
5210 ac_ct_CXX=$CXX
5211 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5212 do
5213 # Extract the first word of "$ac_prog", so it can be a program name with args.
5214 set dummy $ac_prog; ac_word=$2
5215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5217 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220 if test -n "$ac_ct_CXX"; then
5221 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5222 else
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230 ac_cv_prog_ac_ct_CXX="$ac_prog"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 break 2
5233 fi
5234 done
5235 done
5236 IFS=$as_save_IFS
5237
5238 fi
5239 fi
5240 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5241 if test -n "$ac_ct_CXX"; then
5242 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5243 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5244 else
5245 { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }
5247 fi
5248
5249
5250 test -n "$ac_ct_CXX" && break
5251 done
5252
5253 if test "x$ac_ct_CXX" = x; then
5254 CXX="g++"
5255 else
5256 case $cross_compiling:$ac_tool_warned in
5257 yes:)
5258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5259 whose name does not start with the host triplet. If you think this
5260 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5262 whose name does not start with the host triplet. If you think this
5263 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5264 ac_tool_warned=yes ;;
5265 esac
5266 CXX=$ac_ct_CXX
5267 fi
5268 fi
5269
5270 fi
5271 fi
5272 # Provide some information about the compiler.
5273 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5274 ac_compiler=`set X $ac_compile; echo $2`
5275 { (ac_try="$ac_compiler --version >&5"
5276 case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_compiler --version >&5") 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }
5285 { (ac_try="$ac_compiler -v >&5"
5286 case "(($ac_try" in
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5289 esac
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_compiler -v >&5") 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }
5295 { (ac_try="$ac_compiler -V >&5"
5296 case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299 esac
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_compiler -V >&5") 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }
5305
5306 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5307 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5308 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311 cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h. */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5317
5318 int
5319 main ()
5320 {
5321 #ifndef __GNUC__
5322 choke me
5323 #endif
5324
5325 ;
5326 return 0;
5327 }
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (ac_try="$ac_compile"
5331 case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334 esac
5335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compile") 2>conftest.er1
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && {
5343 test -z "$ac_cxx_werror_flag" ||
5344 test ! -s conftest.err
5345 } && test -s conftest.$ac_objext; then
5346 ac_compiler_gnu=yes
5347 else
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ac_compiler_gnu=no
5352 fi
5353
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5356
5357 fi
5358 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5359 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5360 GXX=`test $ac_compiler_gnu = yes && echo yes`
5361 ac_test_CXXFLAGS=${CXXFLAGS+set}
5362 ac_save_CXXFLAGS=$CXXFLAGS
5363 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5364 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5365 if test "${ac_cv_prog_cxx_g+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5369 ac_cxx_werror_flag=yes
5370 ac_cv_prog_cxx_g=no
5371 CXXFLAGS="-g"
5372 cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h. */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378
5379 int
5380 main ()
5381 {
5382
5383 ;
5384 return 0;
5385 }
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (ac_try="$ac_compile"
5389 case "(($ac_try" in
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5392 esac
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_compile") 2>conftest.er1
5395 ac_status=$?
5396 grep -v '^ *+' conftest.er1 >conftest.err
5397 rm -f conftest.er1
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } && {
5401 test -z "$ac_cxx_werror_flag" ||
5402 test ! -s conftest.err
5403 } && test -s conftest.$ac_objext; then
5404 ac_cv_prog_cxx_g=yes
5405 else
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5408
5409 CXXFLAGS=""
5410 cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h. */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416
5417 int
5418 main ()
5419 {
5420
5421 ;
5422 return 0;
5423 }
5424 _ACEOF
5425 rm -f conftest.$ac_objext
5426 if { (ac_try="$ac_compile"
5427 case "(($ac_try" in
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5430 esac
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432 (eval "$ac_compile") 2>conftest.er1
5433 ac_status=$?
5434 grep -v '^ *+' conftest.er1 >conftest.err
5435 rm -f conftest.er1
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } && {
5439 test -z "$ac_cxx_werror_flag" ||
5440 test ! -s conftest.err
5441 } && test -s conftest.$ac_objext; then
5442 :
5443 else
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5446
5447 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5448 CXXFLAGS="-g"
5449 cat >conftest.$ac_ext <<_ACEOF
5450 /* confdefs.h. */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455
5456 int
5457 main ()
5458 {
5459
5460 ;
5461 return 0;
5462 }
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (ac_try="$ac_compile"
5466 case "(($ac_try" in
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5469 esac
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471 (eval "$ac_compile") 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_cxx_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest.$ac_objext; then
5481 ac_cv_prog_cxx_g=yes
5482 else
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5485
5486
5487 fi
5488
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 fi
5491
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 fi
5494
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5497 fi
5498 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5499 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5500 if test "$ac_test_CXXFLAGS" = set; then
5501 CXXFLAGS=$ac_save_CXXFLAGS
5502 elif test $ac_cv_prog_cxx_g = yes; then
5503 if test "$GXX" = yes; then
5504 CXXFLAGS="-g -O2"
5505 else
5506 CXXFLAGS="-g"
5507 fi
5508 else
5509 if test "$GXX" = yes; then
5510 CXXFLAGS="-O2"
5511 else
5512 CXXFLAGS=
5513 fi
5514 fi
5515 ac_ext=cpp
5516 ac_cpp='$CXXCPP $CPPFLAGS'
5517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5520
5521 depcc="$CXX" am_compiler_list=
5522
5523 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5524 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5525 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5529 # We make a subdir and do the tests there. Otherwise we can end up
5530 # making bogus files that we don't know about and never remove. For
5531 # instance it was reported that on HP-UX the gcc test will end up
5532 # making a dummy file named `D' -- because `-MD' means `put the output
5533 # in D'.
5534 mkdir conftest.dir
5535 # Copy depcomp to subdir because otherwise we won't find it if we're
5536 # using a relative directory.
5537 cp "$am_depcomp" conftest.dir
5538 cd conftest.dir
5539 # We will build objects and dependencies in a subdirectory because
5540 # it helps to detect inapplicable dependency modes. For instance
5541 # both Tru64's cc and ICC support -MD to output dependencies as a
5542 # side effect of compilation, but ICC will put the dependencies in
5543 # the current directory while Tru64 will put them in the object
5544 # directory.
5545 mkdir sub
5546
5547 am_cv_CXX_dependencies_compiler_type=none
5548 if test "$am_compiler_list" = ""; then
5549 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5550 fi
5551 for depmode in $am_compiler_list; do
5552 # Setup a source with many dependencies, because some compilers
5553 # like to wrap large dependency lists on column 80 (with \), and
5554 # we should not choose a depcomp mode which is confused by this.
5555 #
5556 # We need to recreate these files for each test, as the compiler may
5557 # overwrite some of them when testing with obscure command lines.
5558 # This happens at least with the AIX C compiler.
5559 : > sub/conftest.c
5560 for i in 1 2 3 4 5 6; do
5561 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5562 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5563 # Solaris 8's {/usr,}/bin/sh.
5564 touch sub/conftst$i.h
5565 done
5566 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5567
5568 case $depmode in
5569 nosideeffect)
5570 # after this tag, mechanisms are not by side-effect, so they'll
5571 # only be used when explicitly requested
5572 if test "x$enable_dependency_tracking" = xyes; then
5573 continue
5574 else
5575 break
5576 fi
5577 ;;
5578 none) break ;;
5579 esac
5580 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5581 # mode. It turns out that the SunPro C++ compiler does not properly
5582 # handle `-M -o', and we need to detect this.
5583 if depmode=$depmode \
5584 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5585 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5586 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5587 >/dev/null 2>conftest.err &&
5588 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5589 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5590 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5591 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5592 # icc doesn't choke on unknown options, it will just issue warnings
5593 # or remarks (even with -Werror). So we grep stderr for any message
5594 # that says an option was ignored or not supported.
5595 # When given -MP, icc 7.0 and 7.1 complain thusly:
5596 # icc: Command line warning: ignoring option '-M'; no argument required
5597 # The diagnosis changed in icc 8.0:
5598 # icc: Command line remark: option '-MP' not supported
5599 if (grep 'ignoring option' conftest.err ||
5600 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5601 am_cv_CXX_dependencies_compiler_type=$depmode
5602 break
5603 fi
5604 fi
5605 done
5606
5607 cd ..
5608 rm -rf conftest.dir
5609 else
5610 am_cv_CXX_dependencies_compiler_type=none
5611 fi
5612
5613 fi
5614 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5615 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5616 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5617
5618 if
5619 test "x$enable_dependency_tracking" != xno \
5620 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5621 am__fastdepCXX_TRUE=
5622 am__fastdepCXX_FALSE='#'
5623 else
5624 am__fastdepCXX_TRUE='#'
5625 am__fastdepCXX_FALSE=
5626 fi
5627
5628
5629
5630
5631 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5632 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5633 (test "X$CXX" != "Xg++"))) ; then
5634 ac_ext=cpp
5635 ac_cpp='$CXXCPP $CPPFLAGS'
5636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5639 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5640 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5641 if test -z "$CXXCPP"; then
5642 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 # Double quotes because CXXCPP needs to be expanded
5646 for CXXCPP in "$CXX -E" "/lib/cpp"
5647 do
5648 ac_preproc_ok=false
5649 for ac_cxx_preproc_warn_flag in '' yes
5650 do
5651 # Use a header file that comes with gcc, so configuring glibc
5652 # with a fresh cross-compiler works.
5653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5654 # <limits.h> exists even on freestanding compilers.
5655 # On the NeXT, cc -E runs the code through the compiler's parser,
5656 # not just through cpp. "Syntax error" is here to catch this case.
5657 cat >conftest.$ac_ext <<_ACEOF
5658 /* confdefs.h. */
5659 _ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 #ifdef __STDC__
5664 # include <limits.h>
5665 #else
5666 # include <assert.h>
5667 #endif
5668 Syntax error
5669 _ACEOF
5670 if { (ac_try="$ac_cpp conftest.$ac_ext"
5671 case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674 esac
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5677 ac_status=$?
5678 grep -v '^ *+' conftest.er1 >conftest.err
5679 rm -f conftest.er1
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } >/dev/null && {
5683 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5684 test ! -s conftest.err
5685 }; then
5686 :
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5690
5691 # Broken: fails on valid input.
5692 continue
5693 fi
5694
5695 rm -f conftest.err conftest.$ac_ext
5696
5697 # OK, works on sane cases. Now check whether nonexistent headers
5698 # can be detected and how.
5699 cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h. */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 #include <ac_nonexistent.h>
5706 _ACEOF
5707 if { (ac_try="$ac_cpp conftest.$ac_ext"
5708 case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } >/dev/null && {
5720 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5721 test ! -s conftest.err
5722 }; then
5723 # Broken: success on invalid input.
5724 continue
5725 else
5726 echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5728
5729 # Passes both tests.
5730 ac_preproc_ok=:
5731 break
5732 fi
5733
5734 rm -f conftest.err conftest.$ac_ext
5735
5736 done
5737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5738 rm -f conftest.err conftest.$ac_ext
5739 if $ac_preproc_ok; then
5740 break
5741 fi
5742
5743 done
5744 ac_cv_prog_CXXCPP=$CXXCPP
5745
5746 fi
5747 CXXCPP=$ac_cv_prog_CXXCPP
5748 else
5749 ac_cv_prog_CXXCPP=$CXXCPP
5750 fi
5751 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5752 echo "${ECHO_T}$CXXCPP" >&6; }
5753 ac_preproc_ok=false
5754 for ac_cxx_preproc_warn_flag in '' yes
5755 do
5756 # Use a header file that comes with gcc, so configuring glibc
5757 # with a fresh cross-compiler works.
5758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5759 # <limits.h> exists even on freestanding compilers.
5760 # On the NeXT, cc -E runs the code through the compiler's parser,
5761 # not just through cpp. "Syntax error" is here to catch this case.
5762 cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h. */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5768 #ifdef __STDC__
5769 # include <limits.h>
5770 #else
5771 # include <assert.h>
5772 #endif
5773 Syntax error
5774 _ACEOF
5775 if { (ac_try="$ac_cpp conftest.$ac_ext"
5776 case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779 esac
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } >/dev/null && {
5788 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5789 test ! -s conftest.err
5790 }; then
5791 :
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5795
5796 # Broken: fails on valid input.
5797 continue
5798 fi
5799
5800 rm -f conftest.err conftest.$ac_ext
5801
5802 # OK, works on sane cases. Now check whether nonexistent headers
5803 # can be detected and how.
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <ac_nonexistent.h>
5811 _ACEOF
5812 if { (ac_try="$ac_cpp conftest.$ac_ext"
5813 case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816 esac
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } >/dev/null && {
5825 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5826 test ! -s conftest.err
5827 }; then
5828 # Broken: success on invalid input.
5829 continue
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5833
5834 # Passes both tests.
5835 ac_preproc_ok=:
5836 break
5837 fi
5838
5839 rm -f conftest.err conftest.$ac_ext
5840
5841 done
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.err conftest.$ac_ext
5844 if $ac_preproc_ok; then
5845 :
5846 else
5847 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5848 See \`config.log' for more details." >&5
5849 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5850 See \`config.log' for more details." >&2;}
5851 { (exit 1); exit 1; }; }
5852 fi
5853
5854 ac_ext=cpp
5855 ac_cpp='$CXXCPP $CPPFLAGS'
5856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5859
5860 fi
5861
5862
5863 ac_ext=f
5864 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5865 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5867 if test -n "$ac_tool_prefix"; then
5868 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
5869 do
5870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5874 if test "${ac_cv_prog_F77+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877 if test -n "$F77"; then
5878 ac_cv_prog_F77="$F77" # Let the user override the test.
5879 else
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5887 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 break 2
5890 fi
5891 done
5892 done
5893 IFS=$as_save_IFS
5894
5895 fi
5896 fi
5897 F77=$ac_cv_prog_F77
5898 if test -n "$F77"; then
5899 { echo "$as_me:$LINENO: result: $F77" >&5
5900 echo "${ECHO_T}$F77" >&6; }
5901 else
5902 { echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6; }
5904 fi
5905
5906
5907 test -n "$F77" && break
5908 done
5909 fi
5910 if test -z "$F77"; then
5911 ac_ct_F77=$F77
5912 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
5913 do
5914 # Extract the first word of "$ac_prog", so it can be a program name with args.
5915 set dummy $ac_prog; ac_word=$2
5916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5918 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921 if test -n "$ac_ct_F77"; then
5922 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_prog_ac_ct_F77="$ac_prog"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935 done
5936 done
5937 IFS=$as_save_IFS
5938
5939 fi
5940 fi
5941 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5942 if test -n "$ac_ct_F77"; then
5943 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5944 echo "${ECHO_T}$ac_ct_F77" >&6; }
5945 else
5946 { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5948 fi
5949
5950
5951 test -n "$ac_ct_F77" && break
5952 done
5953
5954 if test "x$ac_ct_F77" = x; then
5955 F77=""
5956 else
5957 case $cross_compiling:$ac_tool_warned in
5958 yes:)
5959 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5960 whose name does not start with the host triplet. If you think this
5961 configuration is useful to you, please write to autoconf@gnu.org." >&5
5962 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5963 whose name does not start with the host triplet. If you think this
5964 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5965 ac_tool_warned=yes ;;
5966 esac
5967 F77=$ac_ct_F77
5968 fi
5969 fi
5970
5971
5972 # Provide some information about the compiler.
5973 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5974 ac_compiler=`set X $ac_compile; echo $2`
5975 { (ac_try="$ac_compiler --version >&5"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_compiler --version >&5") 2>&5
5982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }
5985 { (ac_try="$ac_compiler -v >&5"
5986 case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_compiler -v >&5") 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }
5995 { (ac_try="$ac_compiler -V >&5"
5996 case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999 esac
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_compiler -V >&5") 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }
6005 rm -f a.out
6006
6007 # If we don't use `.F' as extension, the preprocessor is not run on the
6008 # input file. (Note that this only needs to work for GNU compilers.)
6009 ac_save_ext=$ac_ext
6010 ac_ext=F
6011 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6012 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6013 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016 cat >conftest.$ac_ext <<_ACEOF
6017 program main
6018 #ifndef __GNUC__
6019 choke me
6020 #endif
6021
6022 end
6023 _ACEOF
6024 rm -f conftest.$ac_objext
6025 if { (ac_try="$ac_compile"
6026 case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6029 esac
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_compile") 2>conftest.er1
6032 ac_status=$?
6033 grep -v '^ *+' conftest.er1 >conftest.err
6034 rm -f conftest.er1
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } && {
6038 test -z "$ac_f77_werror_flag" ||
6039 test ! -s conftest.err
6040 } && test -s conftest.$ac_objext; then
6041 ac_compiler_gnu=yes
6042 else
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6045
6046 ac_compiler_gnu=no
6047 fi
6048
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6051
6052 fi
6053 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6054 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6055 ac_ext=$ac_save_ext
6056 ac_test_FFLAGS=${FFLAGS+set}
6057 ac_save_FFLAGS=$FFLAGS
6058 FFLAGS=
6059 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6060 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6061 if test "${ac_cv_prog_f77_g+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 FFLAGS=-g
6065 cat >conftest.$ac_ext <<_ACEOF
6066 program main
6067
6068 end
6069 _ACEOF
6070 rm -f conftest.$ac_objext
6071 if { (ac_try="$ac_compile"
6072 case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_compile") 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } && {
6084 test -z "$ac_f77_werror_flag" ||
6085 test ! -s conftest.err
6086 } && test -s conftest.$ac_objext; then
6087 ac_cv_prog_f77_g=yes
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6091
6092 ac_cv_prog_f77_g=no
6093 fi
6094
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096
6097 fi
6098 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6099 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6100 if test "$ac_test_FFLAGS" = set; then
6101 FFLAGS=$ac_save_FFLAGS
6102 elif test $ac_cv_prog_f77_g = yes; then
6103 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6104 FFLAGS="-g -O2"
6105 else
6106 FFLAGS="-g"
6107 fi
6108 else
6109 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6110 FFLAGS="-O2"
6111 else
6112 FFLAGS=
6113 fi
6114 fi
6115
6116 G77=`test $ac_compiler_gnu = yes && echo yes`
6117 ac_ext=c
6118 ac_cpp='$CPP $CPPFLAGS'
6119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6122
6123
6124
6125 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6126
6127 # find the maximum length of command line arguments
6128 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6129 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6130 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133 i=0
6134 teststring="ABCD"
6135
6136 case $build_os in
6137 msdosdjgpp*)
6138 # On DJGPP, this test can blow up pretty badly due to problems in libc
6139 # (any single argument exceeding 2000 bytes causes a buffer overrun
6140 # during glob expansion). Even if it were fixed, the result of this
6141 # check would be larger than it should be.
6142 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6143 ;;
6144
6145 gnu*)
6146 # Under GNU Hurd, this test is not required because there is
6147 # no limit to the length of command line arguments.
6148 # Libtool will interpret -1 as no limit whatsoever
6149 lt_cv_sys_max_cmd_len=-1;
6150 ;;
6151
6152 cygwin* | mingw*)
6153 # On Win9x/ME, this test blows up -- it succeeds, but takes
6154 # about 5 minutes as the teststring grows exponentially.
6155 # Worse, since 9x/ME are not pre-emptively multitasking,
6156 # you end up with a "frozen" computer, even though with patience
6157 # the test eventually succeeds (with a max line length of 256k).
6158 # Instead, let's just punt: use the minimum linelength reported by
6159 # all of the supported platforms: 8192 (on NT/2K/XP).
6160 lt_cv_sys_max_cmd_len=8192;
6161 ;;
6162
6163 amigaos*)
6164 # On AmigaOS with pdksh, this test takes hours, literally.
6165 # So we just punt and use a minimum line length of 8192.
6166 lt_cv_sys_max_cmd_len=8192;
6167 ;;
6168
6169 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6170 # This has been around since 386BSD, at least. Likely further.
6171 if test -x /sbin/sysctl; then
6172 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6173 elif test -x /usr/sbin/sysctl; then
6174 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6175 else
6176 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6177 fi
6178 # And add a safety zone
6179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6181 ;;
6182
6183 interix*)
6184 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6185 lt_cv_sys_max_cmd_len=196608
6186 ;;
6187
6188 osf*)
6189 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6190 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6191 # nice to cause kernel panics so lets avoid the loop below.
6192 # First set a reasonable default.
6193 lt_cv_sys_max_cmd_len=16384
6194 #
6195 if test -x /sbin/sysconfig; then
6196 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6197 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6198 esac
6199 fi
6200 ;;
6201 sco3.2v5*)
6202 lt_cv_sys_max_cmd_len=102400
6203 ;;
6204 sysv5* | sco5v6* | sysv4.2uw2*)
6205 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6206 if test -n "$kargmax"; then
6207 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6208 else
6209 lt_cv_sys_max_cmd_len=32768
6210 fi
6211 ;;
6212 *)
6213 # If test is not a shell built-in, we'll probably end up computing a
6214 # maximum length that is only half of the actual maximum length, but
6215 # we can't tell.
6216 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6217 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6218 = "XX$teststring") >/dev/null 2>&1 &&
6219 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6220 lt_cv_sys_max_cmd_len=$new_result &&
6221 test $i != 17 # 1/2 MB should be enough
6222 do
6223 i=`expr $i + 1`
6224 teststring=$teststring$teststring
6225 done
6226 teststring=
6227 # Add a significant safety factor because C++ compilers can tack on massive
6228 # amounts of additional arguments before passing them to the linker.
6229 # It appears as though 1/2 is a usable value.
6230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6231 ;;
6232 esac
6233
6234 fi
6235
6236 if test -n $lt_cv_sys_max_cmd_len ; then
6237 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6238 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6239 else
6240 { echo "$as_me:$LINENO: result: none" >&5
6241 echo "${ECHO_T}none" >&6; }
6242 fi
6243
6244
6245
6246
6247 # Check for command to grab the raw symbol name followed by C symbol from nm.
6248 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6249 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6250 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253
6254 # These are sane defaults that work on at least a few old systems.
6255 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6256
6257 # Character class describing NM global symbol codes.
6258 symcode='[BCDEGRST]'
6259
6260 # Regexp to match symbols that can be accessed directly from C.
6261 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6262
6263 # Transform an extracted symbol line into a proper C declaration
6264 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6265
6266 # Transform an extracted symbol line into symbol name and symbol address
6267 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'"
6268
6269 # Define system-specific variables.
6270 case $host_os in
6271 aix*)
6272 symcode='[BCDT]'
6273 ;;
6274 cygwin* | mingw* | pw32*)
6275 symcode='[ABCDGISTW]'
6276 ;;
6277 hpux*) # Its linker distinguishes data from code symbols
6278 if test "$host_cpu" = ia64; then
6279 symcode='[ABCDEGRST]'
6280 fi
6281 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6282 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'"
6283 ;;
6284 linux*)
6285 if test "$host_cpu" = ia64; then
6286 symcode='[ABCDGIRSTW]'
6287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6288 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'"
6289 fi
6290 ;;
6291 irix* | nonstopux*)
6292 symcode='[BCDEGRST]'
6293 ;;
6294 osf*)
6295 symcode='[BCDEGQRST]'
6296 ;;
6297 solaris*)
6298 symcode='[BDRT]'
6299 ;;
6300 sco3.2v5*)
6301 symcode='[DT]'
6302 ;;
6303 sysv4.2uw2*)
6304 symcode='[DT]'
6305 ;;
6306 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6307 symcode='[ABDT]'
6308 ;;
6309 sysv4)
6310 symcode='[DFNSTU]'
6311 ;;
6312 esac
6313
6314 # Handle CRLF in mingw tool chain
6315 opt_cr=
6316 case $build_os in
6317 mingw*)
6318 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6319 ;;
6320 esac
6321
6322 # If we're using GNU nm, then use its standard symbol codes.
6323 case `$NM -V 2>&1` in
6324 *GNU* | *'with BFD'*)
6325 symcode='[ABCDGIRSTW]' ;;
6326 esac
6327
6328 # Try without a prefix undercore, then with it.
6329 for ac_symprfx in "" "_"; do
6330
6331 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6332 symxfrm="\\1 $ac_symprfx\\2 \\2"
6333
6334 # Write the raw and C identifiers.
6335 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6336
6337 # Check to see that the pipe works correctly.
6338 pipe_works=no
6339
6340 rm -f conftest*
6341 cat > conftest.$ac_ext <<EOF
6342 #ifdef __cplusplus
6343 extern "C" {
6344 #endif
6345 char nm_test_var;
6346 void nm_test_func(){}
6347 #ifdef __cplusplus
6348 }
6349 #endif
6350 int main(){nm_test_var='a';nm_test_func();return(0);}
6351 EOF
6352
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; then
6358 # Now try to grab the symbols.
6359 nlist=conftest.nm
6360 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6361 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && test -s "$nlist"; then
6365 # Try sorting and uniquifying the output.
6366 if sort "$nlist" | uniq > "$nlist"T; then
6367 mv -f "$nlist"T "$nlist"
6368 else
6369 rm -f "$nlist"T
6370 fi
6371
6372 # Make sure that we snagged all the symbols we need.
6373 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6374 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6375 cat <<EOF > conftest.$ac_ext
6376 #ifdef __cplusplus
6377 extern "C" {
6378 #endif
6379
6380 EOF
6381 # Now generate the symbol file.
6382 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6383
6384 cat <<EOF >> conftest.$ac_ext
6385 #if defined (__STDC__) && __STDC__
6386 # define lt_ptr_t void *
6387 #else
6388 # define lt_ptr_t char *
6389 # define const
6390 #endif
6391
6392 /* The mapping between symbol names and symbols. */
6393 const struct {
6394 const char *name;
6395 lt_ptr_t address;
6396 }
6397 lt_preloaded_symbols[] =
6398 {
6399 EOF
6400 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6401 cat <<\EOF >> conftest.$ac_ext
6402 {0, (lt_ptr_t) 0}
6403 };
6404
6405 #ifdef __cplusplus
6406 }
6407 #endif
6408 EOF
6409 # Now try linking the two files.
6410 mv conftest.$ac_objext conftstm.$ac_objext
6411 lt_save_LIBS="$LIBS"
6412 lt_save_CFLAGS="$CFLAGS"
6413 LIBS="conftstm.$ac_objext"
6414 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6416 (eval $ac_link) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6420 pipe_works=yes
6421 fi
6422 LIBS="$lt_save_LIBS"
6423 CFLAGS="$lt_save_CFLAGS"
6424 else
6425 echo "cannot find nm_test_func in $nlist" >&5
6426 fi
6427 else
6428 echo "cannot find nm_test_var in $nlist" >&5
6429 fi
6430 else
6431 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6432 fi
6433 else
6434 echo "$progname: failed program was:" >&5
6435 cat conftest.$ac_ext >&5
6436 fi
6437 rm -f conftest* conftst*
6438
6439 # Do not use the global_symbol_pipe unless it works.
6440 if test "$pipe_works" = yes; then
6441 break
6442 else
6443 lt_cv_sys_global_symbol_pipe=
6444 fi
6445 done
6446
6447 fi
6448
6449 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6450 lt_cv_sys_global_symbol_to_cdecl=
6451 fi
6452 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6453 { echo "$as_me:$LINENO: result: failed" >&5
6454 echo "${ECHO_T}failed" >&6; }
6455 else
6456 { echo "$as_me:$LINENO: result: ok" >&5
6457 echo "${ECHO_T}ok" >&6; }
6458 fi
6459
6460 { echo "$as_me:$LINENO: checking for objdir" >&5
6461 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6462 if test "${lt_cv_objdir+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 rm -f .libs 2>/dev/null
6466 mkdir .libs 2>/dev/null
6467 if test -d .libs; then
6468 lt_cv_objdir=.libs
6469 else
6470 # MS-DOS does not allow filenames that begin with a dot.
6471 lt_cv_objdir=_libs
6472 fi
6473 rmdir .libs 2>/dev/null
6474 fi
6475 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6476 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6477 objdir=$lt_cv_objdir
6478
6479
6480
6481
6482
6483 case $host_os in
6484 aix3*)
6485 # AIX sometimes has problems with the GCC collect2 program. For some
6486 # reason, if we set the COLLECT_NAMES environment variable, the problems
6487 # vanish in a puff of smoke.
6488 if test "X${COLLECT_NAMES+set}" != Xset; then
6489 COLLECT_NAMES=
6490 export COLLECT_NAMES
6491 fi
6492 ;;
6493 esac
6494
6495 # Sed substitution that helps us do robust quoting. It backslashifies
6496 # metacharacters that are still active within double-quoted strings.
6497 Xsed='sed -e 1s/^X//'
6498 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6499
6500 # Same as above, but do not quote variable references.
6501 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6502
6503 # Sed substitution to delay expansion of an escaped shell variable in a
6504 # double_quote_subst'ed string.
6505 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6506
6507 # Sed substitution to avoid accidental globbing in evaled expressions
6508 no_glob_subst='s/\*/\\\*/g'
6509
6510 # Constants:
6511 rm="rm -f"
6512
6513 # Global variables:
6514 default_ofile=libtool
6515 can_build_shared=yes
6516
6517 # All known linkers require a `.a' archive for static linking (except MSVC,
6518 # which needs '.lib').
6519 libext=a
6520 ltmain="$ac_aux_dir/ltmain.sh"
6521 ofile="$default_ofile"
6522 with_gnu_ld="$lt_cv_prog_gnu_ld"
6523
6524 if test -n "$ac_tool_prefix"; then
6525 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6526 set dummy ${ac_tool_prefix}ar; ac_word=$2
6527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6529 if test "${ac_cv_prog_AR+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 if test -n "$AR"; then
6533 ac_cv_prog_AR="$AR" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_prog_AR="${ac_tool_prefix}ar"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 AR=$ac_cv_prog_AR
6553 if test -n "$AR"; then
6554 { echo "$as_me:$LINENO: result: $AR" >&5
6555 echo "${ECHO_T}$AR" >&6; }
6556 else
6557 { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6559 fi
6560
6561
6562 fi
6563 if test -z "$ac_cv_prog_AR"; then
6564 ac_ct_AR=$AR
6565 # Extract the first word of "ar", so it can be a program name with args.
6566 set dummy ar; ac_word=$2
6567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572 if test -n "$ac_ct_AR"; then
6573 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_prog_ac_ct_AR="ar"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6593 if test -n "$ac_ct_AR"; then
6594 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6595 echo "${ECHO_T}$ac_ct_AR" >&6; }
6596 else
6597 { echo "$as_me:$LINENO: result: no" >&5
6598 echo "${ECHO_T}no" >&6; }
6599 fi
6600
6601 if test "x$ac_ct_AR" = x; then
6602 AR="false"
6603 else
6604 case $cross_compiling:$ac_tool_warned in
6605 yes:)
6606 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6607 whose name does not start with the host triplet. If you think this
6608 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6609 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6610 whose name does not start with the host triplet. If you think this
6611 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6612 ac_tool_warned=yes ;;
6613 esac
6614 AR=$ac_ct_AR
6615 fi
6616 else
6617 AR="$ac_cv_prog_AR"
6618 fi
6619
6620 if test -n "$ac_tool_prefix"; then
6621 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6622 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_prog_RANLIB+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 if test -n "$RANLIB"; then
6629 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6641 fi
6642 done
6643 done
6644 IFS=$as_save_IFS
6645
6646 fi
6647 fi
6648 RANLIB=$ac_cv_prog_RANLIB
6649 if test -n "$RANLIB"; then
6650 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6651 echo "${ECHO_T}$RANLIB" >&6; }
6652 else
6653 { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6655 fi
6656
6657
6658 fi
6659 if test -z "$ac_cv_prog_RANLIB"; then
6660 ac_ct_RANLIB=$RANLIB
6661 # Extract the first word of "ranlib", so it can be a program name with args.
6662 set dummy ranlib; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668 if test -n "$ac_ct_RANLIB"; then
6669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_ac_ct_RANLIB="ranlib"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6681 fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6689 if test -n "$ac_ct_RANLIB"; then
6690 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6691 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6692 else
6693 { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6695 fi
6696
6697 if test "x$ac_ct_RANLIB" = x; then
6698 RANLIB=":"
6699 else
6700 case $cross_compiling:$ac_tool_warned in
6701 yes:)
6702 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6703 whose name does not start with the host triplet. If you think this
6704 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6705 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6706 whose name does not start with the host triplet. If you think this
6707 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710 RANLIB=$ac_ct_RANLIB
6711 fi
6712 else
6713 RANLIB="$ac_cv_prog_RANLIB"
6714 fi
6715
6716 if test -n "$ac_tool_prefix"; then
6717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6718 set dummy ${ac_tool_prefix}strip; ac_word=$2
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721 if test "${ac_cv_prog_STRIP+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 if test -n "$STRIP"; then
6725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 STRIP=$ac_cv_prog_STRIP
6745 if test -n "$STRIP"; then
6746 { echo "$as_me:$LINENO: result: $STRIP" >&5
6747 echo "${ECHO_T}$STRIP" >&6; }
6748 else
6749 { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6751 fi
6752
6753
6754 fi
6755 if test -z "$ac_cv_prog_STRIP"; then
6756 ac_ct_STRIP=$STRIP
6757 # Extract the first word of "strip", so it can be a program name with args.
6758 set dummy strip; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 if test -n "$ac_ct_STRIP"; then
6765 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_ac_ct_STRIP="strip"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6781
6782 fi
6783 fi
6784 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6785 if test -n "$ac_ct_STRIP"; then
6786 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6787 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6788 else
6789 { echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6; }
6791 fi
6792
6793 if test "x$ac_ct_STRIP" = x; then
6794 STRIP=":"
6795 else
6796 case $cross_compiling:$ac_tool_warned in
6797 yes:)
6798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6799 whose name does not start with the host triplet. If you think this
6800 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6802 whose name does not start with the host triplet. If you think this
6803 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6804 ac_tool_warned=yes ;;
6805 esac
6806 STRIP=$ac_ct_STRIP
6807 fi
6808 else
6809 STRIP="$ac_cv_prog_STRIP"
6810 fi
6811
6812
6813 old_CC="$CC"
6814 old_CFLAGS="$CFLAGS"
6815
6816 # Set sane defaults for various variables
6817 test -z "$AR" && AR=ar
6818 test -z "$AR_FLAGS" && AR_FLAGS=cru
6819 test -z "$AS" && AS=as
6820 test -z "$CC" && CC=cc
6821 test -z "$LTCC" && LTCC=$CC
6822 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6823 test -z "$DLLTOOL" && DLLTOOL=dlltool
6824 test -z "$LD" && LD=ld
6825 test -z "$LN_S" && LN_S="ln -s"
6826 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6827 test -z "$NM" && NM=nm
6828 test -z "$SED" && SED=sed
6829 test -z "$OBJDUMP" && OBJDUMP=objdump
6830 test -z "$RANLIB" && RANLIB=:
6831 test -z "$STRIP" && STRIP=:
6832 test -z "$ac_objext" && ac_objext=o
6833
6834 # Determine commands to create old-style static archives.
6835 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6836 old_postinstall_cmds='chmod 644 $oldlib'
6837 old_postuninstall_cmds=
6838
6839 if test -n "$RANLIB"; then
6840 case $host_os in
6841 openbsd*)
6842 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6843 ;;
6844 *)
6845 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6846 ;;
6847 esac
6848 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6849 fi
6850
6851 for cc_temp in $compiler""; do
6852 case $cc_temp in
6853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6855 \-*) ;;
6856 *) break;;
6857 esac
6858 done
6859 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6860
6861
6862 # Only perform the check for file, if the check method requires it
6863 case $deplibs_check_method in
6864 file_magic*)
6865 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6866 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6867 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6868 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871 case $MAGIC_CMD in
6872 [\\/*] | ?:[\\/]*)
6873 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6874 ;;
6875 *)
6876 lt_save_MAGIC_CMD="$MAGIC_CMD"
6877 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6878 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6879 for ac_dir in $ac_dummy; do
6880 IFS="$lt_save_ifs"
6881 test -z "$ac_dir" && ac_dir=.
6882 if test -f $ac_dir/${ac_tool_prefix}file; then
6883 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6884 if test -n "$file_magic_test_file"; then
6885 case $deplibs_check_method in
6886 "file_magic "*)
6887 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6889 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6890 $EGREP "$file_magic_regex" > /dev/null; then
6891 :
6892 else
6893 cat <<EOF 1>&2
6894
6895 *** Warning: the command libtool uses to detect shared libraries,
6896 *** $file_magic_cmd, produces output that libtool cannot recognize.
6897 *** The result is that libtool may fail to recognize shared libraries
6898 *** as such. This will affect the creation of libtool libraries that
6899 *** depend on shared libraries, but programs linked with such libtool
6900 *** libraries will work regardless of this problem. Nevertheless, you
6901 *** may want to report the problem to your system manager and/or to
6902 *** bug-libtool@gnu.org
6903
6904 EOF
6905 fi ;;
6906 esac
6907 fi
6908 break
6909 fi
6910 done
6911 IFS="$lt_save_ifs"
6912 MAGIC_CMD="$lt_save_MAGIC_CMD"
6913 ;;
6914 esac
6915 fi
6916
6917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6918 if test -n "$MAGIC_CMD"; then
6919 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6920 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6921 else
6922 { echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6; }
6924 fi
6925
6926 if test -z "$lt_cv_path_MAGIC_CMD"; then
6927 if test -n "$ac_tool_prefix"; then
6928 { echo "$as_me:$LINENO: checking for file" >&5
6929 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6930 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933 case $MAGIC_CMD in
6934 [\\/*] | ?:[\\/]*)
6935 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6936 ;;
6937 *)
6938 lt_save_MAGIC_CMD="$MAGIC_CMD"
6939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6940 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6941 for ac_dir in $ac_dummy; do
6942 IFS="$lt_save_ifs"
6943 test -z "$ac_dir" && ac_dir=.
6944 if test -f $ac_dir/file; then
6945 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6946 if test -n "$file_magic_test_file"; then
6947 case $deplibs_check_method in
6948 "file_magic "*)
6949 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6950 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6951 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6952 $EGREP "$file_magic_regex" > /dev/null; then
6953 :
6954 else
6955 cat <<EOF 1>&2
6956
6957 *** Warning: the command libtool uses to detect shared libraries,
6958 *** $file_magic_cmd, produces output that libtool cannot recognize.
6959 *** The result is that libtool may fail to recognize shared libraries
6960 *** as such. This will affect the creation of libtool libraries that
6961 *** depend on shared libraries, but programs linked with such libtool
6962 *** libraries will work regardless of this problem. Nevertheless, you
6963 *** may want to report the problem to your system manager and/or to
6964 *** bug-libtool@gnu.org
6965
6966 EOF
6967 fi ;;
6968 esac
6969 fi
6970 break
6971 fi
6972 done
6973 IFS="$lt_save_ifs"
6974 MAGIC_CMD="$lt_save_MAGIC_CMD"
6975 ;;
6976 esac
6977 fi
6978
6979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6980 if test -n "$MAGIC_CMD"; then
6981 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6982 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6983 else
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6986 fi
6987
6988 else
6989 MAGIC_CMD=:
6990 fi
6991 fi
6992
6993 fi
6994 ;;
6995 esac
6996
6997 enable_dlopen=no
6998 enable_win32_dll=no
6999
7000 # Check whether --enable-libtool-lock was given.
7001 if test "${enable_libtool_lock+set}" = set; then
7002 enableval=$enable_libtool_lock;
7003 fi
7004
7005 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7006
7007
7008 # Check whether --with-pic was given.
7009 if test "${with_pic+set}" = set; then
7010 withval=$with_pic; pic_mode="$withval"
7011 else
7012 pic_mode=default
7013 fi
7014
7015 test -z "$pic_mode" && pic_mode=default
7016
7017 # Use C for the default configuration in the libtool script
7018 tagname=
7019 lt_save_CC="$CC"
7020 ac_ext=c
7021 ac_cpp='$CPP $CPPFLAGS'
7022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7025
7026
7027 # Source file extension for C test sources.
7028 ac_ext=c
7029
7030 # Object file extension for compiled C test sources.
7031 objext=o
7032 objext=$objext
7033
7034 # Code to be used in simple compile tests
7035 lt_simple_compile_test_code="int some_variable = 0;\n"
7036
7037 # Code to be used in simple link tests
7038 lt_simple_link_test_code='int main(){return(0);}\n'
7039
7040
7041 # If no C compiler was specified, use CC.
7042 LTCC=${LTCC-"$CC"}
7043
7044 # If no C compiler flags were specified, use CFLAGS.
7045 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7046
7047 # Allow CC to be a program name with arguments.
7048 compiler=$CC
7049
7050
7051 # save warnings/boilerplate of simple test code
7052 ac_outfile=conftest.$ac_objext
7053 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7055 _lt_compiler_boilerplate=`cat conftest.err`
7056 $rm conftest*
7057
7058 ac_outfile=conftest.$ac_objext
7059 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7061 _lt_linker_boilerplate=`cat conftest.err`
7062 $rm conftest*
7063
7064
7065
7066 lt_prog_compiler_no_builtin_flag=
7067
7068 if test "$GCC" = yes; then
7069 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7070
7071
7072 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7073 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7074 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077 lt_cv_prog_compiler_rtti_exceptions=no
7078 ac_outfile=conftest.$ac_objext
7079 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7080 lt_compiler_flag="-fno-rtti -fno-exceptions"
7081 # Insert the option either (1) after the last *FLAGS variable, or
7082 # (2) before a word containing "conftest.", or (3) at the end.
7083 # Note that $ac_compile itself does not contain backslashes and begins
7084 # with a dollar sign (not a hyphen), so the echo should work correctly.
7085 # The option is referenced via a variable to avoid confusing sed.
7086 lt_compile=`echo "$ac_compile" | $SED \
7087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7089 -e 's:$: $lt_compiler_flag:'`
7090 (eval echo "\"\$as_me:7090: $lt_compile\"" >&5)
7091 (eval "$lt_compile" 2>conftest.err)
7092 ac_status=$?
7093 cat conftest.err >&5
7094 echo "$as_me:7094: \$? = $ac_status" >&5
7095 if (exit $ac_status) && test -s "$ac_outfile"; then
7096 # The compiler can only warn and ignore the option if not recognized
7097 # So say no if there are warnings other than the usual output.
7098 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7101 lt_cv_prog_compiler_rtti_exceptions=yes
7102 fi
7103 fi
7104 $rm conftest*
7105
7106 fi
7107 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7108 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7109
7110 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7111 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7112 else
7113 :
7114 fi
7115
7116 fi
7117
7118 lt_prog_compiler_wl=
7119 lt_prog_compiler_pic=
7120 lt_prog_compiler_static=
7121
7122 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7123 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7124
7125 if test "$GCC" = yes; then
7126 lt_prog_compiler_wl='-Wl,'
7127 lt_prog_compiler_static='-static'
7128
7129 case $host_os in
7130 aix*)
7131 # All AIX code is PIC.
7132 if test "$host_cpu" = ia64; then
7133 # AIX 5 now supports IA64 processor
7134 lt_prog_compiler_static='-Bstatic'
7135 fi
7136 ;;
7137
7138 amigaos*)
7139 # FIXME: we need at least 68020 code to build shared libraries, but
7140 # adding the `-m68020' flag to GCC prevents building anything better,
7141 # like `-m68040'.
7142 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7143 ;;
7144
7145 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7146 # PIC is the default for these OSes.
7147 ;;
7148
7149 mingw* | pw32* | os2*)
7150 # This hack is so that the source file can tell whether it is being
7151 # built for inclusion in a dll (and should export symbols for example).
7152 lt_prog_compiler_pic='-DDLL_EXPORT'
7153 ;;
7154
7155 darwin* | rhapsody*)
7156 # PIC is the default on this platform
7157 # Common symbols not allowed in MH_DYLIB files
7158 lt_prog_compiler_pic='-fno-common'
7159 ;;
7160
7161 interix3*)
7162 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7163 # Instead, we relocate shared libraries at runtime.
7164 ;;
7165
7166 msdosdjgpp*)
7167 # Just because we use GCC doesn't mean we suddenly get shared libraries
7168 # on systems that don't support them.
7169 lt_prog_compiler_can_build_shared=no
7170 enable_shared=no
7171 ;;
7172
7173 sysv4*MP*)
7174 if test -d /usr/nec; then
7175 lt_prog_compiler_pic=-Kconform_pic
7176 fi
7177 ;;
7178
7179 hpux*)
7180 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7181 # not for PA HP-UX.
7182 case $host_cpu in
7183 hppa*64*|ia64*)
7184 # +Z the default
7185 ;;
7186 *)
7187 lt_prog_compiler_pic='-fPIC'
7188 ;;
7189 esac
7190 ;;
7191
7192 *)
7193 lt_prog_compiler_pic='-fPIC'
7194 ;;
7195 esac
7196 else
7197 # PORTME Check for flag to pass linker flags through the system compiler.
7198 case $host_os in
7199 aix*)
7200 lt_prog_compiler_wl='-Wl,'
7201 if test "$host_cpu" = ia64; then
7202 # AIX 5 now supports IA64 processor
7203 lt_prog_compiler_static='-Bstatic'
7204 else
7205 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7206 fi
7207 ;;
7208 darwin*)
7209 # PIC is the default on this platform
7210 # Common symbols not allowed in MH_DYLIB files
7211 case $cc_basename in
7212 xlc*)
7213 lt_prog_compiler_pic='-qnocommon'
7214 lt_prog_compiler_wl='-Wl,'
7215 ;;
7216 esac
7217 ;;
7218
7219 mingw* | pw32* | os2*)
7220 # This hack is so that the source file can tell whether it is being
7221 # built for inclusion in a dll (and should export symbols for example).
7222 lt_prog_compiler_pic='-DDLL_EXPORT'
7223 ;;
7224
7225 hpux9* | hpux10* | hpux11*)
7226 lt_prog_compiler_wl='-Wl,'
7227 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7228 # not for PA HP-UX.
7229 case $host_cpu in
7230 hppa*64*|ia64*)
7231 # +Z the default
7232 ;;
7233 *)
7234 lt_prog_compiler_pic='+Z'
7235 ;;
7236 esac
7237 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7238 lt_prog_compiler_static='${wl}-a ${wl}archive'
7239 ;;
7240
7241 irix5* | irix6* | nonstopux*)
7242 lt_prog_compiler_wl='-Wl,'
7243 # PIC (with -KPIC) is the default.
7244 lt_prog_compiler_static='-non_shared'
7245 ;;
7246
7247 newsos6)
7248 lt_prog_compiler_pic='-KPIC'
7249 lt_prog_compiler_static='-Bstatic'
7250 ;;
7251
7252 linux*)
7253 case $cc_basename in
7254 icc* | ecc*)
7255 lt_prog_compiler_wl='-Wl,'
7256 lt_prog_compiler_pic='-KPIC'
7257 lt_prog_compiler_static='-static'
7258 ;;
7259 pgcc* | pgf77* | pgf90* | pgf95*)
7260 # Portland Group compilers (*not* the Pentium gcc compiler,
7261 # which looks to be a dead project)
7262 lt_prog_compiler_wl='-Wl,'
7263 lt_prog_compiler_pic='-fpic'
7264 lt_prog_compiler_static='-Bstatic'
7265 ;;
7266 ccc*)
7267 lt_prog_compiler_wl='-Wl,'
7268 # All Alpha code is PIC.
7269 lt_prog_compiler_static='-non_shared'
7270 ;;
7271 esac
7272 ;;
7273
7274 osf3* | osf4* | osf5*)
7275 lt_prog_compiler_wl='-Wl,'
7276 # All OSF/1 code is PIC.
7277 lt_prog_compiler_static='-non_shared'
7278 ;;
7279
7280 solaris*)
7281 lt_prog_compiler_pic='-KPIC'
7282 lt_prog_compiler_static='-Bstatic'
7283 case $cc_basename in
7284 f77* | f90* | f95*)
7285 lt_prog_compiler_wl='-Qoption ld ';;
7286 *)
7287 lt_prog_compiler_wl='-Wl,';;
7288 esac
7289 ;;
7290
7291 sunos4*)
7292 lt_prog_compiler_wl='-Qoption ld '
7293 lt_prog_compiler_pic='-PIC'
7294 lt_prog_compiler_static='-Bstatic'
7295 ;;
7296
7297 sysv4 | sysv4.2uw2* | sysv4.3*)
7298 lt_prog_compiler_wl='-Wl,'
7299 lt_prog_compiler_pic='-KPIC'
7300 lt_prog_compiler_static='-Bstatic'
7301 ;;
7302
7303 sysv4*MP*)
7304 if test -d /usr/nec ;then
7305 lt_prog_compiler_pic='-Kconform_pic'
7306 lt_prog_compiler_static='-Bstatic'
7307 fi
7308 ;;
7309
7310 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7311 lt_prog_compiler_wl='-Wl,'
7312 lt_prog_compiler_pic='-KPIC'
7313 lt_prog_compiler_static='-Bstatic'
7314 ;;
7315
7316 unicos*)
7317 lt_prog_compiler_wl='-Wl,'
7318 lt_prog_compiler_can_build_shared=no
7319 ;;
7320
7321 uts4*)
7322 lt_prog_compiler_pic='-pic'
7323 lt_prog_compiler_static='-Bstatic'
7324 ;;
7325
7326 *)
7327 lt_prog_compiler_can_build_shared=no
7328 ;;
7329 esac
7330 fi
7331
7332 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7333 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7334
7335 #
7336 # Check to make sure the PIC flag actually works.
7337 #
7338 if test -n "$lt_prog_compiler_pic"; then
7339
7340 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7341 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7342 if test "${lt_prog_compiler_pic_works+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345 lt_prog_compiler_pic_works=no
7346 ac_outfile=conftest.$ac_objext
7347 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7348 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7349 # Insert the option either (1) after the last *FLAGS variable, or
7350 # (2) before a word containing "conftest.", or (3) at the end.
7351 # Note that $ac_compile itself does not contain backslashes and begins
7352 # with a dollar sign (not a hyphen), so the echo should work correctly.
7353 # The option is referenced via a variable to avoid confusing sed.
7354 lt_compile=`echo "$ac_compile" | $SED \
7355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7357 -e 's:$: $lt_compiler_flag:'`
7358 (eval echo "\"\$as_me:7358: $lt_compile\"" >&5)
7359 (eval "$lt_compile" 2>conftest.err)
7360 ac_status=$?
7361 cat conftest.err >&5
7362 echo "$as_me:7362: \$? = $ac_status" >&5
7363 if (exit $ac_status) && test -s "$ac_outfile"; then
7364 # The compiler can only warn and ignore the option if not recognized
7365 # So say no if there are warnings other than the usual output.
7366 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7368 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7369 lt_prog_compiler_pic_works=yes
7370 fi
7371 fi
7372 $rm conftest*
7373
7374 fi
7375 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7376 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7377
7378 if test x"$lt_prog_compiler_pic_works" = xyes; then
7379 case $lt_prog_compiler_pic in
7380 "" | " "*) ;;
7381 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7382 esac
7383 else
7384 lt_prog_compiler_pic=
7385 lt_prog_compiler_can_build_shared=no
7386 fi
7387
7388 fi
7389 case $host_os in
7390 # For platforms which do not support PIC, -DPIC is meaningless:
7391 *djgpp*)
7392 lt_prog_compiler_pic=
7393 ;;
7394 *)
7395 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7396 ;;
7397 esac
7398
7399 #
7400 # Check to make sure the static flag actually works.
7401 #
7402 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7403 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7404 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7405 if test "${lt_prog_compiler_static_works+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 lt_prog_compiler_static_works=no
7409 save_LDFLAGS="$LDFLAGS"
7410 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7411 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7412 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7413 # The linker can only warn and ignore the option if not recognized
7414 # So say no if there are warnings
7415 if test -s conftest.err; then
7416 # Append any errors to the config.log.
7417 cat conftest.err 1>&5
7418 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7420 if diff conftest.exp conftest.er2 >/dev/null; then
7421 lt_prog_compiler_static_works=yes
7422 fi
7423 else
7424 lt_prog_compiler_static_works=yes
7425 fi
7426 fi
7427 $rm conftest*
7428 LDFLAGS="$save_LDFLAGS"
7429
7430 fi
7431 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7432 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7433
7434 if test x"$lt_prog_compiler_static_works" = xyes; then
7435 :
7436 else
7437 lt_prog_compiler_static=
7438 fi
7439
7440
7441 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7442 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7443 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446 lt_cv_prog_compiler_c_o=no
7447 $rm -r conftest 2>/dev/null
7448 mkdir conftest
7449 cd conftest
7450 mkdir out
7451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7452
7453 lt_compiler_flag="-o out/conftest2.$ac_objext"
7454 # Insert the option either (1) after the last *FLAGS variable, or
7455 # (2) before a word containing "conftest.", or (3) at the end.
7456 # Note that $ac_compile itself does not contain backslashes and begins
7457 # with a dollar sign (not a hyphen), so the echo should work correctly.
7458 lt_compile=`echo "$ac_compile" | $SED \
7459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7461 -e 's:$: $lt_compiler_flag:'`
7462 (eval echo "\"\$as_me:7462: $lt_compile\"" >&5)
7463 (eval "$lt_compile" 2>out/conftest.err)
7464 ac_status=$?
7465 cat out/conftest.err >&5
7466 echo "$as_me:7466: \$? = $ac_status" >&5
7467 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7468 then
7469 # The compiler can only warn and ignore the option if not recognized
7470 # So say no if there are warnings
7471 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7472 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7473 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7474 lt_cv_prog_compiler_c_o=yes
7475 fi
7476 fi
7477 chmod u+w . 2>&5
7478 $rm conftest*
7479 # SGI C++ compiler will create directory out/ii_files/ for
7480 # template instantiation
7481 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7482 $rm out/* && rmdir out
7483 cd ..
7484 rmdir conftest
7485 $rm conftest*
7486
7487 fi
7488 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7489 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7490
7491
7492 hard_links="nottested"
7493 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7494 # do not overwrite the value of need_locks provided by the user
7495 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7496 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7497 hard_links=yes
7498 $rm conftest*
7499 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7500 touch conftest.a
7501 ln conftest.a conftest.b 2>&5 || hard_links=no
7502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7503 { echo "$as_me:$LINENO: result: $hard_links" >&5
7504 echo "${ECHO_T}$hard_links" >&6; }
7505 if test "$hard_links" = no; then
7506 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7507 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7508 need_locks=warn
7509 fi
7510 else
7511 need_locks=no
7512 fi
7513
7514 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7515 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7516
7517 runpath_var=
7518 allow_undefined_flag=
7519 enable_shared_with_static_runtimes=no
7520 archive_cmds=
7521 archive_expsym_cmds=
7522 old_archive_From_new_cmds=
7523 old_archive_from_expsyms_cmds=
7524 export_dynamic_flag_spec=
7525 whole_archive_flag_spec=
7526 thread_safe_flag_spec=
7527 hardcode_libdir_flag_spec=
7528 hardcode_libdir_flag_spec_ld=
7529 hardcode_libdir_separator=
7530 hardcode_direct=no
7531 hardcode_minus_L=no
7532 hardcode_shlibpath_var=unsupported
7533 link_all_deplibs=unknown
7534 hardcode_automatic=no
7535 module_cmds=
7536 module_expsym_cmds=
7537 always_export_symbols=no
7538 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7539 # include_expsyms should be a list of space-separated symbols to be *always*
7540 # included in the symbol list
7541 include_expsyms=
7542 # exclude_expsyms can be an extended regexp of symbols to exclude
7543 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7544 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7545 # as well as any symbol that contains `d'.
7546 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7547 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7548 # platforms (ab)use it in PIC code, but their linkers get confused if
7549 # the symbol is explicitly referenced. Since portable code cannot
7550 # rely on this symbol name, it's probably fine to never include it in
7551 # preloaded symbol tables.
7552 extract_expsyms_cmds=
7553 # Just being paranoid about ensuring that cc_basename is set.
7554 for cc_temp in $compiler""; do
7555 case $cc_temp in
7556 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7557 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7558 \-*) ;;
7559 *) break;;
7560 esac
7561 done
7562 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7563
7564 case $host_os in
7565 cygwin* | mingw* | pw32*)
7566 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7567 # When not using gcc, we currently assume that we are using
7568 # Microsoft Visual C++.
7569 if test "$GCC" != yes; then
7570 with_gnu_ld=no
7571 fi
7572 ;;
7573 interix*)
7574 # we just hope/assume this is gcc and not c89 (= MSVC++)
7575 with_gnu_ld=yes
7576 ;;
7577 openbsd*)
7578 with_gnu_ld=no
7579 ;;
7580 esac
7581
7582 ld_shlibs=yes
7583 if test "$with_gnu_ld" = yes; then
7584 # If archive_cmds runs LD, not CC, wlarc should be empty
7585 wlarc='${wl}'
7586
7587 # Set some defaults for GNU ld with shared library support. These
7588 # are reset later if shared libraries are not supported. Putting them
7589 # here allows them to be overridden if necessary.
7590 runpath_var=LD_RUN_PATH
7591 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7592 export_dynamic_flag_spec='${wl}--export-dynamic'
7593 # ancient GNU ld didn't support --whole-archive et. al.
7594 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7595 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7596 else
7597 whole_archive_flag_spec=
7598 fi
7599 supports_anon_versioning=no
7600 case `$LD -v 2>/dev/null` in
7601 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7602 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7603 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7604 *\ 2.11.*) ;; # other 2.11 versions
7605 *) supports_anon_versioning=yes ;;
7606 esac
7607
7608 # See if GNU ld supports shared libraries.
7609 case $host_os in
7610 aix3* | aix4* | aix5*)
7611 # On AIX/PPC, the GNU linker is very broken
7612 if test "$host_cpu" != ia64; then
7613 ld_shlibs=no
7614 cat <<EOF 1>&2
7615
7616 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7617 *** to be unable to reliably create shared libraries on AIX.
7618 *** Therefore, libtool is disabling shared libraries support. If you
7619 *** really care for shared libraries, you may want to modify your PATH
7620 *** so that a non-GNU linker is found, and then restart.
7621
7622 EOF
7623 fi
7624 ;;
7625
7626 amigaos*)
7627 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)'
7628 hardcode_libdir_flag_spec='-L$libdir'
7629 hardcode_minus_L=yes
7630
7631 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7632 # that the semantics of dynamic libraries on AmigaOS, at least up
7633 # to version 4, is to share data among multiple programs linked
7634 # with the same dynamic library. Since this doesn't match the
7635 # behavior of shared libraries on other platforms, we can't use
7636 # them.
7637 ld_shlibs=no
7638 ;;
7639
7640 beos*)
7641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7642 allow_undefined_flag=unsupported
7643 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7644 # support --undefined. This deserves some investigation. FIXME
7645 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7646 else
7647 ld_shlibs=no
7648 fi
7649 ;;
7650
7651 cygwin* | mingw* | pw32*)
7652 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7653 # as there is no search path for DLLs.
7654 hardcode_libdir_flag_spec='-L$libdir'
7655 allow_undefined_flag=unsupported
7656 always_export_symbols=no
7657 enable_shared_with_static_runtimes=yes
7658 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7659
7660 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7662 # If the export-symbols file already is a .def file (1st line
7663 # is EXPORTS), use it as is; otherwise, prepend...
7664 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7665 cp $export_symbols $output_objdir/$soname.def;
7666 else
7667 echo EXPORTS > $output_objdir/$soname.def;
7668 cat $export_symbols >> $output_objdir/$soname.def;
7669 fi~
7670 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7671 else
7672 ld_shlibs=no
7673 fi
7674 ;;
7675
7676 interix3*)
7677 hardcode_direct=no
7678 hardcode_shlibpath_var=no
7679 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7680 export_dynamic_flag_spec='${wl}-E'
7681 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7682 # Instead, shared libraries are loaded at an image base (0x10000000 by
7683 # default) and relocated if they conflict, which is a slow very memory
7684 # consuming and fragmenting process. To avoid this, we pick a random,
7685 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7686 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7687 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7688 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'
7689 ;;
7690
7691 linux*)
7692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7693 tmp_addflag=
7694 case $cc_basename,$host_cpu in
7695 pgcc*) # Portland Group C compiler
7696 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'
7697 tmp_addflag=' $pic_flag'
7698 ;;
7699 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7700 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'
7701 tmp_addflag=' $pic_flag -Mnomain' ;;
7702 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7703 tmp_addflag=' -i_dynamic' ;;
7704 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7705 tmp_addflag=' -i_dynamic -nofor_main' ;;
7706 ifc* | ifort*) # Intel Fortran compiler
7707 tmp_addflag=' -nofor_main' ;;
7708 esac
7709 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710
7711 if test $supports_anon_versioning = yes; then
7712 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7713 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7714 $echo "local: *; };" >> $output_objdir/$libname.ver~
7715 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7716 fi
7717 else
7718 ld_shlibs=no
7719 fi
7720 ;;
7721
7722 netbsd*)
7723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7724 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7725 wlarc=
7726 else
7727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7729 fi
7730 ;;
7731
7732 solaris*)
7733 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7734 ld_shlibs=no
7735 cat <<EOF 1>&2
7736
7737 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7738 *** create shared libraries on Solaris systems. Therefore, libtool
7739 *** is disabling shared libraries support. We urge you to upgrade GNU
7740 *** binutils to release 2.9.1 or newer. Another option is to modify
7741 *** your PATH or compiler configuration so that the native linker is
7742 *** used, and then restart.
7743
7744 EOF
7745 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7747 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7748 else
7749 ld_shlibs=no
7750 fi
7751 ;;
7752
7753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7754 case `$LD -v 2>&1` in
7755 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7756 ld_shlibs=no
7757 cat <<_LT_EOF 1>&2
7758
7759 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7760 *** reliably create shared libraries on SCO systems. Therefore, libtool
7761 *** is disabling shared libraries support. We urge you to upgrade GNU
7762 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7763 *** your PATH or compiler configuration so that the native linker is
7764 *** used, and then restart.
7765
7766 _LT_EOF
7767 ;;
7768 *)
7769 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7770 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7773 else
7774 ld_shlibs=no
7775 fi
7776 ;;
7777 esac
7778 ;;
7779
7780 sunos4*)
7781 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7782 wlarc=
7783 hardcode_direct=yes
7784 hardcode_shlibpath_var=no
7785 ;;
7786
7787 *)
7788 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7791 else
7792 ld_shlibs=no
7793 fi
7794 ;;
7795 esac
7796
7797 if test "$ld_shlibs" = no; then
7798 runpath_var=
7799 hardcode_libdir_flag_spec=
7800 export_dynamic_flag_spec=
7801 whole_archive_flag_spec=
7802 fi
7803 else
7804 # PORTME fill in a description of your system's linker (not GNU ld)
7805 case $host_os in
7806 aix3*)
7807 allow_undefined_flag=unsupported
7808 always_export_symbols=yes
7809 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'
7810 # Note: this linker hardcodes the directories in LIBPATH if there
7811 # are no directories specified by -L.
7812 hardcode_minus_L=yes
7813 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7814 # Neither direct hardcoding nor static linking is supported with a
7815 # broken collect2.
7816 hardcode_direct=unsupported
7817 fi
7818 ;;
7819
7820 aix4* | aix5*)
7821 if test "$host_cpu" = ia64; then
7822 # On IA64, the linker does run time linking by default, so we don't
7823 # have to do anything special.
7824 aix_use_runtimelinking=no
7825 exp_sym_flag='-Bexport'
7826 no_entry_flag=""
7827 else
7828 # If we're using GNU nm, then we don't want the "-C" option.
7829 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7830 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7831 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'
7832 else
7833 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'
7834 fi
7835 aix_use_runtimelinking=no
7836
7837 # Test if we are trying to use run time linking or normal
7838 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7839 # need to do runtime linking.
7840 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7841 for ld_flag in $LDFLAGS; do
7842 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7843 aix_use_runtimelinking=yes
7844 break
7845 fi
7846 done
7847 ;;
7848 esac
7849
7850 exp_sym_flag='-bexport'
7851 no_entry_flag='-bnoentry'
7852 fi
7853
7854 # When large executables or shared objects are built, AIX ld can
7855 # have problems creating the table of contents. If linking a library
7856 # or program results in "error TOC overflow" add -mminimal-toc to
7857 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7858 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7859
7860 archive_cmds=''
7861 hardcode_direct=yes
7862 hardcode_libdir_separator=':'
7863 link_all_deplibs=yes
7864
7865 if test "$GCC" = yes; then
7866 case $host_os in aix4.[012]|aix4.[012].*)
7867 # We only want to do this on AIX 4.2 and lower, the check
7868 # below for broken collect2 doesn't work under 4.3+
7869 collect2name=`${CC} -print-prog-name=collect2`
7870 if test -f "$collect2name" && \
7871 strings "$collect2name" | grep resolve_lib_name >/dev/null
7872 then
7873 # We have reworked collect2
7874 hardcode_direct=yes
7875 else
7876 # We have old collect2
7877 hardcode_direct=unsupported
7878 # It fails to find uninstalled libraries when the uninstalled
7879 # path is not listed in the libpath. Setting hardcode_minus_L
7880 # to unsupported forces relinking
7881 hardcode_minus_L=yes
7882 hardcode_libdir_flag_spec='-L$libdir'
7883 hardcode_libdir_separator=
7884 fi
7885 ;;
7886 esac
7887 shared_flag='-shared'
7888 if test "$aix_use_runtimelinking" = yes; then
7889 shared_flag="$shared_flag "'${wl}-G'
7890 fi
7891 else
7892 # not using gcc
7893 if test "$host_cpu" = ia64; then
7894 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7895 # chokes on -Wl,-G. The following line is correct:
7896 shared_flag='-G'
7897 else
7898 if test "$aix_use_runtimelinking" = yes; then
7899 shared_flag='${wl}-G'
7900 else
7901 shared_flag='${wl}-bM:SRE'
7902 fi
7903 fi
7904 fi
7905
7906 # It seems that -bexpall does not export symbols beginning with
7907 # underscore (_), so it is better to generate a list of symbols to export.
7908 always_export_symbols=yes
7909 if test "$aix_use_runtimelinking" = yes; then
7910 # Warning - without using the other runtime loading flags (-brtl),
7911 # -berok will link without error, but may produce a broken library.
7912 allow_undefined_flag='-berok'
7913 # Determine the default libpath from the value encoded in an empty executable.
7914 cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h. */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7920
7921 int
7922 main ()
7923 {
7924
7925 ;
7926 return 0;
7927 }
7928 _ACEOF
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930 if { (ac_try="$ac_link"
7931 case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_link") 2>conftest.er1
7937 ac_status=$?
7938 grep -v '^ *+' conftest.er1 >conftest.err
7939 rm -f conftest.er1
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest$ac_exeext &&
7946 $as_test_x conftest$ac_exeext; then
7947
7948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7949 }'`
7950 # Check for a 64-bit object if we didn't find anything.
7951 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7952 }'`; fi
7953 else
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7956
7957
7958 fi
7959
7960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7961 conftest$ac_exeext conftest.$ac_ext
7962 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7963
7964 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7965 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"
7966 else
7967 if test "$host_cpu" = ia64; then
7968 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7969 allow_undefined_flag="-z nodefs"
7970 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"
7971 else
7972 # Determine the default libpath from the value encoded in an empty executable.
7973 cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h. */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7979
7980 int
7981 main ()
7982 {
7983
7984 ;
7985 return 0;
7986 }
7987 _ACEOF
7988 rm -f conftest.$ac_objext conftest$ac_exeext
7989 if { (ac_try="$ac_link"
7990 case "(($ac_try" in
7991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992 *) ac_try_echo=$ac_try;;
7993 esac
7994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7995 (eval "$ac_link") 2>conftest.er1
7996 ac_status=$?
7997 grep -v '^ *+' conftest.er1 >conftest.err
7998 rm -f conftest.er1
7999 cat conftest.err >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } && {
8002 test -z "$ac_c_werror_flag" ||
8003 test ! -s conftest.err
8004 } && test -s conftest$ac_exeext &&
8005 $as_test_x conftest$ac_exeext; then
8006
8007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8008 }'`
8009 # Check for a 64-bit object if we didn't find anything.
8010 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8011 }'`; fi
8012 else
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016
8017 fi
8018
8019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8020 conftest$ac_exeext conftest.$ac_ext
8021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8022
8023 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8024 # Warning - without using the other run time loading flags,
8025 # -berok will link without error, but may produce a broken library.
8026 no_undefined_flag=' ${wl}-bernotok'
8027 allow_undefined_flag=' ${wl}-berok'
8028 # Exported symbols can be pulled into shared objects from archives
8029 whole_archive_flag_spec='$convenience'
8030 archive_cmds_need_lc=yes
8031 # This is similar to how AIX traditionally builds its shared libraries.
8032 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'
8033 fi
8034 fi
8035 ;;
8036
8037 amigaos*)
8038 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)'
8039 hardcode_libdir_flag_spec='-L$libdir'
8040 hardcode_minus_L=yes
8041 # see comment about different semantics on the GNU ld section
8042 ld_shlibs=no
8043 ;;
8044
8045 bsdi[45]*)
8046 export_dynamic_flag_spec=-rdynamic
8047 ;;
8048
8049 cygwin* | mingw* | pw32*)
8050 # When not using gcc, we currently assume that we are using
8051 # Microsoft Visual C++.
8052 # hardcode_libdir_flag_spec is actually meaningless, as there is
8053 # no search path for DLLs.
8054 hardcode_libdir_flag_spec=' '
8055 allow_undefined_flag=unsupported
8056 # Tell ltmain to make .lib files, not .a files.
8057 libext=lib
8058 # Tell ltmain to make .dll files, not .so files.
8059 shrext_cmds=".dll"
8060 # FIXME: Setting linknames here is a bad hack.
8061 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8062 # The linker will automatically build a .lib file if we build a DLL.
8063 old_archive_From_new_cmds='true'
8064 # FIXME: Should let the user specify the lib program.
8065 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8066 fix_srcfile_path='`cygpath -w "$srcfile"`'
8067 enable_shared_with_static_runtimes=yes
8068 ;;
8069
8070 darwin* | rhapsody*)
8071 case $host_os in
8072 rhapsody* | darwin1.[012])
8073 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8074 ;;
8075 *) # Darwin 1.3 on
8076 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8077 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8078 else
8079 case ${MACOSX_DEPLOYMENT_TARGET} in
8080 10.[012])
8081 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8082 ;;
8083 10.*)
8084 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8085 ;;
8086 esac
8087 fi
8088 ;;
8089 esac
8090 archive_cmds_need_lc=no
8091 hardcode_direct=no
8092 hardcode_automatic=yes
8093 hardcode_shlibpath_var=unsupported
8094 whole_archive_flag_spec=''
8095 link_all_deplibs=yes
8096 if test "$GCC" = yes ; then
8097 output_verbose_link_cmd='echo'
8098 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8099 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8101 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8102 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}'
8103 else
8104 case $cc_basename in
8105 xlc*)
8106 output_verbose_link_cmd='echo'
8107 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8108 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8109 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8110 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8111 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}'
8112 ;;
8113 *)
8114 ld_shlibs=no
8115 ;;
8116 esac
8117 fi
8118 ;;
8119
8120 dgux*)
8121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8122 hardcode_libdir_flag_spec='-L$libdir'
8123 hardcode_shlibpath_var=no
8124 ;;
8125
8126 freebsd1*)
8127 ld_shlibs=no
8128 ;;
8129
8130 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8131 # support. Future versions do this automatically, but an explicit c++rt0.o
8132 # does not break anything, and helps significantly (at the cost of a little
8133 # extra space).
8134 freebsd2.2*)
8135 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8136 hardcode_libdir_flag_spec='-R$libdir'
8137 hardcode_direct=yes
8138 hardcode_shlibpath_var=no
8139 ;;
8140
8141 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8142 freebsd2*)
8143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8144 hardcode_direct=yes
8145 hardcode_minus_L=yes
8146 hardcode_shlibpath_var=no
8147 ;;
8148
8149 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8150 freebsd* | kfreebsd*-gnu | dragonfly*)
8151 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8152 hardcode_libdir_flag_spec='-R$libdir'
8153 hardcode_direct=yes
8154 hardcode_shlibpath_var=no
8155 ;;
8156
8157 hpux9*)
8158 if test "$GCC" = yes; then
8159 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'
8160 else
8161 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'
8162 fi
8163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8164 hardcode_libdir_separator=:
8165 hardcode_direct=yes
8166
8167 # hardcode_minus_L: Not really in the search PATH,
8168 # but as the default location of the library.
8169 hardcode_minus_L=yes
8170 export_dynamic_flag_spec='${wl}-E'
8171 ;;
8172
8173 hpux10*)
8174 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8175 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8176 else
8177 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8178 fi
8179 if test "$with_gnu_ld" = no; then
8180 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8181 hardcode_libdir_separator=:
8182
8183 hardcode_direct=yes
8184 export_dynamic_flag_spec='${wl}-E'
8185
8186 # hardcode_minus_L: Not really in the search PATH,
8187 # but as the default location of the library.
8188 hardcode_minus_L=yes
8189 fi
8190 ;;
8191
8192 hpux11*)
8193 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8194 case $host_cpu in
8195 hppa*64*)
8196 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8197 ;;
8198 ia64*)
8199 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8200 ;;
8201 *)
8202 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8203 ;;
8204 esac
8205 else
8206 case $host_cpu in
8207 hppa*64*)
8208 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8209 ;;
8210 ia64*)
8211 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8212 ;;
8213 *)
8214 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8215 ;;
8216 esac
8217 fi
8218 if test "$with_gnu_ld" = no; then
8219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8220 hardcode_libdir_separator=:
8221
8222 case $host_cpu in
8223 hppa*64*|ia64*)
8224 hardcode_libdir_flag_spec_ld='+b $libdir'
8225 hardcode_direct=no
8226 hardcode_shlibpath_var=no
8227 ;;
8228 *)
8229 hardcode_direct=yes
8230 export_dynamic_flag_spec='${wl}-E'
8231
8232 # hardcode_minus_L: Not really in the search PATH,
8233 # but as the default location of the library.
8234 hardcode_minus_L=yes
8235 ;;
8236 esac
8237 fi
8238 ;;
8239
8240 irix5* | irix6* | nonstopux*)
8241 if test "$GCC" = yes; then
8242 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'
8243 else
8244 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'
8245 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8246 fi
8247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8248 hardcode_libdir_separator=:
8249 link_all_deplibs=yes
8250 ;;
8251
8252 netbsd*)
8253 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8255 else
8256 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8257 fi
8258 hardcode_libdir_flag_spec='-R$libdir'
8259 hardcode_direct=yes
8260 hardcode_shlibpath_var=no
8261 ;;
8262
8263 newsos6)
8264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8265 hardcode_direct=yes
8266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8267 hardcode_libdir_separator=:
8268 hardcode_shlibpath_var=no
8269 ;;
8270
8271 openbsd*)
8272 hardcode_direct=yes
8273 hardcode_shlibpath_var=no
8274 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8276 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8277 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8278 export_dynamic_flag_spec='${wl}-E'
8279 else
8280 case $host_os in
8281 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8283 hardcode_libdir_flag_spec='-R$libdir'
8284 ;;
8285 *)
8286 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8287 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8288 ;;
8289 esac
8290 fi
8291 ;;
8292
8293 os2*)
8294 hardcode_libdir_flag_spec='-L$libdir'
8295 hardcode_minus_L=yes
8296 allow_undefined_flag=unsupported
8297 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'
8298 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8299 ;;
8300
8301 osf3*)
8302 if test "$GCC" = yes; then
8303 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8304 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'
8305 else
8306 allow_undefined_flag=' -expect_unresolved \*'
8307 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'
8308 fi
8309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8310 hardcode_libdir_separator=:
8311 ;;
8312
8313 osf4* | osf5*) # as osf3* with the addition of -msym flag
8314 if test "$GCC" = yes; then
8315 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8316 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'
8317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318 else
8319 allow_undefined_flag=' -expect_unresolved \*'
8320 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'
8321 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8322 $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'
8323
8324 # Both c and cxx compiler support -rpath directly
8325 hardcode_libdir_flag_spec='-rpath $libdir'
8326 fi
8327 hardcode_libdir_separator=:
8328 ;;
8329
8330 solaris*)
8331 no_undefined_flag=' -z text'
8332 if test "$GCC" = yes; then
8333 wlarc='${wl}'
8334 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8335 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8336 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8337 else
8338 wlarc=''
8339 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8340 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8341 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8342 fi
8343 hardcode_libdir_flag_spec='-R$libdir'
8344 hardcode_shlibpath_var=no
8345 case $host_os in
8346 solaris2.[0-5] | solaris2.[0-5].*) ;;
8347 *)
8348 # The compiler driver will combine linker options so we
8349 # cannot just pass the convience library names through
8350 # without $wl, iff we do not link with $LD.
8351 # Luckily, gcc supports the same syntax we need for Sun Studio.
8352 # Supported since Solaris 2.6 (maybe 2.5.1?)
8353 case $wlarc in
8354 '')
8355 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8356 *)
8357 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8358 esac ;;
8359 esac
8360 link_all_deplibs=yes
8361 ;;
8362
8363 sunos4*)
8364 if test "x$host_vendor" = xsequent; then
8365 # Use $CC to link under sequent, because it throws in some extra .o
8366 # files that make .init and .fini sections work.
8367 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8368 else
8369 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8370 fi
8371 hardcode_libdir_flag_spec='-L$libdir'
8372 hardcode_direct=yes
8373 hardcode_minus_L=yes
8374 hardcode_shlibpath_var=no
8375 ;;
8376
8377 sysv4)
8378 case $host_vendor in
8379 sni)
8380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8381 hardcode_direct=yes # is this really true???
8382 ;;
8383 siemens)
8384 ## LD is ld it makes a PLAMLIB
8385 ## CC just makes a GrossModule.
8386 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8387 reload_cmds='$CC -r -o $output$reload_objs'
8388 hardcode_direct=no
8389 ;;
8390 motorola)
8391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8392 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8393 ;;
8394 esac
8395 runpath_var='LD_RUN_PATH'
8396 hardcode_shlibpath_var=no
8397 ;;
8398
8399 sysv4.3*)
8400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8401 hardcode_shlibpath_var=no
8402 export_dynamic_flag_spec='-Bexport'
8403 ;;
8404
8405 sysv4*MP*)
8406 if test -d /usr/nec; then
8407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8408 hardcode_shlibpath_var=no
8409 runpath_var=LD_RUN_PATH
8410 hardcode_runpath_var=yes
8411 ld_shlibs=yes
8412 fi
8413 ;;
8414
8415 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8416 no_undefined_flag='${wl}-z,text'
8417 archive_cmds_need_lc=no
8418 hardcode_shlibpath_var=no
8419 runpath_var='LD_RUN_PATH'
8420
8421 if test "$GCC" = yes; then
8422 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424 else
8425 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8426 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8427 fi
8428 ;;
8429
8430 sysv5* | sco3.2v5* | sco5v6*)
8431 # Note: We can NOT use -z defs as we might desire, because we do not
8432 # link with -lc, and that would cause any symbols used from libc to
8433 # always be unresolved, which means just about no library would
8434 # ever link correctly. If we're not using GNU ld we use -z text
8435 # though, which does catch some bad symbols but isn't as heavy-handed
8436 # as -z defs.
8437 no_undefined_flag='${wl}-z,text'
8438 allow_undefined_flag='${wl}-z,nodefs'
8439 archive_cmds_need_lc=no
8440 hardcode_shlibpath_var=no
8441 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8442 hardcode_libdir_separator=':'
8443 link_all_deplibs=yes
8444 export_dynamic_flag_spec='${wl}-Bexport'
8445 runpath_var='LD_RUN_PATH'
8446
8447 if test "$GCC" = yes; then
8448 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8449 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8450 else
8451 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8452 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8453 fi
8454 ;;
8455
8456 uts4*)
8457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8458 hardcode_libdir_flag_spec='-L$libdir'
8459 hardcode_shlibpath_var=no
8460 ;;
8461
8462 *)
8463 ld_shlibs=no
8464 ;;
8465 esac
8466 fi
8467
8468 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8469 echo "${ECHO_T}$ld_shlibs" >&6; }
8470 test "$ld_shlibs" = no && can_build_shared=no
8471
8472 #
8473 # Do we need to explicitly link libc?
8474 #
8475 case "x$archive_cmds_need_lc" in
8476 x|xyes)
8477 # Assume -lc should be added
8478 archive_cmds_need_lc=yes
8479
8480 if test "$enable_shared" = yes && test "$GCC" = yes; then
8481 case $archive_cmds in
8482 *'~'*)
8483 # FIXME: we may have to deal with multi-command sequences.
8484 ;;
8485 '$CC '*)
8486 # Test whether the compiler implicitly links with -lc since on some
8487 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8488 # to ld, don't add -lc before -lgcc.
8489 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8490 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8491 $rm conftest*
8492 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8493
8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495 (eval $ac_compile) 2>&5
8496 ac_status=$?
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } 2>conftest.err; then
8499 soname=conftest
8500 lib=conftest
8501 libobjs=conftest.$ac_objext
8502 deplibs=
8503 wl=$lt_prog_compiler_wl
8504 pic_flag=$lt_prog_compiler_pic
8505 compiler_flags=-v
8506 linker_flags=-v
8507 verstring=
8508 output_objdir=.
8509 libname=conftest
8510 lt_save_allow_undefined_flag=$allow_undefined_flag
8511 allow_undefined_flag=
8512 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8513 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }
8517 then
8518 archive_cmds_need_lc=no
8519 else
8520 archive_cmds_need_lc=yes
8521 fi
8522 allow_undefined_flag=$lt_save_allow_undefined_flag
8523 else
8524 cat conftest.err 1>&5
8525 fi
8526 $rm conftest*
8527 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8528 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8529 ;;
8530 esac
8531 fi
8532 ;;
8533 esac
8534
8535 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8536 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8537 library_names_spec=
8538 libname_spec='lib$name'
8539 soname_spec=
8540 shrext_cmds=".so"
8541 postinstall_cmds=
8542 postuninstall_cmds=
8543 finish_cmds=
8544 finish_eval=
8545 shlibpath_var=
8546 shlibpath_overrides_runpath=unknown
8547 version_type=none
8548 dynamic_linker="$host_os ld.so"
8549 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8550 if test "$GCC" = yes; then
8551 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8552 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8553 # if the path contains ";" then we assume it to be the separator
8554 # otherwise default to the standard path separator (i.e. ":") - it is
8555 # assumed that no part of a normal pathname contains ";" but that should
8556 # okay in the real world where ";" in dirpaths is itself problematic.
8557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8558 else
8559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8560 fi
8561 else
8562 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8563 fi
8564 need_lib_prefix=unknown
8565 hardcode_into_libs=no
8566
8567 # when you set need_version to no, make sure it does not cause -set_version
8568 # flags to be left without arguments
8569 need_version=unknown
8570
8571 case $host_os in
8572 aix3*)
8573 version_type=linux
8574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8575 shlibpath_var=LIBPATH
8576
8577 # AIX 3 has no versioning support, so we append a major version to the name.
8578 soname_spec='${libname}${release}${shared_ext}$major'
8579 ;;
8580
8581 aix4* | aix5*)
8582 version_type=linux
8583 need_lib_prefix=no
8584 need_version=no
8585 hardcode_into_libs=yes
8586 if test "$host_cpu" = ia64; then
8587 # AIX 5 supports IA64
8588 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8589 shlibpath_var=LD_LIBRARY_PATH
8590 else
8591 # With GCC up to 2.95.x, collect2 would create an import file
8592 # for dependence libraries. The import file would start with
8593 # the line `#! .'. This would cause the generated library to
8594 # depend on `.', always an invalid library. This was fixed in
8595 # development snapshots of GCC prior to 3.0.
8596 case $host_os in
8597 aix4 | aix4.[01] | aix4.[01].*)
8598 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8599 echo ' yes '
8600 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8601 :
8602 else
8603 can_build_shared=no
8604 fi
8605 ;;
8606 esac
8607 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8608 # soname into executable. Probably we can add versioning support to
8609 # collect2, so additional links can be useful in future.
8610 if test "$aix_use_runtimelinking" = yes; then
8611 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8612 # instead of lib<name>.a to let people know that these are not
8613 # typical AIX shared libraries.
8614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8615 else
8616 # We preserve .a as extension for shared libraries through AIX4.2
8617 # and later when we are not doing run time linking.
8618 library_names_spec='${libname}${release}.a $libname.a'
8619 soname_spec='${libname}${release}${shared_ext}$major'
8620 fi
8621 shlibpath_var=LIBPATH
8622 fi
8623 ;;
8624
8625 amigaos*)
8626 library_names_spec='$libname.ixlibrary $libname.a'
8627 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8628 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'
8629 ;;
8630
8631 beos*)
8632 library_names_spec='${libname}${shared_ext}'
8633 dynamic_linker="$host_os ld.so"
8634 shlibpath_var=LIBRARY_PATH
8635 ;;
8636
8637 bsdi[45]*)
8638 version_type=linux
8639 need_version=no
8640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8641 soname_spec='${libname}${release}${shared_ext}$major'
8642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8643 shlibpath_var=LD_LIBRARY_PATH
8644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8646 # the default ld.so.conf also contains /usr/contrib/lib and
8647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8648 # libtool to hard-code these into programs
8649 ;;
8650
8651 cygwin* | mingw* | pw32*)
8652 version_type=windows
8653 shrext_cmds=".dll"
8654 need_version=no
8655 need_lib_prefix=no
8656
8657 case $GCC,$host_os in
8658 yes,cygwin* | yes,mingw* | yes,pw32*)
8659 library_names_spec='$libname.dll.a'
8660 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8661 postinstall_cmds='base_file=`basename \${file}`~
8662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8663 dldir=$destdir/`dirname \$dlpath`~
8664 test -d \$dldir || mkdir -p \$dldir~
8665 $install_prog $dir/$dlname \$dldir/$dlname~
8666 chmod a+x \$dldir/$dlname'
8667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8668 dlpath=$dir/\$dldll~
8669 $rm \$dlpath'
8670 shlibpath_overrides_runpath=yes
8671
8672 case $host_os in
8673 cygwin*)
8674 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8675 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8676 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8677 ;;
8678 mingw*)
8679 # MinGW DLLs use traditional 'lib' prefix
8680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8682 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8683 # It is most probably a Windows format PATH printed by
8684 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8685 # path with ; separators, and with drive letters. We can handle the
8686 # drive letters (cygwin fileutils understands them), so leave them,
8687 # especially as we might pass files found there to a mingw objdump,
8688 # which wouldn't understand a cygwinified path. Ahh.
8689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8690 else
8691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8692 fi
8693 ;;
8694 pw32*)
8695 # pw32 DLLs use 'pw' prefix rather than 'lib'
8696 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8697 ;;
8698 esac
8699 ;;
8700
8701 *)
8702 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8703 ;;
8704 esac
8705 dynamic_linker='Win32 ld.exe'
8706 # FIXME: first we should search . and the directory the executable is in
8707 shlibpath_var=PATH
8708 ;;
8709
8710 darwin* | rhapsody*)
8711 dynamic_linker="$host_os dyld"
8712 version_type=darwin
8713 need_lib_prefix=no
8714 need_version=no
8715 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8716 soname_spec='${libname}${release}${major}$shared_ext'
8717 shlibpath_overrides_runpath=yes
8718 shlibpath_var=DYLD_LIBRARY_PATH
8719 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8720 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8721 if test "$GCC" = yes; then
8722 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8723 else
8724 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8725 fi
8726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8727 ;;
8728
8729 dgux*)
8730 version_type=linux
8731 need_lib_prefix=no
8732 need_version=no
8733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8734 soname_spec='${libname}${release}${shared_ext}$major'
8735 shlibpath_var=LD_LIBRARY_PATH
8736 ;;
8737
8738 freebsd1*)
8739 dynamic_linker=no
8740 ;;
8741
8742 kfreebsd*-gnu)
8743 version_type=linux
8744 need_lib_prefix=no
8745 need_version=no
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8747 soname_spec='${libname}${release}${shared_ext}$major'
8748 shlibpath_var=LD_LIBRARY_PATH
8749 shlibpath_overrides_runpath=no
8750 hardcode_into_libs=yes
8751 dynamic_linker='GNU ld.so'
8752 ;;
8753
8754 freebsd* | dragonfly*)
8755 # DragonFly does not have aout. When/if they implement a new
8756 # versioning mechanism, adjust this.
8757 if test -x /usr/bin/objformat; then
8758 objformat=`/usr/bin/objformat`
8759 else
8760 case $host_os in
8761 freebsd[123]*) objformat=aout ;;
8762 *) objformat=elf ;;
8763 esac
8764 fi
8765 version_type=freebsd-$objformat
8766 case $version_type in
8767 freebsd-elf*)
8768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8769 need_version=no
8770 need_lib_prefix=no
8771 ;;
8772 freebsd-*)
8773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8774 need_version=yes
8775 ;;
8776 esac
8777 shlibpath_var=LD_LIBRARY_PATH
8778 case $host_os in
8779 freebsd2*)
8780 shlibpath_overrides_runpath=yes
8781 ;;
8782 freebsd3.[01]* | freebsdelf3.[01]*)
8783 shlibpath_overrides_runpath=yes
8784 hardcode_into_libs=yes
8785 ;;
8786 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8787 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8788 shlibpath_overrides_runpath=no
8789 hardcode_into_libs=yes
8790 ;;
8791 freebsd*) # from 4.6 on
8792 shlibpath_overrides_runpath=yes
8793 hardcode_into_libs=yes
8794 ;;
8795 esac
8796 ;;
8797
8798 gnu*)
8799 version_type=linux
8800 need_lib_prefix=no
8801 need_version=no
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 shlibpath_var=LD_LIBRARY_PATH
8805 hardcode_into_libs=yes
8806 ;;
8807
8808 hpux9* | hpux10* | hpux11*)
8809 # Give a soname corresponding to the major version so that dld.sl refuses to
8810 # link against other versions.
8811 version_type=sunos
8812 need_lib_prefix=no
8813 need_version=no
8814 case $host_cpu in
8815 ia64*)
8816 shrext_cmds='.so'
8817 hardcode_into_libs=yes
8818 dynamic_linker="$host_os dld.so"
8819 shlibpath_var=LD_LIBRARY_PATH
8820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 if test "X$HPUX_IA64_MODE" = X32; then
8824 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8825 else
8826 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8827 fi
8828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8829 ;;
8830 hppa*64*)
8831 shrext_cmds='.sl'
8832 hardcode_into_libs=yes
8833 dynamic_linker="$host_os dld.sl"
8834 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8840 ;;
8841 *)
8842 shrext_cmds='.sl'
8843 dynamic_linker="$host_os dld.sl"
8844 shlibpath_var=SHLIB_PATH
8845 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 ;;
8849 esac
8850 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8851 postinstall_cmds='chmod 555 $lib'
8852 ;;
8853
8854 interix3*)
8855 version_type=linux
8856 need_lib_prefix=no
8857 need_version=no
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8861 shlibpath_var=LD_LIBRARY_PATH
8862 shlibpath_overrides_runpath=no
8863 hardcode_into_libs=yes
8864 ;;
8865
8866 irix5* | irix6* | nonstopux*)
8867 case $host_os in
8868 nonstopux*) version_type=nonstopux ;;
8869 *)
8870 if test "$lt_cv_prog_gnu_ld" = yes; then
8871 version_type=linux
8872 else
8873 version_type=irix
8874 fi ;;
8875 esac
8876 need_lib_prefix=no
8877 need_version=no
8878 soname_spec='${libname}${release}${shared_ext}$major'
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8880 case $host_os in
8881 irix5* | nonstopux*)
8882 libsuff= shlibsuff=
8883 ;;
8884 *)
8885 case $LD in # libtool.m4 will add one of these switches to LD
8886 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8887 libsuff= shlibsuff= libmagic=32-bit;;
8888 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8889 libsuff=32 shlibsuff=N32 libmagic=N32;;
8890 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8891 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8892 *) libsuff= shlibsuff= libmagic=never-match;;
8893 esac
8894 ;;
8895 esac
8896 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8897 shlibpath_overrides_runpath=no
8898 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8899 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8900 hardcode_into_libs=yes
8901 ;;
8902
8903 # No shared lib support for Linux oldld, aout, or coff.
8904 linux*oldld* | linux*aout* | linux*coff*)
8905 dynamic_linker=no
8906 ;;
8907
8908 # This must be Linux ELF.
8909 linux*)
8910 version_type=linux
8911 need_lib_prefix=no
8912 need_version=no
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 shlibpath_overrides_runpath=no
8918 # This implies no fast_install, which is unacceptable.
8919 # Some rework will be needed to allow for fast_install
8920 # before this can be enabled.
8921 hardcode_into_libs=yes
8922
8923 # Append ld.so.conf contents to the search path
8924 if test -f /etc/ld.so.conf; then
8925 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8926 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8927 fi
8928
8929 # We used to test for /lib/ld.so.1 and disable shared libraries on
8930 # powerpc, because MkLinux only supported shared libraries with the
8931 # GNU dynamic linker. Since this was broken with cross compilers,
8932 # most powerpc-linux boxes support dynamic linking these days and
8933 # people can always --disable-shared, the test was removed, and we
8934 # assume the GNU/Linux dynamic linker is in use.
8935 dynamic_linker='GNU/Linux ld.so'
8936 ;;
8937
8938 knetbsd*-gnu)
8939 version_type=linux
8940 need_lib_prefix=no
8941 need_version=no
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8943 soname_spec='${libname}${release}${shared_ext}$major'
8944 shlibpath_var=LD_LIBRARY_PATH
8945 shlibpath_overrides_runpath=no
8946 hardcode_into_libs=yes
8947 dynamic_linker='GNU ld.so'
8948 ;;
8949
8950 netbsd*)
8951 version_type=sunos
8952 need_lib_prefix=no
8953 need_version=no
8954 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8957 dynamic_linker='NetBSD (a.out) ld.so'
8958 else
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8960 soname_spec='${libname}${release}${shared_ext}$major'
8961 dynamic_linker='NetBSD ld.elf_so'
8962 fi
8963 shlibpath_var=LD_LIBRARY_PATH
8964 shlibpath_overrides_runpath=yes
8965 hardcode_into_libs=yes
8966 ;;
8967
8968 newsos6)
8969 version_type=linux
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 shlibpath_overrides_runpath=yes
8973 ;;
8974
8975 nto-qnx*)
8976 version_type=linux
8977 need_lib_prefix=no
8978 need_version=no
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 shlibpath_overrides_runpath=yes
8983 ;;
8984
8985 openbsd*)
8986 version_type=sunos
8987 sys_lib_dlsearch_path_spec="/usr/lib"
8988 need_lib_prefix=no
8989 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8990 case $host_os in
8991 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8992 *) need_version=no ;;
8993 esac
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8996 shlibpath_var=LD_LIBRARY_PATH
8997 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8998 case $host_os in
8999 openbsd2.[89] | openbsd2.[89].*)
9000 shlibpath_overrides_runpath=no
9001 ;;
9002 *)
9003 shlibpath_overrides_runpath=yes
9004 ;;
9005 esac
9006 else
9007 shlibpath_overrides_runpath=yes
9008 fi
9009 ;;
9010
9011 os2*)
9012 libname_spec='$name'
9013 shrext_cmds=".dll"
9014 need_lib_prefix=no
9015 library_names_spec='$libname${shared_ext} $libname.a'
9016 dynamic_linker='OS/2 ld.exe'
9017 shlibpath_var=LIBPATH
9018 ;;
9019
9020 osf3* | osf4* | osf5*)
9021 version_type=osf
9022 need_lib_prefix=no
9023 need_version=no
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9028 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9029 ;;
9030
9031 solaris*)
9032 version_type=linux
9033 need_lib_prefix=no
9034 need_version=no
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=yes
9039 hardcode_into_libs=yes
9040 # ldd complains unless libraries are executable
9041 postinstall_cmds='chmod +x $lib'
9042 ;;
9043
9044 sunos4*)
9045 version_type=sunos
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath=yes
9050 if test "$with_gnu_ld" = yes; then
9051 need_lib_prefix=no
9052 fi
9053 need_version=yes
9054 ;;
9055
9056 sysv4 | sysv4.3*)
9057 version_type=linux
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 case $host_vendor in
9062 sni)
9063 shlibpath_overrides_runpath=no
9064 need_lib_prefix=no
9065 export_dynamic_flag_spec='${wl}-Blargedynsym'
9066 runpath_var=LD_RUN_PATH
9067 ;;
9068 siemens)
9069 need_lib_prefix=no
9070 ;;
9071 motorola)
9072 need_lib_prefix=no
9073 need_version=no
9074 shlibpath_overrides_runpath=no
9075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9076 ;;
9077 esac
9078 ;;
9079
9080 sysv4*MP*)
9081 if test -d /usr/nec ;then
9082 version_type=linux
9083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9084 soname_spec='$libname${shared_ext}.$major'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 fi
9087 ;;
9088
9089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9090 version_type=freebsd-elf
9091 need_lib_prefix=no
9092 need_version=no
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 hardcode_into_libs=yes
9097 if test "$with_gnu_ld" = yes; then
9098 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9099 shlibpath_overrides_runpath=no
9100 else
9101 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9102 shlibpath_overrides_runpath=yes
9103 case $host_os in
9104 sco3.2v5*)
9105 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9106 ;;
9107 esac
9108 fi
9109 sys_lib_dlsearch_path_spec='/usr/lib'
9110 ;;
9111
9112 uts4*)
9113 version_type=linux
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 soname_spec='${libname}${release}${shared_ext}$major'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 ;;
9118
9119 *)
9120 dynamic_linker=no
9121 ;;
9122 esac
9123 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9124 echo "${ECHO_T}$dynamic_linker" >&6; }
9125 test "$dynamic_linker" = no && can_build_shared=no
9126
9127 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9128 if test "$GCC" = yes; then
9129 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9130 fi
9131
9132 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9133 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9134 hardcode_action=
9135 if test -n "$hardcode_libdir_flag_spec" || \
9136 test -n "$runpath_var" || \
9137 test "X$hardcode_automatic" = "Xyes" ; then
9138
9139 # We can hardcode non-existant directories.
9140 if test "$hardcode_direct" != no &&
9141 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9142 # have to relink, otherwise we might link with an installed library
9143 # when we should be linking with a yet-to-be-installed one
9144 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9145 test "$hardcode_minus_L" != no; then
9146 # Linking always hardcodes the temporary library directory.
9147 hardcode_action=relink
9148 else
9149 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9150 hardcode_action=immediate
9151 fi
9152 else
9153 # We cannot hardcode anything, or else we can only hardcode existing
9154 # directories.
9155 hardcode_action=unsupported
9156 fi
9157 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9158 echo "${ECHO_T}$hardcode_action" >&6; }
9159
9160 if test "$hardcode_action" = relink; then
9161 # Fast installation is not supported
9162 enable_fast_install=no
9163 elif test "$shlibpath_overrides_runpath" = yes ||
9164 test "$enable_shared" = no; then
9165 # Fast installation is not necessary
9166 enable_fast_install=needless
9167 fi
9168
9169 striplib=
9170 old_striplib=
9171 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9172 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9173 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9174 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9175 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9176 { echo "$as_me:$LINENO: result: yes" >&5
9177 echo "${ECHO_T}yes" >&6; }
9178 else
9179 # FIXME - insert some real tests, host_os isn't really good enough
9180 case $host_os in
9181 darwin*)
9182 if test -n "$STRIP" ; then
9183 striplib="$STRIP -x"
9184 { echo "$as_me:$LINENO: result: yes" >&5
9185 echo "${ECHO_T}yes" >&6; }
9186 else
9187 { echo "$as_me:$LINENO: result: no" >&5
9188 echo "${ECHO_T}no" >&6; }
9189 fi
9190 ;;
9191 *)
9192 { echo "$as_me:$LINENO: result: no" >&5
9193 echo "${ECHO_T}no" >&6; }
9194 ;;
9195 esac
9196 fi
9197
9198 if test "x$enable_dlopen" != xyes; then
9199 enable_dlopen=unknown
9200 enable_dlopen_self=unknown
9201 enable_dlopen_self_static=unknown
9202 else
9203 lt_cv_dlopen=no
9204 lt_cv_dlopen_libs=
9205
9206 case $host_os in
9207 beos*)
9208 lt_cv_dlopen="load_add_on"
9209 lt_cv_dlopen_libs=
9210 lt_cv_dlopen_self=yes
9211 ;;
9212
9213 mingw* | pw32*)
9214 lt_cv_dlopen="LoadLibrary"
9215 lt_cv_dlopen_libs=
9216 ;;
9217
9218 cygwin*)
9219 lt_cv_dlopen="dlopen"
9220 lt_cv_dlopen_libs=
9221 ;;
9222
9223 darwin*)
9224 # if libdl is installed we need to link against it
9225 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9226 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9227 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 else
9230 ac_check_lib_save_LIBS=$LIBS
9231 LIBS="-ldl $LIBS"
9232 cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h. */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9238
9239 /* Override any GCC internal prototype to avoid an error.
9240 Use char because int might match the return type of a GCC
9241 builtin and then its argument prototype would still apply. */
9242 #ifdef __cplusplus
9243 extern "C"
9244 #endif
9245 char dlopen ();
9246 int
9247 main ()
9248 {
9249 return dlopen ();
9250 ;
9251 return 0;
9252 }
9253 _ACEOF
9254 rm -f conftest.$ac_objext conftest$ac_exeext
9255 if { (ac_try="$ac_link"
9256 case "(($ac_try" in
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9259 esac
9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_link") 2>conftest.er1
9262 ac_status=$?
9263 grep -v '^ *+' conftest.er1 >conftest.err
9264 rm -f conftest.er1
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } && {
9268 test -z "$ac_c_werror_flag" ||
9269 test ! -s conftest.err
9270 } && test -s conftest$ac_exeext &&
9271 $as_test_x conftest$ac_exeext; then
9272 ac_cv_lib_dl_dlopen=yes
9273 else
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9276
9277 ac_cv_lib_dl_dlopen=no
9278 fi
9279
9280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9281 conftest$ac_exeext conftest.$ac_ext
9282 LIBS=$ac_check_lib_save_LIBS
9283 fi
9284 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9285 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9286 if test $ac_cv_lib_dl_dlopen = yes; then
9287 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9288 else
9289
9290 lt_cv_dlopen="dyld"
9291 lt_cv_dlopen_libs=
9292 lt_cv_dlopen_self=yes
9293
9294 fi
9295
9296 ;;
9297
9298 *)
9299 { echo "$as_me:$LINENO: checking for shl_load" >&5
9300 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9301 if test "${ac_cv_func_shl_load+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 else
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h. */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9312 #define shl_load innocuous_shl_load
9313
9314 /* System header to define __stub macros and hopefully few prototypes,
9315 which can conflict with char shl_load (); below.
9316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9317 <limits.h> exists even on freestanding compilers. */
9318
9319 #ifdef __STDC__
9320 # include <limits.h>
9321 #else
9322 # include <assert.h>
9323 #endif
9324
9325 #undef shl_load
9326
9327 /* Override any GCC internal prototype to avoid an error.
9328 Use char because int might match the return type of a GCC
9329 builtin and then its argument prototype would still apply. */
9330 #ifdef __cplusplus
9331 extern "C"
9332 #endif
9333 char shl_load ();
9334 /* The GNU C library defines this for functions which it implements
9335 to always fail with ENOSYS. Some functions are actually named
9336 something starting with __ and the normal name is an alias. */
9337 #if defined __stub_shl_load || defined __stub___shl_load
9338 choke me
9339 #endif
9340
9341 int
9342 main ()
9343 {
9344 return shl_load ();
9345 ;
9346 return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (ac_try="$ac_link"
9351 case "(($ac_try" in
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9354 esac
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_link") 2>conftest.er1
9357 ac_status=$?
9358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && {
9363 test -z "$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9365 } && test -s conftest$ac_exeext &&
9366 $as_test_x conftest$ac_exeext; then
9367 ac_cv_func_shl_load=yes
9368 else
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372 ac_cv_func_shl_load=no
9373 fi
9374
9375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9376 conftest$ac_exeext conftest.$ac_ext
9377 fi
9378 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9379 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9380 if test $ac_cv_func_shl_load = yes; then
9381 lt_cv_dlopen="shl_load"
9382 else
9383 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9384 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9385 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 else
9388 ac_check_lib_save_LIBS=$LIBS
9389 LIBS="-ldld $LIBS"
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396
9397 /* Override any GCC internal prototype to avoid an error.
9398 Use char because int might match the return type of a GCC
9399 builtin and then its argument prototype would still apply. */
9400 #ifdef __cplusplus
9401 extern "C"
9402 #endif
9403 char shl_load ();
9404 int
9405 main ()
9406 {
9407 return shl_load ();
9408 ;
9409 return 0;
9410 }
9411 _ACEOF
9412 rm -f conftest.$ac_objext conftest$ac_exeext
9413 if { (ac_try="$ac_link"
9414 case "(($ac_try" in
9415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416 *) ac_try_echo=$ac_try;;
9417 esac
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419 (eval "$ac_link") 2>conftest.er1
9420 ac_status=$?
9421 grep -v '^ *+' conftest.er1 >conftest.err
9422 rm -f conftest.er1
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } && {
9426 test -z "$ac_c_werror_flag" ||
9427 test ! -s conftest.err
9428 } && test -s conftest$ac_exeext &&
9429 $as_test_x conftest$ac_exeext; then
9430 ac_cv_lib_dld_shl_load=yes
9431 else
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9434
9435 ac_cv_lib_dld_shl_load=no
9436 fi
9437
9438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9439 conftest$ac_exeext conftest.$ac_ext
9440 LIBS=$ac_check_lib_save_LIBS
9441 fi
9442 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9443 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9444 if test $ac_cv_lib_dld_shl_load = yes; then
9445 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9446 else
9447 { echo "$as_me:$LINENO: checking for dlopen" >&5
9448 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9449 if test "${ac_cv_func_dlopen+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452 cat >conftest.$ac_ext <<_ACEOF
9453 /* confdefs.h. */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9460 #define dlopen innocuous_dlopen
9461
9462 /* System header to define __stub macros and hopefully few prototypes,
9463 which can conflict with char dlopen (); below.
9464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9465 <limits.h> exists even on freestanding compilers. */
9466
9467 #ifdef __STDC__
9468 # include <limits.h>
9469 #else
9470 # include <assert.h>
9471 #endif
9472
9473 #undef dlopen
9474
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9478 #ifdef __cplusplus
9479 extern "C"
9480 #endif
9481 char dlopen ();
9482 /* The GNU C library defines this for functions which it implements
9483 to always fail with ENOSYS. Some functions are actually named
9484 something starting with __ and the normal name is an alias. */
9485 #if defined __stub_dlopen || defined __stub___dlopen
9486 choke me
9487 #endif
9488
9489 int
9490 main ()
9491 {
9492 return dlopen ();
9493 ;
9494 return 0;
9495 }
9496 _ACEOF
9497 rm -f conftest.$ac_objext conftest$ac_exeext
9498 if { (ac_try="$ac_link"
9499 case "(($ac_try" in
9500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501 *) ac_try_echo=$ac_try;;
9502 esac
9503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504 (eval "$ac_link") 2>conftest.er1
9505 ac_status=$?
9506 grep -v '^ *+' conftest.er1 >conftest.err
9507 rm -f conftest.er1
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } && {
9511 test -z "$ac_c_werror_flag" ||
9512 test ! -s conftest.err
9513 } && test -s conftest$ac_exeext &&
9514 $as_test_x conftest$ac_exeext; then
9515 ac_cv_func_dlopen=yes
9516 else
9517 echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9519
9520 ac_cv_func_dlopen=no
9521 fi
9522
9523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9524 conftest$ac_exeext conftest.$ac_ext
9525 fi
9526 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9527 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9528 if test $ac_cv_func_dlopen = yes; then
9529 lt_cv_dlopen="dlopen"
9530 else
9531 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9532 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9533 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536 ac_check_lib_save_LIBS=$LIBS
9537 LIBS="-ldl $LIBS"
9538 cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h. */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544
9545 /* Override any GCC internal prototype to avoid an error.
9546 Use char because int might match the return type of a GCC
9547 builtin and then its argument prototype would still apply. */
9548 #ifdef __cplusplus
9549 extern "C"
9550 #endif
9551 char dlopen ();
9552 int
9553 main ()
9554 {
9555 return dlopen ();
9556 ;
9557 return 0;
9558 }
9559 _ACEOF
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (ac_try="$ac_link"
9562 case "(($ac_try" in
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9565 esac
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_link") 2>conftest.er1
9568 ac_status=$?
9569 grep -v '^ *+' conftest.er1 >conftest.err
9570 rm -f conftest.er1
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest$ac_exeext &&
9577 $as_test_x conftest$ac_exeext; then
9578 ac_cv_lib_dl_dlopen=yes
9579 else
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 ac_cv_lib_dl_dlopen=no
9584 fi
9585
9586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9587 conftest$ac_exeext conftest.$ac_ext
9588 LIBS=$ac_check_lib_save_LIBS
9589 fi
9590 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9591 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9592 if test $ac_cv_lib_dl_dlopen = yes; then
9593 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9594 else
9595 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9596 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9597 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600 ac_check_lib_save_LIBS=$LIBS
9601 LIBS="-lsvld $LIBS"
9602 cat >conftest.$ac_ext <<_ACEOF
9603 /* confdefs.h. */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608
9609 /* Override any GCC internal prototype to avoid an error.
9610 Use char because int might match the return type of a GCC
9611 builtin and then its argument prototype would still apply. */
9612 #ifdef __cplusplus
9613 extern "C"
9614 #endif
9615 char dlopen ();
9616 int
9617 main ()
9618 {
9619 return dlopen ();
9620 ;
9621 return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (ac_try="$ac_link"
9626 case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_link") 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest$ac_exeext &&
9641 $as_test_x conftest$ac_exeext; then
9642 ac_cv_lib_svld_dlopen=yes
9643 else
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9646
9647 ac_cv_lib_svld_dlopen=no
9648 fi
9649
9650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9651 conftest$ac_exeext conftest.$ac_ext
9652 LIBS=$ac_check_lib_save_LIBS
9653 fi
9654 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9655 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9656 if test $ac_cv_lib_svld_dlopen = yes; then
9657 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9658 else
9659 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9660 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9661 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 else
9664 ac_check_lib_save_LIBS=$LIBS
9665 LIBS="-ldld $LIBS"
9666 cat >conftest.$ac_ext <<_ACEOF
9667 /* confdefs.h. */
9668 _ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9672
9673 /* Override any GCC internal prototype to avoid an error.
9674 Use char because int might match the return type of a GCC
9675 builtin and then its argument prototype would still apply. */
9676 #ifdef __cplusplus
9677 extern "C"
9678 #endif
9679 char dld_link ();
9680 int
9681 main ()
9682 {
9683 return dld_link ();
9684 ;
9685 return 0;
9686 }
9687 _ACEOF
9688 rm -f conftest.$ac_objext conftest$ac_exeext
9689 if { (ac_try="$ac_link"
9690 case "(($ac_try" in
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9693 esac
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_link") 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } && {
9702 test -z "$ac_c_werror_flag" ||
9703 test ! -s conftest.err
9704 } && test -s conftest$ac_exeext &&
9705 $as_test_x conftest$ac_exeext; then
9706 ac_cv_lib_dld_dld_link=yes
9707 else
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9710
9711 ac_cv_lib_dld_dld_link=no
9712 fi
9713
9714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9715 conftest$ac_exeext conftest.$ac_ext
9716 LIBS=$ac_check_lib_save_LIBS
9717 fi
9718 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9719 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9720 if test $ac_cv_lib_dld_dld_link = yes; then
9721 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9722 fi
9723
9724
9725 fi
9726
9727
9728 fi
9729
9730
9731 fi
9732
9733
9734 fi
9735
9736
9737 fi
9738
9739 ;;
9740 esac
9741
9742 if test "x$lt_cv_dlopen" != xno; then
9743 enable_dlopen=yes
9744 else
9745 enable_dlopen=no
9746 fi
9747
9748 case $lt_cv_dlopen in
9749 dlopen)
9750 save_CPPFLAGS="$CPPFLAGS"
9751 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9752
9753 save_LDFLAGS="$LDFLAGS"
9754 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9755
9756 save_LIBS="$LIBS"
9757 LIBS="$lt_cv_dlopen_libs $LIBS"
9758
9759 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9760 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9761 if test "${lt_cv_dlopen_self+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
9764 if test "$cross_compiling" = yes; then :
9765 lt_cv_dlopen_self=cross
9766 else
9767 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9768 lt_status=$lt_dlunknown
9769 cat > conftest.$ac_ext <<EOF
9770 #line 9770 "configure"
9771 #include "confdefs.h"
9772
9773 #if HAVE_DLFCN_H
9774 #include <dlfcn.h>
9775 #endif
9776
9777 #include <stdio.h>
9778
9779 #ifdef RTLD_GLOBAL
9780 # define LT_DLGLOBAL RTLD_GLOBAL
9781 #else
9782 # ifdef DL_GLOBAL
9783 # define LT_DLGLOBAL DL_GLOBAL
9784 # else
9785 # define LT_DLGLOBAL 0
9786 # endif
9787 #endif
9788
9789 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9790 find out it does not work in some platform. */
9791 #ifndef LT_DLLAZY_OR_NOW
9792 # ifdef RTLD_LAZY
9793 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9794 # else
9795 # ifdef DL_LAZY
9796 # define LT_DLLAZY_OR_NOW DL_LAZY
9797 # else
9798 # ifdef RTLD_NOW
9799 # define LT_DLLAZY_OR_NOW RTLD_NOW
9800 # else
9801 # ifdef DL_NOW
9802 # define LT_DLLAZY_OR_NOW DL_NOW
9803 # else
9804 # define LT_DLLAZY_OR_NOW 0
9805 # endif
9806 # endif
9807 # endif
9808 # endif
9809 #endif
9810
9811 #ifdef __cplusplus
9812 extern "C" void exit (int);
9813 #endif
9814
9815 void fnord() { int i=42;}
9816 int main ()
9817 {
9818 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9819 int status = $lt_dlunknown;
9820
9821 if (self)
9822 {
9823 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9824 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9825 /* dlclose (self); */
9826 }
9827 else
9828 puts (dlerror ());
9829
9830 exit (status);
9831 }
9832 EOF
9833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9834 (eval $ac_link) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9838 (./conftest; exit; ) >&5 2>/dev/null
9839 lt_status=$?
9840 case x$lt_status in
9841 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9842 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9843 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9844 esac
9845 else :
9846 # compilation failed
9847 lt_cv_dlopen_self=no
9848 fi
9849 fi
9850 rm -fr conftest*
9851
9852
9853 fi
9854 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9855 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9856
9857 if test "x$lt_cv_dlopen_self" = xyes; then
9858 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9859 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9860 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9861 if test "${lt_cv_dlopen_self_static+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864 if test "$cross_compiling" = yes; then :
9865 lt_cv_dlopen_self_static=cross
9866 else
9867 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9868 lt_status=$lt_dlunknown
9869 cat > conftest.$ac_ext <<EOF
9870 #line 9870 "configure"
9871 #include "confdefs.h"
9872
9873 #if HAVE_DLFCN_H
9874 #include <dlfcn.h>
9875 #endif
9876
9877 #include <stdio.h>
9878
9879 #ifdef RTLD_GLOBAL
9880 # define LT_DLGLOBAL RTLD_GLOBAL
9881 #else
9882 # ifdef DL_GLOBAL
9883 # define LT_DLGLOBAL DL_GLOBAL
9884 # else
9885 # define LT_DLGLOBAL 0
9886 # endif
9887 #endif
9888
9889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9890 find out it does not work in some platform. */
9891 #ifndef LT_DLLAZY_OR_NOW
9892 # ifdef RTLD_LAZY
9893 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9894 # else
9895 # ifdef DL_LAZY
9896 # define LT_DLLAZY_OR_NOW DL_LAZY
9897 # else
9898 # ifdef RTLD_NOW
9899 # define LT_DLLAZY_OR_NOW RTLD_NOW
9900 # else
9901 # ifdef DL_NOW
9902 # define LT_DLLAZY_OR_NOW DL_NOW
9903 # else
9904 # define LT_DLLAZY_OR_NOW 0
9905 # endif
9906 # endif
9907 # endif
9908 # endif
9909 #endif
9910
9911 #ifdef __cplusplus
9912 extern "C" void exit (int);
9913 #endif
9914
9915 void fnord() { int i=42;}
9916 int main ()
9917 {
9918 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9919 int status = $lt_dlunknown;
9920
9921 if (self)
9922 {
9923 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9924 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9925 /* dlclose (self); */
9926 }
9927 else
9928 puts (dlerror ());
9929
9930 exit (status);
9931 }
9932 EOF
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9938 (./conftest; exit; ) >&5 2>/dev/null
9939 lt_status=$?
9940 case x$lt_status in
9941 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9942 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9943 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9944 esac
9945 else :
9946 # compilation failed
9947 lt_cv_dlopen_self_static=no
9948 fi
9949 fi
9950 rm -fr conftest*
9951
9952
9953 fi
9954 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9955 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9956 fi
9957
9958 CPPFLAGS="$save_CPPFLAGS"
9959 LDFLAGS="$save_LDFLAGS"
9960 LIBS="$save_LIBS"
9961 ;;
9962 esac
9963
9964 case $lt_cv_dlopen_self in
9965 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9966 *) enable_dlopen_self=unknown ;;
9967 esac
9968
9969 case $lt_cv_dlopen_self_static in
9970 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9971 *) enable_dlopen_self_static=unknown ;;
9972 esac
9973 fi
9974
9975
9976 # Report which library types will actually be built
9977 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9978 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9979 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9980 echo "${ECHO_T}$can_build_shared" >&6; }
9981
9982 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9983 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9984 test "$can_build_shared" = "no" && enable_shared=no
9985
9986 # On AIX, shared libraries and static libraries use the same namespace, and
9987 # are all built from PIC.
9988 case $host_os in
9989 aix3*)
9990 test "$enable_shared" = yes && enable_static=no
9991 if test -n "$RANLIB"; then
9992 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9993 postinstall_cmds='$RANLIB $lib'
9994 fi
9995 ;;
9996
9997 aix4* | aix5*)
9998 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9999 test "$enable_shared" = yes && enable_static=no
10000 fi
10001 ;;
10002 esac
10003 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10004 echo "${ECHO_T}$enable_shared" >&6; }
10005
10006 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10007 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10008 # Make sure either enable_shared or enable_static is yes.
10009 test "$enable_shared" = yes || enable_static=yes
10010 { echo "$as_me:$LINENO: result: $enable_static" >&5
10011 echo "${ECHO_T}$enable_static" >&6; }
10012
10013 # The else clause should only fire when bootstrapping the
10014 # libtool distribution, otherwise you forgot to ship ltmain.sh
10015 # with your package, and you will get complaints that there are
10016 # no rules to generate ltmain.sh.
10017 if test -f "$ltmain"; then
10018 # See if we are running on zsh, and set the options which allow our commands through
10019 # without removal of \ escapes.
10020 if test -n "${ZSH_VERSION+set}" ; then
10021 setopt NO_GLOB_SUBST
10022 fi
10023 # Now quote all the things that may contain metacharacters while being
10024 # careful not to overquote the AC_SUBSTed values. We take copies of the
10025 # variables and quote the copies for generation of the libtool script.
10026 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10027 SED SHELL STRIP \
10028 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10029 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10030 deplibs_check_method reload_flag reload_cmds need_locks \
10031 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10032 lt_cv_sys_global_symbol_to_c_name_address \
10033 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10034 old_postinstall_cmds old_postuninstall_cmds \
10035 compiler \
10036 CC \
10037 LD \
10038 lt_prog_compiler_wl \
10039 lt_prog_compiler_pic \
10040 lt_prog_compiler_static \
10041 lt_prog_compiler_no_builtin_flag \
10042 export_dynamic_flag_spec \
10043 thread_safe_flag_spec \
10044 whole_archive_flag_spec \
10045 enable_shared_with_static_runtimes \
10046 old_archive_cmds \
10047 old_archive_from_new_cmds \
10048 predep_objects \
10049 postdep_objects \
10050 predeps \
10051 postdeps \
10052 compiler_lib_search_path \
10053 archive_cmds \
10054 archive_expsym_cmds \
10055 postinstall_cmds \
10056 postuninstall_cmds \
10057 old_archive_from_expsyms_cmds \
10058 allow_undefined_flag \
10059 no_undefined_flag \
10060 export_symbols_cmds \
10061 hardcode_libdir_flag_spec \
10062 hardcode_libdir_flag_spec_ld \
10063 hardcode_libdir_separator \
10064 hardcode_automatic \
10065 module_cmds \
10066 module_expsym_cmds \
10067 lt_cv_prog_compiler_c_o \
10068 exclude_expsyms \
10069 include_expsyms; do
10070
10071 case $var in
10072 old_archive_cmds | \
10073 old_archive_from_new_cmds | \
10074 archive_cmds | \
10075 archive_expsym_cmds | \
10076 module_cmds | \
10077 module_expsym_cmds | \
10078 old_archive_from_expsyms_cmds | \
10079 export_symbols_cmds | \
10080 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10081 postinstall_cmds | postuninstall_cmds | \
10082 old_postinstall_cmds | old_postuninstall_cmds | \
10083 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10084 # Double-quote double-evaled strings.
10085 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10086 ;;
10087 *)
10088 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10089 ;;
10090 esac
10091 done
10092
10093 case $lt_echo in
10094 *'\$0 --fallback-echo"')
10095 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10096 ;;
10097 esac
10098
10099 cfgfile="${ofile}T"
10100 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10101 $rm -f "$cfgfile"
10102 { echo "$as_me:$LINENO: creating $ofile" >&5
10103 echo "$as_me: creating $ofile" >&6;}
10104
10105 cat <<__EOF__ >> "$cfgfile"
10106 #! $SHELL
10107
10108 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10109 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10110 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10111 #
10112 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10113 # Free Software Foundation, Inc.
10114 #
10115 # This file is part of GNU Libtool:
10116 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10117 #
10118 # This program is free software; you can redistribute it and/or modify
10119 # it under the terms of the GNU General Public License as published by
10120 # the Free Software Foundation; either version 2 of the License, or
10121 # (at your option) any later version.
10122 #
10123 # This program is distributed in the hope that it will be useful, but
10124 # WITHOUT ANY WARRANTY; without even the implied warranty of
10125 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10126 # General Public License for more details.
10127 #
10128 # You should have received a copy of the GNU General Public License
10129 # along with this program; if not, write to the Free Software
10130 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10131 #
10132 # As a special exception to the GNU General Public License, if you
10133 # distribute this file as part of a program that contains a
10134 # configuration script generated by Autoconf, you may include it under
10135 # the same distribution terms that you use for the rest of that program.
10136
10137 # A sed program that does not truncate output.
10138 SED=$lt_SED
10139
10140 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10141 Xsed="$SED -e 1s/^X//"
10142
10143 # The HP-UX ksh and POSIX shell print the target directory to stdout
10144 # if CDPATH is set.
10145 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10146
10147 # The names of the tagged configurations supported by this script.
10148 available_tags=
10149
10150 # ### BEGIN LIBTOOL CONFIG
10151
10152 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10153
10154 # Shell to use when invoking shell scripts.
10155 SHELL=$lt_SHELL
10156
10157 # Whether or not to build shared libraries.
10158 build_libtool_libs=$enable_shared
10159
10160 # Whether or not to build static libraries.
10161 build_old_libs=$enable_static
10162
10163 # Whether or not to add -lc for building shared libraries.
10164 build_libtool_need_lc=$archive_cmds_need_lc
10165
10166 # Whether or not to disallow shared libs when runtime libs are static
10167 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10168
10169 # Whether or not to optimize for fast installation.
10170 fast_install=$enable_fast_install
10171
10172 # The host system.
10173 host_alias=$host_alias
10174 host=$host
10175 host_os=$host_os
10176
10177 # The build system.
10178 build_alias=$build_alias
10179 build=$build
10180 build_os=$build_os
10181
10182 # An echo program that does not interpret backslashes.
10183 echo=$lt_echo
10184
10185 # The archiver.
10186 AR=$lt_AR
10187 AR_FLAGS=$lt_AR_FLAGS
10188
10189 # A C compiler.
10190 LTCC=$lt_LTCC
10191
10192 # LTCC compiler flags.
10193 LTCFLAGS=$lt_LTCFLAGS
10194
10195 # A language-specific compiler.
10196 CC=$lt_compiler
10197
10198 # Is the compiler the GNU C compiler?
10199 with_gcc=$GCC
10200
10201 # An ERE matcher.
10202 EGREP=$lt_EGREP
10203
10204 # The linker used to build libraries.
10205 LD=$lt_LD
10206
10207 # Whether we need hard or soft links.
10208 LN_S=$lt_LN_S
10209
10210 # A BSD-compatible nm program.
10211 NM=$lt_NM
10212
10213 # A symbol stripping program
10214 STRIP=$lt_STRIP
10215
10216 # Used to examine libraries when file_magic_cmd begins "file"
10217 MAGIC_CMD=$MAGIC_CMD
10218
10219 # Used on cygwin: DLL creation program.
10220 DLLTOOL="$DLLTOOL"
10221
10222 # Used on cygwin: object dumper.
10223 OBJDUMP="$OBJDUMP"
10224
10225 # Used on cygwin: assembler.
10226 AS="$AS"
10227
10228 # The name of the directory that contains temporary libtool files.
10229 objdir=$objdir
10230
10231 # How to create reloadable object files.
10232 reload_flag=$lt_reload_flag
10233 reload_cmds=$lt_reload_cmds
10234
10235 # How to pass a linker flag through the compiler.
10236 wl=$lt_lt_prog_compiler_wl
10237
10238 # Object file suffix (normally "o").
10239 objext="$ac_objext"
10240
10241 # Old archive suffix (normally "a").
10242 libext="$libext"
10243
10244 # Shared library suffix (normally ".so").
10245 shrext_cmds='$shrext_cmds'
10246
10247 # Executable file suffix (normally "").
10248 exeext="$exeext"
10249
10250 # Additional compiler flags for building library objects.
10251 pic_flag=$lt_lt_prog_compiler_pic
10252 pic_mode=$pic_mode
10253
10254 # What is the maximum length of a command?
10255 max_cmd_len=$lt_cv_sys_max_cmd_len
10256
10257 # Does compiler simultaneously support -c and -o options?
10258 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10259
10260 # Must we lock files when doing compilation?
10261 need_locks=$lt_need_locks
10262
10263 # Do we need the lib prefix for modules?
10264 need_lib_prefix=$need_lib_prefix
10265
10266 # Do we need a version for libraries?
10267 need_version=$need_version
10268
10269 # Whether dlopen is supported.
10270 dlopen_support=$enable_dlopen
10271
10272 # Whether dlopen of programs is supported.
10273 dlopen_self=$enable_dlopen_self
10274
10275 # Whether dlopen of statically linked programs is supported.
10276 dlopen_self_static=$enable_dlopen_self_static
10277
10278 # Compiler flag to prevent dynamic linking.
10279 link_static_flag=$lt_lt_prog_compiler_static
10280
10281 # Compiler flag to turn off builtin functions.
10282 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10283
10284 # Compiler flag to allow reflexive dlopens.
10285 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10286
10287 # Compiler flag to generate shared objects directly from archives.
10288 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10289
10290 # Compiler flag to generate thread-safe objects.
10291 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10292
10293 # Library versioning type.
10294 version_type=$version_type
10295
10296 # Format of library name prefix.
10297 libname_spec=$lt_libname_spec
10298
10299 # List of archive names. First name is the real one, the rest are links.
10300 # The last name is the one that the linker finds with -lNAME.
10301 library_names_spec=$lt_library_names_spec
10302
10303 # The coded name of the library, if different from the real name.
10304 soname_spec=$lt_soname_spec
10305
10306 # Commands used to build and install an old-style archive.
10307 RANLIB=$lt_RANLIB
10308 old_archive_cmds=$lt_old_archive_cmds
10309 old_postinstall_cmds=$lt_old_postinstall_cmds
10310 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10311
10312 # Create an old-style archive from a shared archive.
10313 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10314
10315 # Create a temporary old-style archive to link instead of a shared archive.
10316 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10317
10318 # Commands used to build and install a shared archive.
10319 archive_cmds=$lt_archive_cmds
10320 archive_expsym_cmds=$lt_archive_expsym_cmds
10321 postinstall_cmds=$lt_postinstall_cmds
10322 postuninstall_cmds=$lt_postuninstall_cmds
10323
10324 # Commands used to build a loadable module (assumed same as above if empty)
10325 module_cmds=$lt_module_cmds
10326 module_expsym_cmds=$lt_module_expsym_cmds
10327
10328 # Commands to strip libraries.
10329 old_striplib=$lt_old_striplib
10330 striplib=$lt_striplib
10331
10332 # Dependencies to place before the objects being linked to create a
10333 # shared library.
10334 predep_objects=$lt_predep_objects
10335
10336 # Dependencies to place after the objects being linked to create a
10337 # shared library.
10338 postdep_objects=$lt_postdep_objects
10339
10340 # Dependencies to place before the objects being linked to create a
10341 # shared library.
10342 predeps=$lt_predeps
10343
10344 # Dependencies to place after the objects being linked to create a
10345 # shared library.
10346 postdeps=$lt_postdeps
10347
10348 # The library search path used internally by the compiler when linking
10349 # a shared library.
10350 compiler_lib_search_path=$lt_compiler_lib_search_path
10351
10352 # Method to check whether dependent libraries are shared objects.
10353 deplibs_check_method=$lt_deplibs_check_method
10354
10355 # Command to use when deplibs_check_method == file_magic.
10356 file_magic_cmd=$lt_file_magic_cmd
10357
10358 # Flag that allows shared libraries with undefined symbols to be built.
10359 allow_undefined_flag=$lt_allow_undefined_flag
10360
10361 # Flag that forces no undefined symbols.
10362 no_undefined_flag=$lt_no_undefined_flag
10363
10364 # Commands used to finish a libtool library installation in a directory.
10365 finish_cmds=$lt_finish_cmds
10366
10367 # Same as above, but a single script fragment to be evaled but not shown.
10368 finish_eval=$lt_finish_eval
10369
10370 # Take the output of nm and produce a listing of raw symbols and C names.
10371 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10372
10373 # Transform the output of nm in a proper C declaration
10374 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10375
10376 # Transform the output of nm in a C name address pair
10377 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10378
10379 # This is the shared library runtime path variable.
10380 runpath_var=$runpath_var
10381
10382 # This is the shared library path variable.
10383 shlibpath_var=$shlibpath_var
10384
10385 # Is shlibpath searched before the hard-coded library search path?
10386 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10387
10388 # How to hardcode a shared library path into an executable.
10389 hardcode_action=$hardcode_action
10390
10391 # Whether we should hardcode library paths into libraries.
10392 hardcode_into_libs=$hardcode_into_libs
10393
10394 # Flag to hardcode \$libdir into a binary during linking.
10395 # This must work even if \$libdir does not exist.
10396 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10397
10398 # If ld is used when linking, flag to hardcode \$libdir into
10399 # a binary during linking. This must work even if \$libdir does
10400 # not exist.
10401 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10402
10403 # Whether we need a single -rpath flag with a separated argument.
10404 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10405
10406 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10407 # resulting binary.
10408 hardcode_direct=$hardcode_direct
10409
10410 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10411 # resulting binary.
10412 hardcode_minus_L=$hardcode_minus_L
10413
10414 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10415 # the resulting binary.
10416 hardcode_shlibpath_var=$hardcode_shlibpath_var
10417
10418 # Set to yes if building a shared library automatically hardcodes DIR into the library
10419 # and all subsequent libraries and executables linked against it.
10420 hardcode_automatic=$hardcode_automatic
10421
10422 # Variables whose values should be saved in libtool wrapper scripts and
10423 # restored at relink time.
10424 variables_saved_for_relink="$variables_saved_for_relink"
10425
10426 # Whether libtool must link a program against all its dependency libraries.
10427 link_all_deplibs=$link_all_deplibs
10428
10429 # Compile-time system search path for libraries
10430 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10431
10432 # Run-time system search path for libraries
10433 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10434
10435 # Fix the shell variable \$srcfile for the compiler.
10436 fix_srcfile_path="$fix_srcfile_path"
10437
10438 # Set to yes if exported symbols are required.
10439 always_export_symbols=$always_export_symbols
10440
10441 # The commands to list exported symbols.
10442 export_symbols_cmds=$lt_export_symbols_cmds
10443
10444 # The commands to extract the exported symbol list from a shared archive.
10445 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10446
10447 # Symbols that should not be listed in the preloaded symbols.
10448 exclude_expsyms=$lt_exclude_expsyms
10449
10450 # Symbols that must always be exported.
10451 include_expsyms=$lt_include_expsyms
10452
10453 # ### END LIBTOOL CONFIG
10454
10455 __EOF__
10456
10457
10458 case $host_os in
10459 aix3*)
10460 cat <<\EOF >> "$cfgfile"
10461
10462 # AIX sometimes has problems with the GCC collect2 program. For some
10463 # reason, if we set the COLLECT_NAMES environment variable, the problems
10464 # vanish in a puff of smoke.
10465 if test "X${COLLECT_NAMES+set}" != Xset; then
10466 COLLECT_NAMES=
10467 export COLLECT_NAMES
10468 fi
10469 EOF
10470 ;;
10471 esac
10472
10473 # We use sed instead of cat because bash on DJGPP gets confused if
10474 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10475 # text mode, it properly converts lines to CR/LF. This bash problem
10476 # is reportedly fixed, but why not run on old versions too?
10477 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10478
10479 mv -f "$cfgfile" "$ofile" || \
10480 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10481 chmod +x "$ofile"
10482
10483 else
10484 # If there is no Makefile yet, we rely on a make rule to execute
10485 # `config.status --recheck' to rerun these tests and create the
10486 # libtool script then.
10487 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10488 if test -f "$ltmain_in"; then
10489 test -f Makefile && make "$ltmain"
10490 fi
10491 fi
10492
10493
10494 ac_ext=c
10495 ac_cpp='$CPP $CPPFLAGS'
10496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10499
10500 CC="$lt_save_CC"
10501
10502
10503 # Check whether --with-tags was given.
10504 if test "${with_tags+set}" = set; then
10505 withval=$with_tags; tagnames="$withval"
10506 fi
10507
10508
10509 if test -f "$ltmain" && test -n "$tagnames"; then
10510 if test ! -f "${ofile}"; then
10511 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10512 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10513 fi
10514
10515 if test -z "$LTCC"; then
10516 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10517 if test -z "$LTCC"; then
10518 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10519 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10520 else
10521 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10522 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10523 fi
10524 fi
10525 if test -z "$LTCFLAGS"; then
10526 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10527 fi
10528
10529 # Extract list of available tagged configurations in $ofile.
10530 # Note that this assumes the entire list is on one line.
10531 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10532
10533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10534 for tagname in $tagnames; do
10535 IFS="$lt_save_ifs"
10536 # Check whether tagname contains only valid characters
10537 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10538 "") ;;
10539 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10540 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10541 { (exit 1); exit 1; }; }
10542 ;;
10543 esac
10544
10545 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10546 then
10547 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10548 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10549 { (exit 1); exit 1; }; }
10550 fi
10551
10552 # Update the list of available tags.
10553 if test -n "$tagname"; then
10554 echo appending configuration tag \"$tagname\" to $ofile
10555
10556 case $tagname in
10557 CXX)
10558 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10559 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10560 (test "X$CXX" != "Xg++"))) ; then
10561 ac_ext=cpp
10562 ac_cpp='$CXXCPP $CPPFLAGS'
10563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10566
10567
10568
10569
10570 archive_cmds_need_lc_CXX=no
10571 allow_undefined_flag_CXX=
10572 always_export_symbols_CXX=no
10573 archive_expsym_cmds_CXX=
10574 export_dynamic_flag_spec_CXX=
10575 hardcode_direct_CXX=no
10576 hardcode_libdir_flag_spec_CXX=
10577 hardcode_libdir_flag_spec_ld_CXX=
10578 hardcode_libdir_separator_CXX=
10579 hardcode_minus_L_CXX=no
10580 hardcode_shlibpath_var_CXX=unsupported
10581 hardcode_automatic_CXX=no
10582 module_cmds_CXX=
10583 module_expsym_cmds_CXX=
10584 link_all_deplibs_CXX=unknown
10585 old_archive_cmds_CXX=$old_archive_cmds
10586 no_undefined_flag_CXX=
10587 whole_archive_flag_spec_CXX=
10588 enable_shared_with_static_runtimes_CXX=no
10589
10590 # Dependencies to place before and after the object being linked:
10591 predep_objects_CXX=
10592 postdep_objects_CXX=
10593 predeps_CXX=
10594 postdeps_CXX=
10595 compiler_lib_search_path_CXX=
10596
10597 # Source file extension for C++ test sources.
10598 ac_ext=cpp
10599
10600 # Object file extension for compiled C++ test sources.
10601 objext=o
10602 objext_CXX=$objext
10603
10604 # Code to be used in simple compile tests
10605 lt_simple_compile_test_code="int some_variable = 0;\n"
10606
10607 # Code to be used in simple link tests
10608 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10609
10610 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10611
10612 # If no C compiler was specified, use CC.
10613 LTCC=${LTCC-"$CC"}
10614
10615 # If no C compiler flags were specified, use CFLAGS.
10616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10617
10618 # Allow CC to be a program name with arguments.
10619 compiler=$CC
10620
10621
10622 # save warnings/boilerplate of simple test code
10623 ac_outfile=conftest.$ac_objext
10624 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10626 _lt_compiler_boilerplate=`cat conftest.err`
10627 $rm conftest*
10628
10629 ac_outfile=conftest.$ac_objext
10630 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10632 _lt_linker_boilerplate=`cat conftest.err`
10633 $rm conftest*
10634
10635
10636 # Allow CC to be a program name with arguments.
10637 lt_save_CC=$CC
10638 lt_save_LD=$LD
10639 lt_save_GCC=$GCC
10640 GCC=$GXX
10641 lt_save_with_gnu_ld=$with_gnu_ld
10642 lt_save_path_LD=$lt_cv_path_LD
10643 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10644 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10645 else
10646 $as_unset lt_cv_prog_gnu_ld
10647 fi
10648 if test -n "${lt_cv_path_LDCXX+set}"; then
10649 lt_cv_path_LD=$lt_cv_path_LDCXX
10650 else
10651 $as_unset lt_cv_path_LD
10652 fi
10653 test -z "${LDCXX+set}" || LD=$LDCXX
10654 CC=${CXX-"c++"}
10655 compiler=$CC
10656 compiler_CXX=$CC
10657 for cc_temp in $compiler""; do
10658 case $cc_temp in
10659 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10660 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10661 \-*) ;;
10662 *) break;;
10663 esac
10664 done
10665 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10666
10667
10668 # We don't want -fno-exception wen compiling C++ code, so set the
10669 # no_builtin_flag separately
10670 if test "$GXX" = yes; then
10671 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10672 else
10673 lt_prog_compiler_no_builtin_flag_CXX=
10674 fi
10675
10676 if test "$GXX" = yes; then
10677 # Set up default GNU C++ configuration
10678
10679
10680 # Check whether --with-gnu-ld was given.
10681 if test "${with_gnu_ld+set}" = set; then
10682 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10683 else
10684 with_gnu_ld=no
10685 fi
10686
10687 ac_prog=ld
10688 if test "$GCC" = yes; then
10689 # Check if gcc -print-prog-name=ld gives a path.
10690 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10691 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10692 case $host in
10693 *-*-mingw*)
10694 # gcc leaves a trailing carriage return which upsets mingw
10695 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10696 *)
10697 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10698 esac
10699 case $ac_prog in
10700 # Accept absolute paths.
10701 [\\/]* | ?:[\\/]*)
10702 re_direlt='/[^/][^/]*/\.\./'
10703 # Canonicalize the pathname of ld
10704 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10705 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10706 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10707 done
10708 test -z "$LD" && LD="$ac_prog"
10709 ;;
10710 "")
10711 # If it fails, then pretend we aren't using GCC.
10712 ac_prog=ld
10713 ;;
10714 *)
10715 # If it is relative, then search for the first ld in PATH.
10716 with_gnu_ld=unknown
10717 ;;
10718 esac
10719 elif test "$with_gnu_ld" = yes; then
10720 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10721 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10722 else
10723 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10724 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10725 fi
10726 if test "${lt_cv_path_LD+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729 if test -z "$LD"; then
10730 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10731 for ac_dir in $PATH; do
10732 IFS="$lt_save_ifs"
10733 test -z "$ac_dir" && ac_dir=.
10734 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10735 lt_cv_path_LD="$ac_dir/$ac_prog"
10736 # Check to see if the program is GNU ld. I'd rather use --version,
10737 # but apparently some variants of GNU ld only accept -v.
10738 # Break only if it was the GNU/non-GNU ld that we prefer.
10739 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10740 *GNU* | *'with BFD'*)
10741 test "$with_gnu_ld" != no && break
10742 ;;
10743 *)
10744 test "$with_gnu_ld" != yes && break
10745 ;;
10746 esac
10747 fi
10748 done
10749 IFS="$lt_save_ifs"
10750 else
10751 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10752 fi
10753 fi
10754
10755 LD="$lt_cv_path_LD"
10756 if test -n "$LD"; then
10757 { echo "$as_me:$LINENO: result: $LD" >&5
10758 echo "${ECHO_T}$LD" >&6; }
10759 else
10760 { echo "$as_me:$LINENO: result: no" >&5
10761 echo "${ECHO_T}no" >&6; }
10762 fi
10763 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10764 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10765 { (exit 1); exit 1; }; }
10766 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10767 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10768 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 else
10771 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10772 case `$LD -v 2>&1 </dev/null` in
10773 *GNU* | *'with BFD'*)
10774 lt_cv_prog_gnu_ld=yes
10775 ;;
10776 *)
10777 lt_cv_prog_gnu_ld=no
10778 ;;
10779 esac
10780 fi
10781 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10782 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10783 with_gnu_ld=$lt_cv_prog_gnu_ld
10784
10785
10786
10787 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10788 # archiving commands below assume that GNU ld is being used.
10789 if test "$with_gnu_ld" = yes; then
10790 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10791 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'
10792
10793 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10794 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10795
10796 # If archive_cmds runs LD, not CC, wlarc should be empty
10797 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10798 # investigate it a little bit more. (MM)
10799 wlarc='${wl}'
10800
10801 # ancient GNU ld didn't support --whole-archive et. al.
10802 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10803 grep 'no-whole-archive' > /dev/null; then
10804 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10805 else
10806 whole_archive_flag_spec_CXX=
10807 fi
10808 else
10809 with_gnu_ld=no
10810 wlarc=
10811
10812 # A generic and very simple default shared library creation
10813 # command for GNU C++ for the case where it uses the native
10814 # linker, instead of GNU ld. If possible, this setting should
10815 # overridden to take advantage of the native linker features on
10816 # the platform it is being used on.
10817 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10818 fi
10819
10820 # Commands to make compiler produce verbose output that lists
10821 # what "hidden" libraries, object files and flags are used when
10822 # linking a shared library.
10823 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10824
10825 else
10826 GXX=no
10827 with_gnu_ld=no
10828 wlarc=
10829 fi
10830
10831 # PORTME: fill in a description of your system's C++ link characteristics
10832 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10833 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10834 ld_shlibs_CXX=yes
10835 case $host_os in
10836 aix3*)
10837 # FIXME: insert proper C++ library support
10838 ld_shlibs_CXX=no
10839 ;;
10840 aix4* | aix5*)
10841 if test "$host_cpu" = ia64; then
10842 # On IA64, the linker does run time linking by default, so we don't
10843 # have to do anything special.
10844 aix_use_runtimelinking=no
10845 exp_sym_flag='-Bexport'
10846 no_entry_flag=""
10847 else
10848 aix_use_runtimelinking=no
10849
10850 # Test if we are trying to use run time linking or normal
10851 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10852 # need to do runtime linking.
10853 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10854 for ld_flag in $LDFLAGS; do
10855 case $ld_flag in
10856 *-brtl*)
10857 aix_use_runtimelinking=yes
10858 break
10859 ;;
10860 esac
10861 done
10862 ;;
10863 esac
10864
10865 exp_sym_flag='-bexport'
10866 no_entry_flag='-bnoentry'
10867 fi
10868
10869 # When large executables or shared objects are built, AIX ld can
10870 # have problems creating the table of contents. If linking a library
10871 # or program results in "error TOC overflow" add -mminimal-toc to
10872 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10873 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10874
10875 archive_cmds_CXX=''
10876 hardcode_direct_CXX=yes
10877 hardcode_libdir_separator_CXX=':'
10878 link_all_deplibs_CXX=yes
10879
10880 if test "$GXX" = yes; then
10881 case $host_os in aix4.[012]|aix4.[012].*)
10882 # We only want to do this on AIX 4.2 and lower, the check
10883 # below for broken collect2 doesn't work under 4.3+
10884 collect2name=`${CC} -print-prog-name=collect2`
10885 if test -f "$collect2name" && \
10886 strings "$collect2name" | grep resolve_lib_name >/dev/null
10887 then
10888 # We have reworked collect2
10889 hardcode_direct_CXX=yes
10890 else
10891 # We have old collect2
10892 hardcode_direct_CXX=unsupported
10893 # It fails to find uninstalled libraries when the uninstalled
10894 # path is not listed in the libpath. Setting hardcode_minus_L
10895 # to unsupported forces relinking
10896 hardcode_minus_L_CXX=yes
10897 hardcode_libdir_flag_spec_CXX='-L$libdir'
10898 hardcode_libdir_separator_CXX=
10899 fi
10900 ;;
10901 esac
10902 shared_flag='-shared'
10903 if test "$aix_use_runtimelinking" = yes; then
10904 shared_flag="$shared_flag "'${wl}-G'
10905 fi
10906 else
10907 # not using gcc
10908 if test "$host_cpu" = ia64; then
10909 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10910 # chokes on -Wl,-G. The following line is correct:
10911 shared_flag='-G'
10912 else
10913 if test "$aix_use_runtimelinking" = yes; then
10914 shared_flag='${wl}-G'
10915 else
10916 shared_flag='${wl}-bM:SRE'
10917 fi
10918 fi
10919 fi
10920
10921 # It seems that -bexpall does not export symbols beginning with
10922 # underscore (_), so it is better to generate a list of symbols to export.
10923 always_export_symbols_CXX=yes
10924 if test "$aix_use_runtimelinking" = yes; then
10925 # Warning - without using the other runtime loading flags (-brtl),
10926 # -berok will link without error, but may produce a broken library.
10927 allow_undefined_flag_CXX='-berok'
10928 # Determine the default libpath from the value encoded in an empty executable.
10929 cat >conftest.$ac_ext <<_ACEOF
10930 /* confdefs.h. */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935
10936 int
10937 main ()
10938 {
10939
10940 ;
10941 return 0;
10942 }
10943 _ACEOF
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (ac_try="$ac_link"
10946 case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949 esac
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_link") 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } && {
10958 test -z "$ac_cxx_werror_flag" ||
10959 test ! -s conftest.err
10960 } && test -s conftest$ac_exeext &&
10961 $as_test_x conftest$ac_exeext; then
10962
10963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10964 }'`
10965 # Check for a 64-bit object if we didn't find anything.
10966 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10967 }'`; fi
10968 else
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10971
10972
10973 fi
10974
10975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10976 conftest$ac_exeext conftest.$ac_ext
10977 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10978
10979 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10980
10981 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"
10982 else
10983 if test "$host_cpu" = ia64; then
10984 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10985 allow_undefined_flag_CXX="-z nodefs"
10986 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"
10987 else
10988 # Determine the default libpath from the value encoded in an empty executable.
10989 cat >conftest.$ac_ext <<_ACEOF
10990 /* confdefs.h. */
10991 _ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995
10996 int
10997 main ()
10998 {
10999
11000 ;
11001 return 0;
11002 }
11003 _ACEOF
11004 rm -f conftest.$ac_objext conftest$ac_exeext
11005 if { (ac_try="$ac_link"
11006 case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11009 esac
11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_link") 2>conftest.er1
11012 ac_status=$?
11013 grep -v '^ *+' conftest.er1 >conftest.err
11014 rm -f conftest.er1
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } && {
11018 test -z "$ac_cxx_werror_flag" ||
11019 test ! -s conftest.err
11020 } && test -s conftest$ac_exeext &&
11021 $as_test_x conftest$ac_exeext; then
11022
11023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11024 }'`
11025 # Check for a 64-bit object if we didn't find anything.
11026 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11027 }'`; fi
11028 else
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11031
11032
11033 fi
11034
11035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11036 conftest$ac_exeext conftest.$ac_ext
11037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11038
11039 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11040 # Warning - without using the other run time loading flags,
11041 # -berok will link without error, but may produce a broken library.
11042 no_undefined_flag_CXX=' ${wl}-bernotok'
11043 allow_undefined_flag_CXX=' ${wl}-berok'
11044 # Exported symbols can be pulled into shared objects from archives
11045 whole_archive_flag_spec_CXX='$convenience'
11046 archive_cmds_need_lc_CXX=yes
11047 # This is similar to how AIX traditionally builds its shared libraries.
11048 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'
11049 fi
11050 fi
11051 ;;
11052
11053 beos*)
11054 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11055 allow_undefined_flag_CXX=unsupported
11056 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11057 # support --undefined. This deserves some investigation. FIXME
11058 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11059 else
11060 ld_shlibs_CXX=no
11061 fi
11062 ;;
11063
11064 chorus*)
11065 case $cc_basename in
11066 *)
11067 # FIXME: insert proper C++ library support
11068 ld_shlibs_CXX=no
11069 ;;
11070 esac
11071 ;;
11072
11073 cygwin* | mingw* | pw32*)
11074 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11075 # as there is no search path for DLLs.
11076 hardcode_libdir_flag_spec_CXX='-L$libdir'
11077 allow_undefined_flag_CXX=unsupported
11078 always_export_symbols_CXX=no
11079 enable_shared_with_static_runtimes_CXX=yes
11080
11081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11082 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'
11083 # If the export-symbols file already is a .def file (1st line
11084 # is EXPORTS), use it as is; otherwise, prepend...
11085 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11086 cp $export_symbols $output_objdir/$soname.def;
11087 else
11088 echo EXPORTS > $output_objdir/$soname.def;
11089 cat $export_symbols >> $output_objdir/$soname.def;
11090 fi~
11091 $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'
11092 else
11093 ld_shlibs_CXX=no
11094 fi
11095 ;;
11096 darwin* | rhapsody*)
11097 case $host_os in
11098 rhapsody* | darwin1.[012])
11099 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11100 ;;
11101 *) # Darwin 1.3 on
11102 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11103 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11104 else
11105 case ${MACOSX_DEPLOYMENT_TARGET} in
11106 10.[012])
11107 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11108 ;;
11109 10.*)
11110 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11111 ;;
11112 esac
11113 fi
11114 ;;
11115 esac
11116 archive_cmds_need_lc_CXX=no
11117 hardcode_direct_CXX=no
11118 hardcode_automatic_CXX=yes
11119 hardcode_shlibpath_var_CXX=unsupported
11120 whole_archive_flag_spec_CXX=''
11121 link_all_deplibs_CXX=yes
11122
11123 if test "$GXX" = yes ; then
11124 lt_int_apple_cc_single_mod=no
11125 output_verbose_link_cmd='echo'
11126 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11127 lt_int_apple_cc_single_mod=yes
11128 fi
11129 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11130 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11131 else
11132 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'
11133 fi
11134 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11135 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11136 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11137 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11138 else
11139 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11140 fi
11141 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}'
11142 else
11143 case $cc_basename in
11144 xlc*)
11145 output_verbose_link_cmd='echo'
11146 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11147 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11148 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11149 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11150 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}'
11151 ;;
11152 *)
11153 ld_shlibs_CXX=no
11154 ;;
11155 esac
11156 fi
11157 ;;
11158
11159 dgux*)
11160 case $cc_basename in
11161 ec++*)
11162 # FIXME: insert proper C++ library support
11163 ld_shlibs_CXX=no
11164 ;;
11165 ghcx*)
11166 # Green Hills C++ Compiler
11167 # FIXME: insert proper C++ library support
11168 ld_shlibs_CXX=no
11169 ;;
11170 *)
11171 # FIXME: insert proper C++ library support
11172 ld_shlibs_CXX=no
11173 ;;
11174 esac
11175 ;;
11176 freebsd[12]*)
11177 # C++ shared libraries reported to be fairly broken before switch to ELF
11178 ld_shlibs_CXX=no
11179 ;;
11180 freebsd-elf*)
11181 archive_cmds_need_lc_CXX=no
11182 ;;
11183 freebsd* | kfreebsd*-gnu | dragonfly*)
11184 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11185 # conventions
11186 ld_shlibs_CXX=yes
11187 ;;
11188 gnu*)
11189 ;;
11190 hpux9*)
11191 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11192 hardcode_libdir_separator_CXX=:
11193 export_dynamic_flag_spec_CXX='${wl}-E'
11194 hardcode_direct_CXX=yes
11195 hardcode_minus_L_CXX=yes # Not in the search PATH,
11196 # but as the default
11197 # location of the library.
11198
11199 case $cc_basename in
11200 CC*)
11201 # FIXME: insert proper C++ library support
11202 ld_shlibs_CXX=no
11203 ;;
11204 aCC*)
11205 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'
11206 # Commands to make compiler produce verbose output that lists
11207 # what "hidden" libraries, object files and flags are used when
11208 # linking a shared library.
11209 #
11210 # There doesn't appear to be a way to prevent this compiler from
11211 # explicitly linking system object files so we need to strip them
11212 # from the output so that they don't get included in the library
11213 # dependencies.
11214 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'
11215 ;;
11216 *)
11217 if test "$GXX" = yes; then
11218 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'
11219 else
11220 # FIXME: insert proper C++ library support
11221 ld_shlibs_CXX=no
11222 fi
11223 ;;
11224 esac
11225 ;;
11226 hpux10*|hpux11*)
11227 if test $with_gnu_ld = no; then
11228 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11229 hardcode_libdir_separator_CXX=:
11230
11231 case $host_cpu in
11232 hppa*64*|ia64*)
11233 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11234 ;;
11235 *)
11236 export_dynamic_flag_spec_CXX='${wl}-E'
11237 ;;
11238 esac
11239 fi
11240 case $host_cpu in
11241 hppa*64*|ia64*)
11242 hardcode_direct_CXX=no
11243 hardcode_shlibpath_var_CXX=no
11244 ;;
11245 *)
11246 hardcode_direct_CXX=yes
11247 hardcode_minus_L_CXX=yes # Not in the search PATH,
11248 # but as the default
11249 # location of the library.
11250 ;;
11251 esac
11252
11253 case $cc_basename in
11254 CC*)
11255 # FIXME: insert proper C++ library support
11256 ld_shlibs_CXX=no
11257 ;;
11258 aCC*)
11259 case $host_cpu in
11260 hppa*64*)
11261 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11262 ;;
11263 ia64*)
11264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11265 ;;
11266 *)
11267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11268 ;;
11269 esac
11270 # Commands to make compiler produce verbose output that lists
11271 # what "hidden" libraries, object files and flags are used when
11272 # linking a shared library.
11273 #
11274 # There doesn't appear to be a way to prevent this compiler from
11275 # explicitly linking system object files so we need to strip them
11276 # from the output so that they don't get included in the library
11277 # dependencies.
11278 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'
11279 ;;
11280 *)
11281 if test "$GXX" = yes; then
11282 if test $with_gnu_ld = no; then
11283 case $host_cpu in
11284 hppa*64*)
11285 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11286 ;;
11287 ia64*)
11288 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11289 ;;
11290 *)
11291 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'
11292 ;;
11293 esac
11294 fi
11295 else
11296 # FIXME: insert proper C++ library support
11297 ld_shlibs_CXX=no
11298 fi
11299 ;;
11300 esac
11301 ;;
11302 interix3*)
11303 hardcode_direct_CXX=no
11304 hardcode_shlibpath_var_CXX=no
11305 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11306 export_dynamic_flag_spec_CXX='${wl}-E'
11307 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11308 # Instead, shared libraries are loaded at an image base (0x10000000 by
11309 # default) and relocated if they conflict, which is a slow very memory
11310 # consuming and fragmenting process. To avoid this, we pick a random,
11311 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11312 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11313 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'
11314 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'
11315 ;;
11316 irix5* | irix6*)
11317 case $cc_basename in
11318 CC*)
11319 # SGI C++
11320 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'
11321
11322 # Archives containing C++ object files must be created using
11323 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11324 # necessary to make sure instantiated templates are included
11325 # in the archive.
11326 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11327 ;;
11328 *)
11329 if test "$GXX" = yes; then
11330 if test "$with_gnu_ld" = no; then
11331 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'
11332 else
11333 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'
11334 fi
11335 fi
11336 link_all_deplibs_CXX=yes
11337 ;;
11338 esac
11339 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11340 hardcode_libdir_separator_CXX=:
11341 ;;
11342 linux*)
11343 case $cc_basename in
11344 KCC*)
11345 # Kuck and Associates, Inc. (KAI) C++ Compiler
11346
11347 # KCC will only create a shared library if the output file
11348 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11349 # to its proper name (with version) after linking.
11350 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'
11351 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'
11352 # Commands to make compiler produce verbose output that lists
11353 # what "hidden" libraries, object files and flags are used when
11354 # linking a shared library.
11355 #
11356 # There doesn't appear to be a way to prevent this compiler from
11357 # explicitly linking system object files so we need to strip them
11358 # from the output so that they don't get included in the library
11359 # dependencies.
11360 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'
11361
11362 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11363 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11364
11365 # Archives containing C++ object files must be created using
11366 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11367 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11368 ;;
11369 icpc*)
11370 # Intel C++
11371 with_gnu_ld=yes
11372 # version 8.0 and above of icpc choke on multiply defined symbols
11373 # if we add $predep_objects and $postdep_objects, however 7.1 and
11374 # earlier do not add the objects themselves.
11375 case `$CC -V 2>&1` in
11376 *"Version 7."*)
11377 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11378 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'
11379 ;;
11380 *) # Version 8.0 or newer
11381 tmp_idyn=
11382 case $host_cpu in
11383 ia64*) tmp_idyn=' -i_dynamic';;
11384 esac
11385 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11386 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'
11387 ;;
11388 esac
11389 archive_cmds_need_lc_CXX=no
11390 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11391 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11392 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11393 ;;
11394 pgCC*)
11395 # Portland Group C++ compiler
11396 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11397 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'
11398
11399 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11400 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11401 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'
11402 ;;
11403 cxx*)
11404 # Compaq C++
11405 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11406 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'
11407
11408 runpath_var=LD_RUN_PATH
11409 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11410 hardcode_libdir_separator_CXX=:
11411
11412 # Commands to make compiler produce verbose output that lists
11413 # what "hidden" libraries, object files and flags are used when
11414 # linking a shared library.
11415 #
11416 # There doesn't appear to be a way to prevent this compiler from
11417 # explicitly linking system object files so we need to strip them
11418 # from the output so that they don't get included in the library
11419 # dependencies.
11420 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'
11421 ;;
11422 esac
11423 ;;
11424 lynxos*)
11425 # FIXME: insert proper C++ library support
11426 ld_shlibs_CXX=no
11427 ;;
11428 m88k*)
11429 # FIXME: insert proper C++ library support
11430 ld_shlibs_CXX=no
11431 ;;
11432 mvs*)
11433 case $cc_basename in
11434 cxx*)
11435 # FIXME: insert proper C++ library support
11436 ld_shlibs_CXX=no
11437 ;;
11438 *)
11439 # FIXME: insert proper C++ library support
11440 ld_shlibs_CXX=no
11441 ;;
11442 esac
11443 ;;
11444 netbsd*)
11445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11446 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11447 wlarc=
11448 hardcode_libdir_flag_spec_CXX='-R$libdir'
11449 hardcode_direct_CXX=yes
11450 hardcode_shlibpath_var_CXX=no
11451 fi
11452 # Workaround some broken pre-1.5 toolchains
11453 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11454 ;;
11455 openbsd2*)
11456 # C++ shared libraries are fairly broken
11457 ld_shlibs_CXX=no
11458 ;;
11459 openbsd*)
11460 hardcode_direct_CXX=yes
11461 hardcode_shlibpath_var_CXX=no
11462 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11463 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11465 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11466 export_dynamic_flag_spec_CXX='${wl}-E'
11467 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11468 fi
11469 output_verbose_link_cmd='echo'
11470 ;;
11471 osf3*)
11472 case $cc_basename in
11473 KCC*)
11474 # Kuck and Associates, Inc. (KAI) C++ Compiler
11475
11476 # KCC will only create a shared library if the output file
11477 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11478 # to its proper name (with version) after linking.
11479 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'
11480
11481 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11482 hardcode_libdir_separator_CXX=:
11483
11484 # Archives containing C++ object files must be created using
11485 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11486 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11487
11488 ;;
11489 RCC*)
11490 # Rational C++ 2.4.1
11491 # FIXME: insert proper C++ library support
11492 ld_shlibs_CXX=no
11493 ;;
11494 cxx*)
11495 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11496 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'
11497
11498 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11499 hardcode_libdir_separator_CXX=:
11500
11501 # Commands to make compiler produce verbose output that lists
11502 # what "hidden" libraries, object files and flags are used when
11503 # linking a shared library.
11504 #
11505 # There doesn't appear to be a way to prevent this compiler from
11506 # explicitly linking system object files so we need to strip them
11507 # from the output so that they don't get included in the library
11508 # dependencies.
11509 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'
11510 ;;
11511 *)
11512 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11513 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11514 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'
11515
11516 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11517 hardcode_libdir_separator_CXX=:
11518
11519 # Commands to make compiler produce verbose output that lists
11520 # what "hidden" libraries, object files and flags are used when
11521 # linking a shared library.
11522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11523
11524 else
11525 # FIXME: insert proper C++ library support
11526 ld_shlibs_CXX=no
11527 fi
11528 ;;
11529 esac
11530 ;;
11531 osf4* | osf5*)
11532 case $cc_basename in
11533 KCC*)
11534 # Kuck and Associates, Inc. (KAI) C++ Compiler
11535
11536 # KCC will only create a shared library if the output file
11537 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11538 # to its proper name (with version) after linking.
11539 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'
11540
11541 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11542 hardcode_libdir_separator_CXX=:
11543
11544 # Archives containing C++ object files must be created using
11545 # the KAI C++ compiler.
11546 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11547 ;;
11548 RCC*)
11549 # Rational C++ 2.4.1
11550 # FIXME: insert proper C++ library support
11551 ld_shlibs_CXX=no
11552 ;;
11553 cxx*)
11554 allow_undefined_flag_CXX=' -expect_unresolved \*'
11555 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'
11556 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11557 echo "-hidden">> $lib.exp~
11558 $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~
11559 $rm $lib.exp'
11560
11561 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11562 hardcode_libdir_separator_CXX=:
11563
11564 # Commands to make compiler produce verbose output that lists
11565 # what "hidden" libraries, object files and flags are used when
11566 # linking a shared library.
11567 #
11568 # There doesn't appear to be a way to prevent this compiler from
11569 # explicitly linking system object files so we need to strip them
11570 # from the output so that they don't get included in the library
11571 # dependencies.
11572 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'
11573 ;;
11574 *)
11575 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11576 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11577 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'
11578
11579 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11580 hardcode_libdir_separator_CXX=:
11581
11582 # Commands to make compiler produce verbose output that lists
11583 # what "hidden" libraries, object files and flags are used when
11584 # linking a shared library.
11585 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11586
11587 else
11588 # FIXME: insert proper C++ library support
11589 ld_shlibs_CXX=no
11590 fi
11591 ;;
11592 esac
11593 ;;
11594 psos*)
11595 # FIXME: insert proper C++ library support
11596 ld_shlibs_CXX=no
11597 ;;
11598 sunos4*)
11599 case $cc_basename in
11600 CC*)
11601 # Sun C++ 4.x
11602 # FIXME: insert proper C++ library support
11603 ld_shlibs_CXX=no
11604 ;;
11605 lcc*)
11606 # Lucid
11607 # FIXME: insert proper C++ library support
11608 ld_shlibs_CXX=no
11609 ;;
11610 *)
11611 # FIXME: insert proper C++ library support
11612 ld_shlibs_CXX=no
11613 ;;
11614 esac
11615 ;;
11616 solaris*)
11617 case $cc_basename in
11618 CC*)
11619 # Sun C++ 4.2, 5.x and Centerline C++
11620 archive_cmds_need_lc_CXX=yes
11621 no_undefined_flag_CXX=' -zdefs'
11622 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11623 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11624 $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'
11625
11626 hardcode_libdir_flag_spec_CXX='-R$libdir'
11627 hardcode_shlibpath_var_CXX=no
11628 case $host_os in
11629 solaris2.[0-5] | solaris2.[0-5].*) ;;
11630 *)
11631 # The C++ compiler is used as linker so we must use $wl
11632 # flag to pass the commands to the underlying system
11633 # linker. We must also pass each convience library through
11634 # to the system linker between allextract/defaultextract.
11635 # The C++ compiler will combine linker options so we
11636 # cannot just pass the convience library names through
11637 # without $wl.
11638 # Supported since Solaris 2.6 (maybe 2.5.1?)
11639 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11640 ;;
11641 esac
11642 link_all_deplibs_CXX=yes
11643
11644 output_verbose_link_cmd='echo'
11645
11646 # Archives containing C++ object files must be created using
11647 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11648 # necessary to make sure instantiated templates are included
11649 # in the archive.
11650 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11651 ;;
11652 gcx*)
11653 # Green Hills C++ Compiler
11654 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11655
11656 # The C++ compiler must be used to create the archive.
11657 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11658 ;;
11659 *)
11660 # GNU C++ compiler with Solaris linker
11661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11662 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11663 if $CC --version | grep -v '^2\.7' > /dev/null; then
11664 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11665 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11666 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11667
11668 # Commands to make compiler produce verbose output that lists
11669 # what "hidden" libraries, object files and flags are used when
11670 # linking a shared library.
11671 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11672 else
11673 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11674 # platform.
11675 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11676 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11677 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11678
11679 # Commands to make compiler produce verbose output that lists
11680 # what "hidden" libraries, object files and flags are used when
11681 # linking a shared library.
11682 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11683 fi
11684
11685 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11686 fi
11687 ;;
11688 esac
11689 ;;
11690 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11691 no_undefined_flag_CXX='${wl}-z,text'
11692 archive_cmds_need_lc_CXX=no
11693 hardcode_shlibpath_var_CXX=no
11694 runpath_var='LD_RUN_PATH'
11695
11696 case $cc_basename in
11697 CC*)
11698 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11699 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11700 ;;
11701 *)
11702 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11703 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11704 ;;
11705 esac
11706 ;;
11707 sysv5* | sco3.2v5* | sco5v6*)
11708 # Note: We can NOT use -z defs as we might desire, because we do not
11709 # link with -lc, and that would cause any symbols used from libc to
11710 # always be unresolved, which means just about no library would
11711 # ever link correctly. If we're not using GNU ld we use -z text
11712 # though, which does catch some bad symbols but isn't as heavy-handed
11713 # as -z defs.
11714 # For security reasons, it is highly recommended that you always
11715 # use absolute paths for naming shared libraries, and exclude the
11716 # DT_RUNPATH tag from executables and libraries. But doing so
11717 # requires that you compile everything twice, which is a pain.
11718 # So that behaviour is only enabled if SCOABSPATH is set to a
11719 # non-empty value in the environment. Most likely only useful for
11720 # creating official distributions of packages.
11721 # This is a hack until libtool officially supports absolute path
11722 # names for shared libraries.
11723 no_undefined_flag_CXX='${wl}-z,text'
11724 allow_undefined_flag_CXX='${wl}-z,nodefs'
11725 archive_cmds_need_lc_CXX=no
11726 hardcode_shlibpath_var_CXX=no
11727 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11728 hardcode_libdir_separator_CXX=':'
11729 link_all_deplibs_CXX=yes
11730 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11731 runpath_var='LD_RUN_PATH'
11732
11733 case $cc_basename in
11734 CC*)
11735 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11736 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11737 ;;
11738 *)
11739 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11740 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11741 ;;
11742 esac
11743 ;;
11744 tandem*)
11745 case $cc_basename in
11746 NCC*)
11747 # NonStop-UX NCC 3.20
11748 # FIXME: insert proper C++ library support
11749 ld_shlibs_CXX=no
11750 ;;
11751 *)
11752 # FIXME: insert proper C++ library support
11753 ld_shlibs_CXX=no
11754 ;;
11755 esac
11756 ;;
11757 vxworks*)
11758 # FIXME: insert proper C++ library support
11759 ld_shlibs_CXX=no
11760 ;;
11761 *)
11762 # FIXME: insert proper C++ library support
11763 ld_shlibs_CXX=no
11764 ;;
11765 esac
11766 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11767 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11768 test "$ld_shlibs_CXX" = no && can_build_shared=no
11769
11770 GCC_CXX="$GXX"
11771 LD_CXX="$LD"
11772
11773
11774 cat > conftest.$ac_ext <<EOF
11775 class Foo
11776 {
11777 public:
11778 Foo (void) { a = 0; }
11779 private:
11780 int a;
11781 };
11782 EOF
11783
11784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785 (eval $ac_compile) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; then
11789 # Parse the compiler output and extract the necessary
11790 # objects, libraries and library flags.
11791
11792 # Sentinel used to keep track of whether or not we are before
11793 # the conftest object file.
11794 pre_test_object_deps_done=no
11795
11796 # The `*' in the case matches for architectures that use `case' in
11797 # $output_verbose_cmd can trigger glob expansion during the loop
11798 # eval without this substitution.
11799 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11800
11801 for p in `eval $output_verbose_link_cmd`; do
11802 case $p in
11803
11804 -L* | -R* | -l*)
11805 # Some compilers place space between "-{L,R}" and the path.
11806 # Remove the space.
11807 if test $p = "-L" \
11808 || test $p = "-R"; then
11809 prev=$p
11810 continue
11811 else
11812 prev=
11813 fi
11814
11815 if test "$pre_test_object_deps_done" = no; then
11816 case $p in
11817 -L* | -R*)
11818 # Internal compiler library paths should come after those
11819 # provided the user. The postdeps already come after the
11820 # user supplied libs so there is no need to process them.
11821 if test -z "$compiler_lib_search_path_CXX"; then
11822 compiler_lib_search_path_CXX="${prev}${p}"
11823 else
11824 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11825 fi
11826 ;;
11827 # The "-l" case would never come before the object being
11828 # linked, so don't bother handling this case.
11829 esac
11830 else
11831 if test -z "$postdeps_CXX"; then
11832 postdeps_CXX="${prev}${p}"
11833 else
11834 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11835 fi
11836 fi
11837 ;;
11838
11839 *.$objext)
11840 # This assumes that the test object file only shows up
11841 # once in the compiler output.
11842 if test "$p" = "conftest.$objext"; then
11843 pre_test_object_deps_done=yes
11844 continue
11845 fi
11846
11847 if test "$pre_test_object_deps_done" = no; then
11848 if test -z "$predep_objects_CXX"; then
11849 predep_objects_CXX="$p"
11850 else
11851 predep_objects_CXX="$predep_objects_CXX $p"
11852 fi
11853 else
11854 if test -z "$postdep_objects_CXX"; then
11855 postdep_objects_CXX="$p"
11856 else
11857 postdep_objects_CXX="$postdep_objects_CXX $p"
11858 fi
11859 fi
11860 ;;
11861
11862 *) ;; # Ignore the rest.
11863
11864 esac
11865 done
11866
11867 # Clean up.
11868 rm -f a.out a.exe
11869 else
11870 echo "libtool.m4: error: problem compiling CXX test program"
11871 fi
11872
11873 $rm -f confest.$objext
11874
11875 # PORTME: override above test on systems where it is broken
11876 case $host_os in
11877 interix3*)
11878 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11879 # hack all around it, let's just trust "g++" to DTRT.
11880 predep_objects_CXX=
11881 postdep_objects_CXX=
11882 postdeps_CXX=
11883 ;;
11884
11885 solaris*)
11886 case $cc_basename in
11887 CC*)
11888 # Adding this requires a known-good setup of shared libraries for
11889 # Sun compiler versions before 5.6, else PIC objects from an old
11890 # archive will be linked into the output, leading to subtle bugs.
11891 postdeps_CXX='-lCstd -lCrun'
11892 ;;
11893 esac
11894 ;;
11895 esac
11896
11897
11898 case " $postdeps_CXX " in
11899 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11900 esac
11901
11902 lt_prog_compiler_wl_CXX=
11903 lt_prog_compiler_pic_CXX=
11904 lt_prog_compiler_static_CXX=
11905
11906 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11907 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11908
11909 # C++ specific cases for pic, static, wl, etc.
11910 if test "$GXX" = yes; then
11911 lt_prog_compiler_wl_CXX='-Wl,'
11912 lt_prog_compiler_static_CXX='-static'
11913
11914 case $host_os in
11915 aix*)
11916 # All AIX code is PIC.
11917 if test "$host_cpu" = ia64; then
11918 # AIX 5 now supports IA64 processor
11919 lt_prog_compiler_static_CXX='-Bstatic'
11920 fi
11921 ;;
11922 amigaos*)
11923 # FIXME: we need at least 68020 code to build shared libraries, but
11924 # adding the `-m68020' flag to GCC prevents building anything better,
11925 # like `-m68040'.
11926 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11927 ;;
11928 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11929 # PIC is the default for these OSes.
11930 ;;
11931 mingw* | os2* | pw32*)
11932 # This hack is so that the source file can tell whether it is being
11933 # built for inclusion in a dll (and should export symbols for example).
11934 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11935 ;;
11936 darwin* | rhapsody*)
11937 # PIC is the default on this platform
11938 # Common symbols not allowed in MH_DYLIB files
11939 lt_prog_compiler_pic_CXX='-fno-common'
11940 ;;
11941 *djgpp*)
11942 # DJGPP does not support shared libraries at all
11943 lt_prog_compiler_pic_CXX=
11944 ;;
11945 interix3*)
11946 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11947 # Instead, we relocate shared libraries at runtime.
11948 ;;
11949 sysv4*MP*)
11950 if test -d /usr/nec; then
11951 lt_prog_compiler_pic_CXX=-Kconform_pic
11952 fi
11953 ;;
11954 hpux*)
11955 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11956 # not for PA HP-UX.
11957 case $host_cpu in
11958 hppa*64*|ia64*)
11959 ;;
11960 *)
11961 lt_prog_compiler_pic_CXX='-fPIC'
11962 ;;
11963 esac
11964 ;;
11965 *)
11966 lt_prog_compiler_pic_CXX='-fPIC'
11967 ;;
11968 esac
11969 else
11970 case $host_os in
11971 aix4* | aix5*)
11972 # All AIX code is PIC.
11973 if test "$host_cpu" = ia64; then
11974 # AIX 5 now supports IA64 processor
11975 lt_prog_compiler_static_CXX='-Bstatic'
11976 else
11977 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11978 fi
11979 ;;
11980 chorus*)
11981 case $cc_basename in
11982 cxch68*)
11983 # Green Hills C++ Compiler
11984 # _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"
11985 ;;
11986 esac
11987 ;;
11988 darwin*)
11989 # PIC is the default on this platform
11990 # Common symbols not allowed in MH_DYLIB files
11991 case $cc_basename in
11992 xlc*)
11993 lt_prog_compiler_pic_CXX='-qnocommon'
11994 lt_prog_compiler_wl_CXX='-Wl,'
11995 ;;
11996 esac
11997 ;;
11998 dgux*)
11999 case $cc_basename in
12000 ec++*)
12001 lt_prog_compiler_pic_CXX='-KPIC'
12002 ;;
12003 ghcx*)
12004 # Green Hills C++ Compiler
12005 lt_prog_compiler_pic_CXX='-pic'
12006 ;;
12007 *)
12008 ;;
12009 esac
12010 ;;
12011 freebsd* | kfreebsd*-gnu | dragonfly*)
12012 # FreeBSD uses GNU C++
12013 ;;
12014 hpux9* | hpux10* | hpux11*)
12015 case $cc_basename in
12016 CC*)
12017 lt_prog_compiler_wl_CXX='-Wl,'
12018 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12019 if test "$host_cpu" != ia64; then
12020 lt_prog_compiler_pic_CXX='+Z'
12021 fi
12022 ;;
12023 aCC*)
12024 lt_prog_compiler_wl_CXX='-Wl,'
12025 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12026 case $host_cpu in
12027 hppa*64*|ia64*)
12028 # +Z the default
12029 ;;
12030 *)
12031 lt_prog_compiler_pic_CXX='+Z'
12032 ;;
12033 esac
12034 ;;
12035 *)
12036 ;;
12037 esac
12038 ;;
12039 interix*)
12040 # This is c89, which is MS Visual C++ (no shared libs)
12041 # Anyone wants to do a port?
12042 ;;
12043 irix5* | irix6* | nonstopux*)
12044 case $cc_basename in
12045 CC*)
12046 lt_prog_compiler_wl_CXX='-Wl,'
12047 lt_prog_compiler_static_CXX='-non_shared'
12048 # CC pic flag -KPIC is the default.
12049 ;;
12050 *)
12051 ;;
12052 esac
12053 ;;
12054 linux*)
12055 case $cc_basename in
12056 KCC*)
12057 # KAI C++ Compiler
12058 lt_prog_compiler_wl_CXX='--backend -Wl,'
12059 lt_prog_compiler_pic_CXX='-fPIC'
12060 ;;
12061 icpc* | ecpc*)
12062 # Intel C++
12063 lt_prog_compiler_wl_CXX='-Wl,'
12064 lt_prog_compiler_pic_CXX='-KPIC'
12065 lt_prog_compiler_static_CXX='-static'
12066 ;;
12067 pgCC*)
12068 # Portland Group C++ compiler.
12069 lt_prog_compiler_wl_CXX='-Wl,'
12070 lt_prog_compiler_pic_CXX='-fpic'
12071 lt_prog_compiler_static_CXX='-Bstatic'
12072 ;;
12073 cxx*)
12074 # Compaq C++
12075 # Make sure the PIC flag is empty. It appears that all Alpha
12076 # Linux and Compaq Tru64 Unix objects are PIC.
12077 lt_prog_compiler_pic_CXX=
12078 lt_prog_compiler_static_CXX='-non_shared'
12079 ;;
12080 *)
12081 ;;
12082 esac
12083 ;;
12084 lynxos*)
12085 ;;
12086 m88k*)
12087 ;;
12088 mvs*)
12089 case $cc_basename in
12090 cxx*)
12091 lt_prog_compiler_pic_CXX='-W c,exportall'
12092 ;;
12093 *)
12094 ;;
12095 esac
12096 ;;
12097 netbsd*)
12098 ;;
12099 osf3* | osf4* | osf5*)
12100 case $cc_basename in
12101 KCC*)
12102 lt_prog_compiler_wl_CXX='--backend -Wl,'
12103 ;;
12104 RCC*)
12105 # Rational C++ 2.4.1
12106 lt_prog_compiler_pic_CXX='-pic'
12107 ;;
12108 cxx*)
12109 # Digital/Compaq C++
12110 lt_prog_compiler_wl_CXX='-Wl,'
12111 # Make sure the PIC flag is empty. It appears that all Alpha
12112 # Linux and Compaq Tru64 Unix objects are PIC.
12113 lt_prog_compiler_pic_CXX=
12114 lt_prog_compiler_static_CXX='-non_shared'
12115 ;;
12116 *)
12117 ;;
12118 esac
12119 ;;
12120 psos*)
12121 ;;
12122 solaris*)
12123 case $cc_basename in
12124 CC*)
12125 # Sun C++ 4.2, 5.x and Centerline C++
12126 lt_prog_compiler_pic_CXX='-KPIC'
12127 lt_prog_compiler_static_CXX='-Bstatic'
12128 lt_prog_compiler_wl_CXX='-Qoption ld '
12129 ;;
12130 gcx*)
12131 # Green Hills C++ Compiler
12132 lt_prog_compiler_pic_CXX='-PIC'
12133 ;;
12134 *)
12135 ;;
12136 esac
12137 ;;
12138 sunos4*)
12139 case $cc_basename in
12140 CC*)
12141 # Sun C++ 4.x
12142 lt_prog_compiler_pic_CXX='-pic'
12143 lt_prog_compiler_static_CXX='-Bstatic'
12144 ;;
12145 lcc*)
12146 # Lucid
12147 lt_prog_compiler_pic_CXX='-pic'
12148 ;;
12149 *)
12150 ;;
12151 esac
12152 ;;
12153 tandem*)
12154 case $cc_basename in
12155 NCC*)
12156 # NonStop-UX NCC 3.20
12157 lt_prog_compiler_pic_CXX='-KPIC'
12158 ;;
12159 *)
12160 ;;
12161 esac
12162 ;;
12163 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12164 case $cc_basename in
12165 CC*)
12166 lt_prog_compiler_wl_CXX='-Wl,'
12167 lt_prog_compiler_pic_CXX='-KPIC'
12168 lt_prog_compiler_static_CXX='-Bstatic'
12169 ;;
12170 esac
12171 ;;
12172 vxworks*)
12173 ;;
12174 *)
12175 lt_prog_compiler_can_build_shared_CXX=no
12176 ;;
12177 esac
12178 fi
12179
12180 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12181 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12182
12183 #
12184 # Check to make sure the PIC flag actually works.
12185 #
12186 if test -n "$lt_prog_compiler_pic_CXX"; then
12187
12188 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12189 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12190 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193 lt_prog_compiler_pic_works_CXX=no
12194 ac_outfile=conftest.$ac_objext
12195 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12196 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12197 # Insert the option either (1) after the last *FLAGS variable, or
12198 # (2) before a word containing "conftest.", or (3) at the end.
12199 # Note that $ac_compile itself does not contain backslashes and begins
12200 # with a dollar sign (not a hyphen), so the echo should work correctly.
12201 # The option is referenced via a variable to avoid confusing sed.
12202 lt_compile=`echo "$ac_compile" | $SED \
12203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12205 -e 's:$: $lt_compiler_flag:'`
12206 (eval echo "\"\$as_me:12206: $lt_compile\"" >&5)
12207 (eval "$lt_compile" 2>conftest.err)
12208 ac_status=$?
12209 cat conftest.err >&5
12210 echo "$as_me:12210: \$? = $ac_status" >&5
12211 if (exit $ac_status) && test -s "$ac_outfile"; then
12212 # The compiler can only warn and ignore the option if not recognized
12213 # So say no if there are warnings other than the usual output.
12214 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12215 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12216 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12217 lt_prog_compiler_pic_works_CXX=yes
12218 fi
12219 fi
12220 $rm conftest*
12221
12222 fi
12223 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12224 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12225
12226 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12227 case $lt_prog_compiler_pic_CXX in
12228 "" | " "*) ;;
12229 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12230 esac
12231 else
12232 lt_prog_compiler_pic_CXX=
12233 lt_prog_compiler_can_build_shared_CXX=no
12234 fi
12235
12236 fi
12237 case $host_os in
12238 # For platforms which do not support PIC, -DPIC is meaningless:
12239 *djgpp*)
12240 lt_prog_compiler_pic_CXX=
12241 ;;
12242 *)
12243 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12244 ;;
12245 esac
12246
12247 #
12248 # Check to make sure the static flag actually works.
12249 #
12250 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12251 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12252 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12253 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 else
12256 lt_prog_compiler_static_works_CXX=no
12257 save_LDFLAGS="$LDFLAGS"
12258 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12259 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12260 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12261 # The linker can only warn and ignore the option if not recognized
12262 # So say no if there are warnings
12263 if test -s conftest.err; then
12264 # Append any errors to the config.log.
12265 cat conftest.err 1>&5
12266 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12268 if diff conftest.exp conftest.er2 >/dev/null; then
12269 lt_prog_compiler_static_works_CXX=yes
12270 fi
12271 else
12272 lt_prog_compiler_static_works_CXX=yes
12273 fi
12274 fi
12275 $rm conftest*
12276 LDFLAGS="$save_LDFLAGS"
12277
12278 fi
12279 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12280 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12281
12282 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12283 :
12284 else
12285 lt_prog_compiler_static_CXX=
12286 fi
12287
12288
12289 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12290 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12291 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294 lt_cv_prog_compiler_c_o_CXX=no
12295 $rm -r conftest 2>/dev/null
12296 mkdir conftest
12297 cd conftest
12298 mkdir out
12299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12300
12301 lt_compiler_flag="-o out/conftest2.$ac_objext"
12302 # Insert the option either (1) after the last *FLAGS variable, or
12303 # (2) before a word containing "conftest.", or (3) at the end.
12304 # Note that $ac_compile itself does not contain backslashes and begins
12305 # with a dollar sign (not a hyphen), so the echo should work correctly.
12306 lt_compile=`echo "$ac_compile" | $SED \
12307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12309 -e 's:$: $lt_compiler_flag:'`
12310 (eval echo "\"\$as_me:12310: $lt_compile\"" >&5)
12311 (eval "$lt_compile" 2>out/conftest.err)
12312 ac_status=$?
12313 cat out/conftest.err >&5
12314 echo "$as_me:12314: \$? = $ac_status" >&5
12315 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12316 then
12317 # The compiler can only warn and ignore the option if not recognized
12318 # So say no if there are warnings
12319 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12320 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12321 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12322 lt_cv_prog_compiler_c_o_CXX=yes
12323 fi
12324 fi
12325 chmod u+w . 2>&5
12326 $rm conftest*
12327 # SGI C++ compiler will create directory out/ii_files/ for
12328 # template instantiation
12329 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12330 $rm out/* && rmdir out
12331 cd ..
12332 rmdir conftest
12333 $rm conftest*
12334
12335 fi
12336 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12337 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12338
12339
12340 hard_links="nottested"
12341 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12342 # do not overwrite the value of need_locks provided by the user
12343 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12344 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12345 hard_links=yes
12346 $rm conftest*
12347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12348 touch conftest.a
12349 ln conftest.a conftest.b 2>&5 || hard_links=no
12350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12351 { echo "$as_me:$LINENO: result: $hard_links" >&5
12352 echo "${ECHO_T}$hard_links" >&6; }
12353 if test "$hard_links" = no; then
12354 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12355 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12356 need_locks=warn
12357 fi
12358 else
12359 need_locks=no
12360 fi
12361
12362 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12363 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12364
12365 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12366 case $host_os in
12367 aix4* | aix5*)
12368 # If we're using GNU nm, then we don't want the "-C" option.
12369 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12370 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12371 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'
12372 else
12373 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'
12374 fi
12375 ;;
12376 pw32*)
12377 export_symbols_cmds_CXX="$ltdll_cmds"
12378 ;;
12379 cygwin* | mingw*)
12380 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'
12381 ;;
12382 *)
12383 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12384 ;;
12385 esac
12386
12387 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12388 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12389 test "$ld_shlibs_CXX" = no && can_build_shared=no
12390
12391 #
12392 # Do we need to explicitly link libc?
12393 #
12394 case "x$archive_cmds_need_lc_CXX" in
12395 x|xyes)
12396 # Assume -lc should be added
12397 archive_cmds_need_lc_CXX=yes
12398
12399 if test "$enable_shared" = yes && test "$GCC" = yes; then
12400 case $archive_cmds_CXX in
12401 *'~'*)
12402 # FIXME: we may have to deal with multi-command sequences.
12403 ;;
12404 '$CC '*)
12405 # Test whether the compiler implicitly links with -lc since on some
12406 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12407 # to ld, don't add -lc before -lgcc.
12408 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12409 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12410 $rm conftest*
12411 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12412
12413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12414 (eval $ac_compile) 2>&5
12415 ac_status=$?
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } 2>conftest.err; then
12418 soname=conftest
12419 lib=conftest
12420 libobjs=conftest.$ac_objext
12421 deplibs=
12422 wl=$lt_prog_compiler_wl_CXX
12423 pic_flag=$lt_prog_compiler_pic_CXX
12424 compiler_flags=-v
12425 linker_flags=-v
12426 verstring=
12427 output_objdir=.
12428 libname=conftest
12429 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12430 allow_undefined_flag_CXX=
12431 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12432 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }
12436 then
12437 archive_cmds_need_lc_CXX=no
12438 else
12439 archive_cmds_need_lc_CXX=yes
12440 fi
12441 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12442 else
12443 cat conftest.err 1>&5
12444 fi
12445 $rm conftest*
12446 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12447 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12448 ;;
12449 esac
12450 fi
12451 ;;
12452 esac
12453
12454 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12455 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12456 library_names_spec=
12457 libname_spec='lib$name'
12458 soname_spec=
12459 shrext_cmds=".so"
12460 postinstall_cmds=
12461 postuninstall_cmds=
12462 finish_cmds=
12463 finish_eval=
12464 shlibpath_var=
12465 shlibpath_overrides_runpath=unknown
12466 version_type=none
12467 dynamic_linker="$host_os ld.so"
12468 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12469 if test "$GCC" = yes; then
12470 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12471 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12472 # if the path contains ";" then we assume it to be the separator
12473 # otherwise default to the standard path separator (i.e. ":") - it is
12474 # assumed that no part of a normal pathname contains ";" but that should
12475 # okay in the real world where ";" in dirpaths is itself problematic.
12476 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12477 else
12478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12479 fi
12480 else
12481 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12482 fi
12483 need_lib_prefix=unknown
12484 hardcode_into_libs=no
12485
12486 # when you set need_version to no, make sure it does not cause -set_version
12487 # flags to be left without arguments
12488 need_version=unknown
12489
12490 case $host_os in
12491 aix3*)
12492 version_type=linux
12493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12494 shlibpath_var=LIBPATH
12495
12496 # AIX 3 has no versioning support, so we append a major version to the name.
12497 soname_spec='${libname}${release}${shared_ext}$major'
12498 ;;
12499
12500 aix4* | aix5*)
12501 version_type=linux
12502 need_lib_prefix=no
12503 need_version=no
12504 hardcode_into_libs=yes
12505 if test "$host_cpu" = ia64; then
12506 # AIX 5 supports IA64
12507 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12508 shlibpath_var=LD_LIBRARY_PATH
12509 else
12510 # With GCC up to 2.95.x, collect2 would create an import file
12511 # for dependence libraries. The import file would start with
12512 # the line `#! .'. This would cause the generated library to
12513 # depend on `.', always an invalid library. This was fixed in
12514 # development snapshots of GCC prior to 3.0.
12515 case $host_os in
12516 aix4 | aix4.[01] | aix4.[01].*)
12517 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12518 echo ' yes '
12519 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12520 :
12521 else
12522 can_build_shared=no
12523 fi
12524 ;;
12525 esac
12526 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12527 # soname into executable. Probably we can add versioning support to
12528 # collect2, so additional links can be useful in future.
12529 if test "$aix_use_runtimelinking" = yes; then
12530 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12531 # instead of lib<name>.a to let people know that these are not
12532 # typical AIX shared libraries.
12533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12534 else
12535 # We preserve .a as extension for shared libraries through AIX4.2
12536 # and later when we are not doing run time linking.
12537 library_names_spec='${libname}${release}.a $libname.a'
12538 soname_spec='${libname}${release}${shared_ext}$major'
12539 fi
12540 shlibpath_var=LIBPATH
12541 fi
12542 ;;
12543
12544 amigaos*)
12545 library_names_spec='$libname.ixlibrary $libname.a'
12546 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12547 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'
12548 ;;
12549
12550 beos*)
12551 library_names_spec='${libname}${shared_ext}'
12552 dynamic_linker="$host_os ld.so"
12553 shlibpath_var=LIBRARY_PATH
12554 ;;
12555
12556 bsdi[45]*)
12557 version_type=linux
12558 need_version=no
12559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560 soname_spec='${libname}${release}${shared_ext}$major'
12561 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12562 shlibpath_var=LD_LIBRARY_PATH
12563 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12564 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12565 # the default ld.so.conf also contains /usr/contrib/lib and
12566 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12567 # libtool to hard-code these into programs
12568 ;;
12569
12570 cygwin* | mingw* | pw32*)
12571 version_type=windows
12572 shrext_cmds=".dll"
12573 need_version=no
12574 need_lib_prefix=no
12575
12576 case $GCC,$host_os in
12577 yes,cygwin* | yes,mingw* | yes,pw32*)
12578 library_names_spec='$libname.dll.a'
12579 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12580 postinstall_cmds='base_file=`basename \${file}`~
12581 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12582 dldir=$destdir/`dirname \$dlpath`~
12583 test -d \$dldir || mkdir -p \$dldir~
12584 $install_prog $dir/$dlname \$dldir/$dlname~
12585 chmod a+x \$dldir/$dlname'
12586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12587 dlpath=$dir/\$dldll~
12588 $rm \$dlpath'
12589 shlibpath_overrides_runpath=yes
12590
12591 case $host_os in
12592 cygwin*)
12593 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12594 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12595 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12596 ;;
12597 mingw*)
12598 # MinGW DLLs use traditional 'lib' prefix
12599 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12600 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12601 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12602 # It is most probably a Windows format PATH printed by
12603 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12604 # path with ; separators, and with drive letters. We can handle the
12605 # drive letters (cygwin fileutils understands them), so leave them,
12606 # especially as we might pass files found there to a mingw objdump,
12607 # which wouldn't understand a cygwinified path. Ahh.
12608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12609 else
12610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12611 fi
12612 ;;
12613 pw32*)
12614 # pw32 DLLs use 'pw' prefix rather than 'lib'
12615 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12616 ;;
12617 esac
12618 ;;
12619
12620 *)
12621 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12622 ;;
12623 esac
12624 dynamic_linker='Win32 ld.exe'
12625 # FIXME: first we should search . and the directory the executable is in
12626 shlibpath_var=PATH
12627 ;;
12628
12629 darwin* | rhapsody*)
12630 dynamic_linker="$host_os dyld"
12631 version_type=darwin
12632 need_lib_prefix=no
12633 need_version=no
12634 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12635 soname_spec='${libname}${release}${major}$shared_ext'
12636 shlibpath_overrides_runpath=yes
12637 shlibpath_var=DYLD_LIBRARY_PATH
12638 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12639 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12640 if test "$GCC" = yes; then
12641 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12642 else
12643 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12644 fi
12645 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12646 ;;
12647
12648 dgux*)
12649 version_type=linux
12650 need_lib_prefix=no
12651 need_version=no
12652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12653 soname_spec='${libname}${release}${shared_ext}$major'
12654 shlibpath_var=LD_LIBRARY_PATH
12655 ;;
12656
12657 freebsd1*)
12658 dynamic_linker=no
12659 ;;
12660
12661 kfreebsd*-gnu)
12662 version_type=linux
12663 need_lib_prefix=no
12664 need_version=no
12665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12666 soname_spec='${libname}${release}${shared_ext}$major'
12667 shlibpath_var=LD_LIBRARY_PATH
12668 shlibpath_overrides_runpath=no
12669 hardcode_into_libs=yes
12670 dynamic_linker='GNU ld.so'
12671 ;;
12672
12673 freebsd* | dragonfly*)
12674 # DragonFly does not have aout. When/if they implement a new
12675 # versioning mechanism, adjust this.
12676 if test -x /usr/bin/objformat; then
12677 objformat=`/usr/bin/objformat`
12678 else
12679 case $host_os in
12680 freebsd[123]*) objformat=aout ;;
12681 *) objformat=elf ;;
12682 esac
12683 fi
12684 version_type=freebsd-$objformat
12685 case $version_type in
12686 freebsd-elf*)
12687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12688 need_version=no
12689 need_lib_prefix=no
12690 ;;
12691 freebsd-*)
12692 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12693 need_version=yes
12694 ;;
12695 esac
12696 shlibpath_var=LD_LIBRARY_PATH
12697 case $host_os in
12698 freebsd2*)
12699 shlibpath_overrides_runpath=yes
12700 ;;
12701 freebsd3.[01]* | freebsdelf3.[01]*)
12702 shlibpath_overrides_runpath=yes
12703 hardcode_into_libs=yes
12704 ;;
12705 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12706 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12707 shlibpath_overrides_runpath=no
12708 hardcode_into_libs=yes
12709 ;;
12710 freebsd*) # from 4.6 on
12711 shlibpath_overrides_runpath=yes
12712 hardcode_into_libs=yes
12713 ;;
12714 esac
12715 ;;
12716
12717 gnu*)
12718 version_type=linux
12719 need_lib_prefix=no
12720 need_version=no
12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12722 soname_spec='${libname}${release}${shared_ext}$major'
12723 shlibpath_var=LD_LIBRARY_PATH
12724 hardcode_into_libs=yes
12725 ;;
12726
12727 hpux9* | hpux10* | hpux11*)
12728 # Give a soname corresponding to the major version so that dld.sl refuses to
12729 # link against other versions.
12730 version_type=sunos
12731 need_lib_prefix=no
12732 need_version=no
12733 case $host_cpu in
12734 ia64*)
12735 shrext_cmds='.so'
12736 hardcode_into_libs=yes
12737 dynamic_linker="$host_os dld.so"
12738 shlibpath_var=LD_LIBRARY_PATH
12739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12741 soname_spec='${libname}${release}${shared_ext}$major'
12742 if test "X$HPUX_IA64_MODE" = X32; then
12743 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12744 else
12745 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12746 fi
12747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12748 ;;
12749 hppa*64*)
12750 shrext_cmds='.sl'
12751 hardcode_into_libs=yes
12752 dynamic_linker="$host_os dld.sl"
12753 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12756 soname_spec='${libname}${release}${shared_ext}$major'
12757 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12759 ;;
12760 *)
12761 shrext_cmds='.sl'
12762 dynamic_linker="$host_os dld.sl"
12763 shlibpath_var=SHLIB_PATH
12764 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12766 soname_spec='${libname}${release}${shared_ext}$major'
12767 ;;
12768 esac
12769 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12770 postinstall_cmds='chmod 555 $lib'
12771 ;;
12772
12773 interix3*)
12774 version_type=linux
12775 need_lib_prefix=no
12776 need_version=no
12777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12778 soname_spec='${libname}${release}${shared_ext}$major'
12779 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12780 shlibpath_var=LD_LIBRARY_PATH
12781 shlibpath_overrides_runpath=no
12782 hardcode_into_libs=yes
12783 ;;
12784
12785 irix5* | irix6* | nonstopux*)
12786 case $host_os in
12787 nonstopux*) version_type=nonstopux ;;
12788 *)
12789 if test "$lt_cv_prog_gnu_ld" = yes; then
12790 version_type=linux
12791 else
12792 version_type=irix
12793 fi ;;
12794 esac
12795 need_lib_prefix=no
12796 need_version=no
12797 soname_spec='${libname}${release}${shared_ext}$major'
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12799 case $host_os in
12800 irix5* | nonstopux*)
12801 libsuff= shlibsuff=
12802 ;;
12803 *)
12804 case $LD in # libtool.m4 will add one of these switches to LD
12805 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12806 libsuff= shlibsuff= libmagic=32-bit;;
12807 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12808 libsuff=32 shlibsuff=N32 libmagic=N32;;
12809 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12810 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12811 *) libsuff= shlibsuff= libmagic=never-match;;
12812 esac
12813 ;;
12814 esac
12815 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12816 shlibpath_overrides_runpath=no
12817 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12818 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12819 hardcode_into_libs=yes
12820 ;;
12821
12822 # No shared lib support for Linux oldld, aout, or coff.
12823 linux*oldld* | linux*aout* | linux*coff*)
12824 dynamic_linker=no
12825 ;;
12826
12827 # This must be Linux ELF.
12828 linux*)
12829 version_type=linux
12830 need_lib_prefix=no
12831 need_version=no
12832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12833 soname_spec='${libname}${release}${shared_ext}$major'
12834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12835 shlibpath_var=LD_LIBRARY_PATH
12836 shlibpath_overrides_runpath=no
12837 # This implies no fast_install, which is unacceptable.
12838 # Some rework will be needed to allow for fast_install
12839 # before this can be enabled.
12840 hardcode_into_libs=yes
12841
12842 # Append ld.so.conf contents to the search path
12843 if test -f /etc/ld.so.conf; then
12844 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12845 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12846 fi
12847
12848 # We used to test for /lib/ld.so.1 and disable shared libraries on
12849 # powerpc, because MkLinux only supported shared libraries with the
12850 # GNU dynamic linker. Since this was broken with cross compilers,
12851 # most powerpc-linux boxes support dynamic linking these days and
12852 # people can always --disable-shared, the test was removed, and we
12853 # assume the GNU/Linux dynamic linker is in use.
12854 dynamic_linker='GNU/Linux ld.so'
12855 ;;
12856
12857 knetbsd*-gnu)
12858 version_type=linux
12859 need_lib_prefix=no
12860 need_version=no
12861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12862 soname_spec='${libname}${release}${shared_ext}$major'
12863 shlibpath_var=LD_LIBRARY_PATH
12864 shlibpath_overrides_runpath=no
12865 hardcode_into_libs=yes
12866 dynamic_linker='GNU ld.so'
12867 ;;
12868
12869 netbsd*)
12870 version_type=sunos
12871 need_lib_prefix=no
12872 need_version=no
12873 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12876 dynamic_linker='NetBSD (a.out) ld.so'
12877 else
12878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12879 soname_spec='${libname}${release}${shared_ext}$major'
12880 dynamic_linker='NetBSD ld.elf_so'
12881 fi
12882 shlibpath_var=LD_LIBRARY_PATH
12883 shlibpath_overrides_runpath=yes
12884 hardcode_into_libs=yes
12885 ;;
12886
12887 newsos6)
12888 version_type=linux
12889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12890 shlibpath_var=LD_LIBRARY_PATH
12891 shlibpath_overrides_runpath=yes
12892 ;;
12893
12894 nto-qnx*)
12895 version_type=linux
12896 need_lib_prefix=no
12897 need_version=no
12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12899 soname_spec='${libname}${release}${shared_ext}$major'
12900 shlibpath_var=LD_LIBRARY_PATH
12901 shlibpath_overrides_runpath=yes
12902 ;;
12903
12904 openbsd*)
12905 version_type=sunos
12906 sys_lib_dlsearch_path_spec="/usr/lib"
12907 need_lib_prefix=no
12908 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12909 case $host_os in
12910 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12911 *) need_version=no ;;
12912 esac
12913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12915 shlibpath_var=LD_LIBRARY_PATH
12916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12917 case $host_os in
12918 openbsd2.[89] | openbsd2.[89].*)
12919 shlibpath_overrides_runpath=no
12920 ;;
12921 *)
12922 shlibpath_overrides_runpath=yes
12923 ;;
12924 esac
12925 else
12926 shlibpath_overrides_runpath=yes
12927 fi
12928 ;;
12929
12930 os2*)
12931 libname_spec='$name'
12932 shrext_cmds=".dll"
12933 need_lib_prefix=no
12934 library_names_spec='$libname${shared_ext} $libname.a'
12935 dynamic_linker='OS/2 ld.exe'
12936 shlibpath_var=LIBPATH
12937 ;;
12938
12939 osf3* | osf4* | osf5*)
12940 version_type=osf
12941 need_lib_prefix=no
12942 need_version=no
12943 soname_spec='${libname}${release}${shared_ext}$major'
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945 shlibpath_var=LD_LIBRARY_PATH
12946 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12947 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12948 ;;
12949
12950 solaris*)
12951 version_type=linux
12952 need_lib_prefix=no
12953 need_version=no
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955 soname_spec='${libname}${release}${shared_ext}$major'
12956 shlibpath_var=LD_LIBRARY_PATH
12957 shlibpath_overrides_runpath=yes
12958 hardcode_into_libs=yes
12959 # ldd complains unless libraries are executable
12960 postinstall_cmds='chmod +x $lib'
12961 ;;
12962
12963 sunos4*)
12964 version_type=sunos
12965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12966 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12967 shlibpath_var=LD_LIBRARY_PATH
12968 shlibpath_overrides_runpath=yes
12969 if test "$with_gnu_ld" = yes; then
12970 need_lib_prefix=no
12971 fi
12972 need_version=yes
12973 ;;
12974
12975 sysv4 | sysv4.3*)
12976 version_type=linux
12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12978 soname_spec='${libname}${release}${shared_ext}$major'
12979 shlibpath_var=LD_LIBRARY_PATH
12980 case $host_vendor in
12981 sni)
12982 shlibpath_overrides_runpath=no
12983 need_lib_prefix=no
12984 export_dynamic_flag_spec='${wl}-Blargedynsym'
12985 runpath_var=LD_RUN_PATH
12986 ;;
12987 siemens)
12988 need_lib_prefix=no
12989 ;;
12990 motorola)
12991 need_lib_prefix=no
12992 need_version=no
12993 shlibpath_overrides_runpath=no
12994 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12995 ;;
12996 esac
12997 ;;
12998
12999 sysv4*MP*)
13000 if test -d /usr/nec ;then
13001 version_type=linux
13002 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13003 soname_spec='$libname${shared_ext}.$major'
13004 shlibpath_var=LD_LIBRARY_PATH
13005 fi
13006 ;;
13007
13008 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13009 version_type=freebsd-elf
13010 need_lib_prefix=no
13011 need_version=no
13012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13013 soname_spec='${libname}${release}${shared_ext}$major'
13014 shlibpath_var=LD_LIBRARY_PATH
13015 hardcode_into_libs=yes
13016 if test "$with_gnu_ld" = yes; then
13017 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13018 shlibpath_overrides_runpath=no
13019 else
13020 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13021 shlibpath_overrides_runpath=yes
13022 case $host_os in
13023 sco3.2v5*)
13024 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13025 ;;
13026 esac
13027 fi
13028 sys_lib_dlsearch_path_spec='/usr/lib'
13029 ;;
13030
13031 uts4*)
13032 version_type=linux
13033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13034 soname_spec='${libname}${release}${shared_ext}$major'
13035 shlibpath_var=LD_LIBRARY_PATH
13036 ;;
13037
13038 *)
13039 dynamic_linker=no
13040 ;;
13041 esac
13042 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13043 echo "${ECHO_T}$dynamic_linker" >&6; }
13044 test "$dynamic_linker" = no && can_build_shared=no
13045
13046 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13047 if test "$GCC" = yes; then
13048 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13049 fi
13050
13051 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13052 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13053 hardcode_action_CXX=
13054 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13055 test -n "$runpath_var_CXX" || \
13056 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13057
13058 # We can hardcode non-existant directories.
13059 if test "$hardcode_direct_CXX" != no &&
13060 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13061 # have to relink, otherwise we might link with an installed library
13062 # when we should be linking with a yet-to-be-installed one
13063 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13064 test "$hardcode_minus_L_CXX" != no; then
13065 # Linking always hardcodes the temporary library directory.
13066 hardcode_action_CXX=relink
13067 else
13068 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13069 hardcode_action_CXX=immediate
13070 fi
13071 else
13072 # We cannot hardcode anything, or else we can only hardcode existing
13073 # directories.
13074 hardcode_action_CXX=unsupported
13075 fi
13076 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13077 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13078
13079 if test "$hardcode_action_CXX" = relink; then
13080 # Fast installation is not supported
13081 enable_fast_install=no
13082 elif test "$shlibpath_overrides_runpath" = yes ||
13083 test "$enable_shared" = no; then
13084 # Fast installation is not necessary
13085 enable_fast_install=needless
13086 fi
13087
13088
13089 # The else clause should only fire when bootstrapping the
13090 # libtool distribution, otherwise you forgot to ship ltmain.sh
13091 # with your package, and you will get complaints that there are
13092 # no rules to generate ltmain.sh.
13093 if test -f "$ltmain"; then
13094 # See if we are running on zsh, and set the options which allow our commands through
13095 # without removal of \ escapes.
13096 if test -n "${ZSH_VERSION+set}" ; then
13097 setopt NO_GLOB_SUBST
13098 fi
13099 # Now quote all the things that may contain metacharacters while being
13100 # careful not to overquote the AC_SUBSTed values. We take copies of the
13101 # variables and quote the copies for generation of the libtool script.
13102 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13103 SED SHELL STRIP \
13104 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13105 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13106 deplibs_check_method reload_flag reload_cmds need_locks \
13107 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13108 lt_cv_sys_global_symbol_to_c_name_address \
13109 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13110 old_postinstall_cmds old_postuninstall_cmds \
13111 compiler_CXX \
13112 CC_CXX \
13113 LD_CXX \
13114 lt_prog_compiler_wl_CXX \
13115 lt_prog_compiler_pic_CXX \
13116 lt_prog_compiler_static_CXX \
13117 lt_prog_compiler_no_builtin_flag_CXX \
13118 export_dynamic_flag_spec_CXX \
13119 thread_safe_flag_spec_CXX \
13120 whole_archive_flag_spec_CXX \
13121 enable_shared_with_static_runtimes_CXX \
13122 old_archive_cmds_CXX \
13123 old_archive_from_new_cmds_CXX \
13124 predep_objects_CXX \
13125 postdep_objects_CXX \
13126 predeps_CXX \
13127 postdeps_CXX \
13128 compiler_lib_search_path_CXX \
13129 archive_cmds_CXX \
13130 archive_expsym_cmds_CXX \
13131 postinstall_cmds_CXX \
13132 postuninstall_cmds_CXX \
13133 old_archive_from_expsyms_cmds_CXX \
13134 allow_undefined_flag_CXX \
13135 no_undefined_flag_CXX \
13136 export_symbols_cmds_CXX \
13137 hardcode_libdir_flag_spec_CXX \
13138 hardcode_libdir_flag_spec_ld_CXX \
13139 hardcode_libdir_separator_CXX \
13140 hardcode_automatic_CXX \
13141 module_cmds_CXX \
13142 module_expsym_cmds_CXX \
13143 lt_cv_prog_compiler_c_o_CXX \
13144 exclude_expsyms_CXX \
13145 include_expsyms_CXX; do
13146
13147 case $var in
13148 old_archive_cmds_CXX | \
13149 old_archive_from_new_cmds_CXX | \
13150 archive_cmds_CXX | \
13151 archive_expsym_cmds_CXX | \
13152 module_cmds_CXX | \
13153 module_expsym_cmds_CXX | \
13154 old_archive_from_expsyms_cmds_CXX | \
13155 export_symbols_cmds_CXX | \
13156 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13157 postinstall_cmds | postuninstall_cmds | \
13158 old_postinstall_cmds | old_postuninstall_cmds | \
13159 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13160 # Double-quote double-evaled strings.
13161 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13162 ;;
13163 *)
13164 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13165 ;;
13166 esac
13167 done
13168
13169 case $lt_echo in
13170 *'\$0 --fallback-echo"')
13171 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13172 ;;
13173 esac
13174
13175 cfgfile="$ofile"
13176
13177 cat <<__EOF__ >> "$cfgfile"
13178 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13179
13180 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13181
13182 # Shell to use when invoking shell scripts.
13183 SHELL=$lt_SHELL
13184
13185 # Whether or not to build shared libraries.
13186 build_libtool_libs=$enable_shared
13187
13188 # Whether or not to build static libraries.
13189 build_old_libs=$enable_static
13190
13191 # Whether or not to add -lc for building shared libraries.
13192 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13193
13194 # Whether or not to disallow shared libs when runtime libs are static
13195 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13196
13197 # Whether or not to optimize for fast installation.
13198 fast_install=$enable_fast_install
13199
13200 # The host system.
13201 host_alias=$host_alias
13202 host=$host
13203 host_os=$host_os
13204
13205 # The build system.
13206 build_alias=$build_alias
13207 build=$build
13208 build_os=$build_os
13209
13210 # An echo program that does not interpret backslashes.
13211 echo=$lt_echo
13212
13213 # The archiver.
13214 AR=$lt_AR
13215 AR_FLAGS=$lt_AR_FLAGS
13216
13217 # A C compiler.
13218 LTCC=$lt_LTCC
13219
13220 # LTCC compiler flags.
13221 LTCFLAGS=$lt_LTCFLAGS
13222
13223 # A language-specific compiler.
13224 CC=$lt_compiler_CXX
13225
13226 # Is the compiler the GNU C compiler?
13227 with_gcc=$GCC_CXX
13228
13229 # An ERE matcher.
13230 EGREP=$lt_EGREP
13231
13232 # The linker used to build libraries.
13233 LD=$lt_LD_CXX
13234
13235 # Whether we need hard or soft links.
13236 LN_S=$lt_LN_S
13237
13238 # A BSD-compatible nm program.
13239 NM=$lt_NM
13240
13241 # A symbol stripping program
13242 STRIP=$lt_STRIP
13243
13244 # Used to examine libraries when file_magic_cmd begins "file"
13245 MAGIC_CMD=$MAGIC_CMD
13246
13247 # Used on cygwin: DLL creation program.
13248 DLLTOOL="$DLLTOOL"
13249
13250 # Used on cygwin: object dumper.
13251 OBJDUMP="$OBJDUMP"
13252
13253 # Used on cygwin: assembler.
13254 AS="$AS"
13255
13256 # The name of the directory that contains temporary libtool files.
13257 objdir=$objdir
13258
13259 # How to create reloadable object files.
13260 reload_flag=$lt_reload_flag
13261 reload_cmds=$lt_reload_cmds
13262
13263 # How to pass a linker flag through the compiler.
13264 wl=$lt_lt_prog_compiler_wl_CXX
13265
13266 # Object file suffix (normally "o").
13267 objext="$ac_objext"
13268
13269 # Old archive suffix (normally "a").
13270 libext="$libext"
13271
13272 # Shared library suffix (normally ".so").
13273 shrext_cmds='$shrext_cmds'
13274
13275 # Executable file suffix (normally "").
13276 exeext="$exeext"
13277
13278 # Additional compiler flags for building library objects.
13279 pic_flag=$lt_lt_prog_compiler_pic_CXX
13280 pic_mode=$pic_mode
13281
13282 # What is the maximum length of a command?
13283 max_cmd_len=$lt_cv_sys_max_cmd_len
13284
13285 # Does compiler simultaneously support -c and -o options?
13286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13287
13288 # Must we lock files when doing compilation?
13289 need_locks=$lt_need_locks
13290
13291 # Do we need the lib prefix for modules?
13292 need_lib_prefix=$need_lib_prefix
13293
13294 # Do we need a version for libraries?
13295 need_version=$need_version
13296
13297 # Whether dlopen is supported.
13298 dlopen_support=$enable_dlopen
13299
13300 # Whether dlopen of programs is supported.
13301 dlopen_self=$enable_dlopen_self
13302
13303 # Whether dlopen of statically linked programs is supported.
13304 dlopen_self_static=$enable_dlopen_self_static
13305
13306 # Compiler flag to prevent dynamic linking.
13307 link_static_flag=$lt_lt_prog_compiler_static_CXX
13308
13309 # Compiler flag to turn off builtin functions.
13310 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13311
13312 # Compiler flag to allow reflexive dlopens.
13313 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13314
13315 # Compiler flag to generate shared objects directly from archives.
13316 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13317
13318 # Compiler flag to generate thread-safe objects.
13319 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13320
13321 # Library versioning type.
13322 version_type=$version_type
13323
13324 # Format of library name prefix.
13325 libname_spec=$lt_libname_spec
13326
13327 # List of archive names. First name is the real one, the rest are links.
13328 # The last name is the one that the linker finds with -lNAME.
13329 library_names_spec=$lt_library_names_spec
13330
13331 # The coded name of the library, if different from the real name.
13332 soname_spec=$lt_soname_spec
13333
13334 # Commands used to build and install an old-style archive.
13335 RANLIB=$lt_RANLIB
13336 old_archive_cmds=$lt_old_archive_cmds_CXX
13337 old_postinstall_cmds=$lt_old_postinstall_cmds
13338 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13339
13340 # Create an old-style archive from a shared archive.
13341 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13342
13343 # Create a temporary old-style archive to link instead of a shared archive.
13344 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13345
13346 # Commands used to build and install a shared archive.
13347 archive_cmds=$lt_archive_cmds_CXX
13348 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13349 postinstall_cmds=$lt_postinstall_cmds
13350 postuninstall_cmds=$lt_postuninstall_cmds
13351
13352 # Commands used to build a loadable module (assumed same as above if empty)
13353 module_cmds=$lt_module_cmds_CXX
13354 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13355
13356 # Commands to strip libraries.
13357 old_striplib=$lt_old_striplib
13358 striplib=$lt_striplib
13359
13360 # Dependencies to place before the objects being linked to create a
13361 # shared library.
13362 predep_objects=$lt_predep_objects_CXX
13363
13364 # Dependencies to place after the objects being linked to create a
13365 # shared library.
13366 postdep_objects=$lt_postdep_objects_CXX
13367
13368 # Dependencies to place before the objects being linked to create a
13369 # shared library.
13370 predeps=$lt_predeps_CXX
13371
13372 # Dependencies to place after the objects being linked to create a
13373 # shared library.
13374 postdeps=$lt_postdeps_CXX
13375
13376 # The library search path used internally by the compiler when linking
13377 # a shared library.
13378 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13379
13380 # Method to check whether dependent libraries are shared objects.
13381 deplibs_check_method=$lt_deplibs_check_method
13382
13383 # Command to use when deplibs_check_method == file_magic.
13384 file_magic_cmd=$lt_file_magic_cmd
13385
13386 # Flag that allows shared libraries with undefined symbols to be built.
13387 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13388
13389 # Flag that forces no undefined symbols.
13390 no_undefined_flag=$lt_no_undefined_flag_CXX
13391
13392 # Commands used to finish a libtool library installation in a directory.
13393 finish_cmds=$lt_finish_cmds
13394
13395 # Same as above, but a single script fragment to be evaled but not shown.
13396 finish_eval=$lt_finish_eval
13397
13398 # Take the output of nm and produce a listing of raw symbols and C names.
13399 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13400
13401 # Transform the output of nm in a proper C declaration
13402 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13403
13404 # Transform the output of nm in a C name address pair
13405 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13406
13407 # This is the shared library runtime path variable.
13408 runpath_var=$runpath_var
13409
13410 # This is the shared library path variable.
13411 shlibpath_var=$shlibpath_var
13412
13413 # Is shlibpath searched before the hard-coded library search path?
13414 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13415
13416 # How to hardcode a shared library path into an executable.
13417 hardcode_action=$hardcode_action_CXX
13418
13419 # Whether we should hardcode library paths into libraries.
13420 hardcode_into_libs=$hardcode_into_libs
13421
13422 # Flag to hardcode \$libdir into a binary during linking.
13423 # This must work even if \$libdir does not exist.
13424 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13425
13426 # If ld is used when linking, flag to hardcode \$libdir into
13427 # a binary during linking. This must work even if \$libdir does
13428 # not exist.
13429 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13430
13431 # Whether we need a single -rpath flag with a separated argument.
13432 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13433
13434 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13435 # resulting binary.
13436 hardcode_direct=$hardcode_direct_CXX
13437
13438 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13439 # resulting binary.
13440 hardcode_minus_L=$hardcode_minus_L_CXX
13441
13442 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13443 # the resulting binary.
13444 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13445
13446 # Set to yes if building a shared library automatically hardcodes DIR into the library
13447 # and all subsequent libraries and executables linked against it.
13448 hardcode_automatic=$hardcode_automatic_CXX
13449
13450 # Variables whose values should be saved in libtool wrapper scripts and
13451 # restored at relink time.
13452 variables_saved_for_relink="$variables_saved_for_relink"
13453
13454 # Whether libtool must link a program against all its dependency libraries.
13455 link_all_deplibs=$link_all_deplibs_CXX
13456
13457 # Compile-time system search path for libraries
13458 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13459
13460 # Run-time system search path for libraries
13461 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13462
13463 # Fix the shell variable \$srcfile for the compiler.
13464 fix_srcfile_path="$fix_srcfile_path_CXX"
13465
13466 # Set to yes if exported symbols are required.
13467 always_export_symbols=$always_export_symbols_CXX
13468
13469 # The commands to list exported symbols.
13470 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13471
13472 # The commands to extract the exported symbol list from a shared archive.
13473 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13474
13475 # Symbols that should not be listed in the preloaded symbols.
13476 exclude_expsyms=$lt_exclude_expsyms_CXX
13477
13478 # Symbols that must always be exported.
13479 include_expsyms=$lt_include_expsyms_CXX
13480
13481 # ### END LIBTOOL TAG CONFIG: $tagname
13482
13483 __EOF__
13484
13485
13486 else
13487 # If there is no Makefile yet, we rely on a make rule to execute
13488 # `config.status --recheck' to rerun these tests and create the
13489 # libtool script then.
13490 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13491 if test -f "$ltmain_in"; then
13492 test -f Makefile && make "$ltmain"
13493 fi
13494 fi
13495
13496
13497 ac_ext=c
13498 ac_cpp='$CPP $CPPFLAGS'
13499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13502
13503 CC=$lt_save_CC
13504 LDCXX=$LD
13505 LD=$lt_save_LD
13506 GCC=$lt_save_GCC
13507 with_gnu_ldcxx=$with_gnu_ld
13508 with_gnu_ld=$lt_save_with_gnu_ld
13509 lt_cv_path_LDCXX=$lt_cv_path_LD
13510 lt_cv_path_LD=$lt_save_path_LD
13511 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13512 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13513
13514 else
13515 tagname=""
13516 fi
13517 ;;
13518
13519 F77)
13520 if test -n "$F77" && test "X$F77" != "Xno"; then
13521
13522 ac_ext=f
13523 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13524 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13525 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13526
13527
13528 archive_cmds_need_lc_F77=no
13529 allow_undefined_flag_F77=
13530 always_export_symbols_F77=no
13531 archive_expsym_cmds_F77=
13532 export_dynamic_flag_spec_F77=
13533 hardcode_direct_F77=no
13534 hardcode_libdir_flag_spec_F77=
13535 hardcode_libdir_flag_spec_ld_F77=
13536 hardcode_libdir_separator_F77=
13537 hardcode_minus_L_F77=no
13538 hardcode_automatic_F77=no
13539 module_cmds_F77=
13540 module_expsym_cmds_F77=
13541 link_all_deplibs_F77=unknown
13542 old_archive_cmds_F77=$old_archive_cmds
13543 no_undefined_flag_F77=
13544 whole_archive_flag_spec_F77=
13545 enable_shared_with_static_runtimes_F77=no
13546
13547 # Source file extension for f77 test sources.
13548 ac_ext=f
13549
13550 # Object file extension for compiled f77 test sources.
13551 objext=o
13552 objext_F77=$objext
13553
13554 # Code to be used in simple compile tests
13555 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13556
13557 # Code to be used in simple link tests
13558 lt_simple_link_test_code=" program t\n end\n"
13559
13560 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13561
13562 # If no C compiler was specified, use CC.
13563 LTCC=${LTCC-"$CC"}
13564
13565 # If no C compiler flags were specified, use CFLAGS.
13566 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13567
13568 # Allow CC to be a program name with arguments.
13569 compiler=$CC
13570
13571
13572 # save warnings/boilerplate of simple test code
13573 ac_outfile=conftest.$ac_objext
13574 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13575 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13576 _lt_compiler_boilerplate=`cat conftest.err`
13577 $rm conftest*
13578
13579 ac_outfile=conftest.$ac_objext
13580 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13581 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13582 _lt_linker_boilerplate=`cat conftest.err`
13583 $rm conftest*
13584
13585
13586 # Allow CC to be a program name with arguments.
13587 lt_save_CC="$CC"
13588 CC=${F77-"f77"}
13589 compiler=$CC
13590 compiler_F77=$CC
13591 for cc_temp in $compiler""; do
13592 case $cc_temp in
13593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13595 \-*) ;;
13596 *) break;;
13597 esac
13598 done
13599 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13600
13601
13602 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13603 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13604 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13605 echo "${ECHO_T}$can_build_shared" >&6; }
13606
13607 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13608 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13609 test "$can_build_shared" = "no" && enable_shared=no
13610
13611 # On AIX, shared libraries and static libraries use the same namespace, and
13612 # are all built from PIC.
13613 case $host_os in
13614 aix3*)
13615 test "$enable_shared" = yes && enable_static=no
13616 if test -n "$RANLIB"; then
13617 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13618 postinstall_cmds='$RANLIB $lib'
13619 fi
13620 ;;
13621 aix4* | aix5*)
13622 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13623 test "$enable_shared" = yes && enable_static=no
13624 fi
13625 ;;
13626 esac
13627 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13628 echo "${ECHO_T}$enable_shared" >&6; }
13629
13630 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13631 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13632 # Make sure either enable_shared or enable_static is yes.
13633 test "$enable_shared" = yes || enable_static=yes
13634 { echo "$as_me:$LINENO: result: $enable_static" >&5
13635 echo "${ECHO_T}$enable_static" >&6; }
13636
13637 GCC_F77="$G77"
13638 LD_F77="$LD"
13639
13640 lt_prog_compiler_wl_F77=
13641 lt_prog_compiler_pic_F77=
13642 lt_prog_compiler_static_F77=
13643
13644 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13645 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13646
13647 if test "$GCC" = yes; then
13648 lt_prog_compiler_wl_F77='-Wl,'
13649 lt_prog_compiler_static_F77='-static'
13650
13651 case $host_os in
13652 aix*)
13653 # All AIX code is PIC.
13654 if test "$host_cpu" = ia64; then
13655 # AIX 5 now supports IA64 processor
13656 lt_prog_compiler_static_F77='-Bstatic'
13657 fi
13658 ;;
13659
13660 amigaos*)
13661 # FIXME: we need at least 68020 code to build shared libraries, but
13662 # adding the `-m68020' flag to GCC prevents building anything better,
13663 # like `-m68040'.
13664 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13665 ;;
13666
13667 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13668 # PIC is the default for these OSes.
13669 ;;
13670
13671 mingw* | pw32* | os2*)
13672 # This hack is so that the source file can tell whether it is being
13673 # built for inclusion in a dll (and should export symbols for example).
13674 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13675 ;;
13676
13677 darwin* | rhapsody*)
13678 # PIC is the default on this platform
13679 # Common symbols not allowed in MH_DYLIB files
13680 lt_prog_compiler_pic_F77='-fno-common'
13681 ;;
13682
13683 interix3*)
13684 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13685 # Instead, we relocate shared libraries at runtime.
13686 ;;
13687
13688 msdosdjgpp*)
13689 # Just because we use GCC doesn't mean we suddenly get shared libraries
13690 # on systems that don't support them.
13691 lt_prog_compiler_can_build_shared_F77=no
13692 enable_shared=no
13693 ;;
13694
13695 sysv4*MP*)
13696 if test -d /usr/nec; then
13697 lt_prog_compiler_pic_F77=-Kconform_pic
13698 fi
13699 ;;
13700
13701 hpux*)
13702 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13703 # not for PA HP-UX.
13704 case $host_cpu in
13705 hppa*64*|ia64*)
13706 # +Z the default
13707 ;;
13708 *)
13709 lt_prog_compiler_pic_F77='-fPIC'
13710 ;;
13711 esac
13712 ;;
13713
13714 *)
13715 lt_prog_compiler_pic_F77='-fPIC'
13716 ;;
13717 esac
13718 else
13719 # PORTME Check for flag to pass linker flags through the system compiler.
13720 case $host_os in
13721 aix*)
13722 lt_prog_compiler_wl_F77='-Wl,'
13723 if test "$host_cpu" = ia64; then
13724 # AIX 5 now supports IA64 processor
13725 lt_prog_compiler_static_F77='-Bstatic'
13726 else
13727 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13728 fi
13729 ;;
13730 darwin*)
13731 # PIC is the default on this platform
13732 # Common symbols not allowed in MH_DYLIB files
13733 case $cc_basename in
13734 xlc*)
13735 lt_prog_compiler_pic_F77='-qnocommon'
13736 lt_prog_compiler_wl_F77='-Wl,'
13737 ;;
13738 esac
13739 ;;
13740
13741 mingw* | pw32* | os2*)
13742 # This hack is so that the source file can tell whether it is being
13743 # built for inclusion in a dll (and should export symbols for example).
13744 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13745 ;;
13746
13747 hpux9* | hpux10* | hpux11*)
13748 lt_prog_compiler_wl_F77='-Wl,'
13749 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13750 # not for PA HP-UX.
13751 case $host_cpu in
13752 hppa*64*|ia64*)
13753 # +Z the default
13754 ;;
13755 *)
13756 lt_prog_compiler_pic_F77='+Z'
13757 ;;
13758 esac
13759 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13760 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13761 ;;
13762
13763 irix5* | irix6* | nonstopux*)
13764 lt_prog_compiler_wl_F77='-Wl,'
13765 # PIC (with -KPIC) is the default.
13766 lt_prog_compiler_static_F77='-non_shared'
13767 ;;
13768
13769 newsos6)
13770 lt_prog_compiler_pic_F77='-KPIC'
13771 lt_prog_compiler_static_F77='-Bstatic'
13772 ;;
13773
13774 linux*)
13775 case $cc_basename in
13776 icc* | ecc*)
13777 lt_prog_compiler_wl_F77='-Wl,'
13778 lt_prog_compiler_pic_F77='-KPIC'
13779 lt_prog_compiler_static_F77='-static'
13780 ;;
13781 pgcc* | pgf77* | pgf90* | pgf95*)
13782 # Portland Group compilers (*not* the Pentium gcc compiler,
13783 # which looks to be a dead project)
13784 lt_prog_compiler_wl_F77='-Wl,'
13785 lt_prog_compiler_pic_F77='-fpic'
13786 lt_prog_compiler_static_F77='-Bstatic'
13787 ;;
13788 ccc*)
13789 lt_prog_compiler_wl_F77='-Wl,'
13790 # All Alpha code is PIC.
13791 lt_prog_compiler_static_F77='-non_shared'
13792 ;;
13793 esac
13794 ;;
13795
13796 osf3* | osf4* | osf5*)
13797 lt_prog_compiler_wl_F77='-Wl,'
13798 # All OSF/1 code is PIC.
13799 lt_prog_compiler_static_F77='-non_shared'
13800 ;;
13801
13802 solaris*)
13803 lt_prog_compiler_pic_F77='-KPIC'
13804 lt_prog_compiler_static_F77='-Bstatic'
13805 case $cc_basename in
13806 f77* | f90* | f95*)
13807 lt_prog_compiler_wl_F77='-Qoption ld ';;
13808 *)
13809 lt_prog_compiler_wl_F77='-Wl,';;
13810 esac
13811 ;;
13812
13813 sunos4*)
13814 lt_prog_compiler_wl_F77='-Qoption ld '
13815 lt_prog_compiler_pic_F77='-PIC'
13816 lt_prog_compiler_static_F77='-Bstatic'
13817 ;;
13818
13819 sysv4 | sysv4.2uw2* | sysv4.3*)
13820 lt_prog_compiler_wl_F77='-Wl,'
13821 lt_prog_compiler_pic_F77='-KPIC'
13822 lt_prog_compiler_static_F77='-Bstatic'
13823 ;;
13824
13825 sysv4*MP*)
13826 if test -d /usr/nec ;then
13827 lt_prog_compiler_pic_F77='-Kconform_pic'
13828 lt_prog_compiler_static_F77='-Bstatic'
13829 fi
13830 ;;
13831
13832 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13833 lt_prog_compiler_wl_F77='-Wl,'
13834 lt_prog_compiler_pic_F77='-KPIC'
13835 lt_prog_compiler_static_F77='-Bstatic'
13836 ;;
13837
13838 unicos*)
13839 lt_prog_compiler_wl_F77='-Wl,'
13840 lt_prog_compiler_can_build_shared_F77=no
13841 ;;
13842
13843 uts4*)
13844 lt_prog_compiler_pic_F77='-pic'
13845 lt_prog_compiler_static_F77='-Bstatic'
13846 ;;
13847
13848 *)
13849 lt_prog_compiler_can_build_shared_F77=no
13850 ;;
13851 esac
13852 fi
13853
13854 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13855 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13856
13857 #
13858 # Check to make sure the PIC flag actually works.
13859 #
13860 if test -n "$lt_prog_compiler_pic_F77"; then
13861
13862 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13863 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13864 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867 lt_prog_compiler_pic_works_F77=no
13868 ac_outfile=conftest.$ac_objext
13869 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13870 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13871 # Insert the option either (1) after the last *FLAGS variable, or
13872 # (2) before a word containing "conftest.", or (3) at the end.
13873 # Note that $ac_compile itself does not contain backslashes and begins
13874 # with a dollar sign (not a hyphen), so the echo should work correctly.
13875 # The option is referenced via a variable to avoid confusing sed.
13876 lt_compile=`echo "$ac_compile" | $SED \
13877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13879 -e 's:$: $lt_compiler_flag:'`
13880 (eval echo "\"\$as_me:13880: $lt_compile\"" >&5)
13881 (eval "$lt_compile" 2>conftest.err)
13882 ac_status=$?
13883 cat conftest.err >&5
13884 echo "$as_me:13884: \$? = $ac_status" >&5
13885 if (exit $ac_status) && test -s "$ac_outfile"; then
13886 # The compiler can only warn and ignore the option if not recognized
13887 # So say no if there are warnings other than the usual output.
13888 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13890 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13891 lt_prog_compiler_pic_works_F77=yes
13892 fi
13893 fi
13894 $rm conftest*
13895
13896 fi
13897 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13898 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13899
13900 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13901 case $lt_prog_compiler_pic_F77 in
13902 "" | " "*) ;;
13903 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13904 esac
13905 else
13906 lt_prog_compiler_pic_F77=
13907 lt_prog_compiler_can_build_shared_F77=no
13908 fi
13909
13910 fi
13911 case $host_os in
13912 # For platforms which do not support PIC, -DPIC is meaningless:
13913 *djgpp*)
13914 lt_prog_compiler_pic_F77=
13915 ;;
13916 *)
13917 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13918 ;;
13919 esac
13920
13921 #
13922 # Check to make sure the static flag actually works.
13923 #
13924 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13925 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13926 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13927 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 else
13930 lt_prog_compiler_static_works_F77=no
13931 save_LDFLAGS="$LDFLAGS"
13932 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13933 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13934 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13935 # The linker can only warn and ignore the option if not recognized
13936 # So say no if there are warnings
13937 if test -s conftest.err; then
13938 # Append any errors to the config.log.
13939 cat conftest.err 1>&5
13940 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13942 if diff conftest.exp conftest.er2 >/dev/null; then
13943 lt_prog_compiler_static_works_F77=yes
13944 fi
13945 else
13946 lt_prog_compiler_static_works_F77=yes
13947 fi
13948 fi
13949 $rm conftest*
13950 LDFLAGS="$save_LDFLAGS"
13951
13952 fi
13953 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13954 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13955
13956 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13957 :
13958 else
13959 lt_prog_compiler_static_F77=
13960 fi
13961
13962
13963 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13964 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13965 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968 lt_cv_prog_compiler_c_o_F77=no
13969 $rm -r conftest 2>/dev/null
13970 mkdir conftest
13971 cd conftest
13972 mkdir out
13973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13974
13975 lt_compiler_flag="-o out/conftest2.$ac_objext"
13976 # Insert the option either (1) after the last *FLAGS variable, or
13977 # (2) before a word containing "conftest.", or (3) at the end.
13978 # Note that $ac_compile itself does not contain backslashes and begins
13979 # with a dollar sign (not a hyphen), so the echo should work correctly.
13980 lt_compile=`echo "$ac_compile" | $SED \
13981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13983 -e 's:$: $lt_compiler_flag:'`
13984 (eval echo "\"\$as_me:13984: $lt_compile\"" >&5)
13985 (eval "$lt_compile" 2>out/conftest.err)
13986 ac_status=$?
13987 cat out/conftest.err >&5
13988 echo "$as_me:13988: \$? = $ac_status" >&5
13989 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13990 then
13991 # The compiler can only warn and ignore the option if not recognized
13992 # So say no if there are warnings
13993 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13996 lt_cv_prog_compiler_c_o_F77=yes
13997 fi
13998 fi
13999 chmod u+w . 2>&5
14000 $rm conftest*
14001 # SGI C++ compiler will create directory out/ii_files/ for
14002 # template instantiation
14003 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14004 $rm out/* && rmdir out
14005 cd ..
14006 rmdir conftest
14007 $rm conftest*
14008
14009 fi
14010 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14011 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14012
14013
14014 hard_links="nottested"
14015 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14016 # do not overwrite the value of need_locks provided by the user
14017 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14018 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14019 hard_links=yes
14020 $rm conftest*
14021 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14022 touch conftest.a
14023 ln conftest.a conftest.b 2>&5 || hard_links=no
14024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14025 { echo "$as_me:$LINENO: result: $hard_links" >&5
14026 echo "${ECHO_T}$hard_links" >&6; }
14027 if test "$hard_links" = no; then
14028 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14029 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14030 need_locks=warn
14031 fi
14032 else
14033 need_locks=no
14034 fi
14035
14036 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14037 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14038
14039 runpath_var=
14040 allow_undefined_flag_F77=
14041 enable_shared_with_static_runtimes_F77=no
14042 archive_cmds_F77=
14043 archive_expsym_cmds_F77=
14044 old_archive_From_new_cmds_F77=
14045 old_archive_from_expsyms_cmds_F77=
14046 export_dynamic_flag_spec_F77=
14047 whole_archive_flag_spec_F77=
14048 thread_safe_flag_spec_F77=
14049 hardcode_libdir_flag_spec_F77=
14050 hardcode_libdir_flag_spec_ld_F77=
14051 hardcode_libdir_separator_F77=
14052 hardcode_direct_F77=no
14053 hardcode_minus_L_F77=no
14054 hardcode_shlibpath_var_F77=unsupported
14055 link_all_deplibs_F77=unknown
14056 hardcode_automatic_F77=no
14057 module_cmds_F77=
14058 module_expsym_cmds_F77=
14059 always_export_symbols_F77=no
14060 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14061 # include_expsyms should be a list of space-separated symbols to be *always*
14062 # included in the symbol list
14063 include_expsyms_F77=
14064 # exclude_expsyms can be an extended regexp of symbols to exclude
14065 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14066 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14067 # as well as any symbol that contains `d'.
14068 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14069 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14070 # platforms (ab)use it in PIC code, but their linkers get confused if
14071 # the symbol is explicitly referenced. Since portable code cannot
14072 # rely on this symbol name, it's probably fine to never include it in
14073 # preloaded symbol tables.
14074 extract_expsyms_cmds=
14075 # Just being paranoid about ensuring that cc_basename is set.
14076 for cc_temp in $compiler""; do
14077 case $cc_temp in
14078 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14079 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14080 \-*) ;;
14081 *) break;;
14082 esac
14083 done
14084 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14085
14086 case $host_os in
14087 cygwin* | mingw* | pw32*)
14088 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14089 # When not using gcc, we currently assume that we are using
14090 # Microsoft Visual C++.
14091 if test "$GCC" != yes; then
14092 with_gnu_ld=no
14093 fi
14094 ;;
14095 interix*)
14096 # we just hope/assume this is gcc and not c89 (= MSVC++)
14097 with_gnu_ld=yes
14098 ;;
14099 openbsd*)
14100 with_gnu_ld=no
14101 ;;
14102 esac
14103
14104 ld_shlibs_F77=yes
14105 if test "$with_gnu_ld" = yes; then
14106 # If archive_cmds runs LD, not CC, wlarc should be empty
14107 wlarc='${wl}'
14108
14109 # Set some defaults for GNU ld with shared library support. These
14110 # are reset later if shared libraries are not supported. Putting them
14111 # here allows them to be overridden if necessary.
14112 runpath_var=LD_RUN_PATH
14113 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14114 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14115 # ancient GNU ld didn't support --whole-archive et. al.
14116 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14117 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14118 else
14119 whole_archive_flag_spec_F77=
14120 fi
14121 supports_anon_versioning=no
14122 case `$LD -v 2>/dev/null` in
14123 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14124 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14125 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14126 *\ 2.11.*) ;; # other 2.11 versions
14127 *) supports_anon_versioning=yes ;;
14128 esac
14129
14130 # See if GNU ld supports shared libraries.
14131 case $host_os in
14132 aix3* | aix4* | aix5*)
14133 # On AIX/PPC, the GNU linker is very broken
14134 if test "$host_cpu" != ia64; then
14135 ld_shlibs_F77=no
14136 cat <<EOF 1>&2
14137
14138 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14139 *** to be unable to reliably create shared libraries on AIX.
14140 *** Therefore, libtool is disabling shared libraries support. If you
14141 *** really care for shared libraries, you may want to modify your PATH
14142 *** so that a non-GNU linker is found, and then restart.
14143
14144 EOF
14145 fi
14146 ;;
14147
14148 amigaos*)
14149 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)'
14150 hardcode_libdir_flag_spec_F77='-L$libdir'
14151 hardcode_minus_L_F77=yes
14152
14153 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14154 # that the semantics of dynamic libraries on AmigaOS, at least up
14155 # to version 4, is to share data among multiple programs linked
14156 # with the same dynamic library. Since this doesn't match the
14157 # behavior of shared libraries on other platforms, we can't use
14158 # them.
14159 ld_shlibs_F77=no
14160 ;;
14161
14162 beos*)
14163 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14164 allow_undefined_flag_F77=unsupported
14165 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14166 # support --undefined. This deserves some investigation. FIXME
14167 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14168 else
14169 ld_shlibs_F77=no
14170 fi
14171 ;;
14172
14173 cygwin* | mingw* | pw32*)
14174 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14175 # as there is no search path for DLLs.
14176 hardcode_libdir_flag_spec_F77='-L$libdir'
14177 allow_undefined_flag_F77=unsupported
14178 always_export_symbols_F77=no
14179 enable_shared_with_static_runtimes_F77=yes
14180 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14181
14182 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14183 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14184 # If the export-symbols file already is a .def file (1st line
14185 # is EXPORTS), use it as is; otherwise, prepend...
14186 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14187 cp $export_symbols $output_objdir/$soname.def;
14188 else
14189 echo EXPORTS > $output_objdir/$soname.def;
14190 cat $export_symbols >> $output_objdir/$soname.def;
14191 fi~
14192 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14193 else
14194 ld_shlibs_F77=no
14195 fi
14196 ;;
14197
14198 interix3*)
14199 hardcode_direct_F77=no
14200 hardcode_shlibpath_var_F77=no
14201 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14202 export_dynamic_flag_spec_F77='${wl}-E'
14203 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14204 # Instead, shared libraries are loaded at an image base (0x10000000 by
14205 # default) and relocated if they conflict, which is a slow very memory
14206 # consuming and fragmenting process. To avoid this, we pick a random,
14207 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14208 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14209 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'
14210 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'
14211 ;;
14212
14213 linux*)
14214 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14215 tmp_addflag=
14216 case $cc_basename,$host_cpu in
14217 pgcc*) # Portland Group C compiler
14218 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'
14219 tmp_addflag=' $pic_flag'
14220 ;;
14221 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14222 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'
14223 tmp_addflag=' $pic_flag -Mnomain' ;;
14224 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14225 tmp_addflag=' -i_dynamic' ;;
14226 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14227 tmp_addflag=' -i_dynamic -nofor_main' ;;
14228 ifc* | ifort*) # Intel Fortran compiler
14229 tmp_addflag=' -nofor_main' ;;
14230 esac
14231 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14232
14233 if test $supports_anon_versioning = yes; then
14234 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14235 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14236 $echo "local: *; };" >> $output_objdir/$libname.ver~
14237 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14238 fi
14239 else
14240 ld_shlibs_F77=no
14241 fi
14242 ;;
14243
14244 netbsd*)
14245 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14246 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14247 wlarc=
14248 else
14249 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14250 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14251 fi
14252 ;;
14253
14254 solaris*)
14255 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14256 ld_shlibs_F77=no
14257 cat <<EOF 1>&2
14258
14259 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14260 *** create shared libraries on Solaris systems. Therefore, libtool
14261 *** is disabling shared libraries support. We urge you to upgrade GNU
14262 *** binutils to release 2.9.1 or newer. Another option is to modify
14263 *** your PATH or compiler configuration so that the native linker is
14264 *** used, and then restart.
14265
14266 EOF
14267 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14268 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14269 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14270 else
14271 ld_shlibs_F77=no
14272 fi
14273 ;;
14274
14275 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14276 case `$LD -v 2>&1` in
14277 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14278 ld_shlibs_F77=no
14279 cat <<_LT_EOF 1>&2
14280
14281 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14282 *** reliably create shared libraries on SCO systems. Therefore, libtool
14283 *** is disabling shared libraries support. We urge you to upgrade GNU
14284 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14285 *** your PATH or compiler configuration so that the native linker is
14286 *** used, and then restart.
14287
14288 _LT_EOF
14289 ;;
14290 *)
14291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14292 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14293 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14294 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14295 else
14296 ld_shlibs_F77=no
14297 fi
14298 ;;
14299 esac
14300 ;;
14301
14302 sunos4*)
14303 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14304 wlarc=
14305 hardcode_direct_F77=yes
14306 hardcode_shlibpath_var_F77=no
14307 ;;
14308
14309 *)
14310 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14311 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14312 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14313 else
14314 ld_shlibs_F77=no
14315 fi
14316 ;;
14317 esac
14318
14319 if test "$ld_shlibs_F77" = no; then
14320 runpath_var=
14321 hardcode_libdir_flag_spec_F77=
14322 export_dynamic_flag_spec_F77=
14323 whole_archive_flag_spec_F77=
14324 fi
14325 else
14326 # PORTME fill in a description of your system's linker (not GNU ld)
14327 case $host_os in
14328 aix3*)
14329 allow_undefined_flag_F77=unsupported
14330 always_export_symbols_F77=yes
14331 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'
14332 # Note: this linker hardcodes the directories in LIBPATH if there
14333 # are no directories specified by -L.
14334 hardcode_minus_L_F77=yes
14335 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14336 # Neither direct hardcoding nor static linking is supported with a
14337 # broken collect2.
14338 hardcode_direct_F77=unsupported
14339 fi
14340 ;;
14341
14342 aix4* | aix5*)
14343 if test "$host_cpu" = ia64; then
14344 # On IA64, the linker does run time linking by default, so we don't
14345 # have to do anything special.
14346 aix_use_runtimelinking=no
14347 exp_sym_flag='-Bexport'
14348 no_entry_flag=""
14349 else
14350 # If we're using GNU nm, then we don't want the "-C" option.
14351 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14352 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14353 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'
14354 else
14355 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'
14356 fi
14357 aix_use_runtimelinking=no
14358
14359 # Test if we are trying to use run time linking or normal
14360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14361 # need to do runtime linking.
14362 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14363 for ld_flag in $LDFLAGS; do
14364 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14365 aix_use_runtimelinking=yes
14366 break
14367 fi
14368 done
14369 ;;
14370 esac
14371
14372 exp_sym_flag='-bexport'
14373 no_entry_flag='-bnoentry'
14374 fi
14375
14376 # When large executables or shared objects are built, AIX ld can
14377 # have problems creating the table of contents. If linking a library
14378 # or program results in "error TOC overflow" add -mminimal-toc to
14379 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14380 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14381
14382 archive_cmds_F77=''
14383 hardcode_direct_F77=yes
14384 hardcode_libdir_separator_F77=':'
14385 link_all_deplibs_F77=yes
14386
14387 if test "$GCC" = yes; then
14388 case $host_os in aix4.[012]|aix4.[012].*)
14389 # We only want to do this on AIX 4.2 and lower, the check
14390 # below for broken collect2 doesn't work under 4.3+
14391 collect2name=`${CC} -print-prog-name=collect2`
14392 if test -f "$collect2name" && \
14393 strings "$collect2name" | grep resolve_lib_name >/dev/null
14394 then
14395 # We have reworked collect2
14396 hardcode_direct_F77=yes
14397 else
14398 # We have old collect2
14399 hardcode_direct_F77=unsupported
14400 # It fails to find uninstalled libraries when the uninstalled
14401 # path is not listed in the libpath. Setting hardcode_minus_L
14402 # to unsupported forces relinking
14403 hardcode_minus_L_F77=yes
14404 hardcode_libdir_flag_spec_F77='-L$libdir'
14405 hardcode_libdir_separator_F77=
14406 fi
14407 ;;
14408 esac
14409 shared_flag='-shared'
14410 if test "$aix_use_runtimelinking" = yes; then
14411 shared_flag="$shared_flag "'${wl}-G'
14412 fi
14413 else
14414 # not using gcc
14415 if test "$host_cpu" = ia64; then
14416 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14417 # chokes on -Wl,-G. The following line is correct:
14418 shared_flag='-G'
14419 else
14420 if test "$aix_use_runtimelinking" = yes; then
14421 shared_flag='${wl}-G'
14422 else
14423 shared_flag='${wl}-bM:SRE'
14424 fi
14425 fi
14426 fi
14427
14428 # It seems that -bexpall does not export symbols beginning with
14429 # underscore (_), so it is better to generate a list of symbols to export.
14430 always_export_symbols_F77=yes
14431 if test "$aix_use_runtimelinking" = yes; then
14432 # Warning - without using the other runtime loading flags (-brtl),
14433 # -berok will link without error, but may produce a broken library.
14434 allow_undefined_flag_F77='-berok'
14435 # Determine the default libpath from the value encoded in an empty executable.
14436 cat >conftest.$ac_ext <<_ACEOF
14437 program main
14438
14439 end
14440 _ACEOF
14441 rm -f conftest.$ac_objext conftest$ac_exeext
14442 if { (ac_try="$ac_link"
14443 case "(($ac_try" in
14444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14445 *) ac_try_echo=$ac_try;;
14446 esac
14447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14448 (eval "$ac_link") 2>conftest.er1
14449 ac_status=$?
14450 grep -v '^ *+' conftest.er1 >conftest.err
14451 rm -f conftest.er1
14452 cat conftest.err >&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } && {
14455 test -z "$ac_f77_werror_flag" ||
14456 test ! -s conftest.err
14457 } && test -s conftest$ac_exeext &&
14458 $as_test_x conftest$ac_exeext; then
14459
14460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14461 }'`
14462 # Check for a 64-bit object if we didn't find anything.
14463 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14464 }'`; fi
14465 else
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14468
14469
14470 fi
14471
14472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14473 conftest$ac_exeext conftest.$ac_ext
14474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14475
14476 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14477 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"
14478 else
14479 if test "$host_cpu" = ia64; then
14480 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14481 allow_undefined_flag_F77="-z nodefs"
14482 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"
14483 else
14484 # Determine the default libpath from the value encoded in an empty executable.
14485 cat >conftest.$ac_ext <<_ACEOF
14486 program main
14487
14488 end
14489 _ACEOF
14490 rm -f conftest.$ac_objext conftest$ac_exeext
14491 if { (ac_try="$ac_link"
14492 case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14495 esac
14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_link") 2>conftest.er1
14498 ac_status=$?
14499 grep -v '^ *+' conftest.er1 >conftest.err
14500 rm -f conftest.er1
14501 cat conftest.err >&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } && {
14504 test -z "$ac_f77_werror_flag" ||
14505 test ! -s conftest.err
14506 } && test -s conftest$ac_exeext &&
14507 $as_test_x conftest$ac_exeext; then
14508
14509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14510 }'`
14511 # Check for a 64-bit object if we didn't find anything.
14512 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14513 }'`; fi
14514 else
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14517
14518
14519 fi
14520
14521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14522 conftest$ac_exeext conftest.$ac_ext
14523 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14524
14525 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14526 # Warning - without using the other run time loading flags,
14527 # -berok will link without error, but may produce a broken library.
14528 no_undefined_flag_F77=' ${wl}-bernotok'
14529 allow_undefined_flag_F77=' ${wl}-berok'
14530 # Exported symbols can be pulled into shared objects from archives
14531 whole_archive_flag_spec_F77='$convenience'
14532 archive_cmds_need_lc_F77=yes
14533 # This is similar to how AIX traditionally builds its shared libraries.
14534 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'
14535 fi
14536 fi
14537 ;;
14538
14539 amigaos*)
14540 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)'
14541 hardcode_libdir_flag_spec_F77='-L$libdir'
14542 hardcode_minus_L_F77=yes
14543 # see comment about different semantics on the GNU ld section
14544 ld_shlibs_F77=no
14545 ;;
14546
14547 bsdi[45]*)
14548 export_dynamic_flag_spec_F77=-rdynamic
14549 ;;
14550
14551 cygwin* | mingw* | pw32*)
14552 # When not using gcc, we currently assume that we are using
14553 # Microsoft Visual C++.
14554 # hardcode_libdir_flag_spec is actually meaningless, as there is
14555 # no search path for DLLs.
14556 hardcode_libdir_flag_spec_F77=' '
14557 allow_undefined_flag_F77=unsupported
14558 # Tell ltmain to make .lib files, not .a files.
14559 libext=lib
14560 # Tell ltmain to make .dll files, not .so files.
14561 shrext_cmds=".dll"
14562 # FIXME: Setting linknames here is a bad hack.
14563 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14564 # The linker will automatically build a .lib file if we build a DLL.
14565 old_archive_From_new_cmds_F77='true'
14566 # FIXME: Should let the user specify the lib program.
14567 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14568 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14569 enable_shared_with_static_runtimes_F77=yes
14570 ;;
14571
14572 darwin* | rhapsody*)
14573 case $host_os in
14574 rhapsody* | darwin1.[012])
14575 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14576 ;;
14577 *) # Darwin 1.3 on
14578 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14579 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14580 else
14581 case ${MACOSX_DEPLOYMENT_TARGET} in
14582 10.[012])
14583 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14584 ;;
14585 10.*)
14586 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14587 ;;
14588 esac
14589 fi
14590 ;;
14591 esac
14592 archive_cmds_need_lc_F77=no
14593 hardcode_direct_F77=no
14594 hardcode_automatic_F77=yes
14595 hardcode_shlibpath_var_F77=unsupported
14596 whole_archive_flag_spec_F77=''
14597 link_all_deplibs_F77=yes
14598 if test "$GCC" = yes ; then
14599 output_verbose_link_cmd='echo'
14600 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14601 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14602 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14603 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14604 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}'
14605 else
14606 case $cc_basename in
14607 xlc*)
14608 output_verbose_link_cmd='echo'
14609 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14610 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14611 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14612 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14613 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}'
14614 ;;
14615 *)
14616 ld_shlibs_F77=no
14617 ;;
14618 esac
14619 fi
14620 ;;
14621
14622 dgux*)
14623 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14624 hardcode_libdir_flag_spec_F77='-L$libdir'
14625 hardcode_shlibpath_var_F77=no
14626 ;;
14627
14628 freebsd1*)
14629 ld_shlibs_F77=no
14630 ;;
14631
14632 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14633 # support. Future versions do this automatically, but an explicit c++rt0.o
14634 # does not break anything, and helps significantly (at the cost of a little
14635 # extra space).
14636 freebsd2.2*)
14637 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14638 hardcode_libdir_flag_spec_F77='-R$libdir'
14639 hardcode_direct_F77=yes
14640 hardcode_shlibpath_var_F77=no
14641 ;;
14642
14643 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14644 freebsd2*)
14645 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14646 hardcode_direct_F77=yes
14647 hardcode_minus_L_F77=yes
14648 hardcode_shlibpath_var_F77=no
14649 ;;
14650
14651 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14652 freebsd* | kfreebsd*-gnu | dragonfly*)
14653 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14654 hardcode_libdir_flag_spec_F77='-R$libdir'
14655 hardcode_direct_F77=yes
14656 hardcode_shlibpath_var_F77=no
14657 ;;
14658
14659 hpux9*)
14660 if test "$GCC" = yes; then
14661 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'
14662 else
14663 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'
14664 fi
14665 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14666 hardcode_libdir_separator_F77=:
14667 hardcode_direct_F77=yes
14668
14669 # hardcode_minus_L: Not really in the search PATH,
14670 # but as the default location of the library.
14671 hardcode_minus_L_F77=yes
14672 export_dynamic_flag_spec_F77='${wl}-E'
14673 ;;
14674
14675 hpux10*)
14676 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14677 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14678 else
14679 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14680 fi
14681 if test "$with_gnu_ld" = no; then
14682 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14683 hardcode_libdir_separator_F77=:
14684
14685 hardcode_direct_F77=yes
14686 export_dynamic_flag_spec_F77='${wl}-E'
14687
14688 # hardcode_minus_L: Not really in the search PATH,
14689 # but as the default location of the library.
14690 hardcode_minus_L_F77=yes
14691 fi
14692 ;;
14693
14694 hpux11*)
14695 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14696 case $host_cpu in
14697 hppa*64*)
14698 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14699 ;;
14700 ia64*)
14701 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14702 ;;
14703 *)
14704 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14705 ;;
14706 esac
14707 else
14708 case $host_cpu in
14709 hppa*64*)
14710 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14711 ;;
14712 ia64*)
14713 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14714 ;;
14715 *)
14716 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14717 ;;
14718 esac
14719 fi
14720 if test "$with_gnu_ld" = no; then
14721 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14722 hardcode_libdir_separator_F77=:
14723
14724 case $host_cpu in
14725 hppa*64*|ia64*)
14726 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14727 hardcode_direct_F77=no
14728 hardcode_shlibpath_var_F77=no
14729 ;;
14730 *)
14731 hardcode_direct_F77=yes
14732 export_dynamic_flag_spec_F77='${wl}-E'
14733
14734 # hardcode_minus_L: Not really in the search PATH,
14735 # but as the default location of the library.
14736 hardcode_minus_L_F77=yes
14737 ;;
14738 esac
14739 fi
14740 ;;
14741
14742 irix5* | irix6* | nonstopux*)
14743 if test "$GCC" = yes; then
14744 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'
14745 else
14746 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'
14747 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14748 fi
14749 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14750 hardcode_libdir_separator_F77=:
14751 link_all_deplibs_F77=yes
14752 ;;
14753
14754 netbsd*)
14755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14756 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14757 else
14758 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14759 fi
14760 hardcode_libdir_flag_spec_F77='-R$libdir'
14761 hardcode_direct_F77=yes
14762 hardcode_shlibpath_var_F77=no
14763 ;;
14764
14765 newsos6)
14766 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14767 hardcode_direct_F77=yes
14768 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14769 hardcode_libdir_separator_F77=:
14770 hardcode_shlibpath_var_F77=no
14771 ;;
14772
14773 openbsd*)
14774 hardcode_direct_F77=yes
14775 hardcode_shlibpath_var_F77=no
14776 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14777 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14778 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14779 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14780 export_dynamic_flag_spec_F77='${wl}-E'
14781 else
14782 case $host_os in
14783 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14784 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14785 hardcode_libdir_flag_spec_F77='-R$libdir'
14786 ;;
14787 *)
14788 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14789 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14790 ;;
14791 esac
14792 fi
14793 ;;
14794
14795 os2*)
14796 hardcode_libdir_flag_spec_F77='-L$libdir'
14797 hardcode_minus_L_F77=yes
14798 allow_undefined_flag_F77=unsupported
14799 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'
14800 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14801 ;;
14802
14803 osf3*)
14804 if test "$GCC" = yes; then
14805 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14806 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'
14807 else
14808 allow_undefined_flag_F77=' -expect_unresolved \*'
14809 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'
14810 fi
14811 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14812 hardcode_libdir_separator_F77=:
14813 ;;
14814
14815 osf4* | osf5*) # as osf3* with the addition of -msym flag
14816 if test "$GCC" = yes; then
14817 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14818 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'
14819 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14820 else
14821 allow_undefined_flag_F77=' -expect_unresolved \*'
14822 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'
14823 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~
14824 $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'
14825
14826 # Both c and cxx compiler support -rpath directly
14827 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14828 fi
14829 hardcode_libdir_separator_F77=:
14830 ;;
14831
14832 solaris*)
14833 no_undefined_flag_F77=' -z text'
14834 if test "$GCC" = yes; then
14835 wlarc='${wl}'
14836 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14837 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14838 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14839 else
14840 wlarc=''
14841 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14842 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14843 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14844 fi
14845 hardcode_libdir_flag_spec_F77='-R$libdir'
14846 hardcode_shlibpath_var_F77=no
14847 case $host_os in
14848 solaris2.[0-5] | solaris2.[0-5].*) ;;
14849 *)
14850 # The compiler driver will combine linker options so we
14851 # cannot just pass the convience library names through
14852 # without $wl, iff we do not link with $LD.
14853 # Luckily, gcc supports the same syntax we need for Sun Studio.
14854 # Supported since Solaris 2.6 (maybe 2.5.1?)
14855 case $wlarc in
14856 '')
14857 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14858 *)
14859 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14860 esac ;;
14861 esac
14862 link_all_deplibs_F77=yes
14863 ;;
14864
14865 sunos4*)
14866 if test "x$host_vendor" = xsequent; then
14867 # Use $CC to link under sequent, because it throws in some extra .o
14868 # files that make .init and .fini sections work.
14869 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14870 else
14871 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14872 fi
14873 hardcode_libdir_flag_spec_F77='-L$libdir'
14874 hardcode_direct_F77=yes
14875 hardcode_minus_L_F77=yes
14876 hardcode_shlibpath_var_F77=no
14877 ;;
14878
14879 sysv4)
14880 case $host_vendor in
14881 sni)
14882 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14883 hardcode_direct_F77=yes # is this really true???
14884 ;;
14885 siemens)
14886 ## LD is ld it makes a PLAMLIB
14887 ## CC just makes a GrossModule.
14888 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14889 reload_cmds_F77='$CC -r -o $output$reload_objs'
14890 hardcode_direct_F77=no
14891 ;;
14892 motorola)
14893 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14894 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14895 ;;
14896 esac
14897 runpath_var='LD_RUN_PATH'
14898 hardcode_shlibpath_var_F77=no
14899 ;;
14900
14901 sysv4.3*)
14902 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14903 hardcode_shlibpath_var_F77=no
14904 export_dynamic_flag_spec_F77='-Bexport'
14905 ;;
14906
14907 sysv4*MP*)
14908 if test -d /usr/nec; then
14909 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14910 hardcode_shlibpath_var_F77=no
14911 runpath_var=LD_RUN_PATH
14912 hardcode_runpath_var=yes
14913 ld_shlibs_F77=yes
14914 fi
14915 ;;
14916
14917 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14918 no_undefined_flag_F77='${wl}-z,text'
14919 archive_cmds_need_lc_F77=no
14920 hardcode_shlibpath_var_F77=no
14921 runpath_var='LD_RUN_PATH'
14922
14923 if test "$GCC" = yes; then
14924 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14925 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14926 else
14927 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14928 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14929 fi
14930 ;;
14931
14932 sysv5* | sco3.2v5* | sco5v6*)
14933 # Note: We can NOT use -z defs as we might desire, because we do not
14934 # link with -lc, and that would cause any symbols used from libc to
14935 # always be unresolved, which means just about no library would
14936 # ever link correctly. If we're not using GNU ld we use -z text
14937 # though, which does catch some bad symbols but isn't as heavy-handed
14938 # as -z defs.
14939 no_undefined_flag_F77='${wl}-z,text'
14940 allow_undefined_flag_F77='${wl}-z,nodefs'
14941 archive_cmds_need_lc_F77=no
14942 hardcode_shlibpath_var_F77=no
14943 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14944 hardcode_libdir_separator_F77=':'
14945 link_all_deplibs_F77=yes
14946 export_dynamic_flag_spec_F77='${wl}-Bexport'
14947 runpath_var='LD_RUN_PATH'
14948
14949 if test "$GCC" = yes; then
14950 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14951 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14952 else
14953 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14954 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14955 fi
14956 ;;
14957
14958 uts4*)
14959 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14960 hardcode_libdir_flag_spec_F77='-L$libdir'
14961 hardcode_shlibpath_var_F77=no
14962 ;;
14963
14964 *)
14965 ld_shlibs_F77=no
14966 ;;
14967 esac
14968 fi
14969
14970 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14971 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14972 test "$ld_shlibs_F77" = no && can_build_shared=no
14973
14974 #
14975 # Do we need to explicitly link libc?
14976 #
14977 case "x$archive_cmds_need_lc_F77" in
14978 x|xyes)
14979 # Assume -lc should be added
14980 archive_cmds_need_lc_F77=yes
14981
14982 if test "$enable_shared" = yes && test "$GCC" = yes; then
14983 case $archive_cmds_F77 in
14984 *'~'*)
14985 # FIXME: we may have to deal with multi-command sequences.
14986 ;;
14987 '$CC '*)
14988 # Test whether the compiler implicitly links with -lc since on some
14989 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14990 # to ld, don't add -lc before -lgcc.
14991 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14992 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14993 $rm conftest*
14994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14995
14996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14997 (eval $ac_compile) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } 2>conftest.err; then
15001 soname=conftest
15002 lib=conftest
15003 libobjs=conftest.$ac_objext
15004 deplibs=
15005 wl=$lt_prog_compiler_wl_F77
15006 pic_flag=$lt_prog_compiler_pic_F77
15007 compiler_flags=-v
15008 linker_flags=-v
15009 verstring=
15010 output_objdir=.
15011 libname=conftest
15012 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15013 allow_undefined_flag_F77=
15014 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15015 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }
15019 then
15020 archive_cmds_need_lc_F77=no
15021 else
15022 archive_cmds_need_lc_F77=yes
15023 fi
15024 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15025 else
15026 cat conftest.err 1>&5
15027 fi
15028 $rm conftest*
15029 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15030 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15031 ;;
15032 esac
15033 fi
15034 ;;
15035 esac
15036
15037 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15038 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15039 library_names_spec=
15040 libname_spec='lib$name'
15041 soname_spec=
15042 shrext_cmds=".so"
15043 postinstall_cmds=
15044 postuninstall_cmds=
15045 finish_cmds=
15046 finish_eval=
15047 shlibpath_var=
15048 shlibpath_overrides_runpath=unknown
15049 version_type=none
15050 dynamic_linker="$host_os ld.so"
15051 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15052 if test "$GCC" = yes; then
15053 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15054 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15055 # if the path contains ";" then we assume it to be the separator
15056 # otherwise default to the standard path separator (i.e. ":") - it is
15057 # assumed that no part of a normal pathname contains ";" but that should
15058 # okay in the real world where ";" in dirpaths is itself problematic.
15059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15060 else
15061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15062 fi
15063 else
15064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15065 fi
15066 need_lib_prefix=unknown
15067 hardcode_into_libs=no
15068
15069 # when you set need_version to no, make sure it does not cause -set_version
15070 # flags to be left without arguments
15071 need_version=unknown
15072
15073 case $host_os in
15074 aix3*)
15075 version_type=linux
15076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15077 shlibpath_var=LIBPATH
15078
15079 # AIX 3 has no versioning support, so we append a major version to the name.
15080 soname_spec='${libname}${release}${shared_ext}$major'
15081 ;;
15082
15083 aix4* | aix5*)
15084 version_type=linux
15085 need_lib_prefix=no
15086 need_version=no
15087 hardcode_into_libs=yes
15088 if test "$host_cpu" = ia64; then
15089 # AIX 5 supports IA64
15090 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15091 shlibpath_var=LD_LIBRARY_PATH
15092 else
15093 # With GCC up to 2.95.x, collect2 would create an import file
15094 # for dependence libraries. The import file would start with
15095 # the line `#! .'. This would cause the generated library to
15096 # depend on `.', always an invalid library. This was fixed in
15097 # development snapshots of GCC prior to 3.0.
15098 case $host_os in
15099 aix4 | aix4.[01] | aix4.[01].*)
15100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15101 echo ' yes '
15102 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15103 :
15104 else
15105 can_build_shared=no
15106 fi
15107 ;;
15108 esac
15109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15110 # soname into executable. Probably we can add versioning support to
15111 # collect2, so additional links can be useful in future.
15112 if test "$aix_use_runtimelinking" = yes; then
15113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15114 # instead of lib<name>.a to let people know that these are not
15115 # typical AIX shared libraries.
15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15117 else
15118 # We preserve .a as extension for shared libraries through AIX4.2
15119 # and later when we are not doing run time linking.
15120 library_names_spec='${libname}${release}.a $libname.a'
15121 soname_spec='${libname}${release}${shared_ext}$major'
15122 fi
15123 shlibpath_var=LIBPATH
15124 fi
15125 ;;
15126
15127 amigaos*)
15128 library_names_spec='$libname.ixlibrary $libname.a'
15129 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15130 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'
15131 ;;
15132
15133 beos*)
15134 library_names_spec='${libname}${shared_ext}'
15135 dynamic_linker="$host_os ld.so"
15136 shlibpath_var=LIBRARY_PATH
15137 ;;
15138
15139 bsdi[45]*)
15140 version_type=linux
15141 need_version=no
15142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15143 soname_spec='${libname}${release}${shared_ext}$major'
15144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15145 shlibpath_var=LD_LIBRARY_PATH
15146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15148 # the default ld.so.conf also contains /usr/contrib/lib and
15149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15150 # libtool to hard-code these into programs
15151 ;;
15152
15153 cygwin* | mingw* | pw32*)
15154 version_type=windows
15155 shrext_cmds=".dll"
15156 need_version=no
15157 need_lib_prefix=no
15158
15159 case $GCC,$host_os in
15160 yes,cygwin* | yes,mingw* | yes,pw32*)
15161 library_names_spec='$libname.dll.a'
15162 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15163 postinstall_cmds='base_file=`basename \${file}`~
15164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15165 dldir=$destdir/`dirname \$dlpath`~
15166 test -d \$dldir || mkdir -p \$dldir~
15167 $install_prog $dir/$dlname \$dldir/$dlname~
15168 chmod a+x \$dldir/$dlname'
15169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15170 dlpath=$dir/\$dldll~
15171 $rm \$dlpath'
15172 shlibpath_overrides_runpath=yes
15173
15174 case $host_os in
15175 cygwin*)
15176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15178 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15179 ;;
15180 mingw*)
15181 # MinGW DLLs use traditional 'lib' prefix
15182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15183 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15184 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15185 # It is most probably a Windows format PATH printed by
15186 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15187 # path with ; separators, and with drive letters. We can handle the
15188 # drive letters (cygwin fileutils understands them), so leave them,
15189 # especially as we might pass files found there to a mingw objdump,
15190 # which wouldn't understand a cygwinified path. Ahh.
15191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15192 else
15193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15194 fi
15195 ;;
15196 pw32*)
15197 # pw32 DLLs use 'pw' prefix rather than 'lib'
15198 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15199 ;;
15200 esac
15201 ;;
15202
15203 *)
15204 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15205 ;;
15206 esac
15207 dynamic_linker='Win32 ld.exe'
15208 # FIXME: first we should search . and the directory the executable is in
15209 shlibpath_var=PATH
15210 ;;
15211
15212 darwin* | rhapsody*)
15213 dynamic_linker="$host_os dyld"
15214 version_type=darwin
15215 need_lib_prefix=no
15216 need_version=no
15217 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15218 soname_spec='${libname}${release}${major}$shared_ext'
15219 shlibpath_overrides_runpath=yes
15220 shlibpath_var=DYLD_LIBRARY_PATH
15221 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15222 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15223 if test "$GCC" = yes; then
15224 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15225 else
15226 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15227 fi
15228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15229 ;;
15230
15231 dgux*)
15232 version_type=linux
15233 need_lib_prefix=no
15234 need_version=no
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15236 soname_spec='${libname}${release}${shared_ext}$major'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 ;;
15239
15240 freebsd1*)
15241 dynamic_linker=no
15242 ;;
15243
15244 kfreebsd*-gnu)
15245 version_type=linux
15246 need_lib_prefix=no
15247 need_version=no
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15249 soname_spec='${libname}${release}${shared_ext}$major'
15250 shlibpath_var=LD_LIBRARY_PATH
15251 shlibpath_overrides_runpath=no
15252 hardcode_into_libs=yes
15253 dynamic_linker='GNU ld.so'
15254 ;;
15255
15256 freebsd* | dragonfly*)
15257 # DragonFly does not have aout. When/if they implement a new
15258 # versioning mechanism, adjust this.
15259 if test -x /usr/bin/objformat; then
15260 objformat=`/usr/bin/objformat`
15261 else
15262 case $host_os in
15263 freebsd[123]*) objformat=aout ;;
15264 *) objformat=elf ;;
15265 esac
15266 fi
15267 version_type=freebsd-$objformat
15268 case $version_type in
15269 freebsd-elf*)
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15271 need_version=no
15272 need_lib_prefix=no
15273 ;;
15274 freebsd-*)
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15276 need_version=yes
15277 ;;
15278 esac
15279 shlibpath_var=LD_LIBRARY_PATH
15280 case $host_os in
15281 freebsd2*)
15282 shlibpath_overrides_runpath=yes
15283 ;;
15284 freebsd3.[01]* | freebsdelf3.[01]*)
15285 shlibpath_overrides_runpath=yes
15286 hardcode_into_libs=yes
15287 ;;
15288 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15289 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15290 shlibpath_overrides_runpath=no
15291 hardcode_into_libs=yes
15292 ;;
15293 freebsd*) # from 4.6 on
15294 shlibpath_overrides_runpath=yes
15295 hardcode_into_libs=yes
15296 ;;
15297 esac
15298 ;;
15299
15300 gnu*)
15301 version_type=linux
15302 need_lib_prefix=no
15303 need_version=no
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15305 soname_spec='${libname}${release}${shared_ext}$major'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 hardcode_into_libs=yes
15308 ;;
15309
15310 hpux9* | hpux10* | hpux11*)
15311 # Give a soname corresponding to the major version so that dld.sl refuses to
15312 # link against other versions.
15313 version_type=sunos
15314 need_lib_prefix=no
15315 need_version=no
15316 case $host_cpu in
15317 ia64*)
15318 shrext_cmds='.so'
15319 hardcode_into_libs=yes
15320 dynamic_linker="$host_os dld.so"
15321 shlibpath_var=LD_LIBRARY_PATH
15322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15324 soname_spec='${libname}${release}${shared_ext}$major'
15325 if test "X$HPUX_IA64_MODE" = X32; then
15326 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15327 else
15328 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15329 fi
15330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15331 ;;
15332 hppa*64*)
15333 shrext_cmds='.sl'
15334 hardcode_into_libs=yes
15335 dynamic_linker="$host_os dld.sl"
15336 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15342 ;;
15343 *)
15344 shrext_cmds='.sl'
15345 dynamic_linker="$host_os dld.sl"
15346 shlibpath_var=SHLIB_PATH
15347 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349 soname_spec='${libname}${release}${shared_ext}$major'
15350 ;;
15351 esac
15352 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15353 postinstall_cmds='chmod 555 $lib'
15354 ;;
15355
15356 interix3*)
15357 version_type=linux
15358 need_lib_prefix=no
15359 need_version=no
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15362 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15363 shlibpath_var=LD_LIBRARY_PATH
15364 shlibpath_overrides_runpath=no
15365 hardcode_into_libs=yes
15366 ;;
15367
15368 irix5* | irix6* | nonstopux*)
15369 case $host_os in
15370 nonstopux*) version_type=nonstopux ;;
15371 *)
15372 if test "$lt_cv_prog_gnu_ld" = yes; then
15373 version_type=linux
15374 else
15375 version_type=irix
15376 fi ;;
15377 esac
15378 need_lib_prefix=no
15379 need_version=no
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15382 case $host_os in
15383 irix5* | nonstopux*)
15384 libsuff= shlibsuff=
15385 ;;
15386 *)
15387 case $LD in # libtool.m4 will add one of these switches to LD
15388 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15389 libsuff= shlibsuff= libmagic=32-bit;;
15390 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15391 libsuff=32 shlibsuff=N32 libmagic=N32;;
15392 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15393 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15394 *) libsuff= shlibsuff= libmagic=never-match;;
15395 esac
15396 ;;
15397 esac
15398 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15399 shlibpath_overrides_runpath=no
15400 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15401 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15402 hardcode_into_libs=yes
15403 ;;
15404
15405 # No shared lib support for Linux oldld, aout, or coff.
15406 linux*oldld* | linux*aout* | linux*coff*)
15407 dynamic_linker=no
15408 ;;
15409
15410 # This must be Linux ELF.
15411 linux*)
15412 version_type=linux
15413 need_lib_prefix=no
15414 need_version=no
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 shlibpath_overrides_runpath=no
15420 # This implies no fast_install, which is unacceptable.
15421 # Some rework will be needed to allow for fast_install
15422 # before this can be enabled.
15423 hardcode_into_libs=yes
15424
15425 # Append ld.so.conf contents to the search path
15426 if test -f /etc/ld.so.conf; then
15427 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15428 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15429 fi
15430
15431 # We used to test for /lib/ld.so.1 and disable shared libraries on
15432 # powerpc, because MkLinux only supported shared libraries with the
15433 # GNU dynamic linker. Since this was broken with cross compilers,
15434 # most powerpc-linux boxes support dynamic linking these days and
15435 # people can always --disable-shared, the test was removed, and we
15436 # assume the GNU/Linux dynamic linker is in use.
15437 dynamic_linker='GNU/Linux ld.so'
15438 ;;
15439
15440 knetbsd*-gnu)
15441 version_type=linux
15442 need_lib_prefix=no
15443 need_version=no
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15445 soname_spec='${libname}${release}${shared_ext}$major'
15446 shlibpath_var=LD_LIBRARY_PATH
15447 shlibpath_overrides_runpath=no
15448 hardcode_into_libs=yes
15449 dynamic_linker='GNU ld.so'
15450 ;;
15451
15452 netbsd*)
15453 version_type=sunos
15454 need_lib_prefix=no
15455 need_version=no
15456 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15459 dynamic_linker='NetBSD (a.out) ld.so'
15460 else
15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15462 soname_spec='${libname}${release}${shared_ext}$major'
15463 dynamic_linker='NetBSD ld.elf_so'
15464 fi
15465 shlibpath_var=LD_LIBRARY_PATH
15466 shlibpath_overrides_runpath=yes
15467 hardcode_into_libs=yes
15468 ;;
15469
15470 newsos6)
15471 version_type=linux
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473 shlibpath_var=LD_LIBRARY_PATH
15474 shlibpath_overrides_runpath=yes
15475 ;;
15476
15477 nto-qnx*)
15478 version_type=linux
15479 need_lib_prefix=no
15480 need_version=no
15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482 soname_spec='${libname}${release}${shared_ext}$major'
15483 shlibpath_var=LD_LIBRARY_PATH
15484 shlibpath_overrides_runpath=yes
15485 ;;
15486
15487 openbsd*)
15488 version_type=sunos
15489 sys_lib_dlsearch_path_spec="/usr/lib"
15490 need_lib_prefix=no
15491 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15492 case $host_os in
15493 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15494 *) need_version=no ;;
15495 esac
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15498 shlibpath_var=LD_LIBRARY_PATH
15499 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15500 case $host_os in
15501 openbsd2.[89] | openbsd2.[89].*)
15502 shlibpath_overrides_runpath=no
15503 ;;
15504 *)
15505 shlibpath_overrides_runpath=yes
15506 ;;
15507 esac
15508 else
15509 shlibpath_overrides_runpath=yes
15510 fi
15511 ;;
15512
15513 os2*)
15514 libname_spec='$name'
15515 shrext_cmds=".dll"
15516 need_lib_prefix=no
15517 library_names_spec='$libname${shared_ext} $libname.a'
15518 dynamic_linker='OS/2 ld.exe'
15519 shlibpath_var=LIBPATH
15520 ;;
15521
15522 osf3* | osf4* | osf5*)
15523 version_type=osf
15524 need_lib_prefix=no
15525 need_version=no
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528 shlibpath_var=LD_LIBRARY_PATH
15529 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15530 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15531 ;;
15532
15533 solaris*)
15534 version_type=linux
15535 need_lib_prefix=no
15536 need_version=no
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15538 soname_spec='${libname}${release}${shared_ext}$major'
15539 shlibpath_var=LD_LIBRARY_PATH
15540 shlibpath_overrides_runpath=yes
15541 hardcode_into_libs=yes
15542 # ldd complains unless libraries are executable
15543 postinstall_cmds='chmod +x $lib'
15544 ;;
15545
15546 sunos4*)
15547 version_type=sunos
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15549 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 shlibpath_overrides_runpath=yes
15552 if test "$with_gnu_ld" = yes; then
15553 need_lib_prefix=no
15554 fi
15555 need_version=yes
15556 ;;
15557
15558 sysv4 | sysv4.3*)
15559 version_type=linux
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561 soname_spec='${libname}${release}${shared_ext}$major'
15562 shlibpath_var=LD_LIBRARY_PATH
15563 case $host_vendor in
15564 sni)
15565 shlibpath_overrides_runpath=no
15566 need_lib_prefix=no
15567 export_dynamic_flag_spec='${wl}-Blargedynsym'
15568 runpath_var=LD_RUN_PATH
15569 ;;
15570 siemens)
15571 need_lib_prefix=no
15572 ;;
15573 motorola)
15574 need_lib_prefix=no
15575 need_version=no
15576 shlibpath_overrides_runpath=no
15577 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15578 ;;
15579 esac
15580 ;;
15581
15582 sysv4*MP*)
15583 if test -d /usr/nec ;then
15584 version_type=linux
15585 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15586 soname_spec='$libname${shared_ext}.$major'
15587 shlibpath_var=LD_LIBRARY_PATH
15588 fi
15589 ;;
15590
15591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15592 version_type=freebsd-elf
15593 need_lib_prefix=no
15594 need_version=no
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15596 soname_spec='${libname}${release}${shared_ext}$major'
15597 shlibpath_var=LD_LIBRARY_PATH
15598 hardcode_into_libs=yes
15599 if test "$with_gnu_ld" = yes; then
15600 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15601 shlibpath_overrides_runpath=no
15602 else
15603 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15604 shlibpath_overrides_runpath=yes
15605 case $host_os in
15606 sco3.2v5*)
15607 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15608 ;;
15609 esac
15610 fi
15611 sys_lib_dlsearch_path_spec='/usr/lib'
15612 ;;
15613
15614 uts4*)
15615 version_type=linux
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 soname_spec='${libname}${release}${shared_ext}$major'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 ;;
15620
15621 *)
15622 dynamic_linker=no
15623 ;;
15624 esac
15625 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15626 echo "${ECHO_T}$dynamic_linker" >&6; }
15627 test "$dynamic_linker" = no && can_build_shared=no
15628
15629 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15630 if test "$GCC" = yes; then
15631 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15632 fi
15633
15634 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15635 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15636 hardcode_action_F77=
15637 if test -n "$hardcode_libdir_flag_spec_F77" || \
15638 test -n "$runpath_var_F77" || \
15639 test "X$hardcode_automatic_F77" = "Xyes" ; then
15640
15641 # We can hardcode non-existant directories.
15642 if test "$hardcode_direct_F77" != no &&
15643 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15644 # have to relink, otherwise we might link with an installed library
15645 # when we should be linking with a yet-to-be-installed one
15646 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15647 test "$hardcode_minus_L_F77" != no; then
15648 # Linking always hardcodes the temporary library directory.
15649 hardcode_action_F77=relink
15650 else
15651 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15652 hardcode_action_F77=immediate
15653 fi
15654 else
15655 # We cannot hardcode anything, or else we can only hardcode existing
15656 # directories.
15657 hardcode_action_F77=unsupported
15658 fi
15659 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15660 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15661
15662 if test "$hardcode_action_F77" = relink; then
15663 # Fast installation is not supported
15664 enable_fast_install=no
15665 elif test "$shlibpath_overrides_runpath" = yes ||
15666 test "$enable_shared" = no; then
15667 # Fast installation is not necessary
15668 enable_fast_install=needless
15669 fi
15670
15671
15672 # The else clause should only fire when bootstrapping the
15673 # libtool distribution, otherwise you forgot to ship ltmain.sh
15674 # with your package, and you will get complaints that there are
15675 # no rules to generate ltmain.sh.
15676 if test -f "$ltmain"; then
15677 # See if we are running on zsh, and set the options which allow our commands through
15678 # without removal of \ escapes.
15679 if test -n "${ZSH_VERSION+set}" ; then
15680 setopt NO_GLOB_SUBST
15681 fi
15682 # Now quote all the things that may contain metacharacters while being
15683 # careful not to overquote the AC_SUBSTed values. We take copies of the
15684 # variables and quote the copies for generation of the libtool script.
15685 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15686 SED SHELL STRIP \
15687 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15688 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15689 deplibs_check_method reload_flag reload_cmds need_locks \
15690 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15691 lt_cv_sys_global_symbol_to_c_name_address \
15692 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15693 old_postinstall_cmds old_postuninstall_cmds \
15694 compiler_F77 \
15695 CC_F77 \
15696 LD_F77 \
15697 lt_prog_compiler_wl_F77 \
15698 lt_prog_compiler_pic_F77 \
15699 lt_prog_compiler_static_F77 \
15700 lt_prog_compiler_no_builtin_flag_F77 \
15701 export_dynamic_flag_spec_F77 \
15702 thread_safe_flag_spec_F77 \
15703 whole_archive_flag_spec_F77 \
15704 enable_shared_with_static_runtimes_F77 \
15705 old_archive_cmds_F77 \
15706 old_archive_from_new_cmds_F77 \
15707 predep_objects_F77 \
15708 postdep_objects_F77 \
15709 predeps_F77 \
15710 postdeps_F77 \
15711 compiler_lib_search_path_F77 \
15712 archive_cmds_F77 \
15713 archive_expsym_cmds_F77 \
15714 postinstall_cmds_F77 \
15715 postuninstall_cmds_F77 \
15716 old_archive_from_expsyms_cmds_F77 \
15717 allow_undefined_flag_F77 \
15718 no_undefined_flag_F77 \
15719 export_symbols_cmds_F77 \
15720 hardcode_libdir_flag_spec_F77 \
15721 hardcode_libdir_flag_spec_ld_F77 \
15722 hardcode_libdir_separator_F77 \
15723 hardcode_automatic_F77 \
15724 module_cmds_F77 \
15725 module_expsym_cmds_F77 \
15726 lt_cv_prog_compiler_c_o_F77 \
15727 exclude_expsyms_F77 \
15728 include_expsyms_F77; do
15729
15730 case $var in
15731 old_archive_cmds_F77 | \
15732 old_archive_from_new_cmds_F77 | \
15733 archive_cmds_F77 | \
15734 archive_expsym_cmds_F77 | \
15735 module_cmds_F77 | \
15736 module_expsym_cmds_F77 | \
15737 old_archive_from_expsyms_cmds_F77 | \
15738 export_symbols_cmds_F77 | \
15739 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15740 postinstall_cmds | postuninstall_cmds | \
15741 old_postinstall_cmds | old_postuninstall_cmds | \
15742 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15743 # Double-quote double-evaled strings.
15744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15745 ;;
15746 *)
15747 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15748 ;;
15749 esac
15750 done
15751
15752 case $lt_echo in
15753 *'\$0 --fallback-echo"')
15754 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15755 ;;
15756 esac
15757
15758 cfgfile="$ofile"
15759
15760 cat <<__EOF__ >> "$cfgfile"
15761 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15762
15763 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15764
15765 # Shell to use when invoking shell scripts.
15766 SHELL=$lt_SHELL
15767
15768 # Whether or not to build shared libraries.
15769 build_libtool_libs=$enable_shared
15770
15771 # Whether or not to build static libraries.
15772 build_old_libs=$enable_static
15773
15774 # Whether or not to add -lc for building shared libraries.
15775 build_libtool_need_lc=$archive_cmds_need_lc_F77
15776
15777 # Whether or not to disallow shared libs when runtime libs are static
15778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15779
15780 # Whether or not to optimize for fast installation.
15781 fast_install=$enable_fast_install
15782
15783 # The host system.
15784 host_alias=$host_alias
15785 host=$host
15786 host_os=$host_os
15787
15788 # The build system.
15789 build_alias=$build_alias
15790 build=$build
15791 build_os=$build_os
15792
15793 # An echo program that does not interpret backslashes.
15794 echo=$lt_echo
15795
15796 # The archiver.
15797 AR=$lt_AR
15798 AR_FLAGS=$lt_AR_FLAGS
15799
15800 # A C compiler.
15801 LTCC=$lt_LTCC
15802
15803 # LTCC compiler flags.
15804 LTCFLAGS=$lt_LTCFLAGS
15805
15806 # A language-specific compiler.
15807 CC=$lt_compiler_F77
15808
15809 # Is the compiler the GNU C compiler?
15810 with_gcc=$GCC_F77
15811
15812 # An ERE matcher.
15813 EGREP=$lt_EGREP
15814
15815 # The linker used to build libraries.
15816 LD=$lt_LD_F77
15817
15818 # Whether we need hard or soft links.
15819 LN_S=$lt_LN_S
15820
15821 # A BSD-compatible nm program.
15822 NM=$lt_NM
15823
15824 # A symbol stripping program
15825 STRIP=$lt_STRIP
15826
15827 # Used to examine libraries when file_magic_cmd begins "file"
15828 MAGIC_CMD=$MAGIC_CMD
15829
15830 # Used on cygwin: DLL creation program.
15831 DLLTOOL="$DLLTOOL"
15832
15833 # Used on cygwin: object dumper.
15834 OBJDUMP="$OBJDUMP"
15835
15836 # Used on cygwin: assembler.
15837 AS="$AS"
15838
15839 # The name of the directory that contains temporary libtool files.
15840 objdir=$objdir
15841
15842 # How to create reloadable object files.
15843 reload_flag=$lt_reload_flag
15844 reload_cmds=$lt_reload_cmds
15845
15846 # How to pass a linker flag through the compiler.
15847 wl=$lt_lt_prog_compiler_wl_F77
15848
15849 # Object file suffix (normally "o").
15850 objext="$ac_objext"
15851
15852 # Old archive suffix (normally "a").
15853 libext="$libext"
15854
15855 # Shared library suffix (normally ".so").
15856 shrext_cmds='$shrext_cmds'
15857
15858 # Executable file suffix (normally "").
15859 exeext="$exeext"
15860
15861 # Additional compiler flags for building library objects.
15862 pic_flag=$lt_lt_prog_compiler_pic_F77
15863 pic_mode=$pic_mode
15864
15865 # What is the maximum length of a command?
15866 max_cmd_len=$lt_cv_sys_max_cmd_len
15867
15868 # Does compiler simultaneously support -c and -o options?
15869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15870
15871 # Must we lock files when doing compilation?
15872 need_locks=$lt_need_locks
15873
15874 # Do we need the lib prefix for modules?
15875 need_lib_prefix=$need_lib_prefix
15876
15877 # Do we need a version for libraries?
15878 need_version=$need_version
15879
15880 # Whether dlopen is supported.
15881 dlopen_support=$enable_dlopen
15882
15883 # Whether dlopen of programs is supported.
15884 dlopen_self=$enable_dlopen_self
15885
15886 # Whether dlopen of statically linked programs is supported.
15887 dlopen_self_static=$enable_dlopen_self_static
15888
15889 # Compiler flag to prevent dynamic linking.
15890 link_static_flag=$lt_lt_prog_compiler_static_F77
15891
15892 # Compiler flag to turn off builtin functions.
15893 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15894
15895 # Compiler flag to allow reflexive dlopens.
15896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15897
15898 # Compiler flag to generate shared objects directly from archives.
15899 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15900
15901 # Compiler flag to generate thread-safe objects.
15902 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15903
15904 # Library versioning type.
15905 version_type=$version_type
15906
15907 # Format of library name prefix.
15908 libname_spec=$lt_libname_spec
15909
15910 # List of archive names. First name is the real one, the rest are links.
15911 # The last name is the one that the linker finds with -lNAME.
15912 library_names_spec=$lt_library_names_spec
15913
15914 # The coded name of the library, if different from the real name.
15915 soname_spec=$lt_soname_spec
15916
15917 # Commands used to build and install an old-style archive.
15918 RANLIB=$lt_RANLIB
15919 old_archive_cmds=$lt_old_archive_cmds_F77
15920 old_postinstall_cmds=$lt_old_postinstall_cmds
15921 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15922
15923 # Create an old-style archive from a shared archive.
15924 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15925
15926 # Create a temporary old-style archive to link instead of a shared archive.
15927 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15928
15929 # Commands used to build and install a shared archive.
15930 archive_cmds=$lt_archive_cmds_F77
15931 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15932 postinstall_cmds=$lt_postinstall_cmds
15933 postuninstall_cmds=$lt_postuninstall_cmds
15934
15935 # Commands used to build a loadable module (assumed same as above if empty)
15936 module_cmds=$lt_module_cmds_F77
15937 module_expsym_cmds=$lt_module_expsym_cmds_F77
15938
15939 # Commands to strip libraries.
15940 old_striplib=$lt_old_striplib
15941 striplib=$lt_striplib
15942
15943 # Dependencies to place before the objects being linked to create a
15944 # shared library.
15945 predep_objects=$lt_predep_objects_F77
15946
15947 # Dependencies to place after the objects being linked to create a
15948 # shared library.
15949 postdep_objects=$lt_postdep_objects_F77
15950
15951 # Dependencies to place before the objects being linked to create a
15952 # shared library.
15953 predeps=$lt_predeps_F77
15954
15955 # Dependencies to place after the objects being linked to create a
15956 # shared library.
15957 postdeps=$lt_postdeps_F77
15958
15959 # The library search path used internally by the compiler when linking
15960 # a shared library.
15961 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15962
15963 # Method to check whether dependent libraries are shared objects.
15964 deplibs_check_method=$lt_deplibs_check_method
15965
15966 # Command to use when deplibs_check_method == file_magic.
15967 file_magic_cmd=$lt_file_magic_cmd
15968
15969 # Flag that allows shared libraries with undefined symbols to be built.
15970 allow_undefined_flag=$lt_allow_undefined_flag_F77
15971
15972 # Flag that forces no undefined symbols.
15973 no_undefined_flag=$lt_no_undefined_flag_F77
15974
15975 # Commands used to finish a libtool library installation in a directory.
15976 finish_cmds=$lt_finish_cmds
15977
15978 # Same as above, but a single script fragment to be evaled but not shown.
15979 finish_eval=$lt_finish_eval
15980
15981 # Take the output of nm and produce a listing of raw symbols and C names.
15982 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15983
15984 # Transform the output of nm in a proper C declaration
15985 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15986
15987 # Transform the output of nm in a C name address pair
15988 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15989
15990 # This is the shared library runtime path variable.
15991 runpath_var=$runpath_var
15992
15993 # This is the shared library path variable.
15994 shlibpath_var=$shlibpath_var
15995
15996 # Is shlibpath searched before the hard-coded library search path?
15997 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15998
15999 # How to hardcode a shared library path into an executable.
16000 hardcode_action=$hardcode_action_F77
16001
16002 # Whether we should hardcode library paths into libraries.
16003 hardcode_into_libs=$hardcode_into_libs
16004
16005 # Flag to hardcode \$libdir into a binary during linking.
16006 # This must work even if \$libdir does not exist.
16007 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16008
16009 # If ld is used when linking, flag to hardcode \$libdir into
16010 # a binary during linking. This must work even if \$libdir does
16011 # not exist.
16012 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16013
16014 # Whether we need a single -rpath flag with a separated argument.
16015 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16016
16017 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16018 # resulting binary.
16019 hardcode_direct=$hardcode_direct_F77
16020
16021 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16022 # resulting binary.
16023 hardcode_minus_L=$hardcode_minus_L_F77
16024
16025 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16026 # the resulting binary.
16027 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16028
16029 # Set to yes if building a shared library automatically hardcodes DIR into the library
16030 # and all subsequent libraries and executables linked against it.
16031 hardcode_automatic=$hardcode_automatic_F77
16032
16033 # Variables whose values should be saved in libtool wrapper scripts and
16034 # restored at relink time.
16035 variables_saved_for_relink="$variables_saved_for_relink"
16036
16037 # Whether libtool must link a program against all its dependency libraries.
16038 link_all_deplibs=$link_all_deplibs_F77
16039
16040 # Compile-time system search path for libraries
16041 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16042
16043 # Run-time system search path for libraries
16044 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16045
16046 # Fix the shell variable \$srcfile for the compiler.
16047 fix_srcfile_path="$fix_srcfile_path_F77"
16048
16049 # Set to yes if exported symbols are required.
16050 always_export_symbols=$always_export_symbols_F77
16051
16052 # The commands to list exported symbols.
16053 export_symbols_cmds=$lt_export_symbols_cmds_F77
16054
16055 # The commands to extract the exported symbol list from a shared archive.
16056 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16057
16058 # Symbols that should not be listed in the preloaded symbols.
16059 exclude_expsyms=$lt_exclude_expsyms_F77
16060
16061 # Symbols that must always be exported.
16062 include_expsyms=$lt_include_expsyms_F77
16063
16064 # ### END LIBTOOL TAG CONFIG: $tagname
16065
16066 __EOF__
16067
16068
16069 else
16070 # If there is no Makefile yet, we rely on a make rule to execute
16071 # `config.status --recheck' to rerun these tests and create the
16072 # libtool script then.
16073 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16074 if test -f "$ltmain_in"; then
16075 test -f Makefile && make "$ltmain"
16076 fi
16077 fi
16078
16079
16080 ac_ext=c
16081 ac_cpp='$CPP $CPPFLAGS'
16082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16085
16086 CC="$lt_save_CC"
16087
16088 else
16089 tagname=""
16090 fi
16091 ;;
16092
16093 GCJ)
16094 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16095
16096
16097 # Source file extension for Java test sources.
16098 ac_ext=java
16099
16100 # Object file extension for compiled Java test sources.
16101 objext=o
16102 objext_GCJ=$objext
16103
16104 # Code to be used in simple compile tests
16105 lt_simple_compile_test_code="class foo {}\n"
16106
16107 # Code to be used in simple link tests
16108 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16109
16110 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16111
16112 # If no C compiler was specified, use CC.
16113 LTCC=${LTCC-"$CC"}
16114
16115 # If no C compiler flags were specified, use CFLAGS.
16116 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16117
16118 # Allow CC to be a program name with arguments.
16119 compiler=$CC
16120
16121
16122 # save warnings/boilerplate of simple test code
16123 ac_outfile=conftest.$ac_objext
16124 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16125 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16126 _lt_compiler_boilerplate=`cat conftest.err`
16127 $rm conftest*
16128
16129 ac_outfile=conftest.$ac_objext
16130 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16131 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16132 _lt_linker_boilerplate=`cat conftest.err`
16133 $rm conftest*
16134
16135
16136 # Allow CC to be a program name with arguments.
16137 lt_save_CC="$CC"
16138 CC=${GCJ-"gcj"}
16139 compiler=$CC
16140 compiler_GCJ=$CC
16141 for cc_temp in $compiler""; do
16142 case $cc_temp in
16143 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16144 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16145 \-*) ;;
16146 *) break;;
16147 esac
16148 done
16149 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16150
16151
16152 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16153 archive_cmds_need_lc_GCJ=no
16154
16155 old_archive_cmds_GCJ=$old_archive_cmds
16156
16157
16158 lt_prog_compiler_no_builtin_flag_GCJ=
16159
16160 if test "$GCC" = yes; then
16161 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16162
16163
16164 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16165 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16166 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 else
16169 lt_cv_prog_compiler_rtti_exceptions=no
16170 ac_outfile=conftest.$ac_objext
16171 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16172 lt_compiler_flag="-fno-rtti -fno-exceptions"
16173 # Insert the option either (1) after the last *FLAGS variable, or
16174 # (2) before a word containing "conftest.", or (3) at the end.
16175 # Note that $ac_compile itself does not contain backslashes and begins
16176 # with a dollar sign (not a hyphen), so the echo should work correctly.
16177 # The option is referenced via a variable to avoid confusing sed.
16178 lt_compile=`echo "$ac_compile" | $SED \
16179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16181 -e 's:$: $lt_compiler_flag:'`
16182 (eval echo "\"\$as_me:16182: $lt_compile\"" >&5)
16183 (eval "$lt_compile" 2>conftest.err)
16184 ac_status=$?
16185 cat conftest.err >&5
16186 echo "$as_me:16186: \$? = $ac_status" >&5
16187 if (exit $ac_status) && test -s "$ac_outfile"; then
16188 # The compiler can only warn and ignore the option if not recognized
16189 # So say no if there are warnings other than the usual output.
16190 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16192 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16193 lt_cv_prog_compiler_rtti_exceptions=yes
16194 fi
16195 fi
16196 $rm conftest*
16197
16198 fi
16199 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16200 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16201
16202 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16203 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16204 else
16205 :
16206 fi
16207
16208 fi
16209
16210 lt_prog_compiler_wl_GCJ=
16211 lt_prog_compiler_pic_GCJ=
16212 lt_prog_compiler_static_GCJ=
16213
16214 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16215 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16216
16217 if test "$GCC" = yes; then
16218 lt_prog_compiler_wl_GCJ='-Wl,'
16219 lt_prog_compiler_static_GCJ='-static'
16220
16221 case $host_os in
16222 aix*)
16223 # All AIX code is PIC.
16224 if test "$host_cpu" = ia64; then
16225 # AIX 5 now supports IA64 processor
16226 lt_prog_compiler_static_GCJ='-Bstatic'
16227 fi
16228 ;;
16229
16230 amigaos*)
16231 # FIXME: we need at least 68020 code to build shared libraries, but
16232 # adding the `-m68020' flag to GCC prevents building anything better,
16233 # like `-m68040'.
16234 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16235 ;;
16236
16237 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16238 # PIC is the default for these OSes.
16239 ;;
16240
16241 mingw* | pw32* | os2*)
16242 # This hack is so that the source file can tell whether it is being
16243 # built for inclusion in a dll (and should export symbols for example).
16244 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16245 ;;
16246
16247 darwin* | rhapsody*)
16248 # PIC is the default on this platform
16249 # Common symbols not allowed in MH_DYLIB files
16250 lt_prog_compiler_pic_GCJ='-fno-common'
16251 ;;
16252
16253 interix3*)
16254 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16255 # Instead, we relocate shared libraries at runtime.
16256 ;;
16257
16258 msdosdjgpp*)
16259 # Just because we use GCC doesn't mean we suddenly get shared libraries
16260 # on systems that don't support them.
16261 lt_prog_compiler_can_build_shared_GCJ=no
16262 enable_shared=no
16263 ;;
16264
16265 sysv4*MP*)
16266 if test -d /usr/nec; then
16267 lt_prog_compiler_pic_GCJ=-Kconform_pic
16268 fi
16269 ;;
16270
16271 hpux*)
16272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16273 # not for PA HP-UX.
16274 case $host_cpu in
16275 hppa*64*|ia64*)
16276 # +Z the default
16277 ;;
16278 *)
16279 lt_prog_compiler_pic_GCJ='-fPIC'
16280 ;;
16281 esac
16282 ;;
16283
16284 *)
16285 lt_prog_compiler_pic_GCJ='-fPIC'
16286 ;;
16287 esac
16288 else
16289 # PORTME Check for flag to pass linker flags through the system compiler.
16290 case $host_os in
16291 aix*)
16292 lt_prog_compiler_wl_GCJ='-Wl,'
16293 if test "$host_cpu" = ia64; then
16294 # AIX 5 now supports IA64 processor
16295 lt_prog_compiler_static_GCJ='-Bstatic'
16296 else
16297 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16298 fi
16299 ;;
16300 darwin*)
16301 # PIC is the default on this platform
16302 # Common symbols not allowed in MH_DYLIB files
16303 case $cc_basename in
16304 xlc*)
16305 lt_prog_compiler_pic_GCJ='-qnocommon'
16306 lt_prog_compiler_wl_GCJ='-Wl,'
16307 ;;
16308 esac
16309 ;;
16310
16311 mingw* | pw32* | os2*)
16312 # This hack is so that the source file can tell whether it is being
16313 # built for inclusion in a dll (and should export symbols for example).
16314 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16315 ;;
16316
16317 hpux9* | hpux10* | hpux11*)
16318 lt_prog_compiler_wl_GCJ='-Wl,'
16319 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16320 # not for PA HP-UX.
16321 case $host_cpu in
16322 hppa*64*|ia64*)
16323 # +Z the default
16324 ;;
16325 *)
16326 lt_prog_compiler_pic_GCJ='+Z'
16327 ;;
16328 esac
16329 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16330 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16331 ;;
16332
16333 irix5* | irix6* | nonstopux*)
16334 lt_prog_compiler_wl_GCJ='-Wl,'
16335 # PIC (with -KPIC) is the default.
16336 lt_prog_compiler_static_GCJ='-non_shared'
16337 ;;
16338
16339 newsos6)
16340 lt_prog_compiler_pic_GCJ='-KPIC'
16341 lt_prog_compiler_static_GCJ='-Bstatic'
16342 ;;
16343
16344 linux*)
16345 case $cc_basename in
16346 icc* | ecc*)
16347 lt_prog_compiler_wl_GCJ='-Wl,'
16348 lt_prog_compiler_pic_GCJ='-KPIC'
16349 lt_prog_compiler_static_GCJ='-static'
16350 ;;
16351 pgcc* | pgf77* | pgf90* | pgf95*)
16352 # Portland Group compilers (*not* the Pentium gcc compiler,
16353 # which looks to be a dead project)
16354 lt_prog_compiler_wl_GCJ='-Wl,'
16355 lt_prog_compiler_pic_GCJ='-fpic'
16356 lt_prog_compiler_static_GCJ='-Bstatic'
16357 ;;
16358 ccc*)
16359 lt_prog_compiler_wl_GCJ='-Wl,'
16360 # All Alpha code is PIC.
16361 lt_prog_compiler_static_GCJ='-non_shared'
16362 ;;
16363 esac
16364 ;;
16365
16366 osf3* | osf4* | osf5*)
16367 lt_prog_compiler_wl_GCJ='-Wl,'
16368 # All OSF/1 code is PIC.
16369 lt_prog_compiler_static_GCJ='-non_shared'
16370 ;;
16371
16372 solaris*)
16373 lt_prog_compiler_pic_GCJ='-KPIC'
16374 lt_prog_compiler_static_GCJ='-Bstatic'
16375 case $cc_basename in
16376 f77* | f90* | f95*)
16377 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16378 *)
16379 lt_prog_compiler_wl_GCJ='-Wl,';;
16380 esac
16381 ;;
16382
16383 sunos4*)
16384 lt_prog_compiler_wl_GCJ='-Qoption ld '
16385 lt_prog_compiler_pic_GCJ='-PIC'
16386 lt_prog_compiler_static_GCJ='-Bstatic'
16387 ;;
16388
16389 sysv4 | sysv4.2uw2* | sysv4.3*)
16390 lt_prog_compiler_wl_GCJ='-Wl,'
16391 lt_prog_compiler_pic_GCJ='-KPIC'
16392 lt_prog_compiler_static_GCJ='-Bstatic'
16393 ;;
16394
16395 sysv4*MP*)
16396 if test -d /usr/nec ;then
16397 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16398 lt_prog_compiler_static_GCJ='-Bstatic'
16399 fi
16400 ;;
16401
16402 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16403 lt_prog_compiler_wl_GCJ='-Wl,'
16404 lt_prog_compiler_pic_GCJ='-KPIC'
16405 lt_prog_compiler_static_GCJ='-Bstatic'
16406 ;;
16407
16408 unicos*)
16409 lt_prog_compiler_wl_GCJ='-Wl,'
16410 lt_prog_compiler_can_build_shared_GCJ=no
16411 ;;
16412
16413 uts4*)
16414 lt_prog_compiler_pic_GCJ='-pic'
16415 lt_prog_compiler_static_GCJ='-Bstatic'
16416 ;;
16417
16418 *)
16419 lt_prog_compiler_can_build_shared_GCJ=no
16420 ;;
16421 esac
16422 fi
16423
16424 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16425 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16426
16427 #
16428 # Check to make sure the PIC flag actually works.
16429 #
16430 if test -n "$lt_prog_compiler_pic_GCJ"; then
16431
16432 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16433 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16434 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 else
16437 lt_prog_compiler_pic_works_GCJ=no
16438 ac_outfile=conftest.$ac_objext
16439 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16440 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16441 # Insert the option either (1) after the last *FLAGS variable, or
16442 # (2) before a word containing "conftest.", or (3) at the end.
16443 # Note that $ac_compile itself does not contain backslashes and begins
16444 # with a dollar sign (not a hyphen), so the echo should work correctly.
16445 # The option is referenced via a variable to avoid confusing sed.
16446 lt_compile=`echo "$ac_compile" | $SED \
16447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16449 -e 's:$: $lt_compiler_flag:'`
16450 (eval echo "\"\$as_me:16450: $lt_compile\"" >&5)
16451 (eval "$lt_compile" 2>conftest.err)
16452 ac_status=$?
16453 cat conftest.err >&5
16454 echo "$as_me:16454: \$? = $ac_status" >&5
16455 if (exit $ac_status) && test -s "$ac_outfile"; then
16456 # The compiler can only warn and ignore the option if not recognized
16457 # So say no if there are warnings other than the usual output.
16458 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16460 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16461 lt_prog_compiler_pic_works_GCJ=yes
16462 fi
16463 fi
16464 $rm conftest*
16465
16466 fi
16467 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16468 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16469
16470 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16471 case $lt_prog_compiler_pic_GCJ in
16472 "" | " "*) ;;
16473 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16474 esac
16475 else
16476 lt_prog_compiler_pic_GCJ=
16477 lt_prog_compiler_can_build_shared_GCJ=no
16478 fi
16479
16480 fi
16481 case $host_os in
16482 # For platforms which do not support PIC, -DPIC is meaningless:
16483 *djgpp*)
16484 lt_prog_compiler_pic_GCJ=
16485 ;;
16486 *)
16487 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16488 ;;
16489 esac
16490
16491 #
16492 # Check to make sure the static flag actually works.
16493 #
16494 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16495 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16496 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16497 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16499 else
16500 lt_prog_compiler_static_works_GCJ=no
16501 save_LDFLAGS="$LDFLAGS"
16502 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16503 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16505 # The linker can only warn and ignore the option if not recognized
16506 # So say no if there are warnings
16507 if test -s conftest.err; then
16508 # Append any errors to the config.log.
16509 cat conftest.err 1>&5
16510 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16512 if diff conftest.exp conftest.er2 >/dev/null; then
16513 lt_prog_compiler_static_works_GCJ=yes
16514 fi
16515 else
16516 lt_prog_compiler_static_works_GCJ=yes
16517 fi
16518 fi
16519 $rm conftest*
16520 LDFLAGS="$save_LDFLAGS"
16521
16522 fi
16523 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16524 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16525
16526 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16527 :
16528 else
16529 lt_prog_compiler_static_GCJ=
16530 fi
16531
16532
16533 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16534 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16535 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538 lt_cv_prog_compiler_c_o_GCJ=no
16539 $rm -r conftest 2>/dev/null
16540 mkdir conftest
16541 cd conftest
16542 mkdir out
16543 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16544
16545 lt_compiler_flag="-o out/conftest2.$ac_objext"
16546 # Insert the option either (1) after the last *FLAGS variable, or
16547 # (2) before a word containing "conftest.", or (3) at the end.
16548 # Note that $ac_compile itself does not contain backslashes and begins
16549 # with a dollar sign (not a hyphen), so the echo should work correctly.
16550 lt_compile=`echo "$ac_compile" | $SED \
16551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16553 -e 's:$: $lt_compiler_flag:'`
16554 (eval echo "\"\$as_me:16554: $lt_compile\"" >&5)
16555 (eval "$lt_compile" 2>out/conftest.err)
16556 ac_status=$?
16557 cat out/conftest.err >&5
16558 echo "$as_me:16558: \$? = $ac_status" >&5
16559 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16560 then
16561 # The compiler can only warn and ignore the option if not recognized
16562 # So say no if there are warnings
16563 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16564 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16565 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16566 lt_cv_prog_compiler_c_o_GCJ=yes
16567 fi
16568 fi
16569 chmod u+w . 2>&5
16570 $rm conftest*
16571 # SGI C++ compiler will create directory out/ii_files/ for
16572 # template instantiation
16573 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16574 $rm out/* && rmdir out
16575 cd ..
16576 rmdir conftest
16577 $rm conftest*
16578
16579 fi
16580 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16581 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16582
16583
16584 hard_links="nottested"
16585 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16586 # do not overwrite the value of need_locks provided by the user
16587 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16588 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16589 hard_links=yes
16590 $rm conftest*
16591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16592 touch conftest.a
16593 ln conftest.a conftest.b 2>&5 || hard_links=no
16594 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16595 { echo "$as_me:$LINENO: result: $hard_links" >&5
16596 echo "${ECHO_T}$hard_links" >&6; }
16597 if test "$hard_links" = no; then
16598 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16599 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16600 need_locks=warn
16601 fi
16602 else
16603 need_locks=no
16604 fi
16605
16606 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16607 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16608
16609 runpath_var=
16610 allow_undefined_flag_GCJ=
16611 enable_shared_with_static_runtimes_GCJ=no
16612 archive_cmds_GCJ=
16613 archive_expsym_cmds_GCJ=
16614 old_archive_From_new_cmds_GCJ=
16615 old_archive_from_expsyms_cmds_GCJ=
16616 export_dynamic_flag_spec_GCJ=
16617 whole_archive_flag_spec_GCJ=
16618 thread_safe_flag_spec_GCJ=
16619 hardcode_libdir_flag_spec_GCJ=
16620 hardcode_libdir_flag_spec_ld_GCJ=
16621 hardcode_libdir_separator_GCJ=
16622 hardcode_direct_GCJ=no
16623 hardcode_minus_L_GCJ=no
16624 hardcode_shlibpath_var_GCJ=unsupported
16625 link_all_deplibs_GCJ=unknown
16626 hardcode_automatic_GCJ=no
16627 module_cmds_GCJ=
16628 module_expsym_cmds_GCJ=
16629 always_export_symbols_GCJ=no
16630 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16631 # include_expsyms should be a list of space-separated symbols to be *always*
16632 # included in the symbol list
16633 include_expsyms_GCJ=
16634 # exclude_expsyms can be an extended regexp of symbols to exclude
16635 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16636 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16637 # as well as any symbol that contains `d'.
16638 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16639 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16640 # platforms (ab)use it in PIC code, but their linkers get confused if
16641 # the symbol is explicitly referenced. Since portable code cannot
16642 # rely on this symbol name, it's probably fine to never include it in
16643 # preloaded symbol tables.
16644 extract_expsyms_cmds=
16645 # Just being paranoid about ensuring that cc_basename is set.
16646 for cc_temp in $compiler""; do
16647 case $cc_temp in
16648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16650 \-*) ;;
16651 *) break;;
16652 esac
16653 done
16654 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16655
16656 case $host_os in
16657 cygwin* | mingw* | pw32*)
16658 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16659 # When not using gcc, we currently assume that we are using
16660 # Microsoft Visual C++.
16661 if test "$GCC" != yes; then
16662 with_gnu_ld=no
16663 fi
16664 ;;
16665 interix*)
16666 # we just hope/assume this is gcc and not c89 (= MSVC++)
16667 with_gnu_ld=yes
16668 ;;
16669 openbsd*)
16670 with_gnu_ld=no
16671 ;;
16672 esac
16673
16674 ld_shlibs_GCJ=yes
16675 if test "$with_gnu_ld" = yes; then
16676 # If archive_cmds runs LD, not CC, wlarc should be empty
16677 wlarc='${wl}'
16678
16679 # Set some defaults for GNU ld with shared library support. These
16680 # are reset later if shared libraries are not supported. Putting them
16681 # here allows them to be overridden if necessary.
16682 runpath_var=LD_RUN_PATH
16683 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16684 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16685 # ancient GNU ld didn't support --whole-archive et. al.
16686 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16687 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16688 else
16689 whole_archive_flag_spec_GCJ=
16690 fi
16691 supports_anon_versioning=no
16692 case `$LD -v 2>/dev/null` in
16693 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16694 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16695 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16696 *\ 2.11.*) ;; # other 2.11 versions
16697 *) supports_anon_versioning=yes ;;
16698 esac
16699
16700 # See if GNU ld supports shared libraries.
16701 case $host_os in
16702 aix3* | aix4* | aix5*)
16703 # On AIX/PPC, the GNU linker is very broken
16704 if test "$host_cpu" != ia64; then
16705 ld_shlibs_GCJ=no
16706 cat <<EOF 1>&2
16707
16708 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16709 *** to be unable to reliably create shared libraries on AIX.
16710 *** Therefore, libtool is disabling shared libraries support. If you
16711 *** really care for shared libraries, you may want to modify your PATH
16712 *** so that a non-GNU linker is found, and then restart.
16713
16714 EOF
16715 fi
16716 ;;
16717
16718 amigaos*)
16719 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)'
16720 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16721 hardcode_minus_L_GCJ=yes
16722
16723 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16724 # that the semantics of dynamic libraries on AmigaOS, at least up
16725 # to version 4, is to share data among multiple programs linked
16726 # with the same dynamic library. Since this doesn't match the
16727 # behavior of shared libraries on other platforms, we can't use
16728 # them.
16729 ld_shlibs_GCJ=no
16730 ;;
16731
16732 beos*)
16733 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16734 allow_undefined_flag_GCJ=unsupported
16735 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16736 # support --undefined. This deserves some investigation. FIXME
16737 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16738 else
16739 ld_shlibs_GCJ=no
16740 fi
16741 ;;
16742
16743 cygwin* | mingw* | pw32*)
16744 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16745 # as there is no search path for DLLs.
16746 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16747 allow_undefined_flag_GCJ=unsupported
16748 always_export_symbols_GCJ=no
16749 enable_shared_with_static_runtimes_GCJ=yes
16750 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16751
16752 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16753 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16754 # If the export-symbols file already is a .def file (1st line
16755 # is EXPORTS), use it as is; otherwise, prepend...
16756 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16757 cp $export_symbols $output_objdir/$soname.def;
16758 else
16759 echo EXPORTS > $output_objdir/$soname.def;
16760 cat $export_symbols >> $output_objdir/$soname.def;
16761 fi~
16762 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16763 else
16764 ld_shlibs_GCJ=no
16765 fi
16766 ;;
16767
16768 interix3*)
16769 hardcode_direct_GCJ=no
16770 hardcode_shlibpath_var_GCJ=no
16771 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16772 export_dynamic_flag_spec_GCJ='${wl}-E'
16773 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16774 # Instead, shared libraries are loaded at an image base (0x10000000 by
16775 # default) and relocated if they conflict, which is a slow very memory
16776 # consuming and fragmenting process. To avoid this, we pick a random,
16777 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16778 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16779 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'
16780 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'
16781 ;;
16782
16783 linux*)
16784 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16785 tmp_addflag=
16786 case $cc_basename,$host_cpu in
16787 pgcc*) # Portland Group C compiler
16788 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'
16789 tmp_addflag=' $pic_flag'
16790 ;;
16791 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16792 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'
16793 tmp_addflag=' $pic_flag -Mnomain' ;;
16794 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16795 tmp_addflag=' -i_dynamic' ;;
16796 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16797 tmp_addflag=' -i_dynamic -nofor_main' ;;
16798 ifc* | ifort*) # Intel Fortran compiler
16799 tmp_addflag=' -nofor_main' ;;
16800 esac
16801 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16802
16803 if test $supports_anon_versioning = yes; then
16804 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16806 $echo "local: *; };" >> $output_objdir/$libname.ver~
16807 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16808 fi
16809 else
16810 ld_shlibs_GCJ=no
16811 fi
16812 ;;
16813
16814 netbsd*)
16815 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16816 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16817 wlarc=
16818 else
16819 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16820 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16821 fi
16822 ;;
16823
16824 solaris*)
16825 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16826 ld_shlibs_GCJ=no
16827 cat <<EOF 1>&2
16828
16829 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16830 *** create shared libraries on Solaris systems. Therefore, libtool
16831 *** is disabling shared libraries support. We urge you to upgrade GNU
16832 *** binutils to release 2.9.1 or newer. Another option is to modify
16833 *** your PATH or compiler configuration so that the native linker is
16834 *** used, and then restart.
16835
16836 EOF
16837 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16838 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16839 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16840 else
16841 ld_shlibs_GCJ=no
16842 fi
16843 ;;
16844
16845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16846 case `$LD -v 2>&1` in
16847 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16848 ld_shlibs_GCJ=no
16849 cat <<_LT_EOF 1>&2
16850
16851 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16852 *** reliably create shared libraries on SCO systems. Therefore, libtool
16853 *** is disabling shared libraries support. We urge you to upgrade GNU
16854 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16855 *** your PATH or compiler configuration so that the native linker is
16856 *** used, and then restart.
16857
16858 _LT_EOF
16859 ;;
16860 *)
16861 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16862 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16863 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16864 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16865 else
16866 ld_shlibs_GCJ=no
16867 fi
16868 ;;
16869 esac
16870 ;;
16871
16872 sunos4*)
16873 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16874 wlarc=
16875 hardcode_direct_GCJ=yes
16876 hardcode_shlibpath_var_GCJ=no
16877 ;;
16878
16879 *)
16880 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16881 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16882 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16883 else
16884 ld_shlibs_GCJ=no
16885 fi
16886 ;;
16887 esac
16888
16889 if test "$ld_shlibs_GCJ" = no; then
16890 runpath_var=
16891 hardcode_libdir_flag_spec_GCJ=
16892 export_dynamic_flag_spec_GCJ=
16893 whole_archive_flag_spec_GCJ=
16894 fi
16895 else
16896 # PORTME fill in a description of your system's linker (not GNU ld)
16897 case $host_os in
16898 aix3*)
16899 allow_undefined_flag_GCJ=unsupported
16900 always_export_symbols_GCJ=yes
16901 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'
16902 # Note: this linker hardcodes the directories in LIBPATH if there
16903 # are no directories specified by -L.
16904 hardcode_minus_L_GCJ=yes
16905 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16906 # Neither direct hardcoding nor static linking is supported with a
16907 # broken collect2.
16908 hardcode_direct_GCJ=unsupported
16909 fi
16910 ;;
16911
16912 aix4* | aix5*)
16913 if test "$host_cpu" = ia64; then
16914 # On IA64, the linker does run time linking by default, so we don't
16915 # have to do anything special.
16916 aix_use_runtimelinking=no
16917 exp_sym_flag='-Bexport'
16918 no_entry_flag=""
16919 else
16920 # If we're using GNU nm, then we don't want the "-C" option.
16921 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16922 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16923 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'
16924 else
16925 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'
16926 fi
16927 aix_use_runtimelinking=no
16928
16929 # Test if we are trying to use run time linking or normal
16930 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16931 # need to do runtime linking.
16932 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16933 for ld_flag in $LDFLAGS; do
16934 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16935 aix_use_runtimelinking=yes
16936 break
16937 fi
16938 done
16939 ;;
16940 esac
16941
16942 exp_sym_flag='-bexport'
16943 no_entry_flag='-bnoentry'
16944 fi
16945
16946 # When large executables or shared objects are built, AIX ld can
16947 # have problems creating the table of contents. If linking a library
16948 # or program results in "error TOC overflow" add -mminimal-toc to
16949 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16950 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16951
16952 archive_cmds_GCJ=''
16953 hardcode_direct_GCJ=yes
16954 hardcode_libdir_separator_GCJ=':'
16955 link_all_deplibs_GCJ=yes
16956
16957 if test "$GCC" = yes; then
16958 case $host_os in aix4.[012]|aix4.[012].*)
16959 # We only want to do this on AIX 4.2 and lower, the check
16960 # below for broken collect2 doesn't work under 4.3+
16961 collect2name=`${CC} -print-prog-name=collect2`
16962 if test -f "$collect2name" && \
16963 strings "$collect2name" | grep resolve_lib_name >/dev/null
16964 then
16965 # We have reworked collect2
16966 hardcode_direct_GCJ=yes
16967 else
16968 # We have old collect2
16969 hardcode_direct_GCJ=unsupported
16970 # It fails to find uninstalled libraries when the uninstalled
16971 # path is not listed in the libpath. Setting hardcode_minus_L
16972 # to unsupported forces relinking
16973 hardcode_minus_L_GCJ=yes
16974 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16975 hardcode_libdir_separator_GCJ=
16976 fi
16977 ;;
16978 esac
16979 shared_flag='-shared'
16980 if test "$aix_use_runtimelinking" = yes; then
16981 shared_flag="$shared_flag "'${wl}-G'
16982 fi
16983 else
16984 # not using gcc
16985 if test "$host_cpu" = ia64; then
16986 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16987 # chokes on -Wl,-G. The following line is correct:
16988 shared_flag='-G'
16989 else
16990 if test "$aix_use_runtimelinking" = yes; then
16991 shared_flag='${wl}-G'
16992 else
16993 shared_flag='${wl}-bM:SRE'
16994 fi
16995 fi
16996 fi
16997
16998 # It seems that -bexpall does not export symbols beginning with
16999 # underscore (_), so it is better to generate a list of symbols to export.
17000 always_export_symbols_GCJ=yes
17001 if test "$aix_use_runtimelinking" = yes; then
17002 # Warning - without using the other runtime loading flags (-brtl),
17003 # -berok will link without error, but may produce a broken library.
17004 allow_undefined_flag_GCJ='-berok'
17005 # Determine the default libpath from the value encoded in an empty executable.
17006 cat >conftest.$ac_ext <<_ACEOF
17007 /* confdefs.h. */
17008 _ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012
17013 int
17014 main ()
17015 {
17016
17017 ;
17018 return 0;
17019 }
17020 _ACEOF
17021 rm -f conftest.$ac_objext conftest$ac_exeext
17022 if { (ac_try="$ac_link"
17023 case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17026 esac
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_link") 2>conftest.er1
17029 ac_status=$?
17030 grep -v '^ *+' conftest.er1 >conftest.err
17031 rm -f conftest.er1
17032 cat conftest.err >&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } && {
17035 test -z "$ac_c_werror_flag" ||
17036 test ! -s conftest.err
17037 } && test -s conftest$ac_exeext &&
17038 $as_test_x conftest$ac_exeext; then
17039
17040 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17041 }'`
17042 # Check for a 64-bit object if we didn't find anything.
17043 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17044 }'`; fi
17045 else
17046 echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17048
17049
17050 fi
17051
17052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17053 conftest$ac_exeext conftest.$ac_ext
17054 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17055
17056 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17057 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"
17058 else
17059 if test "$host_cpu" = ia64; then
17060 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17061 allow_undefined_flag_GCJ="-z nodefs"
17062 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"
17063 else
17064 # Determine the default libpath from the value encoded in an empty executable.
17065 cat >conftest.$ac_ext <<_ACEOF
17066 /* confdefs.h. */
17067 _ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17071
17072 int
17073 main ()
17074 {
17075
17076 ;
17077 return 0;
17078 }
17079 _ACEOF
17080 rm -f conftest.$ac_objext conftest$ac_exeext
17081 if { (ac_try="$ac_link"
17082 case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17085 esac
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_link") 2>conftest.er1
17088 ac_status=$?
17089 grep -v '^ *+' conftest.er1 >conftest.err
17090 rm -f conftest.er1
17091 cat conftest.err >&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } && {
17094 test -z "$ac_c_werror_flag" ||
17095 test ! -s conftest.err
17096 } && test -s conftest$ac_exeext &&
17097 $as_test_x conftest$ac_exeext; then
17098
17099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17100 }'`
17101 # Check for a 64-bit object if we didn't find anything.
17102 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17103 }'`; fi
17104 else
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17107
17108
17109 fi
17110
17111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17112 conftest$ac_exeext conftest.$ac_ext
17113 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17114
17115 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17116 # Warning - without using the other run time loading flags,
17117 # -berok will link without error, but may produce a broken library.
17118 no_undefined_flag_GCJ=' ${wl}-bernotok'
17119 allow_undefined_flag_GCJ=' ${wl}-berok'
17120 # Exported symbols can be pulled into shared objects from archives
17121 whole_archive_flag_spec_GCJ='$convenience'
17122 archive_cmds_need_lc_GCJ=yes
17123 # This is similar to how AIX traditionally builds its shared libraries.
17124 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'
17125 fi
17126 fi
17127 ;;
17128
17129 amigaos*)
17130 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)'
17131 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17132 hardcode_minus_L_GCJ=yes
17133 # see comment about different semantics on the GNU ld section
17134 ld_shlibs_GCJ=no
17135 ;;
17136
17137 bsdi[45]*)
17138 export_dynamic_flag_spec_GCJ=-rdynamic
17139 ;;
17140
17141 cygwin* | mingw* | pw32*)
17142 # When not using gcc, we currently assume that we are using
17143 # Microsoft Visual C++.
17144 # hardcode_libdir_flag_spec is actually meaningless, as there is
17145 # no search path for DLLs.
17146 hardcode_libdir_flag_spec_GCJ=' '
17147 allow_undefined_flag_GCJ=unsupported
17148 # Tell ltmain to make .lib files, not .a files.
17149 libext=lib
17150 # Tell ltmain to make .dll files, not .so files.
17151 shrext_cmds=".dll"
17152 # FIXME: Setting linknames here is a bad hack.
17153 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17154 # The linker will automatically build a .lib file if we build a DLL.
17155 old_archive_From_new_cmds_GCJ='true'
17156 # FIXME: Should let the user specify the lib program.
17157 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17158 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17159 enable_shared_with_static_runtimes_GCJ=yes
17160 ;;
17161
17162 darwin* | rhapsody*)
17163 case $host_os in
17164 rhapsody* | darwin1.[012])
17165 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17166 ;;
17167 *) # Darwin 1.3 on
17168 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17169 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17170 else
17171 case ${MACOSX_DEPLOYMENT_TARGET} in
17172 10.[012])
17173 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17174 ;;
17175 10.*)
17176 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17177 ;;
17178 esac
17179 fi
17180 ;;
17181 esac
17182 archive_cmds_need_lc_GCJ=no
17183 hardcode_direct_GCJ=no
17184 hardcode_automatic_GCJ=yes
17185 hardcode_shlibpath_var_GCJ=unsupported
17186 whole_archive_flag_spec_GCJ=''
17187 link_all_deplibs_GCJ=yes
17188 if test "$GCC" = yes ; then
17189 output_verbose_link_cmd='echo'
17190 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17191 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17192 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17193 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17194 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}'
17195 else
17196 case $cc_basename in
17197 xlc*)
17198 output_verbose_link_cmd='echo'
17199 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17200 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17201 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17202 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17203 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}'
17204 ;;
17205 *)
17206 ld_shlibs_GCJ=no
17207 ;;
17208 esac
17209 fi
17210 ;;
17211
17212 dgux*)
17213 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17214 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17215 hardcode_shlibpath_var_GCJ=no
17216 ;;
17217
17218 freebsd1*)
17219 ld_shlibs_GCJ=no
17220 ;;
17221
17222 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17223 # support. Future versions do this automatically, but an explicit c++rt0.o
17224 # does not break anything, and helps significantly (at the cost of a little
17225 # extra space).
17226 freebsd2.2*)
17227 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17228 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17229 hardcode_direct_GCJ=yes
17230 hardcode_shlibpath_var_GCJ=no
17231 ;;
17232
17233 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17234 freebsd2*)
17235 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17236 hardcode_direct_GCJ=yes
17237 hardcode_minus_L_GCJ=yes
17238 hardcode_shlibpath_var_GCJ=no
17239 ;;
17240
17241 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17242 freebsd* | kfreebsd*-gnu | dragonfly*)
17243 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17244 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17245 hardcode_direct_GCJ=yes
17246 hardcode_shlibpath_var_GCJ=no
17247 ;;
17248
17249 hpux9*)
17250 if test "$GCC" = yes; then
17251 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'
17252 else
17253 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'
17254 fi
17255 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17256 hardcode_libdir_separator_GCJ=:
17257 hardcode_direct_GCJ=yes
17258
17259 # hardcode_minus_L: Not really in the search PATH,
17260 # but as the default location of the library.
17261 hardcode_minus_L_GCJ=yes
17262 export_dynamic_flag_spec_GCJ='${wl}-E'
17263 ;;
17264
17265 hpux10*)
17266 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17267 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17268 else
17269 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17270 fi
17271 if test "$with_gnu_ld" = no; then
17272 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17273 hardcode_libdir_separator_GCJ=:
17274
17275 hardcode_direct_GCJ=yes
17276 export_dynamic_flag_spec_GCJ='${wl}-E'
17277
17278 # hardcode_minus_L: Not really in the search PATH,
17279 # but as the default location of the library.
17280 hardcode_minus_L_GCJ=yes
17281 fi
17282 ;;
17283
17284 hpux11*)
17285 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17286 case $host_cpu in
17287 hppa*64*)
17288 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17289 ;;
17290 ia64*)
17291 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17292 ;;
17293 *)
17294 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17295 ;;
17296 esac
17297 else
17298 case $host_cpu in
17299 hppa*64*)
17300 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17301 ;;
17302 ia64*)
17303 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17304 ;;
17305 *)
17306 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17307 ;;
17308 esac
17309 fi
17310 if test "$with_gnu_ld" = no; then
17311 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17312 hardcode_libdir_separator_GCJ=:
17313
17314 case $host_cpu in
17315 hppa*64*|ia64*)
17316 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17317 hardcode_direct_GCJ=no
17318 hardcode_shlibpath_var_GCJ=no
17319 ;;
17320 *)
17321 hardcode_direct_GCJ=yes
17322 export_dynamic_flag_spec_GCJ='${wl}-E'
17323
17324 # hardcode_minus_L: Not really in the search PATH,
17325 # but as the default location of the library.
17326 hardcode_minus_L_GCJ=yes
17327 ;;
17328 esac
17329 fi
17330 ;;
17331
17332 irix5* | irix6* | nonstopux*)
17333 if test "$GCC" = yes; then
17334 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'
17335 else
17336 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'
17337 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17338 fi
17339 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17340 hardcode_libdir_separator_GCJ=:
17341 link_all_deplibs_GCJ=yes
17342 ;;
17343
17344 netbsd*)
17345 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17346 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17347 else
17348 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17349 fi
17350 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17351 hardcode_direct_GCJ=yes
17352 hardcode_shlibpath_var_GCJ=no
17353 ;;
17354
17355 newsos6)
17356 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17357 hardcode_direct_GCJ=yes
17358 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17359 hardcode_libdir_separator_GCJ=:
17360 hardcode_shlibpath_var_GCJ=no
17361 ;;
17362
17363 openbsd*)
17364 hardcode_direct_GCJ=yes
17365 hardcode_shlibpath_var_GCJ=no
17366 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17367 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17368 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17369 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17370 export_dynamic_flag_spec_GCJ='${wl}-E'
17371 else
17372 case $host_os in
17373 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17374 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17375 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17376 ;;
17377 *)
17378 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17379 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17380 ;;
17381 esac
17382 fi
17383 ;;
17384
17385 os2*)
17386 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17387 hardcode_minus_L_GCJ=yes
17388 allow_undefined_flag_GCJ=unsupported
17389 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'
17390 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17391 ;;
17392
17393 osf3*)
17394 if test "$GCC" = yes; then
17395 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17396 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'
17397 else
17398 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17399 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'
17400 fi
17401 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17402 hardcode_libdir_separator_GCJ=:
17403 ;;
17404
17405 osf4* | osf5*) # as osf3* with the addition of -msym flag
17406 if test "$GCC" = yes; then
17407 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17408 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'
17409 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17410 else
17411 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17412 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'
17413 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~
17414 $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'
17415
17416 # Both c and cxx compiler support -rpath directly
17417 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17418 fi
17419 hardcode_libdir_separator_GCJ=:
17420 ;;
17421
17422 solaris*)
17423 no_undefined_flag_GCJ=' -z text'
17424 if test "$GCC" = yes; then
17425 wlarc='${wl}'
17426 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17427 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17428 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17429 else
17430 wlarc=''
17431 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17432 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17433 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17434 fi
17435 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17436 hardcode_shlibpath_var_GCJ=no
17437 case $host_os in
17438 solaris2.[0-5] | solaris2.[0-5].*) ;;
17439 *)
17440 # The compiler driver will combine linker options so we
17441 # cannot just pass the convience library names through
17442 # without $wl, iff we do not link with $LD.
17443 # Luckily, gcc supports the same syntax we need for Sun Studio.
17444 # Supported since Solaris 2.6 (maybe 2.5.1?)
17445 case $wlarc in
17446 '')
17447 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17448 *)
17449 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17450 esac ;;
17451 esac
17452 link_all_deplibs_GCJ=yes
17453 ;;
17454
17455 sunos4*)
17456 if test "x$host_vendor" = xsequent; then
17457 # Use $CC to link under sequent, because it throws in some extra .o
17458 # files that make .init and .fini sections work.
17459 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17460 else
17461 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17462 fi
17463 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17464 hardcode_direct_GCJ=yes
17465 hardcode_minus_L_GCJ=yes
17466 hardcode_shlibpath_var_GCJ=no
17467 ;;
17468
17469 sysv4)
17470 case $host_vendor in
17471 sni)
17472 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17473 hardcode_direct_GCJ=yes # is this really true???
17474 ;;
17475 siemens)
17476 ## LD is ld it makes a PLAMLIB
17477 ## CC just makes a GrossModule.
17478 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17479 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17480 hardcode_direct_GCJ=no
17481 ;;
17482 motorola)
17483 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17484 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17485 ;;
17486 esac
17487 runpath_var='LD_RUN_PATH'
17488 hardcode_shlibpath_var_GCJ=no
17489 ;;
17490
17491 sysv4.3*)
17492 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17493 hardcode_shlibpath_var_GCJ=no
17494 export_dynamic_flag_spec_GCJ='-Bexport'
17495 ;;
17496
17497 sysv4*MP*)
17498 if test -d /usr/nec; then
17499 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17500 hardcode_shlibpath_var_GCJ=no
17501 runpath_var=LD_RUN_PATH
17502 hardcode_runpath_var=yes
17503 ld_shlibs_GCJ=yes
17504 fi
17505 ;;
17506
17507 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17508 no_undefined_flag_GCJ='${wl}-z,text'
17509 archive_cmds_need_lc_GCJ=no
17510 hardcode_shlibpath_var_GCJ=no
17511 runpath_var='LD_RUN_PATH'
17512
17513 if test "$GCC" = yes; then
17514 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17515 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17516 else
17517 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17518 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17519 fi
17520 ;;
17521
17522 sysv5* | sco3.2v5* | sco5v6*)
17523 # Note: We can NOT use -z defs as we might desire, because we do not
17524 # link with -lc, and that would cause any symbols used from libc to
17525 # always be unresolved, which means just about no library would
17526 # ever link correctly. If we're not using GNU ld we use -z text
17527 # though, which does catch some bad symbols but isn't as heavy-handed
17528 # as -z defs.
17529 no_undefined_flag_GCJ='${wl}-z,text'
17530 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17531 archive_cmds_need_lc_GCJ=no
17532 hardcode_shlibpath_var_GCJ=no
17533 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17534 hardcode_libdir_separator_GCJ=':'
17535 link_all_deplibs_GCJ=yes
17536 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17537 runpath_var='LD_RUN_PATH'
17538
17539 if test "$GCC" = yes; then
17540 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17541 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17542 else
17543 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17544 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17545 fi
17546 ;;
17547
17548 uts4*)
17549 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17550 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17551 hardcode_shlibpath_var_GCJ=no
17552 ;;
17553
17554 *)
17555 ld_shlibs_GCJ=no
17556 ;;
17557 esac
17558 fi
17559
17560 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17561 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17562 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17563
17564 #
17565 # Do we need to explicitly link libc?
17566 #
17567 case "x$archive_cmds_need_lc_GCJ" in
17568 x|xyes)
17569 # Assume -lc should be added
17570 archive_cmds_need_lc_GCJ=yes
17571
17572 if test "$enable_shared" = yes && test "$GCC" = yes; then
17573 case $archive_cmds_GCJ in
17574 *'~'*)
17575 # FIXME: we may have to deal with multi-command sequences.
17576 ;;
17577 '$CC '*)
17578 # Test whether the compiler implicitly links with -lc since on some
17579 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17580 # to ld, don't add -lc before -lgcc.
17581 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17582 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17583 $rm conftest*
17584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17585
17586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17587 (eval $ac_compile) 2>&5
17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } 2>conftest.err; then
17591 soname=conftest
17592 lib=conftest
17593 libobjs=conftest.$ac_objext
17594 deplibs=
17595 wl=$lt_prog_compiler_wl_GCJ
17596 pic_flag=$lt_prog_compiler_pic_GCJ
17597 compiler_flags=-v
17598 linker_flags=-v
17599 verstring=
17600 output_objdir=.
17601 libname=conftest
17602 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17603 allow_undefined_flag_GCJ=
17604 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17605 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }
17609 then
17610 archive_cmds_need_lc_GCJ=no
17611 else
17612 archive_cmds_need_lc_GCJ=yes
17613 fi
17614 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17615 else
17616 cat conftest.err 1>&5
17617 fi
17618 $rm conftest*
17619 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17620 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17621 ;;
17622 esac
17623 fi
17624 ;;
17625 esac
17626
17627 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17628 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17629 library_names_spec=
17630 libname_spec='lib$name'
17631 soname_spec=
17632 shrext_cmds=".so"
17633 postinstall_cmds=
17634 postuninstall_cmds=
17635 finish_cmds=
17636 finish_eval=
17637 shlibpath_var=
17638 shlibpath_overrides_runpath=unknown
17639 version_type=none
17640 dynamic_linker="$host_os ld.so"
17641 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17642 if test "$GCC" = yes; then
17643 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17644 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17645 # if the path contains ";" then we assume it to be the separator
17646 # otherwise default to the standard path separator (i.e. ":") - it is
17647 # assumed that no part of a normal pathname contains ";" but that should
17648 # okay in the real world where ";" in dirpaths is itself problematic.
17649 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17650 else
17651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17652 fi
17653 else
17654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17655 fi
17656 need_lib_prefix=unknown
17657 hardcode_into_libs=no
17658
17659 # when you set need_version to no, make sure it does not cause -set_version
17660 # flags to be left without arguments
17661 need_version=unknown
17662
17663 case $host_os in
17664 aix3*)
17665 version_type=linux
17666 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17667 shlibpath_var=LIBPATH
17668
17669 # AIX 3 has no versioning support, so we append a major version to the name.
17670 soname_spec='${libname}${release}${shared_ext}$major'
17671 ;;
17672
17673 aix4* | aix5*)
17674 version_type=linux
17675 need_lib_prefix=no
17676 need_version=no
17677 hardcode_into_libs=yes
17678 if test "$host_cpu" = ia64; then
17679 # AIX 5 supports IA64
17680 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17681 shlibpath_var=LD_LIBRARY_PATH
17682 else
17683 # With GCC up to 2.95.x, collect2 would create an import file
17684 # for dependence libraries. The import file would start with
17685 # the line `#! .'. This would cause the generated library to
17686 # depend on `.', always an invalid library. This was fixed in
17687 # development snapshots of GCC prior to 3.0.
17688 case $host_os in
17689 aix4 | aix4.[01] | aix4.[01].*)
17690 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17691 echo ' yes '
17692 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17693 :
17694 else
17695 can_build_shared=no
17696 fi
17697 ;;
17698 esac
17699 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17700 # soname into executable. Probably we can add versioning support to
17701 # collect2, so additional links can be useful in future.
17702 if test "$aix_use_runtimelinking" = yes; then
17703 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17704 # instead of lib<name>.a to let people know that these are not
17705 # typical AIX shared libraries.
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17707 else
17708 # We preserve .a as extension for shared libraries through AIX4.2
17709 # and later when we are not doing run time linking.
17710 library_names_spec='${libname}${release}.a $libname.a'
17711 soname_spec='${libname}${release}${shared_ext}$major'
17712 fi
17713 shlibpath_var=LIBPATH
17714 fi
17715 ;;
17716
17717 amigaos*)
17718 library_names_spec='$libname.ixlibrary $libname.a'
17719 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17720 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'
17721 ;;
17722
17723 beos*)
17724 library_names_spec='${libname}${shared_ext}'
17725 dynamic_linker="$host_os ld.so"
17726 shlibpath_var=LIBRARY_PATH
17727 ;;
17728
17729 bsdi[45]*)
17730 version_type=linux
17731 need_version=no
17732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17733 soname_spec='${libname}${release}${shared_ext}$major'
17734 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17735 shlibpath_var=LD_LIBRARY_PATH
17736 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17737 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17738 # the default ld.so.conf also contains /usr/contrib/lib and
17739 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17740 # libtool to hard-code these into programs
17741 ;;
17742
17743 cygwin* | mingw* | pw32*)
17744 version_type=windows
17745 shrext_cmds=".dll"
17746 need_version=no
17747 need_lib_prefix=no
17748
17749 case $GCC,$host_os in
17750 yes,cygwin* | yes,mingw* | yes,pw32*)
17751 library_names_spec='$libname.dll.a'
17752 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17753 postinstall_cmds='base_file=`basename \${file}`~
17754 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17755 dldir=$destdir/`dirname \$dlpath`~
17756 test -d \$dldir || mkdir -p \$dldir~
17757 $install_prog $dir/$dlname \$dldir/$dlname~
17758 chmod a+x \$dldir/$dlname'
17759 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17760 dlpath=$dir/\$dldll~
17761 $rm \$dlpath'
17762 shlibpath_overrides_runpath=yes
17763
17764 case $host_os in
17765 cygwin*)
17766 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17767 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17768 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17769 ;;
17770 mingw*)
17771 # MinGW DLLs use traditional 'lib' prefix
17772 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17773 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17774 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17775 # It is most probably a Windows format PATH printed by
17776 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17777 # path with ; separators, and with drive letters. We can handle the
17778 # drive letters (cygwin fileutils understands them), so leave them,
17779 # especially as we might pass files found there to a mingw objdump,
17780 # which wouldn't understand a cygwinified path. Ahh.
17781 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17782 else
17783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17784 fi
17785 ;;
17786 pw32*)
17787 # pw32 DLLs use 'pw' prefix rather than 'lib'
17788 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17789 ;;
17790 esac
17791 ;;
17792
17793 *)
17794 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17795 ;;
17796 esac
17797 dynamic_linker='Win32 ld.exe'
17798 # FIXME: first we should search . and the directory the executable is in
17799 shlibpath_var=PATH
17800 ;;
17801
17802 darwin* | rhapsody*)
17803 dynamic_linker="$host_os dyld"
17804 version_type=darwin
17805 need_lib_prefix=no
17806 need_version=no
17807 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17808 soname_spec='${libname}${release}${major}$shared_ext'
17809 shlibpath_overrides_runpath=yes
17810 shlibpath_var=DYLD_LIBRARY_PATH
17811 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17812 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17813 if test "$GCC" = yes; then
17814 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17815 else
17816 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17817 fi
17818 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17819 ;;
17820
17821 dgux*)
17822 version_type=linux
17823 need_lib_prefix=no
17824 need_version=no
17825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17826 soname_spec='${libname}${release}${shared_ext}$major'
17827 shlibpath_var=LD_LIBRARY_PATH
17828 ;;
17829
17830 freebsd1*)
17831 dynamic_linker=no
17832 ;;
17833
17834 kfreebsd*-gnu)
17835 version_type=linux
17836 need_lib_prefix=no
17837 need_version=no
17838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17839 soname_spec='${libname}${release}${shared_ext}$major'
17840 shlibpath_var=LD_LIBRARY_PATH
17841 shlibpath_overrides_runpath=no
17842 hardcode_into_libs=yes
17843 dynamic_linker='GNU ld.so'
17844 ;;
17845
17846 freebsd* | dragonfly*)
17847 # DragonFly does not have aout. When/if they implement a new
17848 # versioning mechanism, adjust this.
17849 if test -x /usr/bin/objformat; then
17850 objformat=`/usr/bin/objformat`
17851 else
17852 case $host_os in
17853 freebsd[123]*) objformat=aout ;;
17854 *) objformat=elf ;;
17855 esac
17856 fi
17857 version_type=freebsd-$objformat
17858 case $version_type in
17859 freebsd-elf*)
17860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17861 need_version=no
17862 need_lib_prefix=no
17863 ;;
17864 freebsd-*)
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17866 need_version=yes
17867 ;;
17868 esac
17869 shlibpath_var=LD_LIBRARY_PATH
17870 case $host_os in
17871 freebsd2*)
17872 shlibpath_overrides_runpath=yes
17873 ;;
17874 freebsd3.[01]* | freebsdelf3.[01]*)
17875 shlibpath_overrides_runpath=yes
17876 hardcode_into_libs=yes
17877 ;;
17878 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17879 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17880 shlibpath_overrides_runpath=no
17881 hardcode_into_libs=yes
17882 ;;
17883 freebsd*) # from 4.6 on
17884 shlibpath_overrides_runpath=yes
17885 hardcode_into_libs=yes
17886 ;;
17887 esac
17888 ;;
17889
17890 gnu*)
17891 version_type=linux
17892 need_lib_prefix=no
17893 need_version=no
17894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17895 soname_spec='${libname}${release}${shared_ext}$major'
17896 shlibpath_var=LD_LIBRARY_PATH
17897 hardcode_into_libs=yes
17898 ;;
17899
17900 hpux9* | hpux10* | hpux11*)
17901 # Give a soname corresponding to the major version so that dld.sl refuses to
17902 # link against other versions.
17903 version_type=sunos
17904 need_lib_prefix=no
17905 need_version=no
17906 case $host_cpu in
17907 ia64*)
17908 shrext_cmds='.so'
17909 hardcode_into_libs=yes
17910 dynamic_linker="$host_os dld.so"
17911 shlibpath_var=LD_LIBRARY_PATH
17912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17914 soname_spec='${libname}${release}${shared_ext}$major'
17915 if test "X$HPUX_IA64_MODE" = X32; then
17916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17917 else
17918 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17919 fi
17920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17921 ;;
17922 hppa*64*)
17923 shrext_cmds='.sl'
17924 hardcode_into_libs=yes
17925 dynamic_linker="$host_os dld.sl"
17926 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17929 soname_spec='${libname}${release}${shared_ext}$major'
17930 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17932 ;;
17933 *)
17934 shrext_cmds='.sl'
17935 dynamic_linker="$host_os dld.sl"
17936 shlibpath_var=SHLIB_PATH
17937 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17939 soname_spec='${libname}${release}${shared_ext}$major'
17940 ;;
17941 esac
17942 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17943 postinstall_cmds='chmod 555 $lib'
17944 ;;
17945
17946 interix3*)
17947 version_type=linux
17948 need_lib_prefix=no
17949 need_version=no
17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17951 soname_spec='${libname}${release}${shared_ext}$major'
17952 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17953 shlibpath_var=LD_LIBRARY_PATH
17954 shlibpath_overrides_runpath=no
17955 hardcode_into_libs=yes
17956 ;;
17957
17958 irix5* | irix6* | nonstopux*)
17959 case $host_os in
17960 nonstopux*) version_type=nonstopux ;;
17961 *)
17962 if test "$lt_cv_prog_gnu_ld" = yes; then
17963 version_type=linux
17964 else
17965 version_type=irix
17966 fi ;;
17967 esac
17968 need_lib_prefix=no
17969 need_version=no
17970 soname_spec='${libname}${release}${shared_ext}$major'
17971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17972 case $host_os in
17973 irix5* | nonstopux*)
17974 libsuff= shlibsuff=
17975 ;;
17976 *)
17977 case $LD in # libtool.m4 will add one of these switches to LD
17978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17979 libsuff= shlibsuff= libmagic=32-bit;;
17980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17981 libsuff=32 shlibsuff=N32 libmagic=N32;;
17982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17983 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17984 *) libsuff= shlibsuff= libmagic=never-match;;
17985 esac
17986 ;;
17987 esac
17988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17989 shlibpath_overrides_runpath=no
17990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17992 hardcode_into_libs=yes
17993 ;;
17994
17995 # No shared lib support for Linux oldld, aout, or coff.
17996 linux*oldld* | linux*aout* | linux*coff*)
17997 dynamic_linker=no
17998 ;;
17999
18000 # This must be Linux ELF.
18001 linux*)
18002 version_type=linux
18003 need_lib_prefix=no
18004 need_version=no
18005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18006 soname_spec='${libname}${release}${shared_ext}$major'
18007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18008 shlibpath_var=LD_LIBRARY_PATH
18009 shlibpath_overrides_runpath=no
18010 # This implies no fast_install, which is unacceptable.
18011 # Some rework will be needed to allow for fast_install
18012 # before this can be enabled.
18013 hardcode_into_libs=yes
18014
18015 # Append ld.so.conf contents to the search path
18016 if test -f /etc/ld.so.conf; then
18017 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18018 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18019 fi
18020
18021 # We used to test for /lib/ld.so.1 and disable shared libraries on
18022 # powerpc, because MkLinux only supported shared libraries with the
18023 # GNU dynamic linker. Since this was broken with cross compilers,
18024 # most powerpc-linux boxes support dynamic linking these days and
18025 # people can always --disable-shared, the test was removed, and we
18026 # assume the GNU/Linux dynamic linker is in use.
18027 dynamic_linker='GNU/Linux ld.so'
18028 ;;
18029
18030 knetbsd*-gnu)
18031 version_type=linux
18032 need_lib_prefix=no
18033 need_version=no
18034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18035 soname_spec='${libname}${release}${shared_ext}$major'
18036 shlibpath_var=LD_LIBRARY_PATH
18037 shlibpath_overrides_runpath=no
18038 hardcode_into_libs=yes
18039 dynamic_linker='GNU ld.so'
18040 ;;
18041
18042 netbsd*)
18043 version_type=sunos
18044 need_lib_prefix=no
18045 need_version=no
18046 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18049 dynamic_linker='NetBSD (a.out) ld.so'
18050 else
18051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18052 soname_spec='${libname}${release}${shared_ext}$major'
18053 dynamic_linker='NetBSD ld.elf_so'
18054 fi
18055 shlibpath_var=LD_LIBRARY_PATH
18056 shlibpath_overrides_runpath=yes
18057 hardcode_into_libs=yes
18058 ;;
18059
18060 newsos6)
18061 version_type=linux
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18063 shlibpath_var=LD_LIBRARY_PATH
18064 shlibpath_overrides_runpath=yes
18065 ;;
18066
18067 nto-qnx*)
18068 version_type=linux
18069 need_lib_prefix=no
18070 need_version=no
18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18072 soname_spec='${libname}${release}${shared_ext}$major'
18073 shlibpath_var=LD_LIBRARY_PATH
18074 shlibpath_overrides_runpath=yes
18075 ;;
18076
18077 openbsd*)
18078 version_type=sunos
18079 sys_lib_dlsearch_path_spec="/usr/lib"
18080 need_lib_prefix=no
18081 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18082 case $host_os in
18083 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18084 *) need_version=no ;;
18085 esac
18086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18088 shlibpath_var=LD_LIBRARY_PATH
18089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18090 case $host_os in
18091 openbsd2.[89] | openbsd2.[89].*)
18092 shlibpath_overrides_runpath=no
18093 ;;
18094 *)
18095 shlibpath_overrides_runpath=yes
18096 ;;
18097 esac
18098 else
18099 shlibpath_overrides_runpath=yes
18100 fi
18101 ;;
18102
18103 os2*)
18104 libname_spec='$name'
18105 shrext_cmds=".dll"
18106 need_lib_prefix=no
18107 library_names_spec='$libname${shared_ext} $libname.a'
18108 dynamic_linker='OS/2 ld.exe'
18109 shlibpath_var=LIBPATH
18110 ;;
18111
18112 osf3* | osf4* | osf5*)
18113 version_type=osf
18114 need_lib_prefix=no
18115 need_version=no
18116 soname_spec='${libname}${release}${shared_ext}$major'
18117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18118 shlibpath_var=LD_LIBRARY_PATH
18119 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18120 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18121 ;;
18122
18123 solaris*)
18124 version_type=linux
18125 need_lib_prefix=no
18126 need_version=no
18127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18128 soname_spec='${libname}${release}${shared_ext}$major'
18129 shlibpath_var=LD_LIBRARY_PATH
18130 shlibpath_overrides_runpath=yes
18131 hardcode_into_libs=yes
18132 # ldd complains unless libraries are executable
18133 postinstall_cmds='chmod +x $lib'
18134 ;;
18135
18136 sunos4*)
18137 version_type=sunos
18138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18139 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18140 shlibpath_var=LD_LIBRARY_PATH
18141 shlibpath_overrides_runpath=yes
18142 if test "$with_gnu_ld" = yes; then
18143 need_lib_prefix=no
18144 fi
18145 need_version=yes
18146 ;;
18147
18148 sysv4 | sysv4.3*)
18149 version_type=linux
18150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18151 soname_spec='${libname}${release}${shared_ext}$major'
18152 shlibpath_var=LD_LIBRARY_PATH
18153 case $host_vendor in
18154 sni)
18155 shlibpath_overrides_runpath=no
18156 need_lib_prefix=no
18157 export_dynamic_flag_spec='${wl}-Blargedynsym'
18158 runpath_var=LD_RUN_PATH
18159 ;;
18160 siemens)
18161 need_lib_prefix=no
18162 ;;
18163 motorola)
18164 need_lib_prefix=no
18165 need_version=no
18166 shlibpath_overrides_runpath=no
18167 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18168 ;;
18169 esac
18170 ;;
18171
18172 sysv4*MP*)
18173 if test -d /usr/nec ;then
18174 version_type=linux
18175 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18176 soname_spec='$libname${shared_ext}.$major'
18177 shlibpath_var=LD_LIBRARY_PATH
18178 fi
18179 ;;
18180
18181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18182 version_type=freebsd-elf
18183 need_lib_prefix=no
18184 need_version=no
18185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18186 soname_spec='${libname}${release}${shared_ext}$major'
18187 shlibpath_var=LD_LIBRARY_PATH
18188 hardcode_into_libs=yes
18189 if test "$with_gnu_ld" = yes; then
18190 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18191 shlibpath_overrides_runpath=no
18192 else
18193 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18194 shlibpath_overrides_runpath=yes
18195 case $host_os in
18196 sco3.2v5*)
18197 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18198 ;;
18199 esac
18200 fi
18201 sys_lib_dlsearch_path_spec='/usr/lib'
18202 ;;
18203
18204 uts4*)
18205 version_type=linux
18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18207 soname_spec='${libname}${release}${shared_ext}$major'
18208 shlibpath_var=LD_LIBRARY_PATH
18209 ;;
18210
18211 *)
18212 dynamic_linker=no
18213 ;;
18214 esac
18215 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18216 echo "${ECHO_T}$dynamic_linker" >&6; }
18217 test "$dynamic_linker" = no && can_build_shared=no
18218
18219 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18220 if test "$GCC" = yes; then
18221 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18222 fi
18223
18224 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18225 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18226 hardcode_action_GCJ=
18227 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18228 test -n "$runpath_var_GCJ" || \
18229 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18230
18231 # We can hardcode non-existant directories.
18232 if test "$hardcode_direct_GCJ" != no &&
18233 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18234 # have to relink, otherwise we might link with an installed library
18235 # when we should be linking with a yet-to-be-installed one
18236 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18237 test "$hardcode_minus_L_GCJ" != no; then
18238 # Linking always hardcodes the temporary library directory.
18239 hardcode_action_GCJ=relink
18240 else
18241 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18242 hardcode_action_GCJ=immediate
18243 fi
18244 else
18245 # We cannot hardcode anything, or else we can only hardcode existing
18246 # directories.
18247 hardcode_action_GCJ=unsupported
18248 fi
18249 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18250 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18251
18252 if test "$hardcode_action_GCJ" = relink; then
18253 # Fast installation is not supported
18254 enable_fast_install=no
18255 elif test "$shlibpath_overrides_runpath" = yes ||
18256 test "$enable_shared" = no; then
18257 # Fast installation is not necessary
18258 enable_fast_install=needless
18259 fi
18260
18261
18262 # The else clause should only fire when bootstrapping the
18263 # libtool distribution, otherwise you forgot to ship ltmain.sh
18264 # with your package, and you will get complaints that there are
18265 # no rules to generate ltmain.sh.
18266 if test -f "$ltmain"; then
18267 # See if we are running on zsh, and set the options which allow our commands through
18268 # without removal of \ escapes.
18269 if test -n "${ZSH_VERSION+set}" ; then
18270 setopt NO_GLOB_SUBST
18271 fi
18272 # Now quote all the things that may contain metacharacters while being
18273 # careful not to overquote the AC_SUBSTed values. We take copies of the
18274 # variables and quote the copies for generation of the libtool script.
18275 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18276 SED SHELL STRIP \
18277 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18278 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18279 deplibs_check_method reload_flag reload_cmds need_locks \
18280 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18281 lt_cv_sys_global_symbol_to_c_name_address \
18282 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18283 old_postinstall_cmds old_postuninstall_cmds \
18284 compiler_GCJ \
18285 CC_GCJ \
18286 LD_GCJ \
18287 lt_prog_compiler_wl_GCJ \
18288 lt_prog_compiler_pic_GCJ \
18289 lt_prog_compiler_static_GCJ \
18290 lt_prog_compiler_no_builtin_flag_GCJ \
18291 export_dynamic_flag_spec_GCJ \
18292 thread_safe_flag_spec_GCJ \
18293 whole_archive_flag_spec_GCJ \
18294 enable_shared_with_static_runtimes_GCJ \
18295 old_archive_cmds_GCJ \
18296 old_archive_from_new_cmds_GCJ \
18297 predep_objects_GCJ \
18298 postdep_objects_GCJ \
18299 predeps_GCJ \
18300 postdeps_GCJ \
18301 compiler_lib_search_path_GCJ \
18302 archive_cmds_GCJ \
18303 archive_expsym_cmds_GCJ \
18304 postinstall_cmds_GCJ \
18305 postuninstall_cmds_GCJ \
18306 old_archive_from_expsyms_cmds_GCJ \
18307 allow_undefined_flag_GCJ \
18308 no_undefined_flag_GCJ \
18309 export_symbols_cmds_GCJ \
18310 hardcode_libdir_flag_spec_GCJ \
18311 hardcode_libdir_flag_spec_ld_GCJ \
18312 hardcode_libdir_separator_GCJ \
18313 hardcode_automatic_GCJ \
18314 module_cmds_GCJ \
18315 module_expsym_cmds_GCJ \
18316 lt_cv_prog_compiler_c_o_GCJ \
18317 exclude_expsyms_GCJ \
18318 include_expsyms_GCJ; do
18319
18320 case $var in
18321 old_archive_cmds_GCJ | \
18322 old_archive_from_new_cmds_GCJ | \
18323 archive_cmds_GCJ | \
18324 archive_expsym_cmds_GCJ | \
18325 module_cmds_GCJ | \
18326 module_expsym_cmds_GCJ | \
18327 old_archive_from_expsyms_cmds_GCJ | \
18328 export_symbols_cmds_GCJ | \
18329 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18330 postinstall_cmds | postuninstall_cmds | \
18331 old_postinstall_cmds | old_postuninstall_cmds | \
18332 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18333 # Double-quote double-evaled strings.
18334 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18335 ;;
18336 *)
18337 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18338 ;;
18339 esac
18340 done
18341
18342 case $lt_echo in
18343 *'\$0 --fallback-echo"')
18344 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18345 ;;
18346 esac
18347
18348 cfgfile="$ofile"
18349
18350 cat <<__EOF__ >> "$cfgfile"
18351 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18352
18353 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18354
18355 # Shell to use when invoking shell scripts.
18356 SHELL=$lt_SHELL
18357
18358 # Whether or not to build shared libraries.
18359 build_libtool_libs=$enable_shared
18360
18361 # Whether or not to build static libraries.
18362 build_old_libs=$enable_static
18363
18364 # Whether or not to add -lc for building shared libraries.
18365 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18366
18367 # Whether or not to disallow shared libs when runtime libs are static
18368 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18369
18370 # Whether or not to optimize for fast installation.
18371 fast_install=$enable_fast_install
18372
18373 # The host system.
18374 host_alias=$host_alias
18375 host=$host
18376 host_os=$host_os
18377
18378 # The build system.
18379 build_alias=$build_alias
18380 build=$build
18381 build_os=$build_os
18382
18383 # An echo program that does not interpret backslashes.
18384 echo=$lt_echo
18385
18386 # The archiver.
18387 AR=$lt_AR
18388 AR_FLAGS=$lt_AR_FLAGS
18389
18390 # A C compiler.
18391 LTCC=$lt_LTCC
18392
18393 # LTCC compiler flags.
18394 LTCFLAGS=$lt_LTCFLAGS
18395
18396 # A language-specific compiler.
18397 CC=$lt_compiler_GCJ
18398
18399 # Is the compiler the GNU C compiler?
18400 with_gcc=$GCC_GCJ
18401
18402 # An ERE matcher.
18403 EGREP=$lt_EGREP
18404
18405 # The linker used to build libraries.
18406 LD=$lt_LD_GCJ
18407
18408 # Whether we need hard or soft links.
18409 LN_S=$lt_LN_S
18410
18411 # A BSD-compatible nm program.
18412 NM=$lt_NM
18413
18414 # A symbol stripping program
18415 STRIP=$lt_STRIP
18416
18417 # Used to examine libraries when file_magic_cmd begins "file"
18418 MAGIC_CMD=$MAGIC_CMD
18419
18420 # Used on cygwin: DLL creation program.
18421 DLLTOOL="$DLLTOOL"
18422
18423 # Used on cygwin: object dumper.
18424 OBJDUMP="$OBJDUMP"
18425
18426 # Used on cygwin: assembler.
18427 AS="$AS"
18428
18429 # The name of the directory that contains temporary libtool files.
18430 objdir=$objdir
18431
18432 # How to create reloadable object files.
18433 reload_flag=$lt_reload_flag
18434 reload_cmds=$lt_reload_cmds
18435
18436 # How to pass a linker flag through the compiler.
18437 wl=$lt_lt_prog_compiler_wl_GCJ
18438
18439 # Object file suffix (normally "o").
18440 objext="$ac_objext"
18441
18442 # Old archive suffix (normally "a").
18443 libext="$libext"
18444
18445 # Shared library suffix (normally ".so").
18446 shrext_cmds='$shrext_cmds'
18447
18448 # Executable file suffix (normally "").
18449 exeext="$exeext"
18450
18451 # Additional compiler flags for building library objects.
18452 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18453 pic_mode=$pic_mode
18454
18455 # What is the maximum length of a command?
18456 max_cmd_len=$lt_cv_sys_max_cmd_len
18457
18458 # Does compiler simultaneously support -c and -o options?
18459 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18460
18461 # Must we lock files when doing compilation?
18462 need_locks=$lt_need_locks
18463
18464 # Do we need the lib prefix for modules?
18465 need_lib_prefix=$need_lib_prefix
18466
18467 # Do we need a version for libraries?
18468 need_version=$need_version
18469
18470 # Whether dlopen is supported.
18471 dlopen_support=$enable_dlopen
18472
18473 # Whether dlopen of programs is supported.
18474 dlopen_self=$enable_dlopen_self
18475
18476 # Whether dlopen of statically linked programs is supported.
18477 dlopen_self_static=$enable_dlopen_self_static
18478
18479 # Compiler flag to prevent dynamic linking.
18480 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18481
18482 # Compiler flag to turn off builtin functions.
18483 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18484
18485 # Compiler flag to allow reflexive dlopens.
18486 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18487
18488 # Compiler flag to generate shared objects directly from archives.
18489 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18490
18491 # Compiler flag to generate thread-safe objects.
18492 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18493
18494 # Library versioning type.
18495 version_type=$version_type
18496
18497 # Format of library name prefix.
18498 libname_spec=$lt_libname_spec
18499
18500 # List of archive names. First name is the real one, the rest are links.
18501 # The last name is the one that the linker finds with -lNAME.
18502 library_names_spec=$lt_library_names_spec
18503
18504 # The coded name of the library, if different from the real name.
18505 soname_spec=$lt_soname_spec
18506
18507 # Commands used to build and install an old-style archive.
18508 RANLIB=$lt_RANLIB
18509 old_archive_cmds=$lt_old_archive_cmds_GCJ
18510 old_postinstall_cmds=$lt_old_postinstall_cmds
18511 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18512
18513 # Create an old-style archive from a shared archive.
18514 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18515
18516 # Create a temporary old-style archive to link instead of a shared archive.
18517 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18518
18519 # Commands used to build and install a shared archive.
18520 archive_cmds=$lt_archive_cmds_GCJ
18521 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18522 postinstall_cmds=$lt_postinstall_cmds
18523 postuninstall_cmds=$lt_postuninstall_cmds
18524
18525 # Commands used to build a loadable module (assumed same as above if empty)
18526 module_cmds=$lt_module_cmds_GCJ
18527 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18528
18529 # Commands to strip libraries.
18530 old_striplib=$lt_old_striplib
18531 striplib=$lt_striplib
18532
18533 # Dependencies to place before the objects being linked to create a
18534 # shared library.
18535 predep_objects=$lt_predep_objects_GCJ
18536
18537 # Dependencies to place after the objects being linked to create a
18538 # shared library.
18539 postdep_objects=$lt_postdep_objects_GCJ
18540
18541 # Dependencies to place before the objects being linked to create a
18542 # shared library.
18543 predeps=$lt_predeps_GCJ
18544
18545 # Dependencies to place after the objects being linked to create a
18546 # shared library.
18547 postdeps=$lt_postdeps_GCJ
18548
18549 # The library search path used internally by the compiler when linking
18550 # a shared library.
18551 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18552
18553 # Method to check whether dependent libraries are shared objects.
18554 deplibs_check_method=$lt_deplibs_check_method
18555
18556 # Command to use when deplibs_check_method == file_magic.
18557 file_magic_cmd=$lt_file_magic_cmd
18558
18559 # Flag that allows shared libraries with undefined symbols to be built.
18560 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18561
18562 # Flag that forces no undefined symbols.
18563 no_undefined_flag=$lt_no_undefined_flag_GCJ
18564
18565 # Commands used to finish a libtool library installation in a directory.
18566 finish_cmds=$lt_finish_cmds
18567
18568 # Same as above, but a single script fragment to be evaled but not shown.
18569 finish_eval=$lt_finish_eval
18570
18571 # Take the output of nm and produce a listing of raw symbols and C names.
18572 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18573
18574 # Transform the output of nm in a proper C declaration
18575 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18576
18577 # Transform the output of nm in a C name address pair
18578 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18579
18580 # This is the shared library runtime path variable.
18581 runpath_var=$runpath_var
18582
18583 # This is the shared library path variable.
18584 shlibpath_var=$shlibpath_var
18585
18586 # Is shlibpath searched before the hard-coded library search path?
18587 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18588
18589 # How to hardcode a shared library path into an executable.
18590 hardcode_action=$hardcode_action_GCJ
18591
18592 # Whether we should hardcode library paths into libraries.
18593 hardcode_into_libs=$hardcode_into_libs
18594
18595 # Flag to hardcode \$libdir into a binary during linking.
18596 # This must work even if \$libdir does not exist.
18597 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18598
18599 # If ld is used when linking, flag to hardcode \$libdir into
18600 # a binary during linking. This must work even if \$libdir does
18601 # not exist.
18602 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18603
18604 # Whether we need a single -rpath flag with a separated argument.
18605 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18606
18607 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18608 # resulting binary.
18609 hardcode_direct=$hardcode_direct_GCJ
18610
18611 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18612 # resulting binary.
18613 hardcode_minus_L=$hardcode_minus_L_GCJ
18614
18615 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18616 # the resulting binary.
18617 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18618
18619 # Set to yes if building a shared library automatically hardcodes DIR into the library
18620 # and all subsequent libraries and executables linked against it.
18621 hardcode_automatic=$hardcode_automatic_GCJ
18622
18623 # Variables whose values should be saved in libtool wrapper scripts and
18624 # restored at relink time.
18625 variables_saved_for_relink="$variables_saved_for_relink"
18626
18627 # Whether libtool must link a program against all its dependency libraries.
18628 link_all_deplibs=$link_all_deplibs_GCJ
18629
18630 # Compile-time system search path for libraries
18631 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18632
18633 # Run-time system search path for libraries
18634 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18635
18636 # Fix the shell variable \$srcfile for the compiler.
18637 fix_srcfile_path="$fix_srcfile_path_GCJ"
18638
18639 # Set to yes if exported symbols are required.
18640 always_export_symbols=$always_export_symbols_GCJ
18641
18642 # The commands to list exported symbols.
18643 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18644
18645 # The commands to extract the exported symbol list from a shared archive.
18646 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18647
18648 # Symbols that should not be listed in the preloaded symbols.
18649 exclude_expsyms=$lt_exclude_expsyms_GCJ
18650
18651 # Symbols that must always be exported.
18652 include_expsyms=$lt_include_expsyms_GCJ
18653
18654 # ### END LIBTOOL TAG CONFIG: $tagname
18655
18656 __EOF__
18657
18658
18659 else
18660 # If there is no Makefile yet, we rely on a make rule to execute
18661 # `config.status --recheck' to rerun these tests and create the
18662 # libtool script then.
18663 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18664 if test -f "$ltmain_in"; then
18665 test -f Makefile && make "$ltmain"
18666 fi
18667 fi
18668
18669
18670 ac_ext=c
18671 ac_cpp='$CPP $CPPFLAGS'
18672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18675
18676 CC="$lt_save_CC"
18677
18678 else
18679 tagname=""
18680 fi
18681 ;;
18682
18683 RC)
18684
18685
18686 # Source file extension for RC test sources.
18687 ac_ext=rc
18688
18689 # Object file extension for compiled RC test sources.
18690 objext=o
18691 objext_RC=$objext
18692
18693 # Code to be used in simple compile tests
18694 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18695
18696 # Code to be used in simple link tests
18697 lt_simple_link_test_code="$lt_simple_compile_test_code"
18698
18699 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18700
18701 # If no C compiler was specified, use CC.
18702 LTCC=${LTCC-"$CC"}
18703
18704 # If no C compiler flags were specified, use CFLAGS.
18705 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18706
18707 # Allow CC to be a program name with arguments.
18708 compiler=$CC
18709
18710
18711 # save warnings/boilerplate of simple test code
18712 ac_outfile=conftest.$ac_objext
18713 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18714 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18715 _lt_compiler_boilerplate=`cat conftest.err`
18716 $rm conftest*
18717
18718 ac_outfile=conftest.$ac_objext
18719 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18720 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18721 _lt_linker_boilerplate=`cat conftest.err`
18722 $rm conftest*
18723
18724
18725 # Allow CC to be a program name with arguments.
18726 lt_save_CC="$CC"
18727 CC=${RC-"windres"}
18728 compiler=$CC
18729 compiler_RC=$CC
18730 for cc_temp in $compiler""; do
18731 case $cc_temp in
18732 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18733 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18734 \-*) ;;
18735 *) break;;
18736 esac
18737 done
18738 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18739
18740 lt_cv_prog_compiler_c_o_RC=yes
18741
18742 # The else clause should only fire when bootstrapping the
18743 # libtool distribution, otherwise you forgot to ship ltmain.sh
18744 # with your package, and you will get complaints that there are
18745 # no rules to generate ltmain.sh.
18746 if test -f "$ltmain"; then
18747 # See if we are running on zsh, and set the options which allow our commands through
18748 # without removal of \ escapes.
18749 if test -n "${ZSH_VERSION+set}" ; then
18750 setopt NO_GLOB_SUBST
18751 fi
18752 # Now quote all the things that may contain metacharacters while being
18753 # careful not to overquote the AC_SUBSTed values. We take copies of the
18754 # variables and quote the copies for generation of the libtool script.
18755 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18756 SED SHELL STRIP \
18757 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18758 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18759 deplibs_check_method reload_flag reload_cmds need_locks \
18760 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18761 lt_cv_sys_global_symbol_to_c_name_address \
18762 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18763 old_postinstall_cmds old_postuninstall_cmds \
18764 compiler_RC \
18765 CC_RC \
18766 LD_RC \
18767 lt_prog_compiler_wl_RC \
18768 lt_prog_compiler_pic_RC \
18769 lt_prog_compiler_static_RC \
18770 lt_prog_compiler_no_builtin_flag_RC \
18771 export_dynamic_flag_spec_RC \
18772 thread_safe_flag_spec_RC \
18773 whole_archive_flag_spec_RC \
18774 enable_shared_with_static_runtimes_RC \
18775 old_archive_cmds_RC \
18776 old_archive_from_new_cmds_RC \
18777 predep_objects_RC \
18778 postdep_objects_RC \
18779 predeps_RC \
18780 postdeps_RC \
18781 compiler_lib_search_path_RC \
18782 archive_cmds_RC \
18783 archive_expsym_cmds_RC \
18784 postinstall_cmds_RC \
18785 postuninstall_cmds_RC \
18786 old_archive_from_expsyms_cmds_RC \
18787 allow_undefined_flag_RC \
18788 no_undefined_flag_RC \
18789 export_symbols_cmds_RC \
18790 hardcode_libdir_flag_spec_RC \
18791 hardcode_libdir_flag_spec_ld_RC \
18792 hardcode_libdir_separator_RC \
18793 hardcode_automatic_RC \
18794 module_cmds_RC \
18795 module_expsym_cmds_RC \
18796 lt_cv_prog_compiler_c_o_RC \
18797 exclude_expsyms_RC \
18798 include_expsyms_RC; do
18799
18800 case $var in
18801 old_archive_cmds_RC | \
18802 old_archive_from_new_cmds_RC | \
18803 archive_cmds_RC | \
18804 archive_expsym_cmds_RC | \
18805 module_cmds_RC | \
18806 module_expsym_cmds_RC | \
18807 old_archive_from_expsyms_cmds_RC | \
18808 export_symbols_cmds_RC | \
18809 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18810 postinstall_cmds | postuninstall_cmds | \
18811 old_postinstall_cmds | old_postuninstall_cmds | \
18812 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18813 # Double-quote double-evaled strings.
18814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18815 ;;
18816 *)
18817 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18818 ;;
18819 esac
18820 done
18821
18822 case $lt_echo in
18823 *'\$0 --fallback-echo"')
18824 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18825 ;;
18826 esac
18827
18828 cfgfile="$ofile"
18829
18830 cat <<__EOF__ >> "$cfgfile"
18831 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18832
18833 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18834
18835 # Shell to use when invoking shell scripts.
18836 SHELL=$lt_SHELL
18837
18838 # Whether or not to build shared libraries.
18839 build_libtool_libs=$enable_shared
18840
18841 # Whether or not to build static libraries.
18842 build_old_libs=$enable_static
18843
18844 # Whether or not to add -lc for building shared libraries.
18845 build_libtool_need_lc=$archive_cmds_need_lc_RC
18846
18847 # Whether or not to disallow shared libs when runtime libs are static
18848 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18849
18850 # Whether or not to optimize for fast installation.
18851 fast_install=$enable_fast_install
18852
18853 # The host system.
18854 host_alias=$host_alias
18855 host=$host
18856 host_os=$host_os
18857
18858 # The build system.
18859 build_alias=$build_alias
18860 build=$build
18861 build_os=$build_os
18862
18863 # An echo program that does not interpret backslashes.
18864 echo=$lt_echo
18865
18866 # The archiver.
18867 AR=$lt_AR
18868 AR_FLAGS=$lt_AR_FLAGS
18869
18870 # A C compiler.
18871 LTCC=$lt_LTCC
18872
18873 # LTCC compiler flags.
18874 LTCFLAGS=$lt_LTCFLAGS
18875
18876 # A language-specific compiler.
18877 CC=$lt_compiler_RC
18878
18879 # Is the compiler the GNU C compiler?
18880 with_gcc=$GCC_RC
18881
18882 # An ERE matcher.
18883 EGREP=$lt_EGREP
18884
18885 # The linker used to build libraries.
18886 LD=$lt_LD_RC
18887
18888 # Whether we need hard or soft links.
18889 LN_S=$lt_LN_S
18890
18891 # A BSD-compatible nm program.
18892 NM=$lt_NM
18893
18894 # A symbol stripping program
18895 STRIP=$lt_STRIP
18896
18897 # Used to examine libraries when file_magic_cmd begins "file"
18898 MAGIC_CMD=$MAGIC_CMD
18899
18900 # Used on cygwin: DLL creation program.
18901 DLLTOOL="$DLLTOOL"
18902
18903 # Used on cygwin: object dumper.
18904 OBJDUMP="$OBJDUMP"
18905
18906 # Used on cygwin: assembler.
18907 AS="$AS"
18908
18909 # The name of the directory that contains temporary libtool files.
18910 objdir=$objdir
18911
18912 # How to create reloadable object files.
18913 reload_flag=$lt_reload_flag
18914 reload_cmds=$lt_reload_cmds
18915
18916 # How to pass a linker flag through the compiler.
18917 wl=$lt_lt_prog_compiler_wl_RC
18918
18919 # Object file suffix (normally "o").
18920 objext="$ac_objext"
18921
18922 # Old archive suffix (normally "a").
18923 libext="$libext"
18924
18925 # Shared library suffix (normally ".so").
18926 shrext_cmds='$shrext_cmds'
18927
18928 # Executable file suffix (normally "").
18929 exeext="$exeext"
18930
18931 # Additional compiler flags for building library objects.
18932 pic_flag=$lt_lt_prog_compiler_pic_RC
18933 pic_mode=$pic_mode
18934
18935 # What is the maximum length of a command?
18936 max_cmd_len=$lt_cv_sys_max_cmd_len
18937
18938 # Does compiler simultaneously support -c and -o options?
18939 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18940
18941 # Must we lock files when doing compilation?
18942 need_locks=$lt_need_locks
18943
18944 # Do we need the lib prefix for modules?
18945 need_lib_prefix=$need_lib_prefix
18946
18947 # Do we need a version for libraries?
18948 need_version=$need_version
18949
18950 # Whether dlopen is supported.
18951 dlopen_support=$enable_dlopen
18952
18953 # Whether dlopen of programs is supported.
18954 dlopen_self=$enable_dlopen_self
18955
18956 # Whether dlopen of statically linked programs is supported.
18957 dlopen_self_static=$enable_dlopen_self_static
18958
18959 # Compiler flag to prevent dynamic linking.
18960 link_static_flag=$lt_lt_prog_compiler_static_RC
18961
18962 # Compiler flag to turn off builtin functions.
18963 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18964
18965 # Compiler flag to allow reflexive dlopens.
18966 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18967
18968 # Compiler flag to generate shared objects directly from archives.
18969 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18970
18971 # Compiler flag to generate thread-safe objects.
18972 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18973
18974 # Library versioning type.
18975 version_type=$version_type
18976
18977 # Format of library name prefix.
18978 libname_spec=$lt_libname_spec
18979
18980 # List of archive names. First name is the real one, the rest are links.
18981 # The last name is the one that the linker finds with -lNAME.
18982 library_names_spec=$lt_library_names_spec
18983
18984 # The coded name of the library, if different from the real name.
18985 soname_spec=$lt_soname_spec
18986
18987 # Commands used to build and install an old-style archive.
18988 RANLIB=$lt_RANLIB
18989 old_archive_cmds=$lt_old_archive_cmds_RC
18990 old_postinstall_cmds=$lt_old_postinstall_cmds
18991 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18992
18993 # Create an old-style archive from a shared archive.
18994 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18995
18996 # Create a temporary old-style archive to link instead of a shared archive.
18997 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18998
18999 # Commands used to build and install a shared archive.
19000 archive_cmds=$lt_archive_cmds_RC
19001 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19002 postinstall_cmds=$lt_postinstall_cmds
19003 postuninstall_cmds=$lt_postuninstall_cmds
19004
19005 # Commands used to build a loadable module (assumed same as above if empty)
19006 module_cmds=$lt_module_cmds_RC
19007 module_expsym_cmds=$lt_module_expsym_cmds_RC
19008
19009 # Commands to strip libraries.
19010 old_striplib=$lt_old_striplib
19011 striplib=$lt_striplib
19012
19013 # Dependencies to place before the objects being linked to create a
19014 # shared library.
19015 predep_objects=$lt_predep_objects_RC
19016
19017 # Dependencies to place after the objects being linked to create a
19018 # shared library.
19019 postdep_objects=$lt_postdep_objects_RC
19020
19021 # Dependencies to place before the objects being linked to create a
19022 # shared library.
19023 predeps=$lt_predeps_RC
19024
19025 # Dependencies to place after the objects being linked to create a
19026 # shared library.
19027 postdeps=$lt_postdeps_RC
19028
19029 # The library search path used internally by the compiler when linking
19030 # a shared library.
19031 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19032
19033 # Method to check whether dependent libraries are shared objects.
19034 deplibs_check_method=$lt_deplibs_check_method
19035
19036 # Command to use when deplibs_check_method == file_magic.
19037 file_magic_cmd=$lt_file_magic_cmd
19038
19039 # Flag that allows shared libraries with undefined symbols to be built.
19040 allow_undefined_flag=$lt_allow_undefined_flag_RC
19041
19042 # Flag that forces no undefined symbols.
19043 no_undefined_flag=$lt_no_undefined_flag_RC
19044
19045 # Commands used to finish a libtool library installation in a directory.
19046 finish_cmds=$lt_finish_cmds
19047
19048 # Same as above, but a single script fragment to be evaled but not shown.
19049 finish_eval=$lt_finish_eval
19050
19051 # Take the output of nm and produce a listing of raw symbols and C names.
19052 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19053
19054 # Transform the output of nm in a proper C declaration
19055 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19056
19057 # Transform the output of nm in a C name address pair
19058 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19059
19060 # This is the shared library runtime path variable.
19061 runpath_var=$runpath_var
19062
19063 # This is the shared library path variable.
19064 shlibpath_var=$shlibpath_var
19065
19066 # Is shlibpath searched before the hard-coded library search path?
19067 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19068
19069 # How to hardcode a shared library path into an executable.
19070 hardcode_action=$hardcode_action_RC
19071
19072 # Whether we should hardcode library paths into libraries.
19073 hardcode_into_libs=$hardcode_into_libs
19074
19075 # Flag to hardcode \$libdir into a binary during linking.
19076 # This must work even if \$libdir does not exist.
19077 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19078
19079 # If ld is used when linking, flag to hardcode \$libdir into
19080 # a binary during linking. This must work even if \$libdir does
19081 # not exist.
19082 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19083
19084 # Whether we need a single -rpath flag with a separated argument.
19085 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19086
19087 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19088 # resulting binary.
19089 hardcode_direct=$hardcode_direct_RC
19090
19091 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19092 # resulting binary.
19093 hardcode_minus_L=$hardcode_minus_L_RC
19094
19095 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19096 # the resulting binary.
19097 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19098
19099 # Set to yes if building a shared library automatically hardcodes DIR into the library
19100 # and all subsequent libraries and executables linked against it.
19101 hardcode_automatic=$hardcode_automatic_RC
19102
19103 # Variables whose values should be saved in libtool wrapper scripts and
19104 # restored at relink time.
19105 variables_saved_for_relink="$variables_saved_for_relink"
19106
19107 # Whether libtool must link a program against all its dependency libraries.
19108 link_all_deplibs=$link_all_deplibs_RC
19109
19110 # Compile-time system search path for libraries
19111 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19112
19113 # Run-time system search path for libraries
19114 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19115
19116 # Fix the shell variable \$srcfile for the compiler.
19117 fix_srcfile_path="$fix_srcfile_path_RC"
19118
19119 # Set to yes if exported symbols are required.
19120 always_export_symbols=$always_export_symbols_RC
19121
19122 # The commands to list exported symbols.
19123 export_symbols_cmds=$lt_export_symbols_cmds_RC
19124
19125 # The commands to extract the exported symbol list from a shared archive.
19126 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19127
19128 # Symbols that should not be listed in the preloaded symbols.
19129 exclude_expsyms=$lt_exclude_expsyms_RC
19130
19131 # Symbols that must always be exported.
19132 include_expsyms=$lt_include_expsyms_RC
19133
19134 # ### END LIBTOOL TAG CONFIG: $tagname
19135
19136 __EOF__
19137
19138
19139 else
19140 # If there is no Makefile yet, we rely on a make rule to execute
19141 # `config.status --recheck' to rerun these tests and create the
19142 # libtool script then.
19143 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19144 if test -f "$ltmain_in"; then
19145 test -f Makefile && make "$ltmain"
19146 fi
19147 fi
19148
19149
19150 ac_ext=c
19151 ac_cpp='$CPP $CPPFLAGS'
19152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19155
19156 CC="$lt_save_CC"
19157
19158 ;;
19159
19160 *)
19161 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19162 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19163 { (exit 1); exit 1; }; }
19164 ;;
19165 esac
19166
19167 # Append the new tag name to the list of available tags.
19168 if test -n "$tagname" ; then
19169 available_tags="$available_tags $tagname"
19170 fi
19171 fi
19172 done
19173 IFS="$lt_save_ifs"
19174
19175 # Now substitute the updated list of available tags.
19176 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19177 mv "${ofile}T" "$ofile"
19178 chmod +x "$ofile"
19179 else
19180 rm -f "${ofile}T"
19181 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19182 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19183 { (exit 1); exit 1; }; }
19184 fi
19185 fi
19186
19187
19188
19189 # This can be used to rebuild libtool when needed
19190 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19191
19192 # Always use our own libtool.
19193 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19194
19195 # Prevent multiple expansion
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217 # Checks for pkg-config packages
19218
19219
19220 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19221 if test -n "$ac_tool_prefix"; then
19222 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19223 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19226 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19228 else
19229 case $PKG_CONFIG in
19230 [\\/]* | ?:[\\/]*)
19231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19232 ;;
19233 *)
19234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19235 for as_dir in $PATH
19236 do
19237 IFS=$as_save_IFS
19238 test -z "$as_dir" && as_dir=.
19239 for ac_exec_ext in '' $ac_executable_extensions; do
19240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19243 break 2
19244 fi
19245 done
19246 done
19247 IFS=$as_save_IFS
19248
19249 ;;
19250 esac
19251 fi
19252 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19253 if test -n "$PKG_CONFIG"; then
19254 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19255 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19256 else
19257 { echo "$as_me:$LINENO: result: no" >&5
19258 echo "${ECHO_T}no" >&6; }
19259 fi
19260
19261
19262 fi
19263 if test -z "$ac_cv_path_PKG_CONFIG"; then
19264 ac_pt_PKG_CONFIG=$PKG_CONFIG
19265 # Extract the first word of "pkg-config", so it can be a program name with args.
19266 set dummy pkg-config; ac_word=$2
19267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19269 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19271 else
19272 case $ac_pt_PKG_CONFIG in
19273 [\\/]* | ?:[\\/]*)
19274 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19275 ;;
19276 *)
19277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19278 for as_dir in $PATH
19279 do
19280 IFS=$as_save_IFS
19281 test -z "$as_dir" && as_dir=.
19282 for ac_exec_ext in '' $ac_executable_extensions; do
19283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19284 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19286 break 2
19287 fi
19288 done
19289 done
19290 IFS=$as_save_IFS
19291
19292 ;;
19293 esac
19294 fi
19295 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19296 if test -n "$ac_pt_PKG_CONFIG"; then
19297 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19298 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19299 else
19300 { echo "$as_me:$LINENO: result: no" >&5
19301 echo "${ECHO_T}no" >&6; }
19302 fi
19303
19304 if test "x$ac_pt_PKG_CONFIG" = x; then
19305 PKG_CONFIG=""
19306 else
19307 case $cross_compiling:$ac_tool_warned in
19308 yes:)
19309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19310 whose name does not start with the host triplet. If you think this
19311 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19313 whose name does not start with the host triplet. If you think this
19314 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19315 ac_tool_warned=yes ;;
19316 esac
19317 PKG_CONFIG=$ac_pt_PKG_CONFIG
19318 fi
19319 else
19320 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19321 fi
19322
19323 fi
19324 if test -n "$PKG_CONFIG"; then
19325 _pkg_min_version=0.9.0
19326 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19327 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19328 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19329 { echo "$as_me:$LINENO: result: yes" >&5
19330 echo "${ECHO_T}yes" >&6; }
19331 else
19332 { echo "$as_me:$LINENO: result: no" >&5
19333 echo "${ECHO_T}no" >&6; }
19334 PKG_CONFIG=""
19335 fi
19336
19337 fi
19338
19339 pkg_failed=no
19340 { echo "$as_me:$LINENO: checking for XI" >&5
19341 echo $ECHO_N "checking for XI... $ECHO_C" >&6; }
19342
19343 if test -n "$PKG_CONFIG"; then
19344 if test -n "$XI_CFLAGS"; then
19345 pkg_cv_XI_CFLAGS="$XI_CFLAGS"
19346 else
19347 if test -n "$PKG_CONFIG" && \
19348 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext inputproto >= 1.4\"") >&5
19349 ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext inputproto >= 1.4") 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; then
19353 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xextproto xext inputproto >= 1.4" 2>/dev/null`
19354 else
19355 pkg_failed=yes
19356 fi
19357 fi
19358 else
19359 pkg_failed=untried
19360 fi
19361 if test -n "$PKG_CONFIG"; then
19362 if test -n "$XI_LIBS"; then
19363 pkg_cv_XI_LIBS="$XI_LIBS"
19364 else
19365 if test -n "$PKG_CONFIG" && \
19366 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext inputproto >= 1.4\"") >&5
19367 ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext inputproto >= 1.4") 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; then
19371 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto x11 xextproto xext inputproto >= 1.4" 2>/dev/null`
19372 else
19373 pkg_failed=yes
19374 fi
19375 fi
19376 else
19377 pkg_failed=untried
19378 fi
19379
19380
19381
19382 if test $pkg_failed = yes; then
19383
19384 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19385 _pkg_short_errors_supported=yes
19386 else
19387 _pkg_short_errors_supported=no
19388 fi
19389 if test $_pkg_short_errors_supported = yes; then
19390 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xproto x11 xextproto xext inputproto >= 1.4"`
19391 else
19392 XI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto x11 xextproto xext inputproto >= 1.4"`
19393 fi
19394 # Put the nasty error message in config.log where it belongs
19395 echo "$XI_PKG_ERRORS" >&5
19396
19397 { { echo "$as_me:$LINENO: error: Package requirements (xproto x11 xextproto xext inputproto >= 1.4) were not met:
19398
19399 $XI_PKG_ERRORS
19400
19401 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19402 installed software in a non-standard prefix.
19403
19404 Alternatively, you may set the environment variables XI_CFLAGS
19405 and XI_LIBS to avoid the need to call pkg-config.
19406 See the pkg-config man page for more details.
19407 " >&5
19408 echo "$as_me: error: Package requirements (xproto x11 xextproto xext inputproto >= 1.4) were not met:
19409
19410 $XI_PKG_ERRORS
19411
19412 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19413 installed software in a non-standard prefix.
19414
19415 Alternatively, you may set the environment variables XI_CFLAGS
19416 and XI_LIBS to avoid the need to call pkg-config.
19417 See the pkg-config man page for more details.
19418 " >&2;}
19419 { (exit 1); exit 1; }; }
19420 elif test $pkg_failed = untried; then
19421 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19422 is in your PATH or set the PKG_CONFIG environment variable to the full
19423 path to pkg-config.
19424
19425 Alternatively, you may set the environment variables XI_CFLAGS
19426 and XI_LIBS to avoid the need to call pkg-config.
19427 See the pkg-config man page for more details.
19428
19429 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19430 See \`config.log' for more details." >&5
19431 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19432 is in your PATH or set the PKG_CONFIG environment variable to the full
19433 path to pkg-config.
19434
19435 Alternatively, you may set the environment variables XI_CFLAGS
19436 and XI_LIBS to avoid the need to call pkg-config.
19437 See the pkg-config man page for more details.
19438
19439 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19440 See \`config.log' for more details." >&2;}
19441 { (exit 1); exit 1; }; }
19442 else
19443 XI_CFLAGS=$pkg_cv_XI_CFLAGS
19444 XI_LIBS=$pkg_cv_XI_LIBS
19445 { echo "$as_me:$LINENO: result: yes" >&5
19446 echo "${ECHO_T}yes" >&6; }
19447 :
19448 fi
19449
19450
19451
19452
19453 # Check whether --enable-malloc0returnsnull was given.
19454 if test "${enable_malloc0returnsnull+set}" = set; then
19455 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19456 else
19457 MALLOC_ZERO_RETURNS_NULL=auto
19458 fi
19459
19460
19461 { echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
19462 echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6; }
19463 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19464 if test "$cross_compiling" = yes; then
19465 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19466 See \`config.log' for more details." >&5
19467 echo "$as_me: error: cannot run test program while cross compiling
19468 See \`config.log' for more details." >&2;}
19469 { (exit 1); exit 1; }; }
19470 else
19471 cat >conftest.$ac_ext <<_ACEOF
19472
19473 char *malloc();
19474 char *realloc();
19475 char *calloc();
19476 main() {
19477 char *m0, *r0, *c0, *p;
19478 m0 = malloc(0);
19479 p = malloc(10);
19480 r0 = realloc(p,0);
19481 c0 = calloc(0);
19482 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
19483 }
19484 _ACEOF
19485 rm -f conftest$ac_exeext
19486 if { (ac_try="$ac_link"
19487 case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19490 esac
19491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_link") 2>&5
19493 ac_status=$?
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19496 { (case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19499 esac
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_try") 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; }; then
19505 MALLOC_ZERO_RETURNS_NULL=yes
19506 else
19507 echo "$as_me: program exited with status $ac_status" >&5
19508 echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19510
19511 ( exit $ac_status )
19512 MALLOC_ZERO_RETURNS_NULL=no
19513 fi
19514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19515 fi
19516
19517
19518 fi
19519 { echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19520 echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6; }
19521
19522 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19523 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19524 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19525 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19526 else
19527 MALLOC_ZERO_CFLAGS=""
19528 XMALLOC_ZERO_CFLAGS=""
19529 XTMALLOC_ZERO_CFLAGS=""
19530 fi
19531
19532
19533
19534
19535
19536
19537
19538
19539 if test x$APP_MAN_SUFFIX = x ; then
19540 APP_MAN_SUFFIX=1
19541 fi
19542 if test x$APP_MAN_DIR = x ; then
19543 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19544 fi
19545
19546 if test x$LIB_MAN_SUFFIX = x ; then
19547 LIB_MAN_SUFFIX=3
19548 fi
19549 if test x$LIB_MAN_DIR = x ; then
19550 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19551 fi
19552
19553 if test x$FILE_MAN_SUFFIX = x ; then
19554 case $host_os in
19555 solaris*) FILE_MAN_SUFFIX=4 ;;
19556 *) FILE_MAN_SUFFIX=5 ;;
19557 esac
19558 fi
19559 if test x$FILE_MAN_DIR = x ; then
19560 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19561 fi
19562
19563 if test x$MISC_MAN_SUFFIX = x ; then
19564 case $host_os in
19565 solaris*) MISC_MAN_SUFFIX=5 ;;
19566 *) MISC_MAN_SUFFIX=7 ;;
19567 esac
19568 fi
19569 if test x$MISC_MAN_DIR = x ; then
19570 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19571 fi
19572
19573 if test x$DRIVER_MAN_SUFFIX = x ; then
19574 case $host_os in
19575 solaris*) DRIVER_MAN_SUFFIX=7 ;;
19576 *) DRIVER_MAN_SUFFIX=4 ;;
19577 esac
19578 fi
19579 if test x$DRIVER_MAN_DIR = x ; then
19580 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19581 fi
19582
19583 if test x$ADMIN_MAN_SUFFIX = x ; then
19584 case $host_os in
19585 solaris*) ADMIN_MAN_SUFFIX=1m ;;
19586 *) ADMIN_MAN_SUFFIX=8 ;;
19587 esac
19588 fi
19589 if test x$ADMIN_MAN_DIR = x ; then
19590 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19591 fi
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609 # Check whether --with-release-version was given.
19610 if test "${with_release_version+set}" = set; then
19611 withval=$with_release_version; RELEASE_VERSION="$withval"
19612 else
19613 RELEASE_VERSION=""
19614 fi
19615
19616 if test "x$RELEASE_VERSION" != "x"; then
19617 PACKAGE="$PACKAGE-$RELEASE_VERSION"
19618 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
19619 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
19620 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
19621 fi
19622
19623 cat >>confdefs.h <<_ACEOF
19624 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19625 _ACEOF
19626
19627 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
19628 if test "x$PVM" = "x"; then
19629 PVM="0"
19630 fi
19631
19632 cat >>confdefs.h <<_ACEOF
19633 #define PACKAGE_VERSION_MINOR $PVM
19634 _ACEOF
19635
19636 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
19637 if test "x$PVP" = "x"; then
19638 PVP="0"
19639 fi
19640
19641 cat >>confdefs.h <<_ACEOF
19642 #define PACKAGE_VERSION_PATCHLEVEL $PVP
19643 _ACEOF
19644
19645
19646
19647 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xi.pc"
19648
19649 cat >confcache <<\_ACEOF
19650 # This file is a shell script that caches the results of configure
19651 # tests run on this system so they can be shared between configure
19652 # scripts and configure runs, see configure's option --config-cache.
19653 # It is not useful on other systems. If it contains results you don't
19654 # want to keep, you may remove or edit it.
19655 #
19656 # config.status only pays attention to the cache file if you give it
19657 # the --recheck option to rerun configure.
19658 #
19659 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19660 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19661 # following values.
19662
19663 _ACEOF
19664
19665 # The following way of writing the cache mishandles newlines in values,
19666 # but we know of no workaround that is simple, portable, and efficient.
19667 # So, we kill variables containing newlines.
19668 # Ultrix sh set writes to stderr and can't be redirected directly,
19669 # and sets the high bit in the cache file unless we assign to the vars.
19670 (
19671 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19672 eval ac_val=\$$ac_var
19673 case $ac_val in #(
19674 *${as_nl}*)
19675 case $ac_var in #(
19676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19678 esac
19679 case $ac_var in #(
19680 _ | IFS | as_nl) ;; #(
19681 *) $as_unset $ac_var ;;
19682 esac ;;
19683 esac
19684 done
19685
19686 (set) 2>&1 |
19687 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19688 *${as_nl}ac_space=\ *)
19689 # `set' does not quote correctly, so add quotes (double-quote
19690 # substitution turns \\\\ into \\, and sed turns \\ into \).
19691 sed -n \
19692 "s/'/'\\\\''/g;
19693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19694 ;; #(
19695 *)
19696 # `set' quotes correctly as required by POSIX, so do not add quotes.
19697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19698 ;;
19699 esac |
19700 sort
19701 ) |
19702 sed '
19703 /^ac_cv_env_/b end
19704 t clear
19705 :clear
19706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19707 t end
19708 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19709 :end' >>confcache
19710 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19711 if test -w "$cache_file"; then
19712 test "x$cache_file" != "x/dev/null" &&
19713 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19714 echo "$as_me: updating cache $cache_file" >&6;}
19715 cat confcache >$cache_file
19716 else
19717 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19718 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19719 fi
19720 fi
19721 rm -f confcache
19722
19723 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19724 # Let make expand exec_prefix.
19725 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19726
19727 DEFS=-DHAVE_CONFIG_H
19728
19729 ac_libobjs=
19730 ac_ltlibobjs=
19731 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19732 # 1. Remove the extension, and $U if already installed.
19733 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19734 ac_i=`echo "$ac_i" | sed "$ac_script"`
19735 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19736 # will be set to the directory where LIBOBJS objects are built.
19737 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19738 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19739 done
19740 LIBOBJS=$ac_libobjs
19741
19742 LTLIBOBJS=$ac_ltlibobjs
19743
19744
19745 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19746 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19747 Usually this means the macro was only invoked conditionally." >&5
19748 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19749 Usually this means the macro was only invoked conditionally." >&2;}
19750 { (exit 1); exit 1; }; }
19751 fi
19752 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19753 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19754 Usually this means the macro was only invoked conditionally." >&5
19755 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19756 Usually this means the macro was only invoked conditionally." >&2;}
19757 { (exit 1); exit 1; }; }
19758 fi
19759 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19760 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19761 Usually this means the macro was only invoked conditionally." >&5
19762 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19763 Usually this means the macro was only invoked conditionally." >&2;}
19764 { (exit 1); exit 1; }; }
19765 fi
19766 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19767 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19768 Usually this means the macro was only invoked conditionally." >&5
19769 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19770 Usually this means the macro was only invoked conditionally." >&2;}
19771 { (exit 1); exit 1; }; }
19772 fi
19773
19774 : ${CONFIG_STATUS=./config.status}
19775 ac_clean_files_save=$ac_clean_files
19776 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19777 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19778 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19779 cat >$CONFIG_STATUS <<_ACEOF
19780 #! $SHELL
19781 # Generated by $as_me.
19782 # Run this file to recreate the current configuration.
19783 # Compiler output produced by configure, useful for debugging
19784 # configure, is in config.log if it exists.
19785
19786 debug=false
19787 ac_cs_recheck=false
19788 ac_cs_silent=false
19789 SHELL=\${CONFIG_SHELL-$SHELL}
19790 _ACEOF
19791
19792 cat >>$CONFIG_STATUS <<\_ACEOF
19793 ## --------------------- ##
19794 ## M4sh Initialization. ##
19795 ## --------------------- ##
19796
19797 # Be more Bourne compatible
19798 DUALCASE=1; export DUALCASE # for MKS sh
19799 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19800 emulate sh
19801 NULLCMD=:
19802 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19803 # is contrary to our usage. Disable this feature.
19804 alias -g '${1+"$@"}'='"$@"'
19805 setopt NO_GLOB_SUBST
19806 else
19807 case `(set -o) 2>/dev/null` in
19808 *posix*) set -o posix ;;
19809 esac
19810
19811 fi
19812
19813
19814
19815
19816 # PATH needs CR
19817 # Avoid depending upon Character Ranges.
19818 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19819 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19820 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19821 as_cr_digits='0123456789'
19822 as_cr_alnum=$as_cr_Letters$as_cr_digits
19823
19824 # The user is always right.
19825 if test "${PATH_SEPARATOR+set}" != set; then
19826 echo "#! /bin/sh" >conf$$.sh
19827 echo "exit 0" >>conf$$.sh
19828 chmod +x conf$$.sh
19829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19830 PATH_SEPARATOR=';'
19831 else
19832 PATH_SEPARATOR=:
19833 fi
19834 rm -f conf$$.sh
19835 fi
19836
19837 # Support unset when possible.
19838 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19839 as_unset=unset
19840 else
19841 as_unset=false
19842 fi
19843
19844
19845 # IFS
19846 # We need space, tab and new line, in precisely that order. Quoting is
19847 # there to prevent editors from complaining about space-tab.
19848 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19849 # splitting by setting IFS to empty value.)
19850 as_nl='
19851 '
19852 IFS=" "" $as_nl"
19853
19854 # Find who we are. Look in the path if we contain no directory separator.
19855 case $0 in
19856 *[\\/]* ) as_myself=$0 ;;
19857 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19858 for as_dir in $PATH
19859 do
19860 IFS=$as_save_IFS
19861 test -z "$as_dir" && as_dir=.
19862 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19863 done
19864 IFS=$as_save_IFS
19865
19866 ;;
19867 esac
19868 # We did not find ourselves, most probably we were run as `sh COMMAND'
19869 # in which case we are not to be found in the path.
19870 if test "x$as_myself" = x; then
19871 as_myself=$0
19872 fi
19873 if test ! -f "$as_myself"; then
19874 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19875 { (exit 1); exit 1; }
19876 fi
19877
19878 # Work around bugs in pre-3.0 UWIN ksh.
19879 for as_var in ENV MAIL MAILPATH
19880 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19881 done
19882 PS1='$ '
19883 PS2='> '
19884 PS4='+ '
19885
19886 # NLS nuisances.
19887 for as_var in \
19888 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19889 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19890 LC_TELEPHONE LC_TIME
19891 do
19892 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19893 eval $as_var=C; export $as_var
19894 else
19895 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19896 fi
19897 done
19898
19899 # Required to use basename.
19900 if expr a : '\(a\)' >/dev/null 2>&1 &&
19901 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19902 as_expr=expr
19903 else
19904 as_expr=false
19905 fi
19906
19907 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19908 as_basename=basename
19909 else
19910 as_basename=false
19911 fi
19912
19913
19914 # Name of the executable.
19915 as_me=`$as_basename -- "$0" ||
19916 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19917 X"$0" : 'X\(//\)$' \| \
19918 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19919 echo X/"$0" |
19920 sed '/^.*\/\([^/][^/]*\)\/*$/{
19921 s//\1/
19922 q
19923 }
19924 /^X\/\(\/\/\)$/{
19925 s//\1/
19926 q
19927 }
19928 /^X\/\(\/\).*/{
19929 s//\1/
19930 q
19931 }
19932 s/.*/./; q'`
19933
19934 # CDPATH.
19935 $as_unset CDPATH
19936
19937
19938
19939 as_lineno_1=$LINENO
19940 as_lineno_2=$LINENO
19941 test "x$as_lineno_1" != "x$as_lineno_2" &&
19942 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19943
19944 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19945 # uniformly replaced by the line number. The first 'sed' inserts a
19946 # line-number line after each line using $LINENO; the second 'sed'
19947 # does the real work. The second script uses 'N' to pair each
19948 # line-number line with the line containing $LINENO, and appends
19949 # trailing '-' during substitution so that $LINENO is not a special
19950 # case at line end.
19951 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19952 # scripts with optimization help from Paolo Bonzini. Blame Lee
19953 # E. McMahon (1931-1989) for sed's syntax. :-)
19954 sed -n '
19955 p
19956 /[$]LINENO/=
19957 ' <$as_myself |
19958 sed '
19959 s/[$]LINENO.*/&-/
19960 t lineno
19961 b
19962 :lineno
19963 N
19964 :loop
19965 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19966 t loop
19967 s/-\n.*//
19968 ' >$as_me.lineno &&
19969 chmod +x "$as_me.lineno" ||
19970 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19971 { (exit 1); exit 1; }; }
19972
19973 # Don't try to exec as it changes $[0], causing all sort of problems
19974 # (the dirname of $[0] is not the place where we might find the
19975 # original and so on. Autoconf is especially sensitive to this).
19976 . "./$as_me.lineno"
19977 # Exit status is that of the last command.
19978 exit
19979 }
19980
19981
19982 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19983 as_dirname=dirname
19984 else
19985 as_dirname=false
19986 fi
19987
19988 ECHO_C= ECHO_N= ECHO_T=
19989 case `echo -n x` in
19990 -n*)
19991 case `echo 'x\c'` in
19992 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19993 *) ECHO_C='\c';;
19994 esac;;
19995 *)
19996 ECHO_N='-n';;
19997 esac
19998
19999 if expr a : '\(a\)' >/dev/null 2>&1 &&
20000 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20001 as_expr=expr
20002 else
20003 as_expr=false
20004 fi
20005
20006 rm -f conf$$ conf$$.exe conf$$.file
20007 if test -d conf$$.dir; then
20008 rm -f conf$$.dir/conf$$.file
20009 else
20010 rm -f conf$$.dir
20011 mkdir conf$$.dir
20012 fi
20013 echo >conf$$.file
20014 if ln -s conf$$.file conf$$ 2>/dev/null; then
20015 as_ln_s='ln -s'
20016 # ... but there are two gotchas:
20017 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20018 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20019 # In both cases, we have to default to `cp -p'.
20020 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20021 as_ln_s='cp -p'
20022 elif ln conf$$.file conf$$ 2>/dev/null; then
20023 as_ln_s=ln
20024 else
20025 as_ln_s='cp -p'
20026 fi
20027 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20028 rmdir conf$$.dir 2>/dev/null
20029
20030 if mkdir -p . 2>/dev/null; then
20031 as_mkdir_p=:
20032 else
20033 test -d ./-p && rmdir ./-p
20034 as_mkdir_p=false
20035 fi
20036
20037 if test -x / >/dev/null 2>&1; then
20038 as_test_x='test -x'
20039 else
20040 if ls -dL / >/dev/null 2>&1; then
20041 as_ls_L_option=L
20042 else
20043 as_ls_L_option=
20044 fi
20045 as_test_x='
20046 eval sh -c '\''
20047 if test -d "$1"; then
20048 test -d "$1/.";
20049 else
20050 case $1 in
20051 -*)set "./$1";;
20052 esac;
20053 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20054 ???[sx]*):;;*)false;;esac;fi
20055 '\'' sh
20056 '
20057 fi
20058 as_executable_p=$as_test_x
20059
20060 # Sed expression to map a string onto a valid CPP name.
20061 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20062
20063 # Sed expression to map a string onto a valid variable name.
20064 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20065
20066
20067 exec 6>&1
20068
20069 # Save the log message, to keep $[0] and so on meaningful, and to
20070 # report actual input values of CONFIG_FILES etc. instead of their
20071 # values after options handling.
20072 ac_log="
20073 This file was extended by libXi $as_me 1.1.3, which was
20074 generated by GNU Autoconf 2.61. Invocation command line was
20075
20076 CONFIG_FILES = $CONFIG_FILES
20077 CONFIG_HEADERS = $CONFIG_HEADERS
20078 CONFIG_LINKS = $CONFIG_LINKS
20079 CONFIG_COMMANDS = $CONFIG_COMMANDS
20080 $ $0 $@
20081
20082 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20083 "
20084
20085 _ACEOF
20086
20087 cat >>$CONFIG_STATUS <<_ACEOF
20088 # Files that config.status was made for.
20089 config_files="$ac_config_files"
20090 config_headers="$ac_config_headers"
20091 config_commands="$ac_config_commands"
20092
20093 _ACEOF
20094
20095 cat >>$CONFIG_STATUS <<\_ACEOF
20096 ac_cs_usage="\
20097 \`$as_me' instantiates files from templates according to the
20098 current configuration.
20099
20100 Usage: $0 [OPTIONS] [FILE]...
20101
20102 -h, --help print this help, then exit
20103 -V, --version print version number and configuration settings, then exit
20104 -q, --quiet do not print progress messages
20105 -d, --debug don't remove temporary files
20106 --recheck update $as_me by reconfiguring in the same conditions
20107 --file=FILE[:TEMPLATE]
20108 instantiate the configuration file FILE
20109 --header=FILE[:TEMPLATE]
20110 instantiate the configuration header FILE
20111
20112 Configuration files:
20113 $config_files
20114
20115 Configuration headers:
20116 $config_headers
20117
20118 Configuration commands:
20119 $config_commands
20120
20121 Report bugs to <bug-autoconf (at] gnu.org>."
20122
20123 _ACEOF
20124 cat >>$CONFIG_STATUS <<_ACEOF
20125 ac_cs_version="\\
20126 libXi config.status 1.1.3
20127 configured by $0, generated by GNU Autoconf 2.61,
20128 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20129
20130 Copyright (C) 2006 Free Software Foundation, Inc.
20131 This config.status script is free software; the Free Software Foundation
20132 gives unlimited permission to copy, distribute and modify it."
20133
20134 ac_pwd='$ac_pwd'
20135 srcdir='$srcdir'
20136 INSTALL='$INSTALL'
20137 MKDIR_P='$MKDIR_P'
20138 _ACEOF
20139
20140 cat >>$CONFIG_STATUS <<\_ACEOF
20141 # If no file are specified by the user, then we need to provide default
20142 # value. By we need to know if files were specified by the user.
20143 ac_need_defaults=:
20144 while test $# != 0
20145 do
20146 case $1 in
20147 --*=*)
20148 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20149 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20150 ac_shift=:
20151 ;;
20152 *)
20153 ac_option=$1
20154 ac_optarg=$2
20155 ac_shift=shift
20156 ;;
20157 esac
20158
20159 case $ac_option in
20160 # Handling of the options.
20161 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20162 ac_cs_recheck=: ;;
20163 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20164 echo "$ac_cs_version"; exit ;;
20165 --debug | --debu | --deb | --de | --d | -d )
20166 debug=: ;;
20167 --file | --fil | --fi | --f )
20168 $ac_shift
20169 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20170 ac_need_defaults=false;;
20171 --header | --heade | --head | --hea )
20172 $ac_shift
20173 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20174 ac_need_defaults=false;;
20175 --he | --h)
20176 # Conflict between --help and --header
20177 { echo "$as_me: error: ambiguous option: $1
20178 Try \`$0 --help' for more information." >&2
20179 { (exit 1); exit 1; }; };;
20180 --help | --hel | -h )
20181 echo "$ac_cs_usage"; exit ;;
20182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20183 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20184 ac_cs_silent=: ;;
20185
20186 # This is an error.
20187 -*) { echo "$as_me: error: unrecognized option: $1
20188 Try \`$0 --help' for more information." >&2
20189 { (exit 1); exit 1; }; } ;;
20190
20191 *) ac_config_targets="$ac_config_targets $1"
20192 ac_need_defaults=false ;;
20193
20194 esac
20195 shift
20196 done
20197
20198 ac_configure_extra_args=
20199
20200 if $ac_cs_silent; then
20201 exec 6>/dev/null
20202 ac_configure_extra_args="$ac_configure_extra_args --silent"
20203 fi
20204
20205 _ACEOF
20206 cat >>$CONFIG_STATUS <<_ACEOF
20207 if \$ac_cs_recheck; then
20208 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20209 CONFIG_SHELL=$SHELL
20210 export CONFIG_SHELL
20211 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20212 fi
20213
20214 _ACEOF
20215 cat >>$CONFIG_STATUS <<\_ACEOF
20216 exec 5>>config.log
20217 {
20218 echo
20219 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20220 ## Running $as_me. ##
20221 _ASBOX
20222 echo "$ac_log"
20223 } >&5
20224
20225 _ACEOF
20226 cat >>$CONFIG_STATUS <<_ACEOF
20227 #
20228 # INIT-COMMANDS
20229 #
20230 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20231
20232 _ACEOF
20233
20234 cat >>$CONFIG_STATUS <<\_ACEOF
20235
20236 # Handling of arguments.
20237 for ac_config_target in $ac_config_targets
20238 do
20239 case $ac_config_target in
20240 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20241 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20242 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20243 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20244 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20245 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
20246
20247 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20248 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20249 { (exit 1); exit 1; }; };;
20250 esac
20251 done
20252
20253
20254 # If the user did not use the arguments to specify the items to instantiate,
20255 # then the envvar interface is used. Set only those that are not.
20256 # We use the long form for the default assignment because of an extremely
20257 # bizarre bug on SunOS 4.1.3.
20258 if $ac_need_defaults; then
20259 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20260 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20261 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20262 fi
20263
20264 # Have a temporary directory for convenience. Make it in the build tree
20265 # simply because there is no reason against having it here, and in addition,
20266 # creating and moving files from /tmp can sometimes cause problems.
20267 # Hook for its removal unless debugging.
20268 # Note that there is a small window in which the directory will not be cleaned:
20269 # after its creation but before its name has been assigned to `$tmp'.
20270 $debug ||
20271 {
20272 tmp=
20273 trap 'exit_status=$?
20274 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20275 ' 0
20276 trap '{ (exit 1); exit 1; }' 1 2 13 15
20277 }
20278 # Create a (secure) tmp directory for tmp files.
20279
20280 {
20281 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20282 test -n "$tmp" && test -d "$tmp"
20283 } ||
20284 {
20285 tmp=./conf$$-$RANDOM
20286 (umask 077 && mkdir "$tmp")
20287 } ||
20288 {
20289 echo "$me: cannot create a temporary directory in ." >&2
20290 { (exit 1); exit 1; }
20291 }
20292
20293 #
20294 # Set up the sed scripts for CONFIG_FILES section.
20295 #
20296
20297 # No need to generate the scripts if there are no CONFIG_FILES.
20298 # This happens for instance when ./config.status config.h
20299 if test -n "$CONFIG_FILES"; then
20300
20301 _ACEOF
20302
20303
20304
20305 ac_delim='%!_!# '
20306 for ac_last_try in false false false false false :; do
20307 cat >conf$$subs.sed <<_ACEOF
20308 SHELL!$SHELL$ac_delim
20309 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20310 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20311 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20312 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20313 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20314 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20315 exec_prefix!$exec_prefix$ac_delim
20316 prefix!$prefix$ac_delim
20317 program_transform_name!$program_transform_name$ac_delim
20318 bindir!$bindir$ac_delim
20319 sbindir!$sbindir$ac_delim
20320 libexecdir!$libexecdir$ac_delim
20321 datarootdir!$datarootdir$ac_delim
20322 datadir!$datadir$ac_delim
20323 sysconfdir!$sysconfdir$ac_delim
20324 sharedstatedir!$sharedstatedir$ac_delim
20325 localstatedir!$localstatedir$ac_delim
20326 includedir!$includedir$ac_delim
20327 oldincludedir!$oldincludedir$ac_delim
20328 docdir!$docdir$ac_delim
20329 infodir!$infodir$ac_delim
20330 htmldir!$htmldir$ac_delim
20331 dvidir!$dvidir$ac_delim
20332 pdfdir!$pdfdir$ac_delim
20333 psdir!$psdir$ac_delim
20334 libdir!$libdir$ac_delim
20335 localedir!$localedir$ac_delim
20336 mandir!$mandir$ac_delim
20337 DEFS!$DEFS$ac_delim
20338 ECHO_C!$ECHO_C$ac_delim
20339 ECHO_N!$ECHO_N$ac_delim
20340 ECHO_T!$ECHO_T$ac_delim
20341 LIBS!$LIBS$ac_delim
20342 build_alias!$build_alias$ac_delim
20343 host_alias!$host_alias$ac_delim
20344 target_alias!$target_alias$ac_delim
20345 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20346 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20347 INSTALL_DATA!$INSTALL_DATA$ac_delim
20348 am__isrc!$am__isrc$ac_delim
20349 CYGPATH_W!$CYGPATH_W$ac_delim
20350 PACKAGE!$PACKAGE$ac_delim
20351 VERSION!$VERSION$ac_delim
20352 ACLOCAL!$ACLOCAL$ac_delim
20353 AUTOCONF!$AUTOCONF$ac_delim
20354 AUTOMAKE!$AUTOMAKE$ac_delim
20355 AUTOHEADER!$AUTOHEADER$ac_delim
20356 MAKEINFO!$MAKEINFO$ac_delim
20357 install_sh!$install_sh$ac_delim
20358 STRIP!$STRIP$ac_delim
20359 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20360 mkdir_p!$mkdir_p$ac_delim
20361 AWK!$AWK$ac_delim
20362 SET_MAKE!$SET_MAKE$ac_delim
20363 am__leading_dot!$am__leading_dot$ac_delim
20364 AMTAR!$AMTAR$ac_delim
20365 am__tar!$am__tar$ac_delim
20366 am__untar!$am__untar$ac_delim
20367 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
20368 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
20369 MAINT!$MAINT$ac_delim
20370 CC!$CC$ac_delim
20371 CFLAGS!$CFLAGS$ac_delim
20372 LDFLAGS!$LDFLAGS$ac_delim
20373 CPPFLAGS!$CPPFLAGS$ac_delim
20374 ac_ct_CC!$ac_ct_CC$ac_delim
20375 EXEEXT!$EXEEXT$ac_delim
20376 OBJEXT!$OBJEXT$ac_delim
20377 DEPDIR!$DEPDIR$ac_delim
20378 am__include!$am__include$ac_delim
20379 am__quote!$am__quote$ac_delim
20380 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20381 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20382 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20383 CCDEPMODE!$CCDEPMODE$ac_delim
20384 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20385 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20386 build!$build$ac_delim
20387 build_cpu!$build_cpu$ac_delim
20388 build_vendor!$build_vendor$ac_delim
20389 build_os!$build_os$ac_delim
20390 host!$host$ac_delim
20391 host_cpu!$host_cpu$ac_delim
20392 host_vendor!$host_vendor$ac_delim
20393 host_os!$host_os$ac_delim
20394 GREP!$GREP$ac_delim
20395 EGREP!$EGREP$ac_delim
20396 LN_S!$LN_S$ac_delim
20397 ECHO!$ECHO$ac_delim
20398 AR!$AR$ac_delim
20399 RANLIB!$RANLIB$ac_delim
20400 CPP!$CPP$ac_delim
20401 CXX!$CXX$ac_delim
20402 CXXFLAGS!$CXXFLAGS$ac_delim
20403 ac_ct_CXX!$ac_ct_CXX$ac_delim
20404 CXXDEPMODE!$CXXDEPMODE$ac_delim
20405 _ACEOF
20406
20407 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20408 break
20409 elif $ac_last_try; then
20410 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20411 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20412 { (exit 1); exit 1; }; }
20413 else
20414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20415 fi
20416 done
20417
20418 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20419 if test -n "$ac_eof"; then
20420 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20421 ac_eof=`expr $ac_eof + 1`
20422 fi
20423
20424 cat >>$CONFIG_STATUS <<_ACEOF
20425 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20427 _ACEOF
20428 sed '
20429 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20430 s/^/s,@/; s/!/@,|#_!!_#|/
20431 :n
20432 t n
20433 s/'"$ac_delim"'$/,g/; t
20434 s/$/\\/; p
20435 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20436 ' >>$CONFIG_STATUS <conf$$subs.sed
20437 rm -f conf$$subs.sed
20438 cat >>$CONFIG_STATUS <<_ACEOF
20439 CEOF$ac_eof
20440 _ACEOF
20441
20442
20443 ac_delim='%!_!# '
20444 for ac_last_try in false false false false false :; do
20445 cat >conf$$subs.sed <<_ACEOF
20446 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20447 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20448 CXXCPP!$CXXCPP$ac_delim
20449 F77!$F77$ac_delim
20450 FFLAGS!$FFLAGS$ac_delim
20451 ac_ct_F77!$ac_ct_F77$ac_delim
20452 LIBTOOL!$LIBTOOL$ac_delim
20453 PKG_CONFIG!$PKG_CONFIG$ac_delim
20454 XI_CFLAGS!$XI_CFLAGS$ac_delim
20455 XI_LIBS!$XI_LIBS$ac_delim
20456 MALLOC_ZERO_CFLAGS!$MALLOC_ZERO_CFLAGS$ac_delim
20457 XMALLOC_ZERO_CFLAGS!$XMALLOC_ZERO_CFLAGS$ac_delim
20458 XTMALLOC_ZERO_CFLAGS!$XTMALLOC_ZERO_CFLAGS$ac_delim
20459 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
20460 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
20461 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
20462 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
20463 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
20464 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
20465 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
20466 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
20467 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
20468 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
20469 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
20470 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
20471 LIBOBJS!$LIBOBJS$ac_delim
20472 LTLIBOBJS!$LTLIBOBJS$ac_delim
20473 _ACEOF
20474
20475 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
20476 break
20477 elif $ac_last_try; then
20478 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20479 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20480 { (exit 1); exit 1; }; }
20481 else
20482 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20483 fi
20484 done
20485
20486 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20487 if test -n "$ac_eof"; then
20488 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20489 ac_eof=`expr $ac_eof + 1`
20490 fi
20491
20492 cat >>$CONFIG_STATUS <<_ACEOF
20493 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20495 _ACEOF
20496 sed '
20497 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20498 s/^/s,@/; s/!/@,|#_!!_#|/
20499 :n
20500 t n
20501 s/'"$ac_delim"'$/,g/; t
20502 s/$/\\/; p
20503 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20504 ' >>$CONFIG_STATUS <conf$$subs.sed
20505 rm -f conf$$subs.sed
20506 cat >>$CONFIG_STATUS <<_ACEOF
20507 :end
20508 s/|#_!!_#|//g
20509 CEOF$ac_eof
20510 _ACEOF
20511
20512
20513 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20514 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20515 # trailing colons and then remove the whole line if VPATH becomes empty
20516 # (actually we leave an empty line to preserve line numbers).
20517 if test "x$srcdir" = x.; then
20518 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20519 s/:*\$(srcdir):*/:/
20520 s/:*\${srcdir}:*/:/
20521 s/:*@srcdir@:*/:/
20522 s/^\([^=]*=[ ]*\):*/\1/
20523 s/:*$//
20524 s/^[^=]*=[ ]*$//
20525 }'
20526 fi
20527
20528 cat >>$CONFIG_STATUS <<\_ACEOF
20529 fi # test -n "$CONFIG_FILES"
20530
20531
20532 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20533 do
20534 case $ac_tag in
20535 :[FHLC]) ac_mode=$ac_tag; continue;;
20536 esac
20537 case $ac_mode$ac_tag in
20538 :[FHL]*:*);;
20539 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20540 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20541 { (exit 1); exit 1; }; };;
20542 :[FH]-) ac_tag=-:-;;
20543 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20544 esac
20545 ac_save_IFS=$IFS
20546 IFS=:
20547 set x $ac_tag
20548 IFS=$ac_save_IFS
20549 shift
20550 ac_file=$1
20551 shift
20552
20553 case $ac_mode in
20554 :L) ac_source=$1;;
20555 :[FH])
20556 ac_file_inputs=
20557 for ac_f
20558 do
20559 case $ac_f in
20560 -) ac_f="$tmp/stdin";;
20561 *) # Look for the file first in the build tree, then in the source tree
20562 # (if the path is not absolute). The absolute path cannot be DOS-style,
20563 # because $ac_f cannot contain `:'.
20564 test -f "$ac_f" ||
20565 case $ac_f in
20566 [\\/$]*) false;;
20567 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20568 esac ||
20569 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20570 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20571 { (exit 1); exit 1; }; };;
20572 esac
20573 ac_file_inputs="$ac_file_inputs $ac_f"
20574 done
20575
20576 # Let's still pretend it is `configure' which instantiates (i.e., don't
20577 # use $as_me), people would be surprised to read:
20578 # /* config.h. Generated by config.status. */
20579 configure_input="Generated from "`IFS=:
20580 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20581 if test x"$ac_file" != x-; then
20582 configure_input="$ac_file. $configure_input"
20583 { echo "$as_me:$LINENO: creating $ac_file" >&5
20584 echo "$as_me: creating $ac_file" >&6;}
20585 fi
20586
20587 case $ac_tag in
20588 *:-:* | *:-) cat >"$tmp/stdin";;
20589 esac
20590 ;;
20591 esac
20592
20593 ac_dir=`$as_dirname -- "$ac_file" ||
20594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20595 X"$ac_file" : 'X\(//\)[^/]' \| \
20596 X"$ac_file" : 'X\(//\)$' \| \
20597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20598 echo X"$ac_file" |
20599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20600 s//\1/
20601 q
20602 }
20603 /^X\(\/\/\)[^/].*/{
20604 s//\1/
20605 q
20606 }
20607 /^X\(\/\/\)$/{
20608 s//\1/
20609 q
20610 }
20611 /^X\(\/\).*/{
20612 s//\1/
20613 q
20614 }
20615 s/.*/./; q'`
20616 { as_dir="$ac_dir"
20617 case $as_dir in #(
20618 -*) as_dir=./$as_dir;;
20619 esac
20620 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20621 as_dirs=
20622 while :; do
20623 case $as_dir in #(
20624 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20625 *) as_qdir=$as_dir;;
20626 esac
20627 as_dirs="'$as_qdir' $as_dirs"
20628 as_dir=`$as_dirname -- "$as_dir" ||
20629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20630 X"$as_dir" : 'X\(//\)[^/]' \| \
20631 X"$as_dir" : 'X\(//\)$' \| \
20632 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20633 echo X"$as_dir" |
20634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20635 s//\1/
20636 q
20637 }
20638 /^X\(\/\/\)[^/].*/{
20639 s//\1/
20640 q
20641 }
20642 /^X\(\/\/\)$/{
20643 s//\1/
20644 q
20645 }
20646 /^X\(\/\).*/{
20647 s//\1/
20648 q
20649 }
20650 s/.*/./; q'`
20651 test -d "$as_dir" && break
20652 done
20653 test -z "$as_dirs" || eval "mkdir $as_dirs"
20654 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20655 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20656 { (exit 1); exit 1; }; }; }
20657 ac_builddir=.
20658
20659 case "$ac_dir" in
20660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20661 *)
20662 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20663 # A ".." for each directory in $ac_dir_suffix.
20664 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20665 case $ac_top_builddir_sub in
20666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20668 esac ;;
20669 esac
20670 ac_abs_top_builddir=$ac_pwd
20671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20672 # for backward compatibility:
20673 ac_top_builddir=$ac_top_build_prefix
20674
20675 case $srcdir in
20676 .) # We are building in place.
20677 ac_srcdir=.
20678 ac_top_srcdir=$ac_top_builddir_sub
20679 ac_abs_top_srcdir=$ac_pwd ;;
20680 [\\/]* | ?:[\\/]* ) # Absolute name.
20681 ac_srcdir=$srcdir$ac_dir_suffix;
20682 ac_top_srcdir=$srcdir
20683 ac_abs_top_srcdir=$srcdir ;;
20684 *) # Relative name.
20685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20686 ac_top_srcdir=$ac_top_build_prefix$srcdir
20687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20688 esac
20689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20690
20691
20692 case $ac_mode in
20693 :F)
20694 #
20695 # CONFIG_FILE
20696 #
20697
20698 case $INSTALL in
20699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20701 esac
20702 ac_MKDIR_P=$MKDIR_P
20703 case $MKDIR_P in
20704 [\\/$]* | ?:[\\/]* ) ;;
20705 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20706 esac
20707 _ACEOF
20708
20709 cat >>$CONFIG_STATUS <<\_ACEOF
20710 # If the template does not know about datarootdir, expand it.
20711 # FIXME: This hack should be removed a few years after 2.60.
20712 ac_datarootdir_hack=; ac_datarootdir_seen=
20713
20714 case `sed -n '/datarootdir/ {
20715 p
20716 q
20717 }
20718 /@datadir@/p
20719 /@docdir@/p
20720 /@infodir@/p
20721 /@localedir@/p
20722 /@mandir@/p
20723 ' $ac_file_inputs` in
20724 *datarootdir*) ac_datarootdir_seen=yes;;
20725 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20726 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20727 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20728 _ACEOF
20729 cat >>$CONFIG_STATUS <<_ACEOF
20730 ac_datarootdir_hack='
20731 s&@datadir@&$datadir&g
20732 s&@docdir@&$docdir&g
20733 s&@infodir@&$infodir&g
20734 s&@localedir@&$localedir&g
20735 s&@mandir@&$mandir&g
20736 s&\\\${datarootdir}&$datarootdir&g' ;;
20737 esac
20738 _ACEOF
20739
20740 # Neutralize VPATH when `$srcdir' = `.'.
20741 # Shell code in configure.ac might set extrasub.
20742 # FIXME: do we really want to maintain this feature?
20743 cat >>$CONFIG_STATUS <<_ACEOF
20744 sed "$ac_vpsub
20745 $extrasub
20746 _ACEOF
20747 cat >>$CONFIG_STATUS <<\_ACEOF
20748 :t
20749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20750 s&@configure_input@&$configure_input&;t t
20751 s&@top_builddir@&$ac_top_builddir_sub&;t t
20752 s&@srcdir@&$ac_srcdir&;t t
20753 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20754 s&@top_srcdir@&$ac_top_srcdir&;t t
20755 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20756 s&@builddir@&$ac_builddir&;t t
20757 s&@abs_builddir@&$ac_abs_builddir&;t t
20758 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20759 s&@INSTALL@&$ac_INSTALL&;t t
20760 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20761 $ac_datarootdir_hack
20762 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20763
20764 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20765 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20766 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20767 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20768 which seems to be undefined. Please make sure it is defined." >&5
20769 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20770 which seems to be undefined. Please make sure it is defined." >&2;}
20771
20772 rm -f "$tmp/stdin"
20773 case $ac_file in
20774 -) cat "$tmp/out"; rm -f "$tmp/out";;
20775 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20776 esac
20777 ;;
20778 :H)
20779 #
20780 # CONFIG_HEADER
20781 #
20782 _ACEOF
20783
20784 # Transform confdefs.h into a sed script `conftest.defines', that
20785 # substitutes the proper values into config.h.in to produce config.h.
20786 rm -f conftest.defines conftest.tail
20787 # First, append a space to every undef/define line, to ease matching.
20788 echo 's/$/ /' >conftest.defines
20789 # Then, protect against being on the right side of a sed subst, or in
20790 # an unquoted here document, in config.status. If some macros were
20791 # called several times there might be several #defines for the same
20792 # symbol, which is useless. But do not sort them, since the last
20793 # AC_DEFINE must be honored.
20794 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20795 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20796 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20797 # PARAMS is the parameter list in the macro definition--in most cases, it's
20798 # just an empty string.
20799 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20800 ac_dB='\\)[ (].*,\\1define\\2'
20801 ac_dC=' '
20802 ac_dD=' ,'
20803
20804 uniq confdefs.h |
20805 sed -n '
20806 t rset
20807 :rset
20808 s/^[ ]*#[ ]*define[ ][ ]*//
20809 t ok
20810 d
20811 :ok
20812 s/[\\&,]/\\&/g
20813 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20814 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20815 ' >>conftest.defines
20816
20817 # Remove the space that was appended to ease matching.
20818 # Then replace #undef with comments. This is necessary, for
20819 # example, in the case of _POSIX_SOURCE, which is predefined and required
20820 # on some systems where configure will not decide to define it.
20821 # (The regexp can be short, since the line contains either #define or #undef.)
20822 echo 's/ $//
20823 s,^[ #]*u.*,/* & */,' >>conftest.defines
20824
20825 # Break up conftest.defines:
20826 ac_max_sed_lines=50
20827
20828 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20829 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20830 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20831 # et cetera.
20832 ac_in='$ac_file_inputs'
20833 ac_out='"$tmp/out1"'
20834 ac_nxt='"$tmp/out2"'
20835
20836 while :
20837 do
20838 # Write a here document:
20839 cat >>$CONFIG_STATUS <<_ACEOF
20840 # First, check the format of the line:
20841 cat >"\$tmp/defines.sed" <<\\CEOF
20842 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20843 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20844 b
20845 :def
20846 _ACEOF
20847 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20848 echo 'CEOF
20849 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20850 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20851 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20852 grep . conftest.tail >/dev/null || break
20853 rm -f conftest.defines
20854 mv conftest.tail conftest.defines
20855 done
20856 rm -f conftest.defines conftest.tail
20857
20858 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20859 cat >>$CONFIG_STATUS <<\_ACEOF
20860 if test x"$ac_file" != x-; then
20861 echo "/* $configure_input */" >"$tmp/config.h"
20862 cat "$ac_result" >>"$tmp/config.h"
20863 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20864 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20865 echo "$as_me: $ac_file is unchanged" >&6;}
20866 else
20867 rm -f $ac_file
20868 mv "$tmp/config.h" $ac_file
20869 fi
20870 else
20871 echo "/* $configure_input */"
20872 cat "$ac_result"
20873 fi
20874 rm -f "$tmp/out12"
20875 # Compute $ac_file's index in $config_headers.
20876 _am_stamp_count=1
20877 for _am_header in $config_headers :; do
20878 case $_am_header in
20879 $ac_file | $ac_file:* )
20880 break ;;
20881 * )
20882 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20883 esac
20884 done
20885 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
20886 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20887 X$ac_file : 'X\(//\)[^/]' \| \
20888 X$ac_file : 'X\(//\)$' \| \
20889 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
20890 echo X$ac_file |
20891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20892 s//\1/
20893 q
20894 }
20895 /^X\(\/\/\)[^/].*/{
20896 s//\1/
20897 q
20898 }
20899 /^X\(\/\/\)$/{
20900 s//\1/
20901 q
20902 }
20903 /^X\(\/\).*/{
20904 s//\1/
20905 q
20906 }
20907 s/.*/./; q'`/stamp-h$_am_stamp_count
20908 ;;
20909
20910 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20911 echo "$as_me: executing $ac_file commands" >&6;}
20912 ;;
20913 esac
20914
20915
20916 case $ac_file$ac_mode in
20917 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20918 # Strip MF so we end up with the name of the file.
20919 mf=`echo "$mf" | sed -e 's/:.*$//'`
20920 # Check whether this is an Automake generated Makefile or not.
20921 # We used to match only the files named `Makefile.in', but
20922 # some people rename them; so instead we look at the file content.
20923 # Grep'ing the first line is not enough: some people post-process
20924 # each Makefile.in and add a new line on top of each file to say so.
20925 # Grep'ing the whole file is not good either: AIX grep has a line
20926 # limit of 2048, but all sed's we know have understand at least 4000.
20927 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
20928 dirpart=`$as_dirname -- "$mf" ||
20929 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20930 X"$mf" : 'X\(//\)[^/]' \| \
20931 X"$mf" : 'X\(//\)$' \| \
20932 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20933 echo X"$mf" |
20934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20935 s//\1/
20936 q
20937 }
20938 /^X\(\/\/\)[^/].*/{
20939 s//\1/
20940 q
20941 }
20942 /^X\(\/\/\)$/{
20943 s//\1/
20944 q
20945 }
20946 /^X\(\/\).*/{
20947 s//\1/
20948 q
20949 }
20950 s/.*/./; q'`
20951 else
20952 continue
20953 fi
20954 # Extract the definition of DEPDIR, am__include, and am__quote
20955 # from the Makefile without running `make'.
20956 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20957 test -z "$DEPDIR" && continue
20958 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20959 test -z "am__include" && continue
20960 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20961 # When using ansi2knr, U may be empty or an underscore; expand it
20962 U=`sed -n 's/^U = //p' < "$mf"`
20963 # Find all dependency output files, they are included files with
20964 # $(DEPDIR) in their names. We invoke sed twice because it is the
20965 # simplest approach to changing $(DEPDIR) to its actual value in the
20966 # expansion.
20967 for file in `sed -n "
20968 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20969 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20970 # Make sure the directory exists.
20971 test -f "$dirpart/$file" && continue
20972 fdir=`$as_dirname -- "$file" ||
20973 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20974 X"$file" : 'X\(//\)[^/]' \| \
20975 X"$file" : 'X\(//\)$' \| \
20976 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20977 echo X"$file" |
20978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20979 s//\1/
20980 q
20981 }
20982 /^X\(\/\/\)[^/].*/{
20983 s//\1/
20984 q
20985 }
20986 /^X\(\/\/\)$/{
20987 s//\1/
20988 q
20989 }
20990 /^X\(\/\).*/{
20991 s//\1/
20992 q
20993 }
20994 s/.*/./; q'`
20995 { as_dir=$dirpart/$fdir
20996 case $as_dir in #(
20997 -*) as_dir=./$as_dir;;
20998 esac
20999 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21000 as_dirs=
21001 while :; do
21002 case $as_dir in #(
21003 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21004 *) as_qdir=$as_dir;;
21005 esac
21006 as_dirs="'$as_qdir' $as_dirs"
21007 as_dir=`$as_dirname -- "$as_dir" ||
21008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21009 X"$as_dir" : 'X\(//\)[^/]' \| \
21010 X"$as_dir" : 'X\(//\)$' \| \
21011 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21012 echo X"$as_dir" |
21013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21014 s//\1/
21015 q
21016 }
21017 /^X\(\/\/\)[^/].*/{
21018 s//\1/
21019 q
21020 }
21021 /^X\(\/\/\)$/{
21022 s//\1/
21023 q
21024 }
21025 /^X\(\/\).*/{
21026 s//\1/
21027 q
21028 }
21029 s/.*/./; q'`
21030 test -d "$as_dir" && break
21031 done
21032 test -z "$as_dirs" || eval "mkdir $as_dirs"
21033 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21034 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21035 { (exit 1); exit 1; }; }; }
21036 # echo "creating $dirpart/$file"
21037 echo '# dummy' > "$dirpart/$file"
21038 done
21039 done
21040 ;;
21041
21042 esac
21043 done # for ac_tag
21044
21045
21046 { (exit 0); exit 0; }
21047 _ACEOF
21048 chmod +x $CONFIG_STATUS
21049 ac_clean_files=$ac_clean_files_save
21050
21051
21052 # configure is writing to config.log, and then calls config.status.
21053 # config.status does its own redirection, appending to config.log.
21054 # Unfortunately, on DOS this fails, as config.log is still kept open
21055 # by configure, so config.status won't be able to write to it; its
21056 # output is simply discarded. So we exec the FD to /dev/null,
21057 # effectively closing config.log, so it can be properly (re)opened and
21058 # appended to by config.status. When coming back to configure, we
21059 # need to make the FD available again.
21060 if test "$no_create" != yes; then
21061 ac_cs_success=:
21062 ac_config_status_args=
21063 test "$silent" = yes &&
21064 ac_config_status_args="$ac_config_status_args --quiet"
21065 exec 5>/dev/null
21066 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21067 exec 5>>config.log
21068 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21069 # would make configure fail if this is the last instruction.
21070 $ac_cs_success || { (exit 1); exit 1; }
21071 fi
21072
21073
21074