Imported Debian patch 0.60.1-1
[hcoop/debian/courier-authlib.git] / random128 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for random128 0.10.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
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='random128'
730 PACKAGE_TARNAME='random128'
731 PACKAGE_VERSION='0.10'
732 PACKAGE_STRING='random128 0.10'
733 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735 ac_unique_file="random128.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 CC
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
847 CPP
848 GREP
849 EGREP
850 LN_S
851 PS
852 W
853 build
854 build_cpu
855 build_vendor
856 build_os
857 host
858 host_cpu
859 host_vendor
860 host_os
861 SED
862 ECHO
863 AR
864 RANLIB
865 CXX
866 CXXFLAGS
867 ac_ct_CXX
868 CXXDEPMODE
869 am__fastdepCXX_TRUE
870 am__fastdepCXX_FALSE
871 CXXCPP
872 F77
873 FFLAGS
874 ac_ct_F77
875 LIBTOOL
876 LIBOBJS
877 LTLIBOBJS'
878 ac_subst_files=''
879 ac_precious_vars='build_alias
880 host_alias
881 target_alias
882 CC
883 CFLAGS
884 LDFLAGS
885 LIBS
886 CPPFLAGS
887 CPP
888 CXX
889 CXXFLAGS
890 CCC
891 CXXCPP
892 F77
893 FFLAGS'
894
895
896 # Initialize some variables set by options.
897 ac_init_help=
898 ac_init_version=false
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
901 cache_file=/dev/null
902 exec_prefix=NONE
903 no_create=
904 no_recursion=
905 prefix=NONE
906 program_prefix=NONE
907 program_suffix=NONE
908 program_transform_name=s,x,x,
909 silent=
910 site=
911 srcdir=
912 verbose=
913 x_includes=NONE
914 x_libraries=NONE
915
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
941
942 ac_prev=
943 ac_dashdash=
944 for ac_option
945 do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
951 fi
952
953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
963
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 bindir=$ac_optarg ;;
968
969 -build | --build | --buil | --bui | --bu)
970 ac_prev=build_alias ;;
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972 build_alias=$ac_optarg ;;
973
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979 cache_file=$ac_optarg ;;
980
981 --config-cache | -C)
982 cache_file=config.cache ;;
983
984 -datadir | --datadir | --datadi | --datad)
985 ac_prev=datadir ;;
986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
987 datadir=$ac_optarg ;;
988
989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
995
996 -disable-* | --disable-*)
997 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1003 eval enable_$ac_feature=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=\$ac_optarg ;;
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219 eval with_$ac_package=\$ac_optarg ;;
1220
1221 -without-* | --without-*)
1222 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_$ac_package=no ;;
1229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) { echo "$as_me: error: unrecognized option: $ac_option
1249 Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1251 ;;
1252
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268 ;;
1269
1270 esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 { echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1277 fi
1278
1279 # Be sure to have absolute directory names.
1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1284 do
1285 eval ac_val=\$$ac_var
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
1292 done
1293
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310 fi
1311
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315 test "$silent" = yes && exec 6>/dev/null
1316
1317
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { echo "$as_me: error: Working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$0" ||
1333 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$0" : 'X\(//\)[^/]' \| \
1335 X"$0" : 'X\(//\)$' \| \
1336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1337 echo X"$0" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1358 fi
1359 else
1360 ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1365 { (exit 1); exit 1; }; }
1366 fi
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1370 { (exit 1); exit 1; }; }
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures random128 0.10 to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/random128]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458 System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of random128 0.10:";;
1467 esac
1468 cat <<\_ACEOF
1469
1470 Optional Features:
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --disable-dependency-tracking speeds up one-time build
1474 --enable-dependency-tracking do not reject slow dependency extractors
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480
1481 Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-pic try to use only PIC/non-PIC objects [default=use
1486 both]
1487 --with-tags[=TAGS] include additional configurations [automatic]
1488 --with-random=/dev/urandom - location of the system random file generator
1489 --without-random - there is no system random file generator
1490
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1499 CPP C preprocessor
1500 CXX C++ compiler command
1501 CXXFLAGS C++ compiler flags
1502 CXXCPP C++ preprocessor
1503 F77 Fortran 77 compiler command
1504 FFLAGS Fortran 77 compiler flags
1505
1506 Use these variables to override the choices made by `configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1508
1509 Report bugs to <courier-users@lists.sourceforge.net>.
1510 _ACEOF
1511 ac_status=$?
1512 fi
1513
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" || continue
1518 ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 random128 configure 0.10
1571 generated by GNU Autoconf 2.61
1572
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578 exit
1579 fi
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1583
1584 It was created by random128 $as_me 0.10, which was
1585 generated by GNU Autoconf 2.61. Invocation command line was
1586
1587 $ $0 $@
1588
1589 _ACEOF
1590 exec 5>>config.log
1591 {
1592 cat <<_ASUNAME
1593 ## --------- ##
1594 ## Platform. ##
1595 ## --------- ##
1596
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605
1606 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1610 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613
1614 _ASUNAME
1615
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1622 done
1623 IFS=$as_save_IFS
1624
1625 } >&5
1626
1627 cat >&5 <<_ACEOF
1628
1629
1630 ## ----------- ##
1631 ## Core tests. ##
1632 ## ----------- ##
1633
1634 _ACEOF
1635
1636
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1642 ac_configure_args=
1643 ac_configure_args0=
1644 ac_configure_args1=
1645 ac_must_keep_next=false
1646 for ac_pass in 1 2
1647 do
1648 for ac_arg
1649 do
1650 case $ac_arg in
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1654 continue ;;
1655 *\'*)
1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 esac
1658 case $ac_pass in
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 2)
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1664 else
1665 case $ac_arg in
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 esac
1673 ;;
1674 -* ) ac_must_keep_next=true ;;
1675 esac
1676 fi
1677 ac_configure_args="$ac_configure_args '$ac_arg'"
1678 ;;
1679 esac
1680 done
1681 done
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log. We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1692 {
1693 echo
1694
1695 cat <<\_ASBOX
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1699 _ASBOX
1700 echo
1701 # The following way of writing the cache mishandles newlines in values,
1702 (
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1705 case $ac_val in #(
1706 *${as_nl}*)
1707 case $ac_var in #(
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 esac
1711 case $ac_var in #(
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1714 esac ;;
1715 esac
1716 done
1717 (set) 2>&1 |
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1720 sed -n \
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 ;; #(
1724 *)
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726 ;;
1727 esac |
1728 sort
1729 )
1730 echo
1731
1732 cat <<\_ASBOX
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1736 _ASBOX
1737 echo
1738 for ac_var in $ac_subst_vars
1739 do
1740 eval ac_val=\$$ac_var
1741 case $ac_val in
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 esac
1744 echo "$ac_var='\''$ac_val'\''"
1745 done | sort
1746 echo
1747
1748 if test -n "$ac_subst_files"; then
1749 cat <<\_ASBOX
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1753 _ASBOX
1754 echo
1755 for ac_var in $ac_subst_files
1756 do
1757 eval ac_val=\$$ac_var
1758 case $ac_val in
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 esac
1761 echo "$ac_var='\''$ac_val'\''"
1762 done | sort
1763 echo
1764 fi
1765
1766 if test -s confdefs.h; then
1767 cat <<\_ASBOX
1768 ## ----------- ##
1769 ## confdefs.h. ##
1770 ## ----------- ##
1771 _ASBOX
1772 echo
1773 cat confdefs.h
1774 echo
1775 fi
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1779 } >&5
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 exit $exit_status
1783 ' 0
1784 for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786 done
1787 ac_signal=0
1788
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1791
1792 # Predefined preprocessor variables.
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816 _ACEOF
1817
1818
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825 else
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
1828 fi
1829 shift
1830 for ac_site_file
1831 do
1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1836 . "$ac_site_file"
1837 fi
1838 done
1839
1840 if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1846 case $cache_file in
1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
1849 esac
1850 fi
1851 else
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1854 >$cache_file
1855 fi
1856
1857 # Check that the precious variables saved in the cache have kept the same
1858 # value.
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1866 set,)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,set)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,);;
1875 *)
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880 echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882 echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895 esac
1896 fi
1897 done
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1904 fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937
1938 >confdefs.h # Kill PACKAGE_ macros
1939
1940
1941 am__api_version='1.10'
1942
1943 ac_aux_dir=
1944 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1945 if test -f "$ac_dir/install-sh"; then
1946 ac_aux_dir=$ac_dir
1947 ac_install_sh="$ac_aux_dir/install-sh -c"
1948 break
1949 elif test -f "$ac_dir/install.sh"; then
1950 ac_aux_dir=$ac_dir
1951 ac_install_sh="$ac_aux_dir/install.sh -c"
1952 break
1953 elif test -f "$ac_dir/shtool"; then
1954 ac_aux_dir=$ac_dir
1955 ac_install_sh="$ac_aux_dir/shtool install -c"
1956 break
1957 fi
1958 done
1959 if test -z "$ac_aux_dir"; then
1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1962 { (exit 1); exit 1; }; }
1963 fi
1964
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1972
1973
1974 # Find a good install program. We prefer a C program (faster),
1975 # so one script is as good as another. But avoid the broken or
1976 # incompatible versions:
1977 # SysV /etc/install, /usr/sbin/install
1978 # SunOS /usr/etc/install
1979 # IRIX /sbin/install
1980 # AIX /bin/install
1981 # AmigaOS /C/install, which installs bootblocks on floppy discs
1982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1985 # OS/2's system install, which has a completely different semantic
1986 # ./install, which can be erroneously created by make from ./install.sh.
1987 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1988 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1989 if test -z "$INSTALL"; then
1990 if test "${ac_cv_path_install+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 # Account for people who put trailing slashes in PATH elements.
1999 case $as_dir/ in
2000 ./ | .// | /cC/* | \
2001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2003 /usr/ucb/* ) ;;
2004 *)
2005 # OSF1 and SCO ODT 3.0 have their own names for install.
2006 # Don't use installbsd from OSF since it installs stuff as root
2007 # by default.
2008 for ac_prog in ginstall scoinst install; do
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2011 if test $ac_prog = install &&
2012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013 # AIX install. It has an incompatible calling convention.
2014 :
2015 elif test $ac_prog = install &&
2016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017 # program-specific install script used by HP pwplus--don't use.
2018 :
2019 else
2020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2021 break 3
2022 fi
2023 fi
2024 done
2025 done
2026 ;;
2027 esac
2028 done
2029 IFS=$as_save_IFS
2030
2031
2032 fi
2033 if test "${ac_cv_path_install+set}" = set; then
2034 INSTALL=$ac_cv_path_install
2035 else
2036 # As a last resort, use the slow shell script. Don't cache a
2037 # value for INSTALL within a source directory, because that will
2038 # break other packages using the cache if that directory is
2039 # removed, or if the value is a relative name.
2040 INSTALL=$ac_install_sh
2041 fi
2042 fi
2043 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2044 echo "${ECHO_T}$INSTALL" >&6; }
2045
2046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2047 # It thinks the first close brace ends the variable substitution.
2048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2049
2050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2051
2052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2053
2054 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2055 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2056 # Just in case
2057 sleep 1
2058 echo timestamp > conftest.file
2059 # Do `set' in a subshell so we don't clobber the current shell's
2060 # arguments. Must try -L first in case configure is actually a
2061 # symlink; some systems play weird games with the mod time of symlinks
2062 # (eg FreeBSD returns the mod time of the symlink's containing
2063 # directory).
2064 if (
2065 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2066 if test "$*" = "X"; then
2067 # -L didn't work.
2068 set X `ls -t $srcdir/configure conftest.file`
2069 fi
2070 rm -f conftest.file
2071 if test "$*" != "X $srcdir/configure conftest.file" \
2072 && test "$*" != "X conftest.file $srcdir/configure"; then
2073
2074 # If neither matched, then we have a broken ls. This can happen
2075 # if, for instance, CONFIG_SHELL is bash and it inherits a
2076 # broken ls alias from the environment. This has actually
2077 # happened. Such a system could not be considered "sane".
2078 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2079 alias in your environment" >&5
2080 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2081 alias in your environment" >&2;}
2082 { (exit 1); exit 1; }; }
2083 fi
2084
2085 test "$2" = conftest.file
2086 )
2087 then
2088 # Ok.
2089 :
2090 else
2091 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2092 Check your system clock" >&5
2093 echo "$as_me: error: newly created file is older than distributed files!
2094 Check your system clock" >&2;}
2095 { (exit 1); exit 1; }; }
2096 fi
2097 { echo "$as_me:$LINENO: result: yes" >&5
2098 echo "${ECHO_T}yes" >&6; }
2099 test "$program_prefix" != NONE &&
2100 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2101 # Use a double $ so make ignores it.
2102 test "$program_suffix" != NONE &&
2103 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2104 # Double any \ or $. echo might interpret backslashes.
2105 # By default was `s,x,x', remove it if useless.
2106 cat <<\_ACEOF >conftest.sed
2107 s/[\\$]/&&/g;s/;s,x,x,$//
2108 _ACEOF
2109 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2110 rm -f conftest.sed
2111
2112 # expand $ac_aux_dir to an absolute path
2113 am_aux_dir=`cd $ac_aux_dir && pwd`
2114
2115 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2116 # Use eval to expand $SHELL
2117 if eval "$MISSING --run true"; then
2118 am_missing_run="$MISSING --run "
2119 else
2120 am_missing_run=
2121 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2122 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2123 fi
2124
2125 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2126 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2127 if test -z "$MKDIR_P"; then
2128 if test "${ac_cv_path_mkdir+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2133 do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_prog in mkdir gmkdir; do
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2139 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2140 'mkdir (GNU coreutils) '* | \
2141 'mkdir (coreutils) '* | \
2142 'mkdir (fileutils) '4.1*)
2143 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2144 break 3;;
2145 esac
2146 done
2147 done
2148 done
2149 IFS=$as_save_IFS
2150
2151 fi
2152
2153 if test "${ac_cv_path_mkdir+set}" = set; then
2154 MKDIR_P="$ac_cv_path_mkdir -p"
2155 else
2156 # As a last resort, use the slow shell script. Don't cache a
2157 # value for MKDIR_P within a source directory, because that will
2158 # break other packages using the cache if that directory is
2159 # removed, or if the value is a relative name.
2160 test -d ./--version && rmdir ./--version
2161 MKDIR_P="$ac_install_sh -d"
2162 fi
2163 fi
2164 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2165 echo "${ECHO_T}$MKDIR_P" >&6; }
2166
2167 mkdir_p="$MKDIR_P"
2168 case $mkdir_p in
2169 [\\/$]* | ?:[\\/]*) ;;
2170 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2171 esac
2172
2173 for ac_prog in gawk mawk nawk awk
2174 do
2175 # Extract the first word of "$ac_prog", so it can be a program name with args.
2176 set dummy $ac_prog; ac_word=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_AWK+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182 if test -n "$AWK"; then
2183 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192 ac_cv_prog_AWK="$ac_prog"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2195 fi
2196 done
2197 done
2198 IFS=$as_save_IFS
2199
2200 fi
2201 fi
2202 AWK=$ac_cv_prog_AWK
2203 if test -n "$AWK"; then
2204 { echo "$as_me:$LINENO: result: $AWK" >&5
2205 echo "${ECHO_T}$AWK" >&6; }
2206 else
2207 { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2209 fi
2210
2211
2212 test -n "$AWK" && break
2213 done
2214
2215 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2216 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2217 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2218 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 cat >conftest.make <<\_ACEOF
2222 SHELL = /bin/sh
2223 all:
2224 @echo '@@@%%%=$(MAKE)=@@@%%%'
2225 _ACEOF
2226 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2227 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2228 *@@@%%%=?*=@@@%%%*)
2229 eval ac_cv_prog_make_${ac_make}_set=yes;;
2230 *)
2231 eval ac_cv_prog_make_${ac_make}_set=no;;
2232 esac
2233 rm -f conftest.make
2234 fi
2235 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2236 { echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6; }
2238 SET_MAKE=
2239 else
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2242 SET_MAKE="MAKE=${MAKE-make}"
2243 fi
2244
2245 rm -rf .tst 2>/dev/null
2246 mkdir .tst 2>/dev/null
2247 if test -d .tst; then
2248 am__leading_dot=.
2249 else
2250 am__leading_dot=_
2251 fi
2252 rmdir .tst 2>/dev/null
2253
2254 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2255 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2256 # is not polluted with repeated "-I."
2257 am__isrc=' -I$(srcdir)'
2258 # test to see if srcdir already configured
2259 if test -f $srcdir/config.status; then
2260 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2261 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2262 { (exit 1); exit 1; }; }
2263 fi
2264 fi
2265
2266 # test whether we have cygpath
2267 if test -z "$CYGPATH_W"; then
2268 if (cygpath --version) >/dev/null 2>/dev/null; then
2269 CYGPATH_W='cygpath -w'
2270 else
2271 CYGPATH_W=echo
2272 fi
2273 fi
2274
2275
2276 # Define the identity of the package.
2277 PACKAGE='random128'
2278 VERSION='0.10'
2279
2280
2281 # Some tools Automake needs.
2282
2283 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284
2285
2286 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2287
2288
2289 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290
2291
2292 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2293
2294
2295 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2296
2297 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2298
2299 # Installed binaries are usually stripped using `strip' when the user
2300 # run `make install-strip'. However `strip' might not be the right
2301 # tool to use in cross-compilation environments, therefore Automake
2302 # will honor the `STRIP' environment variable to overrule this program.
2303 if test "$cross_compiling" != no; then
2304 if test -n "$ac_tool_prefix"; then
2305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2306 set dummy ${ac_tool_prefix}strip; ac_word=$2
2307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2309 if test "${ac_cv_prog_STRIP+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312 if test -n "$STRIP"; then
2313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2317 do
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 break 2
2325 fi
2326 done
2327 done
2328 IFS=$as_save_IFS
2329
2330 fi
2331 fi
2332 STRIP=$ac_cv_prog_STRIP
2333 if test -n "$STRIP"; then
2334 { echo "$as_me:$LINENO: result: $STRIP" >&5
2335 echo "${ECHO_T}$STRIP" >&6; }
2336 else
2337 { echo "$as_me:$LINENO: result: no" >&5
2338 echo "${ECHO_T}no" >&6; }
2339 fi
2340
2341
2342 fi
2343 if test -z "$ac_cv_prog_STRIP"; then
2344 ac_ct_STRIP=$STRIP
2345 # Extract the first word of "strip", so it can be a program name with args.
2346 set dummy strip; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 if test -n "$ac_ct_STRIP"; then
2353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_ac_ct_STRIP="strip"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366 done
2367 done
2368 IFS=$as_save_IFS
2369
2370 fi
2371 fi
2372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2373 if test -n "$ac_ct_STRIP"; then
2374 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2375 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2376 else
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2379 fi
2380
2381 if test "x$ac_ct_STRIP" = x; then
2382 STRIP=":"
2383 else
2384 case $cross_compiling:$ac_tool_warned in
2385 yes:)
2386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2387 whose name does not start with the host triplet. If you think this
2388 configuration is useful to you, please write to autoconf@gnu.org." >&5
2389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet. If you think this
2391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2392 ac_tool_warned=yes ;;
2393 esac
2394 STRIP=$ac_ct_STRIP
2395 fi
2396 else
2397 STRIP="$ac_cv_prog_STRIP"
2398 fi
2399
2400 fi
2401 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2402
2403 # We need awk for the "check" target. The system "awk" is bad on
2404 # some platforms.
2405 # Always define AMTAR for backward compatibility.
2406
2407 AMTAR=${AMTAR-"${am_missing_run}tar"}
2408
2409 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2410
2411
2412
2413
2414
2415 LPATH="$PATH:/usr/local/bin"
2416
2417
2418 ac_config_headers="$ac_config_headers config.h"
2419
2420 DEPDIR="${am__leading_dot}deps"
2421
2422 ac_config_commands="$ac_config_commands depfiles"
2423
2424
2425 am_make=${MAKE-make}
2426 cat > confinc << 'END'
2427 am__doit:
2428 @echo done
2429 .PHONY: am__doit
2430 END
2431 # If we don't find an include directive, just comment out the code.
2432 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2433 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2434 am__include="#"
2435 am__quote=
2436 _am_result=none
2437 # First try GNU make style include.
2438 echo "include confinc" > confmf
2439 # We grep out `Entering directory' and `Leaving directory'
2440 # messages which can occur if `w' ends up in MAKEFLAGS.
2441 # In particular we don't look at `^make:' because GNU make might
2442 # be invoked under some other name (usually "gmake"), in which
2443 # case it prints its new name instead of `make'.
2444 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2445 am__include=include
2446 am__quote=
2447 _am_result=GNU
2448 fi
2449 # Now try BSD make style include.
2450 if test "$am__include" = "#"; then
2451 echo '.include "confinc"' > confmf
2452 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2453 am__include=.include
2454 am__quote="\""
2455 _am_result=BSD
2456 fi
2457 fi
2458
2459
2460 { echo "$as_me:$LINENO: result: $_am_result" >&5
2461 echo "${ECHO_T}$_am_result" >&6; }
2462 rm -f confinc confmf
2463
2464 # Check whether --enable-dependency-tracking was given.
2465 if test "${enable_dependency_tracking+set}" = set; then
2466 enableval=$enable_dependency_tracking;
2467 fi
2468
2469 if test "x$enable_dependency_tracking" != xno; then
2470 am_depcomp="$ac_aux_dir/depcomp"
2471 AMDEPBACKSLASH='\'
2472 fi
2473 if test "x$enable_dependency_tracking" != xno; then
2474 AMDEP_TRUE=
2475 AMDEP_FALSE='#'
2476 else
2477 AMDEP_TRUE='#'
2478 AMDEP_FALSE=
2479 fi
2480
2481
2482 ac_ext=c
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2508 fi
2509 done
2510 done
2511 IFS=$as_save_IFS
2512
2513 fi
2514 fi
2515 CC=$ac_cv_prog_CC
2516 if test -n "$CC"; then
2517 { echo "$as_me:$LINENO: result: $CC" >&5
2518 echo "${ECHO_T}$CC" >&6; }
2519 else
2520 { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2522 fi
2523
2524
2525 fi
2526 if test -z "$ac_cv_prog_CC"; then
2527 ac_ct_CC=$CC
2528 # Extract the first word of "gcc", so it can be a program name with args.
2529 set dummy gcc; ac_word=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 if test -n "$ac_ct_CC"; then
2536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 ac_cv_prog_ac_ct_CC="gcc"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2548 fi
2549 done
2550 done
2551 IFS=$as_save_IFS
2552
2553 fi
2554 fi
2555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2556 if test -n "$ac_ct_CC"; then
2557 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2558 echo "${ECHO_T}$ac_ct_CC" >&6; }
2559 else
2560 { echo "$as_me:$LINENO: result: no" >&5
2561 echo "${ECHO_T}no" >&6; }
2562 fi
2563
2564 if test "x$ac_ct_CC" = x; then
2565 CC=""
2566 else
2567 case $cross_compiling:$ac_tool_warned in
2568 yes:)
2569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2570 whose name does not start with the host triplet. If you think this
2571 configuration is useful to you, please write to autoconf@gnu.org." >&5
2572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2573 whose name does not start with the host triplet. If you think this
2574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2575 ac_tool_warned=yes ;;
2576 esac
2577 CC=$ac_ct_CC
2578 fi
2579 else
2580 CC="$ac_cv_prog_CC"
2581 fi
2582
2583 if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
2585 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2586 set dummy ${ac_tool_prefix}cc; ac_word=$2
2587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2589 if test "${ac_cv_prog_CC+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592 if test -n "$CC"; then
2593 ac_cv_prog_CC="$CC" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_CC="${ac_tool_prefix}cc"
2603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2605 fi
2606 done
2607 done
2608 IFS=$as_save_IFS
2609
2610 fi
2611 fi
2612 CC=$ac_cv_prog_CC
2613 if test -n "$CC"; then
2614 { echo "$as_me:$LINENO: result: $CC" >&5
2615 echo "${ECHO_T}$CC" >&6; }
2616 else
2617 { echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6; }
2619 fi
2620
2621
2622 fi
2623 fi
2624 if test -z "$CC"; then
2625 # Extract the first word of "cc", so it can be a program name with args.
2626 set dummy cc; ac_word=$2
2627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 ac_prog_rejected=no
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2644 ac_prog_rejected=yes
2645 continue
2646 fi
2647 ac_cv_prog_CC="cc"
2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651 done
2652 done
2653 IFS=$as_save_IFS
2654
2655 if test $ac_prog_rejected = yes; then
2656 # We found a bogon in the path, so make sure we never use it.
2657 set dummy $ac_cv_prog_CC
2658 shift
2659 if test $# != 0; then
2660 # We chose a different compiler from the bogus one.
2661 # However, it has the same basename, so the bogon will be chosen
2662 # first if we set CC to just the basename; use the full file name.
2663 shift
2664 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2665 fi
2666 fi
2667 fi
2668 fi
2669 CC=$ac_cv_prog_CC
2670 if test -n "$CC"; then
2671 { echo "$as_me:$LINENO: result: $CC" >&5
2672 echo "${ECHO_T}$CC" >&6; }
2673 else
2674 { echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6; }
2676 fi
2677
2678
2679 fi
2680 if test -z "$CC"; then
2681 if test -n "$ac_tool_prefix"; then
2682 for ac_prog in cl.exe
2683 do
2684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2688 if test "${ac_cv_prog_CC+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 CC=$ac_cv_prog_CC
2712 if test -n "$CC"; then
2713 { echo "$as_me:$LINENO: result: $CC" >&5
2714 echo "${ECHO_T}$CC" >&6; }
2715 else
2716 { echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6; }
2718 fi
2719
2720
2721 test -n "$CC" && break
2722 done
2723 fi
2724 if test -z "$CC"; then
2725 ac_ct_CC=$CC
2726 for ac_prog in cl.exe
2727 do
2728 # Extract the first word of "$ac_prog", so it can be a program name with args.
2729 set dummy $ac_prog; ac_word=$2
2730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735 if test -n "$ac_ct_CC"; then
2736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_ac_ct_CC="$ac_prog"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749 done
2750 done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6; }
2759 else
2760 { echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6; }
2762 fi
2763
2764
2765 test -n "$ac_ct_CC" && break
2766 done
2767
2768 if test "x$ac_ct_CC" = x; then
2769 CC=""
2770 else
2771 case $cross_compiling:$ac_tool_warned in
2772 yes:)
2773 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2774 whose name does not start with the host triplet. If you think this
2775 configuration is useful to you, please write to autoconf@gnu.org." >&5
2776 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2777 whose name does not start with the host triplet. If you think this
2778 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2779 ac_tool_warned=yes ;;
2780 esac
2781 CC=$ac_ct_CC
2782 fi
2783 fi
2784
2785 fi
2786
2787
2788 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: no acceptable C compiler found in \$PATH
2791 See \`config.log' for more details." >&2;}
2792 { (exit 1); exit 1; }; }
2793
2794 # Provide some information about the compiler.
2795 echo "$as_me:$LINENO: checking for C compiler version" >&5
2796 ac_compiler=`set X $ac_compile; echo $2`
2797 { (ac_try="$ac_compiler --version >&5"
2798 case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801 esac
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_compiler --version >&5") 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }
2807 { (ac_try="$ac_compiler -v >&5"
2808 case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811 esac
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_compiler -v >&5") 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }
2817 { (ac_try="$ac_compiler -V >&5"
2818 case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_compiler -V >&5") 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }
2827
2828 cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h. */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834
2835 int
2836 main ()
2837 {
2838
2839 ;
2840 return 0;
2841 }
2842 _ACEOF
2843 ac_clean_files_save=$ac_clean_files
2844 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2845 # Try to create an executable without -o first, disregard a.out.
2846 # It will help us diagnose broken compilers, and finding out an intuition
2847 # of exeext.
2848 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2849 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2850 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2851 #
2852 # List of possible output files, starting from the most likely.
2853 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2854 # only as a last resort. b.out is created by i960 compilers.
2855 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2856 #
2857 # The IRIX 6 linker writes into existing files which may not be
2858 # executable, retaining their permissions. Remove them first so a
2859 # subsequent execution test works.
2860 ac_rmfiles=
2861 for ac_file in $ac_files
2862 do
2863 case $ac_file in
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2865 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2866 esac
2867 done
2868 rm -f $ac_rmfiles
2869
2870 if { (ac_try="$ac_link_default"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_link_default") 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
2880 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2881 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2882 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2883 # so that the user can short-circuit this test for compilers unknown to
2884 # Autoconf.
2885 for ac_file in $ac_files ''
2886 do
2887 test -f "$ac_file" || continue
2888 case $ac_file in
2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2890 ;;
2891 [ab].out )
2892 # We found the default executable, but exeext='' is most
2893 # certainly right.
2894 break;;
2895 *.* )
2896 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2897 then :; else
2898 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2899 fi
2900 # We set ac_cv_exeext here because the later test for it is not
2901 # safe: cross compilers may not add the suffix if given an `-o'
2902 # argument, so we may need to know it at that point already.
2903 # Even if this section looks crufty: it has the advantage of
2904 # actually working.
2905 break;;
2906 * )
2907 break;;
2908 esac
2909 done
2910 test "$ac_cv_exeext" = no && ac_cv_exeext=
2911
2912 else
2913 ac_file=''
2914 fi
2915
2916 { echo "$as_me:$LINENO: result: $ac_file" >&5
2917 echo "${ECHO_T}$ac_file" >&6; }
2918 if test -z "$ac_file"; then
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: C compiler cannot create executables
2925 See \`config.log' for more details." >&2;}
2926 { (exit 77); exit 77; }; }
2927 fi
2928
2929 ac_exeext=$ac_cv_exeext
2930
2931 # Check that the compiler produces executables we can run. If not, either
2932 # the compiler is broken, or we cross compile.
2933 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2934 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2936 # If not cross compiling, check that we can run a simple program.
2937 if test "$cross_compiling" != yes; then
2938 if { ac_try='./$ac_file'
2939 { (case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942 esac
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_try") 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 cross_compiling=no
2949 else
2950 if test "$cross_compiling" = maybe; then
2951 cross_compiling=yes
2952 else
2953 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2954 If you meant to cross compile, use \`--host'.
2955 See \`config.log' for more details." >&5
2956 echo "$as_me: error: cannot run C compiled programs.
2957 If you meant to cross compile, use \`--host'.
2958 See \`config.log' for more details." >&2;}
2959 { (exit 1); exit 1; }; }
2960 fi
2961 fi
2962 fi
2963 { echo "$as_me:$LINENO: result: yes" >&5
2964 echo "${ECHO_T}yes" >&6; }
2965
2966 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2967 ac_clean_files=$ac_clean_files_save
2968 # Check that the compiler produces executables we can run. If not, either
2969 # the compiler is broken, or we cross compile.
2970 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2971 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2972 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2973 echo "${ECHO_T}$cross_compiling" >&6; }
2974
2975 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2976 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2977 if { (ac_try="$ac_link"
2978 case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_link") 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
2987 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2988 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2989 # work properly (i.e., refer to `conftest.exe'), while it won't with
2990 # `rm'.
2991 for ac_file in conftest.exe conftest conftest.*; do
2992 test -f "$ac_file" || continue
2993 case $ac_file in
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2995 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2996 break;;
2997 * ) break;;
2998 esac
2999 done
3000 else
3001 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3002 See \`config.log' for more details." >&5
3003 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3004 See \`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3006 fi
3007
3008 rm -f conftest$ac_cv_exeext
3009 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3010 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3011
3012 rm -f conftest.$ac_ext
3013 EXEEXT=$ac_cv_exeext
3014 ac_exeext=$EXEEXT
3015 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3016 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3017 if test "${ac_cv_objext+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026
3027 int
3028 main ()
3029 {
3030
3031 ;
3032 return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.o conftest.obj
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; then
3046 for ac_file in conftest.o conftest.obj conftest.*; do
3047 test -f "$ac_file" || continue;
3048 case $ac_file in
3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3051 break;;
3052 esac
3053 done
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3059 See \`config.log' for more details." >&5
3060 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3061 See \`config.log' for more details." >&2;}
3062 { (exit 1); exit 1; }; }
3063 fi
3064
3065 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3066 fi
3067 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3068 echo "${ECHO_T}$ac_cv_objext" >&6; }
3069 OBJEXT=$ac_cv_objext
3070 ac_objext=$OBJEXT
3071 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3072 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3073 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076 cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h. */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3082
3083 int
3084 main ()
3085 {
3086 #ifndef __GNUC__
3087 choke me
3088 #endif
3089
3090 ;
3091 return 0;
3092 }
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
3111 ac_compiler_gnu=yes
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116 ac_compiler_gnu=no
3117 fi
3118
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3121
3122 fi
3123 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3124 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3125 GCC=`test $ac_compiler_gnu = yes && echo yes`
3126 ac_test_CFLAGS=${CFLAGS+set}
3127 ac_save_CFLAGS=$CFLAGS
3128 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3129 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3130 if test "${ac_cv_prog_cc_g+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133 ac_save_c_werror_flag=$ac_c_werror_flag
3134 ac_c_werror_flag=yes
3135 ac_cv_prog_cc_g=no
3136 CFLAGS="-g"
3137 cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h. */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3143
3144 int
3145 main ()
3146 {
3147
3148 ;
3149 return 0;
3150 }
3151 _ACEOF
3152 rm -f conftest.$ac_objext
3153 if { (ac_try="$ac_compile"
3154 case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157 esac
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_compile") 2>conftest.er1
3160 ac_status=$?
3161 grep -v '^ *+' conftest.er1 >conftest.err
3162 rm -f conftest.er1
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } && {
3166 test -z "$ac_c_werror_flag" ||
3167 test ! -s conftest.err
3168 } && test -s conftest.$ac_objext; then
3169 ac_cv_prog_cc_g=yes
3170 else
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 CFLAGS=""
3175 cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h. */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3181
3182 int
3183 main ()
3184 {
3185
3186 ;
3187 return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3192 case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compile") 2>conftest.er1
3198 ac_status=$?
3199 grep -v '^ *+' conftest.er1 >conftest.err
3200 rm -f conftest.er1
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } && {
3204 test -z "$ac_c_werror_flag" ||
3205 test ! -s conftest.err
3206 } && test -s conftest.$ac_objext; then
3207 :
3208 else
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 ac_c_werror_flag=$ac_save_c_werror_flag
3213 CFLAGS="-g"
3214 cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h. */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3220
3221 int
3222 main ()
3223 {
3224
3225 ;
3226 return 0;
3227 }
3228 _ACEOF
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_compile") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } && {
3243 test -z "$ac_c_werror_flag" ||
3244 test ! -s conftest.err
3245 } && test -s conftest.$ac_objext; then
3246 ac_cv_prog_cc_g=yes
3247 else
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251
3252 fi
3253
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 fi
3256
3257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258 fi
3259
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 ac_c_werror_flag=$ac_save_c_werror_flag
3262 fi
3263 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3264 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3265 if test "$ac_test_CFLAGS" = set; then
3266 CFLAGS=$ac_save_CFLAGS
3267 elif test $ac_cv_prog_cc_g = yes; then
3268 if test "$GCC" = yes; then
3269 CFLAGS="-g -O2"
3270 else
3271 CFLAGS="-g"
3272 fi
3273 else
3274 if test "$GCC" = yes; then
3275 CFLAGS="-O2"
3276 else
3277 CFLAGS=
3278 fi
3279 fi
3280 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3281 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3282 if test "${ac_cv_prog_cc_c89+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285 ac_cv_prog_cc_c89=no
3286 ac_save_CC=$CC
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293 #include <stdarg.h>
3294 #include <stdio.h>
3295 #include <sys/types.h>
3296 #include <sys/stat.h>
3297 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3298 struct buf { int x; };
3299 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3300 static char *e (p, i)
3301 char **p;
3302 int i;
3303 {
3304 return p[i];
3305 }
3306 static char *f (char * (*g) (char **, int), char **p, ...)
3307 {
3308 char *s;
3309 va_list v;
3310 va_start (v,p);
3311 s = g (p, va_arg (v,int));
3312 va_end (v);
3313 return s;
3314 }
3315
3316 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3317 function prototypes and stuff, but not '\xHH' hex character constants.
3318 These don't provoke an error unfortunately, instead are silently treated
3319 as 'x'. The following induces an error, until -std is added to get
3320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3321 array size at least. It's necessary to write '\x00'==0 to get something
3322 that's true only with -std. */
3323 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3324
3325 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3326 inside strings and character constants. */
3327 #define FOO(x) 'x'
3328 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3329
3330 int test (int i, double x);
3331 struct s1 {int (*f) (int a);};
3332 struct s2 {int (*f) (double a);};
3333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3334 int argc;
3335 char **argv;
3336 int
3337 main ()
3338 {
3339 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3345 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3346 do
3347 CC="$ac_save_CC $ac_arg"
3348 rm -f conftest.$ac_objext
3349 if { (ac_try="$ac_compile"
3350 case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353 esac
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_compile") 2>conftest.er1
3356 ac_status=$?
3357 grep -v '^ *+' conftest.er1 >conftest.err
3358 rm -f conftest.er1
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } && {
3362 test -z "$ac_c_werror_flag" ||
3363 test ! -s conftest.err
3364 } && test -s conftest.$ac_objext; then
3365 ac_cv_prog_cc_c89=$ac_arg
3366 else
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370
3371 fi
3372
3373 rm -f core conftest.err conftest.$ac_objext
3374 test "x$ac_cv_prog_cc_c89" != "xno" && break
3375 done
3376 rm -f conftest.$ac_ext
3377 CC=$ac_save_CC
3378
3379 fi
3380 # AC_CACHE_VAL
3381 case "x$ac_cv_prog_cc_c89" in
3382 x)
3383 { echo "$as_me:$LINENO: result: none needed" >&5
3384 echo "${ECHO_T}none needed" >&6; } ;;
3385 xno)
3386 { echo "$as_me:$LINENO: result: unsupported" >&5
3387 echo "${ECHO_T}unsupported" >&6; } ;;
3388 *)
3389 CC="$CC $ac_cv_prog_cc_c89"
3390 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3391 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3392 esac
3393
3394
3395 ac_ext=c
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400
3401 depcc="$CC" am_compiler_list=
3402
3403 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3404 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3405 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3409 # We make a subdir and do the tests there. Otherwise we can end up
3410 # making bogus files that we don't know about and never remove. For
3411 # instance it was reported that on HP-UX the gcc test will end up
3412 # making a dummy file named `D' -- because `-MD' means `put the output
3413 # in D'.
3414 mkdir conftest.dir
3415 # Copy depcomp to subdir because otherwise we won't find it if we're
3416 # using a relative directory.
3417 cp "$am_depcomp" conftest.dir
3418 cd conftest.dir
3419 # We will build objects and dependencies in a subdirectory because
3420 # it helps to detect inapplicable dependency modes. For instance
3421 # both Tru64's cc and ICC support -MD to output dependencies as a
3422 # side effect of compilation, but ICC will put the dependencies in
3423 # the current directory while Tru64 will put them in the object
3424 # directory.
3425 mkdir sub
3426
3427 am_cv_CC_dependencies_compiler_type=none
3428 if test "$am_compiler_list" = ""; then
3429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3430 fi
3431 for depmode in $am_compiler_list; do
3432 # Setup a source with many dependencies, because some compilers
3433 # like to wrap large dependency lists on column 80 (with \), and
3434 # we should not choose a depcomp mode which is confused by this.
3435 #
3436 # We need to recreate these files for each test, as the compiler may
3437 # overwrite some of them when testing with obscure command lines.
3438 # This happens at least with the AIX C compiler.
3439 : > sub/conftest.c
3440 for i in 1 2 3 4 5 6; do
3441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3443 # Solaris 8's {/usr,}/bin/sh.
3444 touch sub/conftst$i.h
3445 done
3446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3447
3448 case $depmode in
3449 nosideeffect)
3450 # after this tag, mechanisms are not by side-effect, so they'll
3451 # only be used when explicitly requested
3452 if test "x$enable_dependency_tracking" = xyes; then
3453 continue
3454 else
3455 break
3456 fi
3457 ;;
3458 none) break ;;
3459 esac
3460 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3461 # mode. It turns out that the SunPro C++ compiler does not properly
3462 # handle `-M -o', and we need to detect this.
3463 if depmode=$depmode \
3464 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3466 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3467 >/dev/null 2>conftest.err &&
3468 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3469 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3471 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472 # icc doesn't choke on unknown options, it will just issue warnings
3473 # or remarks (even with -Werror). So we grep stderr for any message
3474 # that says an option was ignored or not supported.
3475 # When given -MP, icc 7.0 and 7.1 complain thusly:
3476 # icc: Command line warning: ignoring option '-M'; no argument required
3477 # The diagnosis changed in icc 8.0:
3478 # icc: Command line remark: option '-MP' not supported
3479 if (grep 'ignoring option' conftest.err ||
3480 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3481 am_cv_CC_dependencies_compiler_type=$depmode
3482 break
3483 fi
3484 fi
3485 done
3486
3487 cd ..
3488 rm -rf conftest.dir
3489 else
3490 am_cv_CC_dependencies_compiler_type=none
3491 fi
3492
3493 fi
3494 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3495 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3496 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3497
3498 if
3499 test "x$enable_dependency_tracking" != xno \
3500 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3501 am__fastdepCC_TRUE=
3502 am__fastdepCC_FALSE='#'
3503 else
3504 am__fastdepCC_TRUE='#'
3505 am__fastdepCC_FALSE=
3506 fi
3507
3508
3509
3510 ac_ext=c
3511 ac_cpp='$CPP $CPPFLAGS'
3512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3516 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3517 # On Suns, sometimes $CPP names a directory.
3518 if test -n "$CPP" && test -d "$CPP"; then
3519 CPP=
3520 fi
3521 if test -z "$CPP"; then
3522 if test "${ac_cv_prog_CPP+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525 # Double quotes because CPP needs to be expanded
3526 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3527 do
3528 ac_preproc_ok=false
3529 for ac_c_preproc_warn_flag in '' yes
3530 do
3531 # Use a header file that comes with gcc, so configuring glibc
3532 # with a fresh cross-compiler works.
3533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3534 # <limits.h> exists even on freestanding compilers.
3535 # On the NeXT, cc -E runs the code through the compiler's parser,
3536 # not just through cpp. "Syntax error" is here to catch this case.
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h. */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #ifdef __STDC__
3544 # include <limits.h>
3545 #else
3546 # include <assert.h>
3547 #endif
3548 Syntax error
3549 _ACEOF
3550 if { (ac_try="$ac_cpp conftest.$ac_ext"
3551 case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554 esac
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } >/dev/null && {
3563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 }; then
3566 :
3567 else
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 # Broken: fails on valid input.
3572 continue
3573 fi
3574
3575 rm -f conftest.err conftest.$ac_ext
3576
3577 # OK, works on sane cases. Now check whether nonexistent headers
3578 # can be detected and how.
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 #include <ac_nonexistent.h>
3586 _ACEOF
3587 if { (ac_try="$ac_cpp conftest.$ac_ext"
3588 case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591 esac
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3594 ac_status=$?
3595 grep -v '^ *+' conftest.er1 >conftest.err
3596 rm -f conftest.er1
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } >/dev/null && {
3600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3601 test ! -s conftest.err
3602 }; then
3603 # Broken: success on invalid input.
3604 continue
3605 else
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609 # Passes both tests.
3610 ac_preproc_ok=:
3611 break
3612 fi
3613
3614 rm -f conftest.err conftest.$ac_ext
3615
3616 done
3617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3618 rm -f conftest.err conftest.$ac_ext
3619 if $ac_preproc_ok; then
3620 break
3621 fi
3622
3623 done
3624 ac_cv_prog_CPP=$CPP
3625
3626 fi
3627 CPP=$ac_cv_prog_CPP
3628 else
3629 ac_cv_prog_CPP=$CPP
3630 fi
3631 { echo "$as_me:$LINENO: result: $CPP" >&5
3632 echo "${ECHO_T}$CPP" >&6; }
3633 ac_preproc_ok=false
3634 for ac_c_preproc_warn_flag in '' yes
3635 do
3636 # Use a header file that comes with gcc, so configuring glibc
3637 # with a fresh cross-compiler works.
3638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3639 # <limits.h> exists even on freestanding compilers.
3640 # On the NeXT, cc -E runs the code through the compiler's parser,
3641 # not just through cpp. "Syntax error" is here to catch this case.
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 #ifdef __STDC__
3649 # include <limits.h>
3650 #else
3651 # include <assert.h>
3652 #endif
3653 Syntax error
3654 _ACEOF
3655 if { (ac_try="$ac_cpp conftest.$ac_ext"
3656 case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3659 esac
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3662 ac_status=$?
3663 grep -v '^ *+' conftest.er1 >conftest.err
3664 rm -f conftest.er1
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } >/dev/null && {
3668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3669 test ! -s conftest.err
3670 }; then
3671 :
3672 else
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 # Broken: fails on valid input.
3677 continue
3678 fi
3679
3680 rm -f conftest.err conftest.$ac_ext
3681
3682 # OK, works on sane cases. Now check whether nonexistent headers
3683 # can be detected and how.
3684 cat >conftest.$ac_ext <<_ACEOF
3685 /* confdefs.h. */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 #include <ac_nonexistent.h>
3691 _ACEOF
3692 if { (ac_try="$ac_cpp conftest.$ac_ext"
3693 case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } >/dev/null && {
3705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3706 test ! -s conftest.err
3707 }; then
3708 # Broken: success on invalid input.
3709 continue
3710 else
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3713
3714 # Passes both tests.
3715 ac_preproc_ok=:
3716 break
3717 fi
3718
3719 rm -f conftest.err conftest.$ac_ext
3720
3721 done
3722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3723 rm -f conftest.err conftest.$ac_ext
3724 if $ac_preproc_ok; then
3725 :
3726 else
3727 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3728 See \`config.log' for more details." >&5
3729 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3730 See \`config.log' for more details." >&2;}
3731 { (exit 1); exit 1; }; }
3732 fi
3733
3734 ac_ext=c
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739
3740
3741 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3742 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3743 if test "${ac_cv_path_GREP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746 # Extract the first word of "grep ggrep" to use in msg output
3747 if test -z "$GREP"; then
3748 set dummy grep ggrep; ac_prog_name=$2
3749 if test "${ac_cv_path_GREP+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 ac_path_GREP_found=false
3753 # Loop through the user's path and test for each of PROGNAME-LIST
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3756 do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_prog in grep ggrep; do
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3762 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3763 # Check for GNU ac_path_GREP and select it if it is found.
3764 # Check for GNU $ac_path_GREP
3765 case `"$ac_path_GREP" --version 2>&1` in
3766 *GNU*)
3767 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3768 *)
3769 ac_count=0
3770 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3771 while :
3772 do
3773 cat "conftest.in" "conftest.in" >"conftest.tmp"
3774 mv "conftest.tmp" "conftest.in"
3775 cp "conftest.in" "conftest.nl"
3776 echo 'GREP' >> "conftest.nl"
3777 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3779 ac_count=`expr $ac_count + 1`
3780 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3781 # Best one so far, save it but keep looking for a better one
3782 ac_cv_path_GREP="$ac_path_GREP"
3783 ac_path_GREP_max=$ac_count
3784 fi
3785 # 10*(2^10) chars as input seems more than enough
3786 test $ac_count -gt 10 && break
3787 done
3788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3789 esac
3790
3791
3792 $ac_path_GREP_found && break 3
3793 done
3794 done
3795
3796 done
3797 IFS=$as_save_IFS
3798
3799
3800 fi
3801
3802 GREP="$ac_cv_path_GREP"
3803 if test -z "$GREP"; then
3804 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3805 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3806 { (exit 1); exit 1; }; }
3807 fi
3808
3809 else
3810 ac_cv_path_GREP=$GREP
3811 fi
3812
3813
3814 fi
3815 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3816 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3817 GREP="$ac_cv_path_GREP"
3818
3819
3820 { echo "$as_me:$LINENO: checking for egrep" >&5
3821 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3822 if test "${ac_cv_path_EGREP+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3826 then ac_cv_path_EGREP="$GREP -E"
3827 else
3828 # Extract the first word of "egrep" to use in msg output
3829 if test -z "$EGREP"; then
3830 set dummy egrep; ac_prog_name=$2
3831 if test "${ac_cv_path_EGREP+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834 ac_path_EGREP_found=false
3835 # Loop through the user's path and test for each of PROGNAME-LIST
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3838 do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_prog in egrep; do
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3844 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3845 # Check for GNU ac_path_EGREP and select it if it is found.
3846 # Check for GNU $ac_path_EGREP
3847 case `"$ac_path_EGREP" --version 2>&1` in
3848 *GNU*)
3849 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3850 *)
3851 ac_count=0
3852 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3853 while :
3854 do
3855 cat "conftest.in" "conftest.in" >"conftest.tmp"
3856 mv "conftest.tmp" "conftest.in"
3857 cp "conftest.in" "conftest.nl"
3858 echo 'EGREP' >> "conftest.nl"
3859 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3861 ac_count=`expr $ac_count + 1`
3862 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3863 # Best one so far, save it but keep looking for a better one
3864 ac_cv_path_EGREP="$ac_path_EGREP"
3865 ac_path_EGREP_max=$ac_count
3866 fi
3867 # 10*(2^10) chars as input seems more than enough
3868 test $ac_count -gt 10 && break
3869 done
3870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3871 esac
3872
3873
3874 $ac_path_EGREP_found && break 3
3875 done
3876 done
3877
3878 done
3879 IFS=$as_save_IFS
3880
3881
3882 fi
3883
3884 EGREP="$ac_cv_path_EGREP"
3885 if test -z "$EGREP"; then
3886 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3887 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3888 { (exit 1); exit 1; }; }
3889 fi
3890
3891 else
3892 ac_cv_path_EGREP=$EGREP
3893 fi
3894
3895
3896 fi
3897 fi
3898 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3899 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3900 EGREP="$ac_cv_path_EGREP"
3901
3902
3903
3904 { echo "$as_me:$LINENO: checking for AIX" >&5
3905 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3906 cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h. */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3912 #ifdef _AIX
3913 yes
3914 #endif
3915
3916 _ACEOF
3917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3918 $EGREP "yes" >/dev/null 2>&1; then
3919 { echo "$as_me:$LINENO: result: yes" >&5
3920 echo "${ECHO_T}yes" >&6; }
3921 cat >>confdefs.h <<\_ACEOF
3922 #define _ALL_SOURCE 1
3923 _ACEOF
3924
3925 else
3926 { echo "$as_me:$LINENO: result: no" >&5
3927 echo "${ECHO_T}no" >&6; }
3928 fi
3929 rm -f conftest*
3930
3931
3932 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3933 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3934 if test "${ac_cv_search_strerror+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 ac_func_search_save_LIBS=$LIBS
3938 cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h. */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944
3945 /* Override any GCC internal prototype to avoid an error.
3946 Use char because int might match the return type of a GCC
3947 builtin and then its argument prototype would still apply. */
3948 #ifdef __cplusplus
3949 extern "C"
3950 #endif
3951 char strerror ();
3952 int
3953 main ()
3954 {
3955 return strerror ();
3956 ;
3957 return 0;
3958 }
3959 _ACEOF
3960 for ac_lib in '' cposix; do
3961 if test -z "$ac_lib"; then
3962 ac_res="none required"
3963 else
3964 ac_res=-l$ac_lib
3965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3966 fi
3967 rm -f conftest.$ac_objext conftest$ac_exeext
3968 if { (ac_try="$ac_link"
3969 case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_link") 2>conftest.er1
3975 ac_status=$?
3976 grep -v '^ *+' conftest.er1 >conftest.err
3977 rm -f conftest.er1
3978 cat conftest.err >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } && {
3981 test -z "$ac_c_werror_flag" ||
3982 test ! -s conftest.err
3983 } && test -s conftest$ac_exeext &&
3984 $as_test_x conftest$ac_exeext; then
3985 ac_cv_search_strerror=$ac_res
3986 else
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3989
3990
3991 fi
3992
3993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3994 conftest$ac_exeext
3995 if test "${ac_cv_search_strerror+set}" = set; then
3996 break
3997 fi
3998 done
3999 if test "${ac_cv_search_strerror+set}" = set; then
4000 :
4001 else
4002 ac_cv_search_strerror=no
4003 fi
4004 rm conftest.$ac_ext
4005 LIBS=$ac_func_search_save_LIBS
4006 fi
4007 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4008 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4009 ac_res=$ac_cv_search_strerror
4010 if test "$ac_res" != no; then
4011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4012
4013 fi
4014
4015 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4017 if test "${ac_cv_header_stdc+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020 cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h. */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 #include <stdlib.h>
4027 #include <stdarg.h>
4028 #include <string.h>
4029 #include <float.h>
4030
4031 int
4032 main ()
4033 {
4034
4035 ;
4036 return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (ac_try="$ac_compile"
4041 case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_compile") 2>conftest.er1
4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } && {
4053 test -z "$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4055 } && test -s conftest.$ac_objext; then
4056 ac_cv_header_stdc=yes
4057 else
4058 echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4060
4061 ac_cv_header_stdc=no
4062 fi
4063
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065
4066 if test $ac_cv_header_stdc = yes; then
4067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #include <string.h>
4075
4076 _ACEOF
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 $EGREP "memchr" >/dev/null 2>&1; then
4079 :
4080 else
4081 ac_cv_header_stdc=no
4082 fi
4083 rm -f conftest*
4084
4085 fi
4086
4087 if test $ac_cv_header_stdc = yes; then
4088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h. */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 #include <stdlib.h>
4096
4097 _ACEOF
4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 $EGREP "free" >/dev/null 2>&1; then
4100 :
4101 else
4102 ac_cv_header_stdc=no
4103 fi
4104 rm -f conftest*
4105
4106 fi
4107
4108 if test $ac_cv_header_stdc = yes; then
4109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4110 if test "$cross_compiling" = yes; then
4111 :
4112 else
4113 cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h. */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4119 #include <ctype.h>
4120 #include <stdlib.h>
4121 #if ((' ' & 0x0FF) == 0x020)
4122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4124 #else
4125 # define ISLOWER(c) \
4126 (('a' <= (c) && (c) <= 'i') \
4127 || ('j' <= (c) && (c) <= 'r') \
4128 || ('s' <= (c) && (c) <= 'z'))
4129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4130 #endif
4131
4132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4133 int
4134 main ()
4135 {
4136 int i;
4137 for (i = 0; i < 256; i++)
4138 if (XOR (islower (i), ISLOWER (i))
4139 || toupper (i) != TOUPPER (i))
4140 return 2;
4141 return 0;
4142 }
4143 _ACEOF
4144 rm -f conftest$ac_exeext
4145 if { (ac_try="$ac_link"
4146 case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_link") 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 :
4165 else
4166 echo "$as_me: program exited with status $ac_status" >&5
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4169
4170 ( exit $ac_status )
4171 ac_cv_header_stdc=no
4172 fi
4173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4174 fi
4175
4176
4177 fi
4178 fi
4179 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4180 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4181 if test $ac_cv_header_stdc = yes; then
4182
4183 cat >>confdefs.h <<\_ACEOF
4184 #define STDC_HEADERS 1
4185 _ACEOF
4186
4187 fi
4188
4189 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4200 inttypes.h stdint.h unistd.h
4201 do
4202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208 cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h. */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4214 $ac_includes_default
4215
4216 #include <$ac_header>
4217 _ACEOF
4218 rm -f conftest.$ac_objext
4219 if { (ac_try="$ac_compile"
4220 case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223 esac
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_compile") 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } && {
4232 test -z "$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4234 } && test -s conftest.$ac_objext; then
4235 eval "$as_ac_Header=yes"
4236 else
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 eval "$as_ac_Header=no"
4241 fi
4242
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 fi
4245 ac_res=`eval echo '${'$as_ac_Header'}'`
4246 { echo "$as_me:$LINENO: result: $ac_res" >&5
4247 echo "${ECHO_T}$ac_res" >&6; }
4248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4249 cat >>confdefs.h <<_ACEOF
4250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4251 _ACEOF
4252
4253 fi
4254
4255 done
4256
4257
4258 if test "${ac_cv_header_minix_config_h+set}" = set; then
4259 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4260 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4261 if test "${ac_cv_header_minix_config_h+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 fi
4264 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4265 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4266 else
4267 # Is the header compilable?
4268 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4269 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h. */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 $ac_includes_default
4277 #include <minix/config.h>
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (ac_try="$ac_compile"
4281 case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_compile") 2>conftest.er1
4287 ac_status=$?
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && {
4293 test -z "$ac_c_werror_flag" ||
4294 test ! -s conftest.err
4295 } && test -s conftest.$ac_objext; then
4296 ac_header_compiler=yes
4297 else
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301 ac_header_compiler=no
4302 fi
4303
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4306 echo "${ECHO_T}$ac_header_compiler" >&6; }
4307
4308 # Is the header present?
4309 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4310 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h. */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 #include <minix/config.h>
4318 _ACEOF
4319 if { (ac_try="$ac_cpp conftest.$ac_ext"
4320 case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4326 ac_status=$?
4327 grep -v '^ *+' conftest.er1 >conftest.err
4328 rm -f conftest.er1
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } >/dev/null && {
4332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4333 test ! -s conftest.err
4334 }; then
4335 ac_header_preproc=yes
4336 else
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4339
4340 ac_header_preproc=no
4341 fi
4342
4343 rm -f conftest.err conftest.$ac_ext
4344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4345 echo "${ECHO_T}$ac_header_preproc" >&6; }
4346
4347 # So? What about this header?
4348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4349 yes:no: )
4350 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4351 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4352 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4353 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4354 ac_header_preproc=yes
4355 ;;
4356 no:yes:* )
4357 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4358 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4359 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4360 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4361 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4362 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4363 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4364 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4365 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4366 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4367 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4368 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4369 ( cat <<\_ASBOX
4370 ## -------------------------------------------------- ##
4371 ## Report this to courier-users@lists.sourceforge.net ##
4372 ## -------------------------------------------------- ##
4373 _ASBOX
4374 ) | sed "s/^/$as_me: WARNING: /" >&2
4375 ;;
4376 esac
4377 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4378 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4379 if test "${ac_cv_header_minix_config_h+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382 ac_cv_header_minix_config_h=$ac_header_preproc
4383 fi
4384 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4385 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4386
4387 fi
4388 if test $ac_cv_header_minix_config_h = yes; then
4389 MINIX=yes
4390 else
4391 MINIX=
4392 fi
4393
4394
4395 if test "$MINIX" = yes; then
4396
4397 cat >>confdefs.h <<\_ACEOF
4398 #define _POSIX_SOURCE 1
4399 _ACEOF
4400
4401
4402 cat >>confdefs.h <<\_ACEOF
4403 #define _POSIX_1_SOURCE 2
4404 _ACEOF
4405
4406
4407 cat >>confdefs.h <<\_ACEOF
4408 #define _MINIX 1
4409 _ACEOF
4410
4411 fi
4412
4413 # Find a good install program. We prefer a C program (faster),
4414 # so one script is as good as another. But avoid the broken or
4415 # incompatible versions:
4416 # SysV /etc/install, /usr/sbin/install
4417 # SunOS /usr/etc/install
4418 # IRIX /sbin/install
4419 # AIX /bin/install
4420 # AmigaOS /C/install, which installs bootblocks on floppy discs
4421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4424 # OS/2's system install, which has a completely different semantic
4425 # ./install, which can be erroneously created by make from ./install.sh.
4426 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4427 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4428 if test -z "$INSTALL"; then
4429 if test "${ac_cv_path_install+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 # Account for people who put trailing slashes in PATH elements.
4438 case $as_dir/ in
4439 ./ | .// | /cC/* | \
4440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4441 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4442 /usr/ucb/* ) ;;
4443 *)
4444 # OSF1 and SCO ODT 3.0 have their own names for install.
4445 # Don't use installbsd from OSF since it installs stuff as root
4446 # by default.
4447 for ac_prog in ginstall scoinst install; do
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4450 if test $ac_prog = install &&
4451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4452 # AIX install. It has an incompatible calling convention.
4453 :
4454 elif test $ac_prog = install &&
4455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4456 # program-specific install script used by HP pwplus--don't use.
4457 :
4458 else
4459 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4460 break 3
4461 fi
4462 fi
4463 done
4464 done
4465 ;;
4466 esac
4467 done
4468 IFS=$as_save_IFS
4469
4470
4471 fi
4472 if test "${ac_cv_path_install+set}" = set; then
4473 INSTALL=$ac_cv_path_install
4474 else
4475 # As a last resort, use the slow shell script. Don't cache a
4476 # value for INSTALL within a source directory, because that will
4477 # break other packages using the cache if that directory is
4478 # removed, or if the value is a relative name.
4479 INSTALL=$ac_install_sh
4480 fi
4481 fi
4482 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4483 echo "${ECHO_T}$INSTALL" >&6; }
4484
4485 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4486 # It thinks the first close brace ends the variable substitution.
4487 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4488
4489 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4490
4491 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4492
4493 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4494 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4495 LN_S=$as_ln_s
4496 if test "$LN_S" = "ln -s"; then
4497 { echo "$as_me:$LINENO: result: yes" >&5
4498 echo "${ECHO_T}yes" >&6; }
4499 else
4500 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4501 echo "${ECHO_T}no, using $LN_S" >&6; }
4502 fi
4503
4504 ac_ext=c
4505 ac_cpp='$CPP $CPPFLAGS'
4506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509 if test -n "$ac_tool_prefix"; then
4510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4511 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_prog_CC+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 if test -n "$CC"; then
4518 ac_cv_prog_CC="$CC" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531 done
4532 done
4533 IFS=$as_save_IFS
4534
4535 fi
4536 fi
4537 CC=$ac_cv_prog_CC
4538 if test -n "$CC"; then
4539 { echo "$as_me:$LINENO: result: $CC" >&5
4540 echo "${ECHO_T}$CC" >&6; }
4541 else
4542 { echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6; }
4544 fi
4545
4546
4547 fi
4548 if test -z "$ac_cv_prog_CC"; then
4549 ac_ct_CC=$CC
4550 # Extract the first word of "gcc", so it can be a program name with args.
4551 set dummy gcc; ac_word=$2
4552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 if test -n "$ac_ct_CC"; then
4558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_ac_ct_CC="gcc"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4570 fi
4571 done
4572 done
4573 IFS=$as_save_IFS
4574
4575 fi
4576 fi
4577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4578 if test -n "$ac_ct_CC"; then
4579 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4580 echo "${ECHO_T}$ac_ct_CC" >&6; }
4581 else
4582 { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; }
4584 fi
4585
4586 if test "x$ac_ct_CC" = x; then
4587 CC=""
4588 else
4589 case $cross_compiling:$ac_tool_warned in
4590 yes:)
4591 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4592 whose name does not start with the host triplet. If you think this
4593 configuration is useful to you, please write to autoconf@gnu.org." >&5
4594 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4595 whose name does not start with the host triplet. If you think this
4596 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4597 ac_tool_warned=yes ;;
4598 esac
4599 CC=$ac_ct_CC
4600 fi
4601 else
4602 CC="$ac_cv_prog_CC"
4603 fi
4604
4605 if test -z "$CC"; then
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}cc; ac_word=$2
4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611 if test "${ac_cv_prog_CC+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 if test -n "$CC"; then
4615 ac_cv_prog_CC="$CC" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_CC="${ac_tool_prefix}cc"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628 done
4629 done
4630 IFS=$as_save_IFS
4631
4632 fi
4633 fi
4634 CC=$ac_cv_prog_CC
4635 if test -n "$CC"; then
4636 { echo "$as_me:$LINENO: result: $CC" >&5
4637 echo "${ECHO_T}$CC" >&6; }
4638 else
4639 { echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6; }
4641 fi
4642
4643
4644 fi
4645 fi
4646 if test -z "$CC"; then
4647 # Extract the first word of "cc", so it can be a program name with args.
4648 set dummy cc; ac_word=$2
4649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651 if test "${ac_cv_prog_CC+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654 if test -n "$CC"; then
4655 ac_cv_prog_CC="$CC" # Let the user override the test.
4656 else
4657 ac_prog_rejected=no
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4666 ac_prog_rejected=yes
4667 continue
4668 fi
4669 ac_cv_prog_CC="cc"
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4672 fi
4673 done
4674 done
4675 IFS=$as_save_IFS
4676
4677 if test $ac_prog_rejected = yes; then
4678 # We found a bogon in the path, so make sure we never use it.
4679 set dummy $ac_cv_prog_CC
4680 shift
4681 if test $# != 0; then
4682 # We chose a different compiler from the bogus one.
4683 # However, it has the same basename, so the bogon will be chosen
4684 # first if we set CC to just the basename; use the full file name.
4685 shift
4686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4687 fi
4688 fi
4689 fi
4690 fi
4691 CC=$ac_cv_prog_CC
4692 if test -n "$CC"; then
4693 { echo "$as_me:$LINENO: result: $CC" >&5
4694 echo "${ECHO_T}$CC" >&6; }
4695 else
4696 { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4698 fi
4699
4700
4701 fi
4702 if test -z "$CC"; then
4703 if test -n "$ac_tool_prefix"; then
4704 for ac_prog in cl.exe
4705 do
4706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4710 if test "${ac_cv_prog_CC+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713 if test -n "$CC"; then
4714 ac_cv_prog_CC="$CC" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727 done
4728 done
4729 IFS=$as_save_IFS
4730
4731 fi
4732 fi
4733 CC=$ac_cv_prog_CC
4734 if test -n "$CC"; then
4735 { echo "$as_me:$LINENO: result: $CC" >&5
4736 echo "${ECHO_T}$CC" >&6; }
4737 else
4738 { echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6; }
4740 fi
4741
4742
4743 test -n "$CC" && break
4744 done
4745 fi
4746 if test -z "$CC"; then
4747 ac_ct_CC=$CC
4748 for ac_prog in cl.exe
4749 do
4750 # Extract the first word of "$ac_prog", so it can be a program name with args.
4751 set dummy $ac_prog; ac_word=$2
4752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757 if test -n "$ac_ct_CC"; then
4758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_ac_ct_CC="$ac_prog"
4768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4778 if test -n "$ac_ct_CC"; then
4779 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4780 echo "${ECHO_T}$ac_ct_CC" >&6; }
4781 else
4782 { echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6; }
4784 fi
4785
4786
4787 test -n "$ac_ct_CC" && break
4788 done
4789
4790 if test "x$ac_ct_CC" = x; then
4791 CC=""
4792 else
4793 case $cross_compiling:$ac_tool_warned in
4794 yes:)
4795 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4796 whose name does not start with the host triplet. If you think this
4797 configuration is useful to you, please write to autoconf@gnu.org." >&5
4798 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4799 whose name does not start with the host triplet. If you think this
4800 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4801 ac_tool_warned=yes ;;
4802 esac
4803 CC=$ac_ct_CC
4804 fi
4805 fi
4806
4807 fi
4808
4809
4810 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4811 See \`config.log' for more details." >&5
4812 echo "$as_me: error: no acceptable C compiler found in \$PATH
4813 See \`config.log' for more details." >&2;}
4814 { (exit 1); exit 1; }; }
4815
4816 # Provide some information about the compiler.
4817 echo "$as_me:$LINENO: checking for C compiler version" >&5
4818 ac_compiler=`set X $ac_compile; echo $2`
4819 { (ac_try="$ac_compiler --version >&5"
4820 case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_compiler --version >&5") 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }
4829 { (ac_try="$ac_compiler -v >&5"
4830 case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833 esac
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_compiler -v >&5") 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }
4839 { (ac_try="$ac_compiler -V >&5"
4840 case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_compiler -V >&5") 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }
4849
4850 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4851 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4852 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855 cat >conftest.$ac_ext <<_ACEOF
4856 /* confdefs.h. */
4857 _ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4861
4862 int
4863 main ()
4864 {
4865 #ifndef __GNUC__
4866 choke me
4867 #endif
4868
4869 ;
4870 return 0;
4871 }
4872 _ACEOF
4873 rm -f conftest.$ac_objext
4874 if { (ac_try="$ac_compile"
4875 case "(($ac_try" in
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4878 esac
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_compile") 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } && {
4887 test -z "$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 } && test -s conftest.$ac_objext; then
4890 ac_compiler_gnu=yes
4891 else
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895 ac_compiler_gnu=no
4896 fi
4897
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4900
4901 fi
4902 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4903 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4904 GCC=`test $ac_compiler_gnu = yes && echo yes`
4905 ac_test_CFLAGS=${CFLAGS+set}
4906 ac_save_CFLAGS=$CFLAGS
4907 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4908 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4909 if test "${ac_cv_prog_cc_g+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912 ac_save_c_werror_flag=$ac_c_werror_flag
4913 ac_c_werror_flag=yes
4914 ac_cv_prog_cc_g=no
4915 CFLAGS="-g"
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922
4923 int
4924 main ()
4925 {
4926
4927 ;
4928 return 0;
4929 }
4930 _ACEOF
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4933 case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936 esac
4937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938 (eval "$ac_compile") 2>conftest.er1
4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && {
4945 test -z "$ac_c_werror_flag" ||
4946 test ! -s conftest.err
4947 } && test -s conftest.$ac_objext; then
4948 ac_cv_prog_cc_g=yes
4949 else
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 CFLAGS=""
4954 cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h. */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960
4961 int
4962 main ()
4963 {
4964
4965 ;
4966 return 0;
4967 }
4968 _ACEOF
4969 rm -f conftest.$ac_objext
4970 if { (ac_try="$ac_compile"
4971 case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4974 esac
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_compile") 2>conftest.er1
4977 ac_status=$?
4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } && {
4983 test -z "$ac_c_werror_flag" ||
4984 test ! -s conftest.err
4985 } && test -s conftest.$ac_objext; then
4986 :
4987 else
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991 ac_c_werror_flag=$ac_save_c_werror_flag
4992 CFLAGS="-g"
4993 cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h. */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999
5000 int
5001 main ()
5002 {
5003
5004 ;
5005 return 0;
5006 }
5007 _ACEOF
5008 rm -f conftest.$ac_objext
5009 if { (ac_try="$ac_compile"
5010 case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013 esac
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_compile") 2>conftest.er1
5016 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } && {
5022 test -z "$ac_c_werror_flag" ||
5023 test ! -s conftest.err
5024 } && test -s conftest.$ac_objext; then
5025 ac_cv_prog_cc_g=yes
5026 else
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030
5031 fi
5032
5033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 fi
5035
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 fi
5038
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 ac_c_werror_flag=$ac_save_c_werror_flag
5041 fi
5042 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5043 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5044 if test "$ac_test_CFLAGS" = set; then
5045 CFLAGS=$ac_save_CFLAGS
5046 elif test $ac_cv_prog_cc_g = yes; then
5047 if test "$GCC" = yes; then
5048 CFLAGS="-g -O2"
5049 else
5050 CFLAGS="-g"
5051 fi
5052 else
5053 if test "$GCC" = yes; then
5054 CFLAGS="-O2"
5055 else
5056 CFLAGS=
5057 fi
5058 fi
5059 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5060 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5061 if test "${ac_cv_prog_cc_c89+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064 ac_cv_prog_cc_c89=no
5065 ac_save_CC=$CC
5066 cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 #include <stdarg.h>
5073 #include <stdio.h>
5074 #include <sys/types.h>
5075 #include <sys/stat.h>
5076 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5077 struct buf { int x; };
5078 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5079 static char *e (p, i)
5080 char **p;
5081 int i;
5082 {
5083 return p[i];
5084 }
5085 static char *f (char * (*g) (char **, int), char **p, ...)
5086 {
5087 char *s;
5088 va_list v;
5089 va_start (v,p);
5090 s = g (p, va_arg (v,int));
5091 va_end (v);
5092 return s;
5093 }
5094
5095 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5096 function prototypes and stuff, but not '\xHH' hex character constants.
5097 These don't provoke an error unfortunately, instead are silently treated
5098 as 'x'. The following induces an error, until -std is added to get
5099 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5100 array size at least. It's necessary to write '\x00'==0 to get something
5101 that's true only with -std. */
5102 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5103
5104 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5105 inside strings and character constants. */
5106 #define FOO(x) 'x'
5107 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5108
5109 int test (int i, double x);
5110 struct s1 {int (*f) (int a);};
5111 struct s2 {int (*f) (double a);};
5112 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5113 int argc;
5114 char **argv;
5115 int
5116 main ()
5117 {
5118 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5119 ;
5120 return 0;
5121 }
5122 _ACEOF
5123 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5124 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5125 do
5126 CC="$ac_save_CC $ac_arg"
5127 rm -f conftest.$ac_objext
5128 if { (ac_try="$ac_compile"
5129 case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132 esac
5133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5134 (eval "$ac_compile") 2>conftest.er1
5135 ac_status=$?
5136 grep -v '^ *+' conftest.er1 >conftest.err
5137 rm -f conftest.er1
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } && {
5141 test -z "$ac_c_werror_flag" ||
5142 test ! -s conftest.err
5143 } && test -s conftest.$ac_objext; then
5144 ac_cv_prog_cc_c89=$ac_arg
5145 else
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5148
5149
5150 fi
5151
5152 rm -f core conftest.err conftest.$ac_objext
5153 test "x$ac_cv_prog_cc_c89" != "xno" && break
5154 done
5155 rm -f conftest.$ac_ext
5156 CC=$ac_save_CC
5157
5158 fi
5159 # AC_CACHE_VAL
5160 case "x$ac_cv_prog_cc_c89" in
5161 x)
5162 { echo "$as_me:$LINENO: result: none needed" >&5
5163 echo "${ECHO_T}none needed" >&6; } ;;
5164 xno)
5165 { echo "$as_me:$LINENO: result: unsupported" >&5
5166 echo "${ECHO_T}unsupported" >&6; } ;;
5167 *)
5168 CC="$CC $ac_cv_prog_cc_c89"
5169 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5170 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5171 esac
5172
5173
5174 ac_ext=c
5175 ac_cpp='$CPP $CPPFLAGS'
5176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5179
5180 depcc="$CC" am_compiler_list=
5181
5182 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5183 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5184 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5188 # We make a subdir and do the tests there. Otherwise we can end up
5189 # making bogus files that we don't know about and never remove. For
5190 # instance it was reported that on HP-UX the gcc test will end up
5191 # making a dummy file named `D' -- because `-MD' means `put the output
5192 # in D'.
5193 mkdir conftest.dir
5194 # Copy depcomp to subdir because otherwise we won't find it if we're
5195 # using a relative directory.
5196 cp "$am_depcomp" conftest.dir
5197 cd conftest.dir
5198 # We will build objects and dependencies in a subdirectory because
5199 # it helps to detect inapplicable dependency modes. For instance
5200 # both Tru64's cc and ICC support -MD to output dependencies as a
5201 # side effect of compilation, but ICC will put the dependencies in
5202 # the current directory while Tru64 will put them in the object
5203 # directory.
5204 mkdir sub
5205
5206 am_cv_CC_dependencies_compiler_type=none
5207 if test "$am_compiler_list" = ""; then
5208 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5209 fi
5210 for depmode in $am_compiler_list; do
5211 # Setup a source with many dependencies, because some compilers
5212 # like to wrap large dependency lists on column 80 (with \), and
5213 # we should not choose a depcomp mode which is confused by this.
5214 #
5215 # We need to recreate these files for each test, as the compiler may
5216 # overwrite some of them when testing with obscure command lines.
5217 # This happens at least with the AIX C compiler.
5218 : > sub/conftest.c
5219 for i in 1 2 3 4 5 6; do
5220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5222 # Solaris 8's {/usr,}/bin/sh.
5223 touch sub/conftst$i.h
5224 done
5225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5226
5227 case $depmode in
5228 nosideeffect)
5229 # after this tag, mechanisms are not by side-effect, so they'll
5230 # only be used when explicitly requested
5231 if test "x$enable_dependency_tracking" = xyes; then
5232 continue
5233 else
5234 break
5235 fi
5236 ;;
5237 none) break ;;
5238 esac
5239 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5240 # mode. It turns out that the SunPro C++ compiler does not properly
5241 # handle `-M -o', and we need to detect this.
5242 if depmode=$depmode \
5243 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5245 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5246 >/dev/null 2>conftest.err &&
5247 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5248 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5249 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5250 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5251 # icc doesn't choke on unknown options, it will just issue warnings
5252 # or remarks (even with -Werror). So we grep stderr for any message
5253 # that says an option was ignored or not supported.
5254 # When given -MP, icc 7.0 and 7.1 complain thusly:
5255 # icc: Command line warning: ignoring option '-M'; no argument required
5256 # The diagnosis changed in icc 8.0:
5257 # icc: Command line remark: option '-MP' not supported
5258 if (grep 'ignoring option' conftest.err ||
5259 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5260 am_cv_CC_dependencies_compiler_type=$depmode
5261 break
5262 fi
5263 fi
5264 done
5265
5266 cd ..
5267 rm -rf conftest.dir
5268 else
5269 am_cv_CC_dependencies_compiler_type=none
5270 fi
5271
5272 fi
5273 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5274 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5275 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5276
5277 if
5278 test "x$enable_dependency_tracking" != xno \
5279 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5280 am__fastdepCC_TRUE=
5281 am__fastdepCC_FALSE='#'
5282 else
5283 am__fastdepCC_TRUE='#'
5284 am__fastdepCC_FALSE=
5285 fi
5286
5287
5288 for ac_prog in ps
5289 do
5290 # Extract the first word of "$ac_prog", so it can be a program name with args.
5291 set dummy $ac_prog; ac_word=$2
5292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5294 if test "${ac_cv_path_PS+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297 case $PS in
5298 [\\/]* | ?:[\\/]*)
5299 ac_cv_path_PS="$PS" # Let the user override the test with a path.
5300 ;;
5301 *)
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $LPATH
5304 do
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5312 fi
5313 done
5314 done
5315 IFS=$as_save_IFS
5316
5317 ;;
5318 esac
5319 fi
5320 PS=$ac_cv_path_PS
5321 if test -n "$PS"; then
5322 { echo "$as_me:$LINENO: result: $PS" >&5
5323 echo "${ECHO_T}$PS" >&6; }
5324 else
5325 { echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6; }
5327 fi
5328
5329
5330 test -n "$PS" && break
5331 done
5332 test -n "$PS" || PS="ps"
5333
5334 for ac_prog in w
5335 do
5336 # Extract the first word of "$ac_prog", so it can be a program name with args.
5337 set dummy $ac_prog; ac_word=$2
5338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5340 if test "${ac_cv_path_W+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343 case $W in
5344 [\\/]* | ?:[\\/]*)
5345 ac_cv_path_W="$W" # Let the user override the test with a path.
5346 ;;
5347 *)
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $LPATH
5350 do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355 ac_cv_path_W="$as_dir/$ac_word$ac_exec_ext"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359 done
5360 done
5361 IFS=$as_save_IFS
5362
5363 ;;
5364 esac
5365 fi
5366 W=$ac_cv_path_W
5367 if test -n "$W"; then
5368 { echo "$as_me:$LINENO: result: $W" >&5
5369 echo "${ECHO_T}$W" >&6; }
5370 else
5371 { echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6; }
5373 fi
5374
5375
5376 test -n "$W" && break
5377 done
5378 test -n "$W" || W="w"
5379
5380 # Check whether --enable-shared was given.
5381 if test "${enable_shared+set}" = set; then
5382 enableval=$enable_shared; p=${PACKAGE-default}
5383 case $enableval in
5384 yes) enable_shared=yes ;;
5385 no) enable_shared=no ;;
5386 *)
5387 enable_shared=no
5388 # Look at the argument we got. We use all the common list separators.
5389 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5390 for pkg in $enableval; do
5391 IFS="$lt_save_ifs"
5392 if test "X$pkg" = "X$p"; then
5393 enable_shared=yes
5394 fi
5395 done
5396 IFS="$lt_save_ifs"
5397 ;;
5398 esac
5399 else
5400 enable_shared=yes
5401 fi
5402
5403
5404 # Check whether --enable-static was given.
5405 if test "${enable_static+set}" = set; then
5406 enableval=$enable_static; p=${PACKAGE-default}
5407 case $enableval in
5408 yes) enable_static=yes ;;
5409 no) enable_static=no ;;
5410 *)
5411 enable_static=no
5412 # Look at the argument we got. We use all the common list separators.
5413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5414 for pkg in $enableval; do
5415 IFS="$lt_save_ifs"
5416 if test "X$pkg" = "X$p"; then
5417 enable_static=yes
5418 fi
5419 done
5420 IFS="$lt_save_ifs"
5421 ;;
5422 esac
5423 else
5424 enable_static=yes
5425 fi
5426
5427
5428 # Check whether --enable-fast-install was given.
5429 if test "${enable_fast_install+set}" = set; then
5430 enableval=$enable_fast_install; p=${PACKAGE-default}
5431 case $enableval in
5432 yes) enable_fast_install=yes ;;
5433 no) enable_fast_install=no ;;
5434 *)
5435 enable_fast_install=no
5436 # Look at the argument we got. We use all the common list separators.
5437 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5438 for pkg in $enableval; do
5439 IFS="$lt_save_ifs"
5440 if test "X$pkg" = "X$p"; then
5441 enable_fast_install=yes
5442 fi
5443 done
5444 IFS="$lt_save_ifs"
5445 ;;
5446 esac
5447 else
5448 enable_fast_install=yes
5449 fi
5450
5451
5452 # Make sure we can run config.sub.
5453 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5454 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5455 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5456 { (exit 1); exit 1; }; }
5457
5458 { echo "$as_me:$LINENO: checking build system type" >&5
5459 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5460 if test "${ac_cv_build+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463 ac_build_alias=$build_alias
5464 test "x$ac_build_alias" = x &&
5465 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5466 test "x$ac_build_alias" = x &&
5467 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5468 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5469 { (exit 1); exit 1; }; }
5470 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5471 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5472 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5473 { (exit 1); exit 1; }; }
5474
5475 fi
5476 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5477 echo "${ECHO_T}$ac_cv_build" >&6; }
5478 case $ac_cv_build in
5479 *-*-*) ;;
5480 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5481 echo "$as_me: error: invalid value of canonical build" >&2;}
5482 { (exit 1); exit 1; }; };;
5483 esac
5484 build=$ac_cv_build
5485 ac_save_IFS=$IFS; IFS='-'
5486 set x $ac_cv_build
5487 shift
5488 build_cpu=$1
5489 build_vendor=$2
5490 shift; shift
5491 # Remember, the first character of IFS is used to create $*,
5492 # except with old shells:
5493 build_os=$*
5494 IFS=$ac_save_IFS
5495 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5496
5497
5498 { echo "$as_me:$LINENO: checking host system type" >&5
5499 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5500 if test "${ac_cv_host+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503 if test "x$host_alias" = x; then
5504 ac_cv_host=$ac_cv_build
5505 else
5506 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5507 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5508 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5509 { (exit 1); exit 1; }; }
5510 fi
5511
5512 fi
5513 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5514 echo "${ECHO_T}$ac_cv_host" >&6; }
5515 case $ac_cv_host in
5516 *-*-*) ;;
5517 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5518 echo "$as_me: error: invalid value of canonical host" >&2;}
5519 { (exit 1); exit 1; }; };;
5520 esac
5521 host=$ac_cv_host
5522 ac_save_IFS=$IFS; IFS='-'
5523 set x $ac_cv_host
5524 shift
5525 host_cpu=$1
5526 host_vendor=$2
5527 shift; shift
5528 # Remember, the first character of IFS is used to create $*,
5529 # except with old shells:
5530 host_os=$*
5531 IFS=$ac_save_IFS
5532 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5533
5534
5535 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5536 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5537 if test "${lt_cv_path_SED+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540 # Loop through the user's path and test for sed and gsed.
5541 # Then use that list of sed's as ones to test for truncation.
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for lt_ac_prog in sed gsed; do
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5550 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5551 fi
5552 done
5553 done
5554 done
5555 IFS=$as_save_IFS
5556 lt_ac_max=0
5557 lt_ac_count=0
5558 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5559 # along with /bin/sed that truncates output.
5560 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5561 test ! -f $lt_ac_sed && continue
5562 cat /dev/null > conftest.in
5563 lt_ac_count=0
5564 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5565 # Check for GNU sed and select it if it is found.
5566 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5567 lt_cv_path_SED=$lt_ac_sed
5568 break
5569 fi
5570 while true; do
5571 cat conftest.in conftest.in >conftest.tmp
5572 mv conftest.tmp conftest.in
5573 cp conftest.in conftest.nl
5574 echo >>conftest.nl
5575 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5576 cmp -s conftest.out conftest.nl || break
5577 # 10000 chars as input seems more than enough
5578 test $lt_ac_count -gt 10 && break
5579 lt_ac_count=`expr $lt_ac_count + 1`
5580 if test $lt_ac_count -gt $lt_ac_max; then
5581 lt_ac_max=$lt_ac_count
5582 lt_cv_path_SED=$lt_ac_sed
5583 fi
5584 done
5585 done
5586
5587 fi
5588
5589 SED=$lt_cv_path_SED
5590
5591 { echo "$as_me:$LINENO: result: $SED" >&5
5592 echo "${ECHO_T}$SED" >&6; }
5593
5594
5595 # Check whether --with-gnu-ld was given.
5596 if test "${with_gnu_ld+set}" = set; then
5597 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5598 else
5599 with_gnu_ld=no
5600 fi
5601
5602 ac_prog=ld
5603 if test "$GCC" = yes; then
5604 # Check if gcc -print-prog-name=ld gives a path.
5605 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5606 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5607 case $host in
5608 *-*-mingw*)
5609 # gcc leaves a trailing carriage return which upsets mingw
5610 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5611 *)
5612 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5613 esac
5614 case $ac_prog in
5615 # Accept absolute paths.
5616 [\\/]* | ?:[\\/]*)
5617 re_direlt='/[^/][^/]*/\.\./'
5618 # Canonicalize the pathname of ld
5619 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5620 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5621 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5622 done
5623 test -z "$LD" && LD="$ac_prog"
5624 ;;
5625 "")
5626 # If it fails, then pretend we aren't using GCC.
5627 ac_prog=ld
5628 ;;
5629 *)
5630 # If it is relative, then search for the first ld in PATH.
5631 with_gnu_ld=unknown
5632 ;;
5633 esac
5634 elif test "$with_gnu_ld" = yes; then
5635 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5636 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5637 else
5638 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5639 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5640 fi
5641 if test "${lt_cv_path_LD+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644 if test -z "$LD"; then
5645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5646 for ac_dir in $PATH; do
5647 IFS="$lt_save_ifs"
5648 test -z "$ac_dir" && ac_dir=.
5649 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5650 lt_cv_path_LD="$ac_dir/$ac_prog"
5651 # Check to see if the program is GNU ld. I'd rather use --version,
5652 # but apparently some variants of GNU ld only accept -v.
5653 # Break only if it was the GNU/non-GNU ld that we prefer.
5654 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5655 *GNU* | *'with BFD'*)
5656 test "$with_gnu_ld" != no && break
5657 ;;
5658 *)
5659 test "$with_gnu_ld" != yes && break
5660 ;;
5661 esac
5662 fi
5663 done
5664 IFS="$lt_save_ifs"
5665 else
5666 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5667 fi
5668 fi
5669
5670 LD="$lt_cv_path_LD"
5671 if test -n "$LD"; then
5672 { echo "$as_me:$LINENO: result: $LD" >&5
5673 echo "${ECHO_T}$LD" >&6; }
5674 else
5675 { echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6; }
5677 fi
5678 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5679 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5680 { (exit 1); exit 1; }; }
5681 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5682 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5683 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5687 case `$LD -v 2>&1 </dev/null` in
5688 *GNU* | *'with BFD'*)
5689 lt_cv_prog_gnu_ld=yes
5690 ;;
5691 *)
5692 lt_cv_prog_gnu_ld=no
5693 ;;
5694 esac
5695 fi
5696 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5697 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5698 with_gnu_ld=$lt_cv_prog_gnu_ld
5699
5700
5701 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5702 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5703 if test "${lt_cv_ld_reload_flag+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706 lt_cv_ld_reload_flag='-r'
5707 fi
5708 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5709 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5710 reload_flag=$lt_cv_ld_reload_flag
5711 case $reload_flag in
5712 "" | " "*) ;;
5713 *) reload_flag=" $reload_flag" ;;
5714 esac
5715 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5716 case $host_os in
5717 darwin*)
5718 if test "$GCC" = yes; then
5719 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5720 else
5721 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5722 fi
5723 ;;
5724 esac
5725
5726 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5727 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5728 if test "${lt_cv_path_NM+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 if test -n "$NM"; then
5732 # Let the user override the test.
5733 lt_cv_path_NM="$NM"
5734 else
5735 lt_nm_to_check="${ac_tool_prefix}nm"
5736 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5737 lt_nm_to_check="$lt_nm_to_check nm"
5738 fi
5739 for lt_tmp_nm in $lt_nm_to_check; do
5740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5741 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5742 IFS="$lt_save_ifs"
5743 test -z "$ac_dir" && ac_dir=.
5744 tmp_nm="$ac_dir/$lt_tmp_nm"
5745 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5746 # Check to see if the nm accepts a BSD-compat flag.
5747 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5748 # nm: unknown option "B" ignored
5749 # Tru64's nm complains that /dev/null is an invalid object file
5750 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5751 */dev/null* | *'Invalid file or object type'*)
5752 lt_cv_path_NM="$tmp_nm -B"
5753 break
5754 ;;
5755 *)
5756 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5757 */dev/null*)
5758 lt_cv_path_NM="$tmp_nm -p"
5759 break
5760 ;;
5761 *)
5762 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5763 continue # so that we can try to find one that supports BSD flags
5764 ;;
5765 esac
5766 ;;
5767 esac
5768 fi
5769 done
5770 IFS="$lt_save_ifs"
5771 done
5772 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5773 fi
5774 fi
5775 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5776 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5777 NM="$lt_cv_path_NM"
5778
5779 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5780 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5781 if test "${lt_cv_deplibs_check_method+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784 lt_cv_file_magic_cmd='$MAGIC_CMD'
5785 lt_cv_file_magic_test_file=
5786 lt_cv_deplibs_check_method='unknown'
5787 # Need to set the preceding variable on all platforms that support
5788 # interlibrary dependencies.
5789 # 'none' -- dependencies not supported.
5790 # `unknown' -- same as none, but documents that we really don't know.
5791 # 'pass_all' -- all dependencies passed with no checks.
5792 # 'test_compile' -- check by making test program.
5793 # 'file_magic [[regex]]' -- check by looking for files in library path
5794 # which responds to the $file_magic_cmd with a given extended regex.
5795 # If you have `file' or equivalent on your system and you're not sure
5796 # whether `pass_all' will *always* work, you probably want this one.
5797
5798 case $host_os in
5799 aix4* | aix5*)
5800 lt_cv_deplibs_check_method=pass_all
5801 ;;
5802
5803 beos*)
5804 lt_cv_deplibs_check_method=pass_all
5805 ;;
5806
5807 bsdi[45]*)
5808 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5809 lt_cv_file_magic_cmd='/usr/bin/file -L'
5810 lt_cv_file_magic_test_file=/shlib/libc.so
5811 ;;
5812
5813 cygwin*)
5814 # func_win32_libid is a shell function defined in ltmain.sh
5815 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5816 lt_cv_file_magic_cmd='func_win32_libid'
5817 ;;
5818
5819 mingw* | pw32*)
5820 # Base MSYS/MinGW do not provide the 'file' command needed by
5821 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5822 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5823 lt_cv_file_magic_cmd='$OBJDUMP -f'
5824 ;;
5825
5826 darwin* | rhapsody*)
5827 lt_cv_deplibs_check_method=pass_all
5828 ;;
5829
5830 freebsd* | kfreebsd*-gnu | dragonfly*)
5831 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5832 case $host_cpu in
5833 i*86 )
5834 # Not sure whether the presence of OpenBSD here was a mistake.
5835 # Let's accept both of them until this is cleared up.
5836 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5837 lt_cv_file_magic_cmd=/usr/bin/file
5838 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5839 ;;
5840 esac
5841 else
5842 lt_cv_deplibs_check_method=pass_all
5843 fi
5844 ;;
5845
5846 gnu*)
5847 lt_cv_deplibs_check_method=pass_all
5848 ;;
5849
5850 hpux10.20* | hpux11*)
5851 lt_cv_file_magic_cmd=/usr/bin/file
5852 case $host_cpu in
5853 ia64*)
5854 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5855 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5856 ;;
5857 hppa*64*)
5858 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]'
5859 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5860 ;;
5861 *)
5862 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5863 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5864 ;;
5865 esac
5866 ;;
5867
5868 interix3*)
5869 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5871 ;;
5872
5873 irix5* | irix6* | nonstopux*)
5874 case $LD in
5875 *-32|*"-32 ") libmagic=32-bit;;
5876 *-n32|*"-n32 ") libmagic=N32;;
5877 *-64|*"-64 ") libmagic=64-bit;;
5878 *) libmagic=never-match;;
5879 esac
5880 lt_cv_deplibs_check_method=pass_all
5881 ;;
5882
5883 # This must be Linux ELF.
5884 linux*)
5885 lt_cv_deplibs_check_method=pass_all
5886 ;;
5887
5888 netbsd*)
5889 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5891 else
5892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5893 fi
5894 ;;
5895
5896 newos6*)
5897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5898 lt_cv_file_magic_cmd=/usr/bin/file
5899 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5900 ;;
5901
5902 nto-qnx*)
5903 lt_cv_deplibs_check_method=unknown
5904 ;;
5905
5906 openbsd*)
5907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5909 else
5910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5911 fi
5912 ;;
5913
5914 osf3* | osf4* | osf5*)
5915 lt_cv_deplibs_check_method=pass_all
5916 ;;
5917
5918 solaris*)
5919 lt_cv_deplibs_check_method=pass_all
5920 ;;
5921
5922 sysv4 | sysv4.3*)
5923 case $host_vendor in
5924 motorola)
5925 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]'
5926 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5927 ;;
5928 ncr)
5929 lt_cv_deplibs_check_method=pass_all
5930 ;;
5931 sequent)
5932 lt_cv_file_magic_cmd='/bin/file'
5933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5934 ;;
5935 sni)
5936 lt_cv_file_magic_cmd='/bin/file'
5937 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5938 lt_cv_file_magic_test_file=/lib/libc.so
5939 ;;
5940 siemens)
5941 lt_cv_deplibs_check_method=pass_all
5942 ;;
5943 pc)
5944 lt_cv_deplibs_check_method=pass_all
5945 ;;
5946 esac
5947 ;;
5948
5949 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5950 lt_cv_deplibs_check_method=pass_all
5951 ;;
5952 esac
5953
5954 fi
5955 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5956 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5957 file_magic_cmd=$lt_cv_file_magic_cmd
5958 deplibs_check_method=$lt_cv_deplibs_check_method
5959 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5960
5961
5962
5963
5964 # If no C compiler was specified, use CC.
5965 LTCC=${LTCC-"$CC"}
5966
5967 # If no C compiler flags were specified, use CFLAGS.
5968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5969
5970 # Allow CC to be a program name with arguments.
5971 compiler=$CC
5972
5973 # Check whether --enable-libtool-lock was given.
5974 if test "${enable_libtool_lock+set}" = set; then
5975 enableval=$enable_libtool_lock;
5976 fi
5977
5978 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5979
5980 # Some flags need to be propagated to the compiler or linker for good
5981 # libtool support.
5982 case $host in
5983 ia64-*-hpux*)
5984 # Find out which ABI we are using.
5985 echo 'int i;' > conftest.$ac_ext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; then
5991 case `/usr/bin/file conftest.$ac_objext` in
5992 *ELF-32*)
5993 HPUX_IA64_MODE="32"
5994 ;;
5995 *ELF-64*)
5996 HPUX_IA64_MODE="64"
5997 ;;
5998 esac
5999 fi
6000 rm -rf conftest*
6001 ;;
6002 *-*-irix6*)
6003 # Find out which ABI we are using.
6004 echo '#line 6004 "configure"' > conftest.$ac_ext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006 (eval $ac_compile) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; then
6010 if test "$lt_cv_prog_gnu_ld" = yes; then
6011 case `/usr/bin/file conftest.$ac_objext` in
6012 *32-bit*)
6013 LD="${LD-ld} -melf32bsmip"
6014 ;;
6015 *N32*)
6016 LD="${LD-ld} -melf32bmipn32"
6017 ;;
6018 *64-bit*)
6019 LD="${LD-ld} -melf64bmip"
6020 ;;
6021 esac
6022 else
6023 case `/usr/bin/file conftest.$ac_objext` in
6024 *32-bit*)
6025 LD="${LD-ld} -32"
6026 ;;
6027 *N32*)
6028 LD="${LD-ld} -n32"
6029 ;;
6030 *64-bit*)
6031 LD="${LD-ld} -64"
6032 ;;
6033 esac
6034 fi
6035 fi
6036 rm -rf conftest*
6037 ;;
6038
6039 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6040 # Find out which ABI we are using.
6041 echo 'int i;' > conftest.$ac_ext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6043 (eval $ac_compile) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; then
6047 case `/usr/bin/file conftest.o` in
6048 *32-bit*)
6049 case $host in
6050 x86_64-*linux*)
6051 LD="${LD-ld} -m elf_i386"
6052 ;;
6053 ppc64-*linux*|powerpc64-*linux*)
6054 LD="${LD-ld} -m elf32ppclinux"
6055 ;;
6056 s390x-*linux*)
6057 LD="${LD-ld} -m elf_s390"
6058 ;;
6059 sparc64-*linux*)
6060 LD="${LD-ld} -m elf32_sparc"
6061 ;;
6062 esac
6063 ;;
6064 *64-bit*)
6065 case $host in
6066 x86_64-*linux*)
6067 LD="${LD-ld} -m elf_x86_64"
6068 ;;
6069 ppc*-*linux*|powerpc*-*linux*)
6070 LD="${LD-ld} -m elf64ppc"
6071 ;;
6072 s390*-*linux*)
6073 LD="${LD-ld} -m elf64_s390"
6074 ;;
6075 sparc*-*linux*)
6076 LD="${LD-ld} -m elf64_sparc"
6077 ;;
6078 esac
6079 ;;
6080 esac
6081 fi
6082 rm -rf conftest*
6083 ;;
6084
6085 *-*-sco3.2v5*)
6086 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6087 SAVE_CFLAGS="$CFLAGS"
6088 CFLAGS="$CFLAGS -belf"
6089 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6090 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6091 if test "${lt_cv_cc_needs_belf+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094 ac_ext=c
6095 ac_cpp='$CPP $CPPFLAGS'
6096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6099
6100 cat >conftest.$ac_ext <<_ACEOF
6101 /* confdefs.h. */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6106
6107 int
6108 main ()
6109 {
6110
6111 ;
6112 return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (ac_try="$ac_link"
6117 case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120 esac
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_link") 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } && {
6129 test -z "$ac_c_werror_flag" ||
6130 test ! -s conftest.err
6131 } && test -s conftest$ac_exeext &&
6132 $as_test_x conftest$ac_exeext; then
6133 lt_cv_cc_needs_belf=yes
6134 else
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6137
6138 lt_cv_cc_needs_belf=no
6139 fi
6140
6141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6142 conftest$ac_exeext conftest.$ac_ext
6143 ac_ext=c
6144 ac_cpp='$CPP $CPPFLAGS'
6145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6148
6149 fi
6150 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6151 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6152 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6153 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6154 CFLAGS="$SAVE_CFLAGS"
6155 fi
6156 ;;
6157 sparc*-*solaris*)
6158 # Find out which ABI we are using.
6159 echo 'int i;' > conftest.$ac_ext
6160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6161 (eval $ac_compile) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; then
6165 case `/usr/bin/file conftest.o` in
6166 *64-bit*)
6167 case $lt_cv_prog_gnu_ld in
6168 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6169 *) LD="${LD-ld} -64" ;;
6170 esac
6171 ;;
6172 esac
6173 fi
6174 rm -rf conftest*
6175 ;;
6176
6177
6178 esac
6179
6180 need_locks="$enable_libtool_lock"
6181
6182
6183
6184 for ac_header in dlfcn.h
6185 do
6186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 fi
6193 ac_res=`eval echo '${'$as_ac_Header'}'`
6194 { echo "$as_me:$LINENO: result: $ac_res" >&5
6195 echo "${ECHO_T}$ac_res" >&6; }
6196 else
6197 # Is the header compilable?
6198 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6200 cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h. */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206 $ac_includes_default
6207 #include <$ac_header>
6208 _ACEOF
6209 rm -f conftest.$ac_objext
6210 if { (ac_try="$ac_compile"
6211 case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6214 esac
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_compile") 2>conftest.er1
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } && {
6223 test -z "$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6225 } && test -s conftest.$ac_objext; then
6226 ac_header_compiler=yes
6227 else
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6230
6231 ac_header_compiler=no
6232 fi
6233
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6236 echo "${ECHO_T}$ac_header_compiler" >&6; }
6237
6238 # Is the header present?
6239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6241 cat >conftest.$ac_ext <<_ACEOF
6242 /* confdefs.h. */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 #include <$ac_header>
6248 _ACEOF
6249 if { (ac_try="$ac_cpp conftest.$ac_ext"
6250 case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6253 esac
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6256 ac_status=$?
6257 grep -v '^ *+' conftest.er1 >conftest.err
6258 rm -f conftest.er1
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } >/dev/null && {
6262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6263 test ! -s conftest.err
6264 }; then
6265 ac_header_preproc=yes
6266 else
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 ac_header_preproc=no
6271 fi
6272
6273 rm -f conftest.err conftest.$ac_ext
6274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6275 echo "${ECHO_T}$ac_header_preproc" >&6; }
6276
6277 # So? What about this header?
6278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6279 yes:no: )
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6284 ac_header_preproc=yes
6285 ;;
6286 no:yes:* )
6287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6299 ( cat <<\_ASBOX
6300 ## -------------------------------------------------- ##
6301 ## Report this to courier-users@lists.sourceforge.net ##
6302 ## -------------------------------------------------- ##
6303 _ASBOX
6304 ) | sed "s/^/$as_me: WARNING: /" >&2
6305 ;;
6306 esac
6307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 eval "$as_ac_Header=\$ac_header_preproc"
6313 fi
6314 ac_res=`eval echo '${'$as_ac_Header'}'`
6315 { echo "$as_me:$LINENO: result: $ac_res" >&5
6316 echo "${ECHO_T}$ac_res" >&6; }
6317
6318 fi
6319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6320 cat >>confdefs.h <<_ACEOF
6321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6322 _ACEOF
6323
6324 fi
6325
6326 done
6327
6328 ac_ext=cpp
6329 ac_cpp='$CXXCPP $CPPFLAGS'
6330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6333 if test -z "$CXX"; then
6334 if test -n "$CCC"; then
6335 CXX=$CCC
6336 else
6337 if test -n "$ac_tool_prefix"; then
6338 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6339 do
6340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344 if test "${ac_cv_prog_CXX+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347 if test -n "$CXX"; then
6348 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361 done
6362 done
6363 IFS=$as_save_IFS
6364
6365 fi
6366 fi
6367 CXX=$ac_cv_prog_CXX
6368 if test -n "$CXX"; then
6369 { echo "$as_me:$LINENO: result: $CXX" >&5
6370 echo "${ECHO_T}$CXX" >&6; }
6371 else
6372 { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6374 fi
6375
6376
6377 test -n "$CXX" && break
6378 done
6379 fi
6380 if test -z "$CXX"; then
6381 ac_ct_CXX=$CXX
6382 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6383 do
6384 # Extract the first word of "$ac_prog", so it can be a program name with args.
6385 set dummy $ac_prog; ac_word=$2
6386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 if test -n "$ac_ct_CXX"; then
6392 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_ac_ct_CXX="$ac_prog"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6412 if test -n "$ac_ct_CXX"; then
6413 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6414 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6415 else
6416 { echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6; }
6418 fi
6419
6420
6421 test -n "$ac_ct_CXX" && break
6422 done
6423
6424 if test "x$ac_ct_CXX" = x; then
6425 CXX="g++"
6426 else
6427 case $cross_compiling:$ac_tool_warned in
6428 yes:)
6429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6430 whose name does not start with the host triplet. If you think this
6431 configuration is useful to you, please write to autoconf@gnu.org." >&5
6432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6433 whose name does not start with the host triplet. If you think this
6434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6435 ac_tool_warned=yes ;;
6436 esac
6437 CXX=$ac_ct_CXX
6438 fi
6439 fi
6440
6441 fi
6442 fi
6443 # Provide some information about the compiler.
6444 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6445 ac_compiler=`set X $ac_compile; echo $2`
6446 { (ac_try="$ac_compiler --version >&5"
6447 case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compiler --version >&5") 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }
6456 { (ac_try="$ac_compiler -v >&5"
6457 case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6460 esac
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_compiler -v >&5") 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }
6466 { (ac_try="$ac_compiler -V >&5"
6467 case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470 esac
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compiler -V >&5") 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }
6476
6477 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6478 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6479 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h. */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488
6489 int
6490 main ()
6491 {
6492 #ifndef __GNUC__
6493 choke me
6494 #endif
6495
6496 ;
6497 return 0;
6498 }
6499 _ACEOF
6500 rm -f conftest.$ac_objext
6501 if { (ac_try="$ac_compile"
6502 case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505 esac
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compile") 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } && {
6514 test -z "$ac_cxx_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest.$ac_objext; then
6517 ac_compiler_gnu=yes
6518 else
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6521
6522 ac_compiler_gnu=no
6523 fi
6524
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6527
6528 fi
6529 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6530 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6531 GXX=`test $ac_compiler_gnu = yes && echo yes`
6532 ac_test_CXXFLAGS=${CXXFLAGS+set}
6533 ac_save_CXXFLAGS=$CXXFLAGS
6534 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6535 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6536 if test "${ac_cv_prog_cxx_g+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6540 ac_cxx_werror_flag=yes
6541 ac_cv_prog_cxx_g=no
6542 CXXFLAGS="-g"
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h. */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549
6550 int
6551 main ()
6552 {
6553
6554 ;
6555 return 0;
6556 }
6557 _ACEOF
6558 rm -f conftest.$ac_objext
6559 if { (ac_try="$ac_compile"
6560 case "(($ac_try" in
6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562 *) ac_try_echo=$ac_try;;
6563 esac
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_compile") 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } && {
6572 test -z "$ac_cxx_werror_flag" ||
6573 test ! -s conftest.err
6574 } && test -s conftest.$ac_objext; then
6575 ac_cv_prog_cxx_g=yes
6576 else
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6579
6580 CXXFLAGS=""
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587
6588 int
6589 main ()
6590 {
6591
6592 ;
6593 return 0;
6594 }
6595 _ACEOF
6596 rm -f conftest.$ac_objext
6597 if { (ac_try="$ac_compile"
6598 case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601 esac
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_compile") 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_cxx_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest.$ac_objext; then
6613 :
6614 else
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6619 CXXFLAGS="-g"
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h. */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626
6627 int
6628 main ()
6629 {
6630
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6637 case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640 esac
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_compile") 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } && {
6649 test -z "$ac_cxx_werror_flag" ||
6650 test ! -s conftest.err
6651 } && test -s conftest.$ac_objext; then
6652 ac_cv_prog_cxx_g=yes
6653 else
6654 echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6656
6657
6658 fi
6659
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 fi
6662
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 fi
6665
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6668 fi
6669 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6670 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6671 if test "$ac_test_CXXFLAGS" = set; then
6672 CXXFLAGS=$ac_save_CXXFLAGS
6673 elif test $ac_cv_prog_cxx_g = yes; then
6674 if test "$GXX" = yes; then
6675 CXXFLAGS="-g -O2"
6676 else
6677 CXXFLAGS="-g"
6678 fi
6679 else
6680 if test "$GXX" = yes; then
6681 CXXFLAGS="-O2"
6682 else
6683 CXXFLAGS=
6684 fi
6685 fi
6686 ac_ext=cpp
6687 ac_cpp='$CXXCPP $CPPFLAGS'
6688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6691
6692 depcc="$CXX" am_compiler_list=
6693
6694 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6695 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6696 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6700 # We make a subdir and do the tests there. Otherwise we can end up
6701 # making bogus files that we don't know about and never remove. For
6702 # instance it was reported that on HP-UX the gcc test will end up
6703 # making a dummy file named `D' -- because `-MD' means `put the output
6704 # in D'.
6705 mkdir conftest.dir
6706 # Copy depcomp to subdir because otherwise we won't find it if we're
6707 # using a relative directory.
6708 cp "$am_depcomp" conftest.dir
6709 cd conftest.dir
6710 # We will build objects and dependencies in a subdirectory because
6711 # it helps to detect inapplicable dependency modes. For instance
6712 # both Tru64's cc and ICC support -MD to output dependencies as a
6713 # side effect of compilation, but ICC will put the dependencies in
6714 # the current directory while Tru64 will put them in the object
6715 # directory.
6716 mkdir sub
6717
6718 am_cv_CXX_dependencies_compiler_type=none
6719 if test "$am_compiler_list" = ""; then
6720 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6721 fi
6722 for depmode in $am_compiler_list; do
6723 # Setup a source with many dependencies, because some compilers
6724 # like to wrap large dependency lists on column 80 (with \), and
6725 # we should not choose a depcomp mode which is confused by this.
6726 #
6727 # We need to recreate these files for each test, as the compiler may
6728 # overwrite some of them when testing with obscure command lines.
6729 # This happens at least with the AIX C compiler.
6730 : > sub/conftest.c
6731 for i in 1 2 3 4 5 6; do
6732 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6733 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6734 # Solaris 8's {/usr,}/bin/sh.
6735 touch sub/conftst$i.h
6736 done
6737 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6738
6739 case $depmode in
6740 nosideeffect)
6741 # after this tag, mechanisms are not by side-effect, so they'll
6742 # only be used when explicitly requested
6743 if test "x$enable_dependency_tracking" = xyes; then
6744 continue
6745 else
6746 break
6747 fi
6748 ;;
6749 none) break ;;
6750 esac
6751 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6752 # mode. It turns out that the SunPro C++ compiler does not properly
6753 # handle `-M -o', and we need to detect this.
6754 if depmode=$depmode \
6755 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6756 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6757 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6758 >/dev/null 2>conftest.err &&
6759 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6760 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6761 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6762 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6763 # icc doesn't choke on unknown options, it will just issue warnings
6764 # or remarks (even with -Werror). So we grep stderr for any message
6765 # that says an option was ignored or not supported.
6766 # When given -MP, icc 7.0 and 7.1 complain thusly:
6767 # icc: Command line warning: ignoring option '-M'; no argument required
6768 # The diagnosis changed in icc 8.0:
6769 # icc: Command line remark: option '-MP' not supported
6770 if (grep 'ignoring option' conftest.err ||
6771 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6772 am_cv_CXX_dependencies_compiler_type=$depmode
6773 break
6774 fi
6775 fi
6776 done
6777
6778 cd ..
6779 rm -rf conftest.dir
6780 else
6781 am_cv_CXX_dependencies_compiler_type=none
6782 fi
6783
6784 fi
6785 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6786 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6787 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6788
6789 if
6790 test "x$enable_dependency_tracking" != xno \
6791 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6792 am__fastdepCXX_TRUE=
6793 am__fastdepCXX_FALSE='#'
6794 else
6795 am__fastdepCXX_TRUE='#'
6796 am__fastdepCXX_FALSE=
6797 fi
6798
6799
6800
6801
6802 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6803 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6804 (test "X$CXX" != "Xg++"))) ; then
6805 ac_ext=cpp
6806 ac_cpp='$CXXCPP $CPPFLAGS'
6807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6810 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6811 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6812 if test -z "$CXXCPP"; then
6813 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816 # Double quotes because CXXCPP needs to be expanded
6817 for CXXCPP in "$CXX -E" "/lib/cpp"
6818 do
6819 ac_preproc_ok=false
6820 for ac_cxx_preproc_warn_flag in '' yes
6821 do
6822 # Use a header file that comes with gcc, so configuring glibc
6823 # with a fresh cross-compiler works.
6824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6825 # <limits.h> exists even on freestanding compilers.
6826 # On the NeXT, cc -E runs the code through the compiler's parser,
6827 # not just through cpp. "Syntax error" is here to catch this case.
6828 cat >conftest.$ac_ext <<_ACEOF
6829 /* confdefs.h. */
6830 _ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h. */
6834 #ifdef __STDC__
6835 # include <limits.h>
6836 #else
6837 # include <assert.h>
6838 #endif
6839 Syntax error
6840 _ACEOF
6841 if { (ac_try="$ac_cpp conftest.$ac_ext"
6842 case "(($ac_try" in
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6845 esac
6846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6848 ac_status=$?
6849 grep -v '^ *+' conftest.er1 >conftest.err
6850 rm -f conftest.er1
6851 cat conftest.err >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } >/dev/null && {
6854 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6855 test ! -s conftest.err
6856 }; then
6857 :
6858 else
6859 echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6861
6862 # Broken: fails on valid input.
6863 continue
6864 fi
6865
6866 rm -f conftest.err conftest.$ac_ext
6867
6868 # OK, works on sane cases. Now check whether nonexistent headers
6869 # can be detected and how.
6870 cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h. */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6876 #include <ac_nonexistent.h>
6877 _ACEOF
6878 if { (ac_try="$ac_cpp conftest.$ac_ext"
6879 case "(($ac_try" in
6880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6881 *) ac_try_echo=$ac_try;;
6882 esac
6883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6885 ac_status=$?
6886 grep -v '^ *+' conftest.er1 >conftest.err
6887 rm -f conftest.er1
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } >/dev/null && {
6891 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6892 test ! -s conftest.err
6893 }; then
6894 # Broken: success on invalid input.
6895 continue
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6899
6900 # Passes both tests.
6901 ac_preproc_ok=:
6902 break
6903 fi
6904
6905 rm -f conftest.err conftest.$ac_ext
6906
6907 done
6908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6909 rm -f conftest.err conftest.$ac_ext
6910 if $ac_preproc_ok; then
6911 break
6912 fi
6913
6914 done
6915 ac_cv_prog_CXXCPP=$CXXCPP
6916
6917 fi
6918 CXXCPP=$ac_cv_prog_CXXCPP
6919 else
6920 ac_cv_prog_CXXCPP=$CXXCPP
6921 fi
6922 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6923 echo "${ECHO_T}$CXXCPP" >&6; }
6924 ac_preproc_ok=false
6925 for ac_cxx_preproc_warn_flag in '' yes
6926 do
6927 # Use a header file that comes with gcc, so configuring glibc
6928 # with a fresh cross-compiler works.
6929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6930 # <limits.h> exists even on freestanding compilers.
6931 # On the NeXT, cc -E runs the code through the compiler's parser,
6932 # not just through cpp. "Syntax error" is here to catch this case.
6933 cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h. */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6939 #ifdef __STDC__
6940 # include <limits.h>
6941 #else
6942 # include <assert.h>
6943 #endif
6944 Syntax error
6945 _ACEOF
6946 if { (ac_try="$ac_cpp conftest.$ac_ext"
6947 case "(($ac_try" in
6948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949 *) ac_try_echo=$ac_try;;
6950 esac
6951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6953 ac_status=$?
6954 grep -v '^ *+' conftest.er1 >conftest.err
6955 rm -f conftest.er1
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } >/dev/null && {
6959 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6960 test ! -s conftest.err
6961 }; then
6962 :
6963 else
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967 # Broken: fails on valid input.
6968 continue
6969 fi
6970
6971 rm -f conftest.err conftest.$ac_ext
6972
6973 # OK, works on sane cases. Now check whether nonexistent headers
6974 # can be detected and how.
6975 cat >conftest.$ac_ext <<_ACEOF
6976 /* confdefs.h. */
6977 _ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h. */
6981 #include <ac_nonexistent.h>
6982 _ACEOF
6983 if { (ac_try="$ac_cpp conftest.$ac_ext"
6984 case "(($ac_try" in
6985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986 *) ac_try_echo=$ac_try;;
6987 esac
6988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } >/dev/null && {
6996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6997 test ! -s conftest.err
6998 }; then
6999 # Broken: success on invalid input.
7000 continue
7001 else
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7004
7005 # Passes both tests.
7006 ac_preproc_ok=:
7007 break
7008 fi
7009
7010 rm -f conftest.err conftest.$ac_ext
7011
7012 done
7013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7014 rm -f conftest.err conftest.$ac_ext
7015 if $ac_preproc_ok; then
7016 :
7017 else
7018 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7019 See \`config.log' for more details." >&5
7020 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7021 See \`config.log' for more details." >&2;}
7022 { (exit 1); exit 1; }; }
7023 fi
7024
7025 ac_ext=cpp
7026 ac_cpp='$CXXCPP $CPPFLAGS'
7027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7030
7031 fi
7032
7033
7034 ac_ext=f
7035 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7036 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7038 if test -n "$ac_tool_prefix"; then
7039 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
7040 do
7041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_prog_F77+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048 if test -n "$F77"; then
7049 ac_cv_prog_F77="$F77" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066 fi
7067 fi
7068 F77=$ac_cv_prog_F77
7069 if test -n "$F77"; then
7070 { echo "$as_me:$LINENO: result: $F77" >&5
7071 echo "${ECHO_T}$F77" >&6; }
7072 else
7073 { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7075 fi
7076
7077
7078 test -n "$F77" && break
7079 done
7080 fi
7081 if test -z "$F77"; then
7082 ac_ct_F77=$F77
7083 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
7084 do
7085 # Extract the first word of "$ac_prog", so it can be a program name with args.
7086 set dummy $ac_prog; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092 if test -n "$ac_ct_F77"; then
7093 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_prog_ac_ct_F77="$ac_prog"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7105 fi
7106 done
7107 done
7108 IFS=$as_save_IFS
7109
7110 fi
7111 fi
7112 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7113 if test -n "$ac_ct_F77"; then
7114 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7115 echo "${ECHO_T}$ac_ct_F77" >&6; }
7116 else
7117 { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7119 fi
7120
7121
7122 test -n "$ac_ct_F77" && break
7123 done
7124
7125 if test "x$ac_ct_F77" = x; then
7126 F77=""
7127 else
7128 case $cross_compiling:$ac_tool_warned in
7129 yes:)
7130 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7131 whose name does not start with the host triplet. If you think this
7132 configuration is useful to you, please write to autoconf@gnu.org." >&5
7133 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7134 whose name does not start with the host triplet. If you think this
7135 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7136 ac_tool_warned=yes ;;
7137 esac
7138 F77=$ac_ct_F77
7139 fi
7140 fi
7141
7142
7143 # Provide some information about the compiler.
7144 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7145 ac_compiler=`set X $ac_compile; echo $2`
7146 { (ac_try="$ac_compiler --version >&5"
7147 case "(($ac_try" in
7148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7149 *) ac_try_echo=$ac_try;;
7150 esac
7151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7152 (eval "$ac_compiler --version >&5") 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }
7156 { (ac_try="$ac_compiler -v >&5"
7157 case "(($ac_try" in
7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159 *) ac_try_echo=$ac_try;;
7160 esac
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_compiler -v >&5") 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }
7166 { (ac_try="$ac_compiler -V >&5"
7167 case "(($ac_try" in
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7170 esac
7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_compiler -V >&5") 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }
7176 rm -f a.out
7177
7178 # If we don't use `.F' as extension, the preprocessor is not run on the
7179 # input file. (Note that this only needs to work for GNU compilers.)
7180 ac_save_ext=$ac_ext
7181 ac_ext=F
7182 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7183 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7184 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187 cat >conftest.$ac_ext <<_ACEOF
7188 program main
7189 #ifndef __GNUC__
7190 choke me
7191 #endif
7192
7193 end
7194 _ACEOF
7195 rm -f conftest.$ac_objext
7196 if { (ac_try="$ac_compile"
7197 case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200 esac
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_compile") 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } && {
7209 test -z "$ac_f77_werror_flag" ||
7210 test ! -s conftest.err
7211 } && test -s conftest.$ac_objext; then
7212 ac_compiler_gnu=yes
7213 else
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7216
7217 ac_compiler_gnu=no
7218 fi
7219
7220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7222
7223 fi
7224 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7225 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7226 ac_ext=$ac_save_ext
7227 ac_test_FFLAGS=${FFLAGS+set}
7228 ac_save_FFLAGS=$FFLAGS
7229 FFLAGS=
7230 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7231 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7232 if test "${ac_cv_prog_f77_g+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235 FFLAGS=-g
7236 cat >conftest.$ac_ext <<_ACEOF
7237 program main
7238
7239 end
7240 _ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (ac_try="$ac_compile"
7243 case "(($ac_try" in
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7246 esac
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_compile") 2>conftest.er1
7249 ac_status=$?
7250 grep -v '^ *+' conftest.er1 >conftest.err
7251 rm -f conftest.er1
7252 cat conftest.err >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } && {
7255 test -z "$ac_f77_werror_flag" ||
7256 test ! -s conftest.err
7257 } && test -s conftest.$ac_objext; then
7258 ac_cv_prog_f77_g=yes
7259 else
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7262
7263 ac_cv_prog_f77_g=no
7264 fi
7265
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267
7268 fi
7269 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7270 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7271 if test "$ac_test_FFLAGS" = set; then
7272 FFLAGS=$ac_save_FFLAGS
7273 elif test $ac_cv_prog_f77_g = yes; then
7274 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7275 FFLAGS="-g -O2"
7276 else
7277 FFLAGS="-g"
7278 fi
7279 else
7280 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7281 FFLAGS="-O2"
7282 else
7283 FFLAGS=
7284 fi
7285 fi
7286
7287 G77=`test $ac_compiler_gnu = yes && echo yes`
7288 ac_ext=c
7289 ac_cpp='$CPP $CPPFLAGS'
7290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7293
7294
7295
7296 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7297
7298 # find the maximum length of command line arguments
7299 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7300 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7301 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304 i=0
7305 teststring="ABCD"
7306
7307 case $build_os in
7308 msdosdjgpp*)
7309 # On DJGPP, this test can blow up pretty badly due to problems in libc
7310 # (any single argument exceeding 2000 bytes causes a buffer overrun
7311 # during glob expansion). Even if it were fixed, the result of this
7312 # check would be larger than it should be.
7313 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7314 ;;
7315
7316 gnu*)
7317 # Under GNU Hurd, this test is not required because there is
7318 # no limit to the length of command line arguments.
7319 # Libtool will interpret -1 as no limit whatsoever
7320 lt_cv_sys_max_cmd_len=-1;
7321 ;;
7322
7323 cygwin* | mingw*)
7324 # On Win9x/ME, this test blows up -- it succeeds, but takes
7325 # about 5 minutes as the teststring grows exponentially.
7326 # Worse, since 9x/ME are not pre-emptively multitasking,
7327 # you end up with a "frozen" computer, even though with patience
7328 # the test eventually succeeds (with a max line length of 256k).
7329 # Instead, let's just punt: use the minimum linelength reported by
7330 # all of the supported platforms: 8192 (on NT/2K/XP).
7331 lt_cv_sys_max_cmd_len=8192;
7332 ;;
7333
7334 amigaos*)
7335 # On AmigaOS with pdksh, this test takes hours, literally.
7336 # So we just punt and use a minimum line length of 8192.
7337 lt_cv_sys_max_cmd_len=8192;
7338 ;;
7339
7340 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7341 # This has been around since 386BSD, at least. Likely further.
7342 if test -x /sbin/sysctl; then
7343 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7344 elif test -x /usr/sbin/sysctl; then
7345 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7346 else
7347 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7348 fi
7349 # And add a safety zone
7350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7352 ;;
7353
7354 interix*)
7355 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7356 lt_cv_sys_max_cmd_len=196608
7357 ;;
7358
7359 osf*)
7360 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7361 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7362 # nice to cause kernel panics so lets avoid the loop below.
7363 # First set a reasonable default.
7364 lt_cv_sys_max_cmd_len=16384
7365 #
7366 if test -x /sbin/sysconfig; then
7367 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7368 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7369 esac
7370 fi
7371 ;;
7372 sco3.2v5*)
7373 lt_cv_sys_max_cmd_len=102400
7374 ;;
7375 sysv5* | sco5v6* | sysv4.2uw2*)
7376 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7377 if test -n "$kargmax"; then
7378 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7379 else
7380 lt_cv_sys_max_cmd_len=32768
7381 fi
7382 ;;
7383 *)
7384 # If test is not a shell built-in, we'll probably end up computing a
7385 # maximum length that is only half of the actual maximum length, but
7386 # we can't tell.
7387 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7388 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7389 = "XX$teststring") >/dev/null 2>&1 &&
7390 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7391 lt_cv_sys_max_cmd_len=$new_result &&
7392 test $i != 17 # 1/2 MB should be enough
7393 do
7394 i=`expr $i + 1`
7395 teststring=$teststring$teststring
7396 done
7397 teststring=
7398 # Add a significant safety factor because C++ compilers can tack on massive
7399 # amounts of additional arguments before passing them to the linker.
7400 # It appears as though 1/2 is a usable value.
7401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7402 ;;
7403 esac
7404
7405 fi
7406
7407 if test -n $lt_cv_sys_max_cmd_len ; then
7408 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7409 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7410 else
7411 { echo "$as_me:$LINENO: result: none" >&5
7412 echo "${ECHO_T}none" >&6; }
7413 fi
7414
7415
7416
7417
7418 # Check for command to grab the raw symbol name followed by C symbol from nm.
7419 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7420 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7421 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424
7425 # These are sane defaults that work on at least a few old systems.
7426 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7427
7428 # Character class describing NM global symbol codes.
7429 symcode='[BCDEGRST]'
7430
7431 # Regexp to match symbols that can be accessed directly from C.
7432 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7433
7434 # Transform an extracted symbol line into a proper C declaration
7435 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7436
7437 # Transform an extracted symbol line into symbol name and symbol address
7438 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'"
7439
7440 # Define system-specific variables.
7441 case $host_os in
7442 aix*)
7443 symcode='[BCDT]'
7444 ;;
7445 cygwin* | mingw* | pw32*)
7446 symcode='[ABCDGISTW]'
7447 ;;
7448 hpux*) # Its linker distinguishes data from code symbols
7449 if test "$host_cpu" = ia64; then
7450 symcode='[ABCDEGRST]'
7451 fi
7452 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7453 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'"
7454 ;;
7455 linux*)
7456 if test "$host_cpu" = ia64; then
7457 symcode='[ABCDGIRSTW]'
7458 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7459 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'"
7460 fi
7461 ;;
7462 irix* | nonstopux*)
7463 symcode='[BCDEGRST]'
7464 ;;
7465 osf*)
7466 symcode='[BCDEGQRST]'
7467 ;;
7468 solaris*)
7469 symcode='[BDRT]'
7470 ;;
7471 sco3.2v5*)
7472 symcode='[DT]'
7473 ;;
7474 sysv4.2uw2*)
7475 symcode='[DT]'
7476 ;;
7477 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7478 symcode='[ABDT]'
7479 ;;
7480 sysv4)
7481 symcode='[DFNSTU]'
7482 ;;
7483 esac
7484
7485 # Handle CRLF in mingw tool chain
7486 opt_cr=
7487 case $build_os in
7488 mingw*)
7489 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7490 ;;
7491 esac
7492
7493 # If we're using GNU nm, then use its standard symbol codes.
7494 case `$NM -V 2>&1` in
7495 *GNU* | *'with BFD'*)
7496 symcode='[ABCDGIRSTW]' ;;
7497 esac
7498
7499 # Try without a prefix undercore, then with it.
7500 for ac_symprfx in "" "_"; do
7501
7502 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7503 symxfrm="\\1 $ac_symprfx\\2 \\2"
7504
7505 # Write the raw and C identifiers.
7506 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7507
7508 # Check to see that the pipe works correctly.
7509 pipe_works=no
7510
7511 rm -f conftest*
7512 cat > conftest.$ac_ext <<EOF
7513 #ifdef __cplusplus
7514 extern "C" {
7515 #endif
7516 char nm_test_var;
7517 void nm_test_func(){}
7518 #ifdef __cplusplus
7519 }
7520 #endif
7521 int main(){nm_test_var='a';nm_test_func();return(0);}
7522 EOF
7523
7524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7525 (eval $ac_compile) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; then
7529 # Now try to grab the symbols.
7530 nlist=conftest.nm
7531 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7532 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7533 ac_status=$?
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } && test -s "$nlist"; then
7536 # Try sorting and uniquifying the output.
7537 if sort "$nlist" | uniq > "$nlist"T; then
7538 mv -f "$nlist"T "$nlist"
7539 else
7540 rm -f "$nlist"T
7541 fi
7542
7543 # Make sure that we snagged all the symbols we need.
7544 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7545 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7546 cat <<EOF > conftest.$ac_ext
7547 #ifdef __cplusplus
7548 extern "C" {
7549 #endif
7550
7551 EOF
7552 # Now generate the symbol file.
7553 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7554
7555 cat <<EOF >> conftest.$ac_ext
7556 #if defined (__STDC__) && __STDC__
7557 # define lt_ptr_t void *
7558 #else
7559 # define lt_ptr_t char *
7560 # define const
7561 #endif
7562
7563 /* The mapping between symbol names and symbols. */
7564 const struct {
7565 const char *name;
7566 lt_ptr_t address;
7567 }
7568 lt_preloaded_symbols[] =
7569 {
7570 EOF
7571 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7572 cat <<\EOF >> conftest.$ac_ext
7573 {0, (lt_ptr_t) 0}
7574 };
7575
7576 #ifdef __cplusplus
7577 }
7578 #endif
7579 EOF
7580 # Now try linking the two files.
7581 mv conftest.$ac_objext conftstm.$ac_objext
7582 lt_save_LIBS="$LIBS"
7583 lt_save_CFLAGS="$CFLAGS"
7584 LIBS="conftstm.$ac_objext"
7585 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7587 (eval $ac_link) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7591 pipe_works=yes
7592 fi
7593 LIBS="$lt_save_LIBS"
7594 CFLAGS="$lt_save_CFLAGS"
7595 else
7596 echo "cannot find nm_test_func in $nlist" >&5
7597 fi
7598 else
7599 echo "cannot find nm_test_var in $nlist" >&5
7600 fi
7601 else
7602 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7603 fi
7604 else
7605 echo "$progname: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7607 fi
7608 rm -f conftest* conftst*
7609
7610 # Do not use the global_symbol_pipe unless it works.
7611 if test "$pipe_works" = yes; then
7612 break
7613 else
7614 lt_cv_sys_global_symbol_pipe=
7615 fi
7616 done
7617
7618 fi
7619
7620 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7621 lt_cv_sys_global_symbol_to_cdecl=
7622 fi
7623 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7624 { echo "$as_me:$LINENO: result: failed" >&5
7625 echo "${ECHO_T}failed" >&6; }
7626 else
7627 { echo "$as_me:$LINENO: result: ok" >&5
7628 echo "${ECHO_T}ok" >&6; }
7629 fi
7630
7631 { echo "$as_me:$LINENO: checking for objdir" >&5
7632 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7633 if test "${lt_cv_objdir+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636 rm -f .libs 2>/dev/null
7637 mkdir .libs 2>/dev/null
7638 if test -d .libs; then
7639 lt_cv_objdir=.libs
7640 else
7641 # MS-DOS does not allow filenames that begin with a dot.
7642 lt_cv_objdir=_libs
7643 fi
7644 rmdir .libs 2>/dev/null
7645 fi
7646 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7647 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7648 objdir=$lt_cv_objdir
7649
7650
7651
7652
7653
7654 case $host_os in
7655 aix3*)
7656 # AIX sometimes has problems with the GCC collect2 program. For some
7657 # reason, if we set the COLLECT_NAMES environment variable, the problems
7658 # vanish in a puff of smoke.
7659 if test "X${COLLECT_NAMES+set}" != Xset; then
7660 COLLECT_NAMES=
7661 export COLLECT_NAMES
7662 fi
7663 ;;
7664 esac
7665
7666 # Sed substitution that helps us do robust quoting. It backslashifies
7667 # metacharacters that are still active within double-quoted strings.
7668 Xsed='sed -e 1s/^X//'
7669 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7670
7671 # Same as above, but do not quote variable references.
7672 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7673
7674 # Sed substitution to delay expansion of an escaped shell variable in a
7675 # double_quote_subst'ed string.
7676 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7677
7678 # Sed substitution to avoid accidental globbing in evaled expressions
7679 no_glob_subst='s/\*/\\\*/g'
7680
7681 # Constants:
7682 rm="rm -f"
7683
7684 # Global variables:
7685 default_ofile=libtool
7686 can_build_shared=yes
7687
7688 # All known linkers require a `.a' archive for static linking (except MSVC,
7689 # which needs '.lib').
7690 libext=a
7691 ltmain="$ac_aux_dir/ltmain.sh"
7692 ofile="$default_ofile"
7693 with_gnu_ld="$lt_cv_prog_gnu_ld"
7694
7695 if test -n "$ac_tool_prefix"; then
7696 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7697 set dummy ${ac_tool_prefix}ar; ac_word=$2
7698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7700 if test "${ac_cv_prog_AR+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703 if test -n "$AR"; then
7704 ac_cv_prog_AR="$AR" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_prog_AR="${ac_tool_prefix}ar"
7714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7716 fi
7717 done
7718 done
7719 IFS=$as_save_IFS
7720
7721 fi
7722 fi
7723 AR=$ac_cv_prog_AR
7724 if test -n "$AR"; then
7725 { echo "$as_me:$LINENO: result: $AR" >&5
7726 echo "${ECHO_T}$AR" >&6; }
7727 else
7728 { echo "$as_me:$LINENO: result: no" >&5
7729 echo "${ECHO_T}no" >&6; }
7730 fi
7731
7732
7733 fi
7734 if test -z "$ac_cv_prog_AR"; then
7735 ac_ct_AR=$AR
7736 # Extract the first word of "ar", so it can be a program name with args.
7737 set dummy ar; ac_word=$2
7738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743 if test -n "$ac_ct_AR"; then
7744 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7745 else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7748 do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7753 ac_cv_prog_ac_ct_AR="ar"
7754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 break 2
7756 fi
7757 done
7758 done
7759 IFS=$as_save_IFS
7760
7761 fi
7762 fi
7763 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7764 if test -n "$ac_ct_AR"; then
7765 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7766 echo "${ECHO_T}$ac_ct_AR" >&6; }
7767 else
7768 { echo "$as_me:$LINENO: result: no" >&5
7769 echo "${ECHO_T}no" >&6; }
7770 fi
7771
7772 if test "x$ac_ct_AR" = x; then
7773 AR="false"
7774 else
7775 case $cross_compiling:$ac_tool_warned in
7776 yes:)
7777 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7778 whose name does not start with the host triplet. If you think this
7779 configuration is useful to you, please write to autoconf@gnu.org." >&5
7780 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7781 whose name does not start with the host triplet. If you think this
7782 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7783 ac_tool_warned=yes ;;
7784 esac
7785 AR=$ac_ct_AR
7786 fi
7787 else
7788 AR="$ac_cv_prog_AR"
7789 fi
7790
7791 if test -n "$ac_tool_prefix"; then
7792 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7793 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7796 if test "${ac_cv_prog_RANLIB+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799 if test -n "$RANLIB"; then
7800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813 done
7814 done
7815 IFS=$as_save_IFS
7816
7817 fi
7818 fi
7819 RANLIB=$ac_cv_prog_RANLIB
7820 if test -n "$RANLIB"; then
7821 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7822 echo "${ECHO_T}$RANLIB" >&6; }
7823 else
7824 { echo "$as_me:$LINENO: result: no" >&5
7825 echo "${ECHO_T}no" >&6; }
7826 fi
7827
7828
7829 fi
7830 if test -z "$ac_cv_prog_RANLIB"; then
7831 ac_ct_RANLIB=$RANLIB
7832 # Extract the first word of "ranlib", so it can be a program name with args.
7833 set dummy ranlib; ac_word=$2
7834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839 if test -n "$ac_ct_RANLIB"; then
7840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7849 ac_cv_prog_ac_ct_RANLIB="ranlib"
7850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7852 fi
7853 done
7854 done
7855 IFS=$as_save_IFS
7856
7857 fi
7858 fi
7859 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7860 if test -n "$ac_ct_RANLIB"; then
7861 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7862 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7863 else
7864 { echo "$as_me:$LINENO: result: no" >&5
7865 echo "${ECHO_T}no" >&6; }
7866 fi
7867
7868 if test "x$ac_ct_RANLIB" = x; then
7869 RANLIB=":"
7870 else
7871 case $cross_compiling:$ac_tool_warned in
7872 yes:)
7873 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7874 whose name does not start with the host triplet. If you think this
7875 configuration is useful to you, please write to autoconf@gnu.org." >&5
7876 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7877 whose name does not start with the host triplet. If you think this
7878 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7879 ac_tool_warned=yes ;;
7880 esac
7881 RANLIB=$ac_ct_RANLIB
7882 fi
7883 else
7884 RANLIB="$ac_cv_prog_RANLIB"
7885 fi
7886
7887 if test -n "$ac_tool_prefix"; then
7888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7889 set dummy ${ac_tool_prefix}strip; ac_word=$2
7890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892 if test "${ac_cv_prog_STRIP+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895 if test -n "$STRIP"; then
7896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 break 2
7908 fi
7909 done
7910 done
7911 IFS=$as_save_IFS
7912
7913 fi
7914 fi
7915 STRIP=$ac_cv_prog_STRIP
7916 if test -n "$STRIP"; then
7917 { echo "$as_me:$LINENO: result: $STRIP" >&5
7918 echo "${ECHO_T}$STRIP" >&6; }
7919 else
7920 { echo "$as_me:$LINENO: result: no" >&5
7921 echo "${ECHO_T}no" >&6; }
7922 fi
7923
7924
7925 fi
7926 if test -z "$ac_cv_prog_STRIP"; then
7927 ac_ct_STRIP=$STRIP
7928 # Extract the first word of "strip", so it can be a program name with args.
7929 set dummy strip; ac_word=$2
7930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7932 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935 if test -n "$ac_ct_STRIP"; then
7936 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945 ac_cv_prog_ac_ct_STRIP="strip"
7946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 break 2
7948 fi
7949 done
7950 done
7951 IFS=$as_save_IFS
7952
7953 fi
7954 fi
7955 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7956 if test -n "$ac_ct_STRIP"; then
7957 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7958 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7959 else
7960 { echo "$as_me:$LINENO: result: no" >&5
7961 echo "${ECHO_T}no" >&6; }
7962 fi
7963
7964 if test "x$ac_ct_STRIP" = x; then
7965 STRIP=":"
7966 else
7967 case $cross_compiling:$ac_tool_warned in
7968 yes:)
7969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7970 whose name does not start with the host triplet. If you think this
7971 configuration is useful to you, please write to autoconf@gnu.org." >&5
7972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7973 whose name does not start with the host triplet. If you think this
7974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7975 ac_tool_warned=yes ;;
7976 esac
7977 STRIP=$ac_ct_STRIP
7978 fi
7979 else
7980 STRIP="$ac_cv_prog_STRIP"
7981 fi
7982
7983
7984 old_CC="$CC"
7985 old_CFLAGS="$CFLAGS"
7986
7987 # Set sane defaults for various variables
7988 test -z "$AR" && AR=ar
7989 test -z "$AR_FLAGS" && AR_FLAGS=cru
7990 test -z "$AS" && AS=as
7991 test -z "$CC" && CC=cc
7992 test -z "$LTCC" && LTCC=$CC
7993 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7994 test -z "$DLLTOOL" && DLLTOOL=dlltool
7995 test -z "$LD" && LD=ld
7996 test -z "$LN_S" && LN_S="ln -s"
7997 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7998 test -z "$NM" && NM=nm
7999 test -z "$SED" && SED=sed
8000 test -z "$OBJDUMP" && OBJDUMP=objdump
8001 test -z "$RANLIB" && RANLIB=:
8002 test -z "$STRIP" && STRIP=:
8003 test -z "$ac_objext" && ac_objext=o
8004
8005 # Determine commands to create old-style static archives.
8006 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8007 old_postinstall_cmds='chmod 644 $oldlib'
8008 old_postuninstall_cmds=
8009
8010 if test -n "$RANLIB"; then
8011 case $host_os in
8012 openbsd*)
8013 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8014 ;;
8015 *)
8016 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8017 ;;
8018 esac
8019 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8020 fi
8021
8022 for cc_temp in $compiler""; do
8023 case $cc_temp in
8024 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8025 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8026 \-*) ;;
8027 *) break;;
8028 esac
8029 done
8030 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8031
8032
8033 # Only perform the check for file, if the check method requires it
8034 case $deplibs_check_method in
8035 file_magic*)
8036 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8037 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8038 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8039 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042 case $MAGIC_CMD in
8043 [\\/*] | ?:[\\/]*)
8044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8045 ;;
8046 *)
8047 lt_save_MAGIC_CMD="$MAGIC_CMD"
8048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8050 for ac_dir in $ac_dummy; do
8051 IFS="$lt_save_ifs"
8052 test -z "$ac_dir" && ac_dir=.
8053 if test -f $ac_dir/${ac_tool_prefix}file; then
8054 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8055 if test -n "$file_magic_test_file"; then
8056 case $deplibs_check_method in
8057 "file_magic "*)
8058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8061 $EGREP "$file_magic_regex" > /dev/null; then
8062 :
8063 else
8064 cat <<EOF 1>&2
8065
8066 *** Warning: the command libtool uses to detect shared libraries,
8067 *** $file_magic_cmd, produces output that libtool cannot recognize.
8068 *** The result is that libtool may fail to recognize shared libraries
8069 *** as such. This will affect the creation of libtool libraries that
8070 *** depend on shared libraries, but programs linked with such libtool
8071 *** libraries will work regardless of this problem. Nevertheless, you
8072 *** may want to report the problem to your system manager and/or to
8073 *** bug-libtool@gnu.org
8074
8075 EOF
8076 fi ;;
8077 esac
8078 fi
8079 break
8080 fi
8081 done
8082 IFS="$lt_save_ifs"
8083 MAGIC_CMD="$lt_save_MAGIC_CMD"
8084 ;;
8085 esac
8086 fi
8087
8088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8089 if test -n "$MAGIC_CMD"; then
8090 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8091 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8092 else
8093 { echo "$as_me:$LINENO: result: no" >&5
8094 echo "${ECHO_T}no" >&6; }
8095 fi
8096
8097 if test -z "$lt_cv_path_MAGIC_CMD"; then
8098 if test -n "$ac_tool_prefix"; then
8099 { echo "$as_me:$LINENO: checking for file" >&5
8100 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8101 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104 case $MAGIC_CMD in
8105 [\\/*] | ?:[\\/]*)
8106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8107 ;;
8108 *)
8109 lt_save_MAGIC_CMD="$MAGIC_CMD"
8110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8111 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8112 for ac_dir in $ac_dummy; do
8113 IFS="$lt_save_ifs"
8114 test -z "$ac_dir" && ac_dir=.
8115 if test -f $ac_dir/file; then
8116 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8117 if test -n "$file_magic_test_file"; then
8118 case $deplibs_check_method in
8119 "file_magic "*)
8120 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8123 $EGREP "$file_magic_regex" > /dev/null; then
8124 :
8125 else
8126 cat <<EOF 1>&2
8127
8128 *** Warning: the command libtool uses to detect shared libraries,
8129 *** $file_magic_cmd, produces output that libtool cannot recognize.
8130 *** The result is that libtool may fail to recognize shared libraries
8131 *** as such. This will affect the creation of libtool libraries that
8132 *** depend on shared libraries, but programs linked with such libtool
8133 *** libraries will work regardless of this problem. Nevertheless, you
8134 *** may want to report the problem to your system manager and/or to
8135 *** bug-libtool@gnu.org
8136
8137 EOF
8138 fi ;;
8139 esac
8140 fi
8141 break
8142 fi
8143 done
8144 IFS="$lt_save_ifs"
8145 MAGIC_CMD="$lt_save_MAGIC_CMD"
8146 ;;
8147 esac
8148 fi
8149
8150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8151 if test -n "$MAGIC_CMD"; then
8152 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8153 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8154 else
8155 { echo "$as_me:$LINENO: result: no" >&5
8156 echo "${ECHO_T}no" >&6; }
8157 fi
8158
8159 else
8160 MAGIC_CMD=:
8161 fi
8162 fi
8163
8164 fi
8165 ;;
8166 esac
8167
8168 enable_dlopen=no
8169 enable_win32_dll=no
8170
8171 # Check whether --enable-libtool-lock was given.
8172 if test "${enable_libtool_lock+set}" = set; then
8173 enableval=$enable_libtool_lock;
8174 fi
8175
8176 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8177
8178
8179 # Check whether --with-pic was given.
8180 if test "${with_pic+set}" = set; then
8181 withval=$with_pic; pic_mode="$withval"
8182 else
8183 pic_mode=default
8184 fi
8185
8186 test -z "$pic_mode" && pic_mode=default
8187
8188 # Use C for the default configuration in the libtool script
8189 tagname=
8190 lt_save_CC="$CC"
8191 ac_ext=c
8192 ac_cpp='$CPP $CPPFLAGS'
8193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8196
8197
8198 # Source file extension for C test sources.
8199 ac_ext=c
8200
8201 # Object file extension for compiled C test sources.
8202 objext=o
8203 objext=$objext
8204
8205 # Code to be used in simple compile tests
8206 lt_simple_compile_test_code="int some_variable = 0;\n"
8207
8208 # Code to be used in simple link tests
8209 lt_simple_link_test_code='int main(){return(0);}\n'
8210
8211
8212 # If no C compiler was specified, use CC.
8213 LTCC=${LTCC-"$CC"}
8214
8215 # If no C compiler flags were specified, use CFLAGS.
8216 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8217
8218 # Allow CC to be a program name with arguments.
8219 compiler=$CC
8220
8221
8222 # save warnings/boilerplate of simple test code
8223 ac_outfile=conftest.$ac_objext
8224 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8225 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8226 _lt_compiler_boilerplate=`cat conftest.err`
8227 $rm conftest*
8228
8229 ac_outfile=conftest.$ac_objext
8230 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8231 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8232 _lt_linker_boilerplate=`cat conftest.err`
8233 $rm conftest*
8234
8235
8236
8237 lt_prog_compiler_no_builtin_flag=
8238
8239 if test "$GCC" = yes; then
8240 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8241
8242
8243 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8244 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8245 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248 lt_cv_prog_compiler_rtti_exceptions=no
8249 ac_outfile=conftest.$ac_objext
8250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8251 lt_compiler_flag="-fno-rtti -fno-exceptions"
8252 # Insert the option either (1) after the last *FLAGS variable, or
8253 # (2) before a word containing "conftest.", or (3) at the end.
8254 # Note that $ac_compile itself does not contain backslashes and begins
8255 # with a dollar sign (not a hyphen), so the echo should work correctly.
8256 # The option is referenced via a variable to avoid confusing sed.
8257 lt_compile=`echo "$ac_compile" | $SED \
8258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8260 -e 's:$: $lt_compiler_flag:'`
8261 (eval echo "\"\$as_me:8261: $lt_compile\"" >&5)
8262 (eval "$lt_compile" 2>conftest.err)
8263 ac_status=$?
8264 cat conftest.err >&5
8265 echo "$as_me:8265: \$? = $ac_status" >&5
8266 if (exit $ac_status) && test -s "$ac_outfile"; then
8267 # The compiler can only warn and ignore the option if not recognized
8268 # So say no if there are warnings other than the usual output.
8269 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8271 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8272 lt_cv_prog_compiler_rtti_exceptions=yes
8273 fi
8274 fi
8275 $rm conftest*
8276
8277 fi
8278 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8279 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8280
8281 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8282 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8283 else
8284 :
8285 fi
8286
8287 fi
8288
8289 lt_prog_compiler_wl=
8290 lt_prog_compiler_pic=
8291 lt_prog_compiler_static=
8292
8293 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8294 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8295
8296 if test "$GCC" = yes; then
8297 lt_prog_compiler_wl='-Wl,'
8298 lt_prog_compiler_static='-static'
8299
8300 case $host_os in
8301 aix*)
8302 # All AIX code is PIC.
8303 if test "$host_cpu" = ia64; then
8304 # AIX 5 now supports IA64 processor
8305 lt_prog_compiler_static='-Bstatic'
8306 fi
8307 ;;
8308
8309 amigaos*)
8310 # FIXME: we need at least 68020 code to build shared libraries, but
8311 # adding the `-m68020' flag to GCC prevents building anything better,
8312 # like `-m68040'.
8313 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8314 ;;
8315
8316 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8317 # PIC is the default for these OSes.
8318 ;;
8319
8320 mingw* | pw32* | os2*)
8321 # This hack is so that the source file can tell whether it is being
8322 # built for inclusion in a dll (and should export symbols for example).
8323 lt_prog_compiler_pic='-DDLL_EXPORT'
8324 ;;
8325
8326 darwin* | rhapsody*)
8327 # PIC is the default on this platform
8328 # Common symbols not allowed in MH_DYLIB files
8329 lt_prog_compiler_pic='-fno-common'
8330 ;;
8331
8332 interix3*)
8333 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8334 # Instead, we relocate shared libraries at runtime.
8335 ;;
8336
8337 msdosdjgpp*)
8338 # Just because we use GCC doesn't mean we suddenly get shared libraries
8339 # on systems that don't support them.
8340 lt_prog_compiler_can_build_shared=no
8341 enable_shared=no
8342 ;;
8343
8344 sysv4*MP*)
8345 if test -d /usr/nec; then
8346 lt_prog_compiler_pic=-Kconform_pic
8347 fi
8348 ;;
8349
8350 hpux*)
8351 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8352 # not for PA HP-UX.
8353 case $host_cpu in
8354 hppa*64*|ia64*)
8355 # +Z the default
8356 ;;
8357 *)
8358 lt_prog_compiler_pic='-fPIC'
8359 ;;
8360 esac
8361 ;;
8362
8363 *)
8364 lt_prog_compiler_pic='-fPIC'
8365 ;;
8366 esac
8367 else
8368 # PORTME Check for flag to pass linker flags through the system compiler.
8369 case $host_os in
8370 aix*)
8371 lt_prog_compiler_wl='-Wl,'
8372 if test "$host_cpu" = ia64; then
8373 # AIX 5 now supports IA64 processor
8374 lt_prog_compiler_static='-Bstatic'
8375 else
8376 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8377 fi
8378 ;;
8379 darwin*)
8380 # PIC is the default on this platform
8381 # Common symbols not allowed in MH_DYLIB files
8382 case $cc_basename in
8383 xlc*)
8384 lt_prog_compiler_pic='-qnocommon'
8385 lt_prog_compiler_wl='-Wl,'
8386 ;;
8387 esac
8388 ;;
8389
8390 mingw* | pw32* | os2*)
8391 # This hack is so that the source file can tell whether it is being
8392 # built for inclusion in a dll (and should export symbols for example).
8393 lt_prog_compiler_pic='-DDLL_EXPORT'
8394 ;;
8395
8396 hpux9* | hpux10* | hpux11*)
8397 lt_prog_compiler_wl='-Wl,'
8398 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8399 # not for PA HP-UX.
8400 case $host_cpu in
8401 hppa*64*|ia64*)
8402 # +Z the default
8403 ;;
8404 *)
8405 lt_prog_compiler_pic='+Z'
8406 ;;
8407 esac
8408 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8409 lt_prog_compiler_static='${wl}-a ${wl}archive'
8410 ;;
8411
8412 irix5* | irix6* | nonstopux*)
8413 lt_prog_compiler_wl='-Wl,'
8414 # PIC (with -KPIC) is the default.
8415 lt_prog_compiler_static='-non_shared'
8416 ;;
8417
8418 newsos6)
8419 lt_prog_compiler_pic='-KPIC'
8420 lt_prog_compiler_static='-Bstatic'
8421 ;;
8422
8423 linux*)
8424 case $cc_basename in
8425 icc* | ecc*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-static'
8429 ;;
8430 pgcc* | pgf77* | pgf90* | pgf95*)
8431 # Portland Group compilers (*not* the Pentium gcc compiler,
8432 # which looks to be a dead project)
8433 lt_prog_compiler_wl='-Wl,'
8434 lt_prog_compiler_pic='-fpic'
8435 lt_prog_compiler_static='-Bstatic'
8436 ;;
8437 ccc*)
8438 lt_prog_compiler_wl='-Wl,'
8439 # All Alpha code is PIC.
8440 lt_prog_compiler_static='-non_shared'
8441 ;;
8442 esac
8443 ;;
8444
8445 osf3* | osf4* | osf5*)
8446 lt_prog_compiler_wl='-Wl,'
8447 # All OSF/1 code is PIC.
8448 lt_prog_compiler_static='-non_shared'
8449 ;;
8450
8451 solaris*)
8452 lt_prog_compiler_pic='-KPIC'
8453 lt_prog_compiler_static='-Bstatic'
8454 case $cc_basename in
8455 f77* | f90* | f95*)
8456 lt_prog_compiler_wl='-Qoption ld ';;
8457 *)
8458 lt_prog_compiler_wl='-Wl,';;
8459 esac
8460 ;;
8461
8462 sunos4*)
8463 lt_prog_compiler_wl='-Qoption ld '
8464 lt_prog_compiler_pic='-PIC'
8465 lt_prog_compiler_static='-Bstatic'
8466 ;;
8467
8468 sysv4 | sysv4.2uw2* | sysv4.3*)
8469 lt_prog_compiler_wl='-Wl,'
8470 lt_prog_compiler_pic='-KPIC'
8471 lt_prog_compiler_static='-Bstatic'
8472 ;;
8473
8474 sysv4*MP*)
8475 if test -d /usr/nec ;then
8476 lt_prog_compiler_pic='-Kconform_pic'
8477 lt_prog_compiler_static='-Bstatic'
8478 fi
8479 ;;
8480
8481 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8482 lt_prog_compiler_wl='-Wl,'
8483 lt_prog_compiler_pic='-KPIC'
8484 lt_prog_compiler_static='-Bstatic'
8485 ;;
8486
8487 unicos*)
8488 lt_prog_compiler_wl='-Wl,'
8489 lt_prog_compiler_can_build_shared=no
8490 ;;
8491
8492 uts4*)
8493 lt_prog_compiler_pic='-pic'
8494 lt_prog_compiler_static='-Bstatic'
8495 ;;
8496
8497 *)
8498 lt_prog_compiler_can_build_shared=no
8499 ;;
8500 esac
8501 fi
8502
8503 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8504 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8505
8506 #
8507 # Check to make sure the PIC flag actually works.
8508 #
8509 if test -n "$lt_prog_compiler_pic"; then
8510
8511 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8512 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8513 if test "${lt_prog_compiler_pic_works+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516 lt_prog_compiler_pic_works=no
8517 ac_outfile=conftest.$ac_objext
8518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8519 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8520 # Insert the option either (1) after the last *FLAGS variable, or
8521 # (2) before a word containing "conftest.", or (3) at the end.
8522 # Note that $ac_compile itself does not contain backslashes and begins
8523 # with a dollar sign (not a hyphen), so the echo should work correctly.
8524 # The option is referenced via a variable to avoid confusing sed.
8525 lt_compile=`echo "$ac_compile" | $SED \
8526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8528 -e 's:$: $lt_compiler_flag:'`
8529 (eval echo "\"\$as_me:8529: $lt_compile\"" >&5)
8530 (eval "$lt_compile" 2>conftest.err)
8531 ac_status=$?
8532 cat conftest.err >&5
8533 echo "$as_me:8533: \$? = $ac_status" >&5
8534 if (exit $ac_status) && test -s "$ac_outfile"; then
8535 # The compiler can only warn and ignore the option if not recognized
8536 # So say no if there are warnings other than the usual output.
8537 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8539 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8540 lt_prog_compiler_pic_works=yes
8541 fi
8542 fi
8543 $rm conftest*
8544
8545 fi
8546 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8547 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8548
8549 if test x"$lt_prog_compiler_pic_works" = xyes; then
8550 case $lt_prog_compiler_pic in
8551 "" | " "*) ;;
8552 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8553 esac
8554 else
8555 lt_prog_compiler_pic=
8556 lt_prog_compiler_can_build_shared=no
8557 fi
8558
8559 fi
8560 case $host_os in
8561 # For platforms which do not support PIC, -DPIC is meaningless:
8562 *djgpp*)
8563 lt_prog_compiler_pic=
8564 ;;
8565 *)
8566 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8567 ;;
8568 esac
8569
8570 #
8571 # Check to make sure the static flag actually works.
8572 #
8573 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8574 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8575 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8576 if test "${lt_prog_compiler_static_works+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579 lt_prog_compiler_static_works=no
8580 save_LDFLAGS="$LDFLAGS"
8581 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8582 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8583 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8584 # The linker can only warn and ignore the option if not recognized
8585 # So say no if there are warnings
8586 if test -s conftest.err; then
8587 # Append any errors to the config.log.
8588 cat conftest.err 1>&5
8589 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8591 if diff conftest.exp conftest.er2 >/dev/null; then
8592 lt_prog_compiler_static_works=yes
8593 fi
8594 else
8595 lt_prog_compiler_static_works=yes
8596 fi
8597 fi
8598 $rm conftest*
8599 LDFLAGS="$save_LDFLAGS"
8600
8601 fi
8602 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8603 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8604
8605 if test x"$lt_prog_compiler_static_works" = xyes; then
8606 :
8607 else
8608 lt_prog_compiler_static=
8609 fi
8610
8611
8612 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8613 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8614 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617 lt_cv_prog_compiler_c_o=no
8618 $rm -r conftest 2>/dev/null
8619 mkdir conftest
8620 cd conftest
8621 mkdir out
8622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8623
8624 lt_compiler_flag="-o out/conftest2.$ac_objext"
8625 # Insert the option either (1) after the last *FLAGS variable, or
8626 # (2) before a word containing "conftest.", or (3) at the end.
8627 # Note that $ac_compile itself does not contain backslashes and begins
8628 # with a dollar sign (not a hyphen), so the echo should work correctly.
8629 lt_compile=`echo "$ac_compile" | $SED \
8630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8632 -e 's:$: $lt_compiler_flag:'`
8633 (eval echo "\"\$as_me:8633: $lt_compile\"" >&5)
8634 (eval "$lt_compile" 2>out/conftest.err)
8635 ac_status=$?
8636 cat out/conftest.err >&5
8637 echo "$as_me:8637: \$? = $ac_status" >&5
8638 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8639 then
8640 # The compiler can only warn and ignore the option if not recognized
8641 # So say no if there are warnings
8642 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8643 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8644 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8645 lt_cv_prog_compiler_c_o=yes
8646 fi
8647 fi
8648 chmod u+w . 2>&5
8649 $rm conftest*
8650 # SGI C++ compiler will create directory out/ii_files/ for
8651 # template instantiation
8652 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8653 $rm out/* && rmdir out
8654 cd ..
8655 rmdir conftest
8656 $rm conftest*
8657
8658 fi
8659 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8660 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8661
8662
8663 hard_links="nottested"
8664 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8665 # do not overwrite the value of need_locks provided by the user
8666 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8667 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8668 hard_links=yes
8669 $rm conftest*
8670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8671 touch conftest.a
8672 ln conftest.a conftest.b 2>&5 || hard_links=no
8673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8674 { echo "$as_me:$LINENO: result: $hard_links" >&5
8675 echo "${ECHO_T}$hard_links" >&6; }
8676 if test "$hard_links" = no; then
8677 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8678 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8679 need_locks=warn
8680 fi
8681 else
8682 need_locks=no
8683 fi
8684
8685 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8686 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8687
8688 runpath_var=
8689 allow_undefined_flag=
8690 enable_shared_with_static_runtimes=no
8691 archive_cmds=
8692 archive_expsym_cmds=
8693 old_archive_From_new_cmds=
8694 old_archive_from_expsyms_cmds=
8695 export_dynamic_flag_spec=
8696 whole_archive_flag_spec=
8697 thread_safe_flag_spec=
8698 hardcode_libdir_flag_spec=
8699 hardcode_libdir_flag_spec_ld=
8700 hardcode_libdir_separator=
8701 hardcode_direct=no
8702 hardcode_minus_L=no
8703 hardcode_shlibpath_var=unsupported
8704 link_all_deplibs=unknown
8705 hardcode_automatic=no
8706 module_cmds=
8707 module_expsym_cmds=
8708 always_export_symbols=no
8709 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8710 # include_expsyms should be a list of space-separated symbols to be *always*
8711 # included in the symbol list
8712 include_expsyms=
8713 # exclude_expsyms can be an extended regexp of symbols to exclude
8714 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8715 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8716 # as well as any symbol that contains `d'.
8717 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8718 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8719 # platforms (ab)use it in PIC code, but their linkers get confused if
8720 # the symbol is explicitly referenced. Since portable code cannot
8721 # rely on this symbol name, it's probably fine to never include it in
8722 # preloaded symbol tables.
8723 extract_expsyms_cmds=
8724 # Just being paranoid about ensuring that cc_basename is set.
8725 for cc_temp in $compiler""; do
8726 case $cc_temp in
8727 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8728 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8729 \-*) ;;
8730 *) break;;
8731 esac
8732 done
8733 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8734
8735 case $host_os in
8736 cygwin* | mingw* | pw32*)
8737 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8738 # When not using gcc, we currently assume that we are using
8739 # Microsoft Visual C++.
8740 if test "$GCC" != yes; then
8741 with_gnu_ld=no
8742 fi
8743 ;;
8744 interix*)
8745 # we just hope/assume this is gcc and not c89 (= MSVC++)
8746 with_gnu_ld=yes
8747 ;;
8748 openbsd*)
8749 with_gnu_ld=no
8750 ;;
8751 esac
8752
8753 ld_shlibs=yes
8754 if test "$with_gnu_ld" = yes; then
8755 # If archive_cmds runs LD, not CC, wlarc should be empty
8756 wlarc='${wl}'
8757
8758 # Set some defaults for GNU ld with shared library support. These
8759 # are reset later if shared libraries are not supported. Putting them
8760 # here allows them to be overridden if necessary.
8761 runpath_var=LD_RUN_PATH
8762 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8763 export_dynamic_flag_spec='${wl}--export-dynamic'
8764 # ancient GNU ld didn't support --whole-archive et. al.
8765 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8766 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8767 else
8768 whole_archive_flag_spec=
8769 fi
8770 supports_anon_versioning=no
8771 case `$LD -v 2>/dev/null` in
8772 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8773 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8774 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8775 *\ 2.11.*) ;; # other 2.11 versions
8776 *) supports_anon_versioning=yes ;;
8777 esac
8778
8779 # See if GNU ld supports shared libraries.
8780 case $host_os in
8781 aix3* | aix4* | aix5*)
8782 # On AIX/PPC, the GNU linker is very broken
8783 if test "$host_cpu" != ia64; then
8784 ld_shlibs=no
8785 cat <<EOF 1>&2
8786
8787 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8788 *** to be unable to reliably create shared libraries on AIX.
8789 *** Therefore, libtool is disabling shared libraries support. If you
8790 *** really care for shared libraries, you may want to modify your PATH
8791 *** so that a non-GNU linker is found, and then restart.
8792
8793 EOF
8794 fi
8795 ;;
8796
8797 amigaos*)
8798 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)'
8799 hardcode_libdir_flag_spec='-L$libdir'
8800 hardcode_minus_L=yes
8801
8802 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8803 # that the semantics of dynamic libraries on AmigaOS, at least up
8804 # to version 4, is to share data among multiple programs linked
8805 # with the same dynamic library. Since this doesn't match the
8806 # behavior of shared libraries on other platforms, we can't use
8807 # them.
8808 ld_shlibs=no
8809 ;;
8810
8811 beos*)
8812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8813 allow_undefined_flag=unsupported
8814 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8815 # support --undefined. This deserves some investigation. FIXME
8816 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8817 else
8818 ld_shlibs=no
8819 fi
8820 ;;
8821
8822 cygwin* | mingw* | pw32*)
8823 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8824 # as there is no search path for DLLs.
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 allow_undefined_flag=unsupported
8827 always_export_symbols=no
8828 enable_shared_with_static_runtimes=yes
8829 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8830
8831 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8833 # If the export-symbols file already is a .def file (1st line
8834 # is EXPORTS), use it as is; otherwise, prepend...
8835 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8836 cp $export_symbols $output_objdir/$soname.def;
8837 else
8838 echo EXPORTS > $output_objdir/$soname.def;
8839 cat $export_symbols >> $output_objdir/$soname.def;
8840 fi~
8841 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8842 else
8843 ld_shlibs=no
8844 fi
8845 ;;
8846
8847 interix3*)
8848 hardcode_direct=no
8849 hardcode_shlibpath_var=no
8850 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8851 export_dynamic_flag_spec='${wl}-E'
8852 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8853 # Instead, shared libraries are loaded at an image base (0x10000000 by
8854 # default) and relocated if they conflict, which is a slow very memory
8855 # consuming and fragmenting process. To avoid this, we pick a random,
8856 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8857 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8858 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8859 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'
8860 ;;
8861
8862 linux*)
8863 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8864 tmp_addflag=
8865 case $cc_basename,$host_cpu in
8866 pgcc*) # Portland Group C compiler
8867 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'
8868 tmp_addflag=' $pic_flag'
8869 ;;
8870 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8871 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'
8872 tmp_addflag=' $pic_flag -Mnomain' ;;
8873 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8874 tmp_addflag=' -i_dynamic' ;;
8875 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8876 tmp_addflag=' -i_dynamic -nofor_main' ;;
8877 ifc* | ifort*) # Intel Fortran compiler
8878 tmp_addflag=' -nofor_main' ;;
8879 esac
8880 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8881
8882 if test $supports_anon_versioning = yes; then
8883 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8885 $echo "local: *; };" >> $output_objdir/$libname.ver~
8886 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8887 fi
8888 else
8889 ld_shlibs=no
8890 fi
8891 ;;
8892
8893 netbsd*)
8894 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8895 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8896 wlarc=
8897 else
8898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8900 fi
8901 ;;
8902
8903 solaris*)
8904 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8905 ld_shlibs=no
8906 cat <<EOF 1>&2
8907
8908 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8909 *** create shared libraries on Solaris systems. Therefore, libtool
8910 *** is disabling shared libraries support. We urge you to upgrade GNU
8911 *** binutils to release 2.9.1 or newer. Another option is to modify
8912 *** your PATH or compiler configuration so that the native linker is
8913 *** used, and then restart.
8914
8915 EOF
8916 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8918 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8919 else
8920 ld_shlibs=no
8921 fi
8922 ;;
8923
8924 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8925 case `$LD -v 2>&1` in
8926 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8927 ld_shlibs=no
8928 cat <<_LT_EOF 1>&2
8929
8930 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8931 *** reliably create shared libraries on SCO systems. Therefore, libtool
8932 *** is disabling shared libraries support. We urge you to upgrade GNU
8933 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8934 *** your PATH or compiler configuration so that the native linker is
8935 *** used, and then restart.
8936
8937 _LT_EOF
8938 ;;
8939 *)
8940 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8941 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8943 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8944 else
8945 ld_shlibs=no
8946 fi
8947 ;;
8948 esac
8949 ;;
8950
8951 sunos4*)
8952 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8953 wlarc=
8954 hardcode_direct=yes
8955 hardcode_shlibpath_var=no
8956 ;;
8957
8958 *)
8959 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8962 else
8963 ld_shlibs=no
8964 fi
8965 ;;
8966 esac
8967
8968 if test "$ld_shlibs" = no; then
8969 runpath_var=
8970 hardcode_libdir_flag_spec=
8971 export_dynamic_flag_spec=
8972 whole_archive_flag_spec=
8973 fi
8974 else
8975 # PORTME fill in a description of your system's linker (not GNU ld)
8976 case $host_os in
8977 aix3*)
8978 allow_undefined_flag=unsupported
8979 always_export_symbols=yes
8980 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'
8981 # Note: this linker hardcodes the directories in LIBPATH if there
8982 # are no directories specified by -L.
8983 hardcode_minus_L=yes
8984 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8985 # Neither direct hardcoding nor static linking is supported with a
8986 # broken collect2.
8987 hardcode_direct=unsupported
8988 fi
8989 ;;
8990
8991 aix4* | aix5*)
8992 if test "$host_cpu" = ia64; then
8993 # On IA64, the linker does run time linking by default, so we don't
8994 # have to do anything special.
8995 aix_use_runtimelinking=no
8996 exp_sym_flag='-Bexport'
8997 no_entry_flag=""
8998 else
8999 # If we're using GNU nm, then we don't want the "-C" option.
9000 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9001 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9002 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'
9003 else
9004 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'
9005 fi
9006 aix_use_runtimelinking=no
9007
9008 # Test if we are trying to use run time linking or normal
9009 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9010 # need to do runtime linking.
9011 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9012 for ld_flag in $LDFLAGS; do
9013 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9014 aix_use_runtimelinking=yes
9015 break
9016 fi
9017 done
9018 ;;
9019 esac
9020
9021 exp_sym_flag='-bexport'
9022 no_entry_flag='-bnoentry'
9023 fi
9024
9025 # When large executables or shared objects are built, AIX ld can
9026 # have problems creating the table of contents. If linking a library
9027 # or program results in "error TOC overflow" add -mminimal-toc to
9028 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9029 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9030
9031 archive_cmds=''
9032 hardcode_direct=yes
9033 hardcode_libdir_separator=':'
9034 link_all_deplibs=yes
9035
9036 if test "$GCC" = yes; then
9037 case $host_os in aix4.[012]|aix4.[012].*)
9038 # We only want to do this on AIX 4.2 and lower, the check
9039 # below for broken collect2 doesn't work under 4.3+
9040 collect2name=`${CC} -print-prog-name=collect2`
9041 if test -f "$collect2name" && \
9042 strings "$collect2name" | grep resolve_lib_name >/dev/null
9043 then
9044 # We have reworked collect2
9045 hardcode_direct=yes
9046 else
9047 # We have old collect2
9048 hardcode_direct=unsupported
9049 # It fails to find uninstalled libraries when the uninstalled
9050 # path is not listed in the libpath. Setting hardcode_minus_L
9051 # to unsupported forces relinking
9052 hardcode_minus_L=yes
9053 hardcode_libdir_flag_spec='-L$libdir'
9054 hardcode_libdir_separator=
9055 fi
9056 ;;
9057 esac
9058 shared_flag='-shared'
9059 if test "$aix_use_runtimelinking" = yes; then
9060 shared_flag="$shared_flag "'${wl}-G'
9061 fi
9062 else
9063 # not using gcc
9064 if test "$host_cpu" = ia64; then
9065 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9066 # chokes on -Wl,-G. The following line is correct:
9067 shared_flag='-G'
9068 else
9069 if test "$aix_use_runtimelinking" = yes; then
9070 shared_flag='${wl}-G'
9071 else
9072 shared_flag='${wl}-bM:SRE'
9073 fi
9074 fi
9075 fi
9076
9077 # It seems that -bexpall does not export symbols beginning with
9078 # underscore (_), so it is better to generate a list of symbols to export.
9079 always_export_symbols=yes
9080 if test "$aix_use_runtimelinking" = yes; then
9081 # Warning - without using the other runtime loading flags (-brtl),
9082 # -berok will link without error, but may produce a broken library.
9083 allow_undefined_flag='-berok'
9084 # Determine the default libpath from the value encoded in an empty executable.
9085 cat >conftest.$ac_ext <<_ACEOF
9086 /* confdefs.h. */
9087 _ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9091
9092 int
9093 main ()
9094 {
9095
9096 ;
9097 return 0;
9098 }
9099 _ACEOF
9100 rm -f conftest.$ac_objext conftest$ac_exeext
9101 if { (ac_try="$ac_link"
9102 case "(($ac_try" in
9103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9104 *) ac_try_echo=$ac_try;;
9105 esac
9106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9107 (eval "$ac_link") 2>conftest.er1
9108 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } && {
9114 test -z "$ac_c_werror_flag" ||
9115 test ! -s conftest.err
9116 } && test -s conftest$ac_exeext &&
9117 $as_test_x conftest$ac_exeext; then
9118
9119 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9120 }'`
9121 # Check for a 64-bit object if we didn't find anything.
9122 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; }
9123 }'`; fi
9124 else
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9127
9128
9129 fi
9130
9131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9132 conftest$ac_exeext conftest.$ac_ext
9133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9134
9135 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9136 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"
9137 else
9138 if test "$host_cpu" = ia64; then
9139 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9140 allow_undefined_flag="-z nodefs"
9141 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"
9142 else
9143 # Determine the default libpath from the value encoded in an empty executable.
9144 cat >conftest.$ac_ext <<_ACEOF
9145 /* confdefs.h. */
9146 _ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9150
9151 int
9152 main ()
9153 {
9154
9155 ;
9156 return 0;
9157 }
9158 _ACEOF
9159 rm -f conftest.$ac_objext conftest$ac_exeext
9160 if { (ac_try="$ac_link"
9161 case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164 esac
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_link") 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } && {
9173 test -z "$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 } && test -s conftest$ac_exeext &&
9176 $as_test_x conftest$ac_exeext; then
9177
9178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9179 }'`
9180 # Check for a 64-bit object if we didn't find anything.
9181 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; }
9182 }'`; fi
9183 else
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9186
9187
9188 fi
9189
9190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9191 conftest$ac_exeext conftest.$ac_ext
9192 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9193
9194 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9195 # Warning - without using the other run time loading flags,
9196 # -berok will link without error, but may produce a broken library.
9197 no_undefined_flag=' ${wl}-bernotok'
9198 allow_undefined_flag=' ${wl}-berok'
9199 # Exported symbols can be pulled into shared objects from archives
9200 whole_archive_flag_spec='$convenience'
9201 archive_cmds_need_lc=yes
9202 # This is similar to how AIX traditionally builds its shared libraries.
9203 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'
9204 fi
9205 fi
9206 ;;
9207
9208 amigaos*)
9209 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)'
9210 hardcode_libdir_flag_spec='-L$libdir'
9211 hardcode_minus_L=yes
9212 # see comment about different semantics on the GNU ld section
9213 ld_shlibs=no
9214 ;;
9215
9216 bsdi[45]*)
9217 export_dynamic_flag_spec=-rdynamic
9218 ;;
9219
9220 cygwin* | mingw* | pw32*)
9221 # When not using gcc, we currently assume that we are using
9222 # Microsoft Visual C++.
9223 # hardcode_libdir_flag_spec is actually meaningless, as there is
9224 # no search path for DLLs.
9225 hardcode_libdir_flag_spec=' '
9226 allow_undefined_flag=unsupported
9227 # Tell ltmain to make .lib files, not .a files.
9228 libext=lib
9229 # Tell ltmain to make .dll files, not .so files.
9230 shrext_cmds=".dll"
9231 # FIXME: Setting linknames here is a bad hack.
9232 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9233 # The linker will automatically build a .lib file if we build a DLL.
9234 old_archive_From_new_cmds='true'
9235 # FIXME: Should let the user specify the lib program.
9236 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9237 fix_srcfile_path='`cygpath -w "$srcfile"`'
9238 enable_shared_with_static_runtimes=yes
9239 ;;
9240
9241 darwin* | rhapsody*)
9242 case $host_os in
9243 rhapsody* | darwin1.[012])
9244 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9245 ;;
9246 *) # Darwin 1.3 on
9247 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9248 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9249 else
9250 case ${MACOSX_DEPLOYMENT_TARGET} in
9251 10.[012])
9252 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9253 ;;
9254 10.*)
9255 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9256 ;;
9257 esac
9258 fi
9259 ;;
9260 esac
9261 archive_cmds_need_lc=no
9262 hardcode_direct=no
9263 hardcode_automatic=yes
9264 hardcode_shlibpath_var=unsupported
9265 whole_archive_flag_spec=''
9266 link_all_deplibs=yes
9267 if test "$GCC" = yes ; then
9268 output_verbose_link_cmd='echo'
9269 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9270 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9271 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9272 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}'
9273 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}'
9274 else
9275 case $cc_basename in
9276 xlc*)
9277 output_verbose_link_cmd='echo'
9278 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9279 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9280 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9281 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}'
9282 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}'
9283 ;;
9284 *)
9285 ld_shlibs=no
9286 ;;
9287 esac
9288 fi
9289 ;;
9290
9291 dgux*)
9292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9293 hardcode_libdir_flag_spec='-L$libdir'
9294 hardcode_shlibpath_var=no
9295 ;;
9296
9297 freebsd1*)
9298 ld_shlibs=no
9299 ;;
9300
9301 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9302 # support. Future versions do this automatically, but an explicit c++rt0.o
9303 # does not break anything, and helps significantly (at the cost of a little
9304 # extra space).
9305 freebsd2.2*)
9306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9307 hardcode_libdir_flag_spec='-R$libdir'
9308 hardcode_direct=yes
9309 hardcode_shlibpath_var=no
9310 ;;
9311
9312 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9313 freebsd2*)
9314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9315 hardcode_direct=yes
9316 hardcode_minus_L=yes
9317 hardcode_shlibpath_var=no
9318 ;;
9319
9320 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9321 freebsd* | kfreebsd*-gnu | dragonfly*)
9322 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9323 hardcode_libdir_flag_spec='-R$libdir'
9324 hardcode_direct=yes
9325 hardcode_shlibpath_var=no
9326 ;;
9327
9328 hpux9*)
9329 if test "$GCC" = yes; then
9330 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'
9331 else
9332 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'
9333 fi
9334 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9335 hardcode_libdir_separator=:
9336 hardcode_direct=yes
9337
9338 # hardcode_minus_L: Not really in the search PATH,
9339 # but as the default location of the library.
9340 hardcode_minus_L=yes
9341 export_dynamic_flag_spec='${wl}-E'
9342 ;;
9343
9344 hpux10*)
9345 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9346 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9347 else
9348 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9349 fi
9350 if test "$with_gnu_ld" = no; then
9351 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9352 hardcode_libdir_separator=:
9353
9354 hardcode_direct=yes
9355 export_dynamic_flag_spec='${wl}-E'
9356
9357 # hardcode_minus_L: Not really in the search PATH,
9358 # but as the default location of the library.
9359 hardcode_minus_L=yes
9360 fi
9361 ;;
9362
9363 hpux11*)
9364 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9365 case $host_cpu in
9366 hppa*64*)
9367 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9368 ;;
9369 ia64*)
9370 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9371 ;;
9372 *)
9373 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9374 ;;
9375 esac
9376 else
9377 case $host_cpu in
9378 hppa*64*)
9379 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 ;;
9381 ia64*)
9382 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9383 ;;
9384 *)
9385 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9386 ;;
9387 esac
9388 fi
9389 if test "$with_gnu_ld" = no; then
9390 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9391 hardcode_libdir_separator=:
9392
9393 case $host_cpu in
9394 hppa*64*|ia64*)
9395 hardcode_libdir_flag_spec_ld='+b $libdir'
9396 hardcode_direct=no
9397 hardcode_shlibpath_var=no
9398 ;;
9399 *)
9400 hardcode_direct=yes
9401 export_dynamic_flag_spec='${wl}-E'
9402
9403 # hardcode_minus_L: Not really in the search PATH,
9404 # but as the default location of the library.
9405 hardcode_minus_L=yes
9406 ;;
9407 esac
9408 fi
9409 ;;
9410
9411 irix5* | irix6* | nonstopux*)
9412 if test "$GCC" = yes; then
9413 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'
9414 else
9415 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'
9416 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9417 fi
9418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9419 hardcode_libdir_separator=:
9420 link_all_deplibs=yes
9421 ;;
9422
9423 netbsd*)
9424 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9425 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9426 else
9427 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9428 fi
9429 hardcode_libdir_flag_spec='-R$libdir'
9430 hardcode_direct=yes
9431 hardcode_shlibpath_var=no
9432 ;;
9433
9434 newsos6)
9435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436 hardcode_direct=yes
9437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9438 hardcode_libdir_separator=:
9439 hardcode_shlibpath_var=no
9440 ;;
9441
9442 openbsd*)
9443 hardcode_direct=yes
9444 hardcode_shlibpath_var=no
9445 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9446 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9447 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9448 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9449 export_dynamic_flag_spec='${wl}-E'
9450 else
9451 case $host_os in
9452 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_libdir_flag_spec='-R$libdir'
9455 ;;
9456 *)
9457 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9458 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9459 ;;
9460 esac
9461 fi
9462 ;;
9463
9464 os2*)
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_minus_L=yes
9467 allow_undefined_flag=unsupported
9468 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'
9469 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9470 ;;
9471
9472 osf3*)
9473 if test "$GCC" = yes; then
9474 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9475 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'
9476 else
9477 allow_undefined_flag=' -expect_unresolved \*'
9478 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'
9479 fi
9480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9481 hardcode_libdir_separator=:
9482 ;;
9483
9484 osf4* | osf5*) # as osf3* with the addition of -msym flag
9485 if test "$GCC" = yes; then
9486 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9487 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'
9488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9489 else
9490 allow_undefined_flag=' -expect_unresolved \*'
9491 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'
9492 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9493 $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'
9494
9495 # Both c and cxx compiler support -rpath directly
9496 hardcode_libdir_flag_spec='-rpath $libdir'
9497 fi
9498 hardcode_libdir_separator=:
9499 ;;
9500
9501 solaris*)
9502 no_undefined_flag=' -z text'
9503 if test "$GCC" = yes; then
9504 wlarc='${wl}'
9505 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9506 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9507 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9508 else
9509 wlarc=''
9510 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9512 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9513 fi
9514 hardcode_libdir_flag_spec='-R$libdir'
9515 hardcode_shlibpath_var=no
9516 case $host_os in
9517 solaris2.[0-5] | solaris2.[0-5].*) ;;
9518 *)
9519 # The compiler driver will combine linker options so we
9520 # cannot just pass the convience library names through
9521 # without $wl, iff we do not link with $LD.
9522 # Luckily, gcc supports the same syntax we need for Sun Studio.
9523 # Supported since Solaris 2.6 (maybe 2.5.1?)
9524 case $wlarc in
9525 '')
9526 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9527 *)
9528 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' ;;
9529 esac ;;
9530 esac
9531 link_all_deplibs=yes
9532 ;;
9533
9534 sunos4*)
9535 if test "x$host_vendor" = xsequent; then
9536 # Use $CC to link under sequent, because it throws in some extra .o
9537 # files that make .init and .fini sections work.
9538 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9539 else
9540 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9541 fi
9542 hardcode_libdir_flag_spec='-L$libdir'
9543 hardcode_direct=yes
9544 hardcode_minus_L=yes
9545 hardcode_shlibpath_var=no
9546 ;;
9547
9548 sysv4)
9549 case $host_vendor in
9550 sni)
9551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9552 hardcode_direct=yes # is this really true???
9553 ;;
9554 siemens)
9555 ## LD is ld it makes a PLAMLIB
9556 ## CC just makes a GrossModule.
9557 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9558 reload_cmds='$CC -r -o $output$reload_objs'
9559 hardcode_direct=no
9560 ;;
9561 motorola)
9562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9564 ;;
9565 esac
9566 runpath_var='LD_RUN_PATH'
9567 hardcode_shlibpath_var=no
9568 ;;
9569
9570 sysv4.3*)
9571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9572 hardcode_shlibpath_var=no
9573 export_dynamic_flag_spec='-Bexport'
9574 ;;
9575
9576 sysv4*MP*)
9577 if test -d /usr/nec; then
9578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9579 hardcode_shlibpath_var=no
9580 runpath_var=LD_RUN_PATH
9581 hardcode_runpath_var=yes
9582 ld_shlibs=yes
9583 fi
9584 ;;
9585
9586 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9587 no_undefined_flag='${wl}-z,text'
9588 archive_cmds_need_lc=no
9589 hardcode_shlibpath_var=no
9590 runpath_var='LD_RUN_PATH'
9591
9592 if test "$GCC" = yes; then
9593 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9594 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9595 else
9596 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9597 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9598 fi
9599 ;;
9600
9601 sysv5* | sco3.2v5* | sco5v6*)
9602 # Note: We can NOT use -z defs as we might desire, because we do not
9603 # link with -lc, and that would cause any symbols used from libc to
9604 # always be unresolved, which means just about no library would
9605 # ever link correctly. If we're not using GNU ld we use -z text
9606 # though, which does catch some bad symbols but isn't as heavy-handed
9607 # as -z defs.
9608 no_undefined_flag='${wl}-z,text'
9609 allow_undefined_flag='${wl}-z,nodefs'
9610 archive_cmds_need_lc=no
9611 hardcode_shlibpath_var=no
9612 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9613 hardcode_libdir_separator=':'
9614 link_all_deplibs=yes
9615 export_dynamic_flag_spec='${wl}-Bexport'
9616 runpath_var='LD_RUN_PATH'
9617
9618 if test "$GCC" = yes; then
9619 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9620 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9621 else
9622 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9624 fi
9625 ;;
9626
9627 uts4*)
9628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9629 hardcode_libdir_flag_spec='-L$libdir'
9630 hardcode_shlibpath_var=no
9631 ;;
9632
9633 *)
9634 ld_shlibs=no
9635 ;;
9636 esac
9637 fi
9638
9639 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9640 echo "${ECHO_T}$ld_shlibs" >&6; }
9641 test "$ld_shlibs" = no && can_build_shared=no
9642
9643 #
9644 # Do we need to explicitly link libc?
9645 #
9646 case "x$archive_cmds_need_lc" in
9647 x|xyes)
9648 # Assume -lc should be added
9649 archive_cmds_need_lc=yes
9650
9651 if test "$enable_shared" = yes && test "$GCC" = yes; then
9652 case $archive_cmds in
9653 *'~'*)
9654 # FIXME: we may have to deal with multi-command sequences.
9655 ;;
9656 '$CC '*)
9657 # Test whether the compiler implicitly links with -lc since on some
9658 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9659 # to ld, don't add -lc before -lgcc.
9660 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9661 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9662 $rm conftest*
9663 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9664
9665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9666 (eval $ac_compile) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } 2>conftest.err; then
9670 soname=conftest
9671 lib=conftest
9672 libobjs=conftest.$ac_objext
9673 deplibs=
9674 wl=$lt_prog_compiler_wl
9675 pic_flag=$lt_prog_compiler_pic
9676 compiler_flags=-v
9677 linker_flags=-v
9678 verstring=
9679 output_objdir=.
9680 libname=conftest
9681 lt_save_allow_undefined_flag=$allow_undefined_flag
9682 allow_undefined_flag=
9683 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9684 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }
9688 then
9689 archive_cmds_need_lc=no
9690 else
9691 archive_cmds_need_lc=yes
9692 fi
9693 allow_undefined_flag=$lt_save_allow_undefined_flag
9694 else
9695 cat conftest.err 1>&5
9696 fi
9697 $rm conftest*
9698 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9699 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9700 ;;
9701 esac
9702 fi
9703 ;;
9704 esac
9705
9706 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9707 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9708 library_names_spec=
9709 libname_spec='lib$name'
9710 soname_spec=
9711 shrext_cmds=".so"
9712 postinstall_cmds=
9713 postuninstall_cmds=
9714 finish_cmds=
9715 finish_eval=
9716 shlibpath_var=
9717 shlibpath_overrides_runpath=unknown
9718 version_type=none
9719 dynamic_linker="$host_os ld.so"
9720 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9721 if test "$GCC" = yes; then
9722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9723 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9724 # if the path contains ";" then we assume it to be the separator
9725 # otherwise default to the standard path separator (i.e. ":") - it is
9726 # assumed that no part of a normal pathname contains ";" but that should
9727 # okay in the real world where ";" in dirpaths is itself problematic.
9728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9729 else
9730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9731 fi
9732 else
9733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9734 fi
9735 need_lib_prefix=unknown
9736 hardcode_into_libs=no
9737
9738 # when you set need_version to no, make sure it does not cause -set_version
9739 # flags to be left without arguments
9740 need_version=unknown
9741
9742 case $host_os in
9743 aix3*)
9744 version_type=linux
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9746 shlibpath_var=LIBPATH
9747
9748 # AIX 3 has no versioning support, so we append a major version to the name.
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 ;;
9751
9752 aix4* | aix5*)
9753 version_type=linux
9754 need_lib_prefix=no
9755 need_version=no
9756 hardcode_into_libs=yes
9757 if test "$host_cpu" = ia64; then
9758 # AIX 5 supports IA64
9759 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9760 shlibpath_var=LD_LIBRARY_PATH
9761 else
9762 # With GCC up to 2.95.x, collect2 would create an import file
9763 # for dependence libraries. The import file would start with
9764 # the line `#! .'. This would cause the generated library to
9765 # depend on `.', always an invalid library. This was fixed in
9766 # development snapshots of GCC prior to 3.0.
9767 case $host_os in
9768 aix4 | aix4.[01] | aix4.[01].*)
9769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9770 echo ' yes '
9771 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9772 :
9773 else
9774 can_build_shared=no
9775 fi
9776 ;;
9777 esac
9778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9779 # soname into executable. Probably we can add versioning support to
9780 # collect2, so additional links can be useful in future.
9781 if test "$aix_use_runtimelinking" = yes; then
9782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9783 # instead of lib<name>.a to let people know that these are not
9784 # typical AIX shared libraries.
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9786 else
9787 # We preserve .a as extension for shared libraries through AIX4.2
9788 # and later when we are not doing run time linking.
9789 library_names_spec='${libname}${release}.a $libname.a'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 fi
9792 shlibpath_var=LIBPATH
9793 fi
9794 ;;
9795
9796 amigaos*)
9797 library_names_spec='$libname.ixlibrary $libname.a'
9798 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9799 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'
9800 ;;
9801
9802 beos*)
9803 library_names_spec='${libname}${shared_ext}'
9804 dynamic_linker="$host_os ld.so"
9805 shlibpath_var=LIBRARY_PATH
9806 ;;
9807
9808 bsdi[45]*)
9809 version_type=linux
9810 need_version=no
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9812 soname_spec='${libname}${release}${shared_ext}$major'
9813 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9816 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9817 # the default ld.so.conf also contains /usr/contrib/lib and
9818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9819 # libtool to hard-code these into programs
9820 ;;
9821
9822 cygwin* | mingw* | pw32*)
9823 version_type=windows
9824 shrext_cmds=".dll"
9825 need_version=no
9826 need_lib_prefix=no
9827
9828 case $GCC,$host_os in
9829 yes,cygwin* | yes,mingw* | yes,pw32*)
9830 library_names_spec='$libname.dll.a'
9831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9832 postinstall_cmds='base_file=`basename \${file}`~
9833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9834 dldir=$destdir/`dirname \$dlpath`~
9835 test -d \$dldir || mkdir -p \$dldir~
9836 $install_prog $dir/$dlname \$dldir/$dlname~
9837 chmod a+x \$dldir/$dlname'
9838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9839 dlpath=$dir/\$dldll~
9840 $rm \$dlpath'
9841 shlibpath_overrides_runpath=yes
9842
9843 case $host_os in
9844 cygwin*)
9845 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9846 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9847 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9848 ;;
9849 mingw*)
9850 # MinGW DLLs use traditional 'lib' prefix
9851 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9852 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9853 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9854 # It is most probably a Windows format PATH printed by
9855 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9856 # path with ; separators, and with drive letters. We can handle the
9857 # drive letters (cygwin fileutils understands them), so leave them,
9858 # especially as we might pass files found there to a mingw objdump,
9859 # which wouldn't understand a cygwinified path. Ahh.
9860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9861 else
9862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9863 fi
9864 ;;
9865 pw32*)
9866 # pw32 DLLs use 'pw' prefix rather than 'lib'
9867 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9868 ;;
9869 esac
9870 ;;
9871
9872 *)
9873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9874 ;;
9875 esac
9876 dynamic_linker='Win32 ld.exe'
9877 # FIXME: first we should search . and the directory the executable is in
9878 shlibpath_var=PATH
9879 ;;
9880
9881 darwin* | rhapsody*)
9882 dynamic_linker="$host_os dyld"
9883 version_type=darwin
9884 need_lib_prefix=no
9885 need_version=no
9886 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9887 soname_spec='${libname}${release}${major}$shared_ext'
9888 shlibpath_overrides_runpath=yes
9889 shlibpath_var=DYLD_LIBRARY_PATH
9890 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9891 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9892 if test "$GCC" = yes; then
9893 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"`
9894 else
9895 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9896 fi
9897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9898 ;;
9899
9900 dgux*)
9901 version_type=linux
9902 need_lib_prefix=no
9903 need_version=no
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9905 soname_spec='${libname}${release}${shared_ext}$major'
9906 shlibpath_var=LD_LIBRARY_PATH
9907 ;;
9908
9909 freebsd1*)
9910 dynamic_linker=no
9911 ;;
9912
9913 kfreebsd*-gnu)
9914 version_type=linux
9915 need_lib_prefix=no
9916 need_version=no
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 shlibpath_overrides_runpath=no
9921 hardcode_into_libs=yes
9922 dynamic_linker='GNU ld.so'
9923 ;;
9924
9925 freebsd* | dragonfly*)
9926 # DragonFly does not have aout. When/if they implement a new
9927 # versioning mechanism, adjust this.
9928 if test -x /usr/bin/objformat; then
9929 objformat=`/usr/bin/objformat`
9930 else
9931 case $host_os in
9932 freebsd[123]*) objformat=aout ;;
9933 *) objformat=elf ;;
9934 esac
9935 fi
9936 version_type=freebsd-$objformat
9937 case $version_type in
9938 freebsd-elf*)
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9940 need_version=no
9941 need_lib_prefix=no
9942 ;;
9943 freebsd-*)
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9945 need_version=yes
9946 ;;
9947 esac
9948 shlibpath_var=LD_LIBRARY_PATH
9949 case $host_os in
9950 freebsd2*)
9951 shlibpath_overrides_runpath=yes
9952 ;;
9953 freebsd3.[01]* | freebsdelf3.[01]*)
9954 shlibpath_overrides_runpath=yes
9955 hardcode_into_libs=yes
9956 ;;
9957 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9958 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9959 shlibpath_overrides_runpath=no
9960 hardcode_into_libs=yes
9961 ;;
9962 freebsd*) # from 4.6 on
9963 shlibpath_overrides_runpath=yes
9964 hardcode_into_libs=yes
9965 ;;
9966 esac
9967 ;;
9968
9969 gnu*)
9970 version_type=linux
9971 need_lib_prefix=no
9972 need_version=no
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9974 soname_spec='${libname}${release}${shared_ext}$major'
9975 shlibpath_var=LD_LIBRARY_PATH
9976 hardcode_into_libs=yes
9977 ;;
9978
9979 hpux9* | hpux10* | hpux11*)
9980 # Give a soname corresponding to the major version so that dld.sl refuses to
9981 # link against other versions.
9982 version_type=sunos
9983 need_lib_prefix=no
9984 need_version=no
9985 case $host_cpu in
9986 ia64*)
9987 shrext_cmds='.so'
9988 hardcode_into_libs=yes
9989 dynamic_linker="$host_os dld.so"
9990 shlibpath_var=LD_LIBRARY_PATH
9991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993 soname_spec='${libname}${release}${shared_ext}$major'
9994 if test "X$HPUX_IA64_MODE" = X32; then
9995 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9996 else
9997 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9998 fi
9999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10000 ;;
10001 hppa*64*)
10002 shrext_cmds='.sl'
10003 hardcode_into_libs=yes
10004 dynamic_linker="$host_os dld.sl"
10005 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008 soname_spec='${libname}${release}${shared_ext}$major'
10009 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10011 ;;
10012 *)
10013 shrext_cmds='.sl'
10014 dynamic_linker="$host_os dld.sl"
10015 shlibpath_var=SHLIB_PATH
10016 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 ;;
10020 esac
10021 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10022 postinstall_cmds='chmod 555 $lib'
10023 ;;
10024
10025 interix3*)
10026 version_type=linux
10027 need_lib_prefix=no
10028 need_version=no
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 shlibpath_overrides_runpath=no
10034 hardcode_into_libs=yes
10035 ;;
10036
10037 irix5* | irix6* | nonstopux*)
10038 case $host_os in
10039 nonstopux*) version_type=nonstopux ;;
10040 *)
10041 if test "$lt_cv_prog_gnu_ld" = yes; then
10042 version_type=linux
10043 else
10044 version_type=irix
10045 fi ;;
10046 esac
10047 need_lib_prefix=no
10048 need_version=no
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10051 case $host_os in
10052 irix5* | nonstopux*)
10053 libsuff= shlibsuff=
10054 ;;
10055 *)
10056 case $LD in # libtool.m4 will add one of these switches to LD
10057 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10058 libsuff= shlibsuff= libmagic=32-bit;;
10059 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10060 libsuff=32 shlibsuff=N32 libmagic=N32;;
10061 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10062 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10063 *) libsuff= shlibsuff= libmagic=never-match;;
10064 esac
10065 ;;
10066 esac
10067 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10068 shlibpath_overrides_runpath=no
10069 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10070 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10071 hardcode_into_libs=yes
10072 ;;
10073
10074 # No shared lib support for Linux oldld, aout, or coff.
10075 linux*oldld* | linux*aout* | linux*coff*)
10076 dynamic_linker=no
10077 ;;
10078
10079 # This must be Linux ELF.
10080 linux*)
10081 version_type=linux
10082 need_lib_prefix=no
10083 need_version=no
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10087 shlibpath_var=LD_LIBRARY_PATH
10088 shlibpath_overrides_runpath=no
10089 # This implies no fast_install, which is unacceptable.
10090 # Some rework will be needed to allow for fast_install
10091 # before this can be enabled.
10092 hardcode_into_libs=yes
10093
10094 # find out which ABI we are using
10095 libsuff=
10096 case "$host_cpu" in
10097 x86_64*|s390x*|powerpc64*)
10098 echo '#line 10098 "configure"' > conftest.$ac_ext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10100 (eval $ac_compile) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; then
10104 case `/usr/bin/file conftest.$ac_objext` in
10105 *64-bit*)
10106 libsuff=64
10107 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
10108 ;;
10109 esac
10110 fi
10111 rm -rf conftest*
10112 ;;
10113 esac
10114
10115 # Append ld.so.conf contents to the search path
10116 if test -f /etc/ld.so.conf; then
10117 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10118 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
10119 fi
10120
10121 # We used to test for /lib/ld.so.1 and disable shared libraries on
10122 # powerpc, because MkLinux only supported shared libraries with the
10123 # GNU dynamic linker. Since this was broken with cross compilers,
10124 # most powerpc-linux boxes support dynamic linking these days and
10125 # people can always --disable-shared, the test was removed, and we
10126 # assume the GNU/Linux dynamic linker is in use.
10127 dynamic_linker='GNU/Linux ld.so'
10128 ;;
10129
10130 knetbsd*-gnu)
10131 version_type=linux
10132 need_lib_prefix=no
10133 need_version=no
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 shlibpath_var=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath=no
10138 hardcode_into_libs=yes
10139 dynamic_linker='GNU ld.so'
10140 ;;
10141
10142 netbsd*)
10143 version_type=sunos
10144 need_lib_prefix=no
10145 need_version=no
10146 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10149 dynamic_linker='NetBSD (a.out) ld.so'
10150 else
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 dynamic_linker='NetBSD ld.elf_so'
10154 fi
10155 shlibpath_var=LD_LIBRARY_PATH
10156 shlibpath_overrides_runpath=yes
10157 hardcode_into_libs=yes
10158 ;;
10159
10160 newsos6)
10161 version_type=linux
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 shlibpath_overrides_runpath=yes
10165 ;;
10166
10167 nto-qnx*)
10168 version_type=linux
10169 need_lib_prefix=no
10170 need_version=no
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=yes
10175 ;;
10176
10177 openbsd*)
10178 version_type=sunos
10179 sys_lib_dlsearch_path_spec="/usr/lib"
10180 need_lib_prefix=no
10181 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10182 case $host_os in
10183 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10184 *) need_version=no ;;
10185 esac
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10188 shlibpath_var=LD_LIBRARY_PATH
10189 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10190 case $host_os in
10191 openbsd2.[89] | openbsd2.[89].*)
10192 shlibpath_overrides_runpath=no
10193 ;;
10194 *)
10195 shlibpath_overrides_runpath=yes
10196 ;;
10197 esac
10198 else
10199 shlibpath_overrides_runpath=yes
10200 fi
10201 ;;
10202
10203 os2*)
10204 libname_spec='$name'
10205 shrext_cmds=".dll"
10206 need_lib_prefix=no
10207 library_names_spec='$libname${shared_ext} $libname.a'
10208 dynamic_linker='OS/2 ld.exe'
10209 shlibpath_var=LIBPATH
10210 ;;
10211
10212 osf3* | osf4* | osf5*)
10213 version_type=osf
10214 need_lib_prefix=no
10215 need_version=no
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10220 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10221 ;;
10222
10223 solaris*)
10224 version_type=linux
10225 need_lib_prefix=no
10226 need_version=no
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=yes
10231 hardcode_into_libs=yes
10232 # ldd complains unless libraries are executable
10233 postinstall_cmds='chmod +x $lib'
10234 ;;
10235
10236 sunos4*)
10237 version_type=sunos
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10239 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath=yes
10242 if test "$with_gnu_ld" = yes; then
10243 need_lib_prefix=no
10244 fi
10245 need_version=yes
10246 ;;
10247
10248 sysv4 | sysv4.3*)
10249 version_type=linux
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 case $host_vendor in
10254 sni)
10255 shlibpath_overrides_runpath=no
10256 need_lib_prefix=no
10257 export_dynamic_flag_spec='${wl}-Blargedynsym'
10258 runpath_var=LD_RUN_PATH
10259 ;;
10260 siemens)
10261 need_lib_prefix=no
10262 ;;
10263 motorola)
10264 need_lib_prefix=no
10265 need_version=no
10266 shlibpath_overrides_runpath=no
10267 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10268 ;;
10269 esac
10270 ;;
10271
10272 sysv4*MP*)
10273 if test -d /usr/nec ;then
10274 version_type=linux
10275 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10276 soname_spec='$libname${shared_ext}.$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 fi
10279 ;;
10280
10281 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10282 version_type=freebsd-elf
10283 need_lib_prefix=no
10284 need_version=no
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 hardcode_into_libs=yes
10289 if test "$with_gnu_ld" = yes; then
10290 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10291 shlibpath_overrides_runpath=no
10292 else
10293 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10294 shlibpath_overrides_runpath=yes
10295 case $host_os in
10296 sco3.2v5*)
10297 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10298 ;;
10299 esac
10300 fi
10301 sys_lib_dlsearch_path_spec='/usr/lib'
10302 ;;
10303
10304 uts4*)
10305 version_type=linux
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 ;;
10310
10311 *)
10312 dynamic_linker=no
10313 ;;
10314 esac
10315 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10316 echo "${ECHO_T}$dynamic_linker" >&6; }
10317 test "$dynamic_linker" = no && can_build_shared=no
10318
10319 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10320 if test "$GCC" = yes; then
10321 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10322 fi
10323
10324 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10325 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10326 hardcode_action=
10327 if test -n "$hardcode_libdir_flag_spec" || \
10328 test -n "$runpath_var" || \
10329 test "X$hardcode_automatic" = "Xyes" ; then
10330
10331 # We can hardcode non-existant directories.
10332 if test "$hardcode_direct" != no &&
10333 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10334 # have to relink, otherwise we might link with an installed library
10335 # when we should be linking with a yet-to-be-installed one
10336 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10337 test "$hardcode_minus_L" != no; then
10338 # Linking always hardcodes the temporary library directory.
10339 hardcode_action=relink
10340 else
10341 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10342 hardcode_action=immediate
10343 fi
10344 else
10345 # We cannot hardcode anything, or else we can only hardcode existing
10346 # directories.
10347 hardcode_action=unsupported
10348 fi
10349 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10350 echo "${ECHO_T}$hardcode_action" >&6; }
10351
10352 if test "$hardcode_action" = relink; then
10353 # Fast installation is not supported
10354 enable_fast_install=no
10355 elif test "$shlibpath_overrides_runpath" = yes ||
10356 test "$enable_shared" = no; then
10357 # Fast installation is not necessary
10358 enable_fast_install=needless
10359 fi
10360
10361 striplib=
10362 old_striplib=
10363 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10364 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10365 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10366 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10367 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10368 { echo "$as_me:$LINENO: result: yes" >&5
10369 echo "${ECHO_T}yes" >&6; }
10370 else
10371 # FIXME - insert some real tests, host_os isn't really good enough
10372 case $host_os in
10373 darwin*)
10374 if test -n "$STRIP" ; then
10375 striplib="$STRIP -x"
10376 { echo "$as_me:$LINENO: result: yes" >&5
10377 echo "${ECHO_T}yes" >&6; }
10378 else
10379 { echo "$as_me:$LINENO: result: no" >&5
10380 echo "${ECHO_T}no" >&6; }
10381 fi
10382 ;;
10383 *)
10384 { echo "$as_me:$LINENO: result: no" >&5
10385 echo "${ECHO_T}no" >&6; }
10386 ;;
10387 esac
10388 fi
10389
10390 if test "x$enable_dlopen" != xyes; then
10391 enable_dlopen=unknown
10392 enable_dlopen_self=unknown
10393 enable_dlopen_self_static=unknown
10394 else
10395 lt_cv_dlopen=no
10396 lt_cv_dlopen_libs=
10397
10398 case $host_os in
10399 beos*)
10400 lt_cv_dlopen="load_add_on"
10401 lt_cv_dlopen_libs=
10402 lt_cv_dlopen_self=yes
10403 ;;
10404
10405 mingw* | pw32*)
10406 lt_cv_dlopen="LoadLibrary"
10407 lt_cv_dlopen_libs=
10408 ;;
10409
10410 cygwin*)
10411 lt_cv_dlopen="dlopen"
10412 lt_cv_dlopen_libs=
10413 ;;
10414
10415 darwin*)
10416 # if libdl is installed we need to link against it
10417 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10418 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 else
10422 ac_check_lib_save_LIBS=$LIBS
10423 LIBS="-ldl $LIBS"
10424 cat >conftest.$ac_ext <<_ACEOF
10425 /* confdefs.h. */
10426 _ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430
10431 /* Override any GCC internal prototype to avoid an error.
10432 Use char because int might match the return type of a GCC
10433 builtin and then its argument prototype would still apply. */
10434 #ifdef __cplusplus
10435 extern "C"
10436 #endif
10437 char dlopen ();
10438 int
10439 main ()
10440 {
10441 return dlopen ();
10442 ;
10443 return 0;
10444 }
10445 _ACEOF
10446 rm -f conftest.$ac_objext conftest$ac_exeext
10447 if { (ac_try="$ac_link"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10451 esac
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_link") 2>conftest.er1
10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest$ac_exeext &&
10463 $as_test_x conftest$ac_exeext; then
10464 ac_cv_lib_dl_dlopen=yes
10465 else
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469 ac_cv_lib_dl_dlopen=no
10470 fi
10471
10472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10473 conftest$ac_exeext conftest.$ac_ext
10474 LIBS=$ac_check_lib_save_LIBS
10475 fi
10476 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10477 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10478 if test $ac_cv_lib_dl_dlopen = yes; then
10479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10480 else
10481
10482 lt_cv_dlopen="dyld"
10483 lt_cv_dlopen_libs=
10484 lt_cv_dlopen_self=yes
10485
10486 fi
10487
10488 ;;
10489
10490 *)
10491 { echo "$as_me:$LINENO: checking for shl_load" >&5
10492 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10493 if test "${ac_cv_func_shl_load+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h. */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10502 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10504 #define shl_load innocuous_shl_load
10505
10506 /* System header to define __stub macros and hopefully few prototypes,
10507 which can conflict with char shl_load (); below.
10508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10509 <limits.h> exists even on freestanding compilers. */
10510
10511 #ifdef __STDC__
10512 # include <limits.h>
10513 #else
10514 # include <assert.h>
10515 #endif
10516
10517 #undef shl_load
10518
10519 /* Override any GCC internal prototype to avoid an error.
10520 Use char because int might match the return type of a GCC
10521 builtin and then its argument prototype would still apply. */
10522 #ifdef __cplusplus
10523 extern "C"
10524 #endif
10525 char shl_load ();
10526 /* The GNU C library defines this for functions which it implements
10527 to always fail with ENOSYS. Some functions are actually named
10528 something starting with __ and the normal name is an alias. */
10529 #if defined __stub_shl_load || defined __stub___shl_load
10530 choke me
10531 #endif
10532
10533 int
10534 main ()
10535 {
10536 return shl_load ();
10537 ;
10538 return 0;
10539 }
10540 _ACEOF
10541 rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (ac_try="$ac_link"
10543 case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10546 esac
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_link") 2>conftest.er1
10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } && {
10555 test -z "$ac_c_werror_flag" ||
10556 test ! -s conftest.err
10557 } && test -s conftest$ac_exeext &&
10558 $as_test_x conftest$ac_exeext; then
10559 ac_cv_func_shl_load=yes
10560 else
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10563
10564 ac_cv_func_shl_load=no
10565 fi
10566
10567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10568 conftest$ac_exeext conftest.$ac_ext
10569 fi
10570 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10571 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10572 if test $ac_cv_func_shl_load = yes; then
10573 lt_cv_dlopen="shl_load"
10574 else
10575 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10576 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10577 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580 ac_check_lib_save_LIBS=$LIBS
10581 LIBS="-ldld $LIBS"
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h. */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588
10589 /* Override any GCC internal prototype to avoid an error.
10590 Use char because int might match the return type of a GCC
10591 builtin and then its argument prototype would still apply. */
10592 #ifdef __cplusplus
10593 extern "C"
10594 #endif
10595 char shl_load ();
10596 int
10597 main ()
10598 {
10599 return shl_load ();
10600 ;
10601 return 0;
10602 }
10603 _ACEOF
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (ac_try="$ac_link"
10606 case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10609 esac
10610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_link") 2>conftest.er1
10612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } && {
10618 test -z "$ac_c_werror_flag" ||
10619 test ! -s conftest.err
10620 } && test -s conftest$ac_exeext &&
10621 $as_test_x conftest$ac_exeext; then
10622 ac_cv_lib_dld_shl_load=yes
10623 else
10624 echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10626
10627 ac_cv_lib_dld_shl_load=no
10628 fi
10629
10630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10631 conftest$ac_exeext conftest.$ac_ext
10632 LIBS=$ac_check_lib_save_LIBS
10633 fi
10634 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10635 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10636 if test $ac_cv_lib_dld_shl_load = yes; then
10637 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10638 else
10639 { echo "$as_me:$LINENO: checking for dlopen" >&5
10640 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10641 if test "${ac_cv_func_dlopen+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h. */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10652 #define dlopen innocuous_dlopen
10653
10654 /* System header to define __stub macros and hopefully few prototypes,
10655 which can conflict with char dlopen (); below.
10656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10657 <limits.h> exists even on freestanding compilers. */
10658
10659 #ifdef __STDC__
10660 # include <limits.h>
10661 #else
10662 # include <assert.h>
10663 #endif
10664
10665 #undef dlopen
10666
10667 /* Override any GCC internal prototype to avoid an error.
10668 Use char because int might match the return type of a GCC
10669 builtin and then its argument prototype would still apply. */
10670 #ifdef __cplusplus
10671 extern "C"
10672 #endif
10673 char dlopen ();
10674 /* The GNU C library defines this for functions which it implements
10675 to always fail with ENOSYS. Some functions are actually named
10676 something starting with __ and the normal name is an alias. */
10677 #if defined __stub_dlopen || defined __stub___dlopen
10678 choke me
10679 #endif
10680
10681 int
10682 main ()
10683 {
10684 return dlopen ();
10685 ;
10686 return 0;
10687 }
10688 _ACEOF
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (ac_try="$ac_link"
10691 case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694 esac
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_link") 2>conftest.er1
10697 ac_status=$?
10698 grep -v '^ *+' conftest.er1 >conftest.err
10699 rm -f conftest.er1
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } && {
10703 test -z "$ac_c_werror_flag" ||
10704 test ! -s conftest.err
10705 } && test -s conftest$ac_exeext &&
10706 $as_test_x conftest$ac_exeext; then
10707 ac_cv_func_dlopen=yes
10708 else
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10711
10712 ac_cv_func_dlopen=no
10713 fi
10714
10715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10716 conftest$ac_exeext conftest.$ac_ext
10717 fi
10718 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10719 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10720 if test $ac_cv_func_dlopen = yes; then
10721 lt_cv_dlopen="dlopen"
10722 else
10723 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10724 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10725 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728 ac_check_lib_save_LIBS=$LIBS
10729 LIBS="-ldl $LIBS"
10730 cat >conftest.$ac_ext <<_ACEOF
10731 /* confdefs.h. */
10732 _ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10736
10737 /* Override any GCC internal prototype to avoid an error.
10738 Use char because int might match the return type of a GCC
10739 builtin and then its argument prototype would still apply. */
10740 #ifdef __cplusplus
10741 extern "C"
10742 #endif
10743 char dlopen ();
10744 int
10745 main ()
10746 {
10747 return dlopen ();
10748 ;
10749 return 0;
10750 }
10751 _ACEOF
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (ac_try="$ac_link"
10754 case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10757 esac
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_link") 2>conftest.er1
10760 ac_status=$?
10761 grep -v '^ *+' conftest.er1 >conftest.err
10762 rm -f conftest.er1
10763 cat conftest.err >&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } && {
10766 test -z "$ac_c_werror_flag" ||
10767 test ! -s conftest.err
10768 } && test -s conftest$ac_exeext &&
10769 $as_test_x conftest$ac_exeext; then
10770 ac_cv_lib_dl_dlopen=yes
10771 else
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10774
10775 ac_cv_lib_dl_dlopen=no
10776 fi
10777
10778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10779 conftest$ac_exeext conftest.$ac_ext
10780 LIBS=$ac_check_lib_save_LIBS
10781 fi
10782 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10783 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10784 if test $ac_cv_lib_dl_dlopen = yes; then
10785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10786 else
10787 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10788 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10789 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792 ac_check_lib_save_LIBS=$LIBS
10793 LIBS="-lsvld $LIBS"
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h. */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800
10801 /* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 char dlopen ();
10808 int
10809 main ()
10810 {
10811 return dlopen ();
10812 ;
10813 return 0;
10814 }
10815 _ACEOF
10816 rm -f conftest.$ac_objext conftest$ac_exeext
10817 if { (ac_try="$ac_link"
10818 case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10821 esac
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_link") 2>conftest.er1
10824 ac_status=$?
10825 grep -v '^ *+' conftest.er1 >conftest.err
10826 rm -f conftest.er1
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } && {
10830 test -z "$ac_c_werror_flag" ||
10831 test ! -s conftest.err
10832 } && test -s conftest$ac_exeext &&
10833 $as_test_x conftest$ac_exeext; then
10834 ac_cv_lib_svld_dlopen=yes
10835 else
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839 ac_cv_lib_svld_dlopen=no
10840 fi
10841
10842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10843 conftest$ac_exeext conftest.$ac_ext
10844 LIBS=$ac_check_lib_save_LIBS
10845 fi
10846 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10847 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10848 if test $ac_cv_lib_svld_dlopen = yes; then
10849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10850 else
10851 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10852 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10853 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 else
10856 ac_check_lib_save_LIBS=$LIBS
10857 LIBS="-ldld $LIBS"
10858 cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h. */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864
10865 /* Override any GCC internal prototype to avoid an error.
10866 Use char because int might match the return type of a GCC
10867 builtin and then its argument prototype would still apply. */
10868 #ifdef __cplusplus
10869 extern "C"
10870 #endif
10871 char dld_link ();
10872 int
10873 main ()
10874 {
10875 return dld_link ();
10876 ;
10877 return 0;
10878 }
10879 _ACEOF
10880 rm -f conftest.$ac_objext conftest$ac_exeext
10881 if { (ac_try="$ac_link"
10882 case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10885 esac
10886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887 (eval "$ac_link") 2>conftest.er1
10888 ac_status=$?
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } && {
10894 test -z "$ac_c_werror_flag" ||
10895 test ! -s conftest.err
10896 } && test -s conftest$ac_exeext &&
10897 $as_test_x conftest$ac_exeext; then
10898 ac_cv_lib_dld_dld_link=yes
10899 else
10900 echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.$ac_ext >&5
10902
10903 ac_cv_lib_dld_dld_link=no
10904 fi
10905
10906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10907 conftest$ac_exeext conftest.$ac_ext
10908 LIBS=$ac_check_lib_save_LIBS
10909 fi
10910 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10911 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10912 if test $ac_cv_lib_dld_dld_link = yes; then
10913 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10914 fi
10915
10916
10917 fi
10918
10919
10920 fi
10921
10922
10923 fi
10924
10925
10926 fi
10927
10928
10929 fi
10930
10931 ;;
10932 esac
10933
10934 if test "x$lt_cv_dlopen" != xno; then
10935 enable_dlopen=yes
10936 else
10937 enable_dlopen=no
10938 fi
10939
10940 case $lt_cv_dlopen in
10941 dlopen)
10942 save_CPPFLAGS="$CPPFLAGS"
10943 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10944
10945 save_LDFLAGS="$LDFLAGS"
10946 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10947
10948 save_LIBS="$LIBS"
10949 LIBS="$lt_cv_dlopen_libs $LIBS"
10950
10951 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10952 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10953 if test "${lt_cv_dlopen_self+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10956 if test "$cross_compiling" = yes; then :
10957 lt_cv_dlopen_self=cross
10958 else
10959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10960 lt_status=$lt_dlunknown
10961 cat > conftest.$ac_ext <<EOF
10962 #line 10962 "configure"
10963 #include "confdefs.h"
10964
10965 #if HAVE_DLFCN_H
10966 #include <dlfcn.h>
10967 #endif
10968
10969 #include <stdio.h>
10970
10971 #ifdef RTLD_GLOBAL
10972 # define LT_DLGLOBAL RTLD_GLOBAL
10973 #else
10974 # ifdef DL_GLOBAL
10975 # define LT_DLGLOBAL DL_GLOBAL
10976 # else
10977 # define LT_DLGLOBAL 0
10978 # endif
10979 #endif
10980
10981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10982 find out it does not work in some platform. */
10983 #ifndef LT_DLLAZY_OR_NOW
10984 # ifdef RTLD_LAZY
10985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10986 # else
10987 # ifdef DL_LAZY
10988 # define LT_DLLAZY_OR_NOW DL_LAZY
10989 # else
10990 # ifdef RTLD_NOW
10991 # define LT_DLLAZY_OR_NOW RTLD_NOW
10992 # else
10993 # ifdef DL_NOW
10994 # define LT_DLLAZY_OR_NOW DL_NOW
10995 # else
10996 # define LT_DLLAZY_OR_NOW 0
10997 # endif
10998 # endif
10999 # endif
11000 # endif
11001 #endif
11002
11003 #ifdef __cplusplus
11004 extern "C" void exit (int);
11005 #endif
11006
11007 void fnord() { int i=42;}
11008 int main ()
11009 {
11010 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11011 int status = $lt_dlunknown;
11012
11013 if (self)
11014 {
11015 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11016 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11017 /* dlclose (self); */
11018 }
11019 else
11020 puts (dlerror ());
11021
11022 exit (status);
11023 }
11024 EOF
11025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026 (eval $ac_link) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11030 (./conftest; exit; ) >&5 2>/dev/null
11031 lt_status=$?
11032 case x$lt_status in
11033 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11034 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11035 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11036 esac
11037 else :
11038 # compilation failed
11039 lt_cv_dlopen_self=no
11040 fi
11041 fi
11042 rm -fr conftest*
11043
11044
11045 fi
11046 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11047 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11048
11049 if test "x$lt_cv_dlopen_self" = xyes; then
11050 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11051 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11052 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11053 if test "${lt_cv_dlopen_self_static+set}" = set; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 else
11056 if test "$cross_compiling" = yes; then :
11057 lt_cv_dlopen_self_static=cross
11058 else
11059 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11060 lt_status=$lt_dlunknown
11061 cat > conftest.$ac_ext <<EOF
11062 #line 11062 "configure"
11063 #include "confdefs.h"
11064
11065 #if HAVE_DLFCN_H
11066 #include <dlfcn.h>
11067 #endif
11068
11069 #include <stdio.h>
11070
11071 #ifdef RTLD_GLOBAL
11072 # define LT_DLGLOBAL RTLD_GLOBAL
11073 #else
11074 # ifdef DL_GLOBAL
11075 # define LT_DLGLOBAL DL_GLOBAL
11076 # else
11077 # define LT_DLGLOBAL 0
11078 # endif
11079 #endif
11080
11081 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11082 find out it does not work in some platform. */
11083 #ifndef LT_DLLAZY_OR_NOW
11084 # ifdef RTLD_LAZY
11085 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11086 # else
11087 # ifdef DL_LAZY
11088 # define LT_DLLAZY_OR_NOW DL_LAZY
11089 # else
11090 # ifdef RTLD_NOW
11091 # define LT_DLLAZY_OR_NOW RTLD_NOW
11092 # else
11093 # ifdef DL_NOW
11094 # define LT_DLLAZY_OR_NOW DL_NOW
11095 # else
11096 # define LT_DLLAZY_OR_NOW 0
11097 # endif
11098 # endif
11099 # endif
11100 # endif
11101 #endif
11102
11103 #ifdef __cplusplus
11104 extern "C" void exit (int);
11105 #endif
11106
11107 void fnord() { int i=42;}
11108 int main ()
11109 {
11110 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11111 int status = $lt_dlunknown;
11112
11113 if (self)
11114 {
11115 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11116 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11117 /* dlclose (self); */
11118 }
11119 else
11120 puts (dlerror ());
11121
11122 exit (status);
11123 }
11124 EOF
11125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126 (eval $ac_link) 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11130 (./conftest; exit; ) >&5 2>/dev/null
11131 lt_status=$?
11132 case x$lt_status in
11133 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11134 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11135 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11136 esac
11137 else :
11138 # compilation failed
11139 lt_cv_dlopen_self_static=no
11140 fi
11141 fi
11142 rm -fr conftest*
11143
11144
11145 fi
11146 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11147 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11148 fi
11149
11150 CPPFLAGS="$save_CPPFLAGS"
11151 LDFLAGS="$save_LDFLAGS"
11152 LIBS="$save_LIBS"
11153 ;;
11154 esac
11155
11156 case $lt_cv_dlopen_self in
11157 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11158 *) enable_dlopen_self=unknown ;;
11159 esac
11160
11161 case $lt_cv_dlopen_self_static in
11162 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11163 *) enable_dlopen_self_static=unknown ;;
11164 esac
11165 fi
11166
11167
11168 # Report which library types will actually be built
11169 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11170 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11171 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11172 echo "${ECHO_T}$can_build_shared" >&6; }
11173
11174 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11175 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11176 test "$can_build_shared" = "no" && enable_shared=no
11177
11178 # On AIX, shared libraries and static libraries use the same namespace, and
11179 # are all built from PIC.
11180 case $host_os in
11181 aix3*)
11182 test "$enable_shared" = yes && enable_static=no
11183 if test -n "$RANLIB"; then
11184 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11185 postinstall_cmds='$RANLIB $lib'
11186 fi
11187 ;;
11188
11189 aix4* | aix5*)
11190 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11191 test "$enable_shared" = yes && enable_static=no
11192 fi
11193 ;;
11194 esac
11195 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11196 echo "${ECHO_T}$enable_shared" >&6; }
11197
11198 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11199 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11200 # Make sure either enable_shared or enable_static is yes.
11201 test "$enable_shared" = yes || enable_static=yes
11202 { echo "$as_me:$LINENO: result: $enable_static" >&5
11203 echo "${ECHO_T}$enable_static" >&6; }
11204
11205 # The else clause should only fire when bootstrapping the
11206 # libtool distribution, otherwise you forgot to ship ltmain.sh
11207 # with your package, and you will get complaints that there are
11208 # no rules to generate ltmain.sh.
11209 if test -f "$ltmain"; then
11210 # See if we are running on zsh, and set the options which allow our commands through
11211 # without removal of \ escapes.
11212 if test -n "${ZSH_VERSION+set}" ; then
11213 setopt NO_GLOB_SUBST
11214 fi
11215 # Now quote all the things that may contain metacharacters while being
11216 # careful not to overquote the AC_SUBSTed values. We take copies of the
11217 # variables and quote the copies for generation of the libtool script.
11218 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11219 SED SHELL STRIP \
11220 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11221 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11222 deplibs_check_method reload_flag reload_cmds need_locks \
11223 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11224 lt_cv_sys_global_symbol_to_c_name_address \
11225 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11226 old_postinstall_cmds old_postuninstall_cmds \
11227 compiler \
11228 CC \
11229 LD \
11230 lt_prog_compiler_wl \
11231 lt_prog_compiler_pic \
11232 lt_prog_compiler_static \
11233 lt_prog_compiler_no_builtin_flag \
11234 export_dynamic_flag_spec \
11235 thread_safe_flag_spec \
11236 whole_archive_flag_spec \
11237 enable_shared_with_static_runtimes \
11238 old_archive_cmds \
11239 old_archive_from_new_cmds \
11240 predep_objects \
11241 postdep_objects \
11242 predeps \
11243 postdeps \
11244 compiler_lib_search_path \
11245 archive_cmds \
11246 archive_expsym_cmds \
11247 postinstall_cmds \
11248 postuninstall_cmds \
11249 old_archive_from_expsyms_cmds \
11250 allow_undefined_flag \
11251 no_undefined_flag \
11252 export_symbols_cmds \
11253 hardcode_libdir_flag_spec \
11254 hardcode_libdir_flag_spec_ld \
11255 hardcode_libdir_separator \
11256 hardcode_automatic \
11257 module_cmds \
11258 module_expsym_cmds \
11259 lt_cv_prog_compiler_c_o \
11260 exclude_expsyms \
11261 include_expsyms; do
11262
11263 case $var in
11264 old_archive_cmds | \
11265 old_archive_from_new_cmds | \
11266 archive_cmds | \
11267 archive_expsym_cmds | \
11268 module_cmds | \
11269 module_expsym_cmds | \
11270 old_archive_from_expsyms_cmds | \
11271 export_symbols_cmds | \
11272 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11273 postinstall_cmds | postuninstall_cmds | \
11274 old_postinstall_cmds | old_postuninstall_cmds | \
11275 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11276 # Double-quote double-evaled strings.
11277 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11278 ;;
11279 *)
11280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11281 ;;
11282 esac
11283 done
11284
11285 case $lt_echo in
11286 *'\$0 --fallback-echo"')
11287 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11288 ;;
11289 esac
11290
11291 cfgfile="${ofile}T"
11292 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11293 $rm -f "$cfgfile"
11294 { echo "$as_me:$LINENO: creating $ofile" >&5
11295 echo "$as_me: creating $ofile" >&6;}
11296
11297 cat <<__EOF__ >> "$cfgfile"
11298 #! $SHELL
11299
11300 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11301 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11302 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11303 #
11304 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11305 # Free Software Foundation, Inc.
11306 #
11307 # This file is part of GNU Libtool:
11308 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11309 #
11310 # This program is free software; you can redistribute it and/or modify
11311 # it under the terms of the GNU General Public License as published by
11312 # the Free Software Foundation; either version 2 of the License, or
11313 # (at your option) any later version.
11314 #
11315 # This program is distributed in the hope that it will be useful, but
11316 # WITHOUT ANY WARRANTY; without even the implied warranty of
11317 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11318 # General Public License for more details.
11319 #
11320 # You should have received a copy of the GNU General Public License
11321 # along with this program; if not, write to the Free Software
11322 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11323 #
11324 # As a special exception to the GNU General Public License, if you
11325 # distribute this file as part of a program that contains a
11326 # configuration script generated by Autoconf, you may include it under
11327 # the same distribution terms that you use for the rest of that program.
11328
11329 # A sed program that does not truncate output.
11330 SED=$lt_SED
11331
11332 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11333 Xsed="$SED -e 1s/^X//"
11334
11335 # The HP-UX ksh and POSIX shell print the target directory to stdout
11336 # if CDPATH is set.
11337 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11338
11339 # The names of the tagged configurations supported by this script.
11340 available_tags=
11341
11342 # ### BEGIN LIBTOOL CONFIG
11343
11344 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11345
11346 # Shell to use when invoking shell scripts.
11347 SHELL=$lt_SHELL
11348
11349 # Whether or not to build shared libraries.
11350 build_libtool_libs=$enable_shared
11351
11352 # Whether or not to build static libraries.
11353 build_old_libs=$enable_static
11354
11355 # Whether or not to add -lc for building shared libraries.
11356 build_libtool_need_lc=$archive_cmds_need_lc
11357
11358 # Whether or not to disallow shared libs when runtime libs are static
11359 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11360
11361 # Whether or not to optimize for fast installation.
11362 fast_install=$enable_fast_install
11363
11364 # The host system.
11365 host_alias=$host_alias
11366 host=$host
11367 host_os=$host_os
11368
11369 # The build system.
11370 build_alias=$build_alias
11371 build=$build
11372 build_os=$build_os
11373
11374 # An echo program that does not interpret backslashes.
11375 echo=$lt_echo
11376
11377 # The archiver.
11378 AR=$lt_AR
11379 AR_FLAGS=$lt_AR_FLAGS
11380
11381 # A C compiler.
11382 LTCC=$lt_LTCC
11383
11384 # LTCC compiler flags.
11385 LTCFLAGS=$lt_LTCFLAGS
11386
11387 # A language-specific compiler.
11388 CC=$lt_compiler
11389
11390 # Is the compiler the GNU C compiler?
11391 with_gcc=$GCC
11392
11393 # An ERE matcher.
11394 EGREP=$lt_EGREP
11395
11396 # The linker used to build libraries.
11397 LD=$lt_LD
11398
11399 # Whether we need hard or soft links.
11400 LN_S=$lt_LN_S
11401
11402 # A BSD-compatible nm program.
11403 NM=$lt_NM
11404
11405 # A symbol stripping program
11406 STRIP=$lt_STRIP
11407
11408 # Used to examine libraries when file_magic_cmd begins "file"
11409 MAGIC_CMD=$MAGIC_CMD
11410
11411 # Used on cygwin: DLL creation program.
11412 DLLTOOL="$DLLTOOL"
11413
11414 # Used on cygwin: object dumper.
11415 OBJDUMP="$OBJDUMP"
11416
11417 # Used on cygwin: assembler.
11418 AS="$AS"
11419
11420 # The name of the directory that contains temporary libtool files.
11421 objdir=$objdir
11422
11423 # How to create reloadable object files.
11424 reload_flag=$lt_reload_flag
11425 reload_cmds=$lt_reload_cmds
11426
11427 # How to pass a linker flag through the compiler.
11428 wl=$lt_lt_prog_compiler_wl
11429
11430 # Object file suffix (normally "o").
11431 objext="$ac_objext"
11432
11433 # Old archive suffix (normally "a").
11434 libext="$libext"
11435
11436 # Shared library suffix (normally ".so").
11437 shrext_cmds='$shrext_cmds'
11438
11439 # Executable file suffix (normally "").
11440 exeext="$exeext"
11441
11442 # Additional compiler flags for building library objects.
11443 pic_flag=$lt_lt_prog_compiler_pic
11444 pic_mode=$pic_mode
11445
11446 # What is the maximum length of a command?
11447 max_cmd_len=$lt_cv_sys_max_cmd_len
11448
11449 # Does compiler simultaneously support -c and -o options?
11450 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11451
11452 # Must we lock files when doing compilation?
11453 need_locks=$lt_need_locks
11454
11455 # Do we need the lib prefix for modules?
11456 need_lib_prefix=$need_lib_prefix
11457
11458 # Do we need a version for libraries?
11459 need_version=$need_version
11460
11461 # Whether dlopen is supported.
11462 dlopen_support=$enable_dlopen
11463
11464 # Whether dlopen of programs is supported.
11465 dlopen_self=$enable_dlopen_self
11466
11467 # Whether dlopen of statically linked programs is supported.
11468 dlopen_self_static=$enable_dlopen_self_static
11469
11470 # Compiler flag to prevent dynamic linking.
11471 link_static_flag=$lt_lt_prog_compiler_static
11472
11473 # Compiler flag to turn off builtin functions.
11474 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11475
11476 # Compiler flag to allow reflexive dlopens.
11477 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11478
11479 # Compiler flag to generate shared objects directly from archives.
11480 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11481
11482 # Compiler flag to generate thread-safe objects.
11483 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11484
11485 # Library versioning type.
11486 version_type=$version_type
11487
11488 # Format of library name prefix.
11489 libname_spec=$lt_libname_spec
11490
11491 # List of archive names. First name is the real one, the rest are links.
11492 # The last name is the one that the linker finds with -lNAME.
11493 library_names_spec=$lt_library_names_spec
11494
11495 # The coded name of the library, if different from the real name.
11496 soname_spec=$lt_soname_spec
11497
11498 # Commands used to build and install an old-style archive.
11499 RANLIB=$lt_RANLIB
11500 old_archive_cmds=$lt_old_archive_cmds
11501 old_postinstall_cmds=$lt_old_postinstall_cmds
11502 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11503
11504 # Create an old-style archive from a shared archive.
11505 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11506
11507 # Create a temporary old-style archive to link instead of a shared archive.
11508 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11509
11510 # Commands used to build and install a shared archive.
11511 archive_cmds=$lt_archive_cmds
11512 archive_expsym_cmds=$lt_archive_expsym_cmds
11513 postinstall_cmds=$lt_postinstall_cmds
11514 postuninstall_cmds=$lt_postuninstall_cmds
11515
11516 # Commands used to build a loadable module (assumed same as above if empty)
11517 module_cmds=$lt_module_cmds
11518 module_expsym_cmds=$lt_module_expsym_cmds
11519
11520 # Commands to strip libraries.
11521 old_striplib=$lt_old_striplib
11522 striplib=$lt_striplib
11523
11524 # Dependencies to place before the objects being linked to create a
11525 # shared library.
11526 predep_objects=$lt_predep_objects
11527
11528 # Dependencies to place after the objects being linked to create a
11529 # shared library.
11530 postdep_objects=$lt_postdep_objects
11531
11532 # Dependencies to place before the objects being linked to create a
11533 # shared library.
11534 predeps=$lt_predeps
11535
11536 # Dependencies to place after the objects being linked to create a
11537 # shared library.
11538 postdeps=$lt_postdeps
11539
11540 # The library search path used internally by the compiler when linking
11541 # a shared library.
11542 compiler_lib_search_path=$lt_compiler_lib_search_path
11543
11544 # Method to check whether dependent libraries are shared objects.
11545 deplibs_check_method=$lt_deplibs_check_method
11546
11547 # Command to use when deplibs_check_method == file_magic.
11548 file_magic_cmd=$lt_file_magic_cmd
11549
11550 # Flag that allows shared libraries with undefined symbols to be built.
11551 allow_undefined_flag=$lt_allow_undefined_flag
11552
11553 # Flag that forces no undefined symbols.
11554 no_undefined_flag=$lt_no_undefined_flag
11555
11556 # Commands used to finish a libtool library installation in a directory.
11557 finish_cmds=$lt_finish_cmds
11558
11559 # Same as above, but a single script fragment to be evaled but not shown.
11560 finish_eval=$lt_finish_eval
11561
11562 # Take the output of nm and produce a listing of raw symbols and C names.
11563 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11564
11565 # Transform the output of nm in a proper C declaration
11566 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11567
11568 # Transform the output of nm in a C name address pair
11569 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11570
11571 # This is the shared library runtime path variable.
11572 runpath_var=$runpath_var
11573
11574 # This is the shared library path variable.
11575 shlibpath_var=$shlibpath_var
11576
11577 # Is shlibpath searched before the hard-coded library search path?
11578 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11579
11580 # How to hardcode a shared library path into an executable.
11581 hardcode_action=$hardcode_action
11582
11583 # Whether we should hardcode library paths into libraries.
11584 hardcode_into_libs=$hardcode_into_libs
11585
11586 # Flag to hardcode \$libdir into a binary during linking.
11587 # This must work even if \$libdir does not exist.
11588 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11589
11590 # If ld is used when linking, flag to hardcode \$libdir into
11591 # a binary during linking. This must work even if \$libdir does
11592 # not exist.
11593 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11594
11595 # Whether we need a single -rpath flag with a separated argument.
11596 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11597
11598 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11599 # resulting binary.
11600 hardcode_direct=$hardcode_direct
11601
11602 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11603 # resulting binary.
11604 hardcode_minus_L=$hardcode_minus_L
11605
11606 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11607 # the resulting binary.
11608 hardcode_shlibpath_var=$hardcode_shlibpath_var
11609
11610 # Set to yes if building a shared library automatically hardcodes DIR into the library
11611 # and all subsequent libraries and executables linked against it.
11612 hardcode_automatic=$hardcode_automatic
11613
11614 # Variables whose values should be saved in libtool wrapper scripts and
11615 # restored at relink time.
11616 variables_saved_for_relink="$variables_saved_for_relink"
11617
11618 # Whether libtool must link a program against all its dependency libraries.
11619 link_all_deplibs=$link_all_deplibs
11620
11621 # Compile-time system search path for libraries
11622 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11623
11624 # Run-time system search path for libraries
11625 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11626
11627 # Fix the shell variable \$srcfile for the compiler.
11628 fix_srcfile_path="$fix_srcfile_path"
11629
11630 # Set to yes if exported symbols are required.
11631 always_export_symbols=$always_export_symbols
11632
11633 # The commands to list exported symbols.
11634 export_symbols_cmds=$lt_export_symbols_cmds
11635
11636 # The commands to extract the exported symbol list from a shared archive.
11637 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11638
11639 # Symbols that should not be listed in the preloaded symbols.
11640 exclude_expsyms=$lt_exclude_expsyms
11641
11642 # Symbols that must always be exported.
11643 include_expsyms=$lt_include_expsyms
11644
11645 # ### END LIBTOOL CONFIG
11646
11647 __EOF__
11648
11649
11650 case $host_os in
11651 aix3*)
11652 cat <<\EOF >> "$cfgfile"
11653
11654 # AIX sometimes has problems with the GCC collect2 program. For some
11655 # reason, if we set the COLLECT_NAMES environment variable, the problems
11656 # vanish in a puff of smoke.
11657 if test "X${COLLECT_NAMES+set}" != Xset; then
11658 COLLECT_NAMES=
11659 export COLLECT_NAMES
11660 fi
11661 EOF
11662 ;;
11663 esac
11664
11665 # We use sed instead of cat because bash on DJGPP gets confused if
11666 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11667 # text mode, it properly converts lines to CR/LF. This bash problem
11668 # is reportedly fixed, but why not run on old versions too?
11669 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11670
11671 mv -f "$cfgfile" "$ofile" || \
11672 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11673 chmod +x "$ofile"
11674
11675 else
11676 # If there is no Makefile yet, we rely on a make rule to execute
11677 # `config.status --recheck' to rerun these tests and create the
11678 # libtool script then.
11679 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11680 if test -f "$ltmain_in"; then
11681 test -f Makefile && make "$ltmain"
11682 fi
11683 fi
11684
11685
11686 ac_ext=c
11687 ac_cpp='$CPP $CPPFLAGS'
11688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11691
11692 CC="$lt_save_CC"
11693
11694
11695 # Check whether --with-tags was given.
11696 if test "${with_tags+set}" = set; then
11697 withval=$with_tags; tagnames="$withval"
11698 fi
11699
11700
11701 if test -f "$ltmain" && test -n "$tagnames"; then
11702 if test ! -f "${ofile}"; then
11703 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11704 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11705 fi
11706
11707 if test -z "$LTCC"; then
11708 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11709 if test -z "$LTCC"; then
11710 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11711 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11712 else
11713 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11714 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11715 fi
11716 fi
11717 if test -z "$LTCFLAGS"; then
11718 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11719 fi
11720
11721 # Extract list of available tagged configurations in $ofile.
11722 # Note that this assumes the entire list is on one line.
11723 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11724
11725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11726 for tagname in $tagnames; do
11727 IFS="$lt_save_ifs"
11728 # Check whether tagname contains only valid characters
11729 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11730 "") ;;
11731 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11732 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11733 { (exit 1); exit 1; }; }
11734 ;;
11735 esac
11736
11737 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11738 then
11739 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11740 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11741 { (exit 1); exit 1; }; }
11742 fi
11743
11744 # Update the list of available tags.
11745 if test -n "$tagname"; then
11746 echo appending configuration tag \"$tagname\" to $ofile
11747
11748 case $tagname in
11749 CXX)
11750 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11751 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11752 (test "X$CXX" != "Xg++"))) ; then
11753 ac_ext=cpp
11754 ac_cpp='$CXXCPP $CPPFLAGS'
11755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11758
11759
11760
11761
11762 archive_cmds_need_lc_CXX=no
11763 allow_undefined_flag_CXX=
11764 always_export_symbols_CXX=no
11765 archive_expsym_cmds_CXX=
11766 export_dynamic_flag_spec_CXX=
11767 hardcode_direct_CXX=no
11768 hardcode_libdir_flag_spec_CXX=
11769 hardcode_libdir_flag_spec_ld_CXX=
11770 hardcode_libdir_separator_CXX=
11771 hardcode_minus_L_CXX=no
11772 hardcode_shlibpath_var_CXX=unsupported
11773 hardcode_automatic_CXX=no
11774 module_cmds_CXX=
11775 module_expsym_cmds_CXX=
11776 link_all_deplibs_CXX=unknown
11777 old_archive_cmds_CXX=$old_archive_cmds
11778 no_undefined_flag_CXX=
11779 whole_archive_flag_spec_CXX=
11780 enable_shared_with_static_runtimes_CXX=no
11781
11782 # Dependencies to place before and after the object being linked:
11783 predep_objects_CXX=
11784 postdep_objects_CXX=
11785 predeps_CXX=
11786 postdeps_CXX=
11787 compiler_lib_search_path_CXX=
11788
11789 # Source file extension for C++ test sources.
11790 ac_ext=cpp
11791
11792 # Object file extension for compiled C++ test sources.
11793 objext=o
11794 objext_CXX=$objext
11795
11796 # Code to be used in simple compile tests
11797 lt_simple_compile_test_code="int some_variable = 0;\n"
11798
11799 # Code to be used in simple link tests
11800 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11801
11802 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11803
11804 # If no C compiler was specified, use CC.
11805 LTCC=${LTCC-"$CC"}
11806
11807 # If no C compiler flags were specified, use CFLAGS.
11808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11809
11810 # Allow CC to be a program name with arguments.
11811 compiler=$CC
11812
11813
11814 # save warnings/boilerplate of simple test code
11815 ac_outfile=conftest.$ac_objext
11816 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11817 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11818 _lt_compiler_boilerplate=`cat conftest.err`
11819 $rm conftest*
11820
11821 ac_outfile=conftest.$ac_objext
11822 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11823 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11824 _lt_linker_boilerplate=`cat conftest.err`
11825 $rm conftest*
11826
11827
11828 # Allow CC to be a program name with arguments.
11829 lt_save_CC=$CC
11830 lt_save_LD=$LD
11831 lt_save_GCC=$GCC
11832 GCC=$GXX
11833 lt_save_with_gnu_ld=$with_gnu_ld
11834 lt_save_path_LD=$lt_cv_path_LD
11835 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11836 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11837 else
11838 $as_unset lt_cv_prog_gnu_ld
11839 fi
11840 if test -n "${lt_cv_path_LDCXX+set}"; then
11841 lt_cv_path_LD=$lt_cv_path_LDCXX
11842 else
11843 $as_unset lt_cv_path_LD
11844 fi
11845 test -z "${LDCXX+set}" || LD=$LDCXX
11846 CC=${CXX-"c++"}
11847 compiler=$CC
11848 compiler_CXX=$CC
11849 for cc_temp in $compiler""; do
11850 case $cc_temp in
11851 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11852 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11853 \-*) ;;
11854 *) break;;
11855 esac
11856 done
11857 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11858
11859
11860 # We don't want -fno-exception wen compiling C++ code, so set the
11861 # no_builtin_flag separately
11862 if test "$GXX" = yes; then
11863 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11864 else
11865 lt_prog_compiler_no_builtin_flag_CXX=
11866 fi
11867
11868 if test "$GXX" = yes; then
11869 # Set up default GNU C++ configuration
11870
11871
11872 # Check whether --with-gnu-ld was given.
11873 if test "${with_gnu_ld+set}" = set; then
11874 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11875 else
11876 with_gnu_ld=no
11877 fi
11878
11879 ac_prog=ld
11880 if test "$GCC" = yes; then
11881 # Check if gcc -print-prog-name=ld gives a path.
11882 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11883 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11884 case $host in
11885 *-*-mingw*)
11886 # gcc leaves a trailing carriage return which upsets mingw
11887 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11888 *)
11889 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11890 esac
11891 case $ac_prog in
11892 # Accept absolute paths.
11893 [\\/]* | ?:[\\/]*)
11894 re_direlt='/[^/][^/]*/\.\./'
11895 # Canonicalize the pathname of ld
11896 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11897 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11898 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11899 done
11900 test -z "$LD" && LD="$ac_prog"
11901 ;;
11902 "")
11903 # If it fails, then pretend we aren't using GCC.
11904 ac_prog=ld
11905 ;;
11906 *)
11907 # If it is relative, then search for the first ld in PATH.
11908 with_gnu_ld=unknown
11909 ;;
11910 esac
11911 elif test "$with_gnu_ld" = yes; then
11912 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11913 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11914 else
11915 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11916 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11917 fi
11918 if test "${lt_cv_path_LD+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921 if test -z "$LD"; then
11922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11923 for ac_dir in $PATH; do
11924 IFS="$lt_save_ifs"
11925 test -z "$ac_dir" && ac_dir=.
11926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11927 lt_cv_path_LD="$ac_dir/$ac_prog"
11928 # Check to see if the program is GNU ld. I'd rather use --version,
11929 # but apparently some variants of GNU ld only accept -v.
11930 # Break only if it was the GNU/non-GNU ld that we prefer.
11931 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11932 *GNU* | *'with BFD'*)
11933 test "$with_gnu_ld" != no && break
11934 ;;
11935 *)
11936 test "$with_gnu_ld" != yes && break
11937 ;;
11938 esac
11939 fi
11940 done
11941 IFS="$lt_save_ifs"
11942 else
11943 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11944 fi
11945 fi
11946
11947 LD="$lt_cv_path_LD"
11948 if test -n "$LD"; then
11949 { echo "$as_me:$LINENO: result: $LD" >&5
11950 echo "${ECHO_T}$LD" >&6; }
11951 else
11952 { echo "$as_me:$LINENO: result: no" >&5
11953 echo "${ECHO_T}no" >&6; }
11954 fi
11955 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11956 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11957 { (exit 1); exit 1; }; }
11958 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11959 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11960 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 else
11963 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11964 case `$LD -v 2>&1 </dev/null` in
11965 *GNU* | *'with BFD'*)
11966 lt_cv_prog_gnu_ld=yes
11967 ;;
11968 *)
11969 lt_cv_prog_gnu_ld=no
11970 ;;
11971 esac
11972 fi
11973 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11974 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11975 with_gnu_ld=$lt_cv_prog_gnu_ld
11976
11977
11978
11979 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11980 # archiving commands below assume that GNU ld is being used.
11981 if test "$with_gnu_ld" = yes; then
11982 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11983 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'
11984
11985 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11986 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11987
11988 # If archive_cmds runs LD, not CC, wlarc should be empty
11989 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11990 # investigate it a little bit more. (MM)
11991 wlarc='${wl}'
11992
11993 # ancient GNU ld didn't support --whole-archive et. al.
11994 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11995 grep 'no-whole-archive' > /dev/null; then
11996 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11997 else
11998 whole_archive_flag_spec_CXX=
11999 fi
12000 else
12001 with_gnu_ld=no
12002 wlarc=
12003
12004 # A generic and very simple default shared library creation
12005 # command for GNU C++ for the case where it uses the native
12006 # linker, instead of GNU ld. If possible, this setting should
12007 # overridden to take advantage of the native linker features on
12008 # the platform it is being used on.
12009 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12010 fi
12011
12012 # Commands to make compiler produce verbose output that lists
12013 # what "hidden" libraries, object files and flags are used when
12014 # linking a shared library.
12015 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12016
12017 else
12018 GXX=no
12019 with_gnu_ld=no
12020 wlarc=
12021 fi
12022
12023 # PORTME: fill in a description of your system's C++ link characteristics
12024 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12025 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12026 ld_shlibs_CXX=yes
12027 case $host_os in
12028 aix3*)
12029 # FIXME: insert proper C++ library support
12030 ld_shlibs_CXX=no
12031 ;;
12032 aix4* | aix5*)
12033 if test "$host_cpu" = ia64; then
12034 # On IA64, the linker does run time linking by default, so we don't
12035 # have to do anything special.
12036 aix_use_runtimelinking=no
12037 exp_sym_flag='-Bexport'
12038 no_entry_flag=""
12039 else
12040 aix_use_runtimelinking=no
12041
12042 # Test if we are trying to use run time linking or normal
12043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12044 # need to do runtime linking.
12045 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12046 for ld_flag in $LDFLAGS; do
12047 case $ld_flag in
12048 *-brtl*)
12049 aix_use_runtimelinking=yes
12050 break
12051 ;;
12052 esac
12053 done
12054 ;;
12055 esac
12056
12057 exp_sym_flag='-bexport'
12058 no_entry_flag='-bnoentry'
12059 fi
12060
12061 # When large executables or shared objects are built, AIX ld can
12062 # have problems creating the table of contents. If linking a library
12063 # or program results in "error TOC overflow" add -mminimal-toc to
12064 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12065 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12066
12067 archive_cmds_CXX=''
12068 hardcode_direct_CXX=yes
12069 hardcode_libdir_separator_CXX=':'
12070 link_all_deplibs_CXX=yes
12071
12072 if test "$GXX" = yes; then
12073 case $host_os in aix4.[012]|aix4.[012].*)
12074 # We only want to do this on AIX 4.2 and lower, the check
12075 # below for broken collect2 doesn't work under 4.3+
12076 collect2name=`${CC} -print-prog-name=collect2`
12077 if test -f "$collect2name" && \
12078 strings "$collect2name" | grep resolve_lib_name >/dev/null
12079 then
12080 # We have reworked collect2
12081 hardcode_direct_CXX=yes
12082 else
12083 # We have old collect2
12084 hardcode_direct_CXX=unsupported
12085 # It fails to find uninstalled libraries when the uninstalled
12086 # path is not listed in the libpath. Setting hardcode_minus_L
12087 # to unsupported forces relinking
12088 hardcode_minus_L_CXX=yes
12089 hardcode_libdir_flag_spec_CXX='-L$libdir'
12090 hardcode_libdir_separator_CXX=
12091 fi
12092 ;;
12093 esac
12094 shared_flag='-shared'
12095 if test "$aix_use_runtimelinking" = yes; then
12096 shared_flag="$shared_flag "'${wl}-G'
12097 fi
12098 else
12099 # not using gcc
12100 if test "$host_cpu" = ia64; then
12101 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12102 # chokes on -Wl,-G. The following line is correct:
12103 shared_flag='-G'
12104 else
12105 if test "$aix_use_runtimelinking" = yes; then
12106 shared_flag='${wl}-G'
12107 else
12108 shared_flag='${wl}-bM:SRE'
12109 fi
12110 fi
12111 fi
12112
12113 # It seems that -bexpall does not export symbols beginning with
12114 # underscore (_), so it is better to generate a list of symbols to export.
12115 always_export_symbols_CXX=yes
12116 if test "$aix_use_runtimelinking" = yes; then
12117 # Warning - without using the other runtime loading flags (-brtl),
12118 # -berok will link without error, but may produce a broken library.
12119 allow_undefined_flag_CXX='-berok'
12120 # Determine the default libpath from the value encoded in an empty executable.
12121 cat >conftest.$ac_ext <<_ACEOF
12122 /* confdefs.h. */
12123 _ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12127
12128 int
12129 main ()
12130 {
12131
12132 ;
12133 return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
12144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_cxx_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest$ac_exeext &&
12153 $as_test_x conftest$ac_exeext; then
12154
12155 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12156 }'`
12157 # Check for a 64-bit object if we didn't find anything.
12158 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; }
12159 }'`; fi
12160 else
12161 echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12163
12164
12165 fi
12166
12167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12168 conftest$ac_exeext conftest.$ac_ext
12169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12170
12171 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12172
12173 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"
12174 else
12175 if test "$host_cpu" = ia64; then
12176 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12177 allow_undefined_flag_CXX="-z nodefs"
12178 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"
12179 else
12180 # Determine the default libpath from the value encoded in an empty executable.
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h. */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187
12188 int
12189 main ()
12190 {
12191
12192 ;
12193 return 0;
12194 }
12195 _ACEOF
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (ac_try="$ac_link"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201 esac
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_link") 2>conftest.er1
12204 ac_status=$?
12205 grep -v '^ *+' conftest.er1 >conftest.err
12206 rm -f conftest.er1
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } && {
12210 test -z "$ac_cxx_werror_flag" ||
12211 test ! -s conftest.err
12212 } && test -s conftest$ac_exeext &&
12213 $as_test_x conftest$ac_exeext; then
12214
12215 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12216 }'`
12217 # Check for a 64-bit object if we didn't find anything.
12218 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; }
12219 }'`; fi
12220 else
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224
12225 fi
12226
12227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12228 conftest$ac_exeext conftest.$ac_ext
12229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12230
12231 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12232 # Warning - without using the other run time loading flags,
12233 # -berok will link without error, but may produce a broken library.
12234 no_undefined_flag_CXX=' ${wl}-bernotok'
12235 allow_undefined_flag_CXX=' ${wl}-berok'
12236 # Exported symbols can be pulled into shared objects from archives
12237 whole_archive_flag_spec_CXX='$convenience'
12238 archive_cmds_need_lc_CXX=yes
12239 # This is similar to how AIX traditionally builds its shared libraries.
12240 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'
12241 fi
12242 fi
12243 ;;
12244
12245 beos*)
12246 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12247 allow_undefined_flag_CXX=unsupported
12248 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12249 # support --undefined. This deserves some investigation. FIXME
12250 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12251 else
12252 ld_shlibs_CXX=no
12253 fi
12254 ;;
12255
12256 chorus*)
12257 case $cc_basename in
12258 *)
12259 # FIXME: insert proper C++ library support
12260 ld_shlibs_CXX=no
12261 ;;
12262 esac
12263 ;;
12264
12265 cygwin* | mingw* | pw32*)
12266 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12267 # as there is no search path for DLLs.
12268 hardcode_libdir_flag_spec_CXX='-L$libdir'
12269 allow_undefined_flag_CXX=unsupported
12270 always_export_symbols_CXX=no
12271 enable_shared_with_static_runtimes_CXX=yes
12272
12273 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12274 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'
12275 # If the export-symbols file already is a .def file (1st line
12276 # is EXPORTS), use it as is; otherwise, prepend...
12277 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12278 cp $export_symbols $output_objdir/$soname.def;
12279 else
12280 echo EXPORTS > $output_objdir/$soname.def;
12281 cat $export_symbols >> $output_objdir/$soname.def;
12282 fi~
12283 $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'
12284 else
12285 ld_shlibs_CXX=no
12286 fi
12287 ;;
12288 darwin* | rhapsody*)
12289 case $host_os in
12290 rhapsody* | darwin1.[012])
12291 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12292 ;;
12293 *) # Darwin 1.3 on
12294 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12295 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12296 else
12297 case ${MACOSX_DEPLOYMENT_TARGET} in
12298 10.[012])
12299 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12300 ;;
12301 10.*)
12302 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12303 ;;
12304 esac
12305 fi
12306 ;;
12307 esac
12308 archive_cmds_need_lc_CXX=no
12309 hardcode_direct_CXX=no
12310 hardcode_automatic_CXX=yes
12311 hardcode_shlibpath_var_CXX=unsupported
12312 whole_archive_flag_spec_CXX=''
12313 link_all_deplibs_CXX=yes
12314
12315 if test "$GXX" = yes ; then
12316 lt_int_apple_cc_single_mod=no
12317 output_verbose_link_cmd='echo'
12318 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12319 lt_int_apple_cc_single_mod=yes
12320 fi
12321 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12322 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12323 else
12324 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'
12325 fi
12326 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12327 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12328 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12329 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}'
12330 else
12331 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}'
12332 fi
12333 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}'
12334 else
12335 case $cc_basename in
12336 xlc*)
12337 output_verbose_link_cmd='echo'
12338 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'
12339 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12340 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12341 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}'
12342 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}'
12343 ;;
12344 *)
12345 ld_shlibs_CXX=no
12346 ;;
12347 esac
12348 fi
12349 ;;
12350
12351 dgux*)
12352 case $cc_basename in
12353 ec++*)
12354 # FIXME: insert proper C++ library support
12355 ld_shlibs_CXX=no
12356 ;;
12357 ghcx*)
12358 # Green Hills C++ Compiler
12359 # FIXME: insert proper C++ library support
12360 ld_shlibs_CXX=no
12361 ;;
12362 *)
12363 # FIXME: insert proper C++ library support
12364 ld_shlibs_CXX=no
12365 ;;
12366 esac
12367 ;;
12368 freebsd[12]*)
12369 # C++ shared libraries reported to be fairly broken before switch to ELF
12370 ld_shlibs_CXX=no
12371 ;;
12372 freebsd-elf*)
12373 archive_cmds_need_lc_CXX=no
12374 ;;
12375 freebsd* | kfreebsd*-gnu | dragonfly*)
12376 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12377 # conventions
12378 ld_shlibs_CXX=yes
12379 ;;
12380 gnu*)
12381 ;;
12382 hpux9*)
12383 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12384 hardcode_libdir_separator_CXX=:
12385 export_dynamic_flag_spec_CXX='${wl}-E'
12386 hardcode_direct_CXX=yes
12387 hardcode_minus_L_CXX=yes # Not in the search PATH,
12388 # but as the default
12389 # location of the library.
12390
12391 case $cc_basename in
12392 CC*)
12393 # FIXME: insert proper C++ library support
12394 ld_shlibs_CXX=no
12395 ;;
12396 aCC*)
12397 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'
12398 # Commands to make compiler produce verbose output that lists
12399 # what "hidden" libraries, object files and flags are used when
12400 # linking a shared library.
12401 #
12402 # There doesn't appear to be a way to prevent this compiler from
12403 # explicitly linking system object files so we need to strip them
12404 # from the output so that they don't get included in the library
12405 # dependencies.
12406 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'
12407 ;;
12408 *)
12409 if test "$GXX" = yes; then
12410 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'
12411 else
12412 # FIXME: insert proper C++ library support
12413 ld_shlibs_CXX=no
12414 fi
12415 ;;
12416 esac
12417 ;;
12418 hpux10*|hpux11*)
12419 if test $with_gnu_ld = no; then
12420 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12421 hardcode_libdir_separator_CXX=:
12422
12423 case $host_cpu in
12424 hppa*64*|ia64*)
12425 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12426 ;;
12427 *)
12428 export_dynamic_flag_spec_CXX='${wl}-E'
12429 ;;
12430 esac
12431 fi
12432 case $host_cpu in
12433 hppa*64*|ia64*)
12434 hardcode_direct_CXX=no
12435 hardcode_shlibpath_var_CXX=no
12436 ;;
12437 *)
12438 hardcode_direct_CXX=yes
12439 hardcode_minus_L_CXX=yes # Not in the search PATH,
12440 # but as the default
12441 # location of the library.
12442 ;;
12443 esac
12444
12445 case $cc_basename in
12446 CC*)
12447 # FIXME: insert proper C++ library support
12448 ld_shlibs_CXX=no
12449 ;;
12450 aCC*)
12451 case $host_cpu in
12452 hppa*64*)
12453 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12454 ;;
12455 ia64*)
12456 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12457 ;;
12458 *)
12459 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12460 ;;
12461 esac
12462 # Commands to make compiler produce verbose output that lists
12463 # what "hidden" libraries, object files and flags are used when
12464 # linking a shared library.
12465 #
12466 # There doesn't appear to be a way to prevent this compiler from
12467 # explicitly linking system object files so we need to strip them
12468 # from the output so that they don't get included in the library
12469 # dependencies.
12470 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'
12471 ;;
12472 *)
12473 if test "$GXX" = yes; then
12474 if test $with_gnu_ld = no; then
12475 case $host_cpu in
12476 hppa*64*)
12477 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12478 ;;
12479 ia64*)
12480 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12481 ;;
12482 *)
12483 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'
12484 ;;
12485 esac
12486 fi
12487 else
12488 # FIXME: insert proper C++ library support
12489 ld_shlibs_CXX=no
12490 fi
12491 ;;
12492 esac
12493 ;;
12494 interix3*)
12495 hardcode_direct_CXX=no
12496 hardcode_shlibpath_var_CXX=no
12497 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12498 export_dynamic_flag_spec_CXX='${wl}-E'
12499 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12500 # Instead, shared libraries are loaded at an image base (0x10000000 by
12501 # default) and relocated if they conflict, which is a slow very memory
12502 # consuming and fragmenting process. To avoid this, we pick a random,
12503 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12504 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12505 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'
12506 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'
12507 ;;
12508 irix5* | irix6*)
12509 case $cc_basename in
12510 CC*)
12511 # SGI C++
12512 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'
12513
12514 # Archives containing C++ object files must be created using
12515 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12516 # necessary to make sure instantiated templates are included
12517 # in the archive.
12518 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12519 ;;
12520 *)
12521 if test "$GXX" = yes; then
12522 if test "$with_gnu_ld" = no; then
12523 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'
12524 else
12525 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'
12526 fi
12527 fi
12528 link_all_deplibs_CXX=yes
12529 ;;
12530 esac
12531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12532 hardcode_libdir_separator_CXX=:
12533 ;;
12534 linux*)
12535 case $cc_basename in
12536 KCC*)
12537 # Kuck and Associates, Inc. (KAI) C++ Compiler
12538
12539 # KCC will only create a shared library if the output file
12540 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12541 # to its proper name (with version) after linking.
12542 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'
12543 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'
12544 # Commands to make compiler produce verbose output that lists
12545 # what "hidden" libraries, object files and flags are used when
12546 # linking a shared library.
12547 #
12548 # There doesn't appear to be a way to prevent this compiler from
12549 # explicitly linking system object files so we need to strip them
12550 # from the output so that they don't get included in the library
12551 # dependencies.
12552 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'
12553
12554 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12555 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12556
12557 # Archives containing C++ object files must be created using
12558 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12559 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12560 ;;
12561 icpc*)
12562 # Intel C++
12563 with_gnu_ld=yes
12564 # version 8.0 and above of icpc choke on multiply defined symbols
12565 # if we add $predep_objects and $postdep_objects, however 7.1 and
12566 # earlier do not add the objects themselves.
12567 case `$CC -V 2>&1` in
12568 *"Version 7."*)
12569 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12570 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'
12571 ;;
12572 *) # Version 8.0 or newer
12573 tmp_idyn=
12574 case $host_cpu in
12575 ia64*) tmp_idyn=' -i_dynamic';;
12576 esac
12577 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12578 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'
12579 ;;
12580 esac
12581 archive_cmds_need_lc_CXX=no
12582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12583 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12584 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12585 ;;
12586 pgCC*)
12587 # Portland Group C++ compiler
12588 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12589 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'
12590
12591 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12592 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12593 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'
12594 ;;
12595 cxx*)
12596 # Compaq C++
12597 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12598 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'
12599
12600 runpath_var=LD_RUN_PATH
12601 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12602 hardcode_libdir_separator_CXX=:
12603
12604 # Commands to make compiler produce verbose output that lists
12605 # what "hidden" libraries, object files and flags are used when
12606 # linking a shared library.
12607 #
12608 # There doesn't appear to be a way to prevent this compiler from
12609 # explicitly linking system object files so we need to strip them
12610 # from the output so that they don't get included in the library
12611 # dependencies.
12612 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'
12613 ;;
12614 esac
12615 ;;
12616 lynxos*)
12617 # FIXME: insert proper C++ library support
12618 ld_shlibs_CXX=no
12619 ;;
12620 m88k*)
12621 # FIXME: insert proper C++ library support
12622 ld_shlibs_CXX=no
12623 ;;
12624 mvs*)
12625 case $cc_basename in
12626 cxx*)
12627 # FIXME: insert proper C++ library support
12628 ld_shlibs_CXX=no
12629 ;;
12630 *)
12631 # FIXME: insert proper C++ library support
12632 ld_shlibs_CXX=no
12633 ;;
12634 esac
12635 ;;
12636 netbsd*)
12637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12638 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12639 wlarc=
12640 hardcode_libdir_flag_spec_CXX='-R$libdir'
12641 hardcode_direct_CXX=yes
12642 hardcode_shlibpath_var_CXX=no
12643 fi
12644 # Workaround some broken pre-1.5 toolchains
12645 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12646 ;;
12647 openbsd2*)
12648 # C++ shared libraries are fairly broken
12649 ld_shlibs_CXX=no
12650 ;;
12651 openbsd*)
12652 hardcode_direct_CXX=yes
12653 hardcode_shlibpath_var_CXX=no
12654 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12657 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12658 export_dynamic_flag_spec_CXX='${wl}-E'
12659 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12660 fi
12661 output_verbose_link_cmd='echo'
12662 ;;
12663 osf3*)
12664 case $cc_basename in
12665 KCC*)
12666 # Kuck and Associates, Inc. (KAI) C++ Compiler
12667
12668 # KCC will only create a shared library if the output file
12669 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12670 # to its proper name (with version) after linking.
12671 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'
12672
12673 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12674 hardcode_libdir_separator_CXX=:
12675
12676 # Archives containing C++ object files must be created using
12677 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12678 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12679
12680 ;;
12681 RCC*)
12682 # Rational C++ 2.4.1
12683 # FIXME: insert proper C++ library support
12684 ld_shlibs_CXX=no
12685 ;;
12686 cxx*)
12687 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12688 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'
12689
12690 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12691 hardcode_libdir_separator_CXX=:
12692
12693 # Commands to make compiler produce verbose output that lists
12694 # what "hidden" libraries, object files and flags are used when
12695 # linking a shared library.
12696 #
12697 # There doesn't appear to be a way to prevent this compiler from
12698 # explicitly linking system object files so we need to strip them
12699 # from the output so that they don't get included in the library
12700 # dependencies.
12701 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'
12702 ;;
12703 *)
12704 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12705 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12706 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'
12707
12708 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12709 hardcode_libdir_separator_CXX=:
12710
12711 # Commands to make compiler produce verbose output that lists
12712 # what "hidden" libraries, object files and flags are used when
12713 # linking a shared library.
12714 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12715
12716 else
12717 # FIXME: insert proper C++ library support
12718 ld_shlibs_CXX=no
12719 fi
12720 ;;
12721 esac
12722 ;;
12723 osf4* | osf5*)
12724 case $cc_basename in
12725 KCC*)
12726 # Kuck and Associates, Inc. (KAI) C++ Compiler
12727
12728 # KCC will only create a shared library if the output file
12729 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12730 # to its proper name (with version) after linking.
12731 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'
12732
12733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12734 hardcode_libdir_separator_CXX=:
12735
12736 # Archives containing C++ object files must be created using
12737 # the KAI C++ compiler.
12738 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12739 ;;
12740 RCC*)
12741 # Rational C++ 2.4.1
12742 # FIXME: insert proper C++ library support
12743 ld_shlibs_CXX=no
12744 ;;
12745 cxx*)
12746 allow_undefined_flag_CXX=' -expect_unresolved \*'
12747 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'
12748 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12749 echo "-hidden">> $lib.exp~
12750 $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~
12751 $rm $lib.exp'
12752
12753 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12754 hardcode_libdir_separator_CXX=:
12755
12756 # Commands to make compiler produce verbose output that lists
12757 # what "hidden" libraries, object files and flags are used when
12758 # linking a shared library.
12759 #
12760 # There doesn't appear to be a way to prevent this compiler from
12761 # explicitly linking system object files so we need to strip them
12762 # from the output so that they don't get included in the library
12763 # dependencies.
12764 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'
12765 ;;
12766 *)
12767 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12768 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12769 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'
12770
12771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12772 hardcode_libdir_separator_CXX=:
12773
12774 # Commands to make compiler produce verbose output that lists
12775 # what "hidden" libraries, object files and flags are used when
12776 # linking a shared library.
12777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12778
12779 else
12780 # FIXME: insert proper C++ library support
12781 ld_shlibs_CXX=no
12782 fi
12783 ;;
12784 esac
12785 ;;
12786 psos*)
12787 # FIXME: insert proper C++ library support
12788 ld_shlibs_CXX=no
12789 ;;
12790 sunos4*)
12791 case $cc_basename in
12792 CC*)
12793 # Sun C++ 4.x
12794 # FIXME: insert proper C++ library support
12795 ld_shlibs_CXX=no
12796 ;;
12797 lcc*)
12798 # Lucid
12799 # FIXME: insert proper C++ library support
12800 ld_shlibs_CXX=no
12801 ;;
12802 *)
12803 # FIXME: insert proper C++ library support
12804 ld_shlibs_CXX=no
12805 ;;
12806 esac
12807 ;;
12808 solaris*)
12809 case $cc_basename in
12810 CC*)
12811 # Sun C++ 4.2, 5.x and Centerline C++
12812 archive_cmds_need_lc_CXX=yes
12813 no_undefined_flag_CXX=' -zdefs'
12814 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12815 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12816 $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'
12817
12818 hardcode_libdir_flag_spec_CXX='-R$libdir'
12819 hardcode_shlibpath_var_CXX=no
12820 case $host_os in
12821 solaris2.[0-5] | solaris2.[0-5].*) ;;
12822 *)
12823 # The C++ compiler is used as linker so we must use $wl
12824 # flag to pass the commands to the underlying system
12825 # linker. We must also pass each convience library through
12826 # to the system linker between allextract/defaultextract.
12827 # The C++ compiler will combine linker options so we
12828 # cannot just pass the convience library names through
12829 # without $wl.
12830 # Supported since Solaris 2.6 (maybe 2.5.1?)
12831 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'
12832 ;;
12833 esac
12834 link_all_deplibs_CXX=yes
12835
12836 output_verbose_link_cmd='echo'
12837
12838 # Archives containing C++ object files must be created using
12839 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12840 # necessary to make sure instantiated templates are included
12841 # in the archive.
12842 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12843 ;;
12844 gcx*)
12845 # Green Hills C++ Compiler
12846 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12847
12848 # The C++ compiler must be used to create the archive.
12849 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12850 ;;
12851 *)
12852 # GNU C++ compiler with Solaris linker
12853 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12854 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12855 if $CC --version | grep -v '^2\.7' > /dev/null; then
12856 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12857 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12858 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12859
12860 # Commands to make compiler produce verbose output that lists
12861 # what "hidden" libraries, object files and flags are used when
12862 # linking a shared library.
12863 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12864 else
12865 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12866 # platform.
12867 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12868 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12869 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12870
12871 # Commands to make compiler produce verbose output that lists
12872 # what "hidden" libraries, object files and flags are used when
12873 # linking a shared library.
12874 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12875 fi
12876
12877 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12878 fi
12879 ;;
12880 esac
12881 ;;
12882 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12883 no_undefined_flag_CXX='${wl}-z,text'
12884 archive_cmds_need_lc_CXX=no
12885 hardcode_shlibpath_var_CXX=no
12886 runpath_var='LD_RUN_PATH'
12887
12888 case $cc_basename in
12889 CC*)
12890 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12891 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12892 ;;
12893 *)
12894 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12895 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12896 ;;
12897 esac
12898 ;;
12899 sysv5* | sco3.2v5* | sco5v6*)
12900 # Note: We can NOT use -z defs as we might desire, because we do not
12901 # link with -lc, and that would cause any symbols used from libc to
12902 # always be unresolved, which means just about no library would
12903 # ever link correctly. If we're not using GNU ld we use -z text
12904 # though, which does catch some bad symbols but isn't as heavy-handed
12905 # as -z defs.
12906 # For security reasons, it is highly recommended that you always
12907 # use absolute paths for naming shared libraries, and exclude the
12908 # DT_RUNPATH tag from executables and libraries. But doing so
12909 # requires that you compile everything twice, which is a pain.
12910 # So that behaviour is only enabled if SCOABSPATH is set to a
12911 # non-empty value in the environment. Most likely only useful for
12912 # creating official distributions of packages.
12913 # This is a hack until libtool officially supports absolute path
12914 # names for shared libraries.
12915 no_undefined_flag_CXX='${wl}-z,text'
12916 allow_undefined_flag_CXX='${wl}-z,nodefs'
12917 archive_cmds_need_lc_CXX=no
12918 hardcode_shlibpath_var_CXX=no
12919 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12920 hardcode_libdir_separator_CXX=':'
12921 link_all_deplibs_CXX=yes
12922 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12923 runpath_var='LD_RUN_PATH'
12924
12925 case $cc_basename in
12926 CC*)
12927 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12928 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12929 ;;
12930 *)
12931 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12932 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12933 ;;
12934 esac
12935 ;;
12936 tandem*)
12937 case $cc_basename in
12938 NCC*)
12939 # NonStop-UX NCC 3.20
12940 # FIXME: insert proper C++ library support
12941 ld_shlibs_CXX=no
12942 ;;
12943 *)
12944 # FIXME: insert proper C++ library support
12945 ld_shlibs_CXX=no
12946 ;;
12947 esac
12948 ;;
12949 vxworks*)
12950 # FIXME: insert proper C++ library support
12951 ld_shlibs_CXX=no
12952 ;;
12953 *)
12954 # FIXME: insert proper C++ library support
12955 ld_shlibs_CXX=no
12956 ;;
12957 esac
12958 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12959 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12960 test "$ld_shlibs_CXX" = no && can_build_shared=no
12961
12962 GCC_CXX="$GXX"
12963 LD_CXX="$LD"
12964
12965
12966 cat > conftest.$ac_ext <<EOF
12967 class Foo
12968 {
12969 public:
12970 Foo (void) { a = 0; }
12971 private:
12972 int a;
12973 };
12974 EOF
12975
12976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12977 (eval $ac_compile) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; then
12981 # Parse the compiler output and extract the necessary
12982 # objects, libraries and library flags.
12983
12984 # Sentinel used to keep track of whether or not we are before
12985 # the conftest object file.
12986 pre_test_object_deps_done=no
12987
12988 # The `*' in the case matches for architectures that use `case' in
12989 # $output_verbose_cmd can trigger glob expansion during the loop
12990 # eval without this substitution.
12991 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12992
12993 for p in `eval $output_verbose_link_cmd`; do
12994 case $p in
12995
12996 -L* | -R* | -l*)
12997 # Some compilers place space between "-{L,R}" and the path.
12998 # Remove the space.
12999 if test $p = "-L" \
13000 || test $p = "-R"; then
13001 prev=$p
13002 continue
13003 else
13004 prev=
13005 fi
13006
13007 if test "$pre_test_object_deps_done" = no; then
13008 case $p in
13009 -L* | -R*)
13010 # Internal compiler library paths should come after those
13011 # provided the user. The postdeps already come after the
13012 # user supplied libs so there is no need to process them.
13013 if test -z "$compiler_lib_search_path_CXX"; then
13014 compiler_lib_search_path_CXX="${prev}${p}"
13015 else
13016 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13017 fi
13018 ;;
13019 # The "-l" case would never come before the object being
13020 # linked, so don't bother handling this case.
13021 esac
13022 else
13023 if test -z "$postdeps_CXX"; then
13024 postdeps_CXX="${prev}${p}"
13025 else
13026 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13027 fi
13028 fi
13029 ;;
13030
13031 *.$objext)
13032 # This assumes that the test object file only shows up
13033 # once in the compiler output.
13034 if test "$p" = "conftest.$objext"; then
13035 pre_test_object_deps_done=yes
13036 continue
13037 fi
13038
13039 if test "$pre_test_object_deps_done" = no; then
13040 if test -z "$predep_objects_CXX"; then
13041 predep_objects_CXX="$p"
13042 else
13043 predep_objects_CXX="$predep_objects_CXX $p"
13044 fi
13045 else
13046 if test -z "$postdep_objects_CXX"; then
13047 postdep_objects_CXX="$p"
13048 else
13049 postdep_objects_CXX="$postdep_objects_CXX $p"
13050 fi
13051 fi
13052 ;;
13053
13054 *) ;; # Ignore the rest.
13055
13056 esac
13057 done
13058
13059 # Clean up.
13060 rm -f a.out a.exe
13061 else
13062 echo "libtool.m4: error: problem compiling CXX test program"
13063 fi
13064
13065 $rm -f confest.$objext
13066
13067 # PORTME: override above test on systems where it is broken
13068 case $host_os in
13069 interix3*)
13070 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13071 # hack all around it, let's just trust "g++" to DTRT.
13072 predep_objects_CXX=
13073 postdep_objects_CXX=
13074 postdeps_CXX=
13075 ;;
13076
13077 solaris*)
13078 case $cc_basename in
13079 CC*)
13080 # Adding this requires a known-good setup of shared libraries for
13081 # Sun compiler versions before 5.6, else PIC objects from an old
13082 # archive will be linked into the output, leading to subtle bugs.
13083 postdeps_CXX='-lCstd -lCrun'
13084 ;;
13085 esac
13086 ;;
13087 esac
13088
13089
13090 case " $postdeps_CXX " in
13091 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13092 esac
13093
13094 lt_prog_compiler_wl_CXX=
13095 lt_prog_compiler_pic_CXX=
13096 lt_prog_compiler_static_CXX=
13097
13098 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13099 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13100
13101 # C++ specific cases for pic, static, wl, etc.
13102 if test "$GXX" = yes; then
13103 lt_prog_compiler_wl_CXX='-Wl,'
13104 lt_prog_compiler_static_CXX='-static'
13105
13106 case $host_os in
13107 aix*)
13108 # All AIX code is PIC.
13109 if test "$host_cpu" = ia64; then
13110 # AIX 5 now supports IA64 processor
13111 lt_prog_compiler_static_CXX='-Bstatic'
13112 fi
13113 ;;
13114 amigaos*)
13115 # FIXME: we need at least 68020 code to build shared libraries, but
13116 # adding the `-m68020' flag to GCC prevents building anything better,
13117 # like `-m68040'.
13118 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13119 ;;
13120 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13121 # PIC is the default for these OSes.
13122 ;;
13123 mingw* | os2* | pw32*)
13124 # This hack is so that the source file can tell whether it is being
13125 # built for inclusion in a dll (and should export symbols for example).
13126 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13127 ;;
13128 darwin* | rhapsody*)
13129 # PIC is the default on this platform
13130 # Common symbols not allowed in MH_DYLIB files
13131 lt_prog_compiler_pic_CXX='-fno-common'
13132 ;;
13133 *djgpp*)
13134 # DJGPP does not support shared libraries at all
13135 lt_prog_compiler_pic_CXX=
13136 ;;
13137 interix3*)
13138 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13139 # Instead, we relocate shared libraries at runtime.
13140 ;;
13141 sysv4*MP*)
13142 if test -d /usr/nec; then
13143 lt_prog_compiler_pic_CXX=-Kconform_pic
13144 fi
13145 ;;
13146 hpux*)
13147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13148 # not for PA HP-UX.
13149 case $host_cpu in
13150 hppa*64*|ia64*)
13151 ;;
13152 *)
13153 lt_prog_compiler_pic_CXX='-fPIC'
13154 ;;
13155 esac
13156 ;;
13157 *)
13158 lt_prog_compiler_pic_CXX='-fPIC'
13159 ;;
13160 esac
13161 else
13162 case $host_os in
13163 aix4* | aix5*)
13164 # All AIX code is PIC.
13165 if test "$host_cpu" = ia64; then
13166 # AIX 5 now supports IA64 processor
13167 lt_prog_compiler_static_CXX='-Bstatic'
13168 else
13169 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13170 fi
13171 ;;
13172 chorus*)
13173 case $cc_basename in
13174 cxch68*)
13175 # Green Hills C++ Compiler
13176 # _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"
13177 ;;
13178 esac
13179 ;;
13180 darwin*)
13181 # PIC is the default on this platform
13182 # Common symbols not allowed in MH_DYLIB files
13183 case $cc_basename in
13184 xlc*)
13185 lt_prog_compiler_pic_CXX='-qnocommon'
13186 lt_prog_compiler_wl_CXX='-Wl,'
13187 ;;
13188 esac
13189 ;;
13190 dgux*)
13191 case $cc_basename in
13192 ec++*)
13193 lt_prog_compiler_pic_CXX='-KPIC'
13194 ;;
13195 ghcx*)
13196 # Green Hills C++ Compiler
13197 lt_prog_compiler_pic_CXX='-pic'
13198 ;;
13199 *)
13200 ;;
13201 esac
13202 ;;
13203 freebsd* | kfreebsd*-gnu | dragonfly*)
13204 # FreeBSD uses GNU C++
13205 ;;
13206 hpux9* | hpux10* | hpux11*)
13207 case $cc_basename in
13208 CC*)
13209 lt_prog_compiler_wl_CXX='-Wl,'
13210 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13211 if test "$host_cpu" != ia64; then
13212 lt_prog_compiler_pic_CXX='+Z'
13213 fi
13214 ;;
13215 aCC*)
13216 lt_prog_compiler_wl_CXX='-Wl,'
13217 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13218 case $host_cpu in
13219 hppa*64*|ia64*)
13220 # +Z the default
13221 ;;
13222 *)
13223 lt_prog_compiler_pic_CXX='+Z'
13224 ;;
13225 esac
13226 ;;
13227 *)
13228 ;;
13229 esac
13230 ;;
13231 interix*)
13232 # This is c89, which is MS Visual C++ (no shared libs)
13233 # Anyone wants to do a port?
13234 ;;
13235 irix5* | irix6* | nonstopux*)
13236 case $cc_basename in
13237 CC*)
13238 lt_prog_compiler_wl_CXX='-Wl,'
13239 lt_prog_compiler_static_CXX='-non_shared'
13240 # CC pic flag -KPIC is the default.
13241 ;;
13242 *)
13243 ;;
13244 esac
13245 ;;
13246 linux*)
13247 case $cc_basename in
13248 KCC*)
13249 # KAI C++ Compiler
13250 lt_prog_compiler_wl_CXX='--backend -Wl,'
13251 lt_prog_compiler_pic_CXX='-fPIC'
13252 ;;
13253 icpc* | ecpc*)
13254 # Intel C++
13255 lt_prog_compiler_wl_CXX='-Wl,'
13256 lt_prog_compiler_pic_CXX='-KPIC'
13257 lt_prog_compiler_static_CXX='-static'
13258 ;;
13259 pgCC*)
13260 # Portland Group C++ compiler.
13261 lt_prog_compiler_wl_CXX='-Wl,'
13262 lt_prog_compiler_pic_CXX='-fpic'
13263 lt_prog_compiler_static_CXX='-Bstatic'
13264 ;;
13265 cxx*)
13266 # Compaq C++
13267 # Make sure the PIC flag is empty. It appears that all Alpha
13268 # Linux and Compaq Tru64 Unix objects are PIC.
13269 lt_prog_compiler_pic_CXX=
13270 lt_prog_compiler_static_CXX='-non_shared'
13271 ;;
13272 *)
13273 ;;
13274 esac
13275 ;;
13276 lynxos*)
13277 ;;
13278 m88k*)
13279 ;;
13280 mvs*)
13281 case $cc_basename in
13282 cxx*)
13283 lt_prog_compiler_pic_CXX='-W c,exportall'
13284 ;;
13285 *)
13286 ;;
13287 esac
13288 ;;
13289 netbsd*)
13290 ;;
13291 osf3* | osf4* | osf5*)
13292 case $cc_basename in
13293 KCC*)
13294 lt_prog_compiler_wl_CXX='--backend -Wl,'
13295 ;;
13296 RCC*)
13297 # Rational C++ 2.4.1
13298 lt_prog_compiler_pic_CXX='-pic'
13299 ;;
13300 cxx*)
13301 # Digital/Compaq C++
13302 lt_prog_compiler_wl_CXX='-Wl,'
13303 # Make sure the PIC flag is empty. It appears that all Alpha
13304 # Linux and Compaq Tru64 Unix objects are PIC.
13305 lt_prog_compiler_pic_CXX=
13306 lt_prog_compiler_static_CXX='-non_shared'
13307 ;;
13308 *)
13309 ;;
13310 esac
13311 ;;
13312 psos*)
13313 ;;
13314 solaris*)
13315 case $cc_basename in
13316 CC*)
13317 # Sun C++ 4.2, 5.x and Centerline C++
13318 lt_prog_compiler_pic_CXX='-KPIC'
13319 lt_prog_compiler_static_CXX='-Bstatic'
13320 lt_prog_compiler_wl_CXX='-Qoption ld '
13321 ;;
13322 gcx*)
13323 # Green Hills C++ Compiler
13324 lt_prog_compiler_pic_CXX='-PIC'
13325 ;;
13326 *)
13327 ;;
13328 esac
13329 ;;
13330 sunos4*)
13331 case $cc_basename in
13332 CC*)
13333 # Sun C++ 4.x
13334 lt_prog_compiler_pic_CXX='-pic'
13335 lt_prog_compiler_static_CXX='-Bstatic'
13336 ;;
13337 lcc*)
13338 # Lucid
13339 lt_prog_compiler_pic_CXX='-pic'
13340 ;;
13341 *)
13342 ;;
13343 esac
13344 ;;
13345 tandem*)
13346 case $cc_basename in
13347 NCC*)
13348 # NonStop-UX NCC 3.20
13349 lt_prog_compiler_pic_CXX='-KPIC'
13350 ;;
13351 *)
13352 ;;
13353 esac
13354 ;;
13355 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13356 case $cc_basename in
13357 CC*)
13358 lt_prog_compiler_wl_CXX='-Wl,'
13359 lt_prog_compiler_pic_CXX='-KPIC'
13360 lt_prog_compiler_static_CXX='-Bstatic'
13361 ;;
13362 esac
13363 ;;
13364 vxworks*)
13365 ;;
13366 *)
13367 lt_prog_compiler_can_build_shared_CXX=no
13368 ;;
13369 esac
13370 fi
13371
13372 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13373 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13374
13375 #
13376 # Check to make sure the PIC flag actually works.
13377 #
13378 if test -n "$lt_prog_compiler_pic_CXX"; then
13379
13380 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13381 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13382 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385 lt_prog_compiler_pic_works_CXX=no
13386 ac_outfile=conftest.$ac_objext
13387 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13388 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13389 # Insert the option either (1) after the last *FLAGS variable, or
13390 # (2) before a word containing "conftest.", or (3) at the end.
13391 # Note that $ac_compile itself does not contain backslashes and begins
13392 # with a dollar sign (not a hyphen), so the echo should work correctly.
13393 # The option is referenced via a variable to avoid confusing sed.
13394 lt_compile=`echo "$ac_compile" | $SED \
13395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13397 -e 's:$: $lt_compiler_flag:'`
13398 (eval echo "\"\$as_me:13398: $lt_compile\"" >&5)
13399 (eval "$lt_compile" 2>conftest.err)
13400 ac_status=$?
13401 cat conftest.err >&5
13402 echo "$as_me:13402: \$? = $ac_status" >&5
13403 if (exit $ac_status) && test -s "$ac_outfile"; then
13404 # The compiler can only warn and ignore the option if not recognized
13405 # So say no if there are warnings other than the usual output.
13406 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13409 lt_prog_compiler_pic_works_CXX=yes
13410 fi
13411 fi
13412 $rm conftest*
13413
13414 fi
13415 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13416 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13417
13418 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13419 case $lt_prog_compiler_pic_CXX in
13420 "" | " "*) ;;
13421 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13422 esac
13423 else
13424 lt_prog_compiler_pic_CXX=
13425 lt_prog_compiler_can_build_shared_CXX=no
13426 fi
13427
13428 fi
13429 case $host_os in
13430 # For platforms which do not support PIC, -DPIC is meaningless:
13431 *djgpp*)
13432 lt_prog_compiler_pic_CXX=
13433 ;;
13434 *)
13435 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13436 ;;
13437 esac
13438
13439 #
13440 # Check to make sure the static flag actually works.
13441 #
13442 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13443 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13444 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13445 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 else
13448 lt_prog_compiler_static_works_CXX=no
13449 save_LDFLAGS="$LDFLAGS"
13450 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13451 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13453 # The linker can only warn and ignore the option if not recognized
13454 # So say no if there are warnings
13455 if test -s conftest.err; then
13456 # Append any errors to the config.log.
13457 cat conftest.err 1>&5
13458 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13460 if diff conftest.exp conftest.er2 >/dev/null; then
13461 lt_prog_compiler_static_works_CXX=yes
13462 fi
13463 else
13464 lt_prog_compiler_static_works_CXX=yes
13465 fi
13466 fi
13467 $rm conftest*
13468 LDFLAGS="$save_LDFLAGS"
13469
13470 fi
13471 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13472 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13473
13474 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13475 :
13476 else
13477 lt_prog_compiler_static_CXX=
13478 fi
13479
13480
13481 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13482 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13483 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486 lt_cv_prog_compiler_c_o_CXX=no
13487 $rm -r conftest 2>/dev/null
13488 mkdir conftest
13489 cd conftest
13490 mkdir out
13491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13492
13493 lt_compiler_flag="-o out/conftest2.$ac_objext"
13494 # Insert the option either (1) after the last *FLAGS variable, or
13495 # (2) before a word containing "conftest.", or (3) at the end.
13496 # Note that $ac_compile itself does not contain backslashes and begins
13497 # with a dollar sign (not a hyphen), so the echo should work correctly.
13498 lt_compile=`echo "$ac_compile" | $SED \
13499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13501 -e 's:$: $lt_compiler_flag:'`
13502 (eval echo "\"\$as_me:13502: $lt_compile\"" >&5)
13503 (eval "$lt_compile" 2>out/conftest.err)
13504 ac_status=$?
13505 cat out/conftest.err >&5
13506 echo "$as_me:13506: \$? = $ac_status" >&5
13507 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13508 then
13509 # The compiler can only warn and ignore the option if not recognized
13510 # So say no if there are warnings
13511 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13512 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13513 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13514 lt_cv_prog_compiler_c_o_CXX=yes
13515 fi
13516 fi
13517 chmod u+w . 2>&5
13518 $rm conftest*
13519 # SGI C++ compiler will create directory out/ii_files/ for
13520 # template instantiation
13521 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13522 $rm out/* && rmdir out
13523 cd ..
13524 rmdir conftest
13525 $rm conftest*
13526
13527 fi
13528 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13529 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13530
13531
13532 hard_links="nottested"
13533 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13534 # do not overwrite the value of need_locks provided by the user
13535 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13536 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13537 hard_links=yes
13538 $rm conftest*
13539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13540 touch conftest.a
13541 ln conftest.a conftest.b 2>&5 || hard_links=no
13542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13543 { echo "$as_me:$LINENO: result: $hard_links" >&5
13544 echo "${ECHO_T}$hard_links" >&6; }
13545 if test "$hard_links" = no; then
13546 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13547 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13548 need_locks=warn
13549 fi
13550 else
13551 need_locks=no
13552 fi
13553
13554 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13555 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13556
13557 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13558 case $host_os in
13559 aix4* | aix5*)
13560 # If we're using GNU nm, then we don't want the "-C" option.
13561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13562 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13563 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'
13564 else
13565 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'
13566 fi
13567 ;;
13568 pw32*)
13569 export_symbols_cmds_CXX="$ltdll_cmds"
13570 ;;
13571 cygwin* | mingw*)
13572 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'
13573 ;;
13574 *)
13575 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13576 ;;
13577 esac
13578
13579 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13580 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13581 test "$ld_shlibs_CXX" = no && can_build_shared=no
13582
13583 #
13584 # Do we need to explicitly link libc?
13585 #
13586 case "x$archive_cmds_need_lc_CXX" in
13587 x|xyes)
13588 # Assume -lc should be added
13589 archive_cmds_need_lc_CXX=yes
13590
13591 if test "$enable_shared" = yes && test "$GCC" = yes; then
13592 case $archive_cmds_CXX in
13593 *'~'*)
13594 # FIXME: we may have to deal with multi-command sequences.
13595 ;;
13596 '$CC '*)
13597 # Test whether the compiler implicitly links with -lc since on some
13598 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13599 # to ld, don't add -lc before -lgcc.
13600 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13601 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13602 $rm conftest*
13603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13604
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606 (eval $ac_compile) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } 2>conftest.err; then
13610 soname=conftest
13611 lib=conftest
13612 libobjs=conftest.$ac_objext
13613 deplibs=
13614 wl=$lt_prog_compiler_wl_CXX
13615 pic_flag=$lt_prog_compiler_pic_CXX
13616 compiler_flags=-v
13617 linker_flags=-v
13618 verstring=
13619 output_objdir=.
13620 libname=conftest
13621 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13622 allow_undefined_flag_CXX=
13623 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13624 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }
13628 then
13629 archive_cmds_need_lc_CXX=no
13630 else
13631 archive_cmds_need_lc_CXX=yes
13632 fi
13633 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13634 else
13635 cat conftest.err 1>&5
13636 fi
13637 $rm conftest*
13638 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13639 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13640 ;;
13641 esac
13642 fi
13643 ;;
13644 esac
13645
13646 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13647 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13648 library_names_spec=
13649 libname_spec='lib$name'
13650 soname_spec=
13651 shrext_cmds=".so"
13652 postinstall_cmds=
13653 postuninstall_cmds=
13654 finish_cmds=
13655 finish_eval=
13656 shlibpath_var=
13657 shlibpath_overrides_runpath=unknown
13658 version_type=none
13659 dynamic_linker="$host_os ld.so"
13660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13661 if test "$GCC" = yes; then
13662 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13663 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13664 # if the path contains ";" then we assume it to be the separator
13665 # otherwise default to the standard path separator (i.e. ":") - it is
13666 # assumed that no part of a normal pathname contains ";" but that should
13667 # okay in the real world where ";" in dirpaths is itself problematic.
13668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13669 else
13670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13671 fi
13672 else
13673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13674 fi
13675 need_lib_prefix=unknown
13676 hardcode_into_libs=no
13677
13678 # when you set need_version to no, make sure it does not cause -set_version
13679 # flags to be left without arguments
13680 need_version=unknown
13681
13682 case $host_os in
13683 aix3*)
13684 version_type=linux
13685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13686 shlibpath_var=LIBPATH
13687
13688 # AIX 3 has no versioning support, so we append a major version to the name.
13689 soname_spec='${libname}${release}${shared_ext}$major'
13690 ;;
13691
13692 aix4* | aix5*)
13693 version_type=linux
13694 need_lib_prefix=no
13695 need_version=no
13696 hardcode_into_libs=yes
13697 if test "$host_cpu" = ia64; then
13698 # AIX 5 supports IA64
13699 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13700 shlibpath_var=LD_LIBRARY_PATH
13701 else
13702 # With GCC up to 2.95.x, collect2 would create an import file
13703 # for dependence libraries. The import file would start with
13704 # the line `#! .'. This would cause the generated library to
13705 # depend on `.', always an invalid library. This was fixed in
13706 # development snapshots of GCC prior to 3.0.
13707 case $host_os in
13708 aix4 | aix4.[01] | aix4.[01].*)
13709 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13710 echo ' yes '
13711 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13712 :
13713 else
13714 can_build_shared=no
13715 fi
13716 ;;
13717 esac
13718 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13719 # soname into executable. Probably we can add versioning support to
13720 # collect2, so additional links can be useful in future.
13721 if test "$aix_use_runtimelinking" = yes; then
13722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13723 # instead of lib<name>.a to let people know that these are not
13724 # typical AIX shared libraries.
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13726 else
13727 # We preserve .a as extension for shared libraries through AIX4.2
13728 # and later when we are not doing run time linking.
13729 library_names_spec='${libname}${release}.a $libname.a'
13730 soname_spec='${libname}${release}${shared_ext}$major'
13731 fi
13732 shlibpath_var=LIBPATH
13733 fi
13734 ;;
13735
13736 amigaos*)
13737 library_names_spec='$libname.ixlibrary $libname.a'
13738 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13739 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'
13740 ;;
13741
13742 beos*)
13743 library_names_spec='${libname}${shared_ext}'
13744 dynamic_linker="$host_os ld.so"
13745 shlibpath_var=LIBRARY_PATH
13746 ;;
13747
13748 bsdi[45]*)
13749 version_type=linux
13750 need_version=no
13751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13752 soname_spec='${libname}${release}${shared_ext}$major'
13753 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13754 shlibpath_var=LD_LIBRARY_PATH
13755 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13756 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13757 # the default ld.so.conf also contains /usr/contrib/lib and
13758 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13759 # libtool to hard-code these into programs
13760 ;;
13761
13762 cygwin* | mingw* | pw32*)
13763 version_type=windows
13764 shrext_cmds=".dll"
13765 need_version=no
13766 need_lib_prefix=no
13767
13768 case $GCC,$host_os in
13769 yes,cygwin* | yes,mingw* | yes,pw32*)
13770 library_names_spec='$libname.dll.a'
13771 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13772 postinstall_cmds='base_file=`basename \${file}`~
13773 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13774 dldir=$destdir/`dirname \$dlpath`~
13775 test -d \$dldir || mkdir -p \$dldir~
13776 $install_prog $dir/$dlname \$dldir/$dlname~
13777 chmod a+x \$dldir/$dlname'
13778 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13779 dlpath=$dir/\$dldll~
13780 $rm \$dlpath'
13781 shlibpath_overrides_runpath=yes
13782
13783 case $host_os in
13784 cygwin*)
13785 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13786 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13787 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13788 ;;
13789 mingw*)
13790 # MinGW DLLs use traditional 'lib' prefix
13791 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13792 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13793 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13794 # It is most probably a Windows format PATH printed by
13795 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13796 # path with ; separators, and with drive letters. We can handle the
13797 # drive letters (cygwin fileutils understands them), so leave them,
13798 # especially as we might pass files found there to a mingw objdump,
13799 # which wouldn't understand a cygwinified path. Ahh.
13800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13801 else
13802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13803 fi
13804 ;;
13805 pw32*)
13806 # pw32 DLLs use 'pw' prefix rather than 'lib'
13807 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13808 ;;
13809 esac
13810 ;;
13811
13812 *)
13813 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13814 ;;
13815 esac
13816 dynamic_linker='Win32 ld.exe'
13817 # FIXME: first we should search . and the directory the executable is in
13818 shlibpath_var=PATH
13819 ;;
13820
13821 darwin* | rhapsody*)
13822 dynamic_linker="$host_os dyld"
13823 version_type=darwin
13824 need_lib_prefix=no
13825 need_version=no
13826 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13827 soname_spec='${libname}${release}${major}$shared_ext'
13828 shlibpath_overrides_runpath=yes
13829 shlibpath_var=DYLD_LIBRARY_PATH
13830 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13831 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13832 if test "$GCC" = yes; then
13833 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"`
13834 else
13835 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13836 fi
13837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13838 ;;
13839
13840 dgux*)
13841 version_type=linux
13842 need_lib_prefix=no
13843 need_version=no
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13845 soname_spec='${libname}${release}${shared_ext}$major'
13846 shlibpath_var=LD_LIBRARY_PATH
13847 ;;
13848
13849 freebsd1*)
13850 dynamic_linker=no
13851 ;;
13852
13853 kfreebsd*-gnu)
13854 version_type=linux
13855 need_lib_prefix=no
13856 need_version=no
13857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13858 soname_spec='${libname}${release}${shared_ext}$major'
13859 shlibpath_var=LD_LIBRARY_PATH
13860 shlibpath_overrides_runpath=no
13861 hardcode_into_libs=yes
13862 dynamic_linker='GNU ld.so'
13863 ;;
13864
13865 freebsd* | dragonfly*)
13866 # DragonFly does not have aout. When/if they implement a new
13867 # versioning mechanism, adjust this.
13868 if test -x /usr/bin/objformat; then
13869 objformat=`/usr/bin/objformat`
13870 else
13871 case $host_os in
13872 freebsd[123]*) objformat=aout ;;
13873 *) objformat=elf ;;
13874 esac
13875 fi
13876 version_type=freebsd-$objformat
13877 case $version_type in
13878 freebsd-elf*)
13879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13880 need_version=no
13881 need_lib_prefix=no
13882 ;;
13883 freebsd-*)
13884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13885 need_version=yes
13886 ;;
13887 esac
13888 shlibpath_var=LD_LIBRARY_PATH
13889 case $host_os in
13890 freebsd2*)
13891 shlibpath_overrides_runpath=yes
13892 ;;
13893 freebsd3.[01]* | freebsdelf3.[01]*)
13894 shlibpath_overrides_runpath=yes
13895 hardcode_into_libs=yes
13896 ;;
13897 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13898 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13899 shlibpath_overrides_runpath=no
13900 hardcode_into_libs=yes
13901 ;;
13902 freebsd*) # from 4.6 on
13903 shlibpath_overrides_runpath=yes
13904 hardcode_into_libs=yes
13905 ;;
13906 esac
13907 ;;
13908
13909 gnu*)
13910 version_type=linux
13911 need_lib_prefix=no
13912 need_version=no
13913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13914 soname_spec='${libname}${release}${shared_ext}$major'
13915 shlibpath_var=LD_LIBRARY_PATH
13916 hardcode_into_libs=yes
13917 ;;
13918
13919 hpux9* | hpux10* | hpux11*)
13920 # Give a soname corresponding to the major version so that dld.sl refuses to
13921 # link against other versions.
13922 version_type=sunos
13923 need_lib_prefix=no
13924 need_version=no
13925 case $host_cpu in
13926 ia64*)
13927 shrext_cmds='.so'
13928 hardcode_into_libs=yes
13929 dynamic_linker="$host_os dld.so"
13930 shlibpath_var=LD_LIBRARY_PATH
13931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 if test "X$HPUX_IA64_MODE" = X32; then
13935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13936 else
13937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13938 fi
13939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13940 ;;
13941 hppa*64*)
13942 shrext_cmds='.sl'
13943 hardcode_into_libs=yes
13944 dynamic_linker="$host_os dld.sl"
13945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948 soname_spec='${libname}${release}${shared_ext}$major'
13949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13951 ;;
13952 *)
13953 shrext_cmds='.sl'
13954 dynamic_linker="$host_os dld.sl"
13955 shlibpath_var=SHLIB_PATH
13956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13958 soname_spec='${libname}${release}${shared_ext}$major'
13959 ;;
13960 esac
13961 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13962 postinstall_cmds='chmod 555 $lib'
13963 ;;
13964
13965 interix3*)
13966 version_type=linux
13967 need_lib_prefix=no
13968 need_version=no
13969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13970 soname_spec='${libname}${release}${shared_ext}$major'
13971 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13972 shlibpath_var=LD_LIBRARY_PATH
13973 shlibpath_overrides_runpath=no
13974 hardcode_into_libs=yes
13975 ;;
13976
13977 irix5* | irix6* | nonstopux*)
13978 case $host_os in
13979 nonstopux*) version_type=nonstopux ;;
13980 *)
13981 if test "$lt_cv_prog_gnu_ld" = yes; then
13982 version_type=linux
13983 else
13984 version_type=irix
13985 fi ;;
13986 esac
13987 need_lib_prefix=no
13988 need_version=no
13989 soname_spec='${libname}${release}${shared_ext}$major'
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13991 case $host_os in
13992 irix5* | nonstopux*)
13993 libsuff= shlibsuff=
13994 ;;
13995 *)
13996 case $LD in # libtool.m4 will add one of these switches to LD
13997 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13998 libsuff= shlibsuff= libmagic=32-bit;;
13999 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14000 libsuff=32 shlibsuff=N32 libmagic=N32;;
14001 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14002 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14003 *) libsuff= shlibsuff= libmagic=never-match;;
14004 esac
14005 ;;
14006 esac
14007 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14008 shlibpath_overrides_runpath=no
14009 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14010 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14011 hardcode_into_libs=yes
14012 ;;
14013
14014 # No shared lib support for Linux oldld, aout, or coff.
14015 linux*oldld* | linux*aout* | linux*coff*)
14016 dynamic_linker=no
14017 ;;
14018
14019 # This must be Linux ELF.
14020 linux*)
14021 version_type=linux
14022 need_lib_prefix=no
14023 need_version=no
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 soname_spec='${libname}${release}${shared_ext}$major'
14026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14027 shlibpath_var=LD_LIBRARY_PATH
14028 shlibpath_overrides_runpath=no
14029 # This implies no fast_install, which is unacceptable.
14030 # Some rework will be needed to allow for fast_install
14031 # before this can be enabled.
14032 hardcode_into_libs=yes
14033
14034 # find out which ABI we are using
14035 libsuff=
14036 case "$host_cpu" in
14037 x86_64*|s390x*|powerpc64*)
14038 echo '#line 14038 "configure"' > conftest.$ac_ext
14039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14040 (eval $ac_compile) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; then
14044 case `/usr/bin/file conftest.$ac_objext` in
14045 *64-bit*)
14046 libsuff=64
14047 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14048 ;;
14049 esac
14050 fi
14051 rm -rf conftest*
14052 ;;
14053 esac
14054
14055 # Append ld.so.conf contents to the search path
14056 if test -f /etc/ld.so.conf; then
14057 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14058 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14059 fi
14060
14061 # We used to test for /lib/ld.so.1 and disable shared libraries on
14062 # powerpc, because MkLinux only supported shared libraries with the
14063 # GNU dynamic linker. Since this was broken with cross compilers,
14064 # most powerpc-linux boxes support dynamic linking these days and
14065 # people can always --disable-shared, the test was removed, and we
14066 # assume the GNU/Linux dynamic linker is in use.
14067 dynamic_linker='GNU/Linux ld.so'
14068 ;;
14069
14070 knetbsd*-gnu)
14071 version_type=linux
14072 need_lib_prefix=no
14073 need_version=no
14074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14075 soname_spec='${libname}${release}${shared_ext}$major'
14076 shlibpath_var=LD_LIBRARY_PATH
14077 shlibpath_overrides_runpath=no
14078 hardcode_into_libs=yes
14079 dynamic_linker='GNU ld.so'
14080 ;;
14081
14082 netbsd*)
14083 version_type=sunos
14084 need_lib_prefix=no
14085 need_version=no
14086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14089 dynamic_linker='NetBSD (a.out) ld.so'
14090 else
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14092 soname_spec='${libname}${release}${shared_ext}$major'
14093 dynamic_linker='NetBSD ld.elf_so'
14094 fi
14095 shlibpath_var=LD_LIBRARY_PATH
14096 shlibpath_overrides_runpath=yes
14097 hardcode_into_libs=yes
14098 ;;
14099
14100 newsos6)
14101 version_type=linux
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103 shlibpath_var=LD_LIBRARY_PATH
14104 shlibpath_overrides_runpath=yes
14105 ;;
14106
14107 nto-qnx*)
14108 version_type=linux
14109 need_lib_prefix=no
14110 need_version=no
14111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112 soname_spec='${libname}${release}${shared_ext}$major'
14113 shlibpath_var=LD_LIBRARY_PATH
14114 shlibpath_overrides_runpath=yes
14115 ;;
14116
14117 openbsd*)
14118 version_type=sunos
14119 sys_lib_dlsearch_path_spec="/usr/lib"
14120 need_lib_prefix=no
14121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14122 case $host_os in
14123 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14124 *) need_version=no ;;
14125 esac
14126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14128 shlibpath_var=LD_LIBRARY_PATH
14129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14130 case $host_os in
14131 openbsd2.[89] | openbsd2.[89].*)
14132 shlibpath_overrides_runpath=no
14133 ;;
14134 *)
14135 shlibpath_overrides_runpath=yes
14136 ;;
14137 esac
14138 else
14139 shlibpath_overrides_runpath=yes
14140 fi
14141 ;;
14142
14143 os2*)
14144 libname_spec='$name'
14145 shrext_cmds=".dll"
14146 need_lib_prefix=no
14147 library_names_spec='$libname${shared_ext} $libname.a'
14148 dynamic_linker='OS/2 ld.exe'
14149 shlibpath_var=LIBPATH
14150 ;;
14151
14152 osf3* | osf4* | osf5*)
14153 version_type=osf
14154 need_lib_prefix=no
14155 need_version=no
14156 soname_spec='${libname}${release}${shared_ext}$major'
14157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14158 shlibpath_var=LD_LIBRARY_PATH
14159 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14160 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14161 ;;
14162
14163 solaris*)
14164 version_type=linux
14165 need_lib_prefix=no
14166 need_version=no
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 shlibpath_overrides_runpath=yes
14171 hardcode_into_libs=yes
14172 # ldd complains unless libraries are executable
14173 postinstall_cmds='chmod +x $lib'
14174 ;;
14175
14176 sunos4*)
14177 version_type=sunos
14178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14179 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14180 shlibpath_var=LD_LIBRARY_PATH
14181 shlibpath_overrides_runpath=yes
14182 if test "$with_gnu_ld" = yes; then
14183 need_lib_prefix=no
14184 fi
14185 need_version=yes
14186 ;;
14187
14188 sysv4 | sysv4.3*)
14189 version_type=linux
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191 soname_spec='${libname}${release}${shared_ext}$major'
14192 shlibpath_var=LD_LIBRARY_PATH
14193 case $host_vendor in
14194 sni)
14195 shlibpath_overrides_runpath=no
14196 need_lib_prefix=no
14197 export_dynamic_flag_spec='${wl}-Blargedynsym'
14198 runpath_var=LD_RUN_PATH
14199 ;;
14200 siemens)
14201 need_lib_prefix=no
14202 ;;
14203 motorola)
14204 need_lib_prefix=no
14205 need_version=no
14206 shlibpath_overrides_runpath=no
14207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14208 ;;
14209 esac
14210 ;;
14211
14212 sysv4*MP*)
14213 if test -d /usr/nec ;then
14214 version_type=linux
14215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14216 soname_spec='$libname${shared_ext}.$major'
14217 shlibpath_var=LD_LIBRARY_PATH
14218 fi
14219 ;;
14220
14221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14222 version_type=freebsd-elf
14223 need_lib_prefix=no
14224 need_version=no
14225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14226 soname_spec='${libname}${release}${shared_ext}$major'
14227 shlibpath_var=LD_LIBRARY_PATH
14228 hardcode_into_libs=yes
14229 if test "$with_gnu_ld" = yes; then
14230 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14231 shlibpath_overrides_runpath=no
14232 else
14233 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14234 shlibpath_overrides_runpath=yes
14235 case $host_os in
14236 sco3.2v5*)
14237 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14238 ;;
14239 esac
14240 fi
14241 sys_lib_dlsearch_path_spec='/usr/lib'
14242 ;;
14243
14244 uts4*)
14245 version_type=linux
14246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14247 soname_spec='${libname}${release}${shared_ext}$major'
14248 shlibpath_var=LD_LIBRARY_PATH
14249 ;;
14250
14251 *)
14252 dynamic_linker=no
14253 ;;
14254 esac
14255 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14256 echo "${ECHO_T}$dynamic_linker" >&6; }
14257 test "$dynamic_linker" = no && can_build_shared=no
14258
14259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14260 if test "$GCC" = yes; then
14261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14262 fi
14263
14264 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14266 hardcode_action_CXX=
14267 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14268 test -n "$runpath_var_CXX" || \
14269 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14270
14271 # We can hardcode non-existant directories.
14272 if test "$hardcode_direct_CXX" != no &&
14273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14274 # have to relink, otherwise we might link with an installed library
14275 # when we should be linking with a yet-to-be-installed one
14276 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14277 test "$hardcode_minus_L_CXX" != no; then
14278 # Linking always hardcodes the temporary library directory.
14279 hardcode_action_CXX=relink
14280 else
14281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14282 hardcode_action_CXX=immediate
14283 fi
14284 else
14285 # We cannot hardcode anything, or else we can only hardcode existing
14286 # directories.
14287 hardcode_action_CXX=unsupported
14288 fi
14289 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14290 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14291
14292 if test "$hardcode_action_CXX" = relink; then
14293 # Fast installation is not supported
14294 enable_fast_install=no
14295 elif test "$shlibpath_overrides_runpath" = yes ||
14296 test "$enable_shared" = no; then
14297 # Fast installation is not necessary
14298 enable_fast_install=needless
14299 fi
14300
14301
14302 # The else clause should only fire when bootstrapping the
14303 # libtool distribution, otherwise you forgot to ship ltmain.sh
14304 # with your package, and you will get complaints that there are
14305 # no rules to generate ltmain.sh.
14306 if test -f "$ltmain"; then
14307 # See if we are running on zsh, and set the options which allow our commands through
14308 # without removal of \ escapes.
14309 if test -n "${ZSH_VERSION+set}" ; then
14310 setopt NO_GLOB_SUBST
14311 fi
14312 # Now quote all the things that may contain metacharacters while being
14313 # careful not to overquote the AC_SUBSTed values. We take copies of the
14314 # variables and quote the copies for generation of the libtool script.
14315 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14316 SED SHELL STRIP \
14317 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14318 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14319 deplibs_check_method reload_flag reload_cmds need_locks \
14320 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14321 lt_cv_sys_global_symbol_to_c_name_address \
14322 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14323 old_postinstall_cmds old_postuninstall_cmds \
14324 compiler_CXX \
14325 CC_CXX \
14326 LD_CXX \
14327 lt_prog_compiler_wl_CXX \
14328 lt_prog_compiler_pic_CXX \
14329 lt_prog_compiler_static_CXX \
14330 lt_prog_compiler_no_builtin_flag_CXX \
14331 export_dynamic_flag_spec_CXX \
14332 thread_safe_flag_spec_CXX \
14333 whole_archive_flag_spec_CXX \
14334 enable_shared_with_static_runtimes_CXX \
14335 old_archive_cmds_CXX \
14336 old_archive_from_new_cmds_CXX \
14337 predep_objects_CXX \
14338 postdep_objects_CXX \
14339 predeps_CXX \
14340 postdeps_CXX \
14341 compiler_lib_search_path_CXX \
14342 archive_cmds_CXX \
14343 archive_expsym_cmds_CXX \
14344 postinstall_cmds_CXX \
14345 postuninstall_cmds_CXX \
14346 old_archive_from_expsyms_cmds_CXX \
14347 allow_undefined_flag_CXX \
14348 no_undefined_flag_CXX \
14349 export_symbols_cmds_CXX \
14350 hardcode_libdir_flag_spec_CXX \
14351 hardcode_libdir_flag_spec_ld_CXX \
14352 hardcode_libdir_separator_CXX \
14353 hardcode_automatic_CXX \
14354 module_cmds_CXX \
14355 module_expsym_cmds_CXX \
14356 lt_cv_prog_compiler_c_o_CXX \
14357 exclude_expsyms_CXX \
14358 include_expsyms_CXX; do
14359
14360 case $var in
14361 old_archive_cmds_CXX | \
14362 old_archive_from_new_cmds_CXX | \
14363 archive_cmds_CXX | \
14364 archive_expsym_cmds_CXX | \
14365 module_cmds_CXX | \
14366 module_expsym_cmds_CXX | \
14367 old_archive_from_expsyms_cmds_CXX | \
14368 export_symbols_cmds_CXX | \
14369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14370 postinstall_cmds | postuninstall_cmds | \
14371 old_postinstall_cmds | old_postuninstall_cmds | \
14372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14373 # Double-quote double-evaled strings.
14374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14375 ;;
14376 *)
14377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14378 ;;
14379 esac
14380 done
14381
14382 case $lt_echo in
14383 *'\$0 --fallback-echo"')
14384 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14385 ;;
14386 esac
14387
14388 cfgfile="$ofile"
14389
14390 cat <<__EOF__ >> "$cfgfile"
14391 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14392
14393 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14394
14395 # Shell to use when invoking shell scripts.
14396 SHELL=$lt_SHELL
14397
14398 # Whether or not to build shared libraries.
14399 build_libtool_libs=$enable_shared
14400
14401 # Whether or not to build static libraries.
14402 build_old_libs=$enable_static
14403
14404 # Whether or not to add -lc for building shared libraries.
14405 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14406
14407 # Whether or not to disallow shared libs when runtime libs are static
14408 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14409
14410 # Whether or not to optimize for fast installation.
14411 fast_install=$enable_fast_install
14412
14413 # The host system.
14414 host_alias=$host_alias
14415 host=$host
14416 host_os=$host_os
14417
14418 # The build system.
14419 build_alias=$build_alias
14420 build=$build
14421 build_os=$build_os
14422
14423 # An echo program that does not interpret backslashes.
14424 echo=$lt_echo
14425
14426 # The archiver.
14427 AR=$lt_AR
14428 AR_FLAGS=$lt_AR_FLAGS
14429
14430 # A C compiler.
14431 LTCC=$lt_LTCC
14432
14433 # LTCC compiler flags.
14434 LTCFLAGS=$lt_LTCFLAGS
14435
14436 # A language-specific compiler.
14437 CC=$lt_compiler_CXX
14438
14439 # Is the compiler the GNU C compiler?
14440 with_gcc=$GCC_CXX
14441
14442 # An ERE matcher.
14443 EGREP=$lt_EGREP
14444
14445 # The linker used to build libraries.
14446 LD=$lt_LD_CXX
14447
14448 # Whether we need hard or soft links.
14449 LN_S=$lt_LN_S
14450
14451 # A BSD-compatible nm program.
14452 NM=$lt_NM
14453
14454 # A symbol stripping program
14455 STRIP=$lt_STRIP
14456
14457 # Used to examine libraries when file_magic_cmd begins "file"
14458 MAGIC_CMD=$MAGIC_CMD
14459
14460 # Used on cygwin: DLL creation program.
14461 DLLTOOL="$DLLTOOL"
14462
14463 # Used on cygwin: object dumper.
14464 OBJDUMP="$OBJDUMP"
14465
14466 # Used on cygwin: assembler.
14467 AS="$AS"
14468
14469 # The name of the directory that contains temporary libtool files.
14470 objdir=$objdir
14471
14472 # How to create reloadable object files.
14473 reload_flag=$lt_reload_flag
14474 reload_cmds=$lt_reload_cmds
14475
14476 # How to pass a linker flag through the compiler.
14477 wl=$lt_lt_prog_compiler_wl_CXX
14478
14479 # Object file suffix (normally "o").
14480 objext="$ac_objext"
14481
14482 # Old archive suffix (normally "a").
14483 libext="$libext"
14484
14485 # Shared library suffix (normally ".so").
14486 shrext_cmds='$shrext_cmds'
14487
14488 # Executable file suffix (normally "").
14489 exeext="$exeext"
14490
14491 # Additional compiler flags for building library objects.
14492 pic_flag=$lt_lt_prog_compiler_pic_CXX
14493 pic_mode=$pic_mode
14494
14495 # What is the maximum length of a command?
14496 max_cmd_len=$lt_cv_sys_max_cmd_len
14497
14498 # Does compiler simultaneously support -c and -o options?
14499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14500
14501 # Must we lock files when doing compilation?
14502 need_locks=$lt_need_locks
14503
14504 # Do we need the lib prefix for modules?
14505 need_lib_prefix=$need_lib_prefix
14506
14507 # Do we need a version for libraries?
14508 need_version=$need_version
14509
14510 # Whether dlopen is supported.
14511 dlopen_support=$enable_dlopen
14512
14513 # Whether dlopen of programs is supported.
14514 dlopen_self=$enable_dlopen_self
14515
14516 # Whether dlopen of statically linked programs is supported.
14517 dlopen_self_static=$enable_dlopen_self_static
14518
14519 # Compiler flag to prevent dynamic linking.
14520 link_static_flag=$lt_lt_prog_compiler_static_CXX
14521
14522 # Compiler flag to turn off builtin functions.
14523 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14524
14525 # Compiler flag to allow reflexive dlopens.
14526 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14527
14528 # Compiler flag to generate shared objects directly from archives.
14529 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14530
14531 # Compiler flag to generate thread-safe objects.
14532 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14533
14534 # Library versioning type.
14535 version_type=$version_type
14536
14537 # Format of library name prefix.
14538 libname_spec=$lt_libname_spec
14539
14540 # List of archive names. First name is the real one, the rest are links.
14541 # The last name is the one that the linker finds with -lNAME.
14542 library_names_spec=$lt_library_names_spec
14543
14544 # The coded name of the library, if different from the real name.
14545 soname_spec=$lt_soname_spec
14546
14547 # Commands used to build and install an old-style archive.
14548 RANLIB=$lt_RANLIB
14549 old_archive_cmds=$lt_old_archive_cmds_CXX
14550 old_postinstall_cmds=$lt_old_postinstall_cmds
14551 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14552
14553 # Create an old-style archive from a shared archive.
14554 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14555
14556 # Create a temporary old-style archive to link instead of a shared archive.
14557 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14558
14559 # Commands used to build and install a shared archive.
14560 archive_cmds=$lt_archive_cmds_CXX
14561 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14562 postinstall_cmds=$lt_postinstall_cmds
14563 postuninstall_cmds=$lt_postuninstall_cmds
14564
14565 # Commands used to build a loadable module (assumed same as above if empty)
14566 module_cmds=$lt_module_cmds_CXX
14567 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14568
14569 # Commands to strip libraries.
14570 old_striplib=$lt_old_striplib
14571 striplib=$lt_striplib
14572
14573 # Dependencies to place before the objects being linked to create a
14574 # shared library.
14575 predep_objects=$lt_predep_objects_CXX
14576
14577 # Dependencies to place after the objects being linked to create a
14578 # shared library.
14579 postdep_objects=$lt_postdep_objects_CXX
14580
14581 # Dependencies to place before the objects being linked to create a
14582 # shared library.
14583 predeps=$lt_predeps_CXX
14584
14585 # Dependencies to place after the objects being linked to create a
14586 # shared library.
14587 postdeps=$lt_postdeps_CXX
14588
14589 # The library search path used internally by the compiler when linking
14590 # a shared library.
14591 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14592
14593 # Method to check whether dependent libraries are shared objects.
14594 deplibs_check_method=$lt_deplibs_check_method
14595
14596 # Command to use when deplibs_check_method == file_magic.
14597 file_magic_cmd=$lt_file_magic_cmd
14598
14599 # Flag that allows shared libraries with undefined symbols to be built.
14600 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14601
14602 # Flag that forces no undefined symbols.
14603 no_undefined_flag=$lt_no_undefined_flag_CXX
14604
14605 # Commands used to finish a libtool library installation in a directory.
14606 finish_cmds=$lt_finish_cmds
14607
14608 # Same as above, but a single script fragment to be evaled but not shown.
14609 finish_eval=$lt_finish_eval
14610
14611 # Take the output of nm and produce a listing of raw symbols and C names.
14612 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14613
14614 # Transform the output of nm in a proper C declaration
14615 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14616
14617 # Transform the output of nm in a C name address pair
14618 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14619
14620 # This is the shared library runtime path variable.
14621 runpath_var=$runpath_var
14622
14623 # This is the shared library path variable.
14624 shlibpath_var=$shlibpath_var
14625
14626 # Is shlibpath searched before the hard-coded library search path?
14627 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14628
14629 # How to hardcode a shared library path into an executable.
14630 hardcode_action=$hardcode_action_CXX
14631
14632 # Whether we should hardcode library paths into libraries.
14633 hardcode_into_libs=$hardcode_into_libs
14634
14635 # Flag to hardcode \$libdir into a binary during linking.
14636 # This must work even if \$libdir does not exist.
14637 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14638
14639 # If ld is used when linking, flag to hardcode \$libdir into
14640 # a binary during linking. This must work even if \$libdir does
14641 # not exist.
14642 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14643
14644 # Whether we need a single -rpath flag with a separated argument.
14645 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14646
14647 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14648 # resulting binary.
14649 hardcode_direct=$hardcode_direct_CXX
14650
14651 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14652 # resulting binary.
14653 hardcode_minus_L=$hardcode_minus_L_CXX
14654
14655 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14656 # the resulting binary.
14657 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14658
14659 # Set to yes if building a shared library automatically hardcodes DIR into the library
14660 # and all subsequent libraries and executables linked against it.
14661 hardcode_automatic=$hardcode_automatic_CXX
14662
14663 # Variables whose values should be saved in libtool wrapper scripts and
14664 # restored at relink time.
14665 variables_saved_for_relink="$variables_saved_for_relink"
14666
14667 # Whether libtool must link a program against all its dependency libraries.
14668 link_all_deplibs=$link_all_deplibs_CXX
14669
14670 # Compile-time system search path for libraries
14671 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14672
14673 # Run-time system search path for libraries
14674 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14675
14676 # Fix the shell variable \$srcfile for the compiler.
14677 fix_srcfile_path="$fix_srcfile_path_CXX"
14678
14679 # Set to yes if exported symbols are required.
14680 always_export_symbols=$always_export_symbols_CXX
14681
14682 # The commands to list exported symbols.
14683 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14684
14685 # The commands to extract the exported symbol list from a shared archive.
14686 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14687
14688 # Symbols that should not be listed in the preloaded symbols.
14689 exclude_expsyms=$lt_exclude_expsyms_CXX
14690
14691 # Symbols that must always be exported.
14692 include_expsyms=$lt_include_expsyms_CXX
14693
14694 # ### END LIBTOOL TAG CONFIG: $tagname
14695
14696 __EOF__
14697
14698
14699 else
14700 # If there is no Makefile yet, we rely on a make rule to execute
14701 # `config.status --recheck' to rerun these tests and create the
14702 # libtool script then.
14703 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14704 if test -f "$ltmain_in"; then
14705 test -f Makefile && make "$ltmain"
14706 fi
14707 fi
14708
14709
14710 ac_ext=c
14711 ac_cpp='$CPP $CPPFLAGS'
14712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14715
14716 CC=$lt_save_CC
14717 LDCXX=$LD
14718 LD=$lt_save_LD
14719 GCC=$lt_save_GCC
14720 with_gnu_ldcxx=$with_gnu_ld
14721 with_gnu_ld=$lt_save_with_gnu_ld
14722 lt_cv_path_LDCXX=$lt_cv_path_LD
14723 lt_cv_path_LD=$lt_save_path_LD
14724 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14725 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14726
14727 else
14728 tagname=""
14729 fi
14730 ;;
14731
14732 F77)
14733 if test -n "$F77" && test "X$F77" != "Xno"; then
14734
14735 ac_ext=f
14736 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14737 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14738 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14739
14740
14741 archive_cmds_need_lc_F77=no
14742 allow_undefined_flag_F77=
14743 always_export_symbols_F77=no
14744 archive_expsym_cmds_F77=
14745 export_dynamic_flag_spec_F77=
14746 hardcode_direct_F77=no
14747 hardcode_libdir_flag_spec_F77=
14748 hardcode_libdir_flag_spec_ld_F77=
14749 hardcode_libdir_separator_F77=
14750 hardcode_minus_L_F77=no
14751 hardcode_automatic_F77=no
14752 module_cmds_F77=
14753 module_expsym_cmds_F77=
14754 link_all_deplibs_F77=unknown
14755 old_archive_cmds_F77=$old_archive_cmds
14756 no_undefined_flag_F77=
14757 whole_archive_flag_spec_F77=
14758 enable_shared_with_static_runtimes_F77=no
14759
14760 # Source file extension for f77 test sources.
14761 ac_ext=f
14762
14763 # Object file extension for compiled f77 test sources.
14764 objext=o
14765 objext_F77=$objext
14766
14767 # Code to be used in simple compile tests
14768 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14769
14770 # Code to be used in simple link tests
14771 lt_simple_link_test_code=" program t\n end\n"
14772
14773 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14774
14775 # If no C compiler was specified, use CC.
14776 LTCC=${LTCC-"$CC"}
14777
14778 # If no C compiler flags were specified, use CFLAGS.
14779 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14780
14781 # Allow CC to be a program name with arguments.
14782 compiler=$CC
14783
14784
14785 # save warnings/boilerplate of simple test code
14786 ac_outfile=conftest.$ac_objext
14787 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14788 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14789 _lt_compiler_boilerplate=`cat conftest.err`
14790 $rm conftest*
14791
14792 ac_outfile=conftest.$ac_objext
14793 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14794 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14795 _lt_linker_boilerplate=`cat conftest.err`
14796 $rm conftest*
14797
14798
14799 # Allow CC to be a program name with arguments.
14800 lt_save_CC="$CC"
14801 CC=${F77-"f77"}
14802 compiler=$CC
14803 compiler_F77=$CC
14804 for cc_temp in $compiler""; do
14805 case $cc_temp in
14806 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14807 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14808 \-*) ;;
14809 *) break;;
14810 esac
14811 done
14812 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14813
14814
14815 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14816 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14817 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14818 echo "${ECHO_T}$can_build_shared" >&6; }
14819
14820 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14821 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14822 test "$can_build_shared" = "no" && enable_shared=no
14823
14824 # On AIX, shared libraries and static libraries use the same namespace, and
14825 # are all built from PIC.
14826 case $host_os in
14827 aix3*)
14828 test "$enable_shared" = yes && enable_static=no
14829 if test -n "$RANLIB"; then
14830 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14831 postinstall_cmds='$RANLIB $lib'
14832 fi
14833 ;;
14834 aix4* | aix5*)
14835 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14836 test "$enable_shared" = yes && enable_static=no
14837 fi
14838 ;;
14839 esac
14840 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14841 echo "${ECHO_T}$enable_shared" >&6; }
14842
14843 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14844 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14845 # Make sure either enable_shared or enable_static is yes.
14846 test "$enable_shared" = yes || enable_static=yes
14847 { echo "$as_me:$LINENO: result: $enable_static" >&5
14848 echo "${ECHO_T}$enable_static" >&6; }
14849
14850 GCC_F77="$G77"
14851 LD_F77="$LD"
14852
14853 lt_prog_compiler_wl_F77=
14854 lt_prog_compiler_pic_F77=
14855 lt_prog_compiler_static_F77=
14856
14857 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14858 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14859
14860 if test "$GCC" = yes; then
14861 lt_prog_compiler_wl_F77='-Wl,'
14862 lt_prog_compiler_static_F77='-static'
14863
14864 case $host_os in
14865 aix*)
14866 # All AIX code is PIC.
14867 if test "$host_cpu" = ia64; then
14868 # AIX 5 now supports IA64 processor
14869 lt_prog_compiler_static_F77='-Bstatic'
14870 fi
14871 ;;
14872
14873 amigaos*)
14874 # FIXME: we need at least 68020 code to build shared libraries, but
14875 # adding the `-m68020' flag to GCC prevents building anything better,
14876 # like `-m68040'.
14877 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14878 ;;
14879
14880 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14881 # PIC is the default for these OSes.
14882 ;;
14883
14884 mingw* | pw32* | os2*)
14885 # This hack is so that the source file can tell whether it is being
14886 # built for inclusion in a dll (and should export symbols for example).
14887 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14888 ;;
14889
14890 darwin* | rhapsody*)
14891 # PIC is the default on this platform
14892 # Common symbols not allowed in MH_DYLIB files
14893 lt_prog_compiler_pic_F77='-fno-common'
14894 ;;
14895
14896 interix3*)
14897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14898 # Instead, we relocate shared libraries at runtime.
14899 ;;
14900
14901 msdosdjgpp*)
14902 # Just because we use GCC doesn't mean we suddenly get shared libraries
14903 # on systems that don't support them.
14904 lt_prog_compiler_can_build_shared_F77=no
14905 enable_shared=no
14906 ;;
14907
14908 sysv4*MP*)
14909 if test -d /usr/nec; then
14910 lt_prog_compiler_pic_F77=-Kconform_pic
14911 fi
14912 ;;
14913
14914 hpux*)
14915 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14916 # not for PA HP-UX.
14917 case $host_cpu in
14918 hppa*64*|ia64*)
14919 # +Z the default
14920 ;;
14921 *)
14922 lt_prog_compiler_pic_F77='-fPIC'
14923 ;;
14924 esac
14925 ;;
14926
14927 *)
14928 lt_prog_compiler_pic_F77='-fPIC'
14929 ;;
14930 esac
14931 else
14932 # PORTME Check for flag to pass linker flags through the system compiler.
14933 case $host_os in
14934 aix*)
14935 lt_prog_compiler_wl_F77='-Wl,'
14936 if test "$host_cpu" = ia64; then
14937 # AIX 5 now supports IA64 processor
14938 lt_prog_compiler_static_F77='-Bstatic'
14939 else
14940 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14941 fi
14942 ;;
14943 darwin*)
14944 # PIC is the default on this platform
14945 # Common symbols not allowed in MH_DYLIB files
14946 case $cc_basename in
14947 xlc*)
14948 lt_prog_compiler_pic_F77='-qnocommon'
14949 lt_prog_compiler_wl_F77='-Wl,'
14950 ;;
14951 esac
14952 ;;
14953
14954 mingw* | pw32* | os2*)
14955 # This hack is so that the source file can tell whether it is being
14956 # built for inclusion in a dll (and should export symbols for example).
14957 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14958 ;;
14959
14960 hpux9* | hpux10* | hpux11*)
14961 lt_prog_compiler_wl_F77='-Wl,'
14962 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14963 # not for PA HP-UX.
14964 case $host_cpu in
14965 hppa*64*|ia64*)
14966 # +Z the default
14967 ;;
14968 *)
14969 lt_prog_compiler_pic_F77='+Z'
14970 ;;
14971 esac
14972 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14973 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14974 ;;
14975
14976 irix5* | irix6* | nonstopux*)
14977 lt_prog_compiler_wl_F77='-Wl,'
14978 # PIC (with -KPIC) is the default.
14979 lt_prog_compiler_static_F77='-non_shared'
14980 ;;
14981
14982 newsos6)
14983 lt_prog_compiler_pic_F77='-KPIC'
14984 lt_prog_compiler_static_F77='-Bstatic'
14985 ;;
14986
14987 linux*)
14988 case $cc_basename in
14989 icc* | ecc*)
14990 lt_prog_compiler_wl_F77='-Wl,'
14991 lt_prog_compiler_pic_F77='-KPIC'
14992 lt_prog_compiler_static_F77='-static'
14993 ;;
14994 pgcc* | pgf77* | pgf90* | pgf95*)
14995 # Portland Group compilers (*not* the Pentium gcc compiler,
14996 # which looks to be a dead project)
14997 lt_prog_compiler_wl_F77='-Wl,'
14998 lt_prog_compiler_pic_F77='-fpic'
14999 lt_prog_compiler_static_F77='-Bstatic'
15000 ;;
15001 ccc*)
15002 lt_prog_compiler_wl_F77='-Wl,'
15003 # All Alpha code is PIC.
15004 lt_prog_compiler_static_F77='-non_shared'
15005 ;;
15006 esac
15007 ;;
15008
15009 osf3* | osf4* | osf5*)
15010 lt_prog_compiler_wl_F77='-Wl,'
15011 # All OSF/1 code is PIC.
15012 lt_prog_compiler_static_F77='-non_shared'
15013 ;;
15014
15015 solaris*)
15016 lt_prog_compiler_pic_F77='-KPIC'
15017 lt_prog_compiler_static_F77='-Bstatic'
15018 case $cc_basename in
15019 f77* | f90* | f95*)
15020 lt_prog_compiler_wl_F77='-Qoption ld ';;
15021 *)
15022 lt_prog_compiler_wl_F77='-Wl,';;
15023 esac
15024 ;;
15025
15026 sunos4*)
15027 lt_prog_compiler_wl_F77='-Qoption ld '
15028 lt_prog_compiler_pic_F77='-PIC'
15029 lt_prog_compiler_static_F77='-Bstatic'
15030 ;;
15031
15032 sysv4 | sysv4.2uw2* | sysv4.3*)
15033 lt_prog_compiler_wl_F77='-Wl,'
15034 lt_prog_compiler_pic_F77='-KPIC'
15035 lt_prog_compiler_static_F77='-Bstatic'
15036 ;;
15037
15038 sysv4*MP*)
15039 if test -d /usr/nec ;then
15040 lt_prog_compiler_pic_F77='-Kconform_pic'
15041 lt_prog_compiler_static_F77='-Bstatic'
15042 fi
15043 ;;
15044
15045 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15046 lt_prog_compiler_wl_F77='-Wl,'
15047 lt_prog_compiler_pic_F77='-KPIC'
15048 lt_prog_compiler_static_F77='-Bstatic'
15049 ;;
15050
15051 unicos*)
15052 lt_prog_compiler_wl_F77='-Wl,'
15053 lt_prog_compiler_can_build_shared_F77=no
15054 ;;
15055
15056 uts4*)
15057 lt_prog_compiler_pic_F77='-pic'
15058 lt_prog_compiler_static_F77='-Bstatic'
15059 ;;
15060
15061 *)
15062 lt_prog_compiler_can_build_shared_F77=no
15063 ;;
15064 esac
15065 fi
15066
15067 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15068 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15069
15070 #
15071 # Check to make sure the PIC flag actually works.
15072 #
15073 if test -n "$lt_prog_compiler_pic_F77"; then
15074
15075 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15076 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15077 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080 lt_prog_compiler_pic_works_F77=no
15081 ac_outfile=conftest.$ac_objext
15082 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15083 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15084 # Insert the option either (1) after the last *FLAGS variable, or
15085 # (2) before a word containing "conftest.", or (3) at the end.
15086 # Note that $ac_compile itself does not contain backslashes and begins
15087 # with a dollar sign (not a hyphen), so the echo should work correctly.
15088 # The option is referenced via a variable to avoid confusing sed.
15089 lt_compile=`echo "$ac_compile" | $SED \
15090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15092 -e 's:$: $lt_compiler_flag:'`
15093 (eval echo "\"\$as_me:15093: $lt_compile\"" >&5)
15094 (eval "$lt_compile" 2>conftest.err)
15095 ac_status=$?
15096 cat conftest.err >&5
15097 echo "$as_me:15097: \$? = $ac_status" >&5
15098 if (exit $ac_status) && test -s "$ac_outfile"; then
15099 # The compiler can only warn and ignore the option if not recognized
15100 # So say no if there are warnings other than the usual output.
15101 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15103 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15104 lt_prog_compiler_pic_works_F77=yes
15105 fi
15106 fi
15107 $rm conftest*
15108
15109 fi
15110 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15111 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15112
15113 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15114 case $lt_prog_compiler_pic_F77 in
15115 "" | " "*) ;;
15116 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15117 esac
15118 else
15119 lt_prog_compiler_pic_F77=
15120 lt_prog_compiler_can_build_shared_F77=no
15121 fi
15122
15123 fi
15124 case $host_os in
15125 # For platforms which do not support PIC, -DPIC is meaningless:
15126 *djgpp*)
15127 lt_prog_compiler_pic_F77=
15128 ;;
15129 *)
15130 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15131 ;;
15132 esac
15133
15134 #
15135 # Check to make sure the static flag actually works.
15136 #
15137 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15138 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15139 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15140 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15142 else
15143 lt_prog_compiler_static_works_F77=no
15144 save_LDFLAGS="$LDFLAGS"
15145 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15146 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15147 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15148 # The linker can only warn and ignore the option if not recognized
15149 # So say no if there are warnings
15150 if test -s conftest.err; then
15151 # Append any errors to the config.log.
15152 cat conftest.err 1>&5
15153 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15155 if diff conftest.exp conftest.er2 >/dev/null; then
15156 lt_prog_compiler_static_works_F77=yes
15157 fi
15158 else
15159 lt_prog_compiler_static_works_F77=yes
15160 fi
15161 fi
15162 $rm conftest*
15163 LDFLAGS="$save_LDFLAGS"
15164
15165 fi
15166 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15167 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15168
15169 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15170 :
15171 else
15172 lt_prog_compiler_static_F77=
15173 fi
15174
15175
15176 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15177 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15178 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15180 else
15181 lt_cv_prog_compiler_c_o_F77=no
15182 $rm -r conftest 2>/dev/null
15183 mkdir conftest
15184 cd conftest
15185 mkdir out
15186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15187
15188 lt_compiler_flag="-o out/conftest2.$ac_objext"
15189 # Insert the option either (1) after the last *FLAGS variable, or
15190 # (2) before a word containing "conftest.", or (3) at the end.
15191 # Note that $ac_compile itself does not contain backslashes and begins
15192 # with a dollar sign (not a hyphen), so the echo should work correctly.
15193 lt_compile=`echo "$ac_compile" | $SED \
15194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15196 -e 's:$: $lt_compiler_flag:'`
15197 (eval echo "\"\$as_me:15197: $lt_compile\"" >&5)
15198 (eval "$lt_compile" 2>out/conftest.err)
15199 ac_status=$?
15200 cat out/conftest.err >&5
15201 echo "$as_me:15201: \$? = $ac_status" >&5
15202 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15203 then
15204 # The compiler can only warn and ignore the option if not recognized
15205 # So say no if there are warnings
15206 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15207 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15208 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15209 lt_cv_prog_compiler_c_o_F77=yes
15210 fi
15211 fi
15212 chmod u+w . 2>&5
15213 $rm conftest*
15214 # SGI C++ compiler will create directory out/ii_files/ for
15215 # template instantiation
15216 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15217 $rm out/* && rmdir out
15218 cd ..
15219 rmdir conftest
15220 $rm conftest*
15221
15222 fi
15223 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15224 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15225
15226
15227 hard_links="nottested"
15228 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15229 # do not overwrite the value of need_locks provided by the user
15230 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15231 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15232 hard_links=yes
15233 $rm conftest*
15234 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15235 touch conftest.a
15236 ln conftest.a conftest.b 2>&5 || hard_links=no
15237 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15238 { echo "$as_me:$LINENO: result: $hard_links" >&5
15239 echo "${ECHO_T}$hard_links" >&6; }
15240 if test "$hard_links" = no; then
15241 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15242 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15243 need_locks=warn
15244 fi
15245 else
15246 need_locks=no
15247 fi
15248
15249 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15250 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15251
15252 runpath_var=
15253 allow_undefined_flag_F77=
15254 enable_shared_with_static_runtimes_F77=no
15255 archive_cmds_F77=
15256 archive_expsym_cmds_F77=
15257 old_archive_From_new_cmds_F77=
15258 old_archive_from_expsyms_cmds_F77=
15259 export_dynamic_flag_spec_F77=
15260 whole_archive_flag_spec_F77=
15261 thread_safe_flag_spec_F77=
15262 hardcode_libdir_flag_spec_F77=
15263 hardcode_libdir_flag_spec_ld_F77=
15264 hardcode_libdir_separator_F77=
15265 hardcode_direct_F77=no
15266 hardcode_minus_L_F77=no
15267 hardcode_shlibpath_var_F77=unsupported
15268 link_all_deplibs_F77=unknown
15269 hardcode_automatic_F77=no
15270 module_cmds_F77=
15271 module_expsym_cmds_F77=
15272 always_export_symbols_F77=no
15273 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15274 # include_expsyms should be a list of space-separated symbols to be *always*
15275 # included in the symbol list
15276 include_expsyms_F77=
15277 # exclude_expsyms can be an extended regexp of symbols to exclude
15278 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15279 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15280 # as well as any symbol that contains `d'.
15281 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15282 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15283 # platforms (ab)use it in PIC code, but their linkers get confused if
15284 # the symbol is explicitly referenced. Since portable code cannot
15285 # rely on this symbol name, it's probably fine to never include it in
15286 # preloaded symbol tables.
15287 extract_expsyms_cmds=
15288 # Just being paranoid about ensuring that cc_basename is set.
15289 for cc_temp in $compiler""; do
15290 case $cc_temp in
15291 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15292 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15293 \-*) ;;
15294 *) break;;
15295 esac
15296 done
15297 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15298
15299 case $host_os in
15300 cygwin* | mingw* | pw32*)
15301 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15302 # When not using gcc, we currently assume that we are using
15303 # Microsoft Visual C++.
15304 if test "$GCC" != yes; then
15305 with_gnu_ld=no
15306 fi
15307 ;;
15308 interix*)
15309 # we just hope/assume this is gcc and not c89 (= MSVC++)
15310 with_gnu_ld=yes
15311 ;;
15312 openbsd*)
15313 with_gnu_ld=no
15314 ;;
15315 esac
15316
15317 ld_shlibs_F77=yes
15318 if test "$with_gnu_ld" = yes; then
15319 # If archive_cmds runs LD, not CC, wlarc should be empty
15320 wlarc='${wl}'
15321
15322 # Set some defaults for GNU ld with shared library support. These
15323 # are reset later if shared libraries are not supported. Putting them
15324 # here allows them to be overridden if necessary.
15325 runpath_var=LD_RUN_PATH
15326 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15327 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15328 # ancient GNU ld didn't support --whole-archive et. al.
15329 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15330 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15331 else
15332 whole_archive_flag_spec_F77=
15333 fi
15334 supports_anon_versioning=no
15335 case `$LD -v 2>/dev/null` in
15336 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15337 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15338 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15339 *\ 2.11.*) ;; # other 2.11 versions
15340 *) supports_anon_versioning=yes ;;
15341 esac
15342
15343 # See if GNU ld supports shared libraries.
15344 case $host_os in
15345 aix3* | aix4* | aix5*)
15346 # On AIX/PPC, the GNU linker is very broken
15347 if test "$host_cpu" != ia64; then
15348 ld_shlibs_F77=no
15349 cat <<EOF 1>&2
15350
15351 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15352 *** to be unable to reliably create shared libraries on AIX.
15353 *** Therefore, libtool is disabling shared libraries support. If you
15354 *** really care for shared libraries, you may want to modify your PATH
15355 *** so that a non-GNU linker is found, and then restart.
15356
15357 EOF
15358 fi
15359 ;;
15360
15361 amigaos*)
15362 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)'
15363 hardcode_libdir_flag_spec_F77='-L$libdir'
15364 hardcode_minus_L_F77=yes
15365
15366 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15367 # that the semantics of dynamic libraries on AmigaOS, at least up
15368 # to version 4, is to share data among multiple programs linked
15369 # with the same dynamic library. Since this doesn't match the
15370 # behavior of shared libraries on other platforms, we can't use
15371 # them.
15372 ld_shlibs_F77=no
15373 ;;
15374
15375 beos*)
15376 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15377 allow_undefined_flag_F77=unsupported
15378 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15379 # support --undefined. This deserves some investigation. FIXME
15380 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15381 else
15382 ld_shlibs_F77=no
15383 fi
15384 ;;
15385
15386 cygwin* | mingw* | pw32*)
15387 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15388 # as there is no search path for DLLs.
15389 hardcode_libdir_flag_spec_F77='-L$libdir'
15390 allow_undefined_flag_F77=unsupported
15391 always_export_symbols_F77=no
15392 enable_shared_with_static_runtimes_F77=yes
15393 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15394
15395 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15396 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15397 # If the export-symbols file already is a .def file (1st line
15398 # is EXPORTS), use it as is; otherwise, prepend...
15399 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15400 cp $export_symbols $output_objdir/$soname.def;
15401 else
15402 echo EXPORTS > $output_objdir/$soname.def;
15403 cat $export_symbols >> $output_objdir/$soname.def;
15404 fi~
15405 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15406 else
15407 ld_shlibs_F77=no
15408 fi
15409 ;;
15410
15411 interix3*)
15412 hardcode_direct_F77=no
15413 hardcode_shlibpath_var_F77=no
15414 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15415 export_dynamic_flag_spec_F77='${wl}-E'
15416 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15417 # Instead, shared libraries are loaded at an image base (0x10000000 by
15418 # default) and relocated if they conflict, which is a slow very memory
15419 # consuming and fragmenting process. To avoid this, we pick a random,
15420 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15421 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15422 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'
15423 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'
15424 ;;
15425
15426 linux*)
15427 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15428 tmp_addflag=
15429 case $cc_basename,$host_cpu in
15430 pgcc*) # Portland Group C compiler
15431 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'
15432 tmp_addflag=' $pic_flag'
15433 ;;
15434 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15435 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'
15436 tmp_addflag=' $pic_flag -Mnomain' ;;
15437 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15438 tmp_addflag=' -i_dynamic' ;;
15439 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15440 tmp_addflag=' -i_dynamic -nofor_main' ;;
15441 ifc* | ifort*) # Intel Fortran compiler
15442 tmp_addflag=' -nofor_main' ;;
15443 esac
15444 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15445
15446 if test $supports_anon_versioning = yes; then
15447 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15448 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15449 $echo "local: *; };" >> $output_objdir/$libname.ver~
15450 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15451 fi
15452 else
15453 ld_shlibs_F77=no
15454 fi
15455 ;;
15456
15457 netbsd*)
15458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15459 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15460 wlarc=
15461 else
15462 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15463 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15464 fi
15465 ;;
15466
15467 solaris*)
15468 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15469 ld_shlibs_F77=no
15470 cat <<EOF 1>&2
15471
15472 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15473 *** create shared libraries on Solaris systems. Therefore, libtool
15474 *** is disabling shared libraries support. We urge you to upgrade GNU
15475 *** binutils to release 2.9.1 or newer. Another option is to modify
15476 *** your PATH or compiler configuration so that the native linker is
15477 *** used, and then restart.
15478
15479 EOF
15480 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15481 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15482 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15483 else
15484 ld_shlibs_F77=no
15485 fi
15486 ;;
15487
15488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15489 case `$LD -v 2>&1` in
15490 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15491 ld_shlibs_F77=no
15492 cat <<_LT_EOF 1>&2
15493
15494 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15495 *** reliably create shared libraries on SCO systems. Therefore, libtool
15496 *** is disabling shared libraries support. We urge you to upgrade GNU
15497 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15498 *** your PATH or compiler configuration so that the native linker is
15499 *** used, and then restart.
15500
15501 _LT_EOF
15502 ;;
15503 *)
15504 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15505 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15506 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15507 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15508 else
15509 ld_shlibs_F77=no
15510 fi
15511 ;;
15512 esac
15513 ;;
15514
15515 sunos4*)
15516 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15517 wlarc=
15518 hardcode_direct_F77=yes
15519 hardcode_shlibpath_var_F77=no
15520 ;;
15521
15522 *)
15523 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15524 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15525 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15526 else
15527 ld_shlibs_F77=no
15528 fi
15529 ;;
15530 esac
15531
15532 if test "$ld_shlibs_F77" = no; then
15533 runpath_var=
15534 hardcode_libdir_flag_spec_F77=
15535 export_dynamic_flag_spec_F77=
15536 whole_archive_flag_spec_F77=
15537 fi
15538 else
15539 # PORTME fill in a description of your system's linker (not GNU ld)
15540 case $host_os in
15541 aix3*)
15542 allow_undefined_flag_F77=unsupported
15543 always_export_symbols_F77=yes
15544 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'
15545 # Note: this linker hardcodes the directories in LIBPATH if there
15546 # are no directories specified by -L.
15547 hardcode_minus_L_F77=yes
15548 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15549 # Neither direct hardcoding nor static linking is supported with a
15550 # broken collect2.
15551 hardcode_direct_F77=unsupported
15552 fi
15553 ;;
15554
15555 aix4* | aix5*)
15556 if test "$host_cpu" = ia64; then
15557 # On IA64, the linker does run time linking by default, so we don't
15558 # have to do anything special.
15559 aix_use_runtimelinking=no
15560 exp_sym_flag='-Bexport'
15561 no_entry_flag=""
15562 else
15563 # If we're using GNU nm, then we don't want the "-C" option.
15564 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15565 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15566 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'
15567 else
15568 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'
15569 fi
15570 aix_use_runtimelinking=no
15571
15572 # Test if we are trying to use run time linking or normal
15573 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15574 # need to do runtime linking.
15575 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15576 for ld_flag in $LDFLAGS; do
15577 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15578 aix_use_runtimelinking=yes
15579 break
15580 fi
15581 done
15582 ;;
15583 esac
15584
15585 exp_sym_flag='-bexport'
15586 no_entry_flag='-bnoentry'
15587 fi
15588
15589 # When large executables or shared objects are built, AIX ld can
15590 # have problems creating the table of contents. If linking a library
15591 # or program results in "error TOC overflow" add -mminimal-toc to
15592 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15593 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15594
15595 archive_cmds_F77=''
15596 hardcode_direct_F77=yes
15597 hardcode_libdir_separator_F77=':'
15598 link_all_deplibs_F77=yes
15599
15600 if test "$GCC" = yes; then
15601 case $host_os in aix4.[012]|aix4.[012].*)
15602 # We only want to do this on AIX 4.2 and lower, the check
15603 # below for broken collect2 doesn't work under 4.3+
15604 collect2name=`${CC} -print-prog-name=collect2`
15605 if test -f "$collect2name" && \
15606 strings "$collect2name" | grep resolve_lib_name >/dev/null
15607 then
15608 # We have reworked collect2
15609 hardcode_direct_F77=yes
15610 else
15611 # We have old collect2
15612 hardcode_direct_F77=unsupported
15613 # It fails to find uninstalled libraries when the uninstalled
15614 # path is not listed in the libpath. Setting hardcode_minus_L
15615 # to unsupported forces relinking
15616 hardcode_minus_L_F77=yes
15617 hardcode_libdir_flag_spec_F77='-L$libdir'
15618 hardcode_libdir_separator_F77=
15619 fi
15620 ;;
15621 esac
15622 shared_flag='-shared'
15623 if test "$aix_use_runtimelinking" = yes; then
15624 shared_flag="$shared_flag "'${wl}-G'
15625 fi
15626 else
15627 # not using gcc
15628 if test "$host_cpu" = ia64; then
15629 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15630 # chokes on -Wl,-G. The following line is correct:
15631 shared_flag='-G'
15632 else
15633 if test "$aix_use_runtimelinking" = yes; then
15634 shared_flag='${wl}-G'
15635 else
15636 shared_flag='${wl}-bM:SRE'
15637 fi
15638 fi
15639 fi
15640
15641 # It seems that -bexpall does not export symbols beginning with
15642 # underscore (_), so it is better to generate a list of symbols to export.
15643 always_export_symbols_F77=yes
15644 if test "$aix_use_runtimelinking" = yes; then
15645 # Warning - without using the other runtime loading flags (-brtl),
15646 # -berok will link without error, but may produce a broken library.
15647 allow_undefined_flag_F77='-berok'
15648 # Determine the default libpath from the value encoded in an empty executable.
15649 cat >conftest.$ac_ext <<_ACEOF
15650 program main
15651
15652 end
15653 _ACEOF
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_link") 2>conftest.er1
15662 ac_status=$?
15663 grep -v '^ *+' conftest.er1 >conftest.err
15664 rm -f conftest.er1
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } && {
15668 test -z "$ac_f77_werror_flag" ||
15669 test ! -s conftest.err
15670 } && test -s conftest$ac_exeext &&
15671 $as_test_x conftest$ac_exeext; then
15672
15673 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15674 }'`
15675 # Check for a 64-bit object if we didn't find anything.
15676 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; }
15677 }'`; fi
15678 else
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15681
15682
15683 fi
15684
15685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15686 conftest$ac_exeext conftest.$ac_ext
15687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15688
15689 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15690 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"
15691 else
15692 if test "$host_cpu" = ia64; then
15693 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15694 allow_undefined_flag_F77="-z nodefs"
15695 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"
15696 else
15697 # Determine the default libpath from the value encoded in an empty executable.
15698 cat >conftest.$ac_ext <<_ACEOF
15699 program main
15700
15701 end
15702 _ACEOF
15703 rm -f conftest.$ac_objext conftest$ac_exeext
15704 if { (ac_try="$ac_link"
15705 case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15708 esac
15709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710 (eval "$ac_link") 2>conftest.er1
15711 ac_status=$?
15712 grep -v '^ *+' conftest.er1 >conftest.err
15713 rm -f conftest.er1
15714 cat conftest.err >&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } && {
15717 test -z "$ac_f77_werror_flag" ||
15718 test ! -s conftest.err
15719 } && test -s conftest$ac_exeext &&
15720 $as_test_x conftest$ac_exeext; then
15721
15722 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15723 }'`
15724 # Check for a 64-bit object if we didn't find anything.
15725 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; }
15726 }'`; fi
15727 else
15728 echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15730
15731
15732 fi
15733
15734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15735 conftest$ac_exeext conftest.$ac_ext
15736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15737
15738 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15739 # Warning - without using the other run time loading flags,
15740 # -berok will link without error, but may produce a broken library.
15741 no_undefined_flag_F77=' ${wl}-bernotok'
15742 allow_undefined_flag_F77=' ${wl}-berok'
15743 # Exported symbols can be pulled into shared objects from archives
15744 whole_archive_flag_spec_F77='$convenience'
15745 archive_cmds_need_lc_F77=yes
15746 # This is similar to how AIX traditionally builds its shared libraries.
15747 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'
15748 fi
15749 fi
15750 ;;
15751
15752 amigaos*)
15753 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)'
15754 hardcode_libdir_flag_spec_F77='-L$libdir'
15755 hardcode_minus_L_F77=yes
15756 # see comment about different semantics on the GNU ld section
15757 ld_shlibs_F77=no
15758 ;;
15759
15760 bsdi[45]*)
15761 export_dynamic_flag_spec_F77=-rdynamic
15762 ;;
15763
15764 cygwin* | mingw* | pw32*)
15765 # When not using gcc, we currently assume that we are using
15766 # Microsoft Visual C++.
15767 # hardcode_libdir_flag_spec is actually meaningless, as there is
15768 # no search path for DLLs.
15769 hardcode_libdir_flag_spec_F77=' '
15770 allow_undefined_flag_F77=unsupported
15771 # Tell ltmain to make .lib files, not .a files.
15772 libext=lib
15773 # Tell ltmain to make .dll files, not .so files.
15774 shrext_cmds=".dll"
15775 # FIXME: Setting linknames here is a bad hack.
15776 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15777 # The linker will automatically build a .lib file if we build a DLL.
15778 old_archive_From_new_cmds_F77='true'
15779 # FIXME: Should let the user specify the lib program.
15780 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15781 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15782 enable_shared_with_static_runtimes_F77=yes
15783 ;;
15784
15785 darwin* | rhapsody*)
15786 case $host_os in
15787 rhapsody* | darwin1.[012])
15788 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15789 ;;
15790 *) # Darwin 1.3 on
15791 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15792 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15793 else
15794 case ${MACOSX_DEPLOYMENT_TARGET} in
15795 10.[012])
15796 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15797 ;;
15798 10.*)
15799 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15800 ;;
15801 esac
15802 fi
15803 ;;
15804 esac
15805 archive_cmds_need_lc_F77=no
15806 hardcode_direct_F77=no
15807 hardcode_automatic_F77=yes
15808 hardcode_shlibpath_var_F77=unsupported
15809 whole_archive_flag_spec_F77=''
15810 link_all_deplibs_F77=yes
15811 if test "$GCC" = yes ; then
15812 output_verbose_link_cmd='echo'
15813 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15814 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15815 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15816 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}'
15817 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}'
15818 else
15819 case $cc_basename in
15820 xlc*)
15821 output_verbose_link_cmd='echo'
15822 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15823 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15824 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15825 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}'
15826 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}'
15827 ;;
15828 *)
15829 ld_shlibs_F77=no
15830 ;;
15831 esac
15832 fi
15833 ;;
15834
15835 dgux*)
15836 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15837 hardcode_libdir_flag_spec_F77='-L$libdir'
15838 hardcode_shlibpath_var_F77=no
15839 ;;
15840
15841 freebsd1*)
15842 ld_shlibs_F77=no
15843 ;;
15844
15845 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15846 # support. Future versions do this automatically, but an explicit c++rt0.o
15847 # does not break anything, and helps significantly (at the cost of a little
15848 # extra space).
15849 freebsd2.2*)
15850 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15851 hardcode_libdir_flag_spec_F77='-R$libdir'
15852 hardcode_direct_F77=yes
15853 hardcode_shlibpath_var_F77=no
15854 ;;
15855
15856 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15857 freebsd2*)
15858 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_direct_F77=yes
15860 hardcode_minus_L_F77=yes
15861 hardcode_shlibpath_var_F77=no
15862 ;;
15863
15864 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15865 freebsd* | kfreebsd*-gnu | dragonfly*)
15866 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15867 hardcode_libdir_flag_spec_F77='-R$libdir'
15868 hardcode_direct_F77=yes
15869 hardcode_shlibpath_var_F77=no
15870 ;;
15871
15872 hpux9*)
15873 if test "$GCC" = yes; then
15874 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'
15875 else
15876 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'
15877 fi
15878 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15879 hardcode_libdir_separator_F77=:
15880 hardcode_direct_F77=yes
15881
15882 # hardcode_minus_L: Not really in the search PATH,
15883 # but as the default location of the library.
15884 hardcode_minus_L_F77=yes
15885 export_dynamic_flag_spec_F77='${wl}-E'
15886 ;;
15887
15888 hpux10*)
15889 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15890 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15891 else
15892 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15893 fi
15894 if test "$with_gnu_ld" = no; then
15895 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15896 hardcode_libdir_separator_F77=:
15897
15898 hardcode_direct_F77=yes
15899 export_dynamic_flag_spec_F77='${wl}-E'
15900
15901 # hardcode_minus_L: Not really in the search PATH,
15902 # but as the default location of the library.
15903 hardcode_minus_L_F77=yes
15904 fi
15905 ;;
15906
15907 hpux11*)
15908 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15909 case $host_cpu in
15910 hppa*64*)
15911 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15912 ;;
15913 ia64*)
15914 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15915 ;;
15916 *)
15917 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15918 ;;
15919 esac
15920 else
15921 case $host_cpu in
15922 hppa*64*)
15923 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15924 ;;
15925 ia64*)
15926 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15927 ;;
15928 *)
15929 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15930 ;;
15931 esac
15932 fi
15933 if test "$with_gnu_ld" = no; then
15934 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15935 hardcode_libdir_separator_F77=:
15936
15937 case $host_cpu in
15938 hppa*64*|ia64*)
15939 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15940 hardcode_direct_F77=no
15941 hardcode_shlibpath_var_F77=no
15942 ;;
15943 *)
15944 hardcode_direct_F77=yes
15945 export_dynamic_flag_spec_F77='${wl}-E'
15946
15947 # hardcode_minus_L: Not really in the search PATH,
15948 # but as the default location of the library.
15949 hardcode_minus_L_F77=yes
15950 ;;
15951 esac
15952 fi
15953 ;;
15954
15955 irix5* | irix6* | nonstopux*)
15956 if test "$GCC" = yes; then
15957 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'
15958 else
15959 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'
15960 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15961 fi
15962 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15963 hardcode_libdir_separator_F77=:
15964 link_all_deplibs_F77=yes
15965 ;;
15966
15967 netbsd*)
15968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15969 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15970 else
15971 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15972 fi
15973 hardcode_libdir_flag_spec_F77='-R$libdir'
15974 hardcode_direct_F77=yes
15975 hardcode_shlibpath_var_F77=no
15976 ;;
15977
15978 newsos6)
15979 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_direct_F77=yes
15981 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15982 hardcode_libdir_separator_F77=:
15983 hardcode_shlibpath_var_F77=no
15984 ;;
15985
15986 openbsd*)
15987 hardcode_direct_F77=yes
15988 hardcode_shlibpath_var_F77=no
15989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15990 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15991 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15992 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15993 export_dynamic_flag_spec_F77='${wl}-E'
15994 else
15995 case $host_os in
15996 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15997 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15998 hardcode_libdir_flag_spec_F77='-R$libdir'
15999 ;;
16000 *)
16001 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16002 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16003 ;;
16004 esac
16005 fi
16006 ;;
16007
16008 os2*)
16009 hardcode_libdir_flag_spec_F77='-L$libdir'
16010 hardcode_minus_L_F77=yes
16011 allow_undefined_flag_F77=unsupported
16012 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'
16013 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16014 ;;
16015
16016 osf3*)
16017 if test "$GCC" = yes; then
16018 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16019 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'
16020 else
16021 allow_undefined_flag_F77=' -expect_unresolved \*'
16022 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'
16023 fi
16024 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16025 hardcode_libdir_separator_F77=:
16026 ;;
16027
16028 osf4* | osf5*) # as osf3* with the addition of -msym flag
16029 if test "$GCC" = yes; then
16030 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16031 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'
16032 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16033 else
16034 allow_undefined_flag_F77=' -expect_unresolved \*'
16035 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'
16036 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~
16037 $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'
16038
16039 # Both c and cxx compiler support -rpath directly
16040 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16041 fi
16042 hardcode_libdir_separator_F77=:
16043 ;;
16044
16045 solaris*)
16046 no_undefined_flag_F77=' -z text'
16047 if test "$GCC" = yes; then
16048 wlarc='${wl}'
16049 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16050 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16051 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16052 else
16053 wlarc=''
16054 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16055 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16056 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16057 fi
16058 hardcode_libdir_flag_spec_F77='-R$libdir'
16059 hardcode_shlibpath_var_F77=no
16060 case $host_os in
16061 solaris2.[0-5] | solaris2.[0-5].*) ;;
16062 *)
16063 # The compiler driver will combine linker options so we
16064 # cannot just pass the convience library names through
16065 # without $wl, iff we do not link with $LD.
16066 # Luckily, gcc supports the same syntax we need for Sun Studio.
16067 # Supported since Solaris 2.6 (maybe 2.5.1?)
16068 case $wlarc in
16069 '')
16070 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16071 *)
16072 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' ;;
16073 esac ;;
16074 esac
16075 link_all_deplibs_F77=yes
16076 ;;
16077
16078 sunos4*)
16079 if test "x$host_vendor" = xsequent; then
16080 # Use $CC to link under sequent, because it throws in some extra .o
16081 # files that make .init and .fini sections work.
16082 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16083 else
16084 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16085 fi
16086 hardcode_libdir_flag_spec_F77='-L$libdir'
16087 hardcode_direct_F77=yes
16088 hardcode_minus_L_F77=yes
16089 hardcode_shlibpath_var_F77=no
16090 ;;
16091
16092 sysv4)
16093 case $host_vendor in
16094 sni)
16095 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16096 hardcode_direct_F77=yes # is this really true???
16097 ;;
16098 siemens)
16099 ## LD is ld it makes a PLAMLIB
16100 ## CC just makes a GrossModule.
16101 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16102 reload_cmds_F77='$CC -r -o $output$reload_objs'
16103 hardcode_direct_F77=no
16104 ;;
16105 motorola)
16106 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16107 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16108 ;;
16109 esac
16110 runpath_var='LD_RUN_PATH'
16111 hardcode_shlibpath_var_F77=no
16112 ;;
16113
16114 sysv4.3*)
16115 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16116 hardcode_shlibpath_var_F77=no
16117 export_dynamic_flag_spec_F77='-Bexport'
16118 ;;
16119
16120 sysv4*MP*)
16121 if test -d /usr/nec; then
16122 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16123 hardcode_shlibpath_var_F77=no
16124 runpath_var=LD_RUN_PATH
16125 hardcode_runpath_var=yes
16126 ld_shlibs_F77=yes
16127 fi
16128 ;;
16129
16130 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16131 no_undefined_flag_F77='${wl}-z,text'
16132 archive_cmds_need_lc_F77=no
16133 hardcode_shlibpath_var_F77=no
16134 runpath_var='LD_RUN_PATH'
16135
16136 if test "$GCC" = yes; then
16137 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16138 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16139 else
16140 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16142 fi
16143 ;;
16144
16145 sysv5* | sco3.2v5* | sco5v6*)
16146 # Note: We can NOT use -z defs as we might desire, because we do not
16147 # link with -lc, and that would cause any symbols used from libc to
16148 # always be unresolved, which means just about no library would
16149 # ever link correctly. If we're not using GNU ld we use -z text
16150 # though, which does catch some bad symbols but isn't as heavy-handed
16151 # as -z defs.
16152 no_undefined_flag_F77='${wl}-z,text'
16153 allow_undefined_flag_F77='${wl}-z,nodefs'
16154 archive_cmds_need_lc_F77=no
16155 hardcode_shlibpath_var_F77=no
16156 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16157 hardcode_libdir_separator_F77=':'
16158 link_all_deplibs_F77=yes
16159 export_dynamic_flag_spec_F77='${wl}-Bexport'
16160 runpath_var='LD_RUN_PATH'
16161
16162 if test "$GCC" = yes; then
16163 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16164 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16165 else
16166 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16167 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16168 fi
16169 ;;
16170
16171 uts4*)
16172 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16173 hardcode_libdir_flag_spec_F77='-L$libdir'
16174 hardcode_shlibpath_var_F77=no
16175 ;;
16176
16177 *)
16178 ld_shlibs_F77=no
16179 ;;
16180 esac
16181 fi
16182
16183 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16184 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16185 test "$ld_shlibs_F77" = no && can_build_shared=no
16186
16187 #
16188 # Do we need to explicitly link libc?
16189 #
16190 case "x$archive_cmds_need_lc_F77" in
16191 x|xyes)
16192 # Assume -lc should be added
16193 archive_cmds_need_lc_F77=yes
16194
16195 if test "$enable_shared" = yes && test "$GCC" = yes; then
16196 case $archive_cmds_F77 in
16197 *'~'*)
16198 # FIXME: we may have to deal with multi-command sequences.
16199 ;;
16200 '$CC '*)
16201 # Test whether the compiler implicitly links with -lc since on some
16202 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16203 # to ld, don't add -lc before -lgcc.
16204 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16205 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16206 $rm conftest*
16207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16208
16209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210 (eval $ac_compile) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } 2>conftest.err; then
16214 soname=conftest
16215 lib=conftest
16216 libobjs=conftest.$ac_objext
16217 deplibs=
16218 wl=$lt_prog_compiler_wl_F77
16219 pic_flag=$lt_prog_compiler_pic_F77
16220 compiler_flags=-v
16221 linker_flags=-v
16222 verstring=
16223 output_objdir=.
16224 libname=conftest
16225 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16226 allow_undefined_flag_F77=
16227 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16228 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }
16232 then
16233 archive_cmds_need_lc_F77=no
16234 else
16235 archive_cmds_need_lc_F77=yes
16236 fi
16237 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16238 else
16239 cat conftest.err 1>&5
16240 fi
16241 $rm conftest*
16242 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16243 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16244 ;;
16245 esac
16246 fi
16247 ;;
16248 esac
16249
16250 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16251 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16252 library_names_spec=
16253 libname_spec='lib$name'
16254 soname_spec=
16255 shrext_cmds=".so"
16256 postinstall_cmds=
16257 postuninstall_cmds=
16258 finish_cmds=
16259 finish_eval=
16260 shlibpath_var=
16261 shlibpath_overrides_runpath=unknown
16262 version_type=none
16263 dynamic_linker="$host_os ld.so"
16264 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16265 if test "$GCC" = yes; then
16266 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16267 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16268 # if the path contains ";" then we assume it to be the separator
16269 # otherwise default to the standard path separator (i.e. ":") - it is
16270 # assumed that no part of a normal pathname contains ";" but that should
16271 # okay in the real world where ";" in dirpaths is itself problematic.
16272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16273 else
16274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16275 fi
16276 else
16277 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16278 fi
16279 need_lib_prefix=unknown
16280 hardcode_into_libs=no
16281
16282 # when you set need_version to no, make sure it does not cause -set_version
16283 # flags to be left without arguments
16284 need_version=unknown
16285
16286 case $host_os in
16287 aix3*)
16288 version_type=linux
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16290 shlibpath_var=LIBPATH
16291
16292 # AIX 3 has no versioning support, so we append a major version to the name.
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 ;;
16295
16296 aix4* | aix5*)
16297 version_type=linux
16298 need_lib_prefix=no
16299 need_version=no
16300 hardcode_into_libs=yes
16301 if test "$host_cpu" = ia64; then
16302 # AIX 5 supports IA64
16303 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16304 shlibpath_var=LD_LIBRARY_PATH
16305 else
16306 # With GCC up to 2.95.x, collect2 would create an import file
16307 # for dependence libraries. The import file would start with
16308 # the line `#! .'. This would cause the generated library to
16309 # depend on `.', always an invalid library. This was fixed in
16310 # development snapshots of GCC prior to 3.0.
16311 case $host_os in
16312 aix4 | aix4.[01] | aix4.[01].*)
16313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16314 echo ' yes '
16315 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16316 :
16317 else
16318 can_build_shared=no
16319 fi
16320 ;;
16321 esac
16322 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16323 # soname into executable. Probably we can add versioning support to
16324 # collect2, so additional links can be useful in future.
16325 if test "$aix_use_runtimelinking" = yes; then
16326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16327 # instead of lib<name>.a to let people know that these are not
16328 # typical AIX shared libraries.
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330 else
16331 # We preserve .a as extension for shared libraries through AIX4.2
16332 # and later when we are not doing run time linking.
16333 library_names_spec='${libname}${release}.a $libname.a'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16335 fi
16336 shlibpath_var=LIBPATH
16337 fi
16338 ;;
16339
16340 amigaos*)
16341 library_names_spec='$libname.ixlibrary $libname.a'
16342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16343 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'
16344 ;;
16345
16346 beos*)
16347 library_names_spec='${libname}${shared_ext}'
16348 dynamic_linker="$host_os ld.so"
16349 shlibpath_var=LIBRARY_PATH
16350 ;;
16351
16352 bsdi[45]*)
16353 version_type=linux
16354 need_version=no
16355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16356 soname_spec='${libname}${release}${shared_ext}$major'
16357 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16358 shlibpath_var=LD_LIBRARY_PATH
16359 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16360 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16361 # the default ld.so.conf also contains /usr/contrib/lib and
16362 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16363 # libtool to hard-code these into programs
16364 ;;
16365
16366 cygwin* | mingw* | pw32*)
16367 version_type=windows
16368 shrext_cmds=".dll"
16369 need_version=no
16370 need_lib_prefix=no
16371
16372 case $GCC,$host_os in
16373 yes,cygwin* | yes,mingw* | yes,pw32*)
16374 library_names_spec='$libname.dll.a'
16375 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16376 postinstall_cmds='base_file=`basename \${file}`~
16377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16378 dldir=$destdir/`dirname \$dlpath`~
16379 test -d \$dldir || mkdir -p \$dldir~
16380 $install_prog $dir/$dlname \$dldir/$dlname~
16381 chmod a+x \$dldir/$dlname'
16382 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16383 dlpath=$dir/\$dldll~
16384 $rm \$dlpath'
16385 shlibpath_overrides_runpath=yes
16386
16387 case $host_os in
16388 cygwin*)
16389 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16390 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16391 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16392 ;;
16393 mingw*)
16394 # MinGW DLLs use traditional 'lib' prefix
16395 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16396 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16397 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16398 # It is most probably a Windows format PATH printed by
16399 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16400 # path with ; separators, and with drive letters. We can handle the
16401 # drive letters (cygwin fileutils understands them), so leave them,
16402 # especially as we might pass files found there to a mingw objdump,
16403 # which wouldn't understand a cygwinified path. Ahh.
16404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16405 else
16406 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16407 fi
16408 ;;
16409 pw32*)
16410 # pw32 DLLs use 'pw' prefix rather than 'lib'
16411 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16412 ;;
16413 esac
16414 ;;
16415
16416 *)
16417 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16418 ;;
16419 esac
16420 dynamic_linker='Win32 ld.exe'
16421 # FIXME: first we should search . and the directory the executable is in
16422 shlibpath_var=PATH
16423 ;;
16424
16425 darwin* | rhapsody*)
16426 dynamic_linker="$host_os dyld"
16427 version_type=darwin
16428 need_lib_prefix=no
16429 need_version=no
16430 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16431 soname_spec='${libname}${release}${major}$shared_ext'
16432 shlibpath_overrides_runpath=yes
16433 shlibpath_var=DYLD_LIBRARY_PATH
16434 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16435 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16436 if test "$GCC" = yes; then
16437 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"`
16438 else
16439 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16440 fi
16441 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16442 ;;
16443
16444 dgux*)
16445 version_type=linux
16446 need_lib_prefix=no
16447 need_version=no
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16449 soname_spec='${libname}${release}${shared_ext}$major'
16450 shlibpath_var=LD_LIBRARY_PATH
16451 ;;
16452
16453 freebsd1*)
16454 dynamic_linker=no
16455 ;;
16456
16457 kfreebsd*-gnu)
16458 version_type=linux
16459 need_lib_prefix=no
16460 need_version=no
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16462 soname_spec='${libname}${release}${shared_ext}$major'
16463 shlibpath_var=LD_LIBRARY_PATH
16464 shlibpath_overrides_runpath=no
16465 hardcode_into_libs=yes
16466 dynamic_linker='GNU ld.so'
16467 ;;
16468
16469 freebsd* | dragonfly*)
16470 # DragonFly does not have aout. When/if they implement a new
16471 # versioning mechanism, adjust this.
16472 if test -x /usr/bin/objformat; then
16473 objformat=`/usr/bin/objformat`
16474 else
16475 case $host_os in
16476 freebsd[123]*) objformat=aout ;;
16477 *) objformat=elf ;;
16478 esac
16479 fi
16480 version_type=freebsd-$objformat
16481 case $version_type in
16482 freebsd-elf*)
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16484 need_version=no
16485 need_lib_prefix=no
16486 ;;
16487 freebsd-*)
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16489 need_version=yes
16490 ;;
16491 esac
16492 shlibpath_var=LD_LIBRARY_PATH
16493 case $host_os in
16494 freebsd2*)
16495 shlibpath_overrides_runpath=yes
16496 ;;
16497 freebsd3.[01]* | freebsdelf3.[01]*)
16498 shlibpath_overrides_runpath=yes
16499 hardcode_into_libs=yes
16500 ;;
16501 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16502 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16503 shlibpath_overrides_runpath=no
16504 hardcode_into_libs=yes
16505 ;;
16506 freebsd*) # from 4.6 on
16507 shlibpath_overrides_runpath=yes
16508 hardcode_into_libs=yes
16509 ;;
16510 esac
16511 ;;
16512
16513 gnu*)
16514 version_type=linux
16515 need_lib_prefix=no
16516 need_version=no
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 shlibpath_var=LD_LIBRARY_PATH
16520 hardcode_into_libs=yes
16521 ;;
16522
16523 hpux9* | hpux10* | hpux11*)
16524 # Give a soname corresponding to the major version so that dld.sl refuses to
16525 # link against other versions.
16526 version_type=sunos
16527 need_lib_prefix=no
16528 need_version=no
16529 case $host_cpu in
16530 ia64*)
16531 shrext_cmds='.so'
16532 hardcode_into_libs=yes
16533 dynamic_linker="$host_os dld.so"
16534 shlibpath_var=LD_LIBRARY_PATH
16535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 if test "X$HPUX_IA64_MODE" = X32; then
16539 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16540 else
16541 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16542 fi
16543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16544 ;;
16545 hppa*64*)
16546 shrext_cmds='.sl'
16547 hardcode_into_libs=yes
16548 dynamic_linker="$host_os dld.sl"
16549 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552 soname_spec='${libname}${release}${shared_ext}$major'
16553 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16555 ;;
16556 *)
16557 shrext_cmds='.sl'
16558 dynamic_linker="$host_os dld.sl"
16559 shlibpath_var=SHLIB_PATH
16560 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16563 ;;
16564 esac
16565 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16566 postinstall_cmds='chmod 555 $lib'
16567 ;;
16568
16569 interix3*)
16570 version_type=linux
16571 need_lib_prefix=no
16572 need_version=no
16573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16574 soname_spec='${libname}${release}${shared_ext}$major'
16575 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16576 shlibpath_var=LD_LIBRARY_PATH
16577 shlibpath_overrides_runpath=no
16578 hardcode_into_libs=yes
16579 ;;
16580
16581 irix5* | irix6* | nonstopux*)
16582 case $host_os in
16583 nonstopux*) version_type=nonstopux ;;
16584 *)
16585 if test "$lt_cv_prog_gnu_ld" = yes; then
16586 version_type=linux
16587 else
16588 version_type=irix
16589 fi ;;
16590 esac
16591 need_lib_prefix=no
16592 need_version=no
16593 soname_spec='${libname}${release}${shared_ext}$major'
16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16595 case $host_os in
16596 irix5* | nonstopux*)
16597 libsuff= shlibsuff=
16598 ;;
16599 *)
16600 case $LD in # libtool.m4 will add one of these switches to LD
16601 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16602 libsuff= shlibsuff= libmagic=32-bit;;
16603 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16604 libsuff=32 shlibsuff=N32 libmagic=N32;;
16605 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16606 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16607 *) libsuff= shlibsuff= libmagic=never-match;;
16608 esac
16609 ;;
16610 esac
16611 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16612 shlibpath_overrides_runpath=no
16613 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16614 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16615 hardcode_into_libs=yes
16616 ;;
16617
16618 # No shared lib support for Linux oldld, aout, or coff.
16619 linux*oldld* | linux*aout* | linux*coff*)
16620 dynamic_linker=no
16621 ;;
16622
16623 # This must be Linux ELF.
16624 linux*)
16625 version_type=linux
16626 need_lib_prefix=no
16627 need_version=no
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16631 shlibpath_var=LD_LIBRARY_PATH
16632 shlibpath_overrides_runpath=no
16633 # This implies no fast_install, which is unacceptable.
16634 # Some rework will be needed to allow for fast_install
16635 # before this can be enabled.
16636 hardcode_into_libs=yes
16637
16638 # find out which ABI we are using
16639 libsuff=
16640 case "$host_cpu" in
16641 x86_64*|s390x*|powerpc64*)
16642 echo '#line 16642 "configure"' > conftest.$ac_ext
16643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16644 (eval $ac_compile) 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; then
16648 case `/usr/bin/file conftest.$ac_objext` in
16649 *64-bit*)
16650 libsuff=64
16651 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16652 ;;
16653 esac
16654 fi
16655 rm -rf conftest*
16656 ;;
16657 esac
16658
16659 # Append ld.so.conf contents to the search path
16660 if test -f /etc/ld.so.conf; then
16661 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16662 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16663 fi
16664
16665 # We used to test for /lib/ld.so.1 and disable shared libraries on
16666 # powerpc, because MkLinux only supported shared libraries with the
16667 # GNU dynamic linker. Since this was broken with cross compilers,
16668 # most powerpc-linux boxes support dynamic linking these days and
16669 # people can always --disable-shared, the test was removed, and we
16670 # assume the GNU/Linux dynamic linker is in use.
16671 dynamic_linker='GNU/Linux ld.so'
16672 ;;
16673
16674 knetbsd*-gnu)
16675 version_type=linux
16676 need_lib_prefix=no
16677 need_version=no
16678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16679 soname_spec='${libname}${release}${shared_ext}$major'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath=no
16682 hardcode_into_libs=yes
16683 dynamic_linker='GNU ld.so'
16684 ;;
16685
16686 netbsd*)
16687 version_type=sunos
16688 need_lib_prefix=no
16689 need_version=no
16690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16693 dynamic_linker='NetBSD (a.out) ld.so'
16694 else
16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16696 soname_spec='${libname}${release}${shared_ext}$major'
16697 dynamic_linker='NetBSD ld.elf_so'
16698 fi
16699 shlibpath_var=LD_LIBRARY_PATH
16700 shlibpath_overrides_runpath=yes
16701 hardcode_into_libs=yes
16702 ;;
16703
16704 newsos6)
16705 version_type=linux
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707 shlibpath_var=LD_LIBRARY_PATH
16708 shlibpath_overrides_runpath=yes
16709 ;;
16710
16711 nto-qnx*)
16712 version_type=linux
16713 need_lib_prefix=no
16714 need_version=no
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716 soname_spec='${libname}${release}${shared_ext}$major'
16717 shlibpath_var=LD_LIBRARY_PATH
16718 shlibpath_overrides_runpath=yes
16719 ;;
16720
16721 openbsd*)
16722 version_type=sunos
16723 sys_lib_dlsearch_path_spec="/usr/lib"
16724 need_lib_prefix=no
16725 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16726 case $host_os in
16727 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16728 *) need_version=no ;;
16729 esac
16730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16732 shlibpath_var=LD_LIBRARY_PATH
16733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16734 case $host_os in
16735 openbsd2.[89] | openbsd2.[89].*)
16736 shlibpath_overrides_runpath=no
16737 ;;
16738 *)
16739 shlibpath_overrides_runpath=yes
16740 ;;
16741 esac
16742 else
16743 shlibpath_overrides_runpath=yes
16744 fi
16745 ;;
16746
16747 os2*)
16748 libname_spec='$name'
16749 shrext_cmds=".dll"
16750 need_lib_prefix=no
16751 library_names_spec='$libname${shared_ext} $libname.a'
16752 dynamic_linker='OS/2 ld.exe'
16753 shlibpath_var=LIBPATH
16754 ;;
16755
16756 osf3* | osf4* | osf5*)
16757 version_type=osf
16758 need_lib_prefix=no
16759 need_version=no
16760 soname_spec='${libname}${release}${shared_ext}$major'
16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762 shlibpath_var=LD_LIBRARY_PATH
16763 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16764 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16765 ;;
16766
16767 solaris*)
16768 version_type=linux
16769 need_lib_prefix=no
16770 need_version=no
16771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772 soname_spec='${libname}${release}${shared_ext}$major'
16773 shlibpath_var=LD_LIBRARY_PATH
16774 shlibpath_overrides_runpath=yes
16775 hardcode_into_libs=yes
16776 # ldd complains unless libraries are executable
16777 postinstall_cmds='chmod +x $lib'
16778 ;;
16779
16780 sunos4*)
16781 version_type=sunos
16782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16783 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16784 shlibpath_var=LD_LIBRARY_PATH
16785 shlibpath_overrides_runpath=yes
16786 if test "$with_gnu_ld" = yes; then
16787 need_lib_prefix=no
16788 fi
16789 need_version=yes
16790 ;;
16791
16792 sysv4 | sysv4.3*)
16793 version_type=linux
16794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795 soname_spec='${libname}${release}${shared_ext}$major'
16796 shlibpath_var=LD_LIBRARY_PATH
16797 case $host_vendor in
16798 sni)
16799 shlibpath_overrides_runpath=no
16800 need_lib_prefix=no
16801 export_dynamic_flag_spec='${wl}-Blargedynsym'
16802 runpath_var=LD_RUN_PATH
16803 ;;
16804 siemens)
16805 need_lib_prefix=no
16806 ;;
16807 motorola)
16808 need_lib_prefix=no
16809 need_version=no
16810 shlibpath_overrides_runpath=no
16811 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16812 ;;
16813 esac
16814 ;;
16815
16816 sysv4*MP*)
16817 if test -d /usr/nec ;then
16818 version_type=linux
16819 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16820 soname_spec='$libname${shared_ext}.$major'
16821 shlibpath_var=LD_LIBRARY_PATH
16822 fi
16823 ;;
16824
16825 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16826 version_type=freebsd-elf
16827 need_lib_prefix=no
16828 need_version=no
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16830 soname_spec='${libname}${release}${shared_ext}$major'
16831 shlibpath_var=LD_LIBRARY_PATH
16832 hardcode_into_libs=yes
16833 if test "$with_gnu_ld" = yes; then
16834 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16835 shlibpath_overrides_runpath=no
16836 else
16837 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16838 shlibpath_overrides_runpath=yes
16839 case $host_os in
16840 sco3.2v5*)
16841 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16842 ;;
16843 esac
16844 fi
16845 sys_lib_dlsearch_path_spec='/usr/lib'
16846 ;;
16847
16848 uts4*)
16849 version_type=linux
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 soname_spec='${libname}${release}${shared_ext}$major'
16852 shlibpath_var=LD_LIBRARY_PATH
16853 ;;
16854
16855 *)
16856 dynamic_linker=no
16857 ;;
16858 esac
16859 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16860 echo "${ECHO_T}$dynamic_linker" >&6; }
16861 test "$dynamic_linker" = no && can_build_shared=no
16862
16863 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16864 if test "$GCC" = yes; then
16865 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16866 fi
16867
16868 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16869 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16870 hardcode_action_F77=
16871 if test -n "$hardcode_libdir_flag_spec_F77" || \
16872 test -n "$runpath_var_F77" || \
16873 test "X$hardcode_automatic_F77" = "Xyes" ; then
16874
16875 # We can hardcode non-existant directories.
16876 if test "$hardcode_direct_F77" != no &&
16877 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16878 # have to relink, otherwise we might link with an installed library
16879 # when we should be linking with a yet-to-be-installed one
16880 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16881 test "$hardcode_minus_L_F77" != no; then
16882 # Linking always hardcodes the temporary library directory.
16883 hardcode_action_F77=relink
16884 else
16885 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16886 hardcode_action_F77=immediate
16887 fi
16888 else
16889 # We cannot hardcode anything, or else we can only hardcode existing
16890 # directories.
16891 hardcode_action_F77=unsupported
16892 fi
16893 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16894 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16895
16896 if test "$hardcode_action_F77" = relink; then
16897 # Fast installation is not supported
16898 enable_fast_install=no
16899 elif test "$shlibpath_overrides_runpath" = yes ||
16900 test "$enable_shared" = no; then
16901 # Fast installation is not necessary
16902 enable_fast_install=needless
16903 fi
16904
16905
16906 # The else clause should only fire when bootstrapping the
16907 # libtool distribution, otherwise you forgot to ship ltmain.sh
16908 # with your package, and you will get complaints that there are
16909 # no rules to generate ltmain.sh.
16910 if test -f "$ltmain"; then
16911 # See if we are running on zsh, and set the options which allow our commands through
16912 # without removal of \ escapes.
16913 if test -n "${ZSH_VERSION+set}" ; then
16914 setopt NO_GLOB_SUBST
16915 fi
16916 # Now quote all the things that may contain metacharacters while being
16917 # careful not to overquote the AC_SUBSTed values. We take copies of the
16918 # variables and quote the copies for generation of the libtool script.
16919 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16920 SED SHELL STRIP \
16921 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16922 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16923 deplibs_check_method reload_flag reload_cmds need_locks \
16924 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16925 lt_cv_sys_global_symbol_to_c_name_address \
16926 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16927 old_postinstall_cmds old_postuninstall_cmds \
16928 compiler_F77 \
16929 CC_F77 \
16930 LD_F77 \
16931 lt_prog_compiler_wl_F77 \
16932 lt_prog_compiler_pic_F77 \
16933 lt_prog_compiler_static_F77 \
16934 lt_prog_compiler_no_builtin_flag_F77 \
16935 export_dynamic_flag_spec_F77 \
16936 thread_safe_flag_spec_F77 \
16937 whole_archive_flag_spec_F77 \
16938 enable_shared_with_static_runtimes_F77 \
16939 old_archive_cmds_F77 \
16940 old_archive_from_new_cmds_F77 \
16941 predep_objects_F77 \
16942 postdep_objects_F77 \
16943 predeps_F77 \
16944 postdeps_F77 \
16945 compiler_lib_search_path_F77 \
16946 archive_cmds_F77 \
16947 archive_expsym_cmds_F77 \
16948 postinstall_cmds_F77 \
16949 postuninstall_cmds_F77 \
16950 old_archive_from_expsyms_cmds_F77 \
16951 allow_undefined_flag_F77 \
16952 no_undefined_flag_F77 \
16953 export_symbols_cmds_F77 \
16954 hardcode_libdir_flag_spec_F77 \
16955 hardcode_libdir_flag_spec_ld_F77 \
16956 hardcode_libdir_separator_F77 \
16957 hardcode_automatic_F77 \
16958 module_cmds_F77 \
16959 module_expsym_cmds_F77 \
16960 lt_cv_prog_compiler_c_o_F77 \
16961 exclude_expsyms_F77 \
16962 include_expsyms_F77; do
16963
16964 case $var in
16965 old_archive_cmds_F77 | \
16966 old_archive_from_new_cmds_F77 | \
16967 archive_cmds_F77 | \
16968 archive_expsym_cmds_F77 | \
16969 module_cmds_F77 | \
16970 module_expsym_cmds_F77 | \
16971 old_archive_from_expsyms_cmds_F77 | \
16972 export_symbols_cmds_F77 | \
16973 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16974 postinstall_cmds | postuninstall_cmds | \
16975 old_postinstall_cmds | old_postuninstall_cmds | \
16976 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16977 # Double-quote double-evaled strings.
16978 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16979 ;;
16980 *)
16981 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16982 ;;
16983 esac
16984 done
16985
16986 case $lt_echo in
16987 *'\$0 --fallback-echo"')
16988 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16989 ;;
16990 esac
16991
16992 cfgfile="$ofile"
16993
16994 cat <<__EOF__ >> "$cfgfile"
16995 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16996
16997 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16998
16999 # Shell to use when invoking shell scripts.
17000 SHELL=$lt_SHELL
17001
17002 # Whether or not to build shared libraries.
17003 build_libtool_libs=$enable_shared
17004
17005 # Whether or not to build static libraries.
17006 build_old_libs=$enable_static
17007
17008 # Whether or not to add -lc for building shared libraries.
17009 build_libtool_need_lc=$archive_cmds_need_lc_F77
17010
17011 # Whether or not to disallow shared libs when runtime libs are static
17012 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17013
17014 # Whether or not to optimize for fast installation.
17015 fast_install=$enable_fast_install
17016
17017 # The host system.
17018 host_alias=$host_alias
17019 host=$host
17020 host_os=$host_os
17021
17022 # The build system.
17023 build_alias=$build_alias
17024 build=$build
17025 build_os=$build_os
17026
17027 # An echo program that does not interpret backslashes.
17028 echo=$lt_echo
17029
17030 # The archiver.
17031 AR=$lt_AR
17032 AR_FLAGS=$lt_AR_FLAGS
17033
17034 # A C compiler.
17035 LTCC=$lt_LTCC
17036
17037 # LTCC compiler flags.
17038 LTCFLAGS=$lt_LTCFLAGS
17039
17040 # A language-specific compiler.
17041 CC=$lt_compiler_F77
17042
17043 # Is the compiler the GNU C compiler?
17044 with_gcc=$GCC_F77
17045
17046 # An ERE matcher.
17047 EGREP=$lt_EGREP
17048
17049 # The linker used to build libraries.
17050 LD=$lt_LD_F77
17051
17052 # Whether we need hard or soft links.
17053 LN_S=$lt_LN_S
17054
17055 # A BSD-compatible nm program.
17056 NM=$lt_NM
17057
17058 # A symbol stripping program
17059 STRIP=$lt_STRIP
17060
17061 # Used to examine libraries when file_magic_cmd begins "file"
17062 MAGIC_CMD=$MAGIC_CMD
17063
17064 # Used on cygwin: DLL creation program.
17065 DLLTOOL="$DLLTOOL"
17066
17067 # Used on cygwin: object dumper.
17068 OBJDUMP="$OBJDUMP"
17069
17070 # Used on cygwin: assembler.
17071 AS="$AS"
17072
17073 # The name of the directory that contains temporary libtool files.
17074 objdir=$objdir
17075
17076 # How to create reloadable object files.
17077 reload_flag=$lt_reload_flag
17078 reload_cmds=$lt_reload_cmds
17079
17080 # How to pass a linker flag through the compiler.
17081 wl=$lt_lt_prog_compiler_wl_F77
17082
17083 # Object file suffix (normally "o").
17084 objext="$ac_objext"
17085
17086 # Old archive suffix (normally "a").
17087 libext="$libext"
17088
17089 # Shared library suffix (normally ".so").
17090 shrext_cmds='$shrext_cmds'
17091
17092 # Executable file suffix (normally "").
17093 exeext="$exeext"
17094
17095 # Additional compiler flags for building library objects.
17096 pic_flag=$lt_lt_prog_compiler_pic_F77
17097 pic_mode=$pic_mode
17098
17099 # What is the maximum length of a command?
17100 max_cmd_len=$lt_cv_sys_max_cmd_len
17101
17102 # Does compiler simultaneously support -c and -o options?
17103 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17104
17105 # Must we lock files when doing compilation?
17106 need_locks=$lt_need_locks
17107
17108 # Do we need the lib prefix for modules?
17109 need_lib_prefix=$need_lib_prefix
17110
17111 # Do we need a version for libraries?
17112 need_version=$need_version
17113
17114 # Whether dlopen is supported.
17115 dlopen_support=$enable_dlopen
17116
17117 # Whether dlopen of programs is supported.
17118 dlopen_self=$enable_dlopen_self
17119
17120 # Whether dlopen of statically linked programs is supported.
17121 dlopen_self_static=$enable_dlopen_self_static
17122
17123 # Compiler flag to prevent dynamic linking.
17124 link_static_flag=$lt_lt_prog_compiler_static_F77
17125
17126 # Compiler flag to turn off builtin functions.
17127 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17128
17129 # Compiler flag to allow reflexive dlopens.
17130 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17131
17132 # Compiler flag to generate shared objects directly from archives.
17133 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17134
17135 # Compiler flag to generate thread-safe objects.
17136 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17137
17138 # Library versioning type.
17139 version_type=$version_type
17140
17141 # Format of library name prefix.
17142 libname_spec=$lt_libname_spec
17143
17144 # List of archive names. First name is the real one, the rest are links.
17145 # The last name is the one that the linker finds with -lNAME.
17146 library_names_spec=$lt_library_names_spec
17147
17148 # The coded name of the library, if different from the real name.
17149 soname_spec=$lt_soname_spec
17150
17151 # Commands used to build and install an old-style archive.
17152 RANLIB=$lt_RANLIB
17153 old_archive_cmds=$lt_old_archive_cmds_F77
17154 old_postinstall_cmds=$lt_old_postinstall_cmds
17155 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17156
17157 # Create an old-style archive from a shared archive.
17158 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17159
17160 # Create a temporary old-style archive to link instead of a shared archive.
17161 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17162
17163 # Commands used to build and install a shared archive.
17164 archive_cmds=$lt_archive_cmds_F77
17165 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17166 postinstall_cmds=$lt_postinstall_cmds
17167 postuninstall_cmds=$lt_postuninstall_cmds
17168
17169 # Commands used to build a loadable module (assumed same as above if empty)
17170 module_cmds=$lt_module_cmds_F77
17171 module_expsym_cmds=$lt_module_expsym_cmds_F77
17172
17173 # Commands to strip libraries.
17174 old_striplib=$lt_old_striplib
17175 striplib=$lt_striplib
17176
17177 # Dependencies to place before the objects being linked to create a
17178 # shared library.
17179 predep_objects=$lt_predep_objects_F77
17180
17181 # Dependencies to place after the objects being linked to create a
17182 # shared library.
17183 postdep_objects=$lt_postdep_objects_F77
17184
17185 # Dependencies to place before the objects being linked to create a
17186 # shared library.
17187 predeps=$lt_predeps_F77
17188
17189 # Dependencies to place after the objects being linked to create a
17190 # shared library.
17191 postdeps=$lt_postdeps_F77
17192
17193 # The library search path used internally by the compiler when linking
17194 # a shared library.
17195 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17196
17197 # Method to check whether dependent libraries are shared objects.
17198 deplibs_check_method=$lt_deplibs_check_method
17199
17200 # Command to use when deplibs_check_method == file_magic.
17201 file_magic_cmd=$lt_file_magic_cmd
17202
17203 # Flag that allows shared libraries with undefined symbols to be built.
17204 allow_undefined_flag=$lt_allow_undefined_flag_F77
17205
17206 # Flag that forces no undefined symbols.
17207 no_undefined_flag=$lt_no_undefined_flag_F77
17208
17209 # Commands used to finish a libtool library installation in a directory.
17210 finish_cmds=$lt_finish_cmds
17211
17212 # Same as above, but a single script fragment to be evaled but not shown.
17213 finish_eval=$lt_finish_eval
17214
17215 # Take the output of nm and produce a listing of raw symbols and C names.
17216 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17217
17218 # Transform the output of nm in a proper C declaration
17219 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17220
17221 # Transform the output of nm in a C name address pair
17222 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17223
17224 # This is the shared library runtime path variable.
17225 runpath_var=$runpath_var
17226
17227 # This is the shared library path variable.
17228 shlibpath_var=$shlibpath_var
17229
17230 # Is shlibpath searched before the hard-coded library search path?
17231 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17232
17233 # How to hardcode a shared library path into an executable.
17234 hardcode_action=$hardcode_action_F77
17235
17236 # Whether we should hardcode library paths into libraries.
17237 hardcode_into_libs=$hardcode_into_libs
17238
17239 # Flag to hardcode \$libdir into a binary during linking.
17240 # This must work even if \$libdir does not exist.
17241 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17242
17243 # If ld is used when linking, flag to hardcode \$libdir into
17244 # a binary during linking. This must work even if \$libdir does
17245 # not exist.
17246 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17247
17248 # Whether we need a single -rpath flag with a separated argument.
17249 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17250
17251 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17252 # resulting binary.
17253 hardcode_direct=$hardcode_direct_F77
17254
17255 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17256 # resulting binary.
17257 hardcode_minus_L=$hardcode_minus_L_F77
17258
17259 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17260 # the resulting binary.
17261 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17262
17263 # Set to yes if building a shared library automatically hardcodes DIR into the library
17264 # and all subsequent libraries and executables linked against it.
17265 hardcode_automatic=$hardcode_automatic_F77
17266
17267 # Variables whose values should be saved in libtool wrapper scripts and
17268 # restored at relink time.
17269 variables_saved_for_relink="$variables_saved_for_relink"
17270
17271 # Whether libtool must link a program against all its dependency libraries.
17272 link_all_deplibs=$link_all_deplibs_F77
17273
17274 # Compile-time system search path for libraries
17275 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17276
17277 # Run-time system search path for libraries
17278 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17279
17280 # Fix the shell variable \$srcfile for the compiler.
17281 fix_srcfile_path="$fix_srcfile_path_F77"
17282
17283 # Set to yes if exported symbols are required.
17284 always_export_symbols=$always_export_symbols_F77
17285
17286 # The commands to list exported symbols.
17287 export_symbols_cmds=$lt_export_symbols_cmds_F77
17288
17289 # The commands to extract the exported symbol list from a shared archive.
17290 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17291
17292 # Symbols that should not be listed in the preloaded symbols.
17293 exclude_expsyms=$lt_exclude_expsyms_F77
17294
17295 # Symbols that must always be exported.
17296 include_expsyms=$lt_include_expsyms_F77
17297
17298 # ### END LIBTOOL TAG CONFIG: $tagname
17299
17300 __EOF__
17301
17302
17303 else
17304 # If there is no Makefile yet, we rely on a make rule to execute
17305 # `config.status --recheck' to rerun these tests and create the
17306 # libtool script then.
17307 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17308 if test -f "$ltmain_in"; then
17309 test -f Makefile && make "$ltmain"
17310 fi
17311 fi
17312
17313
17314 ac_ext=c
17315 ac_cpp='$CPP $CPPFLAGS'
17316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17319
17320 CC="$lt_save_CC"
17321
17322 else
17323 tagname=""
17324 fi
17325 ;;
17326
17327 GCJ)
17328 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17329
17330
17331 # Source file extension for Java test sources.
17332 ac_ext=java
17333
17334 # Object file extension for compiled Java test sources.
17335 objext=o
17336 objext_GCJ=$objext
17337
17338 # Code to be used in simple compile tests
17339 lt_simple_compile_test_code="class foo {}\n"
17340
17341 # Code to be used in simple link tests
17342 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17343
17344 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17345
17346 # If no C compiler was specified, use CC.
17347 LTCC=${LTCC-"$CC"}
17348
17349 # If no C compiler flags were specified, use CFLAGS.
17350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17351
17352 # Allow CC to be a program name with arguments.
17353 compiler=$CC
17354
17355
17356 # save warnings/boilerplate of simple test code
17357 ac_outfile=conftest.$ac_objext
17358 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17359 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17360 _lt_compiler_boilerplate=`cat conftest.err`
17361 $rm conftest*
17362
17363 ac_outfile=conftest.$ac_objext
17364 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17365 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17366 _lt_linker_boilerplate=`cat conftest.err`
17367 $rm conftest*
17368
17369
17370 # Allow CC to be a program name with arguments.
17371 lt_save_CC="$CC"
17372 CC=${GCJ-"gcj"}
17373 compiler=$CC
17374 compiler_GCJ=$CC
17375 for cc_temp in $compiler""; do
17376 case $cc_temp in
17377 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17378 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17379 \-*) ;;
17380 *) break;;
17381 esac
17382 done
17383 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17384
17385
17386 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17387 archive_cmds_need_lc_GCJ=no
17388
17389 old_archive_cmds_GCJ=$old_archive_cmds
17390
17391
17392 lt_prog_compiler_no_builtin_flag_GCJ=
17393
17394 if test "$GCC" = yes; then
17395 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17396
17397
17398 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17399 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17400 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17402 else
17403 lt_cv_prog_compiler_rtti_exceptions=no
17404 ac_outfile=conftest.$ac_objext
17405 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17406 lt_compiler_flag="-fno-rtti -fno-exceptions"
17407 # Insert the option either (1) after the last *FLAGS variable, or
17408 # (2) before a word containing "conftest.", or (3) at the end.
17409 # Note that $ac_compile itself does not contain backslashes and begins
17410 # with a dollar sign (not a hyphen), so the echo should work correctly.
17411 # The option is referenced via a variable to avoid confusing sed.
17412 lt_compile=`echo "$ac_compile" | $SED \
17413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17415 -e 's:$: $lt_compiler_flag:'`
17416 (eval echo "\"\$as_me:17416: $lt_compile\"" >&5)
17417 (eval "$lt_compile" 2>conftest.err)
17418 ac_status=$?
17419 cat conftest.err >&5
17420 echo "$as_me:17420: \$? = $ac_status" >&5
17421 if (exit $ac_status) && test -s "$ac_outfile"; then
17422 # The compiler can only warn and ignore the option if not recognized
17423 # So say no if there are warnings other than the usual output.
17424 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17427 lt_cv_prog_compiler_rtti_exceptions=yes
17428 fi
17429 fi
17430 $rm conftest*
17431
17432 fi
17433 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17434 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17435
17436 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17437 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17438 else
17439 :
17440 fi
17441
17442 fi
17443
17444 lt_prog_compiler_wl_GCJ=
17445 lt_prog_compiler_pic_GCJ=
17446 lt_prog_compiler_static_GCJ=
17447
17448 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17449 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17450
17451 if test "$GCC" = yes; then
17452 lt_prog_compiler_wl_GCJ='-Wl,'
17453 lt_prog_compiler_static_GCJ='-static'
17454
17455 case $host_os in
17456 aix*)
17457 # All AIX code is PIC.
17458 if test "$host_cpu" = ia64; then
17459 # AIX 5 now supports IA64 processor
17460 lt_prog_compiler_static_GCJ='-Bstatic'
17461 fi
17462 ;;
17463
17464 amigaos*)
17465 # FIXME: we need at least 68020 code to build shared libraries, but
17466 # adding the `-m68020' flag to GCC prevents building anything better,
17467 # like `-m68040'.
17468 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17469 ;;
17470
17471 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17472 # PIC is the default for these OSes.
17473 ;;
17474
17475 mingw* | pw32* | os2*)
17476 # This hack is so that the source file can tell whether it is being
17477 # built for inclusion in a dll (and should export symbols for example).
17478 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17479 ;;
17480
17481 darwin* | rhapsody*)
17482 # PIC is the default on this platform
17483 # Common symbols not allowed in MH_DYLIB files
17484 lt_prog_compiler_pic_GCJ='-fno-common'
17485 ;;
17486
17487 interix3*)
17488 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17489 # Instead, we relocate shared libraries at runtime.
17490 ;;
17491
17492 msdosdjgpp*)
17493 # Just because we use GCC doesn't mean we suddenly get shared libraries
17494 # on systems that don't support them.
17495 lt_prog_compiler_can_build_shared_GCJ=no
17496 enable_shared=no
17497 ;;
17498
17499 sysv4*MP*)
17500 if test -d /usr/nec; then
17501 lt_prog_compiler_pic_GCJ=-Kconform_pic
17502 fi
17503 ;;
17504
17505 hpux*)
17506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17507 # not for PA HP-UX.
17508 case $host_cpu in
17509 hppa*64*|ia64*)
17510 # +Z the default
17511 ;;
17512 *)
17513 lt_prog_compiler_pic_GCJ='-fPIC'
17514 ;;
17515 esac
17516 ;;
17517
17518 *)
17519 lt_prog_compiler_pic_GCJ='-fPIC'
17520 ;;
17521 esac
17522 else
17523 # PORTME Check for flag to pass linker flags through the system compiler.
17524 case $host_os in
17525 aix*)
17526 lt_prog_compiler_wl_GCJ='-Wl,'
17527 if test "$host_cpu" = ia64; then
17528 # AIX 5 now supports IA64 processor
17529 lt_prog_compiler_static_GCJ='-Bstatic'
17530 else
17531 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17532 fi
17533 ;;
17534 darwin*)
17535 # PIC is the default on this platform
17536 # Common symbols not allowed in MH_DYLIB files
17537 case $cc_basename in
17538 xlc*)
17539 lt_prog_compiler_pic_GCJ='-qnocommon'
17540 lt_prog_compiler_wl_GCJ='-Wl,'
17541 ;;
17542 esac
17543 ;;
17544
17545 mingw* | pw32* | os2*)
17546 # This hack is so that the source file can tell whether it is being
17547 # built for inclusion in a dll (and should export symbols for example).
17548 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17549 ;;
17550
17551 hpux9* | hpux10* | hpux11*)
17552 lt_prog_compiler_wl_GCJ='-Wl,'
17553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17554 # not for PA HP-UX.
17555 case $host_cpu in
17556 hppa*64*|ia64*)
17557 # +Z the default
17558 ;;
17559 *)
17560 lt_prog_compiler_pic_GCJ='+Z'
17561 ;;
17562 esac
17563 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17564 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17565 ;;
17566
17567 irix5* | irix6* | nonstopux*)
17568 lt_prog_compiler_wl_GCJ='-Wl,'
17569 # PIC (with -KPIC) is the default.
17570 lt_prog_compiler_static_GCJ='-non_shared'
17571 ;;
17572
17573 newsos6)
17574 lt_prog_compiler_pic_GCJ='-KPIC'
17575 lt_prog_compiler_static_GCJ='-Bstatic'
17576 ;;
17577
17578 linux*)
17579 case $cc_basename in
17580 icc* | ecc*)
17581 lt_prog_compiler_wl_GCJ='-Wl,'
17582 lt_prog_compiler_pic_GCJ='-KPIC'
17583 lt_prog_compiler_static_GCJ='-static'
17584 ;;
17585 pgcc* | pgf77* | pgf90* | pgf95*)
17586 # Portland Group compilers (*not* the Pentium gcc compiler,
17587 # which looks to be a dead project)
17588 lt_prog_compiler_wl_GCJ='-Wl,'
17589 lt_prog_compiler_pic_GCJ='-fpic'
17590 lt_prog_compiler_static_GCJ='-Bstatic'
17591 ;;
17592 ccc*)
17593 lt_prog_compiler_wl_GCJ='-Wl,'
17594 # All Alpha code is PIC.
17595 lt_prog_compiler_static_GCJ='-non_shared'
17596 ;;
17597 esac
17598 ;;
17599
17600 osf3* | osf4* | osf5*)
17601 lt_prog_compiler_wl_GCJ='-Wl,'
17602 # All OSF/1 code is PIC.
17603 lt_prog_compiler_static_GCJ='-non_shared'
17604 ;;
17605
17606 solaris*)
17607 lt_prog_compiler_pic_GCJ='-KPIC'
17608 lt_prog_compiler_static_GCJ='-Bstatic'
17609 case $cc_basename in
17610 f77* | f90* | f95*)
17611 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17612 *)
17613 lt_prog_compiler_wl_GCJ='-Wl,';;
17614 esac
17615 ;;
17616
17617 sunos4*)
17618 lt_prog_compiler_wl_GCJ='-Qoption ld '
17619 lt_prog_compiler_pic_GCJ='-PIC'
17620 lt_prog_compiler_static_GCJ='-Bstatic'
17621 ;;
17622
17623 sysv4 | sysv4.2uw2* | sysv4.3*)
17624 lt_prog_compiler_wl_GCJ='-Wl,'
17625 lt_prog_compiler_pic_GCJ='-KPIC'
17626 lt_prog_compiler_static_GCJ='-Bstatic'
17627 ;;
17628
17629 sysv4*MP*)
17630 if test -d /usr/nec ;then
17631 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17632 lt_prog_compiler_static_GCJ='-Bstatic'
17633 fi
17634 ;;
17635
17636 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17637 lt_prog_compiler_wl_GCJ='-Wl,'
17638 lt_prog_compiler_pic_GCJ='-KPIC'
17639 lt_prog_compiler_static_GCJ='-Bstatic'
17640 ;;
17641
17642 unicos*)
17643 lt_prog_compiler_wl_GCJ='-Wl,'
17644 lt_prog_compiler_can_build_shared_GCJ=no
17645 ;;
17646
17647 uts4*)
17648 lt_prog_compiler_pic_GCJ='-pic'
17649 lt_prog_compiler_static_GCJ='-Bstatic'
17650 ;;
17651
17652 *)
17653 lt_prog_compiler_can_build_shared_GCJ=no
17654 ;;
17655 esac
17656 fi
17657
17658 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17659 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17660
17661 #
17662 # Check to make sure the PIC flag actually works.
17663 #
17664 if test -n "$lt_prog_compiler_pic_GCJ"; then
17665
17666 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17667 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17668 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17670 else
17671 lt_prog_compiler_pic_works_GCJ=no
17672 ac_outfile=conftest.$ac_objext
17673 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17674 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17675 # Insert the option either (1) after the last *FLAGS variable, or
17676 # (2) before a word containing "conftest.", or (3) at the end.
17677 # Note that $ac_compile itself does not contain backslashes and begins
17678 # with a dollar sign (not a hyphen), so the echo should work correctly.
17679 # The option is referenced via a variable to avoid confusing sed.
17680 lt_compile=`echo "$ac_compile" | $SED \
17681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17683 -e 's:$: $lt_compiler_flag:'`
17684 (eval echo "\"\$as_me:17684: $lt_compile\"" >&5)
17685 (eval "$lt_compile" 2>conftest.err)
17686 ac_status=$?
17687 cat conftest.err >&5
17688 echo "$as_me:17688: \$? = $ac_status" >&5
17689 if (exit $ac_status) && test -s "$ac_outfile"; then
17690 # The compiler can only warn and ignore the option if not recognized
17691 # So say no if there are warnings other than the usual output.
17692 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17694 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17695 lt_prog_compiler_pic_works_GCJ=yes
17696 fi
17697 fi
17698 $rm conftest*
17699
17700 fi
17701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17702 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17703
17704 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17705 case $lt_prog_compiler_pic_GCJ in
17706 "" | " "*) ;;
17707 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17708 esac
17709 else
17710 lt_prog_compiler_pic_GCJ=
17711 lt_prog_compiler_can_build_shared_GCJ=no
17712 fi
17713
17714 fi
17715 case $host_os in
17716 # For platforms which do not support PIC, -DPIC is meaningless:
17717 *djgpp*)
17718 lt_prog_compiler_pic_GCJ=
17719 ;;
17720 *)
17721 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17722 ;;
17723 esac
17724
17725 #
17726 # Check to make sure the static flag actually works.
17727 #
17728 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17729 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17730 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17731 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734 lt_prog_compiler_static_works_GCJ=no
17735 save_LDFLAGS="$LDFLAGS"
17736 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17737 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17738 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17739 # The linker can only warn and ignore the option if not recognized
17740 # So say no if there are warnings
17741 if test -s conftest.err; then
17742 # Append any errors to the config.log.
17743 cat conftest.err 1>&5
17744 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17746 if diff conftest.exp conftest.er2 >/dev/null; then
17747 lt_prog_compiler_static_works_GCJ=yes
17748 fi
17749 else
17750 lt_prog_compiler_static_works_GCJ=yes
17751 fi
17752 fi
17753 $rm conftest*
17754 LDFLAGS="$save_LDFLAGS"
17755
17756 fi
17757 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17758 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17759
17760 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17761 :
17762 else
17763 lt_prog_compiler_static_GCJ=
17764 fi
17765
17766
17767 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17768 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17769 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17771 else
17772 lt_cv_prog_compiler_c_o_GCJ=no
17773 $rm -r conftest 2>/dev/null
17774 mkdir conftest
17775 cd conftest
17776 mkdir out
17777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17778
17779 lt_compiler_flag="-o out/conftest2.$ac_objext"
17780 # Insert the option either (1) after the last *FLAGS variable, or
17781 # (2) before a word containing "conftest.", or (3) at the end.
17782 # Note that $ac_compile itself does not contain backslashes and begins
17783 # with a dollar sign (not a hyphen), so the echo should work correctly.
17784 lt_compile=`echo "$ac_compile" | $SED \
17785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17787 -e 's:$: $lt_compiler_flag:'`
17788 (eval echo "\"\$as_me:17788: $lt_compile\"" >&5)
17789 (eval "$lt_compile" 2>out/conftest.err)
17790 ac_status=$?
17791 cat out/conftest.err >&5
17792 echo "$as_me:17792: \$? = $ac_status" >&5
17793 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17794 then
17795 # The compiler can only warn and ignore the option if not recognized
17796 # So say no if there are warnings
17797 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17798 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17799 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17800 lt_cv_prog_compiler_c_o_GCJ=yes
17801 fi
17802 fi
17803 chmod u+w . 2>&5
17804 $rm conftest*
17805 # SGI C++ compiler will create directory out/ii_files/ for
17806 # template instantiation
17807 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17808 $rm out/* && rmdir out
17809 cd ..
17810 rmdir conftest
17811 $rm conftest*
17812
17813 fi
17814 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17815 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17816
17817
17818 hard_links="nottested"
17819 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17820 # do not overwrite the value of need_locks provided by the user
17821 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17822 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17823 hard_links=yes
17824 $rm conftest*
17825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17826 touch conftest.a
17827 ln conftest.a conftest.b 2>&5 || hard_links=no
17828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17829 { echo "$as_me:$LINENO: result: $hard_links" >&5
17830 echo "${ECHO_T}$hard_links" >&6; }
17831 if test "$hard_links" = no; then
17832 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17833 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17834 need_locks=warn
17835 fi
17836 else
17837 need_locks=no
17838 fi
17839
17840 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17841 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17842
17843 runpath_var=
17844 allow_undefined_flag_GCJ=
17845 enable_shared_with_static_runtimes_GCJ=no
17846 archive_cmds_GCJ=
17847 archive_expsym_cmds_GCJ=
17848 old_archive_From_new_cmds_GCJ=
17849 old_archive_from_expsyms_cmds_GCJ=
17850 export_dynamic_flag_spec_GCJ=
17851 whole_archive_flag_spec_GCJ=
17852 thread_safe_flag_spec_GCJ=
17853 hardcode_libdir_flag_spec_GCJ=
17854 hardcode_libdir_flag_spec_ld_GCJ=
17855 hardcode_libdir_separator_GCJ=
17856 hardcode_direct_GCJ=no
17857 hardcode_minus_L_GCJ=no
17858 hardcode_shlibpath_var_GCJ=unsupported
17859 link_all_deplibs_GCJ=unknown
17860 hardcode_automatic_GCJ=no
17861 module_cmds_GCJ=
17862 module_expsym_cmds_GCJ=
17863 always_export_symbols_GCJ=no
17864 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17865 # include_expsyms should be a list of space-separated symbols to be *always*
17866 # included in the symbol list
17867 include_expsyms_GCJ=
17868 # exclude_expsyms can be an extended regexp of symbols to exclude
17869 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17870 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17871 # as well as any symbol that contains `d'.
17872 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17873 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17874 # platforms (ab)use it in PIC code, but their linkers get confused if
17875 # the symbol is explicitly referenced. Since portable code cannot
17876 # rely on this symbol name, it's probably fine to never include it in
17877 # preloaded symbol tables.
17878 extract_expsyms_cmds=
17879 # Just being paranoid about ensuring that cc_basename is set.
17880 for cc_temp in $compiler""; do
17881 case $cc_temp in
17882 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17883 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17884 \-*) ;;
17885 *) break;;
17886 esac
17887 done
17888 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17889
17890 case $host_os in
17891 cygwin* | mingw* | pw32*)
17892 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17893 # When not using gcc, we currently assume that we are using
17894 # Microsoft Visual C++.
17895 if test "$GCC" != yes; then
17896 with_gnu_ld=no
17897 fi
17898 ;;
17899 interix*)
17900 # we just hope/assume this is gcc and not c89 (= MSVC++)
17901 with_gnu_ld=yes
17902 ;;
17903 openbsd*)
17904 with_gnu_ld=no
17905 ;;
17906 esac
17907
17908 ld_shlibs_GCJ=yes
17909 if test "$with_gnu_ld" = yes; then
17910 # If archive_cmds runs LD, not CC, wlarc should be empty
17911 wlarc='${wl}'
17912
17913 # Set some defaults for GNU ld with shared library support. These
17914 # are reset later if shared libraries are not supported. Putting them
17915 # here allows them to be overridden if necessary.
17916 runpath_var=LD_RUN_PATH
17917 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17918 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17919 # ancient GNU ld didn't support --whole-archive et. al.
17920 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17921 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17922 else
17923 whole_archive_flag_spec_GCJ=
17924 fi
17925 supports_anon_versioning=no
17926 case `$LD -v 2>/dev/null` in
17927 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17928 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17929 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17930 *\ 2.11.*) ;; # other 2.11 versions
17931 *) supports_anon_versioning=yes ;;
17932 esac
17933
17934 # See if GNU ld supports shared libraries.
17935 case $host_os in
17936 aix3* | aix4* | aix5*)
17937 # On AIX/PPC, the GNU linker is very broken
17938 if test "$host_cpu" != ia64; then
17939 ld_shlibs_GCJ=no
17940 cat <<EOF 1>&2
17941
17942 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17943 *** to be unable to reliably create shared libraries on AIX.
17944 *** Therefore, libtool is disabling shared libraries support. If you
17945 *** really care for shared libraries, you may want to modify your PATH
17946 *** so that a non-GNU linker is found, and then restart.
17947
17948 EOF
17949 fi
17950 ;;
17951
17952 amigaos*)
17953 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)'
17954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17955 hardcode_minus_L_GCJ=yes
17956
17957 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17958 # that the semantics of dynamic libraries on AmigaOS, at least up
17959 # to version 4, is to share data among multiple programs linked
17960 # with the same dynamic library. Since this doesn't match the
17961 # behavior of shared libraries on other platforms, we can't use
17962 # them.
17963 ld_shlibs_GCJ=no
17964 ;;
17965
17966 beos*)
17967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17968 allow_undefined_flag_GCJ=unsupported
17969 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17970 # support --undefined. This deserves some investigation. FIXME
17971 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17972 else
17973 ld_shlibs_GCJ=no
17974 fi
17975 ;;
17976
17977 cygwin* | mingw* | pw32*)
17978 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17979 # as there is no search path for DLLs.
17980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17981 allow_undefined_flag_GCJ=unsupported
17982 always_export_symbols_GCJ=no
17983 enable_shared_with_static_runtimes_GCJ=yes
17984 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17985
17986 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17987 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17988 # If the export-symbols file already is a .def file (1st line
17989 # is EXPORTS), use it as is; otherwise, prepend...
17990 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17991 cp $export_symbols $output_objdir/$soname.def;
17992 else
17993 echo EXPORTS > $output_objdir/$soname.def;
17994 cat $export_symbols >> $output_objdir/$soname.def;
17995 fi~
17996 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17997 else
17998 ld_shlibs_GCJ=no
17999 fi
18000 ;;
18001
18002 interix3*)
18003 hardcode_direct_GCJ=no
18004 hardcode_shlibpath_var_GCJ=no
18005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18006 export_dynamic_flag_spec_GCJ='${wl}-E'
18007 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18008 # Instead, shared libraries are loaded at an image base (0x10000000 by
18009 # default) and relocated if they conflict, which is a slow very memory
18010 # consuming and fragmenting process. To avoid this, we pick a random,
18011 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18012 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18013 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'
18014 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'
18015 ;;
18016
18017 linux*)
18018 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18019 tmp_addflag=
18020 case $cc_basename,$host_cpu in
18021 pgcc*) # Portland Group C compiler
18022 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'
18023 tmp_addflag=' $pic_flag'
18024 ;;
18025 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18026 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'
18027 tmp_addflag=' $pic_flag -Mnomain' ;;
18028 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18029 tmp_addflag=' -i_dynamic' ;;
18030 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18031 tmp_addflag=' -i_dynamic -nofor_main' ;;
18032 ifc* | ifort*) # Intel Fortran compiler
18033 tmp_addflag=' -nofor_main' ;;
18034 esac
18035 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18036
18037 if test $supports_anon_versioning = yes; then
18038 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18040 $echo "local: *; };" >> $output_objdir/$libname.ver~
18041 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18042 fi
18043 else
18044 ld_shlibs_GCJ=no
18045 fi
18046 ;;
18047
18048 netbsd*)
18049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18050 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18051 wlarc=
18052 else
18053 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18054 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18055 fi
18056 ;;
18057
18058 solaris*)
18059 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18060 ld_shlibs_GCJ=no
18061 cat <<EOF 1>&2
18062
18063 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18064 *** create shared libraries on Solaris systems. Therefore, libtool
18065 *** is disabling shared libraries support. We urge you to upgrade GNU
18066 *** binutils to release 2.9.1 or newer. Another option is to modify
18067 *** your PATH or compiler configuration so that the native linker is
18068 *** used, and then restart.
18069
18070 EOF
18071 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18072 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18073 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18074 else
18075 ld_shlibs_GCJ=no
18076 fi
18077 ;;
18078
18079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18080 case `$LD -v 2>&1` in
18081 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18082 ld_shlibs_GCJ=no
18083 cat <<_LT_EOF 1>&2
18084
18085 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18086 *** reliably create shared libraries on SCO systems. Therefore, libtool
18087 *** is disabling shared libraries support. We urge you to upgrade GNU
18088 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18089 *** your PATH or compiler configuration so that the native linker is
18090 *** used, and then restart.
18091
18092 _LT_EOF
18093 ;;
18094 *)
18095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18096 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18097 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18098 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18099 else
18100 ld_shlibs_GCJ=no
18101 fi
18102 ;;
18103 esac
18104 ;;
18105
18106 sunos4*)
18107 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18108 wlarc=
18109 hardcode_direct_GCJ=yes
18110 hardcode_shlibpath_var_GCJ=no
18111 ;;
18112
18113 *)
18114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18115 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18116 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18117 else
18118 ld_shlibs_GCJ=no
18119 fi
18120 ;;
18121 esac
18122
18123 if test "$ld_shlibs_GCJ" = no; then
18124 runpath_var=
18125 hardcode_libdir_flag_spec_GCJ=
18126 export_dynamic_flag_spec_GCJ=
18127 whole_archive_flag_spec_GCJ=
18128 fi
18129 else
18130 # PORTME fill in a description of your system's linker (not GNU ld)
18131 case $host_os in
18132 aix3*)
18133 allow_undefined_flag_GCJ=unsupported
18134 always_export_symbols_GCJ=yes
18135 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'
18136 # Note: this linker hardcodes the directories in LIBPATH if there
18137 # are no directories specified by -L.
18138 hardcode_minus_L_GCJ=yes
18139 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18140 # Neither direct hardcoding nor static linking is supported with a
18141 # broken collect2.
18142 hardcode_direct_GCJ=unsupported
18143 fi
18144 ;;
18145
18146 aix4* | aix5*)
18147 if test "$host_cpu" = ia64; then
18148 # On IA64, the linker does run time linking by default, so we don't
18149 # have to do anything special.
18150 aix_use_runtimelinking=no
18151 exp_sym_flag='-Bexport'
18152 no_entry_flag=""
18153 else
18154 # If we're using GNU nm, then we don't want the "-C" option.
18155 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18156 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18157 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'
18158 else
18159 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'
18160 fi
18161 aix_use_runtimelinking=no
18162
18163 # Test if we are trying to use run time linking or normal
18164 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18165 # need to do runtime linking.
18166 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18167 for ld_flag in $LDFLAGS; do
18168 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18169 aix_use_runtimelinking=yes
18170 break
18171 fi
18172 done
18173 ;;
18174 esac
18175
18176 exp_sym_flag='-bexport'
18177 no_entry_flag='-bnoentry'
18178 fi
18179
18180 # When large executables or shared objects are built, AIX ld can
18181 # have problems creating the table of contents. If linking a library
18182 # or program results in "error TOC overflow" add -mminimal-toc to
18183 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18184 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18185
18186 archive_cmds_GCJ=''
18187 hardcode_direct_GCJ=yes
18188 hardcode_libdir_separator_GCJ=':'
18189 link_all_deplibs_GCJ=yes
18190
18191 if test "$GCC" = yes; then
18192 case $host_os in aix4.[012]|aix4.[012].*)
18193 # We only want to do this on AIX 4.2 and lower, the check
18194 # below for broken collect2 doesn't work under 4.3+
18195 collect2name=`${CC} -print-prog-name=collect2`
18196 if test -f "$collect2name" && \
18197 strings "$collect2name" | grep resolve_lib_name >/dev/null
18198 then
18199 # We have reworked collect2
18200 hardcode_direct_GCJ=yes
18201 else
18202 # We have old collect2
18203 hardcode_direct_GCJ=unsupported
18204 # It fails to find uninstalled libraries when the uninstalled
18205 # path is not listed in the libpath. Setting hardcode_minus_L
18206 # to unsupported forces relinking
18207 hardcode_minus_L_GCJ=yes
18208 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18209 hardcode_libdir_separator_GCJ=
18210 fi
18211 ;;
18212 esac
18213 shared_flag='-shared'
18214 if test "$aix_use_runtimelinking" = yes; then
18215 shared_flag="$shared_flag "'${wl}-G'
18216 fi
18217 else
18218 # not using gcc
18219 if test "$host_cpu" = ia64; then
18220 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18221 # chokes on -Wl,-G. The following line is correct:
18222 shared_flag='-G'
18223 else
18224 if test "$aix_use_runtimelinking" = yes; then
18225 shared_flag='${wl}-G'
18226 else
18227 shared_flag='${wl}-bM:SRE'
18228 fi
18229 fi
18230 fi
18231
18232 # It seems that -bexpall does not export symbols beginning with
18233 # underscore (_), so it is better to generate a list of symbols to export.
18234 always_export_symbols_GCJ=yes
18235 if test "$aix_use_runtimelinking" = yes; then
18236 # Warning - without using the other runtime loading flags (-brtl),
18237 # -berok will link without error, but may produce a broken library.
18238 allow_undefined_flag_GCJ='-berok'
18239 # Determine the default libpath from the value encoded in an empty executable.
18240 cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h. */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246
18247 int
18248 main ()
18249 {
18250
18251 ;
18252 return 0;
18253 }
18254 _ACEOF
18255 rm -f conftest.$ac_objext conftest$ac_exeext
18256 if { (ac_try="$ac_link"
18257 case "(($ac_try" in
18258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259 *) ac_try_echo=$ac_try;;
18260 esac
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_link") 2>conftest.er1
18263 ac_status=$?
18264 grep -v '^ *+' conftest.er1 >conftest.err
18265 rm -f conftest.er1
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } && {
18269 test -z "$ac_c_werror_flag" ||
18270 test ! -s conftest.err
18271 } && test -s conftest$ac_exeext &&
18272 $as_test_x conftest$ac_exeext; then
18273
18274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18275 }'`
18276 # Check for a 64-bit object if we didn't find anything.
18277 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; }
18278 }'`; fi
18279 else
18280 echo "$as_me: failed program was:" >&5
18281 sed 's/^/| /' conftest.$ac_ext >&5
18282
18283
18284 fi
18285
18286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18287 conftest$ac_exeext conftest.$ac_ext
18288 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18289
18290 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18291 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"
18292 else
18293 if test "$host_cpu" = ia64; then
18294 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18295 allow_undefined_flag_GCJ="-z nodefs"
18296 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"
18297 else
18298 # Determine the default libpath from the value encoded in an empty executable.
18299 cat >conftest.$ac_ext <<_ACEOF
18300 /* confdefs.h. */
18301 _ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18305
18306 int
18307 main ()
18308 {
18309
18310 ;
18311 return 0;
18312 }
18313 _ACEOF
18314 rm -f conftest.$ac_objext conftest$ac_exeext
18315 if { (ac_try="$ac_link"
18316 case "(($ac_try" in
18317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318 *) ac_try_echo=$ac_try;;
18319 esac
18320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321 (eval "$ac_link") 2>conftest.er1
18322 ac_status=$?
18323 grep -v '^ *+' conftest.er1 >conftest.err
18324 rm -f conftest.er1
18325 cat conftest.err >&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } && {
18328 test -z "$ac_c_werror_flag" ||
18329 test ! -s conftest.err
18330 } && test -s conftest$ac_exeext &&
18331 $as_test_x conftest$ac_exeext; then
18332
18333 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18334 }'`
18335 # Check for a 64-bit object if we didn't find anything.
18336 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; }
18337 }'`; fi
18338 else
18339 echo "$as_me: failed program was:" >&5
18340 sed 's/^/| /' conftest.$ac_ext >&5
18341
18342
18343 fi
18344
18345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18346 conftest$ac_exeext conftest.$ac_ext
18347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18348
18349 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18350 # Warning - without using the other run time loading flags,
18351 # -berok will link without error, but may produce a broken library.
18352 no_undefined_flag_GCJ=' ${wl}-bernotok'
18353 allow_undefined_flag_GCJ=' ${wl}-berok'
18354 # Exported symbols can be pulled into shared objects from archives
18355 whole_archive_flag_spec_GCJ='$convenience'
18356 archive_cmds_need_lc_GCJ=yes
18357 # This is similar to how AIX traditionally builds its shared libraries.
18358 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'
18359 fi
18360 fi
18361 ;;
18362
18363 amigaos*)
18364 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)'
18365 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18366 hardcode_minus_L_GCJ=yes
18367 # see comment about different semantics on the GNU ld section
18368 ld_shlibs_GCJ=no
18369 ;;
18370
18371 bsdi[45]*)
18372 export_dynamic_flag_spec_GCJ=-rdynamic
18373 ;;
18374
18375 cygwin* | mingw* | pw32*)
18376 # When not using gcc, we currently assume that we are using
18377 # Microsoft Visual C++.
18378 # hardcode_libdir_flag_spec is actually meaningless, as there is
18379 # no search path for DLLs.
18380 hardcode_libdir_flag_spec_GCJ=' '
18381 allow_undefined_flag_GCJ=unsupported
18382 # Tell ltmain to make .lib files, not .a files.
18383 libext=lib
18384 # Tell ltmain to make .dll files, not .so files.
18385 shrext_cmds=".dll"
18386 # FIXME: Setting linknames here is a bad hack.
18387 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18388 # The linker will automatically build a .lib file if we build a DLL.
18389 old_archive_From_new_cmds_GCJ='true'
18390 # FIXME: Should let the user specify the lib program.
18391 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18392 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18393 enable_shared_with_static_runtimes_GCJ=yes
18394 ;;
18395
18396 darwin* | rhapsody*)
18397 case $host_os in
18398 rhapsody* | darwin1.[012])
18399 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18400 ;;
18401 *) # Darwin 1.3 on
18402 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18403 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18404 else
18405 case ${MACOSX_DEPLOYMENT_TARGET} in
18406 10.[012])
18407 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18408 ;;
18409 10.*)
18410 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18411 ;;
18412 esac
18413 fi
18414 ;;
18415 esac
18416 archive_cmds_need_lc_GCJ=no
18417 hardcode_direct_GCJ=no
18418 hardcode_automatic_GCJ=yes
18419 hardcode_shlibpath_var_GCJ=unsupported
18420 whole_archive_flag_spec_GCJ=''
18421 link_all_deplibs_GCJ=yes
18422 if test "$GCC" = yes ; then
18423 output_verbose_link_cmd='echo'
18424 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18425 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18426 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18427 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}'
18428 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}'
18429 else
18430 case $cc_basename in
18431 xlc*)
18432 output_verbose_link_cmd='echo'
18433 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18434 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18435 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18436 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}'
18437 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}'
18438 ;;
18439 *)
18440 ld_shlibs_GCJ=no
18441 ;;
18442 esac
18443 fi
18444 ;;
18445
18446 dgux*)
18447 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18448 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18449 hardcode_shlibpath_var_GCJ=no
18450 ;;
18451
18452 freebsd1*)
18453 ld_shlibs_GCJ=no
18454 ;;
18455
18456 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18457 # support. Future versions do this automatically, but an explicit c++rt0.o
18458 # does not break anything, and helps significantly (at the cost of a little
18459 # extra space).
18460 freebsd2.2*)
18461 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18462 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18463 hardcode_direct_GCJ=yes
18464 hardcode_shlibpath_var_GCJ=no
18465 ;;
18466
18467 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18468 freebsd2*)
18469 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18470 hardcode_direct_GCJ=yes
18471 hardcode_minus_L_GCJ=yes
18472 hardcode_shlibpath_var_GCJ=no
18473 ;;
18474
18475 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18476 freebsd* | kfreebsd*-gnu | dragonfly*)
18477 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18478 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18479 hardcode_direct_GCJ=yes
18480 hardcode_shlibpath_var_GCJ=no
18481 ;;
18482
18483 hpux9*)
18484 if test "$GCC" = yes; then
18485 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'
18486 else
18487 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'
18488 fi
18489 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18490 hardcode_libdir_separator_GCJ=:
18491 hardcode_direct_GCJ=yes
18492
18493 # hardcode_minus_L: Not really in the search PATH,
18494 # but as the default location of the library.
18495 hardcode_minus_L_GCJ=yes
18496 export_dynamic_flag_spec_GCJ='${wl}-E'
18497 ;;
18498
18499 hpux10*)
18500 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18501 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18502 else
18503 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18504 fi
18505 if test "$with_gnu_ld" = no; then
18506 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18507 hardcode_libdir_separator_GCJ=:
18508
18509 hardcode_direct_GCJ=yes
18510 export_dynamic_flag_spec_GCJ='${wl}-E'
18511
18512 # hardcode_minus_L: Not really in the search PATH,
18513 # but as the default location of the library.
18514 hardcode_minus_L_GCJ=yes
18515 fi
18516 ;;
18517
18518 hpux11*)
18519 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18520 case $host_cpu in
18521 hppa*64*)
18522 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18523 ;;
18524 ia64*)
18525 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18526 ;;
18527 *)
18528 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18529 ;;
18530 esac
18531 else
18532 case $host_cpu in
18533 hppa*64*)
18534 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18535 ;;
18536 ia64*)
18537 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18538 ;;
18539 *)
18540 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18541 ;;
18542 esac
18543 fi
18544 if test "$with_gnu_ld" = no; then
18545 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18546 hardcode_libdir_separator_GCJ=:
18547
18548 case $host_cpu in
18549 hppa*64*|ia64*)
18550 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18551 hardcode_direct_GCJ=no
18552 hardcode_shlibpath_var_GCJ=no
18553 ;;
18554 *)
18555 hardcode_direct_GCJ=yes
18556 export_dynamic_flag_spec_GCJ='${wl}-E'
18557
18558 # hardcode_minus_L: Not really in the search PATH,
18559 # but as the default location of the library.
18560 hardcode_minus_L_GCJ=yes
18561 ;;
18562 esac
18563 fi
18564 ;;
18565
18566 irix5* | irix6* | nonstopux*)
18567 if test "$GCC" = yes; then
18568 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'
18569 else
18570 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'
18571 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18572 fi
18573 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18574 hardcode_libdir_separator_GCJ=:
18575 link_all_deplibs_GCJ=yes
18576 ;;
18577
18578 netbsd*)
18579 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18580 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18581 else
18582 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18583 fi
18584 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18585 hardcode_direct_GCJ=yes
18586 hardcode_shlibpath_var_GCJ=no
18587 ;;
18588
18589 newsos6)
18590 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18591 hardcode_direct_GCJ=yes
18592 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18593 hardcode_libdir_separator_GCJ=:
18594 hardcode_shlibpath_var_GCJ=no
18595 ;;
18596
18597 openbsd*)
18598 hardcode_direct_GCJ=yes
18599 hardcode_shlibpath_var_GCJ=no
18600 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18601 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18602 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18603 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18604 export_dynamic_flag_spec_GCJ='${wl}-E'
18605 else
18606 case $host_os in
18607 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18608 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18609 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18610 ;;
18611 *)
18612 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18613 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18614 ;;
18615 esac
18616 fi
18617 ;;
18618
18619 os2*)
18620 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18621 hardcode_minus_L_GCJ=yes
18622 allow_undefined_flag_GCJ=unsupported
18623 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'
18624 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18625 ;;
18626
18627 osf3*)
18628 if test "$GCC" = yes; then
18629 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18630 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'
18631 else
18632 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18633 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'
18634 fi
18635 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18636 hardcode_libdir_separator_GCJ=:
18637 ;;
18638
18639 osf4* | osf5*) # as osf3* with the addition of -msym flag
18640 if test "$GCC" = yes; then
18641 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18642 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'
18643 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18644 else
18645 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18646 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'
18647 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~
18648 $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'
18649
18650 # Both c and cxx compiler support -rpath directly
18651 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18652 fi
18653 hardcode_libdir_separator_GCJ=:
18654 ;;
18655
18656 solaris*)
18657 no_undefined_flag_GCJ=' -z text'
18658 if test "$GCC" = yes; then
18659 wlarc='${wl}'
18660 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18661 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18662 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18663 else
18664 wlarc=''
18665 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18666 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18667 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18668 fi
18669 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18670 hardcode_shlibpath_var_GCJ=no
18671 case $host_os in
18672 solaris2.[0-5] | solaris2.[0-5].*) ;;
18673 *)
18674 # The compiler driver will combine linker options so we
18675 # cannot just pass the convience library names through
18676 # without $wl, iff we do not link with $LD.
18677 # Luckily, gcc supports the same syntax we need for Sun Studio.
18678 # Supported since Solaris 2.6 (maybe 2.5.1?)
18679 case $wlarc in
18680 '')
18681 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18682 *)
18683 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' ;;
18684 esac ;;
18685 esac
18686 link_all_deplibs_GCJ=yes
18687 ;;
18688
18689 sunos4*)
18690 if test "x$host_vendor" = xsequent; then
18691 # Use $CC to link under sequent, because it throws in some extra .o
18692 # files that make .init and .fini sections work.
18693 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18694 else
18695 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18696 fi
18697 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18698 hardcode_direct_GCJ=yes
18699 hardcode_minus_L_GCJ=yes
18700 hardcode_shlibpath_var_GCJ=no
18701 ;;
18702
18703 sysv4)
18704 case $host_vendor in
18705 sni)
18706 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18707 hardcode_direct_GCJ=yes # is this really true???
18708 ;;
18709 siemens)
18710 ## LD is ld it makes a PLAMLIB
18711 ## CC just makes a GrossModule.
18712 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18713 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18714 hardcode_direct_GCJ=no
18715 ;;
18716 motorola)
18717 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18718 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18719 ;;
18720 esac
18721 runpath_var='LD_RUN_PATH'
18722 hardcode_shlibpath_var_GCJ=no
18723 ;;
18724
18725 sysv4.3*)
18726 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18727 hardcode_shlibpath_var_GCJ=no
18728 export_dynamic_flag_spec_GCJ='-Bexport'
18729 ;;
18730
18731 sysv4*MP*)
18732 if test -d /usr/nec; then
18733 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18734 hardcode_shlibpath_var_GCJ=no
18735 runpath_var=LD_RUN_PATH
18736 hardcode_runpath_var=yes
18737 ld_shlibs_GCJ=yes
18738 fi
18739 ;;
18740
18741 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18742 no_undefined_flag_GCJ='${wl}-z,text'
18743 archive_cmds_need_lc_GCJ=no
18744 hardcode_shlibpath_var_GCJ=no
18745 runpath_var='LD_RUN_PATH'
18746
18747 if test "$GCC" = yes; then
18748 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18749 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18750 else
18751 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18752 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18753 fi
18754 ;;
18755
18756 sysv5* | sco3.2v5* | sco5v6*)
18757 # Note: We can NOT use -z defs as we might desire, because we do not
18758 # link with -lc, and that would cause any symbols used from libc to
18759 # always be unresolved, which means just about no library would
18760 # ever link correctly. If we're not using GNU ld we use -z text
18761 # though, which does catch some bad symbols but isn't as heavy-handed
18762 # as -z defs.
18763 no_undefined_flag_GCJ='${wl}-z,text'
18764 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18765 archive_cmds_need_lc_GCJ=no
18766 hardcode_shlibpath_var_GCJ=no
18767 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18768 hardcode_libdir_separator_GCJ=':'
18769 link_all_deplibs_GCJ=yes
18770 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18771 runpath_var='LD_RUN_PATH'
18772
18773 if test "$GCC" = yes; then
18774 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18775 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18776 else
18777 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18778 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18779 fi
18780 ;;
18781
18782 uts4*)
18783 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18784 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18785 hardcode_shlibpath_var_GCJ=no
18786 ;;
18787
18788 *)
18789 ld_shlibs_GCJ=no
18790 ;;
18791 esac
18792 fi
18793
18794 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18795 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18796 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18797
18798 #
18799 # Do we need to explicitly link libc?
18800 #
18801 case "x$archive_cmds_need_lc_GCJ" in
18802 x|xyes)
18803 # Assume -lc should be added
18804 archive_cmds_need_lc_GCJ=yes
18805
18806 if test "$enable_shared" = yes && test "$GCC" = yes; then
18807 case $archive_cmds_GCJ in
18808 *'~'*)
18809 # FIXME: we may have to deal with multi-command sequences.
18810 ;;
18811 '$CC '*)
18812 # Test whether the compiler implicitly links with -lc since on some
18813 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18814 # to ld, don't add -lc before -lgcc.
18815 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18816 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18817 $rm conftest*
18818 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18819
18820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18821 (eval $ac_compile) 2>&5
18822 ac_status=$?
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } 2>conftest.err; then
18825 soname=conftest
18826 lib=conftest
18827 libobjs=conftest.$ac_objext
18828 deplibs=
18829 wl=$lt_prog_compiler_wl_GCJ
18830 pic_flag=$lt_prog_compiler_pic_GCJ
18831 compiler_flags=-v
18832 linker_flags=-v
18833 verstring=
18834 output_objdir=.
18835 libname=conftest
18836 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18837 allow_undefined_flag_GCJ=
18838 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18839 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18840 ac_status=$?
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }
18843 then
18844 archive_cmds_need_lc_GCJ=no
18845 else
18846 archive_cmds_need_lc_GCJ=yes
18847 fi
18848 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18849 else
18850 cat conftest.err 1>&5
18851 fi
18852 $rm conftest*
18853 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18854 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18855 ;;
18856 esac
18857 fi
18858 ;;
18859 esac
18860
18861 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18862 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18863 library_names_spec=
18864 libname_spec='lib$name'
18865 soname_spec=
18866 shrext_cmds=".so"
18867 postinstall_cmds=
18868 postuninstall_cmds=
18869 finish_cmds=
18870 finish_eval=
18871 shlibpath_var=
18872 shlibpath_overrides_runpath=unknown
18873 version_type=none
18874 dynamic_linker="$host_os ld.so"
18875 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18876 if test "$GCC" = yes; then
18877 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18878 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18879 # if the path contains ";" then we assume it to be the separator
18880 # otherwise default to the standard path separator (i.e. ":") - it is
18881 # assumed that no part of a normal pathname contains ";" but that should
18882 # okay in the real world where ";" in dirpaths is itself problematic.
18883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18884 else
18885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18886 fi
18887 else
18888 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18889 fi
18890 need_lib_prefix=unknown
18891 hardcode_into_libs=no
18892
18893 # when you set need_version to no, make sure it does not cause -set_version
18894 # flags to be left without arguments
18895 need_version=unknown
18896
18897 case $host_os in
18898 aix3*)
18899 version_type=linux
18900 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18901 shlibpath_var=LIBPATH
18902
18903 # AIX 3 has no versioning support, so we append a major version to the name.
18904 soname_spec='${libname}${release}${shared_ext}$major'
18905 ;;
18906
18907 aix4* | aix5*)
18908 version_type=linux
18909 need_lib_prefix=no
18910 need_version=no
18911 hardcode_into_libs=yes
18912 if test "$host_cpu" = ia64; then
18913 # AIX 5 supports IA64
18914 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18915 shlibpath_var=LD_LIBRARY_PATH
18916 else
18917 # With GCC up to 2.95.x, collect2 would create an import file
18918 # for dependence libraries. The import file would start with
18919 # the line `#! .'. This would cause the generated library to
18920 # depend on `.', always an invalid library. This was fixed in
18921 # development snapshots of GCC prior to 3.0.
18922 case $host_os in
18923 aix4 | aix4.[01] | aix4.[01].*)
18924 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18925 echo ' yes '
18926 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18927 :
18928 else
18929 can_build_shared=no
18930 fi
18931 ;;
18932 esac
18933 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18934 # soname into executable. Probably we can add versioning support to
18935 # collect2, so additional links can be useful in future.
18936 if test "$aix_use_runtimelinking" = yes; then
18937 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18938 # instead of lib<name>.a to let people know that these are not
18939 # typical AIX shared libraries.
18940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18941 else
18942 # We preserve .a as extension for shared libraries through AIX4.2
18943 # and later when we are not doing run time linking.
18944 library_names_spec='${libname}${release}.a $libname.a'
18945 soname_spec='${libname}${release}${shared_ext}$major'
18946 fi
18947 shlibpath_var=LIBPATH
18948 fi
18949 ;;
18950
18951 amigaos*)
18952 library_names_spec='$libname.ixlibrary $libname.a'
18953 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18954 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'
18955 ;;
18956
18957 beos*)
18958 library_names_spec='${libname}${shared_ext}'
18959 dynamic_linker="$host_os ld.so"
18960 shlibpath_var=LIBRARY_PATH
18961 ;;
18962
18963 bsdi[45]*)
18964 version_type=linux
18965 need_version=no
18966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18967 soname_spec='${libname}${release}${shared_ext}$major'
18968 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18969 shlibpath_var=LD_LIBRARY_PATH
18970 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18971 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18972 # the default ld.so.conf also contains /usr/contrib/lib and
18973 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18974 # libtool to hard-code these into programs
18975 ;;
18976
18977 cygwin* | mingw* | pw32*)
18978 version_type=windows
18979 shrext_cmds=".dll"
18980 need_version=no
18981 need_lib_prefix=no
18982
18983 case $GCC,$host_os in
18984 yes,cygwin* | yes,mingw* | yes,pw32*)
18985 library_names_spec='$libname.dll.a'
18986 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18987 postinstall_cmds='base_file=`basename \${file}`~
18988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18989 dldir=$destdir/`dirname \$dlpath`~
18990 test -d \$dldir || mkdir -p \$dldir~
18991 $install_prog $dir/$dlname \$dldir/$dlname~
18992 chmod a+x \$dldir/$dlname'
18993 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18994 dlpath=$dir/\$dldll~
18995 $rm \$dlpath'
18996 shlibpath_overrides_runpath=yes
18997
18998 case $host_os in
18999 cygwin*)
19000 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19001 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19002 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19003 ;;
19004 mingw*)
19005 # MinGW DLLs use traditional 'lib' prefix
19006 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19007 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19008 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19009 # It is most probably a Windows format PATH printed by
19010 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19011 # path with ; separators, and with drive letters. We can handle the
19012 # drive letters (cygwin fileutils understands them), so leave them,
19013 # especially as we might pass files found there to a mingw objdump,
19014 # which wouldn't understand a cygwinified path. Ahh.
19015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19016 else
19017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19018 fi
19019 ;;
19020 pw32*)
19021 # pw32 DLLs use 'pw' prefix rather than 'lib'
19022 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19023 ;;
19024 esac
19025 ;;
19026
19027 *)
19028 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19029 ;;
19030 esac
19031 dynamic_linker='Win32 ld.exe'
19032 # FIXME: first we should search . and the directory the executable is in
19033 shlibpath_var=PATH
19034 ;;
19035
19036 darwin* | rhapsody*)
19037 dynamic_linker="$host_os dyld"
19038 version_type=darwin
19039 need_lib_prefix=no
19040 need_version=no
19041 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19042 soname_spec='${libname}${release}${major}$shared_ext'
19043 shlibpath_overrides_runpath=yes
19044 shlibpath_var=DYLD_LIBRARY_PATH
19045 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19046 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19047 if test "$GCC" = yes; then
19048 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"`
19049 else
19050 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19051 fi
19052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19053 ;;
19054
19055 dgux*)
19056 version_type=linux
19057 need_lib_prefix=no
19058 need_version=no
19059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19060 soname_spec='${libname}${release}${shared_ext}$major'
19061 shlibpath_var=LD_LIBRARY_PATH
19062 ;;
19063
19064 freebsd1*)
19065 dynamic_linker=no
19066 ;;
19067
19068 kfreebsd*-gnu)
19069 version_type=linux
19070 need_lib_prefix=no
19071 need_version=no
19072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19073 soname_spec='${libname}${release}${shared_ext}$major'
19074 shlibpath_var=LD_LIBRARY_PATH
19075 shlibpath_overrides_runpath=no
19076 hardcode_into_libs=yes
19077 dynamic_linker='GNU ld.so'
19078 ;;
19079
19080 freebsd* | dragonfly*)
19081 # DragonFly does not have aout. When/if they implement a new
19082 # versioning mechanism, adjust this.
19083 if test -x /usr/bin/objformat; then
19084 objformat=`/usr/bin/objformat`
19085 else
19086 case $host_os in
19087 freebsd[123]*) objformat=aout ;;
19088 *) objformat=elf ;;
19089 esac
19090 fi
19091 version_type=freebsd-$objformat
19092 case $version_type in
19093 freebsd-elf*)
19094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19095 need_version=no
19096 need_lib_prefix=no
19097 ;;
19098 freebsd-*)
19099 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19100 need_version=yes
19101 ;;
19102 esac
19103 shlibpath_var=LD_LIBRARY_PATH
19104 case $host_os in
19105 freebsd2*)
19106 shlibpath_overrides_runpath=yes
19107 ;;
19108 freebsd3.[01]* | freebsdelf3.[01]*)
19109 shlibpath_overrides_runpath=yes
19110 hardcode_into_libs=yes
19111 ;;
19112 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19113 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19114 shlibpath_overrides_runpath=no
19115 hardcode_into_libs=yes
19116 ;;
19117 freebsd*) # from 4.6 on
19118 shlibpath_overrides_runpath=yes
19119 hardcode_into_libs=yes
19120 ;;
19121 esac
19122 ;;
19123
19124 gnu*)
19125 version_type=linux
19126 need_lib_prefix=no
19127 need_version=no
19128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19129 soname_spec='${libname}${release}${shared_ext}$major'
19130 shlibpath_var=LD_LIBRARY_PATH
19131 hardcode_into_libs=yes
19132 ;;
19133
19134 hpux9* | hpux10* | hpux11*)
19135 # Give a soname corresponding to the major version so that dld.sl refuses to
19136 # link against other versions.
19137 version_type=sunos
19138 need_lib_prefix=no
19139 need_version=no
19140 case $host_cpu in
19141 ia64*)
19142 shrext_cmds='.so'
19143 hardcode_into_libs=yes
19144 dynamic_linker="$host_os dld.so"
19145 shlibpath_var=LD_LIBRARY_PATH
19146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19148 soname_spec='${libname}${release}${shared_ext}$major'
19149 if test "X$HPUX_IA64_MODE" = X32; then
19150 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19151 else
19152 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19153 fi
19154 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19155 ;;
19156 hppa*64*)
19157 shrext_cmds='.sl'
19158 hardcode_into_libs=yes
19159 dynamic_linker="$host_os dld.sl"
19160 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19163 soname_spec='${libname}${release}${shared_ext}$major'
19164 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19166 ;;
19167 *)
19168 shrext_cmds='.sl'
19169 dynamic_linker="$host_os dld.sl"
19170 shlibpath_var=SHLIB_PATH
19171 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19173 soname_spec='${libname}${release}${shared_ext}$major'
19174 ;;
19175 esac
19176 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19177 postinstall_cmds='chmod 555 $lib'
19178 ;;
19179
19180 interix3*)
19181 version_type=linux
19182 need_lib_prefix=no
19183 need_version=no
19184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19185 soname_spec='${libname}${release}${shared_ext}$major'
19186 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19187 shlibpath_var=LD_LIBRARY_PATH
19188 shlibpath_overrides_runpath=no
19189 hardcode_into_libs=yes
19190 ;;
19191
19192 irix5* | irix6* | nonstopux*)
19193 case $host_os in
19194 nonstopux*) version_type=nonstopux ;;
19195 *)
19196 if test "$lt_cv_prog_gnu_ld" = yes; then
19197 version_type=linux
19198 else
19199 version_type=irix
19200 fi ;;
19201 esac
19202 need_lib_prefix=no
19203 need_version=no
19204 soname_spec='${libname}${release}${shared_ext}$major'
19205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19206 case $host_os in
19207 irix5* | nonstopux*)
19208 libsuff= shlibsuff=
19209 ;;
19210 *)
19211 case $LD in # libtool.m4 will add one of these switches to LD
19212 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19213 libsuff= shlibsuff= libmagic=32-bit;;
19214 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19215 libsuff=32 shlibsuff=N32 libmagic=N32;;
19216 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19217 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19218 *) libsuff= shlibsuff= libmagic=never-match;;
19219 esac
19220 ;;
19221 esac
19222 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19223 shlibpath_overrides_runpath=no
19224 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19225 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19226 hardcode_into_libs=yes
19227 ;;
19228
19229 # No shared lib support for Linux oldld, aout, or coff.
19230 linux*oldld* | linux*aout* | linux*coff*)
19231 dynamic_linker=no
19232 ;;
19233
19234 # This must be Linux ELF.
19235 linux*)
19236 version_type=linux
19237 need_lib_prefix=no
19238 need_version=no
19239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19240 soname_spec='${libname}${release}${shared_ext}$major'
19241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19242 shlibpath_var=LD_LIBRARY_PATH
19243 shlibpath_overrides_runpath=no
19244 # This implies no fast_install, which is unacceptable.
19245 # Some rework will be needed to allow for fast_install
19246 # before this can be enabled.
19247 hardcode_into_libs=yes
19248
19249 # find out which ABI we are using
19250 libsuff=
19251 case "$host_cpu" in
19252 x86_64*|s390x*|powerpc64*)
19253 echo '#line 19253 "configure"' > conftest.$ac_ext
19254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19255 (eval $ac_compile) 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; then
19259 case `/usr/bin/file conftest.$ac_objext` in
19260 *64-bit*)
19261 libsuff=64
19262 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19263 ;;
19264 esac
19265 fi
19266 rm -rf conftest*
19267 ;;
19268 esac
19269
19270 # Append ld.so.conf contents to the search path
19271 if test -f /etc/ld.so.conf; then
19272 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19273 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19274 fi
19275
19276 # We used to test for /lib/ld.so.1 and disable shared libraries on
19277 # powerpc, because MkLinux only supported shared libraries with the
19278 # GNU dynamic linker. Since this was broken with cross compilers,
19279 # most powerpc-linux boxes support dynamic linking these days and
19280 # people can always --disable-shared, the test was removed, and we
19281 # assume the GNU/Linux dynamic linker is in use.
19282 dynamic_linker='GNU/Linux ld.so'
19283 ;;
19284
19285 knetbsd*-gnu)
19286 version_type=linux
19287 need_lib_prefix=no
19288 need_version=no
19289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19290 soname_spec='${libname}${release}${shared_ext}$major'
19291 shlibpath_var=LD_LIBRARY_PATH
19292 shlibpath_overrides_runpath=no
19293 hardcode_into_libs=yes
19294 dynamic_linker='GNU ld.so'
19295 ;;
19296
19297 netbsd*)
19298 version_type=sunos
19299 need_lib_prefix=no
19300 need_version=no
19301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19304 dynamic_linker='NetBSD (a.out) ld.so'
19305 else
19306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19307 soname_spec='${libname}${release}${shared_ext}$major'
19308 dynamic_linker='NetBSD ld.elf_so'
19309 fi
19310 shlibpath_var=LD_LIBRARY_PATH
19311 shlibpath_overrides_runpath=yes
19312 hardcode_into_libs=yes
19313 ;;
19314
19315 newsos6)
19316 version_type=linux
19317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19318 shlibpath_var=LD_LIBRARY_PATH
19319 shlibpath_overrides_runpath=yes
19320 ;;
19321
19322 nto-qnx*)
19323 version_type=linux
19324 need_lib_prefix=no
19325 need_version=no
19326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19327 soname_spec='${libname}${release}${shared_ext}$major'
19328 shlibpath_var=LD_LIBRARY_PATH
19329 shlibpath_overrides_runpath=yes
19330 ;;
19331
19332 openbsd*)
19333 version_type=sunos
19334 sys_lib_dlsearch_path_spec="/usr/lib"
19335 need_lib_prefix=no
19336 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19337 case $host_os in
19338 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19339 *) need_version=no ;;
19340 esac
19341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19343 shlibpath_var=LD_LIBRARY_PATH
19344 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19345 case $host_os in
19346 openbsd2.[89] | openbsd2.[89].*)
19347 shlibpath_overrides_runpath=no
19348 ;;
19349 *)
19350 shlibpath_overrides_runpath=yes
19351 ;;
19352 esac
19353 else
19354 shlibpath_overrides_runpath=yes
19355 fi
19356 ;;
19357
19358 os2*)
19359 libname_spec='$name'
19360 shrext_cmds=".dll"
19361 need_lib_prefix=no
19362 library_names_spec='$libname${shared_ext} $libname.a'
19363 dynamic_linker='OS/2 ld.exe'
19364 shlibpath_var=LIBPATH
19365 ;;
19366
19367 osf3* | osf4* | osf5*)
19368 version_type=osf
19369 need_lib_prefix=no
19370 need_version=no
19371 soname_spec='${libname}${release}${shared_ext}$major'
19372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19373 shlibpath_var=LD_LIBRARY_PATH
19374 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19375 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19376 ;;
19377
19378 solaris*)
19379 version_type=linux
19380 need_lib_prefix=no
19381 need_version=no
19382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19383 soname_spec='${libname}${release}${shared_ext}$major'
19384 shlibpath_var=LD_LIBRARY_PATH
19385 shlibpath_overrides_runpath=yes
19386 hardcode_into_libs=yes
19387 # ldd complains unless libraries are executable
19388 postinstall_cmds='chmod +x $lib'
19389 ;;
19390
19391 sunos4*)
19392 version_type=sunos
19393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19395 shlibpath_var=LD_LIBRARY_PATH
19396 shlibpath_overrides_runpath=yes
19397 if test "$with_gnu_ld" = yes; then
19398 need_lib_prefix=no
19399 fi
19400 need_version=yes
19401 ;;
19402
19403 sysv4 | sysv4.3*)
19404 version_type=linux
19405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19406 soname_spec='${libname}${release}${shared_ext}$major'
19407 shlibpath_var=LD_LIBRARY_PATH
19408 case $host_vendor in
19409 sni)
19410 shlibpath_overrides_runpath=no
19411 need_lib_prefix=no
19412 export_dynamic_flag_spec='${wl}-Blargedynsym'
19413 runpath_var=LD_RUN_PATH
19414 ;;
19415 siemens)
19416 need_lib_prefix=no
19417 ;;
19418 motorola)
19419 need_lib_prefix=no
19420 need_version=no
19421 shlibpath_overrides_runpath=no
19422 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19423 ;;
19424 esac
19425 ;;
19426
19427 sysv4*MP*)
19428 if test -d /usr/nec ;then
19429 version_type=linux
19430 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19431 soname_spec='$libname${shared_ext}.$major'
19432 shlibpath_var=LD_LIBRARY_PATH
19433 fi
19434 ;;
19435
19436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19437 version_type=freebsd-elf
19438 need_lib_prefix=no
19439 need_version=no
19440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19441 soname_spec='${libname}${release}${shared_ext}$major'
19442 shlibpath_var=LD_LIBRARY_PATH
19443 hardcode_into_libs=yes
19444 if test "$with_gnu_ld" = yes; then
19445 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19446 shlibpath_overrides_runpath=no
19447 else
19448 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19449 shlibpath_overrides_runpath=yes
19450 case $host_os in
19451 sco3.2v5*)
19452 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19453 ;;
19454 esac
19455 fi
19456 sys_lib_dlsearch_path_spec='/usr/lib'
19457 ;;
19458
19459 uts4*)
19460 version_type=linux
19461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19462 soname_spec='${libname}${release}${shared_ext}$major'
19463 shlibpath_var=LD_LIBRARY_PATH
19464 ;;
19465
19466 *)
19467 dynamic_linker=no
19468 ;;
19469 esac
19470 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19471 echo "${ECHO_T}$dynamic_linker" >&6; }
19472 test "$dynamic_linker" = no && can_build_shared=no
19473
19474 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19475 if test "$GCC" = yes; then
19476 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19477 fi
19478
19479 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19480 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19481 hardcode_action_GCJ=
19482 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19483 test -n "$runpath_var_GCJ" || \
19484 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19485
19486 # We can hardcode non-existant directories.
19487 if test "$hardcode_direct_GCJ" != no &&
19488 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19489 # have to relink, otherwise we might link with an installed library
19490 # when we should be linking with a yet-to-be-installed one
19491 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19492 test "$hardcode_minus_L_GCJ" != no; then
19493 # Linking always hardcodes the temporary library directory.
19494 hardcode_action_GCJ=relink
19495 else
19496 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19497 hardcode_action_GCJ=immediate
19498 fi
19499 else
19500 # We cannot hardcode anything, or else we can only hardcode existing
19501 # directories.
19502 hardcode_action_GCJ=unsupported
19503 fi
19504 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19505 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19506
19507 if test "$hardcode_action_GCJ" = relink; then
19508 # Fast installation is not supported
19509 enable_fast_install=no
19510 elif test "$shlibpath_overrides_runpath" = yes ||
19511 test "$enable_shared" = no; then
19512 # Fast installation is not necessary
19513 enable_fast_install=needless
19514 fi
19515
19516
19517 # The else clause should only fire when bootstrapping the
19518 # libtool distribution, otherwise you forgot to ship ltmain.sh
19519 # with your package, and you will get complaints that there are
19520 # no rules to generate ltmain.sh.
19521 if test -f "$ltmain"; then
19522 # See if we are running on zsh, and set the options which allow our commands through
19523 # without removal of \ escapes.
19524 if test -n "${ZSH_VERSION+set}" ; then
19525 setopt NO_GLOB_SUBST
19526 fi
19527 # Now quote all the things that may contain metacharacters while being
19528 # careful not to overquote the AC_SUBSTed values. We take copies of the
19529 # variables and quote the copies for generation of the libtool script.
19530 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19531 SED SHELL STRIP \
19532 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19533 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19534 deplibs_check_method reload_flag reload_cmds need_locks \
19535 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19536 lt_cv_sys_global_symbol_to_c_name_address \
19537 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19538 old_postinstall_cmds old_postuninstall_cmds \
19539 compiler_GCJ \
19540 CC_GCJ \
19541 LD_GCJ \
19542 lt_prog_compiler_wl_GCJ \
19543 lt_prog_compiler_pic_GCJ \
19544 lt_prog_compiler_static_GCJ \
19545 lt_prog_compiler_no_builtin_flag_GCJ \
19546 export_dynamic_flag_spec_GCJ \
19547 thread_safe_flag_spec_GCJ \
19548 whole_archive_flag_spec_GCJ \
19549 enable_shared_with_static_runtimes_GCJ \
19550 old_archive_cmds_GCJ \
19551 old_archive_from_new_cmds_GCJ \
19552 predep_objects_GCJ \
19553 postdep_objects_GCJ \
19554 predeps_GCJ \
19555 postdeps_GCJ \
19556 compiler_lib_search_path_GCJ \
19557 archive_cmds_GCJ \
19558 archive_expsym_cmds_GCJ \
19559 postinstall_cmds_GCJ \
19560 postuninstall_cmds_GCJ \
19561 old_archive_from_expsyms_cmds_GCJ \
19562 allow_undefined_flag_GCJ \
19563 no_undefined_flag_GCJ \
19564 export_symbols_cmds_GCJ \
19565 hardcode_libdir_flag_spec_GCJ \
19566 hardcode_libdir_flag_spec_ld_GCJ \
19567 hardcode_libdir_separator_GCJ \
19568 hardcode_automatic_GCJ \
19569 module_cmds_GCJ \
19570 module_expsym_cmds_GCJ \
19571 lt_cv_prog_compiler_c_o_GCJ \
19572 exclude_expsyms_GCJ \
19573 include_expsyms_GCJ; do
19574
19575 case $var in
19576 old_archive_cmds_GCJ | \
19577 old_archive_from_new_cmds_GCJ | \
19578 archive_cmds_GCJ | \
19579 archive_expsym_cmds_GCJ | \
19580 module_cmds_GCJ | \
19581 module_expsym_cmds_GCJ | \
19582 old_archive_from_expsyms_cmds_GCJ | \
19583 export_symbols_cmds_GCJ | \
19584 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19585 postinstall_cmds | postuninstall_cmds | \
19586 old_postinstall_cmds | old_postuninstall_cmds | \
19587 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19588 # Double-quote double-evaled strings.
19589 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19590 ;;
19591 *)
19592 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19593 ;;
19594 esac
19595 done
19596
19597 case $lt_echo in
19598 *'\$0 --fallback-echo"')
19599 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19600 ;;
19601 esac
19602
19603 cfgfile="$ofile"
19604
19605 cat <<__EOF__ >> "$cfgfile"
19606 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19607
19608 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19609
19610 # Shell to use when invoking shell scripts.
19611 SHELL=$lt_SHELL
19612
19613 # Whether or not to build shared libraries.
19614 build_libtool_libs=$enable_shared
19615
19616 # Whether or not to build static libraries.
19617 build_old_libs=$enable_static
19618
19619 # Whether or not to add -lc for building shared libraries.
19620 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19621
19622 # Whether or not to disallow shared libs when runtime libs are static
19623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19624
19625 # Whether or not to optimize for fast installation.
19626 fast_install=$enable_fast_install
19627
19628 # The host system.
19629 host_alias=$host_alias
19630 host=$host
19631 host_os=$host_os
19632
19633 # The build system.
19634 build_alias=$build_alias
19635 build=$build
19636 build_os=$build_os
19637
19638 # An echo program that does not interpret backslashes.
19639 echo=$lt_echo
19640
19641 # The archiver.
19642 AR=$lt_AR
19643 AR_FLAGS=$lt_AR_FLAGS
19644
19645 # A C compiler.
19646 LTCC=$lt_LTCC
19647
19648 # LTCC compiler flags.
19649 LTCFLAGS=$lt_LTCFLAGS
19650
19651 # A language-specific compiler.
19652 CC=$lt_compiler_GCJ
19653
19654 # Is the compiler the GNU C compiler?
19655 with_gcc=$GCC_GCJ
19656
19657 # An ERE matcher.
19658 EGREP=$lt_EGREP
19659
19660 # The linker used to build libraries.
19661 LD=$lt_LD_GCJ
19662
19663 # Whether we need hard or soft links.
19664 LN_S=$lt_LN_S
19665
19666 # A BSD-compatible nm program.
19667 NM=$lt_NM
19668
19669 # A symbol stripping program
19670 STRIP=$lt_STRIP
19671
19672 # Used to examine libraries when file_magic_cmd begins "file"
19673 MAGIC_CMD=$MAGIC_CMD
19674
19675 # Used on cygwin: DLL creation program.
19676 DLLTOOL="$DLLTOOL"
19677
19678 # Used on cygwin: object dumper.
19679 OBJDUMP="$OBJDUMP"
19680
19681 # Used on cygwin: assembler.
19682 AS="$AS"
19683
19684 # The name of the directory that contains temporary libtool files.
19685 objdir=$objdir
19686
19687 # How to create reloadable object files.
19688 reload_flag=$lt_reload_flag
19689 reload_cmds=$lt_reload_cmds
19690
19691 # How to pass a linker flag through the compiler.
19692 wl=$lt_lt_prog_compiler_wl_GCJ
19693
19694 # Object file suffix (normally "o").
19695 objext="$ac_objext"
19696
19697 # Old archive suffix (normally "a").
19698 libext="$libext"
19699
19700 # Shared library suffix (normally ".so").
19701 shrext_cmds='$shrext_cmds'
19702
19703 # Executable file suffix (normally "").
19704 exeext="$exeext"
19705
19706 # Additional compiler flags for building library objects.
19707 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19708 pic_mode=$pic_mode
19709
19710 # What is the maximum length of a command?
19711 max_cmd_len=$lt_cv_sys_max_cmd_len
19712
19713 # Does compiler simultaneously support -c and -o options?
19714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19715
19716 # Must we lock files when doing compilation?
19717 need_locks=$lt_need_locks
19718
19719 # Do we need the lib prefix for modules?
19720 need_lib_prefix=$need_lib_prefix
19721
19722 # Do we need a version for libraries?
19723 need_version=$need_version
19724
19725 # Whether dlopen is supported.
19726 dlopen_support=$enable_dlopen
19727
19728 # Whether dlopen of programs is supported.
19729 dlopen_self=$enable_dlopen_self
19730
19731 # Whether dlopen of statically linked programs is supported.
19732 dlopen_self_static=$enable_dlopen_self_static
19733
19734 # Compiler flag to prevent dynamic linking.
19735 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19736
19737 # Compiler flag to turn off builtin functions.
19738 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19739
19740 # Compiler flag to allow reflexive dlopens.
19741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19742
19743 # Compiler flag to generate shared objects directly from archives.
19744 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19745
19746 # Compiler flag to generate thread-safe objects.
19747 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19748
19749 # Library versioning type.
19750 version_type=$version_type
19751
19752 # Format of library name prefix.
19753 libname_spec=$lt_libname_spec
19754
19755 # List of archive names. First name is the real one, the rest are links.
19756 # The last name is the one that the linker finds with -lNAME.
19757 library_names_spec=$lt_library_names_spec
19758
19759 # The coded name of the library, if different from the real name.
19760 soname_spec=$lt_soname_spec
19761
19762 # Commands used to build and install an old-style archive.
19763 RANLIB=$lt_RANLIB
19764 old_archive_cmds=$lt_old_archive_cmds_GCJ
19765 old_postinstall_cmds=$lt_old_postinstall_cmds
19766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19767
19768 # Create an old-style archive from a shared archive.
19769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19770
19771 # Create a temporary old-style archive to link instead of a shared archive.
19772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19773
19774 # Commands used to build and install a shared archive.
19775 archive_cmds=$lt_archive_cmds_GCJ
19776 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19777 postinstall_cmds=$lt_postinstall_cmds
19778 postuninstall_cmds=$lt_postuninstall_cmds
19779
19780 # Commands used to build a loadable module (assumed same as above if empty)
19781 module_cmds=$lt_module_cmds_GCJ
19782 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19783
19784 # Commands to strip libraries.
19785 old_striplib=$lt_old_striplib
19786 striplib=$lt_striplib
19787
19788 # Dependencies to place before the objects being linked to create a
19789 # shared library.
19790 predep_objects=$lt_predep_objects_GCJ
19791
19792 # Dependencies to place after the objects being linked to create a
19793 # shared library.
19794 postdep_objects=$lt_postdep_objects_GCJ
19795
19796 # Dependencies to place before the objects being linked to create a
19797 # shared library.
19798 predeps=$lt_predeps_GCJ
19799
19800 # Dependencies to place after the objects being linked to create a
19801 # shared library.
19802 postdeps=$lt_postdeps_GCJ
19803
19804 # The library search path used internally by the compiler when linking
19805 # a shared library.
19806 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19807
19808 # Method to check whether dependent libraries are shared objects.
19809 deplibs_check_method=$lt_deplibs_check_method
19810
19811 # Command to use when deplibs_check_method == file_magic.
19812 file_magic_cmd=$lt_file_magic_cmd
19813
19814 # Flag that allows shared libraries with undefined symbols to be built.
19815 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19816
19817 # Flag that forces no undefined symbols.
19818 no_undefined_flag=$lt_no_undefined_flag_GCJ
19819
19820 # Commands used to finish a libtool library installation in a directory.
19821 finish_cmds=$lt_finish_cmds
19822
19823 # Same as above, but a single script fragment to be evaled but not shown.
19824 finish_eval=$lt_finish_eval
19825
19826 # Take the output of nm and produce a listing of raw symbols and C names.
19827 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19828
19829 # Transform the output of nm in a proper C declaration
19830 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19831
19832 # Transform the output of nm in a C name address pair
19833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19834
19835 # This is the shared library runtime path variable.
19836 runpath_var=$runpath_var
19837
19838 # This is the shared library path variable.
19839 shlibpath_var=$shlibpath_var
19840
19841 # Is shlibpath searched before the hard-coded library search path?
19842 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19843
19844 # How to hardcode a shared library path into an executable.
19845 hardcode_action=$hardcode_action_GCJ
19846
19847 # Whether we should hardcode library paths into libraries.
19848 hardcode_into_libs=$hardcode_into_libs
19849
19850 # Flag to hardcode \$libdir into a binary during linking.
19851 # This must work even if \$libdir does not exist.
19852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19853
19854 # If ld is used when linking, flag to hardcode \$libdir into
19855 # a binary during linking. This must work even if \$libdir does
19856 # not exist.
19857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19858
19859 # Whether we need a single -rpath flag with a separated argument.
19860 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19861
19862 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19863 # resulting binary.
19864 hardcode_direct=$hardcode_direct_GCJ
19865
19866 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19867 # resulting binary.
19868 hardcode_minus_L=$hardcode_minus_L_GCJ
19869
19870 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19871 # the resulting binary.
19872 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19873
19874 # Set to yes if building a shared library automatically hardcodes DIR into the library
19875 # and all subsequent libraries and executables linked against it.
19876 hardcode_automatic=$hardcode_automatic_GCJ
19877
19878 # Variables whose values should be saved in libtool wrapper scripts and
19879 # restored at relink time.
19880 variables_saved_for_relink="$variables_saved_for_relink"
19881
19882 # Whether libtool must link a program against all its dependency libraries.
19883 link_all_deplibs=$link_all_deplibs_GCJ
19884
19885 # Compile-time system search path for libraries
19886 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19887
19888 # Run-time system search path for libraries
19889 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19890
19891 # Fix the shell variable \$srcfile for the compiler.
19892 fix_srcfile_path="$fix_srcfile_path_GCJ"
19893
19894 # Set to yes if exported symbols are required.
19895 always_export_symbols=$always_export_symbols_GCJ
19896
19897 # The commands to list exported symbols.
19898 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19899
19900 # The commands to extract the exported symbol list from a shared archive.
19901 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19902
19903 # Symbols that should not be listed in the preloaded symbols.
19904 exclude_expsyms=$lt_exclude_expsyms_GCJ
19905
19906 # Symbols that must always be exported.
19907 include_expsyms=$lt_include_expsyms_GCJ
19908
19909 # ### END LIBTOOL TAG CONFIG: $tagname
19910
19911 __EOF__
19912
19913
19914 else
19915 # If there is no Makefile yet, we rely on a make rule to execute
19916 # `config.status --recheck' to rerun these tests and create the
19917 # libtool script then.
19918 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19919 if test -f "$ltmain_in"; then
19920 test -f Makefile && make "$ltmain"
19921 fi
19922 fi
19923
19924
19925 ac_ext=c
19926 ac_cpp='$CPP $CPPFLAGS'
19927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19930
19931 CC="$lt_save_CC"
19932
19933 else
19934 tagname=""
19935 fi
19936 ;;
19937
19938 RC)
19939
19940
19941 # Source file extension for RC test sources.
19942 ac_ext=rc
19943
19944 # Object file extension for compiled RC test sources.
19945 objext=o
19946 objext_RC=$objext
19947
19948 # Code to be used in simple compile tests
19949 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19950
19951 # Code to be used in simple link tests
19952 lt_simple_link_test_code="$lt_simple_compile_test_code"
19953
19954 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19955
19956 # If no C compiler was specified, use CC.
19957 LTCC=${LTCC-"$CC"}
19958
19959 # If no C compiler flags were specified, use CFLAGS.
19960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19961
19962 # Allow CC to be a program name with arguments.
19963 compiler=$CC
19964
19965
19966 # save warnings/boilerplate of simple test code
19967 ac_outfile=conftest.$ac_objext
19968 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19970 _lt_compiler_boilerplate=`cat conftest.err`
19971 $rm conftest*
19972
19973 ac_outfile=conftest.$ac_objext
19974 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19976 _lt_linker_boilerplate=`cat conftest.err`
19977 $rm conftest*
19978
19979
19980 # Allow CC to be a program name with arguments.
19981 lt_save_CC="$CC"
19982 CC=${RC-"windres"}
19983 compiler=$CC
19984 compiler_RC=$CC
19985 for cc_temp in $compiler""; do
19986 case $cc_temp in
19987 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19988 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19989 \-*) ;;
19990 *) break;;
19991 esac
19992 done
19993 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19994
19995 lt_cv_prog_compiler_c_o_RC=yes
19996
19997 # The else clause should only fire when bootstrapping the
19998 # libtool distribution, otherwise you forgot to ship ltmain.sh
19999 # with your package, and you will get complaints that there are
20000 # no rules to generate ltmain.sh.
20001 if test -f "$ltmain"; then
20002 # See if we are running on zsh, and set the options which allow our commands through
20003 # without removal of \ escapes.
20004 if test -n "${ZSH_VERSION+set}" ; then
20005 setopt NO_GLOB_SUBST
20006 fi
20007 # Now quote all the things that may contain metacharacters while being
20008 # careful not to overquote the AC_SUBSTed values. We take copies of the
20009 # variables and quote the copies for generation of the libtool script.
20010 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20011 SED SHELL STRIP \
20012 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20013 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20014 deplibs_check_method reload_flag reload_cmds need_locks \
20015 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20016 lt_cv_sys_global_symbol_to_c_name_address \
20017 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20018 old_postinstall_cmds old_postuninstall_cmds \
20019 compiler_RC \
20020 CC_RC \
20021 LD_RC \
20022 lt_prog_compiler_wl_RC \
20023 lt_prog_compiler_pic_RC \
20024 lt_prog_compiler_static_RC \
20025 lt_prog_compiler_no_builtin_flag_RC \
20026 export_dynamic_flag_spec_RC \
20027 thread_safe_flag_spec_RC \
20028 whole_archive_flag_spec_RC \
20029 enable_shared_with_static_runtimes_RC \
20030 old_archive_cmds_RC \
20031 old_archive_from_new_cmds_RC \
20032 predep_objects_RC \
20033 postdep_objects_RC \
20034 predeps_RC \
20035 postdeps_RC \
20036 compiler_lib_search_path_RC \
20037 archive_cmds_RC \
20038 archive_expsym_cmds_RC \
20039 postinstall_cmds_RC \
20040 postuninstall_cmds_RC \
20041 old_archive_from_expsyms_cmds_RC \
20042 allow_undefined_flag_RC \
20043 no_undefined_flag_RC \
20044 export_symbols_cmds_RC \
20045 hardcode_libdir_flag_spec_RC \
20046 hardcode_libdir_flag_spec_ld_RC \
20047 hardcode_libdir_separator_RC \
20048 hardcode_automatic_RC \
20049 module_cmds_RC \
20050 module_expsym_cmds_RC \
20051 lt_cv_prog_compiler_c_o_RC \
20052 exclude_expsyms_RC \
20053 include_expsyms_RC; do
20054
20055 case $var in
20056 old_archive_cmds_RC | \
20057 old_archive_from_new_cmds_RC | \
20058 archive_cmds_RC | \
20059 archive_expsym_cmds_RC | \
20060 module_cmds_RC | \
20061 module_expsym_cmds_RC | \
20062 old_archive_from_expsyms_cmds_RC | \
20063 export_symbols_cmds_RC | \
20064 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20065 postinstall_cmds | postuninstall_cmds | \
20066 old_postinstall_cmds | old_postuninstall_cmds | \
20067 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20068 # Double-quote double-evaled strings.
20069 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20070 ;;
20071 *)
20072 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20073 ;;
20074 esac
20075 done
20076
20077 case $lt_echo in
20078 *'\$0 --fallback-echo"')
20079 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20080 ;;
20081 esac
20082
20083 cfgfile="$ofile"
20084
20085 cat <<__EOF__ >> "$cfgfile"
20086 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20087
20088 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20089
20090 # Shell to use when invoking shell scripts.
20091 SHELL=$lt_SHELL
20092
20093 # Whether or not to build shared libraries.
20094 build_libtool_libs=$enable_shared
20095
20096 # Whether or not to build static libraries.
20097 build_old_libs=$enable_static
20098
20099 # Whether or not to add -lc for building shared libraries.
20100 build_libtool_need_lc=$archive_cmds_need_lc_RC
20101
20102 # Whether or not to disallow shared libs when runtime libs are static
20103 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20104
20105 # Whether or not to optimize for fast installation.
20106 fast_install=$enable_fast_install
20107
20108 # The host system.
20109 host_alias=$host_alias
20110 host=$host
20111 host_os=$host_os
20112
20113 # The build system.
20114 build_alias=$build_alias
20115 build=$build
20116 build_os=$build_os
20117
20118 # An echo program that does not interpret backslashes.
20119 echo=$lt_echo
20120
20121 # The archiver.
20122 AR=$lt_AR
20123 AR_FLAGS=$lt_AR_FLAGS
20124
20125 # A C compiler.
20126 LTCC=$lt_LTCC
20127
20128 # LTCC compiler flags.
20129 LTCFLAGS=$lt_LTCFLAGS
20130
20131 # A language-specific compiler.
20132 CC=$lt_compiler_RC
20133
20134 # Is the compiler the GNU C compiler?
20135 with_gcc=$GCC_RC
20136
20137 # An ERE matcher.
20138 EGREP=$lt_EGREP
20139
20140 # The linker used to build libraries.
20141 LD=$lt_LD_RC
20142
20143 # Whether we need hard or soft links.
20144 LN_S=$lt_LN_S
20145
20146 # A BSD-compatible nm program.
20147 NM=$lt_NM
20148
20149 # A symbol stripping program
20150 STRIP=$lt_STRIP
20151
20152 # Used to examine libraries when file_magic_cmd begins "file"
20153 MAGIC_CMD=$MAGIC_CMD
20154
20155 # Used on cygwin: DLL creation program.
20156 DLLTOOL="$DLLTOOL"
20157
20158 # Used on cygwin: object dumper.
20159 OBJDUMP="$OBJDUMP"
20160
20161 # Used on cygwin: assembler.
20162 AS="$AS"
20163
20164 # The name of the directory that contains temporary libtool files.
20165 objdir=$objdir
20166
20167 # How to create reloadable object files.
20168 reload_flag=$lt_reload_flag
20169 reload_cmds=$lt_reload_cmds
20170
20171 # How to pass a linker flag through the compiler.
20172 wl=$lt_lt_prog_compiler_wl_RC
20173
20174 # Object file suffix (normally "o").
20175 objext="$ac_objext"
20176
20177 # Old archive suffix (normally "a").
20178 libext="$libext"
20179
20180 # Shared library suffix (normally ".so").
20181 shrext_cmds='$shrext_cmds'
20182
20183 # Executable file suffix (normally "").
20184 exeext="$exeext"
20185
20186 # Additional compiler flags for building library objects.
20187 pic_flag=$lt_lt_prog_compiler_pic_RC
20188 pic_mode=$pic_mode
20189
20190 # What is the maximum length of a command?
20191 max_cmd_len=$lt_cv_sys_max_cmd_len
20192
20193 # Does compiler simultaneously support -c and -o options?
20194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20195
20196 # Must we lock files when doing compilation?
20197 need_locks=$lt_need_locks
20198
20199 # Do we need the lib prefix for modules?
20200 need_lib_prefix=$need_lib_prefix
20201
20202 # Do we need a version for libraries?
20203 need_version=$need_version
20204
20205 # Whether dlopen is supported.
20206 dlopen_support=$enable_dlopen
20207
20208 # Whether dlopen of programs is supported.
20209 dlopen_self=$enable_dlopen_self
20210
20211 # Whether dlopen of statically linked programs is supported.
20212 dlopen_self_static=$enable_dlopen_self_static
20213
20214 # Compiler flag to prevent dynamic linking.
20215 link_static_flag=$lt_lt_prog_compiler_static_RC
20216
20217 # Compiler flag to turn off builtin functions.
20218 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20219
20220 # Compiler flag to allow reflexive dlopens.
20221 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20222
20223 # Compiler flag to generate shared objects directly from archives.
20224 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20225
20226 # Compiler flag to generate thread-safe objects.
20227 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20228
20229 # Library versioning type.
20230 version_type=$version_type
20231
20232 # Format of library name prefix.
20233 libname_spec=$lt_libname_spec
20234
20235 # List of archive names. First name is the real one, the rest are links.
20236 # The last name is the one that the linker finds with -lNAME.
20237 library_names_spec=$lt_library_names_spec
20238
20239 # The coded name of the library, if different from the real name.
20240 soname_spec=$lt_soname_spec
20241
20242 # Commands used to build and install an old-style archive.
20243 RANLIB=$lt_RANLIB
20244 old_archive_cmds=$lt_old_archive_cmds_RC
20245 old_postinstall_cmds=$lt_old_postinstall_cmds
20246 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20247
20248 # Create an old-style archive from a shared archive.
20249 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20250
20251 # Create a temporary old-style archive to link instead of a shared archive.
20252 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20253
20254 # Commands used to build and install a shared archive.
20255 archive_cmds=$lt_archive_cmds_RC
20256 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20257 postinstall_cmds=$lt_postinstall_cmds
20258 postuninstall_cmds=$lt_postuninstall_cmds
20259
20260 # Commands used to build a loadable module (assumed same as above if empty)
20261 module_cmds=$lt_module_cmds_RC
20262 module_expsym_cmds=$lt_module_expsym_cmds_RC
20263
20264 # Commands to strip libraries.
20265 old_striplib=$lt_old_striplib
20266 striplib=$lt_striplib
20267
20268 # Dependencies to place before the objects being linked to create a
20269 # shared library.
20270 predep_objects=$lt_predep_objects_RC
20271
20272 # Dependencies to place after the objects being linked to create a
20273 # shared library.
20274 postdep_objects=$lt_postdep_objects_RC
20275
20276 # Dependencies to place before the objects being linked to create a
20277 # shared library.
20278 predeps=$lt_predeps_RC
20279
20280 # Dependencies to place after the objects being linked to create a
20281 # shared library.
20282 postdeps=$lt_postdeps_RC
20283
20284 # The library search path used internally by the compiler when linking
20285 # a shared library.
20286 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20287
20288 # Method to check whether dependent libraries are shared objects.
20289 deplibs_check_method=$lt_deplibs_check_method
20290
20291 # Command to use when deplibs_check_method == file_magic.
20292 file_magic_cmd=$lt_file_magic_cmd
20293
20294 # Flag that allows shared libraries with undefined symbols to be built.
20295 allow_undefined_flag=$lt_allow_undefined_flag_RC
20296
20297 # Flag that forces no undefined symbols.
20298 no_undefined_flag=$lt_no_undefined_flag_RC
20299
20300 # Commands used to finish a libtool library installation in a directory.
20301 finish_cmds=$lt_finish_cmds
20302
20303 # Same as above, but a single script fragment to be evaled but not shown.
20304 finish_eval=$lt_finish_eval
20305
20306 # Take the output of nm and produce a listing of raw symbols and C names.
20307 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20308
20309 # Transform the output of nm in a proper C declaration
20310 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20311
20312 # Transform the output of nm in a C name address pair
20313 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20314
20315 # This is the shared library runtime path variable.
20316 runpath_var=$runpath_var
20317
20318 # This is the shared library path variable.
20319 shlibpath_var=$shlibpath_var
20320
20321 # Is shlibpath searched before the hard-coded library search path?
20322 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20323
20324 # How to hardcode a shared library path into an executable.
20325 hardcode_action=$hardcode_action_RC
20326
20327 # Whether we should hardcode library paths into libraries.
20328 hardcode_into_libs=$hardcode_into_libs
20329
20330 # Flag to hardcode \$libdir into a binary during linking.
20331 # This must work even if \$libdir does not exist.
20332 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20333
20334 # If ld is used when linking, flag to hardcode \$libdir into
20335 # a binary during linking. This must work even if \$libdir does
20336 # not exist.
20337 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20338
20339 # Whether we need a single -rpath flag with a separated argument.
20340 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20341
20342 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20343 # resulting binary.
20344 hardcode_direct=$hardcode_direct_RC
20345
20346 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20347 # resulting binary.
20348 hardcode_minus_L=$hardcode_minus_L_RC
20349
20350 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20351 # the resulting binary.
20352 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20353
20354 # Set to yes if building a shared library automatically hardcodes DIR into the library
20355 # and all subsequent libraries and executables linked against it.
20356 hardcode_automatic=$hardcode_automatic_RC
20357
20358 # Variables whose values should be saved in libtool wrapper scripts and
20359 # restored at relink time.
20360 variables_saved_for_relink="$variables_saved_for_relink"
20361
20362 # Whether libtool must link a program against all its dependency libraries.
20363 link_all_deplibs=$link_all_deplibs_RC
20364
20365 # Compile-time system search path for libraries
20366 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20367
20368 # Run-time system search path for libraries
20369 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20370
20371 # Fix the shell variable \$srcfile for the compiler.
20372 fix_srcfile_path="$fix_srcfile_path_RC"
20373
20374 # Set to yes if exported symbols are required.
20375 always_export_symbols=$always_export_symbols_RC
20376
20377 # The commands to list exported symbols.
20378 export_symbols_cmds=$lt_export_symbols_cmds_RC
20379
20380 # The commands to extract the exported symbol list from a shared archive.
20381 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20382
20383 # Symbols that should not be listed in the preloaded symbols.
20384 exclude_expsyms=$lt_exclude_expsyms_RC
20385
20386 # Symbols that must always be exported.
20387 include_expsyms=$lt_include_expsyms_RC
20388
20389 # ### END LIBTOOL TAG CONFIG: $tagname
20390
20391 __EOF__
20392
20393
20394 else
20395 # If there is no Makefile yet, we rely on a make rule to execute
20396 # `config.status --recheck' to rerun these tests and create the
20397 # libtool script then.
20398 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20399 if test -f "$ltmain_in"; then
20400 test -f Makefile && make "$ltmain"
20401 fi
20402 fi
20403
20404
20405 ac_ext=c
20406 ac_cpp='$CPP $CPPFLAGS'
20407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20410
20411 CC="$lt_save_CC"
20412
20413 ;;
20414
20415 *)
20416 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20417 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20418 { (exit 1); exit 1; }; }
20419 ;;
20420 esac
20421
20422 # Append the new tag name to the list of available tags.
20423 if test -n "$tagname" ; then
20424 available_tags="$available_tags $tagname"
20425 fi
20426 fi
20427 done
20428 IFS="$lt_save_ifs"
20429
20430 # Now substitute the updated list of available tags.
20431 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20432 mv "${ofile}T" "$ofile"
20433 chmod +x "$ofile"
20434 else
20435 rm -f "${ofile}T"
20436 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20437 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20438 { (exit 1); exit 1; }; }
20439 fi
20440 fi
20441
20442
20443
20444 # This can be used to rebuild libtool when needed
20445 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20446
20447 # Always use our own libtool.
20448 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20449
20450 # Prevent multiple expansion
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472 if test "$PS" = "ps"
20473 then
20474 { { echo "$as_me:$LINENO: error: Cannot find pathname to ps" >&5
20475 echo "$as_me: error: Cannot find pathname to ps" >&2;}
20476 { (exit 1); exit 1; }; }
20477 fi
20478
20479 if test x$GXX = xyes
20480 then
20481 CFLAGS="-Wall $CFLAGS"
20482 fi
20483
20484 CFLAGS="-I.. -I$srcdir/.. $CFLAGS"
20485
20486
20487 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20488 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20489 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492 cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h. */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 #include <sys/types.h>
20499 #include <sys/wait.h>
20500 #ifndef WEXITSTATUS
20501 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20502 #endif
20503 #ifndef WIFEXITED
20504 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20505 #endif
20506
20507 int
20508 main ()
20509 {
20510 int s;
20511 wait (&s);
20512 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20513 ;
20514 return 0;
20515 }
20516 _ACEOF
20517 rm -f conftest.$ac_objext
20518 if { (ac_try="$ac_compile"
20519 case "(($ac_try" in
20520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521 *) ac_try_echo=$ac_try;;
20522 esac
20523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524 (eval "$ac_compile") 2>conftest.er1
20525 ac_status=$?
20526 grep -v '^ *+' conftest.er1 >conftest.err
20527 rm -f conftest.er1
20528 cat conftest.err >&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } && {
20531 test -z "$ac_c_werror_flag" ||
20532 test ! -s conftest.err
20533 } && test -s conftest.$ac_objext; then
20534 ac_cv_header_sys_wait_h=yes
20535 else
20536 echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20538
20539 ac_cv_header_sys_wait_h=no
20540 fi
20541
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20543 fi
20544 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20545 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20546 if test $ac_cv_header_sys_wait_h = yes; then
20547
20548 cat >>confdefs.h <<\_ACEOF
20549 #define HAVE_SYS_WAIT_H 1
20550 _ACEOF
20551
20552 fi
20553
20554
20555
20556 for ac_header in unistd.h fcntl.h
20557 do
20558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 fi
20565 ac_res=`eval echo '${'$as_ac_Header'}'`
20566 { echo "$as_me:$LINENO: result: $ac_res" >&5
20567 echo "${ECHO_T}$ac_res" >&6; }
20568 else
20569 # Is the header compilable?
20570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20572 cat >conftest.$ac_ext <<_ACEOF
20573 /* confdefs.h. */
20574 _ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20578 $ac_includes_default
20579 #include <$ac_header>
20580 _ACEOF
20581 rm -f conftest.$ac_objext
20582 if { (ac_try="$ac_compile"
20583 case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20586 esac
20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_compile") 2>conftest.er1
20589 ac_status=$?
20590 grep -v '^ *+' conftest.er1 >conftest.err
20591 rm -f conftest.er1
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } && {
20595 test -z "$ac_c_werror_flag" ||
20596 test ! -s conftest.err
20597 } && test -s conftest.$ac_objext; then
20598 ac_header_compiler=yes
20599 else
20600 echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20602
20603 ac_header_compiler=no
20604 fi
20605
20606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20608 echo "${ECHO_T}$ac_header_compiler" >&6; }
20609
20610 # Is the header present?
20611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20613 cat >conftest.$ac_ext <<_ACEOF
20614 /* confdefs.h. */
20615 _ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20619 #include <$ac_header>
20620 _ACEOF
20621 if { (ac_try="$ac_cpp conftest.$ac_ext"
20622 case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20625 esac
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20628 ac_status=$?
20629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } >/dev/null && {
20634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20635 test ! -s conftest.err
20636 }; then
20637 ac_header_preproc=yes
20638 else
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20641
20642 ac_header_preproc=no
20643 fi
20644
20645 rm -f conftest.err conftest.$ac_ext
20646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20647 echo "${ECHO_T}$ac_header_preproc" >&6; }
20648
20649 # So? What about this header?
20650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20651 yes:no: )
20652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20656 ac_header_preproc=yes
20657 ;;
20658 no:yes:* )
20659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20671 ( cat <<\_ASBOX
20672 ## -------------------------------------------------- ##
20673 ## Report this to courier-users@lists.sourceforge.net ##
20674 ## -------------------------------------------------- ##
20675 _ASBOX
20676 ) | sed "s/^/$as_me: WARNING: /" >&2
20677 ;;
20678 esac
20679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20682 echo $ECHO_N "(cached) $ECHO_C" >&6
20683 else
20684 eval "$as_ac_Header=\$ac_header_preproc"
20685 fi
20686 ac_res=`eval echo '${'$as_ac_Header'}'`
20687 { echo "$as_me:$LINENO: result: $ac_res" >&5
20688 echo "${ECHO_T}$ac_res" >&6; }
20689
20690 fi
20691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20692 cat >>confdefs.h <<_ACEOF
20693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20694 _ACEOF
20695
20696 fi
20697
20698 done
20699
20700
20701 { echo "$as_me:$LINENO: checking for pid_t" >&5
20702 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20703 if test "${ac_cv_type_pid_t+set}" = set; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20705 else
20706 cat >conftest.$ac_ext <<_ACEOF
20707 /* confdefs.h. */
20708 _ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h. */
20712 $ac_includes_default
20713 typedef pid_t ac__type_new_;
20714 int
20715 main ()
20716 {
20717 if ((ac__type_new_ *) 0)
20718 return 0;
20719 if (sizeof (ac__type_new_))
20720 return 0;
20721 ;
20722 return 0;
20723 }
20724 _ACEOF
20725 rm -f conftest.$ac_objext
20726 if { (ac_try="$ac_compile"
20727 case "(($ac_try" in
20728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729 *) ac_try_echo=$ac_try;;
20730 esac
20731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20732 (eval "$ac_compile") 2>conftest.er1
20733 ac_status=$?
20734 grep -v '^ *+' conftest.er1 >conftest.err
20735 rm -f conftest.er1
20736 cat conftest.err >&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } && {
20739 test -z "$ac_c_werror_flag" ||
20740 test ! -s conftest.err
20741 } && test -s conftest.$ac_objext; then
20742 ac_cv_type_pid_t=yes
20743 else
20744 echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20746
20747 ac_cv_type_pid_t=no
20748 fi
20749
20750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20751 fi
20752 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20753 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20754 if test $ac_cv_type_pid_t = yes; then
20755 :
20756 else
20757
20758 cat >>confdefs.h <<_ACEOF
20759 #define pid_t int
20760 _ACEOF
20761
20762 fi
20763
20764
20765
20766 # Check whether --with-random was given.
20767 if test "${with_random+set}" = set; then
20768 withval=$with_random; random="$withval"
20769 else
20770 random="y"
20771 fi
20772
20773
20774 case "$random" in
20775 /*)
20776 ;;
20777 y*|1*)
20778 { echo "$as_me:$LINENO: checking for random source" >&5
20779 echo $ECHO_N "checking for random source... $ECHO_C" >&6; }
20780 if test "${random_cv_RANDOM+set}" = set; then
20781 echo $ECHO_N "(cached) $ECHO_C" >&6
20782 else
20783 if test -c /dev/urandom
20784 then
20785 random_cv_RANDOM=/dev/urandom
20786 else
20787 if test -c /dev/random
20788 then
20789 random_cv_RANDOM=/dev/random
20790 else
20791 random_cv_RANDOM="none"
20792 fi
20793 fi
20794
20795 fi
20796 { echo "$as_me:$LINENO: result: $random_cv_RANDOM" >&5
20797 echo "${ECHO_T}$random_cv_RANDOM" >&6; }
20798 random="$random_cv_RANDOM"
20799 ;;
20800 *)
20801 random="none"
20802 ;;
20803 esac
20804
20805 if test "$random" != "none"
20806 then
20807
20808 cat >>confdefs.h <<_ACEOF
20809 #define RANDOM "$random"
20810 _ACEOF
20811
20812 fi
20813
20814 { echo "$as_me:$LINENO: checking for some good options for ps" >&5
20815 echo $ECHO_N "checking for some good options for ps... $ECHO_C" >&6; }
20816 if test "${random_cv_PS_OPTIONS+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819 for opts in -Afl -Afw -Af -Al -afl -afw -af -al Afl Afw Af Al afl afw af al
20820 do
20821 ps $opts >/dev/null 2>/dev/null || continue
20822 break
20823 done
20824 random_cv_PS_OPTIONS="$opts"
20825
20826 fi
20827 { echo "$as_me:$LINENO: result: $random_cv_PS_OPTIONS" >&5
20828 echo "${ECHO_T}$random_cv_PS_OPTIONS" >&6; }
20829
20830
20831 cat >>confdefs.h <<_ACEOF
20832 #define PS_OPTIONS "$random_cv_PS_OPTIONS"
20833 _ACEOF
20834
20835
20836 cat >>confdefs.h <<_ACEOF
20837 #define PS "$PS"
20838 _ACEOF
20839
20840
20841 if test "$W" != "w"
20842 then
20843
20844 cat >>confdefs.h <<_ACEOF
20845 #define W "$w"
20846 _ACEOF
20847
20848 fi
20849
20850 ac_config_files="$ac_config_files Makefile"
20851
20852 cat >confcache <<\_ACEOF
20853 # This file is a shell script that caches the results of configure
20854 # tests run on this system so they can be shared between configure
20855 # scripts and configure runs, see configure's option --config-cache.
20856 # It is not useful on other systems. If it contains results you don't
20857 # want to keep, you may remove or edit it.
20858 #
20859 # config.status only pays attention to the cache file if you give it
20860 # the --recheck option to rerun configure.
20861 #
20862 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20863 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20864 # following values.
20865
20866 _ACEOF
20867
20868 # The following way of writing the cache mishandles newlines in values,
20869 # but we know of no workaround that is simple, portable, and efficient.
20870 # So, we kill variables containing newlines.
20871 # Ultrix sh set writes to stderr and can't be redirected directly,
20872 # and sets the high bit in the cache file unless we assign to the vars.
20873 (
20874 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20875 eval ac_val=\$$ac_var
20876 case $ac_val in #(
20877 *${as_nl}*)
20878 case $ac_var in #(
20879 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20880 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20881 esac
20882 case $ac_var in #(
20883 _ | IFS | as_nl) ;; #(
20884 *) $as_unset $ac_var ;;
20885 esac ;;
20886 esac
20887 done
20888
20889 (set) 2>&1 |
20890 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20891 *${as_nl}ac_space=\ *)
20892 # `set' does not quote correctly, so add quotes (double-quote
20893 # substitution turns \\\\ into \\, and sed turns \\ into \).
20894 sed -n \
20895 "s/'/'\\\\''/g;
20896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20897 ;; #(
20898 *)
20899 # `set' quotes correctly as required by POSIX, so do not add quotes.
20900 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20901 ;;
20902 esac |
20903 sort
20904 ) |
20905 sed '
20906 /^ac_cv_env_/b end
20907 t clear
20908 :clear
20909 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20910 t end
20911 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20912 :end' >>confcache
20913 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20914 if test -w "$cache_file"; then
20915 test "x$cache_file" != "x/dev/null" &&
20916 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20917 echo "$as_me: updating cache $cache_file" >&6;}
20918 cat confcache >$cache_file
20919 else
20920 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20921 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20922 fi
20923 fi
20924 rm -f confcache
20925
20926 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20927 # Let make expand exec_prefix.
20928 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20929
20930 DEFS=-DHAVE_CONFIG_H
20931
20932 ac_libobjs=
20933 ac_ltlibobjs=
20934 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20935 # 1. Remove the extension, and $U if already installed.
20936 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20937 ac_i=`echo "$ac_i" | sed "$ac_script"`
20938 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20939 # will be set to the directory where LIBOBJS objects are built.
20940 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20941 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20942 done
20943 LIBOBJS=$ac_libobjs
20944
20945 LTLIBOBJS=$ac_ltlibobjs
20946
20947
20948 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20949 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20950 Usually this means the macro was only invoked conditionally." >&5
20951 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20952 Usually this means the macro was only invoked conditionally." >&2;}
20953 { (exit 1); exit 1; }; }
20954 fi
20955 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20956 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20957 Usually this means the macro was only invoked conditionally." >&5
20958 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20959 Usually this means the macro was only invoked conditionally." >&2;}
20960 { (exit 1); exit 1; }; }
20961 fi
20962 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20963 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20964 Usually this means the macro was only invoked conditionally." >&5
20965 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20966 Usually this means the macro was only invoked conditionally." >&2;}
20967 { (exit 1); exit 1; }; }
20968 fi
20969 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20970 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20971 Usually this means the macro was only invoked conditionally." >&5
20972 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20973 Usually this means the macro was only invoked conditionally." >&2;}
20974 { (exit 1); exit 1; }; }
20975 fi
20976
20977 : ${CONFIG_STATUS=./config.status}
20978 ac_clean_files_save=$ac_clean_files
20979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20980 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20981 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20982 cat >$CONFIG_STATUS <<_ACEOF
20983 #! $SHELL
20984 # Generated by $as_me.
20985 # Run this file to recreate the current configuration.
20986 # Compiler output produced by configure, useful for debugging
20987 # configure, is in config.log if it exists.
20988
20989 debug=false
20990 ac_cs_recheck=false
20991 ac_cs_silent=false
20992 SHELL=\${CONFIG_SHELL-$SHELL}
20993 _ACEOF
20994
20995 cat >>$CONFIG_STATUS <<\_ACEOF
20996 ## --------------------- ##
20997 ## M4sh Initialization. ##
20998 ## --------------------- ##
20999
21000 # Be more Bourne compatible
21001 DUALCASE=1; export DUALCASE # for MKS sh
21002 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21003 emulate sh
21004 NULLCMD=:
21005 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21006 # is contrary to our usage. Disable this feature.
21007 alias -g '${1+"$@"}'='"$@"'
21008 setopt NO_GLOB_SUBST
21009 else
21010 case `(set -o) 2>/dev/null` in
21011 *posix*) set -o posix ;;
21012 esac
21013
21014 fi
21015
21016
21017
21018
21019 # PATH needs CR
21020 # Avoid depending upon Character Ranges.
21021 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21022 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21023 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21024 as_cr_digits='0123456789'
21025 as_cr_alnum=$as_cr_Letters$as_cr_digits
21026
21027 # The user is always right.
21028 if test "${PATH_SEPARATOR+set}" != set; then
21029 echo "#! /bin/sh" >conf$$.sh
21030 echo "exit 0" >>conf$$.sh
21031 chmod +x conf$$.sh
21032 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21033 PATH_SEPARATOR=';'
21034 else
21035 PATH_SEPARATOR=:
21036 fi
21037 rm -f conf$$.sh
21038 fi
21039
21040 # Support unset when possible.
21041 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21042 as_unset=unset
21043 else
21044 as_unset=false
21045 fi
21046
21047
21048 # IFS
21049 # We need space, tab and new line, in precisely that order. Quoting is
21050 # there to prevent editors from complaining about space-tab.
21051 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21052 # splitting by setting IFS to empty value.)
21053 as_nl='
21054 '
21055 IFS=" "" $as_nl"
21056
21057 # Find who we are. Look in the path if we contain no directory separator.
21058 case $0 in
21059 *[\\/]* ) as_myself=$0 ;;
21060 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21061 for as_dir in $PATH
21062 do
21063 IFS=$as_save_IFS
21064 test -z "$as_dir" && as_dir=.
21065 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21066 done
21067 IFS=$as_save_IFS
21068
21069 ;;
21070 esac
21071 # We did not find ourselves, most probably we were run as `sh COMMAND'
21072 # in which case we are not to be found in the path.
21073 if test "x$as_myself" = x; then
21074 as_myself=$0
21075 fi
21076 if test ! -f "$as_myself"; then
21077 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21078 { (exit 1); exit 1; }
21079 fi
21080
21081 # Work around bugs in pre-3.0 UWIN ksh.
21082 for as_var in ENV MAIL MAILPATH
21083 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21084 done
21085 PS1='$ '
21086 PS2='> '
21087 PS4='+ '
21088
21089 # NLS nuisances.
21090 for as_var in \
21091 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21092 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21093 LC_TELEPHONE LC_TIME
21094 do
21095 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21096 eval $as_var=C; export $as_var
21097 else
21098 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21099 fi
21100 done
21101
21102 # Required to use basename.
21103 if expr a : '\(a\)' >/dev/null 2>&1 &&
21104 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21105 as_expr=expr
21106 else
21107 as_expr=false
21108 fi
21109
21110 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21111 as_basename=basename
21112 else
21113 as_basename=false
21114 fi
21115
21116
21117 # Name of the executable.
21118 as_me=`$as_basename -- "$0" ||
21119 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21120 X"$0" : 'X\(//\)$' \| \
21121 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21122 echo X/"$0" |
21123 sed '/^.*\/\([^/][^/]*\)\/*$/{
21124 s//\1/
21125 q
21126 }
21127 /^X\/\(\/\/\)$/{
21128 s//\1/
21129 q
21130 }
21131 /^X\/\(\/\).*/{
21132 s//\1/
21133 q
21134 }
21135 s/.*/./; q'`
21136
21137 # CDPATH.
21138 $as_unset CDPATH
21139
21140
21141
21142 as_lineno_1=$LINENO
21143 as_lineno_2=$LINENO
21144 test "x$as_lineno_1" != "x$as_lineno_2" &&
21145 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21146
21147 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21148 # uniformly replaced by the line number. The first 'sed' inserts a
21149 # line-number line after each line using $LINENO; the second 'sed'
21150 # does the real work. The second script uses 'N' to pair each
21151 # line-number line with the line containing $LINENO, and appends
21152 # trailing '-' during substitution so that $LINENO is not a special
21153 # case at line end.
21154 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21155 # scripts with optimization help from Paolo Bonzini. Blame Lee
21156 # E. McMahon (1931-1989) for sed's syntax. :-)
21157 sed -n '
21158 p
21159 /[$]LINENO/=
21160 ' <$as_myself |
21161 sed '
21162 s/[$]LINENO.*/&-/
21163 t lineno
21164 b
21165 :lineno
21166 N
21167 :loop
21168 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21169 t loop
21170 s/-\n.*//
21171 ' >$as_me.lineno &&
21172 chmod +x "$as_me.lineno" ||
21173 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21174 { (exit 1); exit 1; }; }
21175
21176 # Don't try to exec as it changes $[0], causing all sort of problems
21177 # (the dirname of $[0] is not the place where we might find the
21178 # original and so on. Autoconf is especially sensitive to this).
21179 . "./$as_me.lineno"
21180 # Exit status is that of the last command.
21181 exit
21182 }
21183
21184
21185 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21186 as_dirname=dirname
21187 else
21188 as_dirname=false
21189 fi
21190
21191 ECHO_C= ECHO_N= ECHO_T=
21192 case `echo -n x` in
21193 -n*)
21194 case `echo 'x\c'` in
21195 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21196 *) ECHO_C='\c';;
21197 esac;;
21198 *)
21199 ECHO_N='-n';;
21200 esac
21201
21202 if expr a : '\(a\)' >/dev/null 2>&1 &&
21203 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21204 as_expr=expr
21205 else
21206 as_expr=false
21207 fi
21208
21209 rm -f conf$$ conf$$.exe conf$$.file
21210 if test -d conf$$.dir; then
21211 rm -f conf$$.dir/conf$$.file
21212 else
21213 rm -f conf$$.dir
21214 mkdir conf$$.dir
21215 fi
21216 echo >conf$$.file
21217 if ln -s conf$$.file conf$$ 2>/dev/null; then
21218 as_ln_s='ln -s'
21219 # ... but there are two gotchas:
21220 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21221 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21222 # In both cases, we have to default to `cp -p'.
21223 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21224 as_ln_s='cp -p'
21225 elif ln conf$$.file conf$$ 2>/dev/null; then
21226 as_ln_s=ln
21227 else
21228 as_ln_s='cp -p'
21229 fi
21230 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21231 rmdir conf$$.dir 2>/dev/null
21232
21233 if mkdir -p . 2>/dev/null; then
21234 as_mkdir_p=:
21235 else
21236 test -d ./-p && rmdir ./-p
21237 as_mkdir_p=false
21238 fi
21239
21240 if test -x / >/dev/null 2>&1; then
21241 as_test_x='test -x'
21242 else
21243 if ls -dL / >/dev/null 2>&1; then
21244 as_ls_L_option=L
21245 else
21246 as_ls_L_option=
21247 fi
21248 as_test_x='
21249 eval sh -c '\''
21250 if test -d "$1"; then
21251 test -d "$1/.";
21252 else
21253 case $1 in
21254 -*)set "./$1";;
21255 esac;
21256 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21257 ???[sx]*):;;*)false;;esac;fi
21258 '\'' sh
21259 '
21260 fi
21261 as_executable_p=$as_test_x
21262
21263 # Sed expression to map a string onto a valid CPP name.
21264 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21265
21266 # Sed expression to map a string onto a valid variable name.
21267 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21268
21269
21270 exec 6>&1
21271
21272 # Save the log message, to keep $[0] and so on meaningful, and to
21273 # report actual input values of CONFIG_FILES etc. instead of their
21274 # values after options handling.
21275 ac_log="
21276 This file was extended by random128 $as_me 0.10, which was
21277 generated by GNU Autoconf 2.61. Invocation command line was
21278
21279 CONFIG_FILES = $CONFIG_FILES
21280 CONFIG_HEADERS = $CONFIG_HEADERS
21281 CONFIG_LINKS = $CONFIG_LINKS
21282 CONFIG_COMMANDS = $CONFIG_COMMANDS
21283 $ $0 $@
21284
21285 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21286 "
21287
21288 _ACEOF
21289
21290 cat >>$CONFIG_STATUS <<_ACEOF
21291 # Files that config.status was made for.
21292 config_files="$ac_config_files"
21293 config_headers="$ac_config_headers"
21294 config_commands="$ac_config_commands"
21295
21296 _ACEOF
21297
21298 cat >>$CONFIG_STATUS <<\_ACEOF
21299 ac_cs_usage="\
21300 \`$as_me' instantiates files from templates according to the
21301 current configuration.
21302
21303 Usage: $0 [OPTIONS] [FILE]...
21304
21305 -h, --help print this help, then exit
21306 -V, --version print version number and configuration settings, then exit
21307 -q, --quiet do not print progress messages
21308 -d, --debug don't remove temporary files
21309 --recheck update $as_me by reconfiguring in the same conditions
21310 --file=FILE[:TEMPLATE]
21311 instantiate the configuration file FILE
21312 --header=FILE[:TEMPLATE]
21313 instantiate the configuration header FILE
21314
21315 Configuration files:
21316 $config_files
21317
21318 Configuration headers:
21319 $config_headers
21320
21321 Configuration commands:
21322 $config_commands
21323
21324 Report bugs to <bug-autoconf@gnu.org>."
21325
21326 _ACEOF
21327 cat >>$CONFIG_STATUS <<_ACEOF
21328 ac_cs_version="\\
21329 random128 config.status 0.10
21330 configured by $0, generated by GNU Autoconf 2.61,
21331 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21332
21333 Copyright (C) 2006 Free Software Foundation, Inc.
21334 This config.status script is free software; the Free Software Foundation
21335 gives unlimited permission to copy, distribute and modify it."
21336
21337 ac_pwd='$ac_pwd'
21338 srcdir='$srcdir'
21339 INSTALL='$INSTALL'
21340 MKDIR_P='$MKDIR_P'
21341 _ACEOF
21342
21343 cat >>$CONFIG_STATUS <<\_ACEOF
21344 # If no file are specified by the user, then we need to provide default
21345 # value. By we need to know if files were specified by the user.
21346 ac_need_defaults=:
21347 while test $# != 0
21348 do
21349 case $1 in
21350 --*=*)
21351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21352 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21353 ac_shift=:
21354 ;;
21355 *)
21356 ac_option=$1
21357 ac_optarg=$2
21358 ac_shift=shift
21359 ;;
21360 esac
21361
21362 case $ac_option in
21363 # Handling of the options.
21364 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21365 ac_cs_recheck=: ;;
21366 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21367 echo "$ac_cs_version"; exit ;;
21368 --debug | --debu | --deb | --de | --d | -d )
21369 debug=: ;;
21370 --file | --fil | --fi | --f )
21371 $ac_shift
21372 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21373 ac_need_defaults=false;;
21374 --header | --heade | --head | --hea )
21375 $ac_shift
21376 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21377 ac_need_defaults=false;;
21378 --he | --h)
21379 # Conflict between --help and --header
21380 { echo "$as_me: error: ambiguous option: $1
21381 Try \`$0 --help' for more information." >&2
21382 { (exit 1); exit 1; }; };;
21383 --help | --hel | -h )
21384 echo "$ac_cs_usage"; exit ;;
21385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21386 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21387 ac_cs_silent=: ;;
21388
21389 # This is an error.
21390 -*) { echo "$as_me: error: unrecognized option: $1
21391 Try \`$0 --help' for more information." >&2
21392 { (exit 1); exit 1; }; } ;;
21393
21394 *) ac_config_targets="$ac_config_targets $1"
21395 ac_need_defaults=false ;;
21396
21397 esac
21398 shift
21399 done
21400
21401 ac_configure_extra_args=
21402
21403 if $ac_cs_silent; then
21404 exec 6>/dev/null
21405 ac_configure_extra_args="$ac_configure_extra_args --silent"
21406 fi
21407
21408 _ACEOF
21409 cat >>$CONFIG_STATUS <<_ACEOF
21410 if \$ac_cs_recheck; then
21411 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21412 CONFIG_SHELL=$SHELL
21413 export CONFIG_SHELL
21414 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21415 fi
21416
21417 _ACEOF
21418 cat >>$CONFIG_STATUS <<\_ACEOF
21419 exec 5>>config.log
21420 {
21421 echo
21422 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21423 ## Running $as_me. ##
21424 _ASBOX
21425 echo "$ac_log"
21426 } >&5
21427
21428 _ACEOF
21429 cat >>$CONFIG_STATUS <<_ACEOF
21430 #
21431 # INIT-COMMANDS
21432 #
21433 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21434
21435 _ACEOF
21436
21437 cat >>$CONFIG_STATUS <<\_ACEOF
21438
21439 # Handling of arguments.
21440 for ac_config_target in $ac_config_targets
21441 do
21442 case $ac_config_target in
21443 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21444 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21445 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21446
21447 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21448 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21449 { (exit 1); exit 1; }; };;
21450 esac
21451 done
21452
21453
21454 # If the user did not use the arguments to specify the items to instantiate,
21455 # then the envvar interface is used. Set only those that are not.
21456 # We use the long form for the default assignment because of an extremely
21457 # bizarre bug on SunOS 4.1.3.
21458 if $ac_need_defaults; then
21459 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21460 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21461 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21462 fi
21463
21464 # Have a temporary directory for convenience. Make it in the build tree
21465 # simply because there is no reason against having it here, and in addition,
21466 # creating and moving files from /tmp can sometimes cause problems.
21467 # Hook for its removal unless debugging.
21468 # Note that there is a small window in which the directory will not be cleaned:
21469 # after its creation but before its name has been assigned to `$tmp'.
21470 $debug ||
21471 {
21472 tmp=
21473 trap 'exit_status=$?
21474 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21475 ' 0
21476 trap '{ (exit 1); exit 1; }' 1 2 13 15
21477 }
21478 # Create a (secure) tmp directory for tmp files.
21479
21480 {
21481 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21482 test -n "$tmp" && test -d "$tmp"
21483 } ||
21484 {
21485 tmp=./conf$$-$RANDOM
21486 (umask 077 && mkdir "$tmp")
21487 } ||
21488 {
21489 echo "$me: cannot create a temporary directory in ." >&2
21490 { (exit 1); exit 1; }
21491 }
21492
21493 #
21494 # Set up the sed scripts for CONFIG_FILES section.
21495 #
21496
21497 # No need to generate the scripts if there are no CONFIG_FILES.
21498 # This happens for instance when ./config.status config.h
21499 if test -n "$CONFIG_FILES"; then
21500
21501 _ACEOF
21502
21503
21504
21505 ac_delim='%!_!# '
21506 for ac_last_try in false false false false false :; do
21507 cat >conf$$subs.sed <<_ACEOF
21508 SHELL!$SHELL$ac_delim
21509 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21510 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21511 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21512 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21513 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21514 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21515 exec_prefix!$exec_prefix$ac_delim
21516 prefix!$prefix$ac_delim
21517 program_transform_name!$program_transform_name$ac_delim
21518 bindir!$bindir$ac_delim
21519 sbindir!$sbindir$ac_delim
21520 libexecdir!$libexecdir$ac_delim
21521 datarootdir!$datarootdir$ac_delim
21522 datadir!$datadir$ac_delim
21523 sysconfdir!$sysconfdir$ac_delim
21524 sharedstatedir!$sharedstatedir$ac_delim
21525 localstatedir!$localstatedir$ac_delim
21526 includedir!$includedir$ac_delim
21527 oldincludedir!$oldincludedir$ac_delim
21528 docdir!$docdir$ac_delim
21529 infodir!$infodir$ac_delim
21530 htmldir!$htmldir$ac_delim
21531 dvidir!$dvidir$ac_delim
21532 pdfdir!$pdfdir$ac_delim
21533 psdir!$psdir$ac_delim
21534 libdir!$libdir$ac_delim
21535 localedir!$localedir$ac_delim
21536 mandir!$mandir$ac_delim
21537 DEFS!$DEFS$ac_delim
21538 ECHO_C!$ECHO_C$ac_delim
21539 ECHO_N!$ECHO_N$ac_delim
21540 ECHO_T!$ECHO_T$ac_delim
21541 LIBS!$LIBS$ac_delim
21542 build_alias!$build_alias$ac_delim
21543 host_alias!$host_alias$ac_delim
21544 target_alias!$target_alias$ac_delim
21545 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21546 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21547 INSTALL_DATA!$INSTALL_DATA$ac_delim
21548 am__isrc!$am__isrc$ac_delim
21549 CYGPATH_W!$CYGPATH_W$ac_delim
21550 PACKAGE!$PACKAGE$ac_delim
21551 VERSION!$VERSION$ac_delim
21552 ACLOCAL!$ACLOCAL$ac_delim
21553 AUTOCONF!$AUTOCONF$ac_delim
21554 AUTOMAKE!$AUTOMAKE$ac_delim
21555 AUTOHEADER!$AUTOHEADER$ac_delim
21556 MAKEINFO!$MAKEINFO$ac_delim
21557 install_sh!$install_sh$ac_delim
21558 STRIP!$STRIP$ac_delim
21559 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21560 mkdir_p!$mkdir_p$ac_delim
21561 AWK!$AWK$ac_delim
21562 SET_MAKE!$SET_MAKE$ac_delim
21563 am__leading_dot!$am__leading_dot$ac_delim
21564 AMTAR!$AMTAR$ac_delim
21565 am__tar!$am__tar$ac_delim
21566 am__untar!$am__untar$ac_delim
21567 CC!$CC$ac_delim
21568 CFLAGS!$CFLAGS$ac_delim
21569 LDFLAGS!$LDFLAGS$ac_delim
21570 CPPFLAGS!$CPPFLAGS$ac_delim
21571 ac_ct_CC!$ac_ct_CC$ac_delim
21572 EXEEXT!$EXEEXT$ac_delim
21573 OBJEXT!$OBJEXT$ac_delim
21574 DEPDIR!$DEPDIR$ac_delim
21575 am__include!$am__include$ac_delim
21576 am__quote!$am__quote$ac_delim
21577 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21578 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21579 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21580 CCDEPMODE!$CCDEPMODE$ac_delim
21581 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21582 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21583 CPP!$CPP$ac_delim
21584 GREP!$GREP$ac_delim
21585 EGREP!$EGREP$ac_delim
21586 LN_S!$LN_S$ac_delim
21587 PS!$PS$ac_delim
21588 W!$W$ac_delim
21589 build!$build$ac_delim
21590 build_cpu!$build_cpu$ac_delim
21591 build_vendor!$build_vendor$ac_delim
21592 build_os!$build_os$ac_delim
21593 host!$host$ac_delim
21594 host_cpu!$host_cpu$ac_delim
21595 host_vendor!$host_vendor$ac_delim
21596 host_os!$host_os$ac_delim
21597 SED!$SED$ac_delim
21598 ECHO!$ECHO$ac_delim
21599 AR!$AR$ac_delim
21600 RANLIB!$RANLIB$ac_delim
21601 CXX!$CXX$ac_delim
21602 CXXFLAGS!$CXXFLAGS$ac_delim
21603 ac_ct_CXX!$ac_ct_CXX$ac_delim
21604 CXXDEPMODE!$CXXDEPMODE$ac_delim
21605 _ACEOF
21606
21607 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21608 break
21609 elif $ac_last_try; then
21610 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21611 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21612 { (exit 1); exit 1; }; }
21613 else
21614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21615 fi
21616 done
21617
21618 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21619 if test -n "$ac_eof"; then
21620 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21621 ac_eof=`expr $ac_eof + 1`
21622 fi
21623
21624 cat >>$CONFIG_STATUS <<_ACEOF
21625 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21627 _ACEOF
21628 sed '
21629 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21630 s/^/s,@/; s/!/@,|#_!!_#|/
21631 :n
21632 t n
21633 s/'"$ac_delim"'$/,g/; t
21634 s/$/\\/; p
21635 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21636 ' >>$CONFIG_STATUS <conf$$subs.sed
21637 rm -f conf$$subs.sed
21638 cat >>$CONFIG_STATUS <<_ACEOF
21639 CEOF$ac_eof
21640 _ACEOF
21641
21642
21643 ac_delim='%!_!# '
21644 for ac_last_try in false false false false false :; do
21645 cat >conf$$subs.sed <<_ACEOF
21646 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21647 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21648 CXXCPP!$CXXCPP$ac_delim
21649 F77!$F77$ac_delim
21650 FFLAGS!$FFLAGS$ac_delim
21651 ac_ct_F77!$ac_ct_F77$ac_delim
21652 LIBTOOL!$LIBTOOL$ac_delim
21653 LIBOBJS!$LIBOBJS$ac_delim
21654 LTLIBOBJS!$LTLIBOBJS$ac_delim
21655 _ACEOF
21656
21657 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
21658 break
21659 elif $ac_last_try; then
21660 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21661 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21662 { (exit 1); exit 1; }; }
21663 else
21664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21665 fi
21666 done
21667
21668 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21669 if test -n "$ac_eof"; then
21670 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21671 ac_eof=`expr $ac_eof + 1`
21672 fi
21673
21674 cat >>$CONFIG_STATUS <<_ACEOF
21675 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21677 _ACEOF
21678 sed '
21679 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21680 s/^/s,@/; s/!/@,|#_!!_#|/
21681 :n
21682 t n
21683 s/'"$ac_delim"'$/,g/; t
21684 s/$/\\/; p
21685 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21686 ' >>$CONFIG_STATUS <conf$$subs.sed
21687 rm -f conf$$subs.sed
21688 cat >>$CONFIG_STATUS <<_ACEOF
21689 :end
21690 s/|#_!!_#|//g
21691 CEOF$ac_eof
21692 _ACEOF
21693
21694
21695 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21696 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21697 # trailing colons and then remove the whole line if VPATH becomes empty
21698 # (actually we leave an empty line to preserve line numbers).
21699 if test "x$srcdir" = x.; then
21700 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21701 s/:*\$(srcdir):*/:/
21702 s/:*\${srcdir}:*/:/
21703 s/:*@srcdir@:*/:/
21704 s/^\([^=]*=[ ]*\):*/\1/
21705 s/:*$//
21706 s/^[^=]*=[ ]*$//
21707 }'
21708 fi
21709
21710 cat >>$CONFIG_STATUS <<\_ACEOF
21711 fi # test -n "$CONFIG_FILES"
21712
21713
21714 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21715 do
21716 case $ac_tag in
21717 :[FHLC]) ac_mode=$ac_tag; continue;;
21718 esac
21719 case $ac_mode$ac_tag in
21720 :[FHL]*:*);;
21721 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21722 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21723 { (exit 1); exit 1; }; };;
21724 :[FH]-) ac_tag=-:-;;
21725 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21726 esac
21727 ac_save_IFS=$IFS
21728 IFS=:
21729 set x $ac_tag
21730 IFS=$ac_save_IFS
21731 shift
21732 ac_file=$1
21733 shift
21734
21735 case $ac_mode in
21736 :L) ac_source=$1;;
21737 :[FH])
21738 ac_file_inputs=
21739 for ac_f
21740 do
21741 case $ac_f in
21742 -) ac_f="$tmp/stdin";;
21743 *) # Look for the file first in the build tree, then in the source tree
21744 # (if the path is not absolute). The absolute path cannot be DOS-style,
21745 # because $ac_f cannot contain `:'.
21746 test -f "$ac_f" ||
21747 case $ac_f in
21748 [\\/$]*) false;;
21749 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21750 esac ||
21751 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21752 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21753 { (exit 1); exit 1; }; };;
21754 esac
21755 ac_file_inputs="$ac_file_inputs $ac_f"
21756 done
21757
21758 # Let's still pretend it is `configure' which instantiates (i.e., don't
21759 # use $as_me), people would be surprised to read:
21760 # /* config.h. Generated by config.status. */
21761 configure_input="Generated from "`IFS=:
21762 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21763 if test x"$ac_file" != x-; then
21764 configure_input="$ac_file. $configure_input"
21765 { echo "$as_me:$LINENO: creating $ac_file" >&5
21766 echo "$as_me: creating $ac_file" >&6;}
21767 fi
21768
21769 case $ac_tag in
21770 *:-:* | *:-) cat >"$tmp/stdin";;
21771 esac
21772 ;;
21773 esac
21774
21775 ac_dir=`$as_dirname -- "$ac_file" ||
21776 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21777 X"$ac_file" : 'X\(//\)[^/]' \| \
21778 X"$ac_file" : 'X\(//\)$' \| \
21779 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21780 echo X"$ac_file" |
21781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21782 s//\1/
21783 q
21784 }
21785 /^X\(\/\/\)[^/].*/{
21786 s//\1/
21787 q
21788 }
21789 /^X\(\/\/\)$/{
21790 s//\1/
21791 q
21792 }
21793 /^X\(\/\).*/{
21794 s//\1/
21795 q
21796 }
21797 s/.*/./; q'`
21798 { as_dir="$ac_dir"
21799 case $as_dir in #(
21800 -*) as_dir=./$as_dir;;
21801 esac
21802 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21803 as_dirs=
21804 while :; do
21805 case $as_dir in #(
21806 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21807 *) as_qdir=$as_dir;;
21808 esac
21809 as_dirs="'$as_qdir' $as_dirs"
21810 as_dir=`$as_dirname -- "$as_dir" ||
21811 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21812 X"$as_dir" : 'X\(//\)[^/]' \| \
21813 X"$as_dir" : 'X\(//\)$' \| \
21814 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21815 echo X"$as_dir" |
21816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21817 s//\1/
21818 q
21819 }
21820 /^X\(\/\/\)[^/].*/{
21821 s//\1/
21822 q
21823 }
21824 /^X\(\/\/\)$/{
21825 s//\1/
21826 q
21827 }
21828 /^X\(\/\).*/{
21829 s//\1/
21830 q
21831 }
21832 s/.*/./; q'`
21833 test -d "$as_dir" && break
21834 done
21835 test -z "$as_dirs" || eval "mkdir $as_dirs"
21836 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21837 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21838 { (exit 1); exit 1; }; }; }
21839 ac_builddir=.
21840
21841 case "$ac_dir" in
21842 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21843 *)
21844 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21845 # A ".." for each directory in $ac_dir_suffix.
21846 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21847 case $ac_top_builddir_sub in
21848 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21849 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21850 esac ;;
21851 esac
21852 ac_abs_top_builddir=$ac_pwd
21853 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21854 # for backward compatibility:
21855 ac_top_builddir=$ac_top_build_prefix
21856
21857 case $srcdir in
21858 .) # We are building in place.
21859 ac_srcdir=.
21860 ac_top_srcdir=$ac_top_builddir_sub
21861 ac_abs_top_srcdir=$ac_pwd ;;
21862 [\\/]* | ?:[\\/]* ) # Absolute name.
21863 ac_srcdir=$srcdir$ac_dir_suffix;
21864 ac_top_srcdir=$srcdir
21865 ac_abs_top_srcdir=$srcdir ;;
21866 *) # Relative name.
21867 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21868 ac_top_srcdir=$ac_top_build_prefix$srcdir
21869 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21870 esac
21871 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21872
21873
21874 case $ac_mode in
21875 :F)
21876 #
21877 # CONFIG_FILE
21878 #
21879
21880 case $INSTALL in
21881 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21882 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21883 esac
21884 ac_MKDIR_P=$MKDIR_P
21885 case $MKDIR_P in
21886 [\\/$]* | ?:[\\/]* ) ;;
21887 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21888 esac
21889 _ACEOF
21890
21891 cat >>$CONFIG_STATUS <<\_ACEOF
21892 # If the template does not know about datarootdir, expand it.
21893 # FIXME: This hack should be removed a few years after 2.60.
21894 ac_datarootdir_hack=; ac_datarootdir_seen=
21895
21896 case `sed -n '/datarootdir/ {
21897 p
21898 q
21899 }
21900 /@datadir@/p
21901 /@docdir@/p
21902 /@infodir@/p
21903 /@localedir@/p
21904 /@mandir@/p
21905 ' $ac_file_inputs` in
21906 *datarootdir*) ac_datarootdir_seen=yes;;
21907 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21908 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21909 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21910 _ACEOF
21911 cat >>$CONFIG_STATUS <<_ACEOF
21912 ac_datarootdir_hack='
21913 s&@datadir@&$datadir&g
21914 s&@docdir@&$docdir&g
21915 s&@infodir@&$infodir&g
21916 s&@localedir@&$localedir&g
21917 s&@mandir@&$mandir&g
21918 s&\\\${datarootdir}&$datarootdir&g' ;;
21919 esac
21920 _ACEOF
21921
21922 # Neutralize VPATH when `$srcdir' = `.'.
21923 # Shell code in configure.ac might set extrasub.
21924 # FIXME: do we really want to maintain this feature?
21925 cat >>$CONFIG_STATUS <<_ACEOF
21926 sed "$ac_vpsub
21927 $extrasub
21928 _ACEOF
21929 cat >>$CONFIG_STATUS <<\_ACEOF
21930 :t
21931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21932 s&@configure_input@&$configure_input&;t t
21933 s&@top_builddir@&$ac_top_builddir_sub&;t t
21934 s&@srcdir@&$ac_srcdir&;t t
21935 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21936 s&@top_srcdir@&$ac_top_srcdir&;t t
21937 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21938 s&@builddir@&$ac_builddir&;t t
21939 s&@abs_builddir@&$ac_abs_builddir&;t t
21940 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21941 s&@INSTALL@&$ac_INSTALL&;t t
21942 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21943 $ac_datarootdir_hack
21944 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21945
21946 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21947 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21948 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21949 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21950 which seems to be undefined. Please make sure it is defined." >&5
21951 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21952 which seems to be undefined. Please make sure it is defined." >&2;}
21953
21954 rm -f "$tmp/stdin"
21955 case $ac_file in
21956 -) cat "$tmp/out"; rm -f "$tmp/out";;
21957 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21958 esac
21959 ;;
21960 :H)
21961 #
21962 # CONFIG_HEADER
21963 #
21964 _ACEOF
21965
21966 # Transform confdefs.h into a sed script `conftest.defines', that
21967 # substitutes the proper values into config.h.in to produce config.h.
21968 rm -f conftest.defines conftest.tail
21969 # First, append a space to every undef/define line, to ease matching.
21970 echo 's/$/ /' >conftest.defines
21971 # Then, protect against being on the right side of a sed subst, or in
21972 # an unquoted here document, in config.status. If some macros were
21973 # called several times there might be several #defines for the same
21974 # symbol, which is useless. But do not sort them, since the last
21975 # AC_DEFINE must be honored.
21976 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21977 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21978 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21979 # PARAMS is the parameter list in the macro definition--in most cases, it's
21980 # just an empty string.
21981 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21982 ac_dB='\\)[ (].*,\\1define\\2'
21983 ac_dC=' '
21984 ac_dD=' ,'
21985
21986 uniq confdefs.h |
21987 sed -n '
21988 t rset
21989 :rset
21990 s/^[ ]*#[ ]*define[ ][ ]*//
21991 t ok
21992 d
21993 :ok
21994 s/[\\&,]/\\&/g
21995 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21996 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21997 ' >>conftest.defines
21998
21999 # Remove the space that was appended to ease matching.
22000 # Then replace #undef with comments. This is necessary, for
22001 # example, in the case of _POSIX_SOURCE, which is predefined and required
22002 # on some systems where configure will not decide to define it.
22003 # (The regexp can be short, since the line contains either #define or #undef.)
22004 echo 's/ $//
22005 s,^[ #]*u.*,/* & */,' >>conftest.defines
22006
22007 # Break up conftest.defines:
22008 ac_max_sed_lines=50
22009
22010 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22011 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22012 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22013 # et cetera.
22014 ac_in='$ac_file_inputs'
22015 ac_out='"$tmp/out1"'
22016 ac_nxt='"$tmp/out2"'
22017
22018 while :
22019 do
22020 # Write a here document:
22021 cat >>$CONFIG_STATUS <<_ACEOF
22022 # First, check the format of the line:
22023 cat >"\$tmp/defines.sed" <<\\CEOF
22024 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22025 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22026 b
22027 :def
22028 _ACEOF
22029 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22030 echo 'CEOF
22031 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22032 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22033 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22034 grep . conftest.tail >/dev/null || break
22035 rm -f conftest.defines
22036 mv conftest.tail conftest.defines
22037 done
22038 rm -f conftest.defines conftest.tail
22039
22040 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22041 cat >>$CONFIG_STATUS <<\_ACEOF
22042 if test x"$ac_file" != x-; then
22043 echo "/* $configure_input */" >"$tmp/config.h"
22044 cat "$ac_result" >>"$tmp/config.h"
22045 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22046 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22047 echo "$as_me: $ac_file is unchanged" >&6;}
22048 else
22049 rm -f $ac_file
22050 mv "$tmp/config.h" $ac_file
22051 fi
22052 else
22053 echo "/* $configure_input */"
22054 cat "$ac_result"
22055 fi
22056 rm -f "$tmp/out12"
22057 # Compute $ac_file's index in $config_headers.
22058 _am_stamp_count=1
22059 for _am_header in $config_headers :; do
22060 case $_am_header in
22061 $ac_file | $ac_file:* )
22062 break ;;
22063 * )
22064 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22065 esac
22066 done
22067 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22068 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22069 X$ac_file : 'X\(//\)[^/]' \| \
22070 X$ac_file : 'X\(//\)$' \| \
22071 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22072 echo X$ac_file |
22073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22074 s//\1/
22075 q
22076 }
22077 /^X\(\/\/\)[^/].*/{
22078 s//\1/
22079 q
22080 }
22081 /^X\(\/\/\)$/{
22082 s//\1/
22083 q
22084 }
22085 /^X\(\/\).*/{
22086 s//\1/
22087 q
22088 }
22089 s/.*/./; q'`/stamp-h$_am_stamp_count
22090 ;;
22091
22092 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22093 echo "$as_me: executing $ac_file commands" >&6;}
22094 ;;
22095 esac
22096
22097
22098 case $ac_file$ac_mode in
22099 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22100 # Strip MF so we end up with the name of the file.
22101 mf=`echo "$mf" | sed -e 's/:.*$//'`
22102 # Check whether this is an Automake generated Makefile or not.
22103 # We used to match only the files named `Makefile.in', but
22104 # some people rename them; so instead we look at the file content.
22105 # Grep'ing the first line is not enough: some people post-process
22106 # each Makefile.in and add a new line on top of each file to say so.
22107 # Grep'ing the whole file is not good either: AIX grep has a line
22108 # limit of 2048, but all sed's we know have understand at least 4000.
22109 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22110 dirpart=`$as_dirname -- "$mf" ||
22111 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22112 X"$mf" : 'X\(//\)[^/]' \| \
22113 X"$mf" : 'X\(//\)$' \| \
22114 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22115 echo X"$mf" |
22116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22117 s//\1/
22118 q
22119 }
22120 /^X\(\/\/\)[^/].*/{
22121 s//\1/
22122 q
22123 }
22124 /^X\(\/\/\)$/{
22125 s//\1/
22126 q
22127 }
22128 /^X\(\/\).*/{
22129 s//\1/
22130 q
22131 }
22132 s/.*/./; q'`
22133 else
22134 continue
22135 fi
22136 # Extract the definition of DEPDIR, am__include, and am__quote
22137 # from the Makefile without running `make'.
22138 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22139 test -z "$DEPDIR" && continue
22140 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22141 test -z "am__include" && continue
22142 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22143 # When using ansi2knr, U may be empty or an underscore; expand it
22144 U=`sed -n 's/^U = //p' < "$mf"`
22145 # Find all dependency output files, they are included files with
22146 # $(DEPDIR) in their names. We invoke sed twice because it is the
22147 # simplest approach to changing $(DEPDIR) to its actual value in the
22148 # expansion.
22149 for file in `sed -n "
22150 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22151 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22152 # Make sure the directory exists.
22153 test -f "$dirpart/$file" && continue
22154 fdir=`$as_dirname -- "$file" ||
22155 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22156 X"$file" : 'X\(//\)[^/]' \| \
22157 X"$file" : 'X\(//\)$' \| \
22158 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22159 echo X"$file" |
22160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22161 s//\1/
22162 q
22163 }
22164 /^X\(\/\/\)[^/].*/{
22165 s//\1/
22166 q
22167 }
22168 /^X\(\/\/\)$/{
22169 s//\1/
22170 q
22171 }
22172 /^X\(\/\).*/{
22173 s//\1/
22174 q
22175 }
22176 s/.*/./; q'`
22177 { as_dir=$dirpart/$fdir
22178 case $as_dir in #(
22179 -*) as_dir=./$as_dir;;
22180 esac
22181 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22182 as_dirs=
22183 while :; do
22184 case $as_dir in #(
22185 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22186 *) as_qdir=$as_dir;;
22187 esac
22188 as_dirs="'$as_qdir' $as_dirs"
22189 as_dir=`$as_dirname -- "$as_dir" ||
22190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22191 X"$as_dir" : 'X\(//\)[^/]' \| \
22192 X"$as_dir" : 'X\(//\)$' \| \
22193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22194 echo X"$as_dir" |
22195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22196 s//\1/
22197 q
22198 }
22199 /^X\(\/\/\)[^/].*/{
22200 s//\1/
22201 q
22202 }
22203 /^X\(\/\/\)$/{
22204 s//\1/
22205 q
22206 }
22207 /^X\(\/\).*/{
22208 s//\1/
22209 q
22210 }
22211 s/.*/./; q'`
22212 test -d "$as_dir" && break
22213 done
22214 test -z "$as_dirs" || eval "mkdir $as_dirs"
22215 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22216 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22217 { (exit 1); exit 1; }; }; }
22218 # echo "creating $dirpart/$file"
22219 echo '# dummy' > "$dirpart/$file"
22220 done
22221 done
22222 ;;
22223
22224 esac
22225 done # for ac_tag
22226
22227
22228 { (exit 0); exit 0; }
22229 _ACEOF
22230 chmod +x $CONFIG_STATUS
22231 ac_clean_files=$ac_clean_files_save
22232
22233
22234 # configure is writing to config.log, and then calls config.status.
22235 # config.status does its own redirection, appending to config.log.
22236 # Unfortunately, on DOS this fails, as config.log is still kept open
22237 # by configure, so config.status won't be able to write to it; its
22238 # output is simply discarded. So we exec the FD to /dev/null,
22239 # effectively closing config.log, so it can be properly (re)opened and
22240 # appended to by config.status. When coming back to configure, we
22241 # need to make the FD available again.
22242 if test "$no_create" != yes; then
22243 ac_cs_success=:
22244 ac_config_status_args=
22245 test "$silent" = yes &&
22246 ac_config_status_args="$ac_config_status_args --quiet"
22247 exec 5>/dev/null
22248 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22249 exec 5>>config.log
22250 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22251 # would make configure fail if this is the last instruction.
22252 $ac_cs_success || { (exit 1); exit 1; }
22253 fi
22254