Imported upstream version 0.60.1
[hcoop/debian/courier-authlib.git] / md5 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libmd5 1.21.
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='libmd5'
730 PACKAGE_TARNAME='libmd5'
731 PACKAGE_VERSION='1.21'
732 PACKAGE_STRING='libmd5 1.21'
733 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735 ac_unique_file="hmac.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 HMACC_TRUE
832 HMACC_FALSE
833 LN_S
834 CC
835 CFLAGS
836 LDFLAGS
837 CPPFLAGS
838 ac_ct_CC
839 EXEEXT
840 OBJEXT
841 DEPDIR
842 am__include
843 am__quote
844 AMDEP_TRUE
845 AMDEP_FALSE
846 AMDEPBACKSLASH
847 CCDEPMODE
848 am__fastdepCC_TRUE
849 am__fastdepCC_FALSE
850 build
851 build_cpu
852 build_vendor
853 build_os
854 host
855 host_cpu
856 host_vendor
857 host_os
858 SED
859 GREP
860 EGREP
861 ECHO
862 AR
863 RANLIB
864 CPP
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 libmd5 1.21 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/libmd5]
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 libmd5 1.21:";;
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-int32='type' use 'type' for an unsigned 32 bit integer type
1489 ( default is 'unsigned')
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 libmd5 configure 1.21
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 libmd5 $as_me 1.21, 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 ac_config_headers="$ac_config_headers config.h"
1942
1943 am__api_version='1.10'
1944
1945 ac_aux_dir=
1946 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1947 if test -f "$ac_dir/install-sh"; then
1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install-sh -c"
1950 break
1951 elif test -f "$ac_dir/install.sh"; then
1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/install.sh -c"
1954 break
1955 elif test -f "$ac_dir/shtool"; then
1956 ac_aux_dir=$ac_dir
1957 ac_install_sh="$ac_aux_dir/shtool install -c"
1958 break
1959 fi
1960 done
1961 if test -z "$ac_aux_dir"; then
1962 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1963 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1964 { (exit 1); exit 1; }; }
1965 fi
1966
1967 # These three variables are undocumented and unsupported,
1968 # and are intended to be withdrawn in a future Autoconf release.
1969 # They can cause serious problems if a builder's source tree is in a directory
1970 # whose full name contains unusual characters.
1971 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1972 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1973 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1974
1975
1976 # Find a good install program. We prefer a C program (faster),
1977 # so one script is as good as another. But avoid the broken or
1978 # incompatible versions:
1979 # SysV /etc/install, /usr/sbin/install
1980 # SunOS /usr/etc/install
1981 # IRIX /sbin/install
1982 # AIX /bin/install
1983 # AmigaOS /C/install, which installs bootblocks on floppy discs
1984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1987 # OS/2's system install, which has a completely different semantic
1988 # ./install, which can be erroneously created by make from ./install.sh.
1989 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1991 if test -z "$INSTALL"; then
1992 if test "${ac_cv_path_install+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 # Account for people who put trailing slashes in PATH elements.
2001 case $as_dir/ in
2002 ./ | .// | /cC/* | \
2003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2005 /usr/ucb/* ) ;;
2006 *)
2007 # OSF1 and SCO ODT 3.0 have their own names for install.
2008 # Don't use installbsd from OSF since it installs stuff as root
2009 # by default.
2010 for ac_prog in ginstall scoinst install; do
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2013 if test $ac_prog = install &&
2014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # AIX install. It has an incompatible calling convention.
2016 :
2017 elif test $ac_prog = install &&
2018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # program-specific install script used by HP pwplus--don't use.
2020 :
2021 else
2022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2023 break 3
2024 fi
2025 fi
2026 done
2027 done
2028 ;;
2029 esac
2030 done
2031 IFS=$as_save_IFS
2032
2033
2034 fi
2035 if test "${ac_cv_path_install+set}" = set; then
2036 INSTALL=$ac_cv_path_install
2037 else
2038 # As a last resort, use the slow shell script. Don't cache a
2039 # value for INSTALL within a source directory, because that will
2040 # break other packages using the cache if that directory is
2041 # removed, or if the value is a relative name.
2042 INSTALL=$ac_install_sh
2043 fi
2044 fi
2045 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2046 echo "${ECHO_T}$INSTALL" >&6; }
2047
2048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2049 # It thinks the first close brace ends the variable substitution.
2050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2051
2052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2053
2054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2055
2056 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2057 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2058 # Just in case
2059 sleep 1
2060 echo timestamp > conftest.file
2061 # Do `set' in a subshell so we don't clobber the current shell's
2062 # arguments. Must try -L first in case configure is actually a
2063 # symlink; some systems play weird games with the mod time of symlinks
2064 # (eg FreeBSD returns the mod time of the symlink's containing
2065 # directory).
2066 if (
2067 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2068 if test "$*" = "X"; then
2069 # -L didn't work.
2070 set X `ls -t $srcdir/configure conftest.file`
2071 fi
2072 rm -f conftest.file
2073 if test "$*" != "X $srcdir/configure conftest.file" \
2074 && test "$*" != "X conftest.file $srcdir/configure"; then
2075
2076 # If neither matched, then we have a broken ls. This can happen
2077 # if, for instance, CONFIG_SHELL is bash and it inherits a
2078 # broken ls alias from the environment. This has actually
2079 # happened. Such a system could not be considered "sane".
2080 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2081 alias in your environment" >&5
2082 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2083 alias in your environment" >&2;}
2084 { (exit 1); exit 1; }; }
2085 fi
2086
2087 test "$2" = conftest.file
2088 )
2089 then
2090 # Ok.
2091 :
2092 else
2093 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2094 Check your system clock" >&5
2095 echo "$as_me: error: newly created file is older than distributed files!
2096 Check your system clock" >&2;}
2097 { (exit 1); exit 1; }; }
2098 fi
2099 { echo "$as_me:$LINENO: result: yes" >&5
2100 echo "${ECHO_T}yes" >&6; }
2101 test "$program_prefix" != NONE &&
2102 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2103 # Use a double $ so make ignores it.
2104 test "$program_suffix" != NONE &&
2105 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2106 # Double any \ or $. echo might interpret backslashes.
2107 # By default was `s,x,x', remove it if useless.
2108 cat <<\_ACEOF >conftest.sed
2109 s/[\\$]/&&/g;s/;s,x,x,$//
2110 _ACEOF
2111 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2112 rm -f conftest.sed
2113
2114 # expand $ac_aux_dir to an absolute path
2115 am_aux_dir=`cd $ac_aux_dir && pwd`
2116
2117 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2118 # Use eval to expand $SHELL
2119 if eval "$MISSING --run true"; then
2120 am_missing_run="$MISSING --run "
2121 else
2122 am_missing_run=
2123 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2124 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2125 fi
2126
2127 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2128 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2129 if test -z "$MKDIR_P"; then
2130 if test "${ac_cv_path_mkdir+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2135 do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 for ac_prog in mkdir gmkdir; do
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2141 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2142 'mkdir (GNU coreutils) '* | \
2143 'mkdir (coreutils) '* | \
2144 'mkdir (fileutils) '4.1*)
2145 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2146 break 3;;
2147 esac
2148 done
2149 done
2150 done
2151 IFS=$as_save_IFS
2152
2153 fi
2154
2155 if test "${ac_cv_path_mkdir+set}" = set; then
2156 MKDIR_P="$ac_cv_path_mkdir -p"
2157 else
2158 # As a last resort, use the slow shell script. Don't cache a
2159 # value for MKDIR_P within a source directory, because that will
2160 # break other packages using the cache if that directory is
2161 # removed, or if the value is a relative name.
2162 test -d ./--version && rmdir ./--version
2163 MKDIR_P="$ac_install_sh -d"
2164 fi
2165 fi
2166 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2167 echo "${ECHO_T}$MKDIR_P" >&6; }
2168
2169 mkdir_p="$MKDIR_P"
2170 case $mkdir_p in
2171 [\\/$]* | ?:[\\/]*) ;;
2172 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2173 esac
2174
2175 for ac_prog in gawk mawk nawk awk
2176 do
2177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2178 set dummy $ac_prog; ac_word=$2
2179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2181 if test "${ac_cv_prog_AWK+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184 if test -n "$AWK"; then
2185 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2186 else
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 for as_dir in $PATH
2189 do
2190 IFS=$as_save_IFS
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2194 ac_cv_prog_AWK="$ac_prog"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2197 fi
2198 done
2199 done
2200 IFS=$as_save_IFS
2201
2202 fi
2203 fi
2204 AWK=$ac_cv_prog_AWK
2205 if test -n "$AWK"; then
2206 { echo "$as_me:$LINENO: result: $AWK" >&5
2207 echo "${ECHO_T}$AWK" >&6; }
2208 else
2209 { echo "$as_me:$LINENO: result: no" >&5
2210 echo "${ECHO_T}no" >&6; }
2211 fi
2212
2213
2214 test -n "$AWK" && break
2215 done
2216
2217 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2218 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2219 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2220 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223 cat >conftest.make <<\_ACEOF
2224 SHELL = /bin/sh
2225 all:
2226 @echo '@@@%%%=$(MAKE)=@@@%%%'
2227 _ACEOF
2228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2229 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2230 *@@@%%%=?*=@@@%%%*)
2231 eval ac_cv_prog_make_${ac_make}_set=yes;;
2232 *)
2233 eval ac_cv_prog_make_${ac_make}_set=no;;
2234 esac
2235 rm -f conftest.make
2236 fi
2237 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2238 { echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6; }
2240 SET_MAKE=
2241 else
2242 { echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6; }
2244 SET_MAKE="MAKE=${MAKE-make}"
2245 fi
2246
2247 rm -rf .tst 2>/dev/null
2248 mkdir .tst 2>/dev/null
2249 if test -d .tst; then
2250 am__leading_dot=.
2251 else
2252 am__leading_dot=_
2253 fi
2254 rmdir .tst 2>/dev/null
2255
2256 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2257 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2258 # is not polluted with repeated "-I."
2259 am__isrc=' -I$(srcdir)'
2260 # test to see if srcdir already configured
2261 if test -f $srcdir/config.status; then
2262 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2263 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2264 { (exit 1); exit 1; }; }
2265 fi
2266 fi
2267
2268 # test whether we have cygpath
2269 if test -z "$CYGPATH_W"; then
2270 if (cygpath --version) >/dev/null 2>/dev/null; then
2271 CYGPATH_W='cygpath -w'
2272 else
2273 CYGPATH_W=echo
2274 fi
2275 fi
2276
2277
2278 # Define the identity of the package.
2279 PACKAGE='libmd5'
2280 VERSION='1.21'
2281
2282
2283 # Some tools Automake needs.
2284
2285 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2286
2287
2288 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2289
2290
2291 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2292
2293
2294 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2295
2296
2297 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2298
2299 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2300
2301 # Installed binaries are usually stripped using `strip' when the user
2302 # run `make install-strip'. However `strip' might not be the right
2303 # tool to use in cross-compilation environments, therefore Automake
2304 # will honor the `STRIP' environment variable to overrule this program.
2305 if test "$cross_compiling" != no; then
2306 if test -n "$ac_tool_prefix"; then
2307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2308 set dummy ${ac_tool_prefix}strip; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_STRIP+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314 if test -n "$STRIP"; then
2315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328 done
2329 done
2330 IFS=$as_save_IFS
2331
2332 fi
2333 fi
2334 STRIP=$ac_cv_prog_STRIP
2335 if test -n "$STRIP"; then
2336 { echo "$as_me:$LINENO: result: $STRIP" >&5
2337 echo "${ECHO_T}$STRIP" >&6; }
2338 else
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2341 fi
2342
2343
2344 fi
2345 if test -z "$ac_cv_prog_STRIP"; then
2346 ac_ct_STRIP=$STRIP
2347 # Extract the first word of "strip", so it can be a program name with args.
2348 set dummy strip; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354 if test -n "$ac_ct_STRIP"; then
2355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_ac_ct_STRIP="strip"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368 done
2369 done
2370 IFS=$as_save_IFS
2371
2372 fi
2373 fi
2374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2375 if test -n "$ac_ct_STRIP"; then
2376 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2377 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2378 else
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2381 fi
2382
2383 if test "x$ac_ct_STRIP" = x; then
2384 STRIP=":"
2385 else
2386 case $cross_compiling:$ac_tool_warned in
2387 yes:)
2388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2389 whose name does not start with the host triplet. If you think this
2390 configuration is useful to you, please write to autoconf@gnu.org." >&5
2391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2392 whose name does not start with the host triplet. If you think this
2393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2394 ac_tool_warned=yes ;;
2395 esac
2396 STRIP=$ac_ct_STRIP
2397 fi
2398 else
2399 STRIP="$ac_cv_prog_STRIP"
2400 fi
2401
2402 fi
2403 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2404
2405 # We need awk for the "check" target. The system "awk" is bad on
2406 # some platforms.
2407 # Always define AMTAR for backward compatibility.
2408
2409 AMTAR=${AMTAR-"${am_missing_run}tar"}
2410
2411 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2412
2413
2414
2415
2416
2417
2418 if test -d ${srcdir}/../libhmac; then
2419 HMACC_TRUE=
2420 HMACC_FALSE='#'
2421 else
2422 HMACC_TRUE='#'
2423 HMACC_FALSE=
2424 fi
2425
2426
2427 for ac_prog in gawk mawk nawk awk
2428 do
2429 # Extract the first word of "$ac_prog", so it can be a program name with args.
2430 set dummy $ac_prog; ac_word=$2
2431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433 if test "${ac_cv_prog_AWK+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436 if test -n "$AWK"; then
2437 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_AWK="$ac_prog"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450 done
2451 done
2452 IFS=$as_save_IFS
2453
2454 fi
2455 fi
2456 AWK=$ac_cv_prog_AWK
2457 if test -n "$AWK"; then
2458 { echo "$as_me:$LINENO: result: $AWK" >&5
2459 echo "${ECHO_T}$AWK" >&6; }
2460 else
2461 { echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6; }
2463 fi
2464
2465
2466 test -n "$AWK" && break
2467 done
2468
2469 # Find a good install program. We prefer a C program (faster),
2470 # so one script is as good as another. But avoid the broken or
2471 # incompatible versions:
2472 # SysV /etc/install, /usr/sbin/install
2473 # SunOS /usr/etc/install
2474 # IRIX /sbin/install
2475 # AIX /bin/install
2476 # AmigaOS /C/install, which installs bootblocks on floppy discs
2477 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2478 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2479 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2480 # OS/2's system install, which has a completely different semantic
2481 # ./install, which can be erroneously created by make from ./install.sh.
2482 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2483 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2484 if test -z "$INSTALL"; then
2485 if test "${ac_cv_path_install+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 # Account for people who put trailing slashes in PATH elements.
2494 case $as_dir/ in
2495 ./ | .// | /cC/* | \
2496 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2497 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2498 /usr/ucb/* ) ;;
2499 *)
2500 # OSF1 and SCO ODT 3.0 have their own names for install.
2501 # Don't use installbsd from OSF since it installs stuff as root
2502 # by default.
2503 for ac_prog in ginstall scoinst install; do
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2506 if test $ac_prog = install &&
2507 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2508 # AIX install. It has an incompatible calling convention.
2509 :
2510 elif test $ac_prog = install &&
2511 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512 # program-specific install script used by HP pwplus--don't use.
2513 :
2514 else
2515 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2516 break 3
2517 fi
2518 fi
2519 done
2520 done
2521 ;;
2522 esac
2523 done
2524 IFS=$as_save_IFS
2525
2526
2527 fi
2528 if test "${ac_cv_path_install+set}" = set; then
2529 INSTALL=$ac_cv_path_install
2530 else
2531 # As a last resort, use the slow shell script. Don't cache a
2532 # value for INSTALL within a source directory, because that will
2533 # break other packages using the cache if that directory is
2534 # removed, or if the value is a relative name.
2535 INSTALL=$ac_install_sh
2536 fi
2537 fi
2538 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2539 echo "${ECHO_T}$INSTALL" >&6; }
2540
2541 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2542 # It thinks the first close brace ends the variable substitution.
2543 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2544
2545 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2546
2547 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2548
2549 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2550 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2551 LN_S=$as_ln_s
2552 if test "$LN_S" = "ln -s"; then
2553 { echo "$as_me:$LINENO: result: yes" >&5
2554 echo "${ECHO_T}yes" >&6; }
2555 else
2556 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2557 echo "${ECHO_T}no, using $LN_S" >&6; }
2558 fi
2559
2560 ac_ext=c
2561 ac_cpp='$CPP $CPPFLAGS'
2562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2565 if test -n "$ac_tool_prefix"; then
2566 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2567 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570 if test "${ac_cv_prog_CC+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC="$CC" # Let the user override the test.
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 break 2
2586 fi
2587 done
2588 done
2589 IFS=$as_save_IFS
2590
2591 fi
2592 fi
2593 CC=$ac_cv_prog_CC
2594 if test -n "$CC"; then
2595 { echo "$as_me:$LINENO: result: $CC" >&5
2596 echo "${ECHO_T}$CC" >&6; }
2597 else
2598 { echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6; }
2600 fi
2601
2602
2603 fi
2604 if test -z "$ac_cv_prog_CC"; then
2605 ac_ct_CC=$CC
2606 # Extract the first word of "gcc", so it can be a program name with args.
2607 set dummy gcc; ac_word=$2
2608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 if test -n "$ac_ct_CC"; then
2614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_ac_ct_CC="gcc"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 fi
2632 fi
2633 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2634 if test -n "$ac_ct_CC"; then
2635 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2636 echo "${ECHO_T}$ac_ct_CC" >&6; }
2637 else
2638 { echo "$as_me:$LINENO: result: no" >&5
2639 echo "${ECHO_T}no" >&6; }
2640 fi
2641
2642 if test "x$ac_ct_CC" = x; then
2643 CC=""
2644 else
2645 case $cross_compiling:$ac_tool_warned in
2646 yes:)
2647 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2648 whose name does not start with the host triplet. If you think this
2649 configuration is useful to you, please write to autoconf@gnu.org." >&5
2650 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2651 whose name does not start with the host triplet. If you think this
2652 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2653 ac_tool_warned=yes ;;
2654 esac
2655 CC=$ac_ct_CC
2656 fi
2657 else
2658 CC="$ac_cv_prog_CC"
2659 fi
2660
2661 if test -z "$CC"; then
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}cc; ac_word=$2
2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_CC="${ac_tool_prefix}cc"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 CC=$ac_cv_prog_CC
2691 if test -n "$CC"; then
2692 { echo "$as_me:$LINENO: result: $CC" >&5
2693 echo "${ECHO_T}$CC" >&6; }
2694 else
2695 { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2697 fi
2698
2699
2700 fi
2701 fi
2702 if test -z "$CC"; then
2703 # Extract the first word of "cc", so it can be a program name with args.
2704 set dummy cc; ac_word=$2
2705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_CC+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 if test -n "$CC"; then
2711 ac_cv_prog_CC="$CC" # Let the user override the test.
2712 else
2713 ac_prog_rejected=no
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2722 ac_prog_rejected=yes
2723 continue
2724 fi
2725 ac_cv_prog_CC="cc"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729 done
2730 done
2731 IFS=$as_save_IFS
2732
2733 if test $ac_prog_rejected = yes; then
2734 # We found a bogon in the path, so make sure we never use it.
2735 set dummy $ac_cv_prog_CC
2736 shift
2737 if test $# != 0; then
2738 # We chose a different compiler from the bogus one.
2739 # However, it has the same basename, so the bogon will be chosen
2740 # first if we set CC to just the basename; use the full file name.
2741 shift
2742 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2743 fi
2744 fi
2745 fi
2746 fi
2747 CC=$ac_cv_prog_CC
2748 if test -n "$CC"; then
2749 { echo "$as_me:$LINENO: result: $CC" >&5
2750 echo "${ECHO_T}$CC" >&6; }
2751 else
2752 { echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6; }
2754 fi
2755
2756
2757 fi
2758 if test -z "$CC"; then
2759 if test -n "$ac_tool_prefix"; then
2760 for ac_prog in cl.exe
2761 do
2762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2766 if test "${ac_cv_prog_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791 { echo "$as_me:$LINENO: result: $CC" >&5
2792 echo "${ECHO_T}$CC" >&6; }
2793 else
2794 { echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6; }
2796 fi
2797
2798
2799 test -n "$CC" && break
2800 done
2801 fi
2802 if test -z "$CC"; then
2803 ac_ct_CC=$CC
2804 for ac_prog in cl.exe
2805 do
2806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2807 set dummy $ac_prog; ac_word=$2
2808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813 if test -n "$ac_ct_CC"; then
2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_ac_ct_CC="$ac_prog"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2834 if test -n "$ac_ct_CC"; then
2835 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2836 echo "${ECHO_T}$ac_ct_CC" >&6; }
2837 else
2838 { echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6; }
2840 fi
2841
2842
2843 test -n "$ac_ct_CC" && break
2844 done
2845
2846 if test "x$ac_ct_CC" = x; then
2847 CC=""
2848 else
2849 case $cross_compiling:$ac_tool_warned in
2850 yes:)
2851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2852 whose name does not start with the host triplet. If you think this
2853 configuration is useful to you, please write to autoconf@gnu.org." >&5
2854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2855 whose name does not start with the host triplet. If you think this
2856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2857 ac_tool_warned=yes ;;
2858 esac
2859 CC=$ac_ct_CC
2860 fi
2861 fi
2862
2863 fi
2864
2865
2866 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: no acceptable C compiler found in \$PATH
2869 See \`config.log' for more details." >&2;}
2870 { (exit 1); exit 1; }; }
2871
2872 # Provide some information about the compiler.
2873 echo "$as_me:$LINENO: checking for C compiler version" >&5
2874 ac_compiler=`set X $ac_compile; echo $2`
2875 { (ac_try="$ac_compiler --version >&5"
2876 case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879 esac
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_compiler --version >&5") 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }
2885 { (ac_try="$ac_compiler -v >&5"
2886 case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_compiler -v >&5") 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }
2895 { (ac_try="$ac_compiler -V >&5"
2896 case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compiler -V >&5") 2>&5
2902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }
2905
2906 cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2912
2913 int
2914 main ()
2915 {
2916
2917 ;
2918 return 0;
2919 }
2920 _ACEOF
2921 ac_clean_files_save=$ac_clean_files
2922 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2923 # Try to create an executable without -o first, disregard a.out.
2924 # It will help us diagnose broken compilers, and finding out an intuition
2925 # of exeext.
2926 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2927 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2928 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2929 #
2930 # List of possible output files, starting from the most likely.
2931 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2932 # only as a last resort. b.out is created by i960 compilers.
2933 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2934 #
2935 # The IRIX 6 linker writes into existing files which may not be
2936 # executable, retaining their permissions. Remove them first so a
2937 # subsequent execution test works.
2938 ac_rmfiles=
2939 for ac_file in $ac_files
2940 do
2941 case $ac_file in
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2943 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2944 esac
2945 done
2946 rm -f $ac_rmfiles
2947
2948 if { (ac_try="$ac_link_default"
2949 case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_link_default") 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; then
2958 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2959 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2960 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2961 # so that the user can short-circuit this test for compilers unknown to
2962 # Autoconf.
2963 for ac_file in $ac_files ''
2964 do
2965 test -f "$ac_file" || continue
2966 case $ac_file in
2967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2968 ;;
2969 [ab].out )
2970 # We found the default executable, but exeext='' is most
2971 # certainly right.
2972 break;;
2973 *.* )
2974 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2975 then :; else
2976 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2977 fi
2978 # We set ac_cv_exeext here because the later test for it is not
2979 # safe: cross compilers may not add the suffix if given an `-o'
2980 # argument, so we may need to know it at that point already.
2981 # Even if this section looks crufty: it has the advantage of
2982 # actually working.
2983 break;;
2984 * )
2985 break;;
2986 esac
2987 done
2988 test "$ac_cv_exeext" = no && ac_cv_exeext=
2989
2990 else
2991 ac_file=''
2992 fi
2993
2994 { echo "$as_me:$LINENO: result: $ac_file" >&5
2995 echo "${ECHO_T}$ac_file" >&6; }
2996 if test -z "$ac_file"; then
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3001 See \`config.log' for more details." >&5
3002 echo "$as_me: error: C compiler cannot create executables
3003 See \`config.log' for more details." >&2;}
3004 { (exit 77); exit 77; }; }
3005 fi
3006
3007 ac_exeext=$ac_cv_exeext
3008
3009 # Check that the compiler produces executables we can run. If not, either
3010 # the compiler is broken, or we cross compile.
3011 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3012 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3013 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3014 # If not cross compiling, check that we can run a simple program.
3015 if test "$cross_compiling" != yes; then
3016 if { ac_try='./$ac_file'
3017 { (case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020 esac
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_try") 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3026 cross_compiling=no
3027 else
3028 if test "$cross_compiling" = maybe; then
3029 cross_compiling=yes
3030 else
3031 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3032 If you meant to cross compile, use \`--host'.
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: cannot run C compiled programs.
3035 If you meant to cross compile, use \`--host'.
3036 See \`config.log' for more details." >&2;}
3037 { (exit 1); exit 1; }; }
3038 fi
3039 fi
3040 fi
3041 { echo "$as_me:$LINENO: result: yes" >&5
3042 echo "${ECHO_T}yes" >&6; }
3043
3044 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3045 ac_clean_files=$ac_clean_files_save
3046 # Check that the compiler produces executables we can run. If not, either
3047 # the compiler is broken, or we cross compile.
3048 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3049 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3050 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3051 echo "${ECHO_T}$cross_compiling" >&6; }
3052
3053 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3054 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3055 if { (ac_try="$ac_link"
3056 case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_link") 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; then
3065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3066 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3067 # work properly (i.e., refer to `conftest.exe'), while it won't with
3068 # `rm'.
3069 for ac_file in conftest.exe conftest conftest.*; do
3070 test -f "$ac_file" || continue
3071 case $ac_file in
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 break;;
3075 * ) break;;
3076 esac
3077 done
3078 else
3079 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3080 See \`config.log' for more details." >&5
3081 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details." >&2;}
3083 { (exit 1); exit 1; }; }
3084 fi
3085
3086 rm -f conftest$ac_cv_exeext
3087 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3088 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3089
3090 rm -f conftest.$ac_ext
3091 EXEEXT=$ac_cv_exeext
3092 ac_exeext=$EXEEXT
3093 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3094 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3095 if test "${ac_cv_objext+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098 cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h. */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3104
3105 int
3106 main ()
3107 {
3108
3109 ;
3110 return 0;
3111 }
3112 _ACEOF
3113 rm -f conftest.o conftest.obj
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; then
3124 for ac_file in conftest.o conftest.obj conftest.*; do
3125 test -f "$ac_file" || continue;
3126 case $ac_file in
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3129 break;;
3130 esac
3131 done
3132 else
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3135
3136 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3137 See \`config.log' for more details." >&5
3138 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3139 See \`config.log' for more details." >&2;}
3140 { (exit 1); exit 1; }; }
3141 fi
3142
3143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3144 fi
3145 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3146 echo "${ECHO_T}$ac_cv_objext" >&6; }
3147 OBJEXT=$ac_cv_objext
3148 ac_objext=$OBJEXT
3149 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3150 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154 cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h. */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3160
3161 int
3162 main ()
3163 {
3164 #ifndef __GNUC__
3165 choke me
3166 #endif
3167
3168 ;
3169 return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3180 ac_status=$?
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } && {
3186 test -z "$ac_c_werror_flag" ||
3187 test ! -s conftest.err
3188 } && test -s conftest.$ac_objext; then
3189 ac_compiler_gnu=yes
3190 else
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194 ac_compiler_gnu=no
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3199
3200 fi
3201 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3202 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3203 GCC=`test $ac_compiler_gnu = yes && echo yes`
3204 ac_test_CFLAGS=${CFLAGS+set}
3205 ac_save_CFLAGS=$CFLAGS
3206 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3207 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3208 if test "${ac_cv_prog_cc_g+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211 ac_save_c_werror_flag=$ac_c_werror_flag
3212 ac_c_werror_flag=yes
3213 ac_cv_prog_cc_g=no
3214 CFLAGS="-g"
3215 cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h. */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3221
3222 int
3223 main ()
3224 {
3225
3226 ;
3227 return 0;
3228 }
3229 _ACEOF
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } && {
3244 test -z "$ac_c_werror_flag" ||
3245 test ! -s conftest.err
3246 } && test -s conftest.$ac_objext; then
3247 ac_cv_prog_cc_g=yes
3248 else
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 CFLAGS=""
3253 cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h. */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3259
3260 int
3261 main ()
3262 {
3263
3264 ;
3265 return 0;
3266 }
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (ac_try="$ac_compile"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_compile") 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } && {
3282 test -z "$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 } && test -s conftest.$ac_objext; then
3285 :
3286 else
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 ac_c_werror_flag=$ac_save_c_werror_flag
3291 CFLAGS="-g"
3292 cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h. */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298
3299 int
3300 main ()
3301 {
3302
3303 ;
3304 return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (ac_try="$ac_compile"
3309 case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_compile") 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } && {
3321 test -z "$ac_c_werror_flag" ||
3322 test ! -s conftest.err
3323 } && test -s conftest.$ac_objext; then
3324 ac_cv_prog_cc_g=yes
3325 else
3326 echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329
3330 fi
3331
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 fi
3334
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 fi
3337
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3340 fi
3341 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3343 if test "$ac_test_CFLAGS" = set; then
3344 CFLAGS=$ac_save_CFLAGS
3345 elif test $ac_cv_prog_cc_g = yes; then
3346 if test "$GCC" = yes; then
3347 CFLAGS="-g -O2"
3348 else
3349 CFLAGS="-g"
3350 fi
3351 else
3352 if test "$GCC" = yes; then
3353 CFLAGS="-O2"
3354 else
3355 CFLAGS=
3356 fi
3357 fi
3358 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3359 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3360 if test "${ac_cv_prog_cc_c89+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 ac_cv_prog_cc_c89=no
3364 ac_save_CC=$CC
3365 cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h. */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3371 #include <stdarg.h>
3372 #include <stdio.h>
3373 #include <sys/types.h>
3374 #include <sys/stat.h>
3375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3376 struct buf { int x; };
3377 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3378 static char *e (p, i)
3379 char **p;
3380 int i;
3381 {
3382 return p[i];
3383 }
3384 static char *f (char * (*g) (char **, int), char **p, ...)
3385 {
3386 char *s;
3387 va_list v;
3388 va_start (v,p);
3389 s = g (p, va_arg (v,int));
3390 va_end (v);
3391 return s;
3392 }
3393
3394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3395 function prototypes and stuff, but not '\xHH' hex character constants.
3396 These don't provoke an error unfortunately, instead are silently treated
3397 as 'x'. The following induces an error, until -std is added to get
3398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3399 array size at least. It's necessary to write '\x00'==0 to get something
3400 that's true only with -std. */
3401 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3402
3403 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3404 inside strings and character constants. */
3405 #define FOO(x) 'x'
3406 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3407
3408 int test (int i, double x);
3409 struct s1 {int (*f) (int a);};
3410 struct s2 {int (*f) (double a);};
3411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3412 int argc;
3413 char **argv;
3414 int
3415 main ()
3416 {
3417 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3424 do
3425 CC="$ac_save_CC $ac_arg"
3426 rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } && {
3440 test -z "$ac_c_werror_flag" ||
3441 test ! -s conftest.err
3442 } && test -s conftest.$ac_objext; then
3443 ac_cv_prog_cc_c89=$ac_arg
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448
3449 fi
3450
3451 rm -f core conftest.err conftest.$ac_objext
3452 test "x$ac_cv_prog_cc_c89" != "xno" && break
3453 done
3454 rm -f conftest.$ac_ext
3455 CC=$ac_save_CC
3456
3457 fi
3458 # AC_CACHE_VAL
3459 case "x$ac_cv_prog_cc_c89" in
3460 x)
3461 { echo "$as_me:$LINENO: result: none needed" >&5
3462 echo "${ECHO_T}none needed" >&6; } ;;
3463 xno)
3464 { echo "$as_me:$LINENO: result: unsupported" >&5
3465 echo "${ECHO_T}unsupported" >&6; } ;;
3466 *)
3467 CC="$CC $ac_cv_prog_cc_c89"
3468 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3469 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3470 esac
3471
3472
3473 ac_ext=c
3474 ac_cpp='$CPP $CPPFLAGS'
3475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 DEPDIR="${am__leading_dot}deps"
3479
3480 ac_config_commands="$ac_config_commands depfiles"
3481
3482
3483 am_make=${MAKE-make}
3484 cat > confinc << 'END'
3485 am__doit:
3486 @echo done
3487 .PHONY: am__doit
3488 END
3489 # If we don't find an include directive, just comment out the code.
3490 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3491 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3492 am__include="#"
3493 am__quote=
3494 _am_result=none
3495 # First try GNU make style include.
3496 echo "include confinc" > confmf
3497 # We grep out `Entering directory' and `Leaving directory'
3498 # messages which can occur if `w' ends up in MAKEFLAGS.
3499 # In particular we don't look at `^make:' because GNU make might
3500 # be invoked under some other name (usually "gmake"), in which
3501 # case it prints its new name instead of `make'.
3502 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3503 am__include=include
3504 am__quote=
3505 _am_result=GNU
3506 fi
3507 # Now try BSD make style include.
3508 if test "$am__include" = "#"; then
3509 echo '.include "confinc"' > confmf
3510 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3511 am__include=.include
3512 am__quote="\""
3513 _am_result=BSD
3514 fi
3515 fi
3516
3517
3518 { echo "$as_me:$LINENO: result: $_am_result" >&5
3519 echo "${ECHO_T}$_am_result" >&6; }
3520 rm -f confinc confmf
3521
3522 # Check whether --enable-dependency-tracking was given.
3523 if test "${enable_dependency_tracking+set}" = set; then
3524 enableval=$enable_dependency_tracking;
3525 fi
3526
3527 if test "x$enable_dependency_tracking" != xno; then
3528 am_depcomp="$ac_aux_dir/depcomp"
3529 AMDEPBACKSLASH='\'
3530 fi
3531 if test "x$enable_dependency_tracking" != xno; then
3532 AMDEP_TRUE=
3533 AMDEP_FALSE='#'
3534 else
3535 AMDEP_TRUE='#'
3536 AMDEP_FALSE=
3537 fi
3538
3539
3540
3541 depcc="$CC" am_compiler_list=
3542
3543 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3544 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3545 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3549 # We make a subdir and do the tests there. Otherwise we can end up
3550 # making bogus files that we don't know about and never remove. For
3551 # instance it was reported that on HP-UX the gcc test will end up
3552 # making a dummy file named `D' -- because `-MD' means `put the output
3553 # in D'.
3554 mkdir conftest.dir
3555 # Copy depcomp to subdir because otherwise we won't find it if we're
3556 # using a relative directory.
3557 cp "$am_depcomp" conftest.dir
3558 cd conftest.dir
3559 # We will build objects and dependencies in a subdirectory because
3560 # it helps to detect inapplicable dependency modes. For instance
3561 # both Tru64's cc and ICC support -MD to output dependencies as a
3562 # side effect of compilation, but ICC will put the dependencies in
3563 # the current directory while Tru64 will put them in the object
3564 # directory.
3565 mkdir sub
3566
3567 am_cv_CC_dependencies_compiler_type=none
3568 if test "$am_compiler_list" = ""; then
3569 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3570 fi
3571 for depmode in $am_compiler_list; do
3572 # Setup a source with many dependencies, because some compilers
3573 # like to wrap large dependency lists on column 80 (with \), and
3574 # we should not choose a depcomp mode which is confused by this.
3575 #
3576 # We need to recreate these files for each test, as the compiler may
3577 # overwrite some of them when testing with obscure command lines.
3578 # This happens at least with the AIX C compiler.
3579 : > sub/conftest.c
3580 for i in 1 2 3 4 5 6; do
3581 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3582 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3583 # Solaris 8's {/usr,}/bin/sh.
3584 touch sub/conftst$i.h
3585 done
3586 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3587
3588 case $depmode in
3589 nosideeffect)
3590 # after this tag, mechanisms are not by side-effect, so they'll
3591 # only be used when explicitly requested
3592 if test "x$enable_dependency_tracking" = xyes; then
3593 continue
3594 else
3595 break
3596 fi
3597 ;;
3598 none) break ;;
3599 esac
3600 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3601 # mode. It turns out that the SunPro C++ compiler does not properly
3602 # handle `-M -o', and we need to detect this.
3603 if depmode=$depmode \
3604 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3605 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3606 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3607 >/dev/null 2>conftest.err &&
3608 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3609 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3610 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3611 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3612 # icc doesn't choke on unknown options, it will just issue warnings
3613 # or remarks (even with -Werror). So we grep stderr for any message
3614 # that says an option was ignored or not supported.
3615 # When given -MP, icc 7.0 and 7.1 complain thusly:
3616 # icc: Command line warning: ignoring option '-M'; no argument required
3617 # The diagnosis changed in icc 8.0:
3618 # icc: Command line remark: option '-MP' not supported
3619 if (grep 'ignoring option' conftest.err ||
3620 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3621 am_cv_CC_dependencies_compiler_type=$depmode
3622 break
3623 fi
3624 fi
3625 done
3626
3627 cd ..
3628 rm -rf conftest.dir
3629 else
3630 am_cv_CC_dependencies_compiler_type=none
3631 fi
3632
3633 fi
3634 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3635 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3636 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3637
3638 if
3639 test "x$enable_dependency_tracking" != xno \
3640 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3641 am__fastdepCC_TRUE=
3642 am__fastdepCC_FALSE='#'
3643 else
3644 am__fastdepCC_TRUE='#'
3645 am__fastdepCC_FALSE=
3646 fi
3647
3648
3649 # Check whether --enable-shared was given.
3650 if test "${enable_shared+set}" = set; then
3651 enableval=$enable_shared; p=${PACKAGE-default}
3652 case $enableval in
3653 yes) enable_shared=yes ;;
3654 no) enable_shared=no ;;
3655 *)
3656 enable_shared=no
3657 # Look at the argument we got. We use all the common list separators.
3658 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3659 for pkg in $enableval; do
3660 IFS="$lt_save_ifs"
3661 if test "X$pkg" = "X$p"; then
3662 enable_shared=yes
3663 fi
3664 done
3665 IFS="$lt_save_ifs"
3666 ;;
3667 esac
3668 else
3669 enable_shared=yes
3670 fi
3671
3672
3673 # Check whether --enable-static was given.
3674 if test "${enable_static+set}" = set; then
3675 enableval=$enable_static; p=${PACKAGE-default}
3676 case $enableval in
3677 yes) enable_static=yes ;;
3678 no) enable_static=no ;;
3679 *)
3680 enable_static=no
3681 # Look at the argument we got. We use all the common list separators.
3682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3683 for pkg in $enableval; do
3684 IFS="$lt_save_ifs"
3685 if test "X$pkg" = "X$p"; then
3686 enable_static=yes
3687 fi
3688 done
3689 IFS="$lt_save_ifs"
3690 ;;
3691 esac
3692 else
3693 enable_static=yes
3694 fi
3695
3696
3697 # Check whether --enable-fast-install was given.
3698 if test "${enable_fast_install+set}" = set; then
3699 enableval=$enable_fast_install; p=${PACKAGE-default}
3700 case $enableval in
3701 yes) enable_fast_install=yes ;;
3702 no) enable_fast_install=no ;;
3703 *)
3704 enable_fast_install=no
3705 # Look at the argument we got. We use all the common list separators.
3706 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3707 for pkg in $enableval; do
3708 IFS="$lt_save_ifs"
3709 if test "X$pkg" = "X$p"; then
3710 enable_fast_install=yes
3711 fi
3712 done
3713 IFS="$lt_save_ifs"
3714 ;;
3715 esac
3716 else
3717 enable_fast_install=yes
3718 fi
3719
3720
3721 # Make sure we can run config.sub.
3722 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3723 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3724 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3725 { (exit 1); exit 1; }; }
3726
3727 { echo "$as_me:$LINENO: checking build system type" >&5
3728 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3729 if test "${ac_cv_build+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732 ac_build_alias=$build_alias
3733 test "x$ac_build_alias" = x &&
3734 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3735 test "x$ac_build_alias" = x &&
3736 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3737 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3738 { (exit 1); exit 1; }; }
3739 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3740 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3741 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3742 { (exit 1); exit 1; }; }
3743
3744 fi
3745 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3746 echo "${ECHO_T}$ac_cv_build" >&6; }
3747 case $ac_cv_build in
3748 *-*-*) ;;
3749 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3750 echo "$as_me: error: invalid value of canonical build" >&2;}
3751 { (exit 1); exit 1; }; };;
3752 esac
3753 build=$ac_cv_build
3754 ac_save_IFS=$IFS; IFS='-'
3755 set x $ac_cv_build
3756 shift
3757 build_cpu=$1
3758 build_vendor=$2
3759 shift; shift
3760 # Remember, the first character of IFS is used to create $*,
3761 # except with old shells:
3762 build_os=$*
3763 IFS=$ac_save_IFS
3764 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3765
3766
3767 { echo "$as_me:$LINENO: checking host system type" >&5
3768 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3769 if test "${ac_cv_host+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 if test "x$host_alias" = x; then
3773 ac_cv_host=$ac_cv_build
3774 else
3775 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3776 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3777 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3778 { (exit 1); exit 1; }; }
3779 fi
3780
3781 fi
3782 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3783 echo "${ECHO_T}$ac_cv_host" >&6; }
3784 case $ac_cv_host in
3785 *-*-*) ;;
3786 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3787 echo "$as_me: error: invalid value of canonical host" >&2;}
3788 { (exit 1); exit 1; }; };;
3789 esac
3790 host=$ac_cv_host
3791 ac_save_IFS=$IFS; IFS='-'
3792 set x $ac_cv_host
3793 shift
3794 host_cpu=$1
3795 host_vendor=$2
3796 shift; shift
3797 # Remember, the first character of IFS is used to create $*,
3798 # except with old shells:
3799 host_os=$*
3800 IFS=$ac_save_IFS
3801 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3802
3803
3804 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3805 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3806 if test "${lt_cv_path_SED+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809 # Loop through the user's path and test for sed and gsed.
3810 # Then use that list of sed's as ones to test for truncation.
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3813 do
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 for lt_ac_prog in sed gsed; do
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3819 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3820 fi
3821 done
3822 done
3823 done
3824 IFS=$as_save_IFS
3825 lt_ac_max=0
3826 lt_ac_count=0
3827 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3828 # along with /bin/sed that truncates output.
3829 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3830 test ! -f $lt_ac_sed && continue
3831 cat /dev/null > conftest.in
3832 lt_ac_count=0
3833 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3834 # Check for GNU sed and select it if it is found.
3835 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3836 lt_cv_path_SED=$lt_ac_sed
3837 break
3838 fi
3839 while true; do
3840 cat conftest.in conftest.in >conftest.tmp
3841 mv conftest.tmp conftest.in
3842 cp conftest.in conftest.nl
3843 echo >>conftest.nl
3844 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3845 cmp -s conftest.out conftest.nl || break
3846 # 10000 chars as input seems more than enough
3847 test $lt_ac_count -gt 10 && break
3848 lt_ac_count=`expr $lt_ac_count + 1`
3849 if test $lt_ac_count -gt $lt_ac_max; then
3850 lt_ac_max=$lt_ac_count
3851 lt_cv_path_SED=$lt_ac_sed
3852 fi
3853 done
3854 done
3855
3856 fi
3857
3858 SED=$lt_cv_path_SED
3859
3860 { echo "$as_me:$LINENO: result: $SED" >&5
3861 echo "${ECHO_T}$SED" >&6; }
3862
3863 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3864 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3865 if test "${ac_cv_path_GREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 # Extract the first word of "grep ggrep" to use in msg output
3869 if test -z "$GREP"; then
3870 set dummy grep ggrep; ac_prog_name=$2
3871 if test "${ac_cv_path_GREP+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874 ac_path_GREP_found=false
3875 # Loop through the user's path and test for each of PROGNAME-LIST
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3878 do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_prog in grep ggrep; do
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3884 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3885 # Check for GNU ac_path_GREP and select it if it is found.
3886 # Check for GNU $ac_path_GREP
3887 case `"$ac_path_GREP" --version 2>&1` in
3888 *GNU*)
3889 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3890 *)
3891 ac_count=0
3892 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3893 while :
3894 do
3895 cat "conftest.in" "conftest.in" >"conftest.tmp"
3896 mv "conftest.tmp" "conftest.in"
3897 cp "conftest.in" "conftest.nl"
3898 echo 'GREP' >> "conftest.nl"
3899 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3901 ac_count=`expr $ac_count + 1`
3902 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3903 # Best one so far, save it but keep looking for a better one
3904 ac_cv_path_GREP="$ac_path_GREP"
3905 ac_path_GREP_max=$ac_count
3906 fi
3907 # 10*(2^10) chars as input seems more than enough
3908 test $ac_count -gt 10 && break
3909 done
3910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3911 esac
3912
3913
3914 $ac_path_GREP_found && break 3
3915 done
3916 done
3917
3918 done
3919 IFS=$as_save_IFS
3920
3921
3922 fi
3923
3924 GREP="$ac_cv_path_GREP"
3925 if test -z "$GREP"; then
3926 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3927 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3928 { (exit 1); exit 1; }; }
3929 fi
3930
3931 else
3932 ac_cv_path_GREP=$GREP
3933 fi
3934
3935
3936 fi
3937 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3938 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3939 GREP="$ac_cv_path_GREP"
3940
3941
3942 { echo "$as_me:$LINENO: checking for egrep" >&5
3943 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3944 if test "${ac_cv_path_EGREP+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3948 then ac_cv_path_EGREP="$GREP -E"
3949 else
3950 # Extract the first word of "egrep" to use in msg output
3951 if test -z "$EGREP"; then
3952 set dummy egrep; ac_prog_name=$2
3953 if test "${ac_cv_path_EGREP+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956 ac_path_EGREP_found=false
3957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3960 do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_prog in egrep; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3966 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3967 # Check for GNU ac_path_EGREP and select it if it is found.
3968 # Check for GNU $ac_path_EGREP
3969 case `"$ac_path_EGREP" --version 2>&1` in
3970 *GNU*)
3971 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3972 *)
3973 ac_count=0
3974 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3975 while :
3976 do
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 echo 'EGREP' >> "conftest.nl"
3981 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3983 ac_count=`expr $ac_count + 1`
3984 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_EGREP="$ac_path_EGREP"
3987 ac_path_EGREP_max=$ac_count
3988 fi
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3991 done
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993 esac
3994
3995
3996 $ac_path_EGREP_found && break 3
3997 done
3998 done
3999
4000 done
4001 IFS=$as_save_IFS
4002
4003
4004 fi
4005
4006 EGREP="$ac_cv_path_EGREP"
4007 if test -z "$EGREP"; then
4008 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4009 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4010 { (exit 1); exit 1; }; }
4011 fi
4012
4013 else
4014 ac_cv_path_EGREP=$EGREP
4015 fi
4016
4017
4018 fi
4019 fi
4020 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4021 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4022 EGREP="$ac_cv_path_EGREP"
4023
4024
4025
4026 # Check whether --with-gnu-ld was given.
4027 if test "${with_gnu_ld+set}" = set; then
4028 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4029 else
4030 with_gnu_ld=no
4031 fi
4032
4033 ac_prog=ld
4034 if test "$GCC" = yes; then
4035 # Check if gcc -print-prog-name=ld gives a path.
4036 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4037 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4038 case $host in
4039 *-*-mingw*)
4040 # gcc leaves a trailing carriage return which upsets mingw
4041 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4042 *)
4043 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4044 esac
4045 case $ac_prog in
4046 # Accept absolute paths.
4047 [\\/]* | ?:[\\/]*)
4048 re_direlt='/[^/][^/]*/\.\./'
4049 # Canonicalize the pathname of ld
4050 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4051 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4052 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4053 done
4054 test -z "$LD" && LD="$ac_prog"
4055 ;;
4056 "")
4057 # If it fails, then pretend we aren't using GCC.
4058 ac_prog=ld
4059 ;;
4060 *)
4061 # If it is relative, then search for the first ld in PATH.
4062 with_gnu_ld=unknown
4063 ;;
4064 esac
4065 elif test "$with_gnu_ld" = yes; then
4066 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4067 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4068 else
4069 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4070 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4071 fi
4072 if test "${lt_cv_path_LD+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 if test -z "$LD"; then
4076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4077 for ac_dir in $PATH; do
4078 IFS="$lt_save_ifs"
4079 test -z "$ac_dir" && ac_dir=.
4080 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4081 lt_cv_path_LD="$ac_dir/$ac_prog"
4082 # Check to see if the program is GNU ld. I'd rather use --version,
4083 # but apparently some variants of GNU ld only accept -v.
4084 # Break only if it was the GNU/non-GNU ld that we prefer.
4085 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4086 *GNU* | *'with BFD'*)
4087 test "$with_gnu_ld" != no && break
4088 ;;
4089 *)
4090 test "$with_gnu_ld" != yes && break
4091 ;;
4092 esac
4093 fi
4094 done
4095 IFS="$lt_save_ifs"
4096 else
4097 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4098 fi
4099 fi
4100
4101 LD="$lt_cv_path_LD"
4102 if test -n "$LD"; then
4103 { echo "$as_me:$LINENO: result: $LD" >&5
4104 echo "${ECHO_T}$LD" >&6; }
4105 else
4106 { echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6; }
4108 fi
4109 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4110 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4111 { (exit 1); exit 1; }; }
4112 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4113 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4114 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4118 case `$LD -v 2>&1 </dev/null` in
4119 *GNU* | *'with BFD'*)
4120 lt_cv_prog_gnu_ld=yes
4121 ;;
4122 *)
4123 lt_cv_prog_gnu_ld=no
4124 ;;
4125 esac
4126 fi
4127 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4128 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4129 with_gnu_ld=$lt_cv_prog_gnu_ld
4130
4131
4132 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4133 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4134 if test "${lt_cv_ld_reload_flag+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 lt_cv_ld_reload_flag='-r'
4138 fi
4139 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4140 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4141 reload_flag=$lt_cv_ld_reload_flag
4142 case $reload_flag in
4143 "" | " "*) ;;
4144 *) reload_flag=" $reload_flag" ;;
4145 esac
4146 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4147 case $host_os in
4148 darwin*)
4149 if test "$GCC" = yes; then
4150 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4151 else
4152 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4153 fi
4154 ;;
4155 esac
4156
4157 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4158 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4159 if test "${lt_cv_path_NM+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162 if test -n "$NM"; then
4163 # Let the user override the test.
4164 lt_cv_path_NM="$NM"
4165 else
4166 lt_nm_to_check="${ac_tool_prefix}nm"
4167 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4168 lt_nm_to_check="$lt_nm_to_check nm"
4169 fi
4170 for lt_tmp_nm in $lt_nm_to_check; do
4171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4172 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4173 IFS="$lt_save_ifs"
4174 test -z "$ac_dir" && ac_dir=.
4175 tmp_nm="$ac_dir/$lt_tmp_nm"
4176 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4177 # Check to see if the nm accepts a BSD-compat flag.
4178 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4179 # nm: unknown option "B" ignored
4180 # Tru64's nm complains that /dev/null is an invalid object file
4181 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4182 */dev/null* | *'Invalid file or object type'*)
4183 lt_cv_path_NM="$tmp_nm -B"
4184 break
4185 ;;
4186 *)
4187 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4188 */dev/null*)
4189 lt_cv_path_NM="$tmp_nm -p"
4190 break
4191 ;;
4192 *)
4193 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4194 continue # so that we can try to find one that supports BSD flags
4195 ;;
4196 esac
4197 ;;
4198 esac
4199 fi
4200 done
4201 IFS="$lt_save_ifs"
4202 done
4203 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4204 fi
4205 fi
4206 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4207 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4208 NM="$lt_cv_path_NM"
4209
4210 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4211 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4212 if test "${lt_cv_deplibs_check_method+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215 lt_cv_file_magic_cmd='$MAGIC_CMD'
4216 lt_cv_file_magic_test_file=
4217 lt_cv_deplibs_check_method='unknown'
4218 # Need to set the preceding variable on all platforms that support
4219 # interlibrary dependencies.
4220 # 'none' -- dependencies not supported.
4221 # `unknown' -- same as none, but documents that we really don't know.
4222 # 'pass_all' -- all dependencies passed with no checks.
4223 # 'test_compile' -- check by making test program.
4224 # 'file_magic [[regex]]' -- check by looking for files in library path
4225 # which responds to the $file_magic_cmd with a given extended regex.
4226 # If you have `file' or equivalent on your system and you're not sure
4227 # whether `pass_all' will *always* work, you probably want this one.
4228
4229 case $host_os in
4230 aix4* | aix5*)
4231 lt_cv_deplibs_check_method=pass_all
4232 ;;
4233
4234 beos*)
4235 lt_cv_deplibs_check_method=pass_all
4236 ;;
4237
4238 bsdi[45]*)
4239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4240 lt_cv_file_magic_cmd='/usr/bin/file -L'
4241 lt_cv_file_magic_test_file=/shlib/libc.so
4242 ;;
4243
4244 cygwin*)
4245 # func_win32_libid is a shell function defined in ltmain.sh
4246 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4247 lt_cv_file_magic_cmd='func_win32_libid'
4248 ;;
4249
4250 mingw* | pw32*)
4251 # Base MSYS/MinGW do not provide the 'file' command needed by
4252 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4253 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4254 lt_cv_file_magic_cmd='$OBJDUMP -f'
4255 ;;
4256
4257 darwin* | rhapsody*)
4258 lt_cv_deplibs_check_method=pass_all
4259 ;;
4260
4261 freebsd* | kfreebsd*-gnu | dragonfly*)
4262 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4263 case $host_cpu in
4264 i*86 )
4265 # Not sure whether the presence of OpenBSD here was a mistake.
4266 # Let's accept both of them until this is cleared up.
4267 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4268 lt_cv_file_magic_cmd=/usr/bin/file
4269 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4270 ;;
4271 esac
4272 else
4273 lt_cv_deplibs_check_method=pass_all
4274 fi
4275 ;;
4276
4277 gnu*)
4278 lt_cv_deplibs_check_method=pass_all
4279 ;;
4280
4281 hpux10.20* | hpux11*)
4282 lt_cv_file_magic_cmd=/usr/bin/file
4283 case $host_cpu in
4284 ia64*)
4285 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4286 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4287 ;;
4288 hppa*64*)
4289 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]'
4290 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4291 ;;
4292 *)
4293 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4294 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4295 ;;
4296 esac
4297 ;;
4298
4299 interix3*)
4300 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4302 ;;
4303
4304 irix5* | irix6* | nonstopux*)
4305 case $LD in
4306 *-32|*"-32 ") libmagic=32-bit;;
4307 *-n32|*"-n32 ") libmagic=N32;;
4308 *-64|*"-64 ") libmagic=64-bit;;
4309 *) libmagic=never-match;;
4310 esac
4311 lt_cv_deplibs_check_method=pass_all
4312 ;;
4313
4314 # This must be Linux ELF.
4315 linux*)
4316 lt_cv_deplibs_check_method=pass_all
4317 ;;
4318
4319 netbsd*)
4320 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4322 else
4323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4324 fi
4325 ;;
4326
4327 newos6*)
4328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4329 lt_cv_file_magic_cmd=/usr/bin/file
4330 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4331 ;;
4332
4333 nto-qnx*)
4334 lt_cv_deplibs_check_method=unknown
4335 ;;
4336
4337 openbsd*)
4338 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4340 else
4341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4342 fi
4343 ;;
4344
4345 osf3* | osf4* | osf5*)
4346 lt_cv_deplibs_check_method=pass_all
4347 ;;
4348
4349 solaris*)
4350 lt_cv_deplibs_check_method=pass_all
4351 ;;
4352
4353 sysv4 | sysv4.3*)
4354 case $host_vendor in
4355 motorola)
4356 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]'
4357 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4358 ;;
4359 ncr)
4360 lt_cv_deplibs_check_method=pass_all
4361 ;;
4362 sequent)
4363 lt_cv_file_magic_cmd='/bin/file'
4364 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4365 ;;
4366 sni)
4367 lt_cv_file_magic_cmd='/bin/file'
4368 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4369 lt_cv_file_magic_test_file=/lib/libc.so
4370 ;;
4371 siemens)
4372 lt_cv_deplibs_check_method=pass_all
4373 ;;
4374 pc)
4375 lt_cv_deplibs_check_method=pass_all
4376 ;;
4377 esac
4378 ;;
4379
4380 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4381 lt_cv_deplibs_check_method=pass_all
4382 ;;
4383 esac
4384
4385 fi
4386 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4387 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4388 file_magic_cmd=$lt_cv_file_magic_cmd
4389 deplibs_check_method=$lt_cv_deplibs_check_method
4390 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4391
4392
4393
4394
4395 # If no C compiler was specified, use CC.
4396 LTCC=${LTCC-"$CC"}
4397
4398 # If no C compiler flags were specified, use CFLAGS.
4399 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4400
4401 # Allow CC to be a program name with arguments.
4402 compiler=$CC
4403
4404
4405 # Check whether --enable-libtool-lock was given.
4406 if test "${enable_libtool_lock+set}" = set; then
4407 enableval=$enable_libtool_lock;
4408 fi
4409
4410 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4411
4412 # Some flags need to be propagated to the compiler or linker for good
4413 # libtool support.
4414 case $host in
4415 ia64-*-hpux*)
4416 # Find out which ABI we are using.
4417 echo 'int i;' > conftest.$ac_ext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; then
4423 case `/usr/bin/file conftest.$ac_objext` in
4424 *ELF-32*)
4425 HPUX_IA64_MODE="32"
4426 ;;
4427 *ELF-64*)
4428 HPUX_IA64_MODE="64"
4429 ;;
4430 esac
4431 fi
4432 rm -rf conftest*
4433 ;;
4434 *-*-irix6*)
4435 # Find out which ABI we are using.
4436 echo '#line 4436 "configure"' > conftest.$ac_ext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; then
4442 if test "$lt_cv_prog_gnu_ld" = yes; then
4443 case `/usr/bin/file conftest.$ac_objext` in
4444 *32-bit*)
4445 LD="${LD-ld} -melf32bsmip"
4446 ;;
4447 *N32*)
4448 LD="${LD-ld} -melf32bmipn32"
4449 ;;
4450 *64-bit*)
4451 LD="${LD-ld} -melf64bmip"
4452 ;;
4453 esac
4454 else
4455 case `/usr/bin/file conftest.$ac_objext` in
4456 *32-bit*)
4457 LD="${LD-ld} -32"
4458 ;;
4459 *N32*)
4460 LD="${LD-ld} -n32"
4461 ;;
4462 *64-bit*)
4463 LD="${LD-ld} -64"
4464 ;;
4465 esac
4466 fi
4467 fi
4468 rm -rf conftest*
4469 ;;
4470
4471 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4472 # Find out which ABI we are using.
4473 echo 'int i;' > conftest.$ac_ext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; then
4479 case `/usr/bin/file conftest.o` in
4480 *32-bit*)
4481 case $host in
4482 x86_64-*linux*)
4483 LD="${LD-ld} -m elf_i386"
4484 ;;
4485 ppc64-*linux*|powerpc64-*linux*)
4486 LD="${LD-ld} -m elf32ppclinux"
4487 ;;
4488 s390x-*linux*)
4489 LD="${LD-ld} -m elf_s390"
4490 ;;
4491 sparc64-*linux*)
4492 LD="${LD-ld} -m elf32_sparc"
4493 ;;
4494 esac
4495 ;;
4496 *64-bit*)
4497 case $host in
4498 x86_64-*linux*)
4499 LD="${LD-ld} -m elf_x86_64"
4500 ;;
4501 ppc*-*linux*|powerpc*-*linux*)
4502 LD="${LD-ld} -m elf64ppc"
4503 ;;
4504 s390*-*linux*)
4505 LD="${LD-ld} -m elf64_s390"
4506 ;;
4507 sparc*-*linux*)
4508 LD="${LD-ld} -m elf64_sparc"
4509 ;;
4510 esac
4511 ;;
4512 esac
4513 fi
4514 rm -rf conftest*
4515 ;;
4516
4517 *-*-sco3.2v5*)
4518 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4519 SAVE_CFLAGS="$CFLAGS"
4520 CFLAGS="$CFLAGS -belf"
4521 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4522 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4523 if test "${lt_cv_cc_needs_belf+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 ac_ext=c
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531
4532 cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h. */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538
4539 int
4540 main ()
4541 {
4542
4543 ;
4544 return 0;
4545 }
4546 _ACEOF
4547 rm -f conftest.$ac_objext conftest$ac_exeext
4548 if { (ac_try="$ac_link"
4549 case "(($ac_try" in
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4552 esac
4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554 (eval "$ac_link") 2>conftest.er1
4555 ac_status=$?
4556 grep -v '^ *+' conftest.er1 >conftest.err
4557 rm -f conftest.er1
4558 cat conftest.err >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } && {
4561 test -z "$ac_c_werror_flag" ||
4562 test ! -s conftest.err
4563 } && test -s conftest$ac_exeext &&
4564 $as_test_x conftest$ac_exeext; then
4565 lt_cv_cc_needs_belf=yes
4566 else
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570 lt_cv_cc_needs_belf=no
4571 fi
4572
4573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4574 conftest$ac_exeext conftest.$ac_ext
4575 ac_ext=c
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580
4581 fi
4582 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4583 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4584 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4585 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4586 CFLAGS="$SAVE_CFLAGS"
4587 fi
4588 ;;
4589 sparc*-*solaris*)
4590 # Find out which ABI we are using.
4591 echo 'int i;' > conftest.$ac_ext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; then
4597 case `/usr/bin/file conftest.o` in
4598 *64-bit*)
4599 case $lt_cv_prog_gnu_ld in
4600 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4601 *) LD="${LD-ld} -64" ;;
4602 esac
4603 ;;
4604 esac
4605 fi
4606 rm -rf conftest*
4607 ;;
4608
4609
4610 esac
4611
4612 need_locks="$enable_libtool_lock"
4613
4614
4615 ac_ext=c
4616 ac_cpp='$CPP $CPPFLAGS'
4617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4620 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4621 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4622 # On Suns, sometimes $CPP names a directory.
4623 if test -n "$CPP" && test -d "$CPP"; then
4624 CPP=
4625 fi
4626 if test -z "$CPP"; then
4627 if test "${ac_cv_prog_CPP+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630 # Double quotes because CPP needs to be expanded
4631 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4632 do
4633 ac_preproc_ok=false
4634 for ac_c_preproc_warn_flag in '' yes
4635 do
4636 # Use a header file that comes with gcc, so configuring glibc
4637 # with a fresh cross-compiler works.
4638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4639 # <limits.h> exists even on freestanding compilers.
4640 # On the NeXT, cc -E runs the code through the compiler's parser,
4641 # not just through cpp. "Syntax error" is here to catch this case.
4642 cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h. */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4648 #ifdef __STDC__
4649 # include <limits.h>
4650 #else
4651 # include <assert.h>
4652 #endif
4653 Syntax error
4654 _ACEOF
4655 if { (ac_try="$ac_cpp conftest.$ac_ext"
4656 case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659 esac
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4662 ac_status=$?
4663 grep -v '^ *+' conftest.er1 >conftest.err
4664 rm -f conftest.er1
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } >/dev/null && {
4668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4669 test ! -s conftest.err
4670 }; then
4671 :
4672 else
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676 # Broken: fails on valid input.
4677 continue
4678 fi
4679
4680 rm -f conftest.err conftest.$ac_ext
4681
4682 # OK, works on sane cases. Now check whether nonexistent headers
4683 # can be detected and how.
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 #include <ac_nonexistent.h>
4691 _ACEOF
4692 if { (ac_try="$ac_cpp conftest.$ac_ext"
4693 case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696 esac
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4699 ac_status=$?
4700 grep -v '^ *+' conftest.er1 >conftest.err
4701 rm -f conftest.er1
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } >/dev/null && {
4705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4706 test ! -s conftest.err
4707 }; then
4708 # Broken: success on invalid input.
4709 continue
4710 else
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4713
4714 # Passes both tests.
4715 ac_preproc_ok=:
4716 break
4717 fi
4718
4719 rm -f conftest.err conftest.$ac_ext
4720
4721 done
4722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4723 rm -f conftest.err conftest.$ac_ext
4724 if $ac_preproc_ok; then
4725 break
4726 fi
4727
4728 done
4729 ac_cv_prog_CPP=$CPP
4730
4731 fi
4732 CPP=$ac_cv_prog_CPP
4733 else
4734 ac_cv_prog_CPP=$CPP
4735 fi
4736 { echo "$as_me:$LINENO: result: $CPP" >&5
4737 echo "${ECHO_T}$CPP" >&6; }
4738 ac_preproc_ok=false
4739 for ac_c_preproc_warn_flag in '' yes
4740 do
4741 # Use a header file that comes with gcc, so configuring glibc
4742 # with a fresh cross-compiler works.
4743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4744 # <limits.h> exists even on freestanding compilers.
4745 # On the NeXT, cc -E runs the code through the compiler's parser,
4746 # not just through cpp. "Syntax error" is here to catch this case.
4747 cat >conftest.$ac_ext <<_ACEOF
4748 /* confdefs.h. */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 #ifdef __STDC__
4754 # include <limits.h>
4755 #else
4756 # include <assert.h>
4757 #endif
4758 Syntax error
4759 _ACEOF
4760 if { (ac_try="$ac_cpp conftest.$ac_ext"
4761 case "(($ac_try" in
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4764 esac
4765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } >/dev/null && {
4773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4774 test ! -s conftest.err
4775 }; then
4776 :
4777 else
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781 # Broken: fails on valid input.
4782 continue
4783 fi
4784
4785 rm -f conftest.err conftest.$ac_ext
4786
4787 # OK, works on sane cases. Now check whether nonexistent headers
4788 # can be detected and how.
4789 cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h. */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4795 #include <ac_nonexistent.h>
4796 _ACEOF
4797 if { (ac_try="$ac_cpp conftest.$ac_ext"
4798 case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801 esac
4802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4804 ac_status=$?
4805 grep -v '^ *+' conftest.er1 >conftest.err
4806 rm -f conftest.er1
4807 cat conftest.err >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } >/dev/null && {
4810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4811 test ! -s conftest.err
4812 }; then
4813 # Broken: success on invalid input.
4814 continue
4815 else
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4818
4819 # Passes both tests.
4820 ac_preproc_ok=:
4821 break
4822 fi
4823
4824 rm -f conftest.err conftest.$ac_ext
4825
4826 done
4827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4828 rm -f conftest.err conftest.$ac_ext
4829 if $ac_preproc_ok; then
4830 :
4831 else
4832 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4833 See \`config.log' for more details." >&5
4834 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4835 See \`config.log' for more details." >&2;}
4836 { (exit 1); exit 1; }; }
4837 fi
4838
4839 ac_ext=c
4840 ac_cpp='$CPP $CPPFLAGS'
4841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844
4845
4846 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4847 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4848 if test "${ac_cv_header_stdc+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851 cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h. */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 #include <stdlib.h>
4858 #include <stdarg.h>
4859 #include <string.h>
4860 #include <float.h>
4861
4862 int
4863 main ()
4864 {
4865
4866 ;
4867 return 0;
4868 }
4869 _ACEOF
4870 rm -f conftest.$ac_objext
4871 if { (ac_try="$ac_compile"
4872 case "(($ac_try" in
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4875 esac
4876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4877 (eval "$ac_compile") 2>conftest.er1
4878 ac_status=$?
4879 grep -v '^ *+' conftest.er1 >conftest.err
4880 rm -f conftest.er1
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } && {
4884 test -z "$ac_c_werror_flag" ||
4885 test ! -s conftest.err
4886 } && test -s conftest.$ac_objext; then
4887 ac_cv_header_stdc=yes
4888 else
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4891
4892 ac_cv_header_stdc=no
4893 fi
4894
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896
4897 if test $ac_cv_header_stdc = yes; then
4898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4899 cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h. */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4905 #include <string.h>
4906
4907 _ACEOF
4908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909 $EGREP "memchr" >/dev/null 2>&1; then
4910 :
4911 else
4912 ac_cv_header_stdc=no
4913 fi
4914 rm -f conftest*
4915
4916 fi
4917
4918 if test $ac_cv_header_stdc = yes; then
4919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4920 cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h. */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4926 #include <stdlib.h>
4927
4928 _ACEOF
4929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4930 $EGREP "free" >/dev/null 2>&1; then
4931 :
4932 else
4933 ac_cv_header_stdc=no
4934 fi
4935 rm -f conftest*
4936
4937 fi
4938
4939 if test $ac_cv_header_stdc = yes; then
4940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4941 if test "$cross_compiling" = yes; then
4942 :
4943 else
4944 cat >conftest.$ac_ext <<_ACEOF
4945 /* confdefs.h. */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 #include <ctype.h>
4951 #include <stdlib.h>
4952 #if ((' ' & 0x0FF) == 0x020)
4953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4955 #else
4956 # define ISLOWER(c) \
4957 (('a' <= (c) && (c) <= 'i') \
4958 || ('j' <= (c) && (c) <= 'r') \
4959 || ('s' <= (c) && (c) <= 'z'))
4960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4961 #endif
4962
4963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4964 int
4965 main ()
4966 {
4967 int i;
4968 for (i = 0; i < 256; i++)
4969 if (XOR (islower (i), ISLOWER (i))
4970 || toupper (i) != TOUPPER (i))
4971 return 2;
4972 return 0;
4973 }
4974 _ACEOF
4975 rm -f conftest$ac_exeext
4976 if { (ac_try="$ac_link"
4977 case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980 esac
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_link") 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4986 { (case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989 esac
4990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991 (eval "$ac_try") 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 :
4996 else
4997 echo "$as_me: program exited with status $ac_status" >&5
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5000
5001 ( exit $ac_status )
5002 ac_cv_header_stdc=no
5003 fi
5004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5005 fi
5006
5007
5008 fi
5009 fi
5010 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5011 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5012 if test $ac_cv_header_stdc = yes; then
5013
5014 cat >>confdefs.h <<\_ACEOF
5015 #define STDC_HEADERS 1
5016 _ACEOF
5017
5018 fi
5019
5020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5031 inttypes.h stdint.h unistd.h
5032 do
5033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039 cat >conftest.$ac_ext <<_ACEOF
5040 /* confdefs.h. */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5045 $ac_includes_default
5046
5047 #include <$ac_header>
5048 _ACEOF
5049 rm -f conftest.$ac_objext
5050 if { (ac_try="$ac_compile"
5051 case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
5066 eval "$as_ac_Header=yes"
5067 else
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5070
5071 eval "$as_ac_Header=no"
5072 fi
5073
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 fi
5076 ac_res=`eval echo '${'$as_ac_Header'}'`
5077 { echo "$as_me:$LINENO: result: $ac_res" >&5
5078 echo "${ECHO_T}$ac_res" >&6; }
5079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5080 cat >>confdefs.h <<_ACEOF
5081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5082 _ACEOF
5083
5084 fi
5085
5086 done
5087
5088
5089
5090 for ac_header in dlfcn.h
5091 do
5092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 fi
5099 ac_res=`eval echo '${'$as_ac_Header'}'`
5100 { echo "$as_me:$LINENO: result: $ac_res" >&5
5101 echo "${ECHO_T}$ac_res" >&6; }
5102 else
5103 # Is the header compilable?
5104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5106 cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h. */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 $ac_includes_default
5113 #include <$ac_header>
5114 _ACEOF
5115 rm -f conftest.$ac_objext
5116 if { (ac_try="$ac_compile"
5117 case "(($ac_try" in
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5120 esac
5121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122 (eval "$ac_compile") 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } && {
5129 test -z "$ac_c_werror_flag" ||
5130 test ! -s conftest.err
5131 } && test -s conftest.$ac_objext; then
5132 ac_header_compiler=yes
5133 else
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 ac_header_compiler=no
5138 fi
5139
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5142 echo "${ECHO_T}$ac_header_compiler" >&6; }
5143
5144 # Is the header present?
5145 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5147 cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h. */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 #include <$ac_header>
5154 _ACEOF
5155 if { (ac_try="$ac_cpp conftest.$ac_ext"
5156 case "(($ac_try" in
5157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158 *) ac_try_echo=$ac_try;;
5159 esac
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } >/dev/null && {
5168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5169 test ! -s conftest.err
5170 }; then
5171 ac_header_preproc=yes
5172 else
5173 echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5175
5176 ac_header_preproc=no
5177 fi
5178
5179 rm -f conftest.err conftest.$ac_ext
5180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5181 echo "${ECHO_T}$ac_header_preproc" >&6; }
5182
5183 # So? What about this header?
5184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5185 yes:no: )
5186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5190 ac_header_preproc=yes
5191 ;;
5192 no:yes:* )
5193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5205 ( cat <<\_ASBOX
5206 ## -------------------------------------------------- ##
5207 ## Report this to courier-users@lists.sourceforge.net ##
5208 ## -------------------------------------------------- ##
5209 _ASBOX
5210 ) | sed "s/^/$as_me: WARNING: /" >&2
5211 ;;
5212 esac
5213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 eval "$as_ac_Header=\$ac_header_preproc"
5219 fi
5220 ac_res=`eval echo '${'$as_ac_Header'}'`
5221 { echo "$as_me:$LINENO: result: $ac_res" >&5
5222 echo "${ECHO_T}$ac_res" >&6; }
5223
5224 fi
5225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5226 cat >>confdefs.h <<_ACEOF
5227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5228 _ACEOF
5229
5230 fi
5231
5232 done
5233
5234 ac_ext=cpp
5235 ac_cpp='$CXXCPP $CPPFLAGS'
5236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5239 if test -z "$CXX"; then
5240 if test -n "$CCC"; then
5241 CXX=$CCC
5242 else
5243 if test -n "$ac_tool_prefix"; then
5244 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5245 do
5246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5250 if test "${ac_cv_prog_CXX+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 if test -n "$CXX"; then
5254 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267 done
5268 done
5269 IFS=$as_save_IFS
5270
5271 fi
5272 fi
5273 CXX=$ac_cv_prog_CXX
5274 if test -n "$CXX"; then
5275 { echo "$as_me:$LINENO: result: $CXX" >&5
5276 echo "${ECHO_T}$CXX" >&6; }
5277 else
5278 { echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6; }
5280 fi
5281
5282
5283 test -n "$CXX" && break
5284 done
5285 fi
5286 if test -z "$CXX"; then
5287 ac_ct_CXX=$CXX
5288 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
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_prog_ac_ct_CXX+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297 if test -n "$ac_ct_CXX"; then
5298 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 ac_cv_prog_ac_ct_CXX="$ac_prog"
5308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 break 2
5310 fi
5311 done
5312 done
5313 IFS=$as_save_IFS
5314
5315 fi
5316 fi
5317 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5318 if test -n "$ac_ct_CXX"; then
5319 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5320 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5321 else
5322 { echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6; }
5324 fi
5325
5326
5327 test -n "$ac_ct_CXX" && break
5328 done
5329
5330 if test "x$ac_ct_CXX" = x; then
5331 CXX="g++"
5332 else
5333 case $cross_compiling:$ac_tool_warned in
5334 yes:)
5335 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5336 whose name does not start with the host triplet. If you think this
5337 configuration is useful to you, please write to autoconf@gnu.org." >&5
5338 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5339 whose name does not start with the host triplet. If you think this
5340 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5341 ac_tool_warned=yes ;;
5342 esac
5343 CXX=$ac_ct_CXX
5344 fi
5345 fi
5346
5347 fi
5348 fi
5349 # Provide some information about the compiler.
5350 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5351 ac_compiler=`set X $ac_compile; echo $2`
5352 { (ac_try="$ac_compiler --version >&5"
5353 case "(($ac_try" in
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5356 esac
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compiler --version >&5") 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }
5362 { (ac_try="$ac_compiler -v >&5"
5363 case "(($ac_try" in
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5366 esac
5367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368 (eval "$ac_compiler -v >&5") 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }
5372 { (ac_try="$ac_compiler -V >&5"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compiler -V >&5") 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }
5382
5383 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5384 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5385 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388 cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h. */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394
5395 int
5396 main ()
5397 {
5398 #ifndef __GNUC__
5399 choke me
5400 #endif
5401
5402 ;
5403 return 0;
5404 }
5405 _ACEOF
5406 rm -f conftest.$ac_objext
5407 if { (ac_try="$ac_compile"
5408 case "(($ac_try" in
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5411 esac
5412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413 (eval "$ac_compile") 2>conftest.er1
5414 ac_status=$?
5415 grep -v '^ *+' conftest.er1 >conftest.err
5416 rm -f conftest.er1
5417 cat conftest.err >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } && {
5420 test -z "$ac_cxx_werror_flag" ||
5421 test ! -s conftest.err
5422 } && test -s conftest.$ac_objext; then
5423 ac_compiler_gnu=yes
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_compiler_gnu=no
5429 fi
5430
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5433
5434 fi
5435 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5436 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5437 GXX=`test $ac_compiler_gnu = yes && echo yes`
5438 ac_test_CXXFLAGS=${CXXFLAGS+set}
5439 ac_save_CXXFLAGS=$CXXFLAGS
5440 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5441 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5442 if test "${ac_cv_prog_cxx_g+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5446 ac_cxx_werror_flag=yes
5447 ac_cv_prog_cxx_g=no
5448 CXXFLAGS="-g"
5449 cat >conftest.$ac_ext <<_ACEOF
5450 /* confdefs.h. */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455
5456 int
5457 main ()
5458 {
5459
5460 ;
5461 return 0;
5462 }
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (ac_try="$ac_compile"
5466 case "(($ac_try" in
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5469 esac
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471 (eval "$ac_compile") 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_cxx_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest.$ac_objext; then
5481 ac_cv_prog_cxx_g=yes
5482 else
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5485
5486 CXXFLAGS=""
5487 cat >conftest.$ac_ext <<_ACEOF
5488 /* confdefs.h. */
5489 _ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5493
5494 int
5495 main ()
5496 {
5497
5498 ;
5499 return 0;
5500 }
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (ac_try="$ac_compile"
5504 case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_compile") 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } && {
5516 test -z "$ac_cxx_werror_flag" ||
5517 test ! -s conftest.err
5518 } && test -s conftest.$ac_objext; then
5519 :
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5523
5524 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5525 CXXFLAGS="-g"
5526 cat >conftest.$ac_ext <<_ACEOF
5527 /* confdefs.h. */
5528 _ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5532
5533 int
5534 main ()
5535 {
5536
5537 ;
5538 return 0;
5539 }
5540 _ACEOF
5541 rm -f conftest.$ac_objext
5542 if { (ac_try="$ac_compile"
5543 case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546 esac
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_compile") 2>conftest.er1
5549 ac_status=$?
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } && {
5555 test -z "$ac_cxx_werror_flag" ||
5556 test ! -s conftest.err
5557 } && test -s conftest.$ac_objext; then
5558 ac_cv_prog_cxx_g=yes
5559 else
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563
5564 fi
5565
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 fi
5568
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 fi
5571
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5574 fi
5575 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5576 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5577 if test "$ac_test_CXXFLAGS" = set; then
5578 CXXFLAGS=$ac_save_CXXFLAGS
5579 elif test $ac_cv_prog_cxx_g = yes; then
5580 if test "$GXX" = yes; then
5581 CXXFLAGS="-g -O2"
5582 else
5583 CXXFLAGS="-g"
5584 fi
5585 else
5586 if test "$GXX" = yes; then
5587 CXXFLAGS="-O2"
5588 else
5589 CXXFLAGS=
5590 fi
5591 fi
5592 ac_ext=cpp
5593 ac_cpp='$CXXCPP $CPPFLAGS'
5594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5597
5598 depcc="$CXX" am_compiler_list=
5599
5600 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5601 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5602 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5606 # We make a subdir and do the tests there. Otherwise we can end up
5607 # making bogus files that we don't know about and never remove. For
5608 # instance it was reported that on HP-UX the gcc test will end up
5609 # making a dummy file named `D' -- because `-MD' means `put the output
5610 # in D'.
5611 mkdir conftest.dir
5612 # Copy depcomp to subdir because otherwise we won't find it if we're
5613 # using a relative directory.
5614 cp "$am_depcomp" conftest.dir
5615 cd conftest.dir
5616 # We will build objects and dependencies in a subdirectory because
5617 # it helps to detect inapplicable dependency modes. For instance
5618 # both Tru64's cc and ICC support -MD to output dependencies as a
5619 # side effect of compilation, but ICC will put the dependencies in
5620 # the current directory while Tru64 will put them in the object
5621 # directory.
5622 mkdir sub
5623
5624 am_cv_CXX_dependencies_compiler_type=none
5625 if test "$am_compiler_list" = ""; then
5626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5627 fi
5628 for depmode in $am_compiler_list; do
5629 # Setup a source with many dependencies, because some compilers
5630 # like to wrap large dependency lists on column 80 (with \), and
5631 # we should not choose a depcomp mode which is confused by this.
5632 #
5633 # We need to recreate these files for each test, as the compiler may
5634 # overwrite some of them when testing with obscure command lines.
5635 # This happens at least with the AIX C compiler.
5636 : > sub/conftest.c
5637 for i in 1 2 3 4 5 6; do
5638 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5639 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5640 # Solaris 8's {/usr,}/bin/sh.
5641 touch sub/conftst$i.h
5642 done
5643 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5644
5645 case $depmode in
5646 nosideeffect)
5647 # after this tag, mechanisms are not by side-effect, so they'll
5648 # only be used when explicitly requested
5649 if test "x$enable_dependency_tracking" = xyes; then
5650 continue
5651 else
5652 break
5653 fi
5654 ;;
5655 none) break ;;
5656 esac
5657 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5658 # mode. It turns out that the SunPro C++ compiler does not properly
5659 # handle `-M -o', and we need to detect this.
5660 if depmode=$depmode \
5661 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5662 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5663 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5664 >/dev/null 2>conftest.err &&
5665 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5666 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5667 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5668 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5669 # icc doesn't choke on unknown options, it will just issue warnings
5670 # or remarks (even with -Werror). So we grep stderr for any message
5671 # that says an option was ignored or not supported.
5672 # When given -MP, icc 7.0 and 7.1 complain thusly:
5673 # icc: Command line warning: ignoring option '-M'; no argument required
5674 # The diagnosis changed in icc 8.0:
5675 # icc: Command line remark: option '-MP' not supported
5676 if (grep 'ignoring option' conftest.err ||
5677 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5678 am_cv_CXX_dependencies_compiler_type=$depmode
5679 break
5680 fi
5681 fi
5682 done
5683
5684 cd ..
5685 rm -rf conftest.dir
5686 else
5687 am_cv_CXX_dependencies_compiler_type=none
5688 fi
5689
5690 fi
5691 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5692 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5693 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5694
5695 if
5696 test "x$enable_dependency_tracking" != xno \
5697 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5698 am__fastdepCXX_TRUE=
5699 am__fastdepCXX_FALSE='#'
5700 else
5701 am__fastdepCXX_TRUE='#'
5702 am__fastdepCXX_FALSE=
5703 fi
5704
5705
5706
5707
5708 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5709 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5710 (test "X$CXX" != "Xg++"))) ; then
5711 ac_ext=cpp
5712 ac_cpp='$CXXCPP $CPPFLAGS'
5713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5716 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5717 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5718 if test -z "$CXXCPP"; then
5719 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722 # Double quotes because CXXCPP needs to be expanded
5723 for CXXCPP in "$CXX -E" "/lib/cpp"
5724 do
5725 ac_preproc_ok=false
5726 for ac_cxx_preproc_warn_flag in '' yes
5727 do
5728 # Use a header file that comes with gcc, so configuring glibc
5729 # with a fresh cross-compiler works.
5730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5731 # <limits.h> exists even on freestanding compilers.
5732 # On the NeXT, cc -E runs the code through the compiler's parser,
5733 # not just through cpp. "Syntax error" is here to catch this case.
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 #ifdef __STDC__
5741 # include <limits.h>
5742 #else
5743 # include <assert.h>
5744 #endif
5745 Syntax error
5746 _ACEOF
5747 if { (ac_try="$ac_cpp conftest.$ac_ext"
5748 case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } >/dev/null && {
5760 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5761 test ! -s conftest.err
5762 }; then
5763 :
5764 else
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 # Broken: fails on valid input.
5769 continue
5770 fi
5771
5772 rm -f conftest.err conftest.$ac_ext
5773
5774 # OK, works on sane cases. Now check whether nonexistent headers
5775 # can be detected and how.
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 #include <ac_nonexistent.h>
5783 _ACEOF
5784 if { (ac_try="$ac_cpp conftest.$ac_ext"
5785 case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } >/dev/null && {
5797 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5798 test ! -s conftest.err
5799 }; then
5800 # Broken: success on invalid input.
5801 continue
5802 else
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 # Passes both tests.
5807 ac_preproc_ok=:
5808 break
5809 fi
5810
5811 rm -f conftest.err conftest.$ac_ext
5812
5813 done
5814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5815 rm -f conftest.err conftest.$ac_ext
5816 if $ac_preproc_ok; then
5817 break
5818 fi
5819
5820 done
5821 ac_cv_prog_CXXCPP=$CXXCPP
5822
5823 fi
5824 CXXCPP=$ac_cv_prog_CXXCPP
5825 else
5826 ac_cv_prog_CXXCPP=$CXXCPP
5827 fi
5828 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5829 echo "${ECHO_T}$CXXCPP" >&6; }
5830 ac_preproc_ok=false
5831 for ac_cxx_preproc_warn_flag in '' yes
5832 do
5833 # Use a header file that comes with gcc, so configuring glibc
5834 # with a fresh cross-compiler works.
5835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5836 # <limits.h> exists even on freestanding compilers.
5837 # On the NeXT, cc -E runs the code through the compiler's parser,
5838 # not just through cpp. "Syntax error" is here to catch this case.
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 #ifdef __STDC__
5846 # include <limits.h>
5847 #else
5848 # include <assert.h>
5849 #endif
5850 Syntax error
5851 _ACEOF
5852 if { (ac_try="$ac_cpp conftest.$ac_ext"
5853 case "(($ac_try" in
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5856 esac
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } >/dev/null && {
5865 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5866 test ! -s conftest.err
5867 }; then
5868 :
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5872
5873 # Broken: fails on valid input.
5874 continue
5875 fi
5876
5877 rm -f conftest.err conftest.$ac_ext
5878
5879 # OK, works on sane cases. Now check whether nonexistent headers
5880 # can be detected and how.
5881 cat >conftest.$ac_ext <<_ACEOF
5882 /* confdefs.h. */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5887 #include <ac_nonexistent.h>
5888 _ACEOF
5889 if { (ac_try="$ac_cpp conftest.$ac_ext"
5890 case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893 esac
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } >/dev/null && {
5902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5903 test ! -s conftest.err
5904 }; then
5905 # Broken: success on invalid input.
5906 continue
5907 else
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5910
5911 # Passes both tests.
5912 ac_preproc_ok=:
5913 break
5914 fi
5915
5916 rm -f conftest.err conftest.$ac_ext
5917
5918 done
5919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5920 rm -f conftest.err conftest.$ac_ext
5921 if $ac_preproc_ok; then
5922 :
5923 else
5924 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5925 See \`config.log' for more details." >&5
5926 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5927 See \`config.log' for more details." >&2;}
5928 { (exit 1); exit 1; }; }
5929 fi
5930
5931 ac_ext=cpp
5932 ac_cpp='$CXXCPP $CPPFLAGS'
5933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5936
5937 fi
5938
5939
5940 ac_ext=f
5941 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5942 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5944 if test -n "$ac_tool_prefix"; then
5945 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
5946 do
5947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5951 if test "${ac_cv_prog_F77+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954 if test -n "$F77"; then
5955 ac_cv_prog_F77="$F77" # Let the user override the test.
5956 else
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5964 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5967 fi
5968 done
5969 done
5970 IFS=$as_save_IFS
5971
5972 fi
5973 fi
5974 F77=$ac_cv_prog_F77
5975 if test -n "$F77"; then
5976 { echo "$as_me:$LINENO: result: $F77" >&5
5977 echo "${ECHO_T}$F77" >&6; }
5978 else
5979 { echo "$as_me:$LINENO: result: no" >&5
5980 echo "${ECHO_T}no" >&6; }
5981 fi
5982
5983
5984 test -n "$F77" && break
5985 done
5986 fi
5987 if test -z "$F77"; then
5988 ac_ct_F77=$F77
5989 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
5990 do
5991 # Extract the first word of "$ac_prog", so it can be a program name with args.
5992 set dummy $ac_prog; ac_word=$2
5993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5995 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998 if test -n "$ac_ct_F77"; then
5999 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6008 ac_cv_prog_ac_ct_F77="$ac_prog"
6009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6011 fi
6012 done
6013 done
6014 IFS=$as_save_IFS
6015
6016 fi
6017 fi
6018 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6019 if test -n "$ac_ct_F77"; then
6020 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6021 echo "${ECHO_T}$ac_ct_F77" >&6; }
6022 else
6023 { echo "$as_me:$LINENO: result: no" >&5
6024 echo "${ECHO_T}no" >&6; }
6025 fi
6026
6027
6028 test -n "$ac_ct_F77" && break
6029 done
6030
6031 if test "x$ac_ct_F77" = x; then
6032 F77=""
6033 else
6034 case $cross_compiling:$ac_tool_warned in
6035 yes:)
6036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6037 whose name does not start with the host triplet. If you think this
6038 configuration is useful to you, please write to autoconf@gnu.org." >&5
6039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6040 whose name does not start with the host triplet. If you think this
6041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6042 ac_tool_warned=yes ;;
6043 esac
6044 F77=$ac_ct_F77
6045 fi
6046 fi
6047
6048
6049 # Provide some information about the compiler.
6050 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6051 ac_compiler=`set X $ac_compile; echo $2`
6052 { (ac_try="$ac_compiler --version >&5"
6053 case "(($ac_try" in
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_compiler --version >&5") 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }
6062 { (ac_try="$ac_compiler -v >&5"
6063 case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066 esac
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_compiler -v >&5") 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }
6072 { (ac_try="$ac_compiler -V >&5"
6073 case "(($ac_try" in
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6076 esac
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_compiler -V >&5") 2>&5
6079 ac_status=$?
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }
6082 rm -f a.out
6083
6084 # If we don't use `.F' as extension, the preprocessor is not run on the
6085 # input file. (Note that this only needs to work for GNU compilers.)
6086 ac_save_ext=$ac_ext
6087 ac_ext=F
6088 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6089 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6090 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 cat >conftest.$ac_ext <<_ACEOF
6094 program main
6095 #ifndef __GNUC__
6096 choke me
6097 #endif
6098
6099 end
6100 _ACEOF
6101 rm -f conftest.$ac_objext
6102 if { (ac_try="$ac_compile"
6103 case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106 esac
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_compile") 2>conftest.er1
6109 ac_status=$?
6110 grep -v '^ *+' conftest.er1 >conftest.err
6111 rm -f conftest.er1
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } && {
6115 test -z "$ac_f77_werror_flag" ||
6116 test ! -s conftest.err
6117 } && test -s conftest.$ac_objext; then
6118 ac_compiler_gnu=yes
6119 else
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123 ac_compiler_gnu=no
6124 fi
6125
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6128
6129 fi
6130 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6131 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6132 ac_ext=$ac_save_ext
6133 ac_test_FFLAGS=${FFLAGS+set}
6134 ac_save_FFLAGS=$FFLAGS
6135 FFLAGS=
6136 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6137 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_f77_g+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141 FFLAGS=-g
6142 cat >conftest.$ac_ext <<_ACEOF
6143 program main
6144
6145 end
6146 _ACEOF
6147 rm -f conftest.$ac_objext
6148 if { (ac_try="$ac_compile"
6149 case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6152 esac
6153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_compile") 2>conftest.er1
6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } && {
6161 test -z "$ac_f77_werror_flag" ||
6162 test ! -s conftest.err
6163 } && test -s conftest.$ac_objext; then
6164 ac_cv_prog_f77_g=yes
6165 else
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169 ac_cv_prog_f77_g=no
6170 fi
6171
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173
6174 fi
6175 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6176 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6177 if test "$ac_test_FFLAGS" = set; then
6178 FFLAGS=$ac_save_FFLAGS
6179 elif test $ac_cv_prog_f77_g = yes; then
6180 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6181 FFLAGS="-g -O2"
6182 else
6183 FFLAGS="-g"
6184 fi
6185 else
6186 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6187 FFLAGS="-O2"
6188 else
6189 FFLAGS=
6190 fi
6191 fi
6192
6193 G77=`test $ac_compiler_gnu = yes && echo yes`
6194 ac_ext=c
6195 ac_cpp='$CPP $CPPFLAGS'
6196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6199
6200
6201
6202 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6203
6204 # find the maximum length of command line arguments
6205 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6206 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6207 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210 i=0
6211 teststring="ABCD"
6212
6213 case $build_os in
6214 msdosdjgpp*)
6215 # On DJGPP, this test can blow up pretty badly due to problems in libc
6216 # (any single argument exceeding 2000 bytes causes a buffer overrun
6217 # during glob expansion). Even if it were fixed, the result of this
6218 # check would be larger than it should be.
6219 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6220 ;;
6221
6222 gnu*)
6223 # Under GNU Hurd, this test is not required because there is
6224 # no limit to the length of command line arguments.
6225 # Libtool will interpret -1 as no limit whatsoever
6226 lt_cv_sys_max_cmd_len=-1;
6227 ;;
6228
6229 cygwin* | mingw*)
6230 # On Win9x/ME, this test blows up -- it succeeds, but takes
6231 # about 5 minutes as the teststring grows exponentially.
6232 # Worse, since 9x/ME are not pre-emptively multitasking,
6233 # you end up with a "frozen" computer, even though with patience
6234 # the test eventually succeeds (with a max line length of 256k).
6235 # Instead, let's just punt: use the minimum linelength reported by
6236 # all of the supported platforms: 8192 (on NT/2K/XP).
6237 lt_cv_sys_max_cmd_len=8192;
6238 ;;
6239
6240 amigaos*)
6241 # On AmigaOS with pdksh, this test takes hours, literally.
6242 # So we just punt and use a minimum line length of 8192.
6243 lt_cv_sys_max_cmd_len=8192;
6244 ;;
6245
6246 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6247 # This has been around since 386BSD, at least. Likely further.
6248 if test -x /sbin/sysctl; then
6249 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6250 elif test -x /usr/sbin/sysctl; then
6251 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6252 else
6253 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6254 fi
6255 # And add a safety zone
6256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6258 ;;
6259
6260 interix*)
6261 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6262 lt_cv_sys_max_cmd_len=196608
6263 ;;
6264
6265 osf*)
6266 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6267 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6268 # nice to cause kernel panics so lets avoid the loop below.
6269 # First set a reasonable default.
6270 lt_cv_sys_max_cmd_len=16384
6271 #
6272 if test -x /sbin/sysconfig; then
6273 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6274 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6275 esac
6276 fi
6277 ;;
6278 sco3.2v5*)
6279 lt_cv_sys_max_cmd_len=102400
6280 ;;
6281 sysv5* | sco5v6* | sysv4.2uw2*)
6282 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6283 if test -n "$kargmax"; then
6284 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6285 else
6286 lt_cv_sys_max_cmd_len=32768
6287 fi
6288 ;;
6289 *)
6290 # If test is not a shell built-in, we'll probably end up computing a
6291 # maximum length that is only half of the actual maximum length, but
6292 # we can't tell.
6293 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6294 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6295 = "XX$teststring") >/dev/null 2>&1 &&
6296 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6297 lt_cv_sys_max_cmd_len=$new_result &&
6298 test $i != 17 # 1/2 MB should be enough
6299 do
6300 i=`expr $i + 1`
6301 teststring=$teststring$teststring
6302 done
6303 teststring=
6304 # Add a significant safety factor because C++ compilers can tack on massive
6305 # amounts of additional arguments before passing them to the linker.
6306 # It appears as though 1/2 is a usable value.
6307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6308 ;;
6309 esac
6310
6311 fi
6312
6313 if test -n $lt_cv_sys_max_cmd_len ; then
6314 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6315 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6316 else
6317 { echo "$as_me:$LINENO: result: none" >&5
6318 echo "${ECHO_T}none" >&6; }
6319 fi
6320
6321
6322
6323
6324 # Check for command to grab the raw symbol name followed by C symbol from nm.
6325 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6326 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6327 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330
6331 # These are sane defaults that work on at least a few old systems.
6332 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6333
6334 # Character class describing NM global symbol codes.
6335 symcode='[BCDEGRST]'
6336
6337 # Regexp to match symbols that can be accessed directly from C.
6338 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6339
6340 # Transform an extracted symbol line into a proper C declaration
6341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6342
6343 # Transform an extracted symbol line into symbol name and symbol address
6344 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'"
6345
6346 # Define system-specific variables.
6347 case $host_os in
6348 aix*)
6349 symcode='[BCDT]'
6350 ;;
6351 cygwin* | mingw* | pw32*)
6352 symcode='[ABCDGISTW]'
6353 ;;
6354 hpux*) # Its linker distinguishes data from code symbols
6355 if test "$host_cpu" = ia64; then
6356 symcode='[ABCDEGRST]'
6357 fi
6358 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6359 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'"
6360 ;;
6361 linux*)
6362 if test "$host_cpu" = ia64; then
6363 symcode='[ABCDGIRSTW]'
6364 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6365 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'"
6366 fi
6367 ;;
6368 irix* | nonstopux*)
6369 symcode='[BCDEGRST]'
6370 ;;
6371 osf*)
6372 symcode='[BCDEGQRST]'
6373 ;;
6374 solaris*)
6375 symcode='[BDRT]'
6376 ;;
6377 sco3.2v5*)
6378 symcode='[DT]'
6379 ;;
6380 sysv4.2uw2*)
6381 symcode='[DT]'
6382 ;;
6383 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6384 symcode='[ABDT]'
6385 ;;
6386 sysv4)
6387 symcode='[DFNSTU]'
6388 ;;
6389 esac
6390
6391 # Handle CRLF in mingw tool chain
6392 opt_cr=
6393 case $build_os in
6394 mingw*)
6395 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6396 ;;
6397 esac
6398
6399 # If we're using GNU nm, then use its standard symbol codes.
6400 case `$NM -V 2>&1` in
6401 *GNU* | *'with BFD'*)
6402 symcode='[ABCDGIRSTW]' ;;
6403 esac
6404
6405 # Try without a prefix undercore, then with it.
6406 for ac_symprfx in "" "_"; do
6407
6408 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6409 symxfrm="\\1 $ac_symprfx\\2 \\2"
6410
6411 # Write the raw and C identifiers.
6412 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6413
6414 # Check to see that the pipe works correctly.
6415 pipe_works=no
6416
6417 rm -f conftest*
6418 cat > conftest.$ac_ext <<EOF
6419 #ifdef __cplusplus
6420 extern "C" {
6421 #endif
6422 char nm_test_var;
6423 void nm_test_func(){}
6424 #ifdef __cplusplus
6425 }
6426 #endif
6427 int main(){nm_test_var='a';nm_test_func();return(0);}
6428 EOF
6429
6430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431 (eval $ac_compile) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; then
6435 # Now try to grab the symbols.
6436 nlist=conftest.nm
6437 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6438 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } && test -s "$nlist"; then
6442 # Try sorting and uniquifying the output.
6443 if sort "$nlist" | uniq > "$nlist"T; then
6444 mv -f "$nlist"T "$nlist"
6445 else
6446 rm -f "$nlist"T
6447 fi
6448
6449 # Make sure that we snagged all the symbols we need.
6450 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6451 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6452 cat <<EOF > conftest.$ac_ext
6453 #ifdef __cplusplus
6454 extern "C" {
6455 #endif
6456
6457 EOF
6458 # Now generate the symbol file.
6459 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6460
6461 cat <<EOF >> conftest.$ac_ext
6462 #if defined (__STDC__) && __STDC__
6463 # define lt_ptr_t void *
6464 #else
6465 # define lt_ptr_t char *
6466 # define const
6467 #endif
6468
6469 /* The mapping between symbol names and symbols. */
6470 const struct {
6471 const char *name;
6472 lt_ptr_t address;
6473 }
6474 lt_preloaded_symbols[] =
6475 {
6476 EOF
6477 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6478 cat <<\EOF >> conftest.$ac_ext
6479 {0, (lt_ptr_t) 0}
6480 };
6481
6482 #ifdef __cplusplus
6483 }
6484 #endif
6485 EOF
6486 # Now try linking the two files.
6487 mv conftest.$ac_objext conftstm.$ac_objext
6488 lt_save_LIBS="$LIBS"
6489 lt_save_CFLAGS="$CFLAGS"
6490 LIBS="conftstm.$ac_objext"
6491 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493 (eval $ac_link) 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6497 pipe_works=yes
6498 fi
6499 LIBS="$lt_save_LIBS"
6500 CFLAGS="$lt_save_CFLAGS"
6501 else
6502 echo "cannot find nm_test_func in $nlist" >&5
6503 fi
6504 else
6505 echo "cannot find nm_test_var in $nlist" >&5
6506 fi
6507 else
6508 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6509 fi
6510 else
6511 echo "$progname: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6513 fi
6514 rm -f conftest* conftst*
6515
6516 # Do not use the global_symbol_pipe unless it works.
6517 if test "$pipe_works" = yes; then
6518 break
6519 else
6520 lt_cv_sys_global_symbol_pipe=
6521 fi
6522 done
6523
6524 fi
6525
6526 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6527 lt_cv_sys_global_symbol_to_cdecl=
6528 fi
6529 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6530 { echo "$as_me:$LINENO: result: failed" >&5
6531 echo "${ECHO_T}failed" >&6; }
6532 else
6533 { echo "$as_me:$LINENO: result: ok" >&5
6534 echo "${ECHO_T}ok" >&6; }
6535 fi
6536
6537 { echo "$as_me:$LINENO: checking for objdir" >&5
6538 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6539 if test "${lt_cv_objdir+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542 rm -f .libs 2>/dev/null
6543 mkdir .libs 2>/dev/null
6544 if test -d .libs; then
6545 lt_cv_objdir=.libs
6546 else
6547 # MS-DOS does not allow filenames that begin with a dot.
6548 lt_cv_objdir=_libs
6549 fi
6550 rmdir .libs 2>/dev/null
6551 fi
6552 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6553 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6554 objdir=$lt_cv_objdir
6555
6556
6557
6558
6559
6560 case $host_os in
6561 aix3*)
6562 # AIX sometimes has problems with the GCC collect2 program. For some
6563 # reason, if we set the COLLECT_NAMES environment variable, the problems
6564 # vanish in a puff of smoke.
6565 if test "X${COLLECT_NAMES+set}" != Xset; then
6566 COLLECT_NAMES=
6567 export COLLECT_NAMES
6568 fi
6569 ;;
6570 esac
6571
6572 # Sed substitution that helps us do robust quoting. It backslashifies
6573 # metacharacters that are still active within double-quoted strings.
6574 Xsed='sed -e 1s/^X//'
6575 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6576
6577 # Same as above, but do not quote variable references.
6578 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6579
6580 # Sed substitution to delay expansion of an escaped shell variable in a
6581 # double_quote_subst'ed string.
6582 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6583
6584 # Sed substitution to avoid accidental globbing in evaled expressions
6585 no_glob_subst='s/\*/\\\*/g'
6586
6587 # Constants:
6588 rm="rm -f"
6589
6590 # Global variables:
6591 default_ofile=libtool
6592 can_build_shared=yes
6593
6594 # All known linkers require a `.a' archive for static linking (except MSVC,
6595 # which needs '.lib').
6596 libext=a
6597 ltmain="$ac_aux_dir/ltmain.sh"
6598 ofile="$default_ofile"
6599 with_gnu_ld="$lt_cv_prog_gnu_ld"
6600
6601 if test -n "$ac_tool_prefix"; then
6602 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6603 set dummy ${ac_tool_prefix}ar; ac_word=$2
6604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6606 if test "${ac_cv_prog_AR+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609 if test -n "$AR"; then
6610 ac_cv_prog_AR="$AR" # Let the user override the test.
6611 else
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_prog_AR="${ac_tool_prefix}ar"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 break 2
6622 fi
6623 done
6624 done
6625 IFS=$as_save_IFS
6626
6627 fi
6628 fi
6629 AR=$ac_cv_prog_AR
6630 if test -n "$AR"; then
6631 { echo "$as_me:$LINENO: result: $AR" >&5
6632 echo "${ECHO_T}$AR" >&6; }
6633 else
6634 { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6636 fi
6637
6638
6639 fi
6640 if test -z "$ac_cv_prog_AR"; then
6641 ac_ct_AR=$AR
6642 # Extract the first word of "ar", so it can be a program name with args.
6643 set dummy ar; ac_word=$2
6644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6646 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649 if test -n "$ac_ct_AR"; then
6650 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6651 else
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_prog_ac_ct_AR="ar"
6660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663 done
6664 done
6665 IFS=$as_save_IFS
6666
6667 fi
6668 fi
6669 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6670 if test -n "$ac_ct_AR"; then
6671 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6672 echo "${ECHO_T}$ac_ct_AR" >&6; }
6673 else
6674 { echo "$as_me:$LINENO: result: no" >&5
6675 echo "${ECHO_T}no" >&6; }
6676 fi
6677
6678 if test "x$ac_ct_AR" = x; then
6679 AR="false"
6680 else
6681 case $cross_compiling:$ac_tool_warned in
6682 yes:)
6683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6684 whose name does not start with the host triplet. If you think this
6685 configuration is useful to you, please write to autoconf@gnu.org." >&5
6686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6687 whose name does not start with the host triplet. If you think this
6688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6689 ac_tool_warned=yes ;;
6690 esac
6691 AR=$ac_ct_AR
6692 fi
6693 else
6694 AR="$ac_cv_prog_AR"
6695 fi
6696
6697 if test -n "$ac_tool_prefix"; then
6698 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6699 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_prog_RANLIB+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705 if test -n "$RANLIB"; then
6706 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6718 fi
6719 done
6720 done
6721 IFS=$as_save_IFS
6722
6723 fi
6724 fi
6725 RANLIB=$ac_cv_prog_RANLIB
6726 if test -n "$RANLIB"; then
6727 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6728 echo "${ECHO_T}$RANLIB" >&6; }
6729 else
6730 { echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6; }
6732 fi
6733
6734
6735 fi
6736 if test -z "$ac_cv_prog_RANLIB"; then
6737 ac_ct_RANLIB=$RANLIB
6738 # Extract the first word of "ranlib", so it can be a program name with args.
6739 set dummy ranlib; ac_word=$2
6740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745 if test -n "$ac_ct_RANLIB"; then
6746 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6747 else
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_prog_ac_ct_RANLIB="ranlib"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759 done
6760 done
6761 IFS=$as_save_IFS
6762
6763 fi
6764 fi
6765 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6766 if test -n "$ac_ct_RANLIB"; then
6767 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6768 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6769 else
6770 { echo "$as_me:$LINENO: result: no" >&5
6771 echo "${ECHO_T}no" >&6; }
6772 fi
6773
6774 if test "x$ac_ct_RANLIB" = x; then
6775 RANLIB=":"
6776 else
6777 case $cross_compiling:$ac_tool_warned in
6778 yes:)
6779 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6780 whose name does not start with the host triplet. If you think this
6781 configuration is useful to you, please write to autoconf@gnu.org." >&5
6782 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6783 whose name does not start with the host triplet. If you think this
6784 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6785 ac_tool_warned=yes ;;
6786 esac
6787 RANLIB=$ac_ct_RANLIB
6788 fi
6789 else
6790 RANLIB="$ac_cv_prog_RANLIB"
6791 fi
6792
6793 if test -n "$ac_tool_prefix"; then
6794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6795 set dummy ${ac_tool_prefix}strip; ac_word=$2
6796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6798 if test "${ac_cv_prog_STRIP+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801 if test -n "$STRIP"; then
6802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 STRIP=$ac_cv_prog_STRIP
6822 if test -n "$STRIP"; then
6823 { echo "$as_me:$LINENO: result: $STRIP" >&5
6824 echo "${ECHO_T}$STRIP" >&6; }
6825 else
6826 { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6828 fi
6829
6830
6831 fi
6832 if test -z "$ac_cv_prog_STRIP"; then
6833 ac_ct_STRIP=$STRIP
6834 # Extract the first word of "strip", so it can be a program name with args.
6835 set dummy strip; ac_word=$2
6836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6838 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841 if test -n "$ac_ct_STRIP"; then
6842 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851 ac_cv_prog_ac_ct_STRIP="strip"
6852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855 done
6856 done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6862 if test -n "$ac_ct_STRIP"; then
6863 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6864 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6865 else
6866 { echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6; }
6868 fi
6869
6870 if test "x$ac_ct_STRIP" = x; then
6871 STRIP=":"
6872 else
6873 case $cross_compiling:$ac_tool_warned in
6874 yes:)
6875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6876 whose name does not start with the host triplet. If you think this
6877 configuration is useful to you, please write to autoconf@gnu.org." >&5
6878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6879 whose name does not start with the host triplet. If you think this
6880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6881 ac_tool_warned=yes ;;
6882 esac
6883 STRIP=$ac_ct_STRIP
6884 fi
6885 else
6886 STRIP="$ac_cv_prog_STRIP"
6887 fi
6888
6889
6890 old_CC="$CC"
6891 old_CFLAGS="$CFLAGS"
6892
6893 # Set sane defaults for various variables
6894 test -z "$AR" && AR=ar
6895 test -z "$AR_FLAGS" && AR_FLAGS=cru
6896 test -z "$AS" && AS=as
6897 test -z "$CC" && CC=cc
6898 test -z "$LTCC" && LTCC=$CC
6899 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6900 test -z "$DLLTOOL" && DLLTOOL=dlltool
6901 test -z "$LD" && LD=ld
6902 test -z "$LN_S" && LN_S="ln -s"
6903 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6904 test -z "$NM" && NM=nm
6905 test -z "$SED" && SED=sed
6906 test -z "$OBJDUMP" && OBJDUMP=objdump
6907 test -z "$RANLIB" && RANLIB=:
6908 test -z "$STRIP" && STRIP=:
6909 test -z "$ac_objext" && ac_objext=o
6910
6911 # Determine commands to create old-style static archives.
6912 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6913 old_postinstall_cmds='chmod 644 $oldlib'
6914 old_postuninstall_cmds=
6915
6916 if test -n "$RANLIB"; then
6917 case $host_os in
6918 openbsd*)
6919 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6920 ;;
6921 *)
6922 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6923 ;;
6924 esac
6925 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6926 fi
6927
6928 for cc_temp in $compiler""; do
6929 case $cc_temp in
6930 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6931 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6932 \-*) ;;
6933 *) break;;
6934 esac
6935 done
6936 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6937
6938
6939 # Only perform the check for file, if the check method requires it
6940 case $deplibs_check_method in
6941 file_magic*)
6942 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6943 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6944 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6945 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 else
6948 case $MAGIC_CMD in
6949 [\\/*] | ?:[\\/]*)
6950 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6951 ;;
6952 *)
6953 lt_save_MAGIC_CMD="$MAGIC_CMD"
6954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6955 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6956 for ac_dir in $ac_dummy; do
6957 IFS="$lt_save_ifs"
6958 test -z "$ac_dir" && ac_dir=.
6959 if test -f $ac_dir/${ac_tool_prefix}file; then
6960 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6961 if test -n "$file_magic_test_file"; then
6962 case $deplibs_check_method in
6963 "file_magic "*)
6964 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6966 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6967 $EGREP "$file_magic_regex" > /dev/null; then
6968 :
6969 else
6970 cat <<EOF 1>&2
6971
6972 *** Warning: the command libtool uses to detect shared libraries,
6973 *** $file_magic_cmd, produces output that libtool cannot recognize.
6974 *** The result is that libtool may fail to recognize shared libraries
6975 *** as such. This will affect the creation of libtool libraries that
6976 *** depend on shared libraries, but programs linked with such libtool
6977 *** libraries will work regardless of this problem. Nevertheless, you
6978 *** may want to report the problem to your system manager and/or to
6979 *** bug-libtool@gnu.org
6980
6981 EOF
6982 fi ;;
6983 esac
6984 fi
6985 break
6986 fi
6987 done
6988 IFS="$lt_save_ifs"
6989 MAGIC_CMD="$lt_save_MAGIC_CMD"
6990 ;;
6991 esac
6992 fi
6993
6994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6995 if test -n "$MAGIC_CMD"; then
6996 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6997 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6998 else
6999 { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7001 fi
7002
7003 if test -z "$lt_cv_path_MAGIC_CMD"; then
7004 if test -n "$ac_tool_prefix"; then
7005 { echo "$as_me:$LINENO: checking for file" >&5
7006 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7007 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010 case $MAGIC_CMD in
7011 [\\/*] | ?:[\\/]*)
7012 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7013 ;;
7014 *)
7015 lt_save_MAGIC_CMD="$MAGIC_CMD"
7016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7017 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7018 for ac_dir in $ac_dummy; do
7019 IFS="$lt_save_ifs"
7020 test -z "$ac_dir" && ac_dir=.
7021 if test -f $ac_dir/file; then
7022 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7023 if test -n "$file_magic_test_file"; then
7024 case $deplibs_check_method in
7025 "file_magic "*)
7026 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7028 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7029 $EGREP "$file_magic_regex" > /dev/null; then
7030 :
7031 else
7032 cat <<EOF 1>&2
7033
7034 *** Warning: the command libtool uses to detect shared libraries,
7035 *** $file_magic_cmd, produces output that libtool cannot recognize.
7036 *** The result is that libtool may fail to recognize shared libraries
7037 *** as such. This will affect the creation of libtool libraries that
7038 *** depend on shared libraries, but programs linked with such libtool
7039 *** libraries will work regardless of this problem. Nevertheless, you
7040 *** may want to report the problem to your system manager and/or to
7041 *** bug-libtool@gnu.org
7042
7043 EOF
7044 fi ;;
7045 esac
7046 fi
7047 break
7048 fi
7049 done
7050 IFS="$lt_save_ifs"
7051 MAGIC_CMD="$lt_save_MAGIC_CMD"
7052 ;;
7053 esac
7054 fi
7055
7056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7057 if test -n "$MAGIC_CMD"; then
7058 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7059 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7060 else
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7063 fi
7064
7065 else
7066 MAGIC_CMD=:
7067 fi
7068 fi
7069
7070 fi
7071 ;;
7072 esac
7073
7074 enable_dlopen=no
7075 enable_win32_dll=no
7076
7077 # Check whether --enable-libtool-lock was given.
7078 if test "${enable_libtool_lock+set}" = set; then
7079 enableval=$enable_libtool_lock;
7080 fi
7081
7082 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7083
7084
7085 # Check whether --with-pic was given.
7086 if test "${with_pic+set}" = set; then
7087 withval=$with_pic; pic_mode="$withval"
7088 else
7089 pic_mode=default
7090 fi
7091
7092 test -z "$pic_mode" && pic_mode=default
7093
7094 # Use C for the default configuration in the libtool script
7095 tagname=
7096 lt_save_CC="$CC"
7097 ac_ext=c
7098 ac_cpp='$CPP $CPPFLAGS'
7099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7102
7103
7104 # Source file extension for C test sources.
7105 ac_ext=c
7106
7107 # Object file extension for compiled C test sources.
7108 objext=o
7109 objext=$objext
7110
7111 # Code to be used in simple compile tests
7112 lt_simple_compile_test_code="int some_variable = 0;\n"
7113
7114 # Code to be used in simple link tests
7115 lt_simple_link_test_code='int main(){return(0);}\n'
7116
7117
7118 # If no C compiler was specified, use CC.
7119 LTCC=${LTCC-"$CC"}
7120
7121 # If no C compiler flags were specified, use CFLAGS.
7122 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7123
7124 # Allow CC to be a program name with arguments.
7125 compiler=$CC
7126
7127
7128 # save warnings/boilerplate of simple test code
7129 ac_outfile=conftest.$ac_objext
7130 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7131 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7132 _lt_compiler_boilerplate=`cat conftest.err`
7133 $rm conftest*
7134
7135 ac_outfile=conftest.$ac_objext
7136 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7137 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7138 _lt_linker_boilerplate=`cat conftest.err`
7139 $rm conftest*
7140
7141
7142
7143 lt_prog_compiler_no_builtin_flag=
7144
7145 if test "$GCC" = yes; then
7146 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7147
7148
7149 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7150 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7151 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154 lt_cv_prog_compiler_rtti_exceptions=no
7155 ac_outfile=conftest.$ac_objext
7156 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7157 lt_compiler_flag="-fno-rtti -fno-exceptions"
7158 # Insert the option either (1) after the last *FLAGS variable, or
7159 # (2) before a word containing "conftest.", or (3) at the end.
7160 # Note that $ac_compile itself does not contain backslashes and begins
7161 # with a dollar sign (not a hyphen), so the echo should work correctly.
7162 # The option is referenced via a variable to avoid confusing sed.
7163 lt_compile=`echo "$ac_compile" | $SED \
7164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7166 -e 's:$: $lt_compiler_flag:'`
7167 (eval echo "\"\$as_me:7167: $lt_compile\"" >&5)
7168 (eval "$lt_compile" 2>conftest.err)
7169 ac_status=$?
7170 cat conftest.err >&5
7171 echo "$as_me:7171: \$? = $ac_status" >&5
7172 if (exit $ac_status) && test -s "$ac_outfile"; then
7173 # The compiler can only warn and ignore the option if not recognized
7174 # So say no if there are warnings other than the usual output.
7175 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7177 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7178 lt_cv_prog_compiler_rtti_exceptions=yes
7179 fi
7180 fi
7181 $rm conftest*
7182
7183 fi
7184 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7185 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7186
7187 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7188 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7189 else
7190 :
7191 fi
7192
7193 fi
7194
7195 lt_prog_compiler_wl=
7196 lt_prog_compiler_pic=
7197 lt_prog_compiler_static=
7198
7199 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7200 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7201
7202 if test "$GCC" = yes; then
7203 lt_prog_compiler_wl='-Wl,'
7204 lt_prog_compiler_static='-static'
7205
7206 case $host_os in
7207 aix*)
7208 # All AIX code is PIC.
7209 if test "$host_cpu" = ia64; then
7210 # AIX 5 now supports IA64 processor
7211 lt_prog_compiler_static='-Bstatic'
7212 fi
7213 ;;
7214
7215 amigaos*)
7216 # FIXME: we need at least 68020 code to build shared libraries, but
7217 # adding the `-m68020' flag to GCC prevents building anything better,
7218 # like `-m68040'.
7219 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7220 ;;
7221
7222 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7223 # PIC is the default for these OSes.
7224 ;;
7225
7226 mingw* | pw32* | os2*)
7227 # This hack is so that the source file can tell whether it is being
7228 # built for inclusion in a dll (and should export symbols for example).
7229 lt_prog_compiler_pic='-DDLL_EXPORT'
7230 ;;
7231
7232 darwin* | rhapsody*)
7233 # PIC is the default on this platform
7234 # Common symbols not allowed in MH_DYLIB files
7235 lt_prog_compiler_pic='-fno-common'
7236 ;;
7237
7238 interix3*)
7239 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7240 # Instead, we relocate shared libraries at runtime.
7241 ;;
7242
7243 msdosdjgpp*)
7244 # Just because we use GCC doesn't mean we suddenly get shared libraries
7245 # on systems that don't support them.
7246 lt_prog_compiler_can_build_shared=no
7247 enable_shared=no
7248 ;;
7249
7250 sysv4*MP*)
7251 if test -d /usr/nec; then
7252 lt_prog_compiler_pic=-Kconform_pic
7253 fi
7254 ;;
7255
7256 hpux*)
7257 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7258 # not for PA HP-UX.
7259 case $host_cpu in
7260 hppa*64*|ia64*)
7261 # +Z the default
7262 ;;
7263 *)
7264 lt_prog_compiler_pic='-fPIC'
7265 ;;
7266 esac
7267 ;;
7268
7269 *)
7270 lt_prog_compiler_pic='-fPIC'
7271 ;;
7272 esac
7273 else
7274 # PORTME Check for flag to pass linker flags through the system compiler.
7275 case $host_os in
7276 aix*)
7277 lt_prog_compiler_wl='-Wl,'
7278 if test "$host_cpu" = ia64; then
7279 # AIX 5 now supports IA64 processor
7280 lt_prog_compiler_static='-Bstatic'
7281 else
7282 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7283 fi
7284 ;;
7285 darwin*)
7286 # PIC is the default on this platform
7287 # Common symbols not allowed in MH_DYLIB files
7288 case $cc_basename in
7289 xlc*)
7290 lt_prog_compiler_pic='-qnocommon'
7291 lt_prog_compiler_wl='-Wl,'
7292 ;;
7293 esac
7294 ;;
7295
7296 mingw* | pw32* | os2*)
7297 # This hack is so that the source file can tell whether it is being
7298 # built for inclusion in a dll (and should export symbols for example).
7299 lt_prog_compiler_pic='-DDLL_EXPORT'
7300 ;;
7301
7302 hpux9* | hpux10* | hpux11*)
7303 lt_prog_compiler_wl='-Wl,'
7304 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7305 # not for PA HP-UX.
7306 case $host_cpu in
7307 hppa*64*|ia64*)
7308 # +Z the default
7309 ;;
7310 *)
7311 lt_prog_compiler_pic='+Z'
7312 ;;
7313 esac
7314 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7315 lt_prog_compiler_static='${wl}-a ${wl}archive'
7316 ;;
7317
7318 irix5* | irix6* | nonstopux*)
7319 lt_prog_compiler_wl='-Wl,'
7320 # PIC (with -KPIC) is the default.
7321 lt_prog_compiler_static='-non_shared'
7322 ;;
7323
7324 newsos6)
7325 lt_prog_compiler_pic='-KPIC'
7326 lt_prog_compiler_static='-Bstatic'
7327 ;;
7328
7329 linux*)
7330 case $cc_basename in
7331 icc* | ecc*)
7332 lt_prog_compiler_wl='-Wl,'
7333 lt_prog_compiler_pic='-KPIC'
7334 lt_prog_compiler_static='-static'
7335 ;;
7336 pgcc* | pgf77* | pgf90* | pgf95*)
7337 # Portland Group compilers (*not* the Pentium gcc compiler,
7338 # which looks to be a dead project)
7339 lt_prog_compiler_wl='-Wl,'
7340 lt_prog_compiler_pic='-fpic'
7341 lt_prog_compiler_static='-Bstatic'
7342 ;;
7343 ccc*)
7344 lt_prog_compiler_wl='-Wl,'
7345 # All Alpha code is PIC.
7346 lt_prog_compiler_static='-non_shared'
7347 ;;
7348 esac
7349 ;;
7350
7351 osf3* | osf4* | osf5*)
7352 lt_prog_compiler_wl='-Wl,'
7353 # All OSF/1 code is PIC.
7354 lt_prog_compiler_static='-non_shared'
7355 ;;
7356
7357 solaris*)
7358 lt_prog_compiler_pic='-KPIC'
7359 lt_prog_compiler_static='-Bstatic'
7360 case $cc_basename in
7361 f77* | f90* | f95*)
7362 lt_prog_compiler_wl='-Qoption ld ';;
7363 *)
7364 lt_prog_compiler_wl='-Wl,';;
7365 esac
7366 ;;
7367
7368 sunos4*)
7369 lt_prog_compiler_wl='-Qoption ld '
7370 lt_prog_compiler_pic='-PIC'
7371 lt_prog_compiler_static='-Bstatic'
7372 ;;
7373
7374 sysv4 | sysv4.2uw2* | sysv4.3*)
7375 lt_prog_compiler_wl='-Wl,'
7376 lt_prog_compiler_pic='-KPIC'
7377 lt_prog_compiler_static='-Bstatic'
7378 ;;
7379
7380 sysv4*MP*)
7381 if test -d /usr/nec ;then
7382 lt_prog_compiler_pic='-Kconform_pic'
7383 lt_prog_compiler_static='-Bstatic'
7384 fi
7385 ;;
7386
7387 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7388 lt_prog_compiler_wl='-Wl,'
7389 lt_prog_compiler_pic='-KPIC'
7390 lt_prog_compiler_static='-Bstatic'
7391 ;;
7392
7393 unicos*)
7394 lt_prog_compiler_wl='-Wl,'
7395 lt_prog_compiler_can_build_shared=no
7396 ;;
7397
7398 uts4*)
7399 lt_prog_compiler_pic='-pic'
7400 lt_prog_compiler_static='-Bstatic'
7401 ;;
7402
7403 *)
7404 lt_prog_compiler_can_build_shared=no
7405 ;;
7406 esac
7407 fi
7408
7409 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7410 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7411
7412 #
7413 # Check to make sure the PIC flag actually works.
7414 #
7415 if test -n "$lt_prog_compiler_pic"; then
7416
7417 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7418 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7419 if test "${lt_prog_compiler_pic_works+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422 lt_prog_compiler_pic_works=no
7423 ac_outfile=conftest.$ac_objext
7424 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7425 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7426 # Insert the option either (1) after the last *FLAGS variable, or
7427 # (2) before a word containing "conftest.", or (3) at the end.
7428 # Note that $ac_compile itself does not contain backslashes and begins
7429 # with a dollar sign (not a hyphen), so the echo should work correctly.
7430 # The option is referenced via a variable to avoid confusing sed.
7431 lt_compile=`echo "$ac_compile" | $SED \
7432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7434 -e 's:$: $lt_compiler_flag:'`
7435 (eval echo "\"\$as_me:7435: $lt_compile\"" >&5)
7436 (eval "$lt_compile" 2>conftest.err)
7437 ac_status=$?
7438 cat conftest.err >&5
7439 echo "$as_me:7439: \$? = $ac_status" >&5
7440 if (exit $ac_status) && test -s "$ac_outfile"; then
7441 # The compiler can only warn and ignore the option if not recognized
7442 # So say no if there are warnings other than the usual output.
7443 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7446 lt_prog_compiler_pic_works=yes
7447 fi
7448 fi
7449 $rm conftest*
7450
7451 fi
7452 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7453 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7454
7455 if test x"$lt_prog_compiler_pic_works" = xyes; then
7456 case $lt_prog_compiler_pic in
7457 "" | " "*) ;;
7458 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7459 esac
7460 else
7461 lt_prog_compiler_pic=
7462 lt_prog_compiler_can_build_shared=no
7463 fi
7464
7465 fi
7466 case $host_os in
7467 # For platforms which do not support PIC, -DPIC is meaningless:
7468 *djgpp*)
7469 lt_prog_compiler_pic=
7470 ;;
7471 *)
7472 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7473 ;;
7474 esac
7475
7476 #
7477 # Check to make sure the static flag actually works.
7478 #
7479 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7480 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7481 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7482 if test "${lt_prog_compiler_static_works+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485 lt_prog_compiler_static_works=no
7486 save_LDFLAGS="$LDFLAGS"
7487 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7488 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7489 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7490 # The linker can only warn and ignore the option if not recognized
7491 # So say no if there are warnings
7492 if test -s conftest.err; then
7493 # Append any errors to the config.log.
7494 cat conftest.err 1>&5
7495 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7497 if diff conftest.exp conftest.er2 >/dev/null; then
7498 lt_prog_compiler_static_works=yes
7499 fi
7500 else
7501 lt_prog_compiler_static_works=yes
7502 fi
7503 fi
7504 $rm conftest*
7505 LDFLAGS="$save_LDFLAGS"
7506
7507 fi
7508 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7509 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7510
7511 if test x"$lt_prog_compiler_static_works" = xyes; then
7512 :
7513 else
7514 lt_prog_compiler_static=
7515 fi
7516
7517
7518 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7519 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7520 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523 lt_cv_prog_compiler_c_o=no
7524 $rm -r conftest 2>/dev/null
7525 mkdir conftest
7526 cd conftest
7527 mkdir out
7528 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7529
7530 lt_compiler_flag="-o out/conftest2.$ac_objext"
7531 # Insert the option either (1) after the last *FLAGS variable, or
7532 # (2) before a word containing "conftest.", or (3) at the end.
7533 # Note that $ac_compile itself does not contain backslashes and begins
7534 # with a dollar sign (not a hyphen), so the echo should work correctly.
7535 lt_compile=`echo "$ac_compile" | $SED \
7536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7538 -e 's:$: $lt_compiler_flag:'`
7539 (eval echo "\"\$as_me:7539: $lt_compile\"" >&5)
7540 (eval "$lt_compile" 2>out/conftest.err)
7541 ac_status=$?
7542 cat out/conftest.err >&5
7543 echo "$as_me:7543: \$? = $ac_status" >&5
7544 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7545 then
7546 # The compiler can only warn and ignore the option if not recognized
7547 # So say no if there are warnings
7548 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7549 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7550 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7551 lt_cv_prog_compiler_c_o=yes
7552 fi
7553 fi
7554 chmod u+w . 2>&5
7555 $rm conftest*
7556 # SGI C++ compiler will create directory out/ii_files/ for
7557 # template instantiation
7558 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7559 $rm out/* && rmdir out
7560 cd ..
7561 rmdir conftest
7562 $rm conftest*
7563
7564 fi
7565 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7566 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7567
7568
7569 hard_links="nottested"
7570 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7571 # do not overwrite the value of need_locks provided by the user
7572 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7573 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7574 hard_links=yes
7575 $rm conftest*
7576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7577 touch conftest.a
7578 ln conftest.a conftest.b 2>&5 || hard_links=no
7579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7580 { echo "$as_me:$LINENO: result: $hard_links" >&5
7581 echo "${ECHO_T}$hard_links" >&6; }
7582 if test "$hard_links" = no; then
7583 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7584 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7585 need_locks=warn
7586 fi
7587 else
7588 need_locks=no
7589 fi
7590
7591 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7592 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7593
7594 runpath_var=
7595 allow_undefined_flag=
7596 enable_shared_with_static_runtimes=no
7597 archive_cmds=
7598 archive_expsym_cmds=
7599 old_archive_From_new_cmds=
7600 old_archive_from_expsyms_cmds=
7601 export_dynamic_flag_spec=
7602 whole_archive_flag_spec=
7603 thread_safe_flag_spec=
7604 hardcode_libdir_flag_spec=
7605 hardcode_libdir_flag_spec_ld=
7606 hardcode_libdir_separator=
7607 hardcode_direct=no
7608 hardcode_minus_L=no
7609 hardcode_shlibpath_var=unsupported
7610 link_all_deplibs=unknown
7611 hardcode_automatic=no
7612 module_cmds=
7613 module_expsym_cmds=
7614 always_export_symbols=no
7615 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7616 # include_expsyms should be a list of space-separated symbols to be *always*
7617 # included in the symbol list
7618 include_expsyms=
7619 # exclude_expsyms can be an extended regexp of symbols to exclude
7620 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7621 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7622 # as well as any symbol that contains `d'.
7623 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7624 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7625 # platforms (ab)use it in PIC code, but their linkers get confused if
7626 # the symbol is explicitly referenced. Since portable code cannot
7627 # rely on this symbol name, it's probably fine to never include it in
7628 # preloaded symbol tables.
7629 extract_expsyms_cmds=
7630 # Just being paranoid about ensuring that cc_basename is set.
7631 for cc_temp in $compiler""; do
7632 case $cc_temp in
7633 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7634 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7635 \-*) ;;
7636 *) break;;
7637 esac
7638 done
7639 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7640
7641 case $host_os in
7642 cygwin* | mingw* | pw32*)
7643 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7644 # When not using gcc, we currently assume that we are using
7645 # Microsoft Visual C++.
7646 if test "$GCC" != yes; then
7647 with_gnu_ld=no
7648 fi
7649 ;;
7650 interix*)
7651 # we just hope/assume this is gcc and not c89 (= MSVC++)
7652 with_gnu_ld=yes
7653 ;;
7654 openbsd*)
7655 with_gnu_ld=no
7656 ;;
7657 esac
7658
7659 ld_shlibs=yes
7660 if test "$with_gnu_ld" = yes; then
7661 # If archive_cmds runs LD, not CC, wlarc should be empty
7662 wlarc='${wl}'
7663
7664 # Set some defaults for GNU ld with shared library support. These
7665 # are reset later if shared libraries are not supported. Putting them
7666 # here allows them to be overridden if necessary.
7667 runpath_var=LD_RUN_PATH
7668 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7669 export_dynamic_flag_spec='${wl}--export-dynamic'
7670 # ancient GNU ld didn't support --whole-archive et. al.
7671 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7672 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7673 else
7674 whole_archive_flag_spec=
7675 fi
7676 supports_anon_versioning=no
7677 case `$LD -v 2>/dev/null` in
7678 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7679 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7680 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7681 *\ 2.11.*) ;; # other 2.11 versions
7682 *) supports_anon_versioning=yes ;;
7683 esac
7684
7685 # See if GNU ld supports shared libraries.
7686 case $host_os in
7687 aix3* | aix4* | aix5*)
7688 # On AIX/PPC, the GNU linker is very broken
7689 if test "$host_cpu" != ia64; then
7690 ld_shlibs=no
7691 cat <<EOF 1>&2
7692
7693 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7694 *** to be unable to reliably create shared libraries on AIX.
7695 *** Therefore, libtool is disabling shared libraries support. If you
7696 *** really care for shared libraries, you may want to modify your PATH
7697 *** so that a non-GNU linker is found, and then restart.
7698
7699 EOF
7700 fi
7701 ;;
7702
7703 amigaos*)
7704 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)'
7705 hardcode_libdir_flag_spec='-L$libdir'
7706 hardcode_minus_L=yes
7707
7708 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7709 # that the semantics of dynamic libraries on AmigaOS, at least up
7710 # to version 4, is to share data among multiple programs linked
7711 # with the same dynamic library. Since this doesn't match the
7712 # behavior of shared libraries on other platforms, we can't use
7713 # them.
7714 ld_shlibs=no
7715 ;;
7716
7717 beos*)
7718 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7719 allow_undefined_flag=unsupported
7720 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7721 # support --undefined. This deserves some investigation. FIXME
7722 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7723 else
7724 ld_shlibs=no
7725 fi
7726 ;;
7727
7728 cygwin* | mingw* | pw32*)
7729 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7730 # as there is no search path for DLLs.
7731 hardcode_libdir_flag_spec='-L$libdir'
7732 allow_undefined_flag=unsupported
7733 always_export_symbols=no
7734 enable_shared_with_static_runtimes=yes
7735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7736
7737 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7739 # If the export-symbols file already is a .def file (1st line
7740 # is EXPORTS), use it as is; otherwise, prepend...
7741 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7742 cp $export_symbols $output_objdir/$soname.def;
7743 else
7744 echo EXPORTS > $output_objdir/$soname.def;
7745 cat $export_symbols >> $output_objdir/$soname.def;
7746 fi~
7747 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7748 else
7749 ld_shlibs=no
7750 fi
7751 ;;
7752
7753 interix3*)
7754 hardcode_direct=no
7755 hardcode_shlibpath_var=no
7756 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7757 export_dynamic_flag_spec='${wl}-E'
7758 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7759 # Instead, shared libraries are loaded at an image base (0x10000000 by
7760 # default) and relocated if they conflict, which is a slow very memory
7761 # consuming and fragmenting process. To avoid this, we pick a random,
7762 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7763 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7764 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7765 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'
7766 ;;
7767
7768 linux*)
7769 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7770 tmp_addflag=
7771 case $cc_basename,$host_cpu in
7772 pgcc*) # Portland Group C compiler
7773 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'
7774 tmp_addflag=' $pic_flag'
7775 ;;
7776 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7777 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'
7778 tmp_addflag=' $pic_flag -Mnomain' ;;
7779 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7780 tmp_addflag=' -i_dynamic' ;;
7781 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7782 tmp_addflag=' -i_dynamic -nofor_main' ;;
7783 ifc* | ifort*) # Intel Fortran compiler
7784 tmp_addflag=' -nofor_main' ;;
7785 esac
7786 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7787
7788 if test $supports_anon_versioning = yes; then
7789 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7790 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7791 $echo "local: *; };" >> $output_objdir/$libname.ver~
7792 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7793 fi
7794 else
7795 ld_shlibs=no
7796 fi
7797 ;;
7798
7799 netbsd*)
7800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7801 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7802 wlarc=
7803 else
7804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7805 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7806 fi
7807 ;;
7808
7809 solaris*)
7810 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7811 ld_shlibs=no
7812 cat <<EOF 1>&2
7813
7814 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7815 *** create shared libraries on Solaris systems. Therefore, libtool
7816 *** is disabling shared libraries support. We urge you to upgrade GNU
7817 *** binutils to release 2.9.1 or newer. Another option is to modify
7818 *** your PATH or compiler configuration so that the native linker is
7819 *** used, and then restart.
7820
7821 EOF
7822 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7825 else
7826 ld_shlibs=no
7827 fi
7828 ;;
7829
7830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7831 case `$LD -v 2>&1` in
7832 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7833 ld_shlibs=no
7834 cat <<_LT_EOF 1>&2
7835
7836 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7837 *** reliably create shared libraries on SCO systems. Therefore, libtool
7838 *** is disabling shared libraries support. We urge you to upgrade GNU
7839 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7840 *** your PATH or compiler configuration so that the native linker is
7841 *** used, and then restart.
7842
7843 _LT_EOF
7844 ;;
7845 *)
7846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7847 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7850 else
7851 ld_shlibs=no
7852 fi
7853 ;;
7854 esac
7855 ;;
7856
7857 sunos4*)
7858 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7859 wlarc=
7860 hardcode_direct=yes
7861 hardcode_shlibpath_var=no
7862 ;;
7863
7864 *)
7865 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7867 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7868 else
7869 ld_shlibs=no
7870 fi
7871 ;;
7872 esac
7873
7874 if test "$ld_shlibs" = no; then
7875 runpath_var=
7876 hardcode_libdir_flag_spec=
7877 export_dynamic_flag_spec=
7878 whole_archive_flag_spec=
7879 fi
7880 else
7881 # PORTME fill in a description of your system's linker (not GNU ld)
7882 case $host_os in
7883 aix3*)
7884 allow_undefined_flag=unsupported
7885 always_export_symbols=yes
7886 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'
7887 # Note: this linker hardcodes the directories in LIBPATH if there
7888 # are no directories specified by -L.
7889 hardcode_minus_L=yes
7890 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7891 # Neither direct hardcoding nor static linking is supported with a
7892 # broken collect2.
7893 hardcode_direct=unsupported
7894 fi
7895 ;;
7896
7897 aix4* | aix5*)
7898 if test "$host_cpu" = ia64; then
7899 # On IA64, the linker does run time linking by default, so we don't
7900 # have to do anything special.
7901 aix_use_runtimelinking=no
7902 exp_sym_flag='-Bexport'
7903 no_entry_flag=""
7904 else
7905 # If we're using GNU nm, then we don't want the "-C" option.
7906 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7907 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7908 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'
7909 else
7910 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'
7911 fi
7912 aix_use_runtimelinking=no
7913
7914 # Test if we are trying to use run time linking or normal
7915 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7916 # need to do runtime linking.
7917 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7918 for ld_flag in $LDFLAGS; do
7919 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7920 aix_use_runtimelinking=yes
7921 break
7922 fi
7923 done
7924 ;;
7925 esac
7926
7927 exp_sym_flag='-bexport'
7928 no_entry_flag='-bnoentry'
7929 fi
7930
7931 # When large executables or shared objects are built, AIX ld can
7932 # have problems creating the table of contents. If linking a library
7933 # or program results in "error TOC overflow" add -mminimal-toc to
7934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7936
7937 archive_cmds=''
7938 hardcode_direct=yes
7939 hardcode_libdir_separator=':'
7940 link_all_deplibs=yes
7941
7942 if test "$GCC" = yes; then
7943 case $host_os in aix4.[012]|aix4.[012].*)
7944 # We only want to do this on AIX 4.2 and lower, the check
7945 # below for broken collect2 doesn't work under 4.3+
7946 collect2name=`${CC} -print-prog-name=collect2`
7947 if test -f "$collect2name" && \
7948 strings "$collect2name" | grep resolve_lib_name >/dev/null
7949 then
7950 # We have reworked collect2
7951 hardcode_direct=yes
7952 else
7953 # We have old collect2
7954 hardcode_direct=unsupported
7955 # It fails to find uninstalled libraries when the uninstalled
7956 # path is not listed in the libpath. Setting hardcode_minus_L
7957 # to unsupported forces relinking
7958 hardcode_minus_L=yes
7959 hardcode_libdir_flag_spec='-L$libdir'
7960 hardcode_libdir_separator=
7961 fi
7962 ;;
7963 esac
7964 shared_flag='-shared'
7965 if test "$aix_use_runtimelinking" = yes; then
7966 shared_flag="$shared_flag "'${wl}-G'
7967 fi
7968 else
7969 # not using gcc
7970 if test "$host_cpu" = ia64; then
7971 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7972 # chokes on -Wl,-G. The following line is correct:
7973 shared_flag='-G'
7974 else
7975 if test "$aix_use_runtimelinking" = yes; then
7976 shared_flag='${wl}-G'
7977 else
7978 shared_flag='${wl}-bM:SRE'
7979 fi
7980 fi
7981 fi
7982
7983 # It seems that -bexpall does not export symbols beginning with
7984 # underscore (_), so it is better to generate a list of symbols to export.
7985 always_export_symbols=yes
7986 if test "$aix_use_runtimelinking" = yes; then
7987 # Warning - without using the other runtime loading flags (-brtl),
7988 # -berok will link without error, but may produce a broken library.
7989 allow_undefined_flag='-berok'
7990 # Determine the default libpath from the value encoded in an empty executable.
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h. */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997
7998 int
7999 main ()
8000 {
8001
8002 ;
8003 return 0;
8004 }
8005 _ACEOF
8006 rm -f conftest.$ac_objext conftest$ac_exeext
8007 if { (ac_try="$ac_link"
8008 case "(($ac_try" in
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_link") 2>conftest.er1
8014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } && {
8020 test -z "$ac_c_werror_flag" ||
8021 test ! -s conftest.err
8022 } && test -s conftest$ac_exeext &&
8023 $as_test_x conftest$ac_exeext; then
8024
8025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8026 }'`
8027 # Check for a 64-bit object if we didn't find anything.
8028 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; }
8029 }'`; fi
8030 else
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8033
8034
8035 fi
8036
8037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8038 conftest$ac_exeext conftest.$ac_ext
8039 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8040
8041 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8042 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"
8043 else
8044 if test "$host_cpu" = ia64; then
8045 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8046 allow_undefined_flag="-z nodefs"
8047 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"
8048 else
8049 # Determine the default libpath from the value encoded in an empty executable.
8050 cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h. */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056
8057 int
8058 main ()
8059 {
8060
8061 ;
8062 return 0;
8063 }
8064 _ACEOF
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (ac_try="$ac_link"
8067 case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_link") 2>conftest.er1
8073 ac_status=$?
8074 grep -v '^ *+' conftest.er1 >conftest.err
8075 rm -f conftest.er1
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } && {
8079 test -z "$ac_c_werror_flag" ||
8080 test ! -s conftest.err
8081 } && test -s conftest$ac_exeext &&
8082 $as_test_x conftest$ac_exeext; then
8083
8084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8085 }'`
8086 # Check for a 64-bit object if we didn't find anything.
8087 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; }
8088 }'`; fi
8089 else
8090 echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8092
8093
8094 fi
8095
8096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8097 conftest$ac_exeext conftest.$ac_ext
8098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8099
8100 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8101 # Warning - without using the other run time loading flags,
8102 # -berok will link without error, but may produce a broken library.
8103 no_undefined_flag=' ${wl}-bernotok'
8104 allow_undefined_flag=' ${wl}-berok'
8105 # Exported symbols can be pulled into shared objects from archives
8106 whole_archive_flag_spec='$convenience'
8107 archive_cmds_need_lc=yes
8108 # This is similar to how AIX traditionally builds its shared libraries.
8109 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'
8110 fi
8111 fi
8112 ;;
8113
8114 amigaos*)
8115 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)'
8116 hardcode_libdir_flag_spec='-L$libdir'
8117 hardcode_minus_L=yes
8118 # see comment about different semantics on the GNU ld section
8119 ld_shlibs=no
8120 ;;
8121
8122 bsdi[45]*)
8123 export_dynamic_flag_spec=-rdynamic
8124 ;;
8125
8126 cygwin* | mingw* | pw32*)
8127 # When not using gcc, we currently assume that we are using
8128 # Microsoft Visual C++.
8129 # hardcode_libdir_flag_spec is actually meaningless, as there is
8130 # no search path for DLLs.
8131 hardcode_libdir_flag_spec=' '
8132 allow_undefined_flag=unsupported
8133 # Tell ltmain to make .lib files, not .a files.
8134 libext=lib
8135 # Tell ltmain to make .dll files, not .so files.
8136 shrext_cmds=".dll"
8137 # FIXME: Setting linknames here is a bad hack.
8138 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8139 # The linker will automatically build a .lib file if we build a DLL.
8140 old_archive_From_new_cmds='true'
8141 # FIXME: Should let the user specify the lib program.
8142 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8143 fix_srcfile_path='`cygpath -w "$srcfile"`'
8144 enable_shared_with_static_runtimes=yes
8145 ;;
8146
8147 darwin* | rhapsody*)
8148 case $host_os in
8149 rhapsody* | darwin1.[012])
8150 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8151 ;;
8152 *) # Darwin 1.3 on
8153 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8154 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8155 else
8156 case ${MACOSX_DEPLOYMENT_TARGET} in
8157 10.[012])
8158 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8159 ;;
8160 10.*)
8161 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8162 ;;
8163 esac
8164 fi
8165 ;;
8166 esac
8167 archive_cmds_need_lc=no
8168 hardcode_direct=no
8169 hardcode_automatic=yes
8170 hardcode_shlibpath_var=unsupported
8171 whole_archive_flag_spec=''
8172 link_all_deplibs=yes
8173 if test "$GCC" = yes ; then
8174 output_verbose_link_cmd='echo'
8175 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8176 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8177 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8178 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}'
8179 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}'
8180 else
8181 case $cc_basename in
8182 xlc*)
8183 output_verbose_link_cmd='echo'
8184 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8185 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8186 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8187 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}'
8188 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}'
8189 ;;
8190 *)
8191 ld_shlibs=no
8192 ;;
8193 esac
8194 fi
8195 ;;
8196
8197 dgux*)
8198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8199 hardcode_libdir_flag_spec='-L$libdir'
8200 hardcode_shlibpath_var=no
8201 ;;
8202
8203 freebsd1*)
8204 ld_shlibs=no
8205 ;;
8206
8207 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8208 # support. Future versions do this automatically, but an explicit c++rt0.o
8209 # does not break anything, and helps significantly (at the cost of a little
8210 # extra space).
8211 freebsd2.2*)
8212 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8213 hardcode_libdir_flag_spec='-R$libdir'
8214 hardcode_direct=yes
8215 hardcode_shlibpath_var=no
8216 ;;
8217
8218 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8219 freebsd2*)
8220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8221 hardcode_direct=yes
8222 hardcode_minus_L=yes
8223 hardcode_shlibpath_var=no
8224 ;;
8225
8226 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8227 freebsd* | kfreebsd*-gnu | dragonfly*)
8228 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8229 hardcode_libdir_flag_spec='-R$libdir'
8230 hardcode_direct=yes
8231 hardcode_shlibpath_var=no
8232 ;;
8233
8234 hpux9*)
8235 if test "$GCC" = yes; then
8236 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'
8237 else
8238 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'
8239 fi
8240 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8241 hardcode_libdir_separator=:
8242 hardcode_direct=yes
8243
8244 # hardcode_minus_L: Not really in the search PATH,
8245 # but as the default location of the library.
8246 hardcode_minus_L=yes
8247 export_dynamic_flag_spec='${wl}-E'
8248 ;;
8249
8250 hpux10*)
8251 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8252 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8253 else
8254 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8255 fi
8256 if test "$with_gnu_ld" = no; then
8257 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8258 hardcode_libdir_separator=:
8259
8260 hardcode_direct=yes
8261 export_dynamic_flag_spec='${wl}-E'
8262
8263 # hardcode_minus_L: Not really in the search PATH,
8264 # but as the default location of the library.
8265 hardcode_minus_L=yes
8266 fi
8267 ;;
8268
8269 hpux11*)
8270 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8271 case $host_cpu in
8272 hppa*64*)
8273 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8274 ;;
8275 ia64*)
8276 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8277 ;;
8278 *)
8279 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8280 ;;
8281 esac
8282 else
8283 case $host_cpu in
8284 hppa*64*)
8285 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8286 ;;
8287 ia64*)
8288 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8289 ;;
8290 *)
8291 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8292 ;;
8293 esac
8294 fi
8295 if test "$with_gnu_ld" = no; then
8296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8297 hardcode_libdir_separator=:
8298
8299 case $host_cpu in
8300 hppa*64*|ia64*)
8301 hardcode_libdir_flag_spec_ld='+b $libdir'
8302 hardcode_direct=no
8303 hardcode_shlibpath_var=no
8304 ;;
8305 *)
8306 hardcode_direct=yes
8307 export_dynamic_flag_spec='${wl}-E'
8308
8309 # hardcode_minus_L: Not really in the search PATH,
8310 # but as the default location of the library.
8311 hardcode_minus_L=yes
8312 ;;
8313 esac
8314 fi
8315 ;;
8316
8317 irix5* | irix6* | nonstopux*)
8318 if test "$GCC" = yes; then
8319 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'
8320 else
8321 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'
8322 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8323 fi
8324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8325 hardcode_libdir_separator=:
8326 link_all_deplibs=yes
8327 ;;
8328
8329 netbsd*)
8330 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8332 else
8333 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8334 fi
8335 hardcode_libdir_flag_spec='-R$libdir'
8336 hardcode_direct=yes
8337 hardcode_shlibpath_var=no
8338 ;;
8339
8340 newsos6)
8341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8342 hardcode_direct=yes
8343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8344 hardcode_libdir_separator=:
8345 hardcode_shlibpath_var=no
8346 ;;
8347
8348 openbsd*)
8349 hardcode_direct=yes
8350 hardcode_shlibpath_var=no
8351 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8352 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8353 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8355 export_dynamic_flag_spec='${wl}-E'
8356 else
8357 case $host_os in
8358 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8360 hardcode_libdir_flag_spec='-R$libdir'
8361 ;;
8362 *)
8363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8364 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8365 ;;
8366 esac
8367 fi
8368 ;;
8369
8370 os2*)
8371 hardcode_libdir_flag_spec='-L$libdir'
8372 hardcode_minus_L=yes
8373 allow_undefined_flag=unsupported
8374 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'
8375 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8376 ;;
8377
8378 osf3*)
8379 if test "$GCC" = yes; then
8380 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8381 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'
8382 else
8383 allow_undefined_flag=' -expect_unresolved \*'
8384 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'
8385 fi
8386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8387 hardcode_libdir_separator=:
8388 ;;
8389
8390 osf4* | osf5*) # as osf3* with the addition of -msym flag
8391 if test "$GCC" = yes; then
8392 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8393 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'
8394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8395 else
8396 allow_undefined_flag=' -expect_unresolved \*'
8397 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'
8398 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8399 $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'
8400
8401 # Both c and cxx compiler support -rpath directly
8402 hardcode_libdir_flag_spec='-rpath $libdir'
8403 fi
8404 hardcode_libdir_separator=:
8405 ;;
8406
8407 solaris*)
8408 no_undefined_flag=' -z text'
8409 if test "$GCC" = yes; then
8410 wlarc='${wl}'
8411 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8412 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8413 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8414 else
8415 wlarc=''
8416 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8417 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8418 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8419 fi
8420 hardcode_libdir_flag_spec='-R$libdir'
8421 hardcode_shlibpath_var=no
8422 case $host_os in
8423 solaris2.[0-5] | solaris2.[0-5].*) ;;
8424 *)
8425 # The compiler driver will combine linker options so we
8426 # cannot just pass the convience library names through
8427 # without $wl, iff we do not link with $LD.
8428 # Luckily, gcc supports the same syntax we need for Sun Studio.
8429 # Supported since Solaris 2.6 (maybe 2.5.1?)
8430 case $wlarc in
8431 '')
8432 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8433 *)
8434 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' ;;
8435 esac ;;
8436 esac
8437 link_all_deplibs=yes
8438 ;;
8439
8440 sunos4*)
8441 if test "x$host_vendor" = xsequent; then
8442 # Use $CC to link under sequent, because it throws in some extra .o
8443 # files that make .init and .fini sections work.
8444 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8445 else
8446 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8447 fi
8448 hardcode_libdir_flag_spec='-L$libdir'
8449 hardcode_direct=yes
8450 hardcode_minus_L=yes
8451 hardcode_shlibpath_var=no
8452 ;;
8453
8454 sysv4)
8455 case $host_vendor in
8456 sni)
8457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8458 hardcode_direct=yes # is this really true???
8459 ;;
8460 siemens)
8461 ## LD is ld it makes a PLAMLIB
8462 ## CC just makes a GrossModule.
8463 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8464 reload_cmds='$CC -r -o $output$reload_objs'
8465 hardcode_direct=no
8466 ;;
8467 motorola)
8468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8470 ;;
8471 esac
8472 runpath_var='LD_RUN_PATH'
8473 hardcode_shlibpath_var=no
8474 ;;
8475
8476 sysv4.3*)
8477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8478 hardcode_shlibpath_var=no
8479 export_dynamic_flag_spec='-Bexport'
8480 ;;
8481
8482 sysv4*MP*)
8483 if test -d /usr/nec; then
8484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8485 hardcode_shlibpath_var=no
8486 runpath_var=LD_RUN_PATH
8487 hardcode_runpath_var=yes
8488 ld_shlibs=yes
8489 fi
8490 ;;
8491
8492 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8493 no_undefined_flag='${wl}-z,text'
8494 archive_cmds_need_lc=no
8495 hardcode_shlibpath_var=no
8496 runpath_var='LD_RUN_PATH'
8497
8498 if test "$GCC" = yes; then
8499 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8500 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8501 else
8502 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8503 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8504 fi
8505 ;;
8506
8507 sysv5* | sco3.2v5* | sco5v6*)
8508 # Note: We can NOT use -z defs as we might desire, because we do not
8509 # link with -lc, and that would cause any symbols used from libc to
8510 # always be unresolved, which means just about no library would
8511 # ever link correctly. If we're not using GNU ld we use -z text
8512 # though, which does catch some bad symbols but isn't as heavy-handed
8513 # as -z defs.
8514 no_undefined_flag='${wl}-z,text'
8515 allow_undefined_flag='${wl}-z,nodefs'
8516 archive_cmds_need_lc=no
8517 hardcode_shlibpath_var=no
8518 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8519 hardcode_libdir_separator=':'
8520 link_all_deplibs=yes
8521 export_dynamic_flag_spec='${wl}-Bexport'
8522 runpath_var='LD_RUN_PATH'
8523
8524 if test "$GCC" = yes; then
8525 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8526 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8527 else
8528 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8529 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8530 fi
8531 ;;
8532
8533 uts4*)
8534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8535 hardcode_libdir_flag_spec='-L$libdir'
8536 hardcode_shlibpath_var=no
8537 ;;
8538
8539 *)
8540 ld_shlibs=no
8541 ;;
8542 esac
8543 fi
8544
8545 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8546 echo "${ECHO_T}$ld_shlibs" >&6; }
8547 test "$ld_shlibs" = no && can_build_shared=no
8548
8549 #
8550 # Do we need to explicitly link libc?
8551 #
8552 case "x$archive_cmds_need_lc" in
8553 x|xyes)
8554 # Assume -lc should be added
8555 archive_cmds_need_lc=yes
8556
8557 if test "$enable_shared" = yes && test "$GCC" = yes; then
8558 case $archive_cmds in
8559 *'~'*)
8560 # FIXME: we may have to deal with multi-command sequences.
8561 ;;
8562 '$CC '*)
8563 # Test whether the compiler implicitly links with -lc since on some
8564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8565 # to ld, don't add -lc before -lgcc.
8566 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8567 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8568 $rm conftest*
8569 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8570
8571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8572 (eval $ac_compile) 2>&5
8573 ac_status=$?
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } 2>conftest.err; then
8576 soname=conftest
8577 lib=conftest
8578 libobjs=conftest.$ac_objext
8579 deplibs=
8580 wl=$lt_prog_compiler_wl
8581 pic_flag=$lt_prog_compiler_pic
8582 compiler_flags=-v
8583 linker_flags=-v
8584 verstring=
8585 output_objdir=.
8586 libname=conftest
8587 lt_save_allow_undefined_flag=$allow_undefined_flag
8588 allow_undefined_flag=
8589 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8590 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }
8594 then
8595 archive_cmds_need_lc=no
8596 else
8597 archive_cmds_need_lc=yes
8598 fi
8599 allow_undefined_flag=$lt_save_allow_undefined_flag
8600 else
8601 cat conftest.err 1>&5
8602 fi
8603 $rm conftest*
8604 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8605 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8606 ;;
8607 esac
8608 fi
8609 ;;
8610 esac
8611
8612 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8613 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8614 library_names_spec=
8615 libname_spec='lib$name'
8616 soname_spec=
8617 shrext_cmds=".so"
8618 postinstall_cmds=
8619 postuninstall_cmds=
8620 finish_cmds=
8621 finish_eval=
8622 shlibpath_var=
8623 shlibpath_overrides_runpath=unknown
8624 version_type=none
8625 dynamic_linker="$host_os ld.so"
8626 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8627 if test "$GCC" = yes; then
8628 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8629 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8630 # if the path contains ";" then we assume it to be the separator
8631 # otherwise default to the standard path separator (i.e. ":") - it is
8632 # assumed that no part of a normal pathname contains ";" but that should
8633 # okay in the real world where ";" in dirpaths is itself problematic.
8634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8635 else
8636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8637 fi
8638 else
8639 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8640 fi
8641 need_lib_prefix=unknown
8642 hardcode_into_libs=no
8643
8644 # when you set need_version to no, make sure it does not cause -set_version
8645 # flags to be left without arguments
8646 need_version=unknown
8647
8648 case $host_os in
8649 aix3*)
8650 version_type=linux
8651 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8652 shlibpath_var=LIBPATH
8653
8654 # AIX 3 has no versioning support, so we append a major version to the name.
8655 soname_spec='${libname}${release}${shared_ext}$major'
8656 ;;
8657
8658 aix4* | aix5*)
8659 version_type=linux
8660 need_lib_prefix=no
8661 need_version=no
8662 hardcode_into_libs=yes
8663 if test "$host_cpu" = ia64; then
8664 # AIX 5 supports IA64
8665 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8666 shlibpath_var=LD_LIBRARY_PATH
8667 else
8668 # With GCC up to 2.95.x, collect2 would create an import file
8669 # for dependence libraries. The import file would start with
8670 # the line `#! .'. This would cause the generated library to
8671 # depend on `.', always an invalid library. This was fixed in
8672 # development snapshots of GCC prior to 3.0.
8673 case $host_os in
8674 aix4 | aix4.[01] | aix4.[01].*)
8675 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8676 echo ' yes '
8677 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8678 :
8679 else
8680 can_build_shared=no
8681 fi
8682 ;;
8683 esac
8684 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8685 # soname into executable. Probably we can add versioning support to
8686 # collect2, so additional links can be useful in future.
8687 if test "$aix_use_runtimelinking" = yes; then
8688 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8689 # instead of lib<name>.a to let people know that these are not
8690 # typical AIX shared libraries.
8691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8692 else
8693 # We preserve .a as extension for shared libraries through AIX4.2
8694 # and later when we are not doing run time linking.
8695 library_names_spec='${libname}${release}.a $libname.a'
8696 soname_spec='${libname}${release}${shared_ext}$major'
8697 fi
8698 shlibpath_var=LIBPATH
8699 fi
8700 ;;
8701
8702 amigaos*)
8703 library_names_spec='$libname.ixlibrary $libname.a'
8704 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8705 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'
8706 ;;
8707
8708 beos*)
8709 library_names_spec='${libname}${shared_ext}'
8710 dynamic_linker="$host_os ld.so"
8711 shlibpath_var=LIBRARY_PATH
8712 ;;
8713
8714 bsdi[45]*)
8715 version_type=linux
8716 need_version=no
8717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8718 soname_spec='${libname}${release}${shared_ext}$major'
8719 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8720 shlibpath_var=LD_LIBRARY_PATH
8721 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8722 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8723 # the default ld.so.conf also contains /usr/contrib/lib and
8724 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8725 # libtool to hard-code these into programs
8726 ;;
8727
8728 cygwin* | mingw* | pw32*)
8729 version_type=windows
8730 shrext_cmds=".dll"
8731 need_version=no
8732 need_lib_prefix=no
8733
8734 case $GCC,$host_os in
8735 yes,cygwin* | yes,mingw* | yes,pw32*)
8736 library_names_spec='$libname.dll.a'
8737 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8738 postinstall_cmds='base_file=`basename \${file}`~
8739 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8740 dldir=$destdir/`dirname \$dlpath`~
8741 test -d \$dldir || mkdir -p \$dldir~
8742 $install_prog $dir/$dlname \$dldir/$dlname~
8743 chmod a+x \$dldir/$dlname'
8744 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8745 dlpath=$dir/\$dldll~
8746 $rm \$dlpath'
8747 shlibpath_overrides_runpath=yes
8748
8749 case $host_os in
8750 cygwin*)
8751 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8752 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8753 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8754 ;;
8755 mingw*)
8756 # MinGW DLLs use traditional 'lib' prefix
8757 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8758 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8759 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8760 # It is most probably a Windows format PATH printed by
8761 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8762 # path with ; separators, and with drive letters. We can handle the
8763 # drive letters (cygwin fileutils understands them), so leave them,
8764 # especially as we might pass files found there to a mingw objdump,
8765 # which wouldn't understand a cygwinified path. Ahh.
8766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8767 else
8768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8769 fi
8770 ;;
8771 pw32*)
8772 # pw32 DLLs use 'pw' prefix rather than 'lib'
8773 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8774 ;;
8775 esac
8776 ;;
8777
8778 *)
8779 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8780 ;;
8781 esac
8782 dynamic_linker='Win32 ld.exe'
8783 # FIXME: first we should search . and the directory the executable is in
8784 shlibpath_var=PATH
8785 ;;
8786
8787 darwin* | rhapsody*)
8788 dynamic_linker="$host_os dyld"
8789 version_type=darwin
8790 need_lib_prefix=no
8791 need_version=no
8792 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8793 soname_spec='${libname}${release}${major}$shared_ext'
8794 shlibpath_overrides_runpath=yes
8795 shlibpath_var=DYLD_LIBRARY_PATH
8796 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8797 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8798 if test "$GCC" = yes; then
8799 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"`
8800 else
8801 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8802 fi
8803 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8804 ;;
8805
8806 dgux*)
8807 version_type=linux
8808 need_lib_prefix=no
8809 need_version=no
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 shlibpath_var=LD_LIBRARY_PATH
8813 ;;
8814
8815 freebsd1*)
8816 dynamic_linker=no
8817 ;;
8818
8819 kfreebsd*-gnu)
8820 version_type=linux
8821 need_lib_prefix=no
8822 need_version=no
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 shlibpath_var=LD_LIBRARY_PATH
8826 shlibpath_overrides_runpath=no
8827 hardcode_into_libs=yes
8828 dynamic_linker='GNU ld.so'
8829 ;;
8830
8831 freebsd* | dragonfly*)
8832 # DragonFly does not have aout. When/if they implement a new
8833 # versioning mechanism, adjust this.
8834 if test -x /usr/bin/objformat; then
8835 objformat=`/usr/bin/objformat`
8836 else
8837 case $host_os in
8838 freebsd[123]*) objformat=aout ;;
8839 *) objformat=elf ;;
8840 esac
8841 fi
8842 version_type=freebsd-$objformat
8843 case $version_type in
8844 freebsd-elf*)
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8846 need_version=no
8847 need_lib_prefix=no
8848 ;;
8849 freebsd-*)
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8851 need_version=yes
8852 ;;
8853 esac
8854 shlibpath_var=LD_LIBRARY_PATH
8855 case $host_os in
8856 freebsd2*)
8857 shlibpath_overrides_runpath=yes
8858 ;;
8859 freebsd3.[01]* | freebsdelf3.[01]*)
8860 shlibpath_overrides_runpath=yes
8861 hardcode_into_libs=yes
8862 ;;
8863 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8864 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8865 shlibpath_overrides_runpath=no
8866 hardcode_into_libs=yes
8867 ;;
8868 freebsd*) # from 4.6 on
8869 shlibpath_overrides_runpath=yes
8870 hardcode_into_libs=yes
8871 ;;
8872 esac
8873 ;;
8874
8875 gnu*)
8876 version_type=linux
8877 need_lib_prefix=no
8878 need_version=no
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 shlibpath_var=LD_LIBRARY_PATH
8882 hardcode_into_libs=yes
8883 ;;
8884
8885 hpux9* | hpux10* | hpux11*)
8886 # Give a soname corresponding to the major version so that dld.sl refuses to
8887 # link against other versions.
8888 version_type=sunos
8889 need_lib_prefix=no
8890 need_version=no
8891 case $host_cpu in
8892 ia64*)
8893 shrext_cmds='.so'
8894 hardcode_into_libs=yes
8895 dynamic_linker="$host_os dld.so"
8896 shlibpath_var=LD_LIBRARY_PATH
8897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8899 soname_spec='${libname}${release}${shared_ext}$major'
8900 if test "X$HPUX_IA64_MODE" = X32; then
8901 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8902 else
8903 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8904 fi
8905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8906 ;;
8907 hppa*64*)
8908 shrext_cmds='.sl'
8909 hardcode_into_libs=yes
8910 dynamic_linker="$host_os dld.sl"
8911 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8917 ;;
8918 *)
8919 shrext_cmds='.sl'
8920 dynamic_linker="$host_os dld.sl"
8921 shlibpath_var=SHLIB_PATH
8922 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 ;;
8926 esac
8927 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8928 postinstall_cmds='chmod 555 $lib'
8929 ;;
8930
8931 interix3*)
8932 version_type=linux
8933 need_lib_prefix=no
8934 need_version=no
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8936 soname_spec='${libname}${release}${shared_ext}$major'
8937 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8938 shlibpath_var=LD_LIBRARY_PATH
8939 shlibpath_overrides_runpath=no
8940 hardcode_into_libs=yes
8941 ;;
8942
8943 irix5* | irix6* | nonstopux*)
8944 case $host_os in
8945 nonstopux*) version_type=nonstopux ;;
8946 *)
8947 if test "$lt_cv_prog_gnu_ld" = yes; then
8948 version_type=linux
8949 else
8950 version_type=irix
8951 fi ;;
8952 esac
8953 need_lib_prefix=no
8954 need_version=no
8955 soname_spec='${libname}${release}${shared_ext}$major'
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8957 case $host_os in
8958 irix5* | nonstopux*)
8959 libsuff= shlibsuff=
8960 ;;
8961 *)
8962 case $LD in # libtool.m4 will add one of these switches to LD
8963 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8964 libsuff= shlibsuff= libmagic=32-bit;;
8965 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8966 libsuff=32 shlibsuff=N32 libmagic=N32;;
8967 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8968 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8969 *) libsuff= shlibsuff= libmagic=never-match;;
8970 esac
8971 ;;
8972 esac
8973 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8974 shlibpath_overrides_runpath=no
8975 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8976 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8977 hardcode_into_libs=yes
8978 ;;
8979
8980 # No shared lib support for Linux oldld, aout, or coff.
8981 linux*oldld* | linux*aout* | linux*coff*)
8982 dynamic_linker=no
8983 ;;
8984
8985 # This must be Linux ELF.
8986 linux*)
8987 version_type=linux
8988 need_lib_prefix=no
8989 need_version=no
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991 soname_spec='${libname}${release}${shared_ext}$major'
8992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=no
8995 # This implies no fast_install, which is unacceptable.
8996 # Some rework will be needed to allow for fast_install
8997 # before this can be enabled.
8998 hardcode_into_libs=yes
8999
9000 # find out which ABI we are using
9001 libsuff=
9002 case "$host_cpu" in
9003 x86_64*|s390x*|powerpc64*)
9004 echo '#line 9004 "configure"' > conftest.$ac_ext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9006 (eval $ac_compile) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; then
9010 case `/usr/bin/file conftest.$ac_objext` in
9011 *64-bit*)
9012 libsuff=64
9013 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9014 ;;
9015 esac
9016 fi
9017 rm -rf conftest*
9018 ;;
9019 esac
9020
9021 # Append ld.so.conf contents to the search path
9022 if test -f /etc/ld.so.conf; then
9023 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' ' '`
9024 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9025 fi
9026
9027 # We used to test for /lib/ld.so.1 and disable shared libraries on
9028 # powerpc, because MkLinux only supported shared libraries with the
9029 # GNU dynamic linker. Since this was broken with cross compilers,
9030 # most powerpc-linux boxes support dynamic linking these days and
9031 # people can always --disable-shared, the test was removed, and we
9032 # assume the GNU/Linux dynamic linker is in use.
9033 dynamic_linker='GNU/Linux ld.so'
9034 ;;
9035
9036 knetbsd*-gnu)
9037 version_type=linux
9038 need_lib_prefix=no
9039 need_version=no
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 shlibpath_overrides_runpath=no
9044 hardcode_into_libs=yes
9045 dynamic_linker='GNU ld.so'
9046 ;;
9047
9048 netbsd*)
9049 version_type=sunos
9050 need_lib_prefix=no
9051 need_version=no
9052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9055 dynamic_linker='NetBSD (a.out) ld.so'
9056 else
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 dynamic_linker='NetBSD ld.elf_so'
9060 fi
9061 shlibpath_var=LD_LIBRARY_PATH
9062 shlibpath_overrides_runpath=yes
9063 hardcode_into_libs=yes
9064 ;;
9065
9066 newsos6)
9067 version_type=linux
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 shlibpath_overrides_runpath=yes
9071 ;;
9072
9073 nto-qnx*)
9074 version_type=linux
9075 need_lib_prefix=no
9076 need_version=no
9077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9078 soname_spec='${libname}${release}${shared_ext}$major'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=yes
9081 ;;
9082
9083 openbsd*)
9084 version_type=sunos
9085 sys_lib_dlsearch_path_spec="/usr/lib"
9086 need_lib_prefix=no
9087 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9088 case $host_os in
9089 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9090 *) need_version=no ;;
9091 esac
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9096 case $host_os in
9097 openbsd2.[89] | openbsd2.[89].*)
9098 shlibpath_overrides_runpath=no
9099 ;;
9100 *)
9101 shlibpath_overrides_runpath=yes
9102 ;;
9103 esac
9104 else
9105 shlibpath_overrides_runpath=yes
9106 fi
9107 ;;
9108
9109 os2*)
9110 libname_spec='$name'
9111 shrext_cmds=".dll"
9112 need_lib_prefix=no
9113 library_names_spec='$libname${shared_ext} $libname.a'
9114 dynamic_linker='OS/2 ld.exe'
9115 shlibpath_var=LIBPATH
9116 ;;
9117
9118 osf3* | osf4* | osf5*)
9119 version_type=osf
9120 need_lib_prefix=no
9121 need_version=no
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9127 ;;
9128
9129 solaris*)
9130 version_type=linux
9131 need_lib_prefix=no
9132 need_version=no
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 shlibpath_var=LD_LIBRARY_PATH
9136 shlibpath_overrides_runpath=yes
9137 hardcode_into_libs=yes
9138 # ldd complains unless libraries are executable
9139 postinstall_cmds='chmod +x $lib'
9140 ;;
9141
9142 sunos4*)
9143 version_type=sunos
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9145 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 shlibpath_overrides_runpath=yes
9148 if test "$with_gnu_ld" = yes; then
9149 need_lib_prefix=no
9150 fi
9151 need_version=yes
9152 ;;
9153
9154 sysv4 | sysv4.3*)
9155 version_type=linux
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 case $host_vendor in
9160 sni)
9161 shlibpath_overrides_runpath=no
9162 need_lib_prefix=no
9163 export_dynamic_flag_spec='${wl}-Blargedynsym'
9164 runpath_var=LD_RUN_PATH
9165 ;;
9166 siemens)
9167 need_lib_prefix=no
9168 ;;
9169 motorola)
9170 need_lib_prefix=no
9171 need_version=no
9172 shlibpath_overrides_runpath=no
9173 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9174 ;;
9175 esac
9176 ;;
9177
9178 sysv4*MP*)
9179 if test -d /usr/nec ;then
9180 version_type=linux
9181 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9182 soname_spec='$libname${shared_ext}.$major'
9183 shlibpath_var=LD_LIBRARY_PATH
9184 fi
9185 ;;
9186
9187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9188 version_type=freebsd-elf
9189 need_lib_prefix=no
9190 need_version=no
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9192 soname_spec='${libname}${release}${shared_ext}$major'
9193 shlibpath_var=LD_LIBRARY_PATH
9194 hardcode_into_libs=yes
9195 if test "$with_gnu_ld" = yes; then
9196 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9197 shlibpath_overrides_runpath=no
9198 else
9199 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9200 shlibpath_overrides_runpath=yes
9201 case $host_os in
9202 sco3.2v5*)
9203 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9204 ;;
9205 esac
9206 fi
9207 sys_lib_dlsearch_path_spec='/usr/lib'
9208 ;;
9209
9210 uts4*)
9211 version_type=linux
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 ;;
9216
9217 *)
9218 dynamic_linker=no
9219 ;;
9220 esac
9221 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9222 echo "${ECHO_T}$dynamic_linker" >&6; }
9223 test "$dynamic_linker" = no && can_build_shared=no
9224
9225 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9226 if test "$GCC" = yes; then
9227 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9228 fi
9229
9230 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9231 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9232 hardcode_action=
9233 if test -n "$hardcode_libdir_flag_spec" || \
9234 test -n "$runpath_var" || \
9235 test "X$hardcode_automatic" = "Xyes" ; then
9236
9237 # We can hardcode non-existant directories.
9238 if test "$hardcode_direct" != no &&
9239 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9240 # have to relink, otherwise we might link with an installed library
9241 # when we should be linking with a yet-to-be-installed one
9242 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9243 test "$hardcode_minus_L" != no; then
9244 # Linking always hardcodes the temporary library directory.
9245 hardcode_action=relink
9246 else
9247 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9248 hardcode_action=immediate
9249 fi
9250 else
9251 # We cannot hardcode anything, or else we can only hardcode existing
9252 # directories.
9253 hardcode_action=unsupported
9254 fi
9255 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9256 echo "${ECHO_T}$hardcode_action" >&6; }
9257
9258 if test "$hardcode_action" = relink; then
9259 # Fast installation is not supported
9260 enable_fast_install=no
9261 elif test "$shlibpath_overrides_runpath" = yes ||
9262 test "$enable_shared" = no; then
9263 # Fast installation is not necessary
9264 enable_fast_install=needless
9265 fi
9266
9267 striplib=
9268 old_striplib=
9269 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9270 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9271 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9272 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9273 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9274 { echo "$as_me:$LINENO: result: yes" >&5
9275 echo "${ECHO_T}yes" >&6; }
9276 else
9277 # FIXME - insert some real tests, host_os isn't really good enough
9278 case $host_os in
9279 darwin*)
9280 if test -n "$STRIP" ; then
9281 striplib="$STRIP -x"
9282 { echo "$as_me:$LINENO: result: yes" >&5
9283 echo "${ECHO_T}yes" >&6; }
9284 else
9285 { echo "$as_me:$LINENO: result: no" >&5
9286 echo "${ECHO_T}no" >&6; }
9287 fi
9288 ;;
9289 *)
9290 { echo "$as_me:$LINENO: result: no" >&5
9291 echo "${ECHO_T}no" >&6; }
9292 ;;
9293 esac
9294 fi
9295
9296 if test "x$enable_dlopen" != xyes; then
9297 enable_dlopen=unknown
9298 enable_dlopen_self=unknown
9299 enable_dlopen_self_static=unknown
9300 else
9301 lt_cv_dlopen=no
9302 lt_cv_dlopen_libs=
9303
9304 case $host_os in
9305 beos*)
9306 lt_cv_dlopen="load_add_on"
9307 lt_cv_dlopen_libs=
9308 lt_cv_dlopen_self=yes
9309 ;;
9310
9311 mingw* | pw32*)
9312 lt_cv_dlopen="LoadLibrary"
9313 lt_cv_dlopen_libs=
9314 ;;
9315
9316 cygwin*)
9317 lt_cv_dlopen="dlopen"
9318 lt_cv_dlopen_libs=
9319 ;;
9320
9321 darwin*)
9322 # if libdl is installed we need to link against it
9323 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9324 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9325 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328 ac_check_lib_save_LIBS=$LIBS
9329 LIBS="-ldl $LIBS"
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336
9337 /* Override any GCC internal prototype to avoid an error.
9338 Use char because int might match the return type of a GCC
9339 builtin and then its argument prototype would still apply. */
9340 #ifdef __cplusplus
9341 extern "C"
9342 #endif
9343 char dlopen ();
9344 int
9345 main ()
9346 {
9347 return dlopen ();
9348 ;
9349 return 0;
9350 }
9351 _ACEOF
9352 rm -f conftest.$ac_objext conftest$ac_exeext
9353 if { (ac_try="$ac_link"
9354 case "(($ac_try" in
9355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356 *) ac_try_echo=$ac_try;;
9357 esac
9358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359 (eval "$ac_link") 2>conftest.er1
9360 ac_status=$?
9361 grep -v '^ *+' conftest.er1 >conftest.err
9362 rm -f conftest.er1
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } && {
9366 test -z "$ac_c_werror_flag" ||
9367 test ! -s conftest.err
9368 } && test -s conftest$ac_exeext &&
9369 $as_test_x conftest$ac_exeext; then
9370 ac_cv_lib_dl_dlopen=yes
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9374
9375 ac_cv_lib_dl_dlopen=no
9376 fi
9377
9378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9379 conftest$ac_exeext conftest.$ac_ext
9380 LIBS=$ac_check_lib_save_LIBS
9381 fi
9382 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9383 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9384 if test $ac_cv_lib_dl_dlopen = yes; then
9385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9386 else
9387
9388 lt_cv_dlopen="dyld"
9389 lt_cv_dlopen_libs=
9390 lt_cv_dlopen_self=yes
9391
9392 fi
9393
9394 ;;
9395
9396 *)
9397 { echo "$as_me:$LINENO: checking for shl_load" >&5
9398 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9399 if test "${ac_cv_func_shl_load+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402 cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h. */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9410 #define shl_load innocuous_shl_load
9411
9412 /* System header to define __stub macros and hopefully few prototypes,
9413 which can conflict with char shl_load (); below.
9414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9415 <limits.h> exists even on freestanding compilers. */
9416
9417 #ifdef __STDC__
9418 # include <limits.h>
9419 #else
9420 # include <assert.h>
9421 #endif
9422
9423 #undef shl_load
9424
9425 /* Override any GCC internal prototype to avoid an error.
9426 Use char because int might match the return type of a GCC
9427 builtin and then its argument prototype would still apply. */
9428 #ifdef __cplusplus
9429 extern "C"
9430 #endif
9431 char shl_load ();
9432 /* The GNU C library defines this for functions which it implements
9433 to always fail with ENOSYS. Some functions are actually named
9434 something starting with __ and the normal name is an alias. */
9435 #if defined __stub_shl_load || defined __stub___shl_load
9436 choke me
9437 #endif
9438
9439 int
9440 main ()
9441 {
9442 return shl_load ();
9443 ;
9444 return 0;
9445 }
9446 _ACEOF
9447 rm -f conftest.$ac_objext conftest$ac_exeext
9448 if { (ac_try="$ac_link"
9449 case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9452 esac
9453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454 (eval "$ac_link") 2>conftest.er1
9455 ac_status=$?
9456 grep -v '^ *+' conftest.er1 >conftest.err
9457 rm -f conftest.er1
9458 cat conftest.err >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } && {
9461 test -z "$ac_c_werror_flag" ||
9462 test ! -s conftest.err
9463 } && test -s conftest$ac_exeext &&
9464 $as_test_x conftest$ac_exeext; then
9465 ac_cv_func_shl_load=yes
9466 else
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9469
9470 ac_cv_func_shl_load=no
9471 fi
9472
9473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9474 conftest$ac_exeext conftest.$ac_ext
9475 fi
9476 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9477 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9478 if test $ac_cv_func_shl_load = yes; then
9479 lt_cv_dlopen="shl_load"
9480 else
9481 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9482 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9483 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 else
9486 ac_check_lib_save_LIBS=$LIBS
9487 LIBS="-ldld $LIBS"
9488 cat >conftest.$ac_ext <<_ACEOF
9489 /* confdefs.h. */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9494
9495 /* Override any GCC internal prototype to avoid an error.
9496 Use char because int might match the return type of a GCC
9497 builtin and then its argument prototype would still apply. */
9498 #ifdef __cplusplus
9499 extern "C"
9500 #endif
9501 char shl_load ();
9502 int
9503 main ()
9504 {
9505 return shl_load ();
9506 ;
9507 return 0;
9508 }
9509 _ACEOF
9510 rm -f conftest.$ac_objext conftest$ac_exeext
9511 if { (ac_try="$ac_link"
9512 case "(($ac_try" in
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9515 esac
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_link") 2>conftest.er1
9518 ac_status=$?
9519 grep -v '^ *+' conftest.er1 >conftest.err
9520 rm -f conftest.er1
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } && {
9524 test -z "$ac_c_werror_flag" ||
9525 test ! -s conftest.err
9526 } && test -s conftest$ac_exeext &&
9527 $as_test_x conftest$ac_exeext; then
9528 ac_cv_lib_dld_shl_load=yes
9529 else
9530 echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9532
9533 ac_cv_lib_dld_shl_load=no
9534 fi
9535
9536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9537 conftest$ac_exeext conftest.$ac_ext
9538 LIBS=$ac_check_lib_save_LIBS
9539 fi
9540 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9541 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9542 if test $ac_cv_lib_dld_shl_load = yes; then
9543 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9544 else
9545 { echo "$as_me:$LINENO: checking for dlopen" >&5
9546 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9547 if test "${ac_cv_func_dlopen+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 else
9550 cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h. */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9558 #define dlopen innocuous_dlopen
9559
9560 /* System header to define __stub macros and hopefully few prototypes,
9561 which can conflict with char dlopen (); below.
9562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9563 <limits.h> exists even on freestanding compilers. */
9564
9565 #ifdef __STDC__
9566 # include <limits.h>
9567 #else
9568 # include <assert.h>
9569 #endif
9570
9571 #undef dlopen
9572
9573 /* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply. */
9576 #ifdef __cplusplus
9577 extern "C"
9578 #endif
9579 char dlopen ();
9580 /* The GNU C library defines this for functions which it implements
9581 to always fail with ENOSYS. Some functions are actually named
9582 something starting with __ and the normal name is an alias. */
9583 #if defined __stub_dlopen || defined __stub___dlopen
9584 choke me
9585 #endif
9586
9587 int
9588 main ()
9589 {
9590 return dlopen ();
9591 ;
9592 return 0;
9593 }
9594 _ACEOF
9595 rm -f conftest.$ac_objext conftest$ac_exeext
9596 if { (ac_try="$ac_link"
9597 case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600 esac
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_link") 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest$ac_exeext &&
9612 $as_test_x conftest$ac_exeext; then
9613 ac_cv_func_dlopen=yes
9614 else
9615 echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9617
9618 ac_cv_func_dlopen=no
9619 fi
9620
9621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9622 conftest$ac_exeext conftest.$ac_ext
9623 fi
9624 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9625 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9626 if test $ac_cv_func_dlopen = yes; then
9627 lt_cv_dlopen="dlopen"
9628 else
9629 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9630 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9631 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634 ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-ldl $LIBS"
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h. */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9642
9643 /* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
9646 #ifdef __cplusplus
9647 extern "C"
9648 #endif
9649 char dlopen ();
9650 int
9651 main ()
9652 {
9653 return dlopen ();
9654 ;
9655 return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9660 case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_link") 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest$ac_exeext &&
9675 $as_test_x conftest$ac_exeext; then
9676 ac_cv_lib_dl_dlopen=yes
9677 else
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681 ac_cv_lib_dl_dlopen=no
9682 fi
9683
9684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9685 conftest$ac_exeext conftest.$ac_ext
9686 LIBS=$ac_check_lib_save_LIBS
9687 fi
9688 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9689 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9690 if test $ac_cv_lib_dl_dlopen = yes; then
9691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9692 else
9693 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9694 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9695 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 else
9698 ac_check_lib_save_LIBS=$LIBS
9699 LIBS="-lsvld $LIBS"
9700 cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h. */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706
9707 /* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9710 #ifdef __cplusplus
9711 extern "C"
9712 #endif
9713 char dlopen ();
9714 int
9715 main ()
9716 {
9717 return dlopen ();
9718 ;
9719 return 0;
9720 }
9721 _ACEOF
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (ac_try="$ac_link"
9724 case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9727 esac
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_link") 2>conftest.er1
9730 ac_status=$?
9731 grep -v '^ *+' conftest.er1 >conftest.err
9732 rm -f conftest.er1
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } && {
9736 test -z "$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 } && test -s conftest$ac_exeext &&
9739 $as_test_x conftest$ac_exeext; then
9740 ac_cv_lib_svld_dlopen=yes
9741 else
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 ac_cv_lib_svld_dlopen=no
9746 fi
9747
9748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9749 conftest$ac_exeext conftest.$ac_ext
9750 LIBS=$ac_check_lib_save_LIBS
9751 fi
9752 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9753 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9754 if test $ac_cv_lib_svld_dlopen = yes; then
9755 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9756 else
9757 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9758 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9759 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762 ac_check_lib_save_LIBS=$LIBS
9763 LIBS="-ldld $LIBS"
9764 cat >conftest.$ac_ext <<_ACEOF
9765 /* confdefs.h. */
9766 _ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9770
9771 /* Override any GCC internal prototype to avoid an error.
9772 Use char because int might match the return type of a GCC
9773 builtin and then its argument prototype would still apply. */
9774 #ifdef __cplusplus
9775 extern "C"
9776 #endif
9777 char dld_link ();
9778 int
9779 main ()
9780 {
9781 return dld_link ();
9782 ;
9783 return 0;
9784 }
9785 _ACEOF
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (ac_try="$ac_link"
9788 case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_link") 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest$ac_exeext &&
9803 $as_test_x conftest$ac_exeext; then
9804 ac_cv_lib_dld_dld_link=yes
9805 else
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809 ac_cv_lib_dld_dld_link=no
9810 fi
9811
9812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9813 conftest$ac_exeext conftest.$ac_ext
9814 LIBS=$ac_check_lib_save_LIBS
9815 fi
9816 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9817 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9818 if test $ac_cv_lib_dld_dld_link = yes; then
9819 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9820 fi
9821
9822
9823 fi
9824
9825
9826 fi
9827
9828
9829 fi
9830
9831
9832 fi
9833
9834
9835 fi
9836
9837 ;;
9838 esac
9839
9840 if test "x$lt_cv_dlopen" != xno; then
9841 enable_dlopen=yes
9842 else
9843 enable_dlopen=no
9844 fi
9845
9846 case $lt_cv_dlopen in
9847 dlopen)
9848 save_CPPFLAGS="$CPPFLAGS"
9849 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9850
9851 save_LDFLAGS="$LDFLAGS"
9852 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9853
9854 save_LIBS="$LIBS"
9855 LIBS="$lt_cv_dlopen_libs $LIBS"
9856
9857 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9858 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9859 if test "${lt_cv_dlopen_self+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 else
9862 if test "$cross_compiling" = yes; then :
9863 lt_cv_dlopen_self=cross
9864 else
9865 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9866 lt_status=$lt_dlunknown
9867 cat > conftest.$ac_ext <<EOF
9868 #line 9868 "configure"
9869 #include "confdefs.h"
9870
9871 #if HAVE_DLFCN_H
9872 #include <dlfcn.h>
9873 #endif
9874
9875 #include <stdio.h>
9876
9877 #ifdef RTLD_GLOBAL
9878 # define LT_DLGLOBAL RTLD_GLOBAL
9879 #else
9880 # ifdef DL_GLOBAL
9881 # define LT_DLGLOBAL DL_GLOBAL
9882 # else
9883 # define LT_DLGLOBAL 0
9884 # endif
9885 #endif
9886
9887 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9888 find out it does not work in some platform. */
9889 #ifndef LT_DLLAZY_OR_NOW
9890 # ifdef RTLD_LAZY
9891 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9892 # else
9893 # ifdef DL_LAZY
9894 # define LT_DLLAZY_OR_NOW DL_LAZY
9895 # else
9896 # ifdef RTLD_NOW
9897 # define LT_DLLAZY_OR_NOW RTLD_NOW
9898 # else
9899 # ifdef DL_NOW
9900 # define LT_DLLAZY_OR_NOW DL_NOW
9901 # else
9902 # define LT_DLLAZY_OR_NOW 0
9903 # endif
9904 # endif
9905 # endif
9906 # endif
9907 #endif
9908
9909 #ifdef __cplusplus
9910 extern "C" void exit (int);
9911 #endif
9912
9913 void fnord() { int i=42;}
9914 int main ()
9915 {
9916 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9917 int status = $lt_dlunknown;
9918
9919 if (self)
9920 {
9921 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9922 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9923 /* dlclose (self); */
9924 }
9925 else
9926 puts (dlerror ());
9927
9928 exit (status);
9929 }
9930 EOF
9931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932 (eval $ac_link) 2>&5
9933 ac_status=$?
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9936 (./conftest; exit; ) >&5 2>/dev/null
9937 lt_status=$?
9938 case x$lt_status in
9939 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9940 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9941 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9942 esac
9943 else :
9944 # compilation failed
9945 lt_cv_dlopen_self=no
9946 fi
9947 fi
9948 rm -fr conftest*
9949
9950
9951 fi
9952 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9953 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9954
9955 if test "x$lt_cv_dlopen_self" = xyes; then
9956 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9957 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9958 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9959 if test "${lt_cv_dlopen_self_static+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962 if test "$cross_compiling" = yes; then :
9963 lt_cv_dlopen_self_static=cross
9964 else
9965 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9966 lt_status=$lt_dlunknown
9967 cat > conftest.$ac_ext <<EOF
9968 #line 9968 "configure"
9969 #include "confdefs.h"
9970
9971 #if HAVE_DLFCN_H
9972 #include <dlfcn.h>
9973 #endif
9974
9975 #include <stdio.h>
9976
9977 #ifdef RTLD_GLOBAL
9978 # define LT_DLGLOBAL RTLD_GLOBAL
9979 #else
9980 # ifdef DL_GLOBAL
9981 # define LT_DLGLOBAL DL_GLOBAL
9982 # else
9983 # define LT_DLGLOBAL 0
9984 # endif
9985 #endif
9986
9987 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9988 find out it does not work in some platform. */
9989 #ifndef LT_DLLAZY_OR_NOW
9990 # ifdef RTLD_LAZY
9991 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9992 # else
9993 # ifdef DL_LAZY
9994 # define LT_DLLAZY_OR_NOW DL_LAZY
9995 # else
9996 # ifdef RTLD_NOW
9997 # define LT_DLLAZY_OR_NOW RTLD_NOW
9998 # else
9999 # ifdef DL_NOW
10000 # define LT_DLLAZY_OR_NOW DL_NOW
10001 # else
10002 # define LT_DLLAZY_OR_NOW 0
10003 # endif
10004 # endif
10005 # endif
10006 # endif
10007 #endif
10008
10009 #ifdef __cplusplus
10010 extern "C" void exit (int);
10011 #endif
10012
10013 void fnord() { int i=42;}
10014 int main ()
10015 {
10016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10017 int status = $lt_dlunknown;
10018
10019 if (self)
10020 {
10021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10022 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10023 /* dlclose (self); */
10024 }
10025 else
10026 puts (dlerror ());
10027
10028 exit (status);
10029 }
10030 EOF
10031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10032 (eval $ac_link) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10036 (./conftest; exit; ) >&5 2>/dev/null
10037 lt_status=$?
10038 case x$lt_status in
10039 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10040 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10041 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10042 esac
10043 else :
10044 # compilation failed
10045 lt_cv_dlopen_self_static=no
10046 fi
10047 fi
10048 rm -fr conftest*
10049
10050
10051 fi
10052 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10053 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10054 fi
10055
10056 CPPFLAGS="$save_CPPFLAGS"
10057 LDFLAGS="$save_LDFLAGS"
10058 LIBS="$save_LIBS"
10059 ;;
10060 esac
10061
10062 case $lt_cv_dlopen_self in
10063 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10064 *) enable_dlopen_self=unknown ;;
10065 esac
10066
10067 case $lt_cv_dlopen_self_static in
10068 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10069 *) enable_dlopen_self_static=unknown ;;
10070 esac
10071 fi
10072
10073
10074 # Report which library types will actually be built
10075 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10076 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10077 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10078 echo "${ECHO_T}$can_build_shared" >&6; }
10079
10080 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10081 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10082 test "$can_build_shared" = "no" && enable_shared=no
10083
10084 # On AIX, shared libraries and static libraries use the same namespace, and
10085 # are all built from PIC.
10086 case $host_os in
10087 aix3*)
10088 test "$enable_shared" = yes && enable_static=no
10089 if test -n "$RANLIB"; then
10090 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10091 postinstall_cmds='$RANLIB $lib'
10092 fi
10093 ;;
10094
10095 aix4* | aix5*)
10096 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10097 test "$enable_shared" = yes && enable_static=no
10098 fi
10099 ;;
10100 esac
10101 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10102 echo "${ECHO_T}$enable_shared" >&6; }
10103
10104 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10105 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10106 # Make sure either enable_shared or enable_static is yes.
10107 test "$enable_shared" = yes || enable_static=yes
10108 { echo "$as_me:$LINENO: result: $enable_static" >&5
10109 echo "${ECHO_T}$enable_static" >&6; }
10110
10111 # The else clause should only fire when bootstrapping the
10112 # libtool distribution, otherwise you forgot to ship ltmain.sh
10113 # with your package, and you will get complaints that there are
10114 # no rules to generate ltmain.sh.
10115 if test -f "$ltmain"; then
10116 # See if we are running on zsh, and set the options which allow our commands through
10117 # without removal of \ escapes.
10118 if test -n "${ZSH_VERSION+set}" ; then
10119 setopt NO_GLOB_SUBST
10120 fi
10121 # Now quote all the things that may contain metacharacters while being
10122 # careful not to overquote the AC_SUBSTed values. We take copies of the
10123 # variables and quote the copies for generation of the libtool script.
10124 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10125 SED SHELL STRIP \
10126 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10127 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10128 deplibs_check_method reload_flag reload_cmds need_locks \
10129 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10130 lt_cv_sys_global_symbol_to_c_name_address \
10131 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10132 old_postinstall_cmds old_postuninstall_cmds \
10133 compiler \
10134 CC \
10135 LD \
10136 lt_prog_compiler_wl \
10137 lt_prog_compiler_pic \
10138 lt_prog_compiler_static \
10139 lt_prog_compiler_no_builtin_flag \
10140 export_dynamic_flag_spec \
10141 thread_safe_flag_spec \
10142 whole_archive_flag_spec \
10143 enable_shared_with_static_runtimes \
10144 old_archive_cmds \
10145 old_archive_from_new_cmds \
10146 predep_objects \
10147 postdep_objects \
10148 predeps \
10149 postdeps \
10150 compiler_lib_search_path \
10151 archive_cmds \
10152 archive_expsym_cmds \
10153 postinstall_cmds \
10154 postuninstall_cmds \
10155 old_archive_from_expsyms_cmds \
10156 allow_undefined_flag \
10157 no_undefined_flag \
10158 export_symbols_cmds \
10159 hardcode_libdir_flag_spec \
10160 hardcode_libdir_flag_spec_ld \
10161 hardcode_libdir_separator \
10162 hardcode_automatic \
10163 module_cmds \
10164 module_expsym_cmds \
10165 lt_cv_prog_compiler_c_o \
10166 exclude_expsyms \
10167 include_expsyms; do
10168
10169 case $var in
10170 old_archive_cmds | \
10171 old_archive_from_new_cmds | \
10172 archive_cmds | \
10173 archive_expsym_cmds | \
10174 module_cmds | \
10175 module_expsym_cmds | \
10176 old_archive_from_expsyms_cmds | \
10177 export_symbols_cmds | \
10178 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10179 postinstall_cmds | postuninstall_cmds | \
10180 old_postinstall_cmds | old_postuninstall_cmds | \
10181 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10182 # Double-quote double-evaled strings.
10183 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10184 ;;
10185 *)
10186 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10187 ;;
10188 esac
10189 done
10190
10191 case $lt_echo in
10192 *'\$0 --fallback-echo"')
10193 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10194 ;;
10195 esac
10196
10197 cfgfile="${ofile}T"
10198 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10199 $rm -f "$cfgfile"
10200 { echo "$as_me:$LINENO: creating $ofile" >&5
10201 echo "$as_me: creating $ofile" >&6;}
10202
10203 cat <<__EOF__ >> "$cfgfile"
10204 #! $SHELL
10205
10206 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10207 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10208 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10209 #
10210 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10211 # Free Software Foundation, Inc.
10212 #
10213 # This file is part of GNU Libtool:
10214 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10215 #
10216 # This program is free software; you can redistribute it and/or modify
10217 # it under the terms of the GNU General Public License as published by
10218 # the Free Software Foundation; either version 2 of the License, or
10219 # (at your option) any later version.
10220 #
10221 # This program is distributed in the hope that it will be useful, but
10222 # WITHOUT ANY WARRANTY; without even the implied warranty of
10223 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10224 # General Public License for more details.
10225 #
10226 # You should have received a copy of the GNU General Public License
10227 # along with this program; if not, write to the Free Software
10228 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10229 #
10230 # As a special exception to the GNU General Public License, if you
10231 # distribute this file as part of a program that contains a
10232 # configuration script generated by Autoconf, you may include it under
10233 # the same distribution terms that you use for the rest of that program.
10234
10235 # A sed program that does not truncate output.
10236 SED=$lt_SED
10237
10238 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10239 Xsed="$SED -e 1s/^X//"
10240
10241 # The HP-UX ksh and POSIX shell print the target directory to stdout
10242 # if CDPATH is set.
10243 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10244
10245 # The names of the tagged configurations supported by this script.
10246 available_tags=
10247
10248 # ### BEGIN LIBTOOL CONFIG
10249
10250 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10251
10252 # Shell to use when invoking shell scripts.
10253 SHELL=$lt_SHELL
10254
10255 # Whether or not to build shared libraries.
10256 build_libtool_libs=$enable_shared
10257
10258 # Whether or not to build static libraries.
10259 build_old_libs=$enable_static
10260
10261 # Whether or not to add -lc for building shared libraries.
10262 build_libtool_need_lc=$archive_cmds_need_lc
10263
10264 # Whether or not to disallow shared libs when runtime libs are static
10265 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10266
10267 # Whether or not to optimize for fast installation.
10268 fast_install=$enable_fast_install
10269
10270 # The host system.
10271 host_alias=$host_alias
10272 host=$host
10273 host_os=$host_os
10274
10275 # The build system.
10276 build_alias=$build_alias
10277 build=$build
10278 build_os=$build_os
10279
10280 # An echo program that does not interpret backslashes.
10281 echo=$lt_echo
10282
10283 # The archiver.
10284 AR=$lt_AR
10285 AR_FLAGS=$lt_AR_FLAGS
10286
10287 # A C compiler.
10288 LTCC=$lt_LTCC
10289
10290 # LTCC compiler flags.
10291 LTCFLAGS=$lt_LTCFLAGS
10292
10293 # A language-specific compiler.
10294 CC=$lt_compiler
10295
10296 # Is the compiler the GNU C compiler?
10297 with_gcc=$GCC
10298
10299 # An ERE matcher.
10300 EGREP=$lt_EGREP
10301
10302 # The linker used to build libraries.
10303 LD=$lt_LD
10304
10305 # Whether we need hard or soft links.
10306 LN_S=$lt_LN_S
10307
10308 # A BSD-compatible nm program.
10309 NM=$lt_NM
10310
10311 # A symbol stripping program
10312 STRIP=$lt_STRIP
10313
10314 # Used to examine libraries when file_magic_cmd begins "file"
10315 MAGIC_CMD=$MAGIC_CMD
10316
10317 # Used on cygwin: DLL creation program.
10318 DLLTOOL="$DLLTOOL"
10319
10320 # Used on cygwin: object dumper.
10321 OBJDUMP="$OBJDUMP"
10322
10323 # Used on cygwin: assembler.
10324 AS="$AS"
10325
10326 # The name of the directory that contains temporary libtool files.
10327 objdir=$objdir
10328
10329 # How to create reloadable object files.
10330 reload_flag=$lt_reload_flag
10331 reload_cmds=$lt_reload_cmds
10332
10333 # How to pass a linker flag through the compiler.
10334 wl=$lt_lt_prog_compiler_wl
10335
10336 # Object file suffix (normally "o").
10337 objext="$ac_objext"
10338
10339 # Old archive suffix (normally "a").
10340 libext="$libext"
10341
10342 # Shared library suffix (normally ".so").
10343 shrext_cmds='$shrext_cmds'
10344
10345 # Executable file suffix (normally "").
10346 exeext="$exeext"
10347
10348 # Additional compiler flags for building library objects.
10349 pic_flag=$lt_lt_prog_compiler_pic
10350 pic_mode=$pic_mode
10351
10352 # What is the maximum length of a command?
10353 max_cmd_len=$lt_cv_sys_max_cmd_len
10354
10355 # Does compiler simultaneously support -c and -o options?
10356 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10357
10358 # Must we lock files when doing compilation?
10359 need_locks=$lt_need_locks
10360
10361 # Do we need the lib prefix for modules?
10362 need_lib_prefix=$need_lib_prefix
10363
10364 # Do we need a version for libraries?
10365 need_version=$need_version
10366
10367 # Whether dlopen is supported.
10368 dlopen_support=$enable_dlopen
10369
10370 # Whether dlopen of programs is supported.
10371 dlopen_self=$enable_dlopen_self
10372
10373 # Whether dlopen of statically linked programs is supported.
10374 dlopen_self_static=$enable_dlopen_self_static
10375
10376 # Compiler flag to prevent dynamic linking.
10377 link_static_flag=$lt_lt_prog_compiler_static
10378
10379 # Compiler flag to turn off builtin functions.
10380 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10381
10382 # Compiler flag to allow reflexive dlopens.
10383 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10384
10385 # Compiler flag to generate shared objects directly from archives.
10386 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10387
10388 # Compiler flag to generate thread-safe objects.
10389 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10390
10391 # Library versioning type.
10392 version_type=$version_type
10393
10394 # Format of library name prefix.
10395 libname_spec=$lt_libname_spec
10396
10397 # List of archive names. First name is the real one, the rest are links.
10398 # The last name is the one that the linker finds with -lNAME.
10399 library_names_spec=$lt_library_names_spec
10400
10401 # The coded name of the library, if different from the real name.
10402 soname_spec=$lt_soname_spec
10403
10404 # Commands used to build and install an old-style archive.
10405 RANLIB=$lt_RANLIB
10406 old_archive_cmds=$lt_old_archive_cmds
10407 old_postinstall_cmds=$lt_old_postinstall_cmds
10408 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10409
10410 # Create an old-style archive from a shared archive.
10411 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10412
10413 # Create a temporary old-style archive to link instead of a shared archive.
10414 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10415
10416 # Commands used to build and install a shared archive.
10417 archive_cmds=$lt_archive_cmds
10418 archive_expsym_cmds=$lt_archive_expsym_cmds
10419 postinstall_cmds=$lt_postinstall_cmds
10420 postuninstall_cmds=$lt_postuninstall_cmds
10421
10422 # Commands used to build a loadable module (assumed same as above if empty)
10423 module_cmds=$lt_module_cmds
10424 module_expsym_cmds=$lt_module_expsym_cmds
10425
10426 # Commands to strip libraries.
10427 old_striplib=$lt_old_striplib
10428 striplib=$lt_striplib
10429
10430 # Dependencies to place before the objects being linked to create a
10431 # shared library.
10432 predep_objects=$lt_predep_objects
10433
10434 # Dependencies to place after the objects being linked to create a
10435 # shared library.
10436 postdep_objects=$lt_postdep_objects
10437
10438 # Dependencies to place before the objects being linked to create a
10439 # shared library.
10440 predeps=$lt_predeps
10441
10442 # Dependencies to place after the objects being linked to create a
10443 # shared library.
10444 postdeps=$lt_postdeps
10445
10446 # The library search path used internally by the compiler when linking
10447 # a shared library.
10448 compiler_lib_search_path=$lt_compiler_lib_search_path
10449
10450 # Method to check whether dependent libraries are shared objects.
10451 deplibs_check_method=$lt_deplibs_check_method
10452
10453 # Command to use when deplibs_check_method == file_magic.
10454 file_magic_cmd=$lt_file_magic_cmd
10455
10456 # Flag that allows shared libraries with undefined symbols to be built.
10457 allow_undefined_flag=$lt_allow_undefined_flag
10458
10459 # Flag that forces no undefined symbols.
10460 no_undefined_flag=$lt_no_undefined_flag
10461
10462 # Commands used to finish a libtool library installation in a directory.
10463 finish_cmds=$lt_finish_cmds
10464
10465 # Same as above, but a single script fragment to be evaled but not shown.
10466 finish_eval=$lt_finish_eval
10467
10468 # Take the output of nm and produce a listing of raw symbols and C names.
10469 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10470
10471 # Transform the output of nm in a proper C declaration
10472 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10473
10474 # Transform the output of nm in a C name address pair
10475 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10476
10477 # This is the shared library runtime path variable.
10478 runpath_var=$runpath_var
10479
10480 # This is the shared library path variable.
10481 shlibpath_var=$shlibpath_var
10482
10483 # Is shlibpath searched before the hard-coded library search path?
10484 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10485
10486 # How to hardcode a shared library path into an executable.
10487 hardcode_action=$hardcode_action
10488
10489 # Whether we should hardcode library paths into libraries.
10490 hardcode_into_libs=$hardcode_into_libs
10491
10492 # Flag to hardcode \$libdir into a binary during linking.
10493 # This must work even if \$libdir does not exist.
10494 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10495
10496 # If ld is used when linking, flag to hardcode \$libdir into
10497 # a binary during linking. This must work even if \$libdir does
10498 # not exist.
10499 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10500
10501 # Whether we need a single -rpath flag with a separated argument.
10502 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10503
10504 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10505 # resulting binary.
10506 hardcode_direct=$hardcode_direct
10507
10508 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10509 # resulting binary.
10510 hardcode_minus_L=$hardcode_minus_L
10511
10512 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10513 # the resulting binary.
10514 hardcode_shlibpath_var=$hardcode_shlibpath_var
10515
10516 # Set to yes if building a shared library automatically hardcodes DIR into the library
10517 # and all subsequent libraries and executables linked against it.
10518 hardcode_automatic=$hardcode_automatic
10519
10520 # Variables whose values should be saved in libtool wrapper scripts and
10521 # restored at relink time.
10522 variables_saved_for_relink="$variables_saved_for_relink"
10523
10524 # Whether libtool must link a program against all its dependency libraries.
10525 link_all_deplibs=$link_all_deplibs
10526
10527 # Compile-time system search path for libraries
10528 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10529
10530 # Run-time system search path for libraries
10531 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10532
10533 # Fix the shell variable \$srcfile for the compiler.
10534 fix_srcfile_path="$fix_srcfile_path"
10535
10536 # Set to yes if exported symbols are required.
10537 always_export_symbols=$always_export_symbols
10538
10539 # The commands to list exported symbols.
10540 export_symbols_cmds=$lt_export_symbols_cmds
10541
10542 # The commands to extract the exported symbol list from a shared archive.
10543 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10544
10545 # Symbols that should not be listed in the preloaded symbols.
10546 exclude_expsyms=$lt_exclude_expsyms
10547
10548 # Symbols that must always be exported.
10549 include_expsyms=$lt_include_expsyms
10550
10551 # ### END LIBTOOL CONFIG
10552
10553 __EOF__
10554
10555
10556 case $host_os in
10557 aix3*)
10558 cat <<\EOF >> "$cfgfile"
10559
10560 # AIX sometimes has problems with the GCC collect2 program. For some
10561 # reason, if we set the COLLECT_NAMES environment variable, the problems
10562 # vanish in a puff of smoke.
10563 if test "X${COLLECT_NAMES+set}" != Xset; then
10564 COLLECT_NAMES=
10565 export COLLECT_NAMES
10566 fi
10567 EOF
10568 ;;
10569 esac
10570
10571 # We use sed instead of cat because bash on DJGPP gets confused if
10572 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10573 # text mode, it properly converts lines to CR/LF. This bash problem
10574 # is reportedly fixed, but why not run on old versions too?
10575 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10576
10577 mv -f "$cfgfile" "$ofile" || \
10578 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10579 chmod +x "$ofile"
10580
10581 else
10582 # If there is no Makefile yet, we rely on a make rule to execute
10583 # `config.status --recheck' to rerun these tests and create the
10584 # libtool script then.
10585 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10586 if test -f "$ltmain_in"; then
10587 test -f Makefile && make "$ltmain"
10588 fi
10589 fi
10590
10591
10592 ac_ext=c
10593 ac_cpp='$CPP $CPPFLAGS'
10594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10597
10598 CC="$lt_save_CC"
10599
10600
10601 # Check whether --with-tags was given.
10602 if test "${with_tags+set}" = set; then
10603 withval=$with_tags; tagnames="$withval"
10604 fi
10605
10606
10607 if test -f "$ltmain" && test -n "$tagnames"; then
10608 if test ! -f "${ofile}"; then
10609 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10610 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10611 fi
10612
10613 if test -z "$LTCC"; then
10614 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10615 if test -z "$LTCC"; then
10616 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10617 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10618 else
10619 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10620 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10621 fi
10622 fi
10623 if test -z "$LTCFLAGS"; then
10624 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10625 fi
10626
10627 # Extract list of available tagged configurations in $ofile.
10628 # Note that this assumes the entire list is on one line.
10629 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10630
10631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10632 for tagname in $tagnames; do
10633 IFS="$lt_save_ifs"
10634 # Check whether tagname contains only valid characters
10635 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10636 "") ;;
10637 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10638 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10639 { (exit 1); exit 1; }; }
10640 ;;
10641 esac
10642
10643 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10644 then
10645 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10646 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10647 { (exit 1); exit 1; }; }
10648 fi
10649
10650 # Update the list of available tags.
10651 if test -n "$tagname"; then
10652 echo appending configuration tag \"$tagname\" to $ofile
10653
10654 case $tagname in
10655 CXX)
10656 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10657 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10658 (test "X$CXX" != "Xg++"))) ; then
10659 ac_ext=cpp
10660 ac_cpp='$CXXCPP $CPPFLAGS'
10661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10664
10665
10666
10667
10668 archive_cmds_need_lc_CXX=no
10669 allow_undefined_flag_CXX=
10670 always_export_symbols_CXX=no
10671 archive_expsym_cmds_CXX=
10672 export_dynamic_flag_spec_CXX=
10673 hardcode_direct_CXX=no
10674 hardcode_libdir_flag_spec_CXX=
10675 hardcode_libdir_flag_spec_ld_CXX=
10676 hardcode_libdir_separator_CXX=
10677 hardcode_minus_L_CXX=no
10678 hardcode_shlibpath_var_CXX=unsupported
10679 hardcode_automatic_CXX=no
10680 module_cmds_CXX=
10681 module_expsym_cmds_CXX=
10682 link_all_deplibs_CXX=unknown
10683 old_archive_cmds_CXX=$old_archive_cmds
10684 no_undefined_flag_CXX=
10685 whole_archive_flag_spec_CXX=
10686 enable_shared_with_static_runtimes_CXX=no
10687
10688 # Dependencies to place before and after the object being linked:
10689 predep_objects_CXX=
10690 postdep_objects_CXX=
10691 predeps_CXX=
10692 postdeps_CXX=
10693 compiler_lib_search_path_CXX=
10694
10695 # Source file extension for C++ test sources.
10696 ac_ext=cpp
10697
10698 # Object file extension for compiled C++ test sources.
10699 objext=o
10700 objext_CXX=$objext
10701
10702 # Code to be used in simple compile tests
10703 lt_simple_compile_test_code="int some_variable = 0;\n"
10704
10705 # Code to be used in simple link tests
10706 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10707
10708 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10709
10710 # If no C compiler was specified, use CC.
10711 LTCC=${LTCC-"$CC"}
10712
10713 # If no C compiler flags were specified, use CFLAGS.
10714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10715
10716 # Allow CC to be a program name with arguments.
10717 compiler=$CC
10718
10719
10720 # save warnings/boilerplate of simple test code
10721 ac_outfile=conftest.$ac_objext
10722 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10723 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10724 _lt_compiler_boilerplate=`cat conftest.err`
10725 $rm conftest*
10726
10727 ac_outfile=conftest.$ac_objext
10728 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10729 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10730 _lt_linker_boilerplate=`cat conftest.err`
10731 $rm conftest*
10732
10733
10734 # Allow CC to be a program name with arguments.
10735 lt_save_CC=$CC
10736 lt_save_LD=$LD
10737 lt_save_GCC=$GCC
10738 GCC=$GXX
10739 lt_save_with_gnu_ld=$with_gnu_ld
10740 lt_save_path_LD=$lt_cv_path_LD
10741 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10742 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10743 else
10744 $as_unset lt_cv_prog_gnu_ld
10745 fi
10746 if test -n "${lt_cv_path_LDCXX+set}"; then
10747 lt_cv_path_LD=$lt_cv_path_LDCXX
10748 else
10749 $as_unset lt_cv_path_LD
10750 fi
10751 test -z "${LDCXX+set}" || LD=$LDCXX
10752 CC=${CXX-"c++"}
10753 compiler=$CC
10754 compiler_CXX=$CC
10755 for cc_temp in $compiler""; do
10756 case $cc_temp in
10757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10759 \-*) ;;
10760 *) break;;
10761 esac
10762 done
10763 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10764
10765
10766 # We don't want -fno-exception wen compiling C++ code, so set the
10767 # no_builtin_flag separately
10768 if test "$GXX" = yes; then
10769 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10770 else
10771 lt_prog_compiler_no_builtin_flag_CXX=
10772 fi
10773
10774 if test "$GXX" = yes; then
10775 # Set up default GNU C++ configuration
10776
10777
10778 # Check whether --with-gnu-ld was given.
10779 if test "${with_gnu_ld+set}" = set; then
10780 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10781 else
10782 with_gnu_ld=no
10783 fi
10784
10785 ac_prog=ld
10786 if test "$GCC" = yes; then
10787 # Check if gcc -print-prog-name=ld gives a path.
10788 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10789 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10790 case $host in
10791 *-*-mingw*)
10792 # gcc leaves a trailing carriage return which upsets mingw
10793 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10794 *)
10795 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10796 esac
10797 case $ac_prog in
10798 # Accept absolute paths.
10799 [\\/]* | ?:[\\/]*)
10800 re_direlt='/[^/][^/]*/\.\./'
10801 # Canonicalize the pathname of ld
10802 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10803 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10804 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10805 done
10806 test -z "$LD" && LD="$ac_prog"
10807 ;;
10808 "")
10809 # If it fails, then pretend we aren't using GCC.
10810 ac_prog=ld
10811 ;;
10812 *)
10813 # If it is relative, then search for the first ld in PATH.
10814 with_gnu_ld=unknown
10815 ;;
10816 esac
10817 elif test "$with_gnu_ld" = yes; then
10818 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10819 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10820 else
10821 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10822 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10823 fi
10824 if test "${lt_cv_path_LD+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 else
10827 if test -z "$LD"; then
10828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10829 for ac_dir in $PATH; do
10830 IFS="$lt_save_ifs"
10831 test -z "$ac_dir" && ac_dir=.
10832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10833 lt_cv_path_LD="$ac_dir/$ac_prog"
10834 # Check to see if the program is GNU ld. I'd rather use --version,
10835 # but apparently some variants of GNU ld only accept -v.
10836 # Break only if it was the GNU/non-GNU ld that we prefer.
10837 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10838 *GNU* | *'with BFD'*)
10839 test "$with_gnu_ld" != no && break
10840 ;;
10841 *)
10842 test "$with_gnu_ld" != yes && break
10843 ;;
10844 esac
10845 fi
10846 done
10847 IFS="$lt_save_ifs"
10848 else
10849 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10850 fi
10851 fi
10852
10853 LD="$lt_cv_path_LD"
10854 if test -n "$LD"; then
10855 { echo "$as_me:$LINENO: result: $LD" >&5
10856 echo "${ECHO_T}$LD" >&6; }
10857 else
10858 { echo "$as_me:$LINENO: result: no" >&5
10859 echo "${ECHO_T}no" >&6; }
10860 fi
10861 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10862 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10863 { (exit 1); exit 1; }; }
10864 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10865 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10866 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 else
10869 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10870 case `$LD -v 2>&1 </dev/null` in
10871 *GNU* | *'with BFD'*)
10872 lt_cv_prog_gnu_ld=yes
10873 ;;
10874 *)
10875 lt_cv_prog_gnu_ld=no
10876 ;;
10877 esac
10878 fi
10879 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10880 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10881 with_gnu_ld=$lt_cv_prog_gnu_ld
10882
10883
10884
10885 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10886 # archiving commands below assume that GNU ld is being used.
10887 if test "$with_gnu_ld" = yes; then
10888 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10889 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'
10890
10891 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10892 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10893
10894 # If archive_cmds runs LD, not CC, wlarc should be empty
10895 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10896 # investigate it a little bit more. (MM)
10897 wlarc='${wl}'
10898
10899 # ancient GNU ld didn't support --whole-archive et. al.
10900 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10901 grep 'no-whole-archive' > /dev/null; then
10902 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10903 else
10904 whole_archive_flag_spec_CXX=
10905 fi
10906 else
10907 with_gnu_ld=no
10908 wlarc=
10909
10910 # A generic and very simple default shared library creation
10911 # command for GNU C++ for the case where it uses the native
10912 # linker, instead of GNU ld. If possible, this setting should
10913 # overridden to take advantage of the native linker features on
10914 # the platform it is being used on.
10915 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10916 fi
10917
10918 # Commands to make compiler produce verbose output that lists
10919 # what "hidden" libraries, object files and flags are used when
10920 # linking a shared library.
10921 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10922
10923 else
10924 GXX=no
10925 with_gnu_ld=no
10926 wlarc=
10927 fi
10928
10929 # PORTME: fill in a description of your system's C++ link characteristics
10930 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10931 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10932 ld_shlibs_CXX=yes
10933 case $host_os in
10934 aix3*)
10935 # FIXME: insert proper C++ library support
10936 ld_shlibs_CXX=no
10937 ;;
10938 aix4* | aix5*)
10939 if test "$host_cpu" = ia64; then
10940 # On IA64, the linker does run time linking by default, so we don't
10941 # have to do anything special.
10942 aix_use_runtimelinking=no
10943 exp_sym_flag='-Bexport'
10944 no_entry_flag=""
10945 else
10946 aix_use_runtimelinking=no
10947
10948 # Test if we are trying to use run time linking or normal
10949 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10950 # need to do runtime linking.
10951 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10952 for ld_flag in $LDFLAGS; do
10953 case $ld_flag in
10954 *-brtl*)
10955 aix_use_runtimelinking=yes
10956 break
10957 ;;
10958 esac
10959 done
10960 ;;
10961 esac
10962
10963 exp_sym_flag='-bexport'
10964 no_entry_flag='-bnoentry'
10965 fi
10966
10967 # When large executables or shared objects are built, AIX ld can
10968 # have problems creating the table of contents. If linking a library
10969 # or program results in "error TOC overflow" add -mminimal-toc to
10970 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10971 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10972
10973 archive_cmds_CXX=''
10974 hardcode_direct_CXX=yes
10975 hardcode_libdir_separator_CXX=':'
10976 link_all_deplibs_CXX=yes
10977
10978 if test "$GXX" = yes; then
10979 case $host_os in aix4.[012]|aix4.[012].*)
10980 # We only want to do this on AIX 4.2 and lower, the check
10981 # below for broken collect2 doesn't work under 4.3+
10982 collect2name=`${CC} -print-prog-name=collect2`
10983 if test -f "$collect2name" && \
10984 strings "$collect2name" | grep resolve_lib_name >/dev/null
10985 then
10986 # We have reworked collect2
10987 hardcode_direct_CXX=yes
10988 else
10989 # We have old collect2
10990 hardcode_direct_CXX=unsupported
10991 # It fails to find uninstalled libraries when the uninstalled
10992 # path is not listed in the libpath. Setting hardcode_minus_L
10993 # to unsupported forces relinking
10994 hardcode_minus_L_CXX=yes
10995 hardcode_libdir_flag_spec_CXX='-L$libdir'
10996 hardcode_libdir_separator_CXX=
10997 fi
10998 ;;
10999 esac
11000 shared_flag='-shared'
11001 if test "$aix_use_runtimelinking" = yes; then
11002 shared_flag="$shared_flag "'${wl}-G'
11003 fi
11004 else
11005 # not using gcc
11006 if test "$host_cpu" = ia64; then
11007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11008 # chokes on -Wl,-G. The following line is correct:
11009 shared_flag='-G'
11010 else
11011 if test "$aix_use_runtimelinking" = yes; then
11012 shared_flag='${wl}-G'
11013 else
11014 shared_flag='${wl}-bM:SRE'
11015 fi
11016 fi
11017 fi
11018
11019 # It seems that -bexpall does not export symbols beginning with
11020 # underscore (_), so it is better to generate a list of symbols to export.
11021 always_export_symbols_CXX=yes
11022 if test "$aix_use_runtimelinking" = yes; then
11023 # Warning - without using the other runtime loading flags (-brtl),
11024 # -berok will link without error, but may produce a broken library.
11025 allow_undefined_flag_CXX='-berok'
11026 # Determine the default libpath from the value encoded in an empty executable.
11027 cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h. */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033
11034 int
11035 main ()
11036 {
11037
11038 ;
11039 return 0;
11040 }
11041 _ACEOF
11042 rm -f conftest.$ac_objext conftest$ac_exeext
11043 if { (ac_try="$ac_link"
11044 case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11047 esac
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_link") 2>conftest.er1
11050 ac_status=$?
11051 grep -v '^ *+' conftest.er1 >conftest.err
11052 rm -f conftest.er1
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } && {
11056 test -z "$ac_cxx_werror_flag" ||
11057 test ! -s conftest.err
11058 } && test -s conftest$ac_exeext &&
11059 $as_test_x conftest$ac_exeext; then
11060
11061 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11062 }'`
11063 # Check for a 64-bit object if we didn't find anything.
11064 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; }
11065 }'`; fi
11066 else
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070
11071 fi
11072
11073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11074 conftest$ac_exeext conftest.$ac_ext
11075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11076
11077 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11078
11079 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"
11080 else
11081 if test "$host_cpu" = ia64; then
11082 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11083 allow_undefined_flag_CXX="-z nodefs"
11084 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"
11085 else
11086 # Determine the default libpath from the value encoded in an empty executable.
11087 cat >conftest.$ac_ext <<_ACEOF
11088 /* confdefs.h. */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11093
11094 int
11095 main ()
11096 {
11097
11098 ;
11099 return 0;
11100 }
11101 _ACEOF
11102 rm -f conftest.$ac_objext conftest$ac_exeext
11103 if { (ac_try="$ac_link"
11104 case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107 esac
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_link") 2>conftest.er1
11110 ac_status=$?
11111 grep -v '^ *+' conftest.er1 >conftest.err
11112 rm -f conftest.er1
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } && {
11116 test -z "$ac_cxx_werror_flag" ||
11117 test ! -s conftest.err
11118 } && test -s conftest$ac_exeext &&
11119 $as_test_x conftest$ac_exeext; then
11120
11121 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11122 }'`
11123 # Check for a 64-bit object if we didn't find anything.
11124 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; }
11125 }'`; fi
11126 else
11127 echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11129
11130
11131 fi
11132
11133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11134 conftest$ac_exeext conftest.$ac_ext
11135 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11136
11137 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11138 # Warning - without using the other run time loading flags,
11139 # -berok will link without error, but may produce a broken library.
11140 no_undefined_flag_CXX=' ${wl}-bernotok'
11141 allow_undefined_flag_CXX=' ${wl}-berok'
11142 # Exported symbols can be pulled into shared objects from archives
11143 whole_archive_flag_spec_CXX='$convenience'
11144 archive_cmds_need_lc_CXX=yes
11145 # This is similar to how AIX traditionally builds its shared libraries.
11146 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'
11147 fi
11148 fi
11149 ;;
11150
11151 beos*)
11152 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11153 allow_undefined_flag_CXX=unsupported
11154 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11155 # support --undefined. This deserves some investigation. FIXME
11156 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11157 else
11158 ld_shlibs_CXX=no
11159 fi
11160 ;;
11161
11162 chorus*)
11163 case $cc_basename in
11164 *)
11165 # FIXME: insert proper C++ library support
11166 ld_shlibs_CXX=no
11167 ;;
11168 esac
11169 ;;
11170
11171 cygwin* | mingw* | pw32*)
11172 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11173 # as there is no search path for DLLs.
11174 hardcode_libdir_flag_spec_CXX='-L$libdir'
11175 allow_undefined_flag_CXX=unsupported
11176 always_export_symbols_CXX=no
11177 enable_shared_with_static_runtimes_CXX=yes
11178
11179 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11180 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'
11181 # If the export-symbols file already is a .def file (1st line
11182 # is EXPORTS), use it as is; otherwise, prepend...
11183 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11184 cp $export_symbols $output_objdir/$soname.def;
11185 else
11186 echo EXPORTS > $output_objdir/$soname.def;
11187 cat $export_symbols >> $output_objdir/$soname.def;
11188 fi~
11189 $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'
11190 else
11191 ld_shlibs_CXX=no
11192 fi
11193 ;;
11194 darwin* | rhapsody*)
11195 case $host_os in
11196 rhapsody* | darwin1.[012])
11197 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11198 ;;
11199 *) # Darwin 1.3 on
11200 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11201 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11202 else
11203 case ${MACOSX_DEPLOYMENT_TARGET} in
11204 10.[012])
11205 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11206 ;;
11207 10.*)
11208 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11209 ;;
11210 esac
11211 fi
11212 ;;
11213 esac
11214 archive_cmds_need_lc_CXX=no
11215 hardcode_direct_CXX=no
11216 hardcode_automatic_CXX=yes
11217 hardcode_shlibpath_var_CXX=unsupported
11218 whole_archive_flag_spec_CXX=''
11219 link_all_deplibs_CXX=yes
11220
11221 if test "$GXX" = yes ; then
11222 lt_int_apple_cc_single_mod=no
11223 output_verbose_link_cmd='echo'
11224 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11225 lt_int_apple_cc_single_mod=yes
11226 fi
11227 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11228 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11229 else
11230 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'
11231 fi
11232 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11233 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11234 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11235 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}'
11236 else
11237 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}'
11238 fi
11239 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}'
11240 else
11241 case $cc_basename in
11242 xlc*)
11243 output_verbose_link_cmd='echo'
11244 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'
11245 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11246 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11247 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}'
11248 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}'
11249 ;;
11250 *)
11251 ld_shlibs_CXX=no
11252 ;;
11253 esac
11254 fi
11255 ;;
11256
11257 dgux*)
11258 case $cc_basename in
11259 ec++*)
11260 # FIXME: insert proper C++ library support
11261 ld_shlibs_CXX=no
11262 ;;
11263 ghcx*)
11264 # Green Hills C++ Compiler
11265 # FIXME: insert proper C++ library support
11266 ld_shlibs_CXX=no
11267 ;;
11268 *)
11269 # FIXME: insert proper C++ library support
11270 ld_shlibs_CXX=no
11271 ;;
11272 esac
11273 ;;
11274 freebsd[12]*)
11275 # C++ shared libraries reported to be fairly broken before switch to ELF
11276 ld_shlibs_CXX=no
11277 ;;
11278 freebsd-elf*)
11279 archive_cmds_need_lc_CXX=no
11280 ;;
11281 freebsd* | kfreebsd*-gnu | dragonfly*)
11282 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11283 # conventions
11284 ld_shlibs_CXX=yes
11285 ;;
11286 gnu*)
11287 ;;
11288 hpux9*)
11289 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11290 hardcode_libdir_separator_CXX=:
11291 export_dynamic_flag_spec_CXX='${wl}-E'
11292 hardcode_direct_CXX=yes
11293 hardcode_minus_L_CXX=yes # Not in the search PATH,
11294 # but as the default
11295 # location of the library.
11296
11297 case $cc_basename in
11298 CC*)
11299 # FIXME: insert proper C++ library support
11300 ld_shlibs_CXX=no
11301 ;;
11302 aCC*)
11303 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'
11304 # Commands to make compiler produce verbose output that lists
11305 # what "hidden" libraries, object files and flags are used when
11306 # linking a shared library.
11307 #
11308 # There doesn't appear to be a way to prevent this compiler from
11309 # explicitly linking system object files so we need to strip them
11310 # from the output so that they don't get included in the library
11311 # dependencies.
11312 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'
11313 ;;
11314 *)
11315 if test "$GXX" = yes; then
11316 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'
11317 else
11318 # FIXME: insert proper C++ library support
11319 ld_shlibs_CXX=no
11320 fi
11321 ;;
11322 esac
11323 ;;
11324 hpux10*|hpux11*)
11325 if test $with_gnu_ld = no; then
11326 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11327 hardcode_libdir_separator_CXX=:
11328
11329 case $host_cpu in
11330 hppa*64*|ia64*)
11331 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11332 ;;
11333 *)
11334 export_dynamic_flag_spec_CXX='${wl}-E'
11335 ;;
11336 esac
11337 fi
11338 case $host_cpu in
11339 hppa*64*|ia64*)
11340 hardcode_direct_CXX=no
11341 hardcode_shlibpath_var_CXX=no
11342 ;;
11343 *)
11344 hardcode_direct_CXX=yes
11345 hardcode_minus_L_CXX=yes # Not in the search PATH,
11346 # but as the default
11347 # location of the library.
11348 ;;
11349 esac
11350
11351 case $cc_basename in
11352 CC*)
11353 # FIXME: insert proper C++ library support
11354 ld_shlibs_CXX=no
11355 ;;
11356 aCC*)
11357 case $host_cpu in
11358 hppa*64*)
11359 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11360 ;;
11361 ia64*)
11362 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11363 ;;
11364 *)
11365 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11366 ;;
11367 esac
11368 # Commands to make compiler produce verbose output that lists
11369 # what "hidden" libraries, object files and flags are used when
11370 # linking a shared library.
11371 #
11372 # There doesn't appear to be a way to prevent this compiler from
11373 # explicitly linking system object files so we need to strip them
11374 # from the output so that they don't get included in the library
11375 # dependencies.
11376 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'
11377 ;;
11378 *)
11379 if test "$GXX" = yes; then
11380 if test $with_gnu_ld = no; then
11381 case $host_cpu in
11382 hppa*64*)
11383 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11384 ;;
11385 ia64*)
11386 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11387 ;;
11388 *)
11389 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'
11390 ;;
11391 esac
11392 fi
11393 else
11394 # FIXME: insert proper C++ library support
11395 ld_shlibs_CXX=no
11396 fi
11397 ;;
11398 esac
11399 ;;
11400 interix3*)
11401 hardcode_direct_CXX=no
11402 hardcode_shlibpath_var_CXX=no
11403 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11404 export_dynamic_flag_spec_CXX='${wl}-E'
11405 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11406 # Instead, shared libraries are loaded at an image base (0x10000000 by
11407 # default) and relocated if they conflict, which is a slow very memory
11408 # consuming and fragmenting process. To avoid this, we pick a random,
11409 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11410 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11411 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'
11412 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'
11413 ;;
11414 irix5* | irix6*)
11415 case $cc_basename in
11416 CC*)
11417 # SGI C++
11418 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'
11419
11420 # Archives containing C++ object files must be created using
11421 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11422 # necessary to make sure instantiated templates are included
11423 # in the archive.
11424 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11425 ;;
11426 *)
11427 if test "$GXX" = yes; then
11428 if test "$with_gnu_ld" = no; then
11429 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'
11430 else
11431 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'
11432 fi
11433 fi
11434 link_all_deplibs_CXX=yes
11435 ;;
11436 esac
11437 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11438 hardcode_libdir_separator_CXX=:
11439 ;;
11440 linux*)
11441 case $cc_basename in
11442 KCC*)
11443 # Kuck and Associates, Inc. (KAI) C++ Compiler
11444
11445 # KCC will only create a shared library if the output file
11446 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11447 # to its proper name (with version) after linking.
11448 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'
11449 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'
11450 # Commands to make compiler produce verbose output that lists
11451 # what "hidden" libraries, object files and flags are used when
11452 # linking a shared library.
11453 #
11454 # There doesn't appear to be a way to prevent this compiler from
11455 # explicitly linking system object files so we need to strip them
11456 # from the output so that they don't get included in the library
11457 # dependencies.
11458 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'
11459
11460 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11461 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11462
11463 # Archives containing C++ object files must be created using
11464 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11465 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11466 ;;
11467 icpc*)
11468 # Intel C++
11469 with_gnu_ld=yes
11470 # version 8.0 and above of icpc choke on multiply defined symbols
11471 # if we add $predep_objects and $postdep_objects, however 7.1 and
11472 # earlier do not add the objects themselves.
11473 case `$CC -V 2>&1` in
11474 *"Version 7."*)
11475 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11476 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'
11477 ;;
11478 *) # Version 8.0 or newer
11479 tmp_idyn=
11480 case $host_cpu in
11481 ia64*) tmp_idyn=' -i_dynamic';;
11482 esac
11483 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11484 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'
11485 ;;
11486 esac
11487 archive_cmds_need_lc_CXX=no
11488 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11489 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11490 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11491 ;;
11492 pgCC*)
11493 # Portland Group C++ compiler
11494 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11495 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'
11496
11497 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11498 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11499 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'
11500 ;;
11501 cxx*)
11502 # Compaq C++
11503 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11504 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'
11505
11506 runpath_var=LD_RUN_PATH
11507 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11508 hardcode_libdir_separator_CXX=:
11509
11510 # Commands to make compiler produce verbose output that lists
11511 # what "hidden" libraries, object files and flags are used when
11512 # linking a shared library.
11513 #
11514 # There doesn't appear to be a way to prevent this compiler from
11515 # explicitly linking system object files so we need to strip them
11516 # from the output so that they don't get included in the library
11517 # dependencies.
11518 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'
11519 ;;
11520 esac
11521 ;;
11522 lynxos*)
11523 # FIXME: insert proper C++ library support
11524 ld_shlibs_CXX=no
11525 ;;
11526 m88k*)
11527 # FIXME: insert proper C++ library support
11528 ld_shlibs_CXX=no
11529 ;;
11530 mvs*)
11531 case $cc_basename in
11532 cxx*)
11533 # FIXME: insert proper C++ library support
11534 ld_shlibs_CXX=no
11535 ;;
11536 *)
11537 # FIXME: insert proper C++ library support
11538 ld_shlibs_CXX=no
11539 ;;
11540 esac
11541 ;;
11542 netbsd*)
11543 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11544 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11545 wlarc=
11546 hardcode_libdir_flag_spec_CXX='-R$libdir'
11547 hardcode_direct_CXX=yes
11548 hardcode_shlibpath_var_CXX=no
11549 fi
11550 # Workaround some broken pre-1.5 toolchains
11551 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11552 ;;
11553 openbsd2*)
11554 # C++ shared libraries are fairly broken
11555 ld_shlibs_CXX=no
11556 ;;
11557 openbsd*)
11558 hardcode_direct_CXX=yes
11559 hardcode_shlibpath_var_CXX=no
11560 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11561 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11563 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11564 export_dynamic_flag_spec_CXX='${wl}-E'
11565 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11566 fi
11567 output_verbose_link_cmd='echo'
11568 ;;
11569 osf3*)
11570 case $cc_basename in
11571 KCC*)
11572 # Kuck and Associates, Inc. (KAI) C++ Compiler
11573
11574 # KCC will only create a shared library if the output file
11575 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11576 # to its proper name (with version) after linking.
11577 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'
11578
11579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11580 hardcode_libdir_separator_CXX=:
11581
11582 # Archives containing C++ object files must be created using
11583 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11584 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11585
11586 ;;
11587 RCC*)
11588 # Rational C++ 2.4.1
11589 # FIXME: insert proper C++ library support
11590 ld_shlibs_CXX=no
11591 ;;
11592 cxx*)
11593 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11594 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'
11595
11596 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11597 hardcode_libdir_separator_CXX=:
11598
11599 # Commands to make compiler produce verbose output that lists
11600 # what "hidden" libraries, object files and flags are used when
11601 # linking a shared library.
11602 #
11603 # There doesn't appear to be a way to prevent this compiler from
11604 # explicitly linking system object files so we need to strip them
11605 # from the output so that they don't get included in the library
11606 # dependencies.
11607 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'
11608 ;;
11609 *)
11610 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11611 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11612 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'
11613
11614 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11615 hardcode_libdir_separator_CXX=:
11616
11617 # Commands to make compiler produce verbose output that lists
11618 # what "hidden" libraries, object files and flags are used when
11619 # linking a shared library.
11620 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11621
11622 else
11623 # FIXME: insert proper C++ library support
11624 ld_shlibs_CXX=no
11625 fi
11626 ;;
11627 esac
11628 ;;
11629 osf4* | osf5*)
11630 case $cc_basename in
11631 KCC*)
11632 # Kuck and Associates, Inc. (KAI) C++ Compiler
11633
11634 # KCC will only create a shared library if the output file
11635 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11636 # to its proper name (with version) after linking.
11637 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'
11638
11639 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11640 hardcode_libdir_separator_CXX=:
11641
11642 # Archives containing C++ object files must be created using
11643 # the KAI C++ compiler.
11644 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11645 ;;
11646 RCC*)
11647 # Rational C++ 2.4.1
11648 # FIXME: insert proper C++ library support
11649 ld_shlibs_CXX=no
11650 ;;
11651 cxx*)
11652 allow_undefined_flag_CXX=' -expect_unresolved \*'
11653 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'
11654 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11655 echo "-hidden">> $lib.exp~
11656 $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~
11657 $rm $lib.exp'
11658
11659 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11660 hardcode_libdir_separator_CXX=:
11661
11662 # Commands to make compiler produce verbose output that lists
11663 # what "hidden" libraries, object files and flags are used when
11664 # linking a shared library.
11665 #
11666 # There doesn't appear to be a way to prevent this compiler from
11667 # explicitly linking system object files so we need to strip them
11668 # from the output so that they don't get included in the library
11669 # dependencies.
11670 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'
11671 ;;
11672 *)
11673 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11674 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11675 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'
11676
11677 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11678 hardcode_libdir_separator_CXX=:
11679
11680 # Commands to make compiler produce verbose output that lists
11681 # what "hidden" libraries, object files and flags are used when
11682 # linking a shared library.
11683 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11684
11685 else
11686 # FIXME: insert proper C++ library support
11687 ld_shlibs_CXX=no
11688 fi
11689 ;;
11690 esac
11691 ;;
11692 psos*)
11693 # FIXME: insert proper C++ library support
11694 ld_shlibs_CXX=no
11695 ;;
11696 sunos4*)
11697 case $cc_basename in
11698 CC*)
11699 # Sun C++ 4.x
11700 # FIXME: insert proper C++ library support
11701 ld_shlibs_CXX=no
11702 ;;
11703 lcc*)
11704 # Lucid
11705 # FIXME: insert proper C++ library support
11706 ld_shlibs_CXX=no
11707 ;;
11708 *)
11709 # FIXME: insert proper C++ library support
11710 ld_shlibs_CXX=no
11711 ;;
11712 esac
11713 ;;
11714 solaris*)
11715 case $cc_basename in
11716 CC*)
11717 # Sun C++ 4.2, 5.x and Centerline C++
11718 archive_cmds_need_lc_CXX=yes
11719 no_undefined_flag_CXX=' -zdefs'
11720 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11721 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11722 $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'
11723
11724 hardcode_libdir_flag_spec_CXX='-R$libdir'
11725 hardcode_shlibpath_var_CXX=no
11726 case $host_os in
11727 solaris2.[0-5] | solaris2.[0-5].*) ;;
11728 *)
11729 # The C++ compiler is used as linker so we must use $wl
11730 # flag to pass the commands to the underlying system
11731 # linker. We must also pass each convience library through
11732 # to the system linker between allextract/defaultextract.
11733 # The C++ compiler will combine linker options so we
11734 # cannot just pass the convience library names through
11735 # without $wl.
11736 # Supported since Solaris 2.6 (maybe 2.5.1?)
11737 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'
11738 ;;
11739 esac
11740 link_all_deplibs_CXX=yes
11741
11742 output_verbose_link_cmd='echo'
11743
11744 # Archives containing C++ object files must be created using
11745 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11746 # necessary to make sure instantiated templates are included
11747 # in the archive.
11748 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11749 ;;
11750 gcx*)
11751 # Green Hills C++ Compiler
11752 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11753
11754 # The C++ compiler must be used to create the archive.
11755 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11756 ;;
11757 *)
11758 # GNU C++ compiler with Solaris linker
11759 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11760 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11761 if $CC --version | grep -v '^2\.7' > /dev/null; then
11762 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11763 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11764 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11765
11766 # Commands to make compiler produce verbose output that lists
11767 # what "hidden" libraries, object files and flags are used when
11768 # linking a shared library.
11769 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11770 else
11771 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11772 # platform.
11773 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11774 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11775 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11776
11777 # Commands to make compiler produce verbose output that lists
11778 # what "hidden" libraries, object files and flags are used when
11779 # linking a shared library.
11780 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11781 fi
11782
11783 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11784 fi
11785 ;;
11786 esac
11787 ;;
11788 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11789 no_undefined_flag_CXX='${wl}-z,text'
11790 archive_cmds_need_lc_CXX=no
11791 hardcode_shlibpath_var_CXX=no
11792 runpath_var='LD_RUN_PATH'
11793
11794 case $cc_basename in
11795 CC*)
11796 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11797 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11798 ;;
11799 *)
11800 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11801 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11802 ;;
11803 esac
11804 ;;
11805 sysv5* | sco3.2v5* | sco5v6*)
11806 # Note: We can NOT use -z defs as we might desire, because we do not
11807 # link with -lc, and that would cause any symbols used from libc to
11808 # always be unresolved, which means just about no library would
11809 # ever link correctly. If we're not using GNU ld we use -z text
11810 # though, which does catch some bad symbols but isn't as heavy-handed
11811 # as -z defs.
11812 # For security reasons, it is highly recommended that you always
11813 # use absolute paths for naming shared libraries, and exclude the
11814 # DT_RUNPATH tag from executables and libraries. But doing so
11815 # requires that you compile everything twice, which is a pain.
11816 # So that behaviour is only enabled if SCOABSPATH is set to a
11817 # non-empty value in the environment. Most likely only useful for
11818 # creating official distributions of packages.
11819 # This is a hack until libtool officially supports absolute path
11820 # names for shared libraries.
11821 no_undefined_flag_CXX='${wl}-z,text'
11822 allow_undefined_flag_CXX='${wl}-z,nodefs'
11823 archive_cmds_need_lc_CXX=no
11824 hardcode_shlibpath_var_CXX=no
11825 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11826 hardcode_libdir_separator_CXX=':'
11827 link_all_deplibs_CXX=yes
11828 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11829 runpath_var='LD_RUN_PATH'
11830
11831 case $cc_basename in
11832 CC*)
11833 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11834 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11835 ;;
11836 *)
11837 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11838 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11839 ;;
11840 esac
11841 ;;
11842 tandem*)
11843 case $cc_basename in
11844 NCC*)
11845 # NonStop-UX NCC 3.20
11846 # FIXME: insert proper C++ library support
11847 ld_shlibs_CXX=no
11848 ;;
11849 *)
11850 # FIXME: insert proper C++ library support
11851 ld_shlibs_CXX=no
11852 ;;
11853 esac
11854 ;;
11855 vxworks*)
11856 # FIXME: insert proper C++ library support
11857 ld_shlibs_CXX=no
11858 ;;
11859 *)
11860 # FIXME: insert proper C++ library support
11861 ld_shlibs_CXX=no
11862 ;;
11863 esac
11864 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11865 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11866 test "$ld_shlibs_CXX" = no && can_build_shared=no
11867
11868 GCC_CXX="$GXX"
11869 LD_CXX="$LD"
11870
11871
11872 cat > conftest.$ac_ext <<EOF
11873 class Foo
11874 {
11875 public:
11876 Foo (void) { a = 0; }
11877 private:
11878 int a;
11879 };
11880 EOF
11881
11882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11883 (eval $ac_compile) 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; then
11887 # Parse the compiler output and extract the necessary
11888 # objects, libraries and library flags.
11889
11890 # Sentinel used to keep track of whether or not we are before
11891 # the conftest object file.
11892 pre_test_object_deps_done=no
11893
11894 # The `*' in the case matches for architectures that use `case' in
11895 # $output_verbose_cmd can trigger glob expansion during the loop
11896 # eval without this substitution.
11897 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11898
11899 for p in `eval $output_verbose_link_cmd`; do
11900 case $p in
11901
11902 -L* | -R* | -l*)
11903 # Some compilers place space between "-{L,R}" and the path.
11904 # Remove the space.
11905 if test $p = "-L" \
11906 || test $p = "-R"; then
11907 prev=$p
11908 continue
11909 else
11910 prev=
11911 fi
11912
11913 if test "$pre_test_object_deps_done" = no; then
11914 case $p in
11915 -L* | -R*)
11916 # Internal compiler library paths should come after those
11917 # provided the user. The postdeps already come after the
11918 # user supplied libs so there is no need to process them.
11919 if test -z "$compiler_lib_search_path_CXX"; then
11920 compiler_lib_search_path_CXX="${prev}${p}"
11921 else
11922 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11923 fi
11924 ;;
11925 # The "-l" case would never come before the object being
11926 # linked, so don't bother handling this case.
11927 esac
11928 else
11929 if test -z "$postdeps_CXX"; then
11930 postdeps_CXX="${prev}${p}"
11931 else
11932 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11933 fi
11934 fi
11935 ;;
11936
11937 *.$objext)
11938 # This assumes that the test object file only shows up
11939 # once in the compiler output.
11940 if test "$p" = "conftest.$objext"; then
11941 pre_test_object_deps_done=yes
11942 continue
11943 fi
11944
11945 if test "$pre_test_object_deps_done" = no; then
11946 if test -z "$predep_objects_CXX"; then
11947 predep_objects_CXX="$p"
11948 else
11949 predep_objects_CXX="$predep_objects_CXX $p"
11950 fi
11951 else
11952 if test -z "$postdep_objects_CXX"; then
11953 postdep_objects_CXX="$p"
11954 else
11955 postdep_objects_CXX="$postdep_objects_CXX $p"
11956 fi
11957 fi
11958 ;;
11959
11960 *) ;; # Ignore the rest.
11961
11962 esac
11963 done
11964
11965 # Clean up.
11966 rm -f a.out a.exe
11967 else
11968 echo "libtool.m4: error: problem compiling CXX test program"
11969 fi
11970
11971 $rm -f confest.$objext
11972
11973 # PORTME: override above test on systems where it is broken
11974 case $host_os in
11975 interix3*)
11976 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11977 # hack all around it, let's just trust "g++" to DTRT.
11978 predep_objects_CXX=
11979 postdep_objects_CXX=
11980 postdeps_CXX=
11981 ;;
11982
11983 solaris*)
11984 case $cc_basename in
11985 CC*)
11986 # Adding this requires a known-good setup of shared libraries for
11987 # Sun compiler versions before 5.6, else PIC objects from an old
11988 # archive will be linked into the output, leading to subtle bugs.
11989 postdeps_CXX='-lCstd -lCrun'
11990 ;;
11991 esac
11992 ;;
11993 esac
11994
11995
11996 case " $postdeps_CXX " in
11997 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11998 esac
11999
12000 lt_prog_compiler_wl_CXX=
12001 lt_prog_compiler_pic_CXX=
12002 lt_prog_compiler_static_CXX=
12003
12004 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12005 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12006
12007 # C++ specific cases for pic, static, wl, etc.
12008 if test "$GXX" = yes; then
12009 lt_prog_compiler_wl_CXX='-Wl,'
12010 lt_prog_compiler_static_CXX='-static'
12011
12012 case $host_os in
12013 aix*)
12014 # All AIX code is PIC.
12015 if test "$host_cpu" = ia64; then
12016 # AIX 5 now supports IA64 processor
12017 lt_prog_compiler_static_CXX='-Bstatic'
12018 fi
12019 ;;
12020 amigaos*)
12021 # FIXME: we need at least 68020 code to build shared libraries, but
12022 # adding the `-m68020' flag to GCC prevents building anything better,
12023 # like `-m68040'.
12024 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12025 ;;
12026 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12027 # PIC is the default for these OSes.
12028 ;;
12029 mingw* | os2* | pw32*)
12030 # This hack is so that the source file can tell whether it is being
12031 # built for inclusion in a dll (and should export symbols for example).
12032 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12033 ;;
12034 darwin* | rhapsody*)
12035 # PIC is the default on this platform
12036 # Common symbols not allowed in MH_DYLIB files
12037 lt_prog_compiler_pic_CXX='-fno-common'
12038 ;;
12039 *djgpp*)
12040 # DJGPP does not support shared libraries at all
12041 lt_prog_compiler_pic_CXX=
12042 ;;
12043 interix3*)
12044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12045 # Instead, we relocate shared libraries at runtime.
12046 ;;
12047 sysv4*MP*)
12048 if test -d /usr/nec; then
12049 lt_prog_compiler_pic_CXX=-Kconform_pic
12050 fi
12051 ;;
12052 hpux*)
12053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12054 # not for PA HP-UX.
12055 case $host_cpu in
12056 hppa*64*|ia64*)
12057 ;;
12058 *)
12059 lt_prog_compiler_pic_CXX='-fPIC'
12060 ;;
12061 esac
12062 ;;
12063 *)
12064 lt_prog_compiler_pic_CXX='-fPIC'
12065 ;;
12066 esac
12067 else
12068 case $host_os in
12069 aix4* | aix5*)
12070 # All AIX code is PIC.
12071 if test "$host_cpu" = ia64; then
12072 # AIX 5 now supports IA64 processor
12073 lt_prog_compiler_static_CXX='-Bstatic'
12074 else
12075 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12076 fi
12077 ;;
12078 chorus*)
12079 case $cc_basename in
12080 cxch68*)
12081 # Green Hills C++ Compiler
12082 # _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"
12083 ;;
12084 esac
12085 ;;
12086 darwin*)
12087 # PIC is the default on this platform
12088 # Common symbols not allowed in MH_DYLIB files
12089 case $cc_basename in
12090 xlc*)
12091 lt_prog_compiler_pic_CXX='-qnocommon'
12092 lt_prog_compiler_wl_CXX='-Wl,'
12093 ;;
12094 esac
12095 ;;
12096 dgux*)
12097 case $cc_basename in
12098 ec++*)
12099 lt_prog_compiler_pic_CXX='-KPIC'
12100 ;;
12101 ghcx*)
12102 # Green Hills C++ Compiler
12103 lt_prog_compiler_pic_CXX='-pic'
12104 ;;
12105 *)
12106 ;;
12107 esac
12108 ;;
12109 freebsd* | kfreebsd*-gnu | dragonfly*)
12110 # FreeBSD uses GNU C++
12111 ;;
12112 hpux9* | hpux10* | hpux11*)
12113 case $cc_basename in
12114 CC*)
12115 lt_prog_compiler_wl_CXX='-Wl,'
12116 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12117 if test "$host_cpu" != ia64; then
12118 lt_prog_compiler_pic_CXX='+Z'
12119 fi
12120 ;;
12121 aCC*)
12122 lt_prog_compiler_wl_CXX='-Wl,'
12123 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12124 case $host_cpu in
12125 hppa*64*|ia64*)
12126 # +Z the default
12127 ;;
12128 *)
12129 lt_prog_compiler_pic_CXX='+Z'
12130 ;;
12131 esac
12132 ;;
12133 *)
12134 ;;
12135 esac
12136 ;;
12137 interix*)
12138 # This is c89, which is MS Visual C++ (no shared libs)
12139 # Anyone wants to do a port?
12140 ;;
12141 irix5* | irix6* | nonstopux*)
12142 case $cc_basename in
12143 CC*)
12144 lt_prog_compiler_wl_CXX='-Wl,'
12145 lt_prog_compiler_static_CXX='-non_shared'
12146 # CC pic flag -KPIC is the default.
12147 ;;
12148 *)
12149 ;;
12150 esac
12151 ;;
12152 linux*)
12153 case $cc_basename in
12154 KCC*)
12155 # KAI C++ Compiler
12156 lt_prog_compiler_wl_CXX='--backend -Wl,'
12157 lt_prog_compiler_pic_CXX='-fPIC'
12158 ;;
12159 icpc* | ecpc*)
12160 # Intel C++
12161 lt_prog_compiler_wl_CXX='-Wl,'
12162 lt_prog_compiler_pic_CXX='-KPIC'
12163 lt_prog_compiler_static_CXX='-static'
12164 ;;
12165 pgCC*)
12166 # Portland Group C++ compiler.
12167 lt_prog_compiler_wl_CXX='-Wl,'
12168 lt_prog_compiler_pic_CXX='-fpic'
12169 lt_prog_compiler_static_CXX='-Bstatic'
12170 ;;
12171 cxx*)
12172 # Compaq C++
12173 # Make sure the PIC flag is empty. It appears that all Alpha
12174 # Linux and Compaq Tru64 Unix objects are PIC.
12175 lt_prog_compiler_pic_CXX=
12176 lt_prog_compiler_static_CXX='-non_shared'
12177 ;;
12178 *)
12179 ;;
12180 esac
12181 ;;
12182 lynxos*)
12183 ;;
12184 m88k*)
12185 ;;
12186 mvs*)
12187 case $cc_basename in
12188 cxx*)
12189 lt_prog_compiler_pic_CXX='-W c,exportall'
12190 ;;
12191 *)
12192 ;;
12193 esac
12194 ;;
12195 netbsd*)
12196 ;;
12197 osf3* | osf4* | osf5*)
12198 case $cc_basename in
12199 KCC*)
12200 lt_prog_compiler_wl_CXX='--backend -Wl,'
12201 ;;
12202 RCC*)
12203 # Rational C++ 2.4.1
12204 lt_prog_compiler_pic_CXX='-pic'
12205 ;;
12206 cxx*)
12207 # Digital/Compaq C++
12208 lt_prog_compiler_wl_CXX='-Wl,'
12209 # Make sure the PIC flag is empty. It appears that all Alpha
12210 # Linux and Compaq Tru64 Unix objects are PIC.
12211 lt_prog_compiler_pic_CXX=
12212 lt_prog_compiler_static_CXX='-non_shared'
12213 ;;
12214 *)
12215 ;;
12216 esac
12217 ;;
12218 psos*)
12219 ;;
12220 solaris*)
12221 case $cc_basename in
12222 CC*)
12223 # Sun C++ 4.2, 5.x and Centerline C++
12224 lt_prog_compiler_pic_CXX='-KPIC'
12225 lt_prog_compiler_static_CXX='-Bstatic'
12226 lt_prog_compiler_wl_CXX='-Qoption ld '
12227 ;;
12228 gcx*)
12229 # Green Hills C++ Compiler
12230 lt_prog_compiler_pic_CXX='-PIC'
12231 ;;
12232 *)
12233 ;;
12234 esac
12235 ;;
12236 sunos4*)
12237 case $cc_basename in
12238 CC*)
12239 # Sun C++ 4.x
12240 lt_prog_compiler_pic_CXX='-pic'
12241 lt_prog_compiler_static_CXX='-Bstatic'
12242 ;;
12243 lcc*)
12244 # Lucid
12245 lt_prog_compiler_pic_CXX='-pic'
12246 ;;
12247 *)
12248 ;;
12249 esac
12250 ;;
12251 tandem*)
12252 case $cc_basename in
12253 NCC*)
12254 # NonStop-UX NCC 3.20
12255 lt_prog_compiler_pic_CXX='-KPIC'
12256 ;;
12257 *)
12258 ;;
12259 esac
12260 ;;
12261 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12262 case $cc_basename in
12263 CC*)
12264 lt_prog_compiler_wl_CXX='-Wl,'
12265 lt_prog_compiler_pic_CXX='-KPIC'
12266 lt_prog_compiler_static_CXX='-Bstatic'
12267 ;;
12268 esac
12269 ;;
12270 vxworks*)
12271 ;;
12272 *)
12273 lt_prog_compiler_can_build_shared_CXX=no
12274 ;;
12275 esac
12276 fi
12277
12278 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12279 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12280
12281 #
12282 # Check to make sure the PIC flag actually works.
12283 #
12284 if test -n "$lt_prog_compiler_pic_CXX"; then
12285
12286 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12287 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12288 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291 lt_prog_compiler_pic_works_CXX=no
12292 ac_outfile=conftest.$ac_objext
12293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12294 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12295 # Insert the option either (1) after the last *FLAGS variable, or
12296 # (2) before a word containing "conftest.", or (3) at the end.
12297 # Note that $ac_compile itself does not contain backslashes and begins
12298 # with a dollar sign (not a hyphen), so the echo should work correctly.
12299 # The option is referenced via a variable to avoid confusing sed.
12300 lt_compile=`echo "$ac_compile" | $SED \
12301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12303 -e 's:$: $lt_compiler_flag:'`
12304 (eval echo "\"\$as_me:12304: $lt_compile\"" >&5)
12305 (eval "$lt_compile" 2>conftest.err)
12306 ac_status=$?
12307 cat conftest.err >&5
12308 echo "$as_me:12308: \$? = $ac_status" >&5
12309 if (exit $ac_status) && test -s "$ac_outfile"; then
12310 # The compiler can only warn and ignore the option if not recognized
12311 # So say no if there are warnings other than the usual output.
12312 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12314 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12315 lt_prog_compiler_pic_works_CXX=yes
12316 fi
12317 fi
12318 $rm conftest*
12319
12320 fi
12321 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12322 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12323
12324 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12325 case $lt_prog_compiler_pic_CXX in
12326 "" | " "*) ;;
12327 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12328 esac
12329 else
12330 lt_prog_compiler_pic_CXX=
12331 lt_prog_compiler_can_build_shared_CXX=no
12332 fi
12333
12334 fi
12335 case $host_os in
12336 # For platforms which do not support PIC, -DPIC is meaningless:
12337 *djgpp*)
12338 lt_prog_compiler_pic_CXX=
12339 ;;
12340 *)
12341 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12342 ;;
12343 esac
12344
12345 #
12346 # Check to make sure the static flag actually works.
12347 #
12348 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12349 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12350 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12351 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354 lt_prog_compiler_static_works_CXX=no
12355 save_LDFLAGS="$LDFLAGS"
12356 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12357 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12358 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12359 # The linker can only warn and ignore the option if not recognized
12360 # So say no if there are warnings
12361 if test -s conftest.err; then
12362 # Append any errors to the config.log.
12363 cat conftest.err 1>&5
12364 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12366 if diff conftest.exp conftest.er2 >/dev/null; then
12367 lt_prog_compiler_static_works_CXX=yes
12368 fi
12369 else
12370 lt_prog_compiler_static_works_CXX=yes
12371 fi
12372 fi
12373 $rm conftest*
12374 LDFLAGS="$save_LDFLAGS"
12375
12376 fi
12377 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12378 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12379
12380 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12381 :
12382 else
12383 lt_prog_compiler_static_CXX=
12384 fi
12385
12386
12387 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12388 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12389 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392 lt_cv_prog_compiler_c_o_CXX=no
12393 $rm -r conftest 2>/dev/null
12394 mkdir conftest
12395 cd conftest
12396 mkdir out
12397 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12398
12399 lt_compiler_flag="-o out/conftest2.$ac_objext"
12400 # Insert the option either (1) after the last *FLAGS variable, or
12401 # (2) before a word containing "conftest.", or (3) at the end.
12402 # Note that $ac_compile itself does not contain backslashes and begins
12403 # with a dollar sign (not a hyphen), so the echo should work correctly.
12404 lt_compile=`echo "$ac_compile" | $SED \
12405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12407 -e 's:$: $lt_compiler_flag:'`
12408 (eval echo "\"\$as_me:12408: $lt_compile\"" >&5)
12409 (eval "$lt_compile" 2>out/conftest.err)
12410 ac_status=$?
12411 cat out/conftest.err >&5
12412 echo "$as_me:12412: \$? = $ac_status" >&5
12413 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12414 then
12415 # The compiler can only warn and ignore the option if not recognized
12416 # So say no if there are warnings
12417 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12418 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12419 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12420 lt_cv_prog_compiler_c_o_CXX=yes
12421 fi
12422 fi
12423 chmod u+w . 2>&5
12424 $rm conftest*
12425 # SGI C++ compiler will create directory out/ii_files/ for
12426 # template instantiation
12427 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12428 $rm out/* && rmdir out
12429 cd ..
12430 rmdir conftest
12431 $rm conftest*
12432
12433 fi
12434 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12435 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12436
12437
12438 hard_links="nottested"
12439 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12440 # do not overwrite the value of need_locks provided by the user
12441 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12442 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12443 hard_links=yes
12444 $rm conftest*
12445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12446 touch conftest.a
12447 ln conftest.a conftest.b 2>&5 || hard_links=no
12448 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12449 { echo "$as_me:$LINENO: result: $hard_links" >&5
12450 echo "${ECHO_T}$hard_links" >&6; }
12451 if test "$hard_links" = no; then
12452 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12453 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12454 need_locks=warn
12455 fi
12456 else
12457 need_locks=no
12458 fi
12459
12460 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12461 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12462
12463 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12464 case $host_os in
12465 aix4* | aix5*)
12466 # If we're using GNU nm, then we don't want the "-C" option.
12467 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12468 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12469 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'
12470 else
12471 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'
12472 fi
12473 ;;
12474 pw32*)
12475 export_symbols_cmds_CXX="$ltdll_cmds"
12476 ;;
12477 cygwin* | mingw*)
12478 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'
12479 ;;
12480 *)
12481 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12482 ;;
12483 esac
12484
12485 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12486 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12487 test "$ld_shlibs_CXX" = no && can_build_shared=no
12488
12489 #
12490 # Do we need to explicitly link libc?
12491 #
12492 case "x$archive_cmds_need_lc_CXX" in
12493 x|xyes)
12494 # Assume -lc should be added
12495 archive_cmds_need_lc_CXX=yes
12496
12497 if test "$enable_shared" = yes && test "$GCC" = yes; then
12498 case $archive_cmds_CXX in
12499 *'~'*)
12500 # FIXME: we may have to deal with multi-command sequences.
12501 ;;
12502 '$CC '*)
12503 # Test whether the compiler implicitly links with -lc since on some
12504 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12505 # to ld, don't add -lc before -lgcc.
12506 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12507 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12508 $rm conftest*
12509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12510
12511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512 (eval $ac_compile) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } 2>conftest.err; then
12516 soname=conftest
12517 lib=conftest
12518 libobjs=conftest.$ac_objext
12519 deplibs=
12520 wl=$lt_prog_compiler_wl_CXX
12521 pic_flag=$lt_prog_compiler_pic_CXX
12522 compiler_flags=-v
12523 linker_flags=-v
12524 verstring=
12525 output_objdir=.
12526 libname=conftest
12527 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12528 allow_undefined_flag_CXX=
12529 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12530 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }
12534 then
12535 archive_cmds_need_lc_CXX=no
12536 else
12537 archive_cmds_need_lc_CXX=yes
12538 fi
12539 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12540 else
12541 cat conftest.err 1>&5
12542 fi
12543 $rm conftest*
12544 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12545 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12546 ;;
12547 esac
12548 fi
12549 ;;
12550 esac
12551
12552 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12553 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12554 library_names_spec=
12555 libname_spec='lib$name'
12556 soname_spec=
12557 shrext_cmds=".so"
12558 postinstall_cmds=
12559 postuninstall_cmds=
12560 finish_cmds=
12561 finish_eval=
12562 shlibpath_var=
12563 shlibpath_overrides_runpath=unknown
12564 version_type=none
12565 dynamic_linker="$host_os ld.so"
12566 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12567 if test "$GCC" = yes; then
12568 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12569 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12570 # if the path contains ";" then we assume it to be the separator
12571 # otherwise default to the standard path separator (i.e. ":") - it is
12572 # assumed that no part of a normal pathname contains ";" but that should
12573 # okay in the real world where ";" in dirpaths is itself problematic.
12574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12575 else
12576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12577 fi
12578 else
12579 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12580 fi
12581 need_lib_prefix=unknown
12582 hardcode_into_libs=no
12583
12584 # when you set need_version to no, make sure it does not cause -set_version
12585 # flags to be left without arguments
12586 need_version=unknown
12587
12588 case $host_os in
12589 aix3*)
12590 version_type=linux
12591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12592 shlibpath_var=LIBPATH
12593
12594 # AIX 3 has no versioning support, so we append a major version to the name.
12595 soname_spec='${libname}${release}${shared_ext}$major'
12596 ;;
12597
12598 aix4* | aix5*)
12599 version_type=linux
12600 need_lib_prefix=no
12601 need_version=no
12602 hardcode_into_libs=yes
12603 if test "$host_cpu" = ia64; then
12604 # AIX 5 supports IA64
12605 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12606 shlibpath_var=LD_LIBRARY_PATH
12607 else
12608 # With GCC up to 2.95.x, collect2 would create an import file
12609 # for dependence libraries. The import file would start with
12610 # the line `#! .'. This would cause the generated library to
12611 # depend on `.', always an invalid library. This was fixed in
12612 # development snapshots of GCC prior to 3.0.
12613 case $host_os in
12614 aix4 | aix4.[01] | aix4.[01].*)
12615 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12616 echo ' yes '
12617 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12618 :
12619 else
12620 can_build_shared=no
12621 fi
12622 ;;
12623 esac
12624 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12625 # soname into executable. Probably we can add versioning support to
12626 # collect2, so additional links can be useful in future.
12627 if test "$aix_use_runtimelinking" = yes; then
12628 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12629 # instead of lib<name>.a to let people know that these are not
12630 # typical AIX shared libraries.
12631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12632 else
12633 # We preserve .a as extension for shared libraries through AIX4.2
12634 # and later when we are not doing run time linking.
12635 library_names_spec='${libname}${release}.a $libname.a'
12636 soname_spec='${libname}${release}${shared_ext}$major'
12637 fi
12638 shlibpath_var=LIBPATH
12639 fi
12640 ;;
12641
12642 amigaos*)
12643 library_names_spec='$libname.ixlibrary $libname.a'
12644 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12645 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'
12646 ;;
12647
12648 beos*)
12649 library_names_spec='${libname}${shared_ext}'
12650 dynamic_linker="$host_os ld.so"
12651 shlibpath_var=LIBRARY_PATH
12652 ;;
12653
12654 bsdi[45]*)
12655 version_type=linux
12656 need_version=no
12657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12658 soname_spec='${libname}${release}${shared_ext}$major'
12659 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12660 shlibpath_var=LD_LIBRARY_PATH
12661 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12662 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12663 # the default ld.so.conf also contains /usr/contrib/lib and
12664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12665 # libtool to hard-code these into programs
12666 ;;
12667
12668 cygwin* | mingw* | pw32*)
12669 version_type=windows
12670 shrext_cmds=".dll"
12671 need_version=no
12672 need_lib_prefix=no
12673
12674 case $GCC,$host_os in
12675 yes,cygwin* | yes,mingw* | yes,pw32*)
12676 library_names_spec='$libname.dll.a'
12677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12678 postinstall_cmds='base_file=`basename \${file}`~
12679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12680 dldir=$destdir/`dirname \$dlpath`~
12681 test -d \$dldir || mkdir -p \$dldir~
12682 $install_prog $dir/$dlname \$dldir/$dlname~
12683 chmod a+x \$dldir/$dlname'
12684 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12685 dlpath=$dir/\$dldll~
12686 $rm \$dlpath'
12687 shlibpath_overrides_runpath=yes
12688
12689 case $host_os in
12690 cygwin*)
12691 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12692 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12693 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12694 ;;
12695 mingw*)
12696 # MinGW DLLs use traditional 'lib' prefix
12697 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12698 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12699 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12700 # It is most probably a Windows format PATH printed by
12701 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12702 # path with ; separators, and with drive letters. We can handle the
12703 # drive letters (cygwin fileutils understands them), so leave them,
12704 # especially as we might pass files found there to a mingw objdump,
12705 # which wouldn't understand a cygwinified path. Ahh.
12706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12707 else
12708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12709 fi
12710 ;;
12711 pw32*)
12712 # pw32 DLLs use 'pw' prefix rather than 'lib'
12713 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12714 ;;
12715 esac
12716 ;;
12717
12718 *)
12719 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12720 ;;
12721 esac
12722 dynamic_linker='Win32 ld.exe'
12723 # FIXME: first we should search . and the directory the executable is in
12724 shlibpath_var=PATH
12725 ;;
12726
12727 darwin* | rhapsody*)
12728 dynamic_linker="$host_os dyld"
12729 version_type=darwin
12730 need_lib_prefix=no
12731 need_version=no
12732 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12733 soname_spec='${libname}${release}${major}$shared_ext'
12734 shlibpath_overrides_runpath=yes
12735 shlibpath_var=DYLD_LIBRARY_PATH
12736 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12737 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12738 if test "$GCC" = yes; then
12739 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"`
12740 else
12741 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12742 fi
12743 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12744 ;;
12745
12746 dgux*)
12747 version_type=linux
12748 need_lib_prefix=no
12749 need_version=no
12750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12751 soname_spec='${libname}${release}${shared_ext}$major'
12752 shlibpath_var=LD_LIBRARY_PATH
12753 ;;
12754
12755 freebsd1*)
12756 dynamic_linker=no
12757 ;;
12758
12759 kfreebsd*-gnu)
12760 version_type=linux
12761 need_lib_prefix=no
12762 need_version=no
12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12764 soname_spec='${libname}${release}${shared_ext}$major'
12765 shlibpath_var=LD_LIBRARY_PATH
12766 shlibpath_overrides_runpath=no
12767 hardcode_into_libs=yes
12768 dynamic_linker='GNU ld.so'
12769 ;;
12770
12771 freebsd* | dragonfly*)
12772 # DragonFly does not have aout. When/if they implement a new
12773 # versioning mechanism, adjust this.
12774 if test -x /usr/bin/objformat; then
12775 objformat=`/usr/bin/objformat`
12776 else
12777 case $host_os in
12778 freebsd[123]*) objformat=aout ;;
12779 *) objformat=elf ;;
12780 esac
12781 fi
12782 version_type=freebsd-$objformat
12783 case $version_type in
12784 freebsd-elf*)
12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12786 need_version=no
12787 need_lib_prefix=no
12788 ;;
12789 freebsd-*)
12790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12791 need_version=yes
12792 ;;
12793 esac
12794 shlibpath_var=LD_LIBRARY_PATH
12795 case $host_os in
12796 freebsd2*)
12797 shlibpath_overrides_runpath=yes
12798 ;;
12799 freebsd3.[01]* | freebsdelf3.[01]*)
12800 shlibpath_overrides_runpath=yes
12801 hardcode_into_libs=yes
12802 ;;
12803 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12804 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12805 shlibpath_overrides_runpath=no
12806 hardcode_into_libs=yes
12807 ;;
12808 freebsd*) # from 4.6 on
12809 shlibpath_overrides_runpath=yes
12810 hardcode_into_libs=yes
12811 ;;
12812 esac
12813 ;;
12814
12815 gnu*)
12816 version_type=linux
12817 need_lib_prefix=no
12818 need_version=no
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12820 soname_spec='${libname}${release}${shared_ext}$major'
12821 shlibpath_var=LD_LIBRARY_PATH
12822 hardcode_into_libs=yes
12823 ;;
12824
12825 hpux9* | hpux10* | hpux11*)
12826 # Give a soname corresponding to the major version so that dld.sl refuses to
12827 # link against other versions.
12828 version_type=sunos
12829 need_lib_prefix=no
12830 need_version=no
12831 case $host_cpu in
12832 ia64*)
12833 shrext_cmds='.so'
12834 hardcode_into_libs=yes
12835 dynamic_linker="$host_os dld.so"
12836 shlibpath_var=LD_LIBRARY_PATH
12837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12839 soname_spec='${libname}${release}${shared_ext}$major'
12840 if test "X$HPUX_IA64_MODE" = X32; then
12841 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12842 else
12843 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12844 fi
12845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12846 ;;
12847 hppa*64*)
12848 shrext_cmds='.sl'
12849 hardcode_into_libs=yes
12850 dynamic_linker="$host_os dld.sl"
12851 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12852 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12854 soname_spec='${libname}${release}${shared_ext}$major'
12855 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12857 ;;
12858 *)
12859 shrext_cmds='.sl'
12860 dynamic_linker="$host_os dld.sl"
12861 shlibpath_var=SHLIB_PATH
12862 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12864 soname_spec='${libname}${release}${shared_ext}$major'
12865 ;;
12866 esac
12867 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12868 postinstall_cmds='chmod 555 $lib'
12869 ;;
12870
12871 interix3*)
12872 version_type=linux
12873 need_lib_prefix=no
12874 need_version=no
12875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12876 soname_spec='${libname}${release}${shared_ext}$major'
12877 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12878 shlibpath_var=LD_LIBRARY_PATH
12879 shlibpath_overrides_runpath=no
12880 hardcode_into_libs=yes
12881 ;;
12882
12883 irix5* | irix6* | nonstopux*)
12884 case $host_os in
12885 nonstopux*) version_type=nonstopux ;;
12886 *)
12887 if test "$lt_cv_prog_gnu_ld" = yes; then
12888 version_type=linux
12889 else
12890 version_type=irix
12891 fi ;;
12892 esac
12893 need_lib_prefix=no
12894 need_version=no
12895 soname_spec='${libname}${release}${shared_ext}$major'
12896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12897 case $host_os in
12898 irix5* | nonstopux*)
12899 libsuff= shlibsuff=
12900 ;;
12901 *)
12902 case $LD in # libtool.m4 will add one of these switches to LD
12903 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12904 libsuff= shlibsuff= libmagic=32-bit;;
12905 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12906 libsuff=32 shlibsuff=N32 libmagic=N32;;
12907 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12908 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12909 *) libsuff= shlibsuff= libmagic=never-match;;
12910 esac
12911 ;;
12912 esac
12913 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12914 shlibpath_overrides_runpath=no
12915 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12916 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12917 hardcode_into_libs=yes
12918 ;;
12919
12920 # No shared lib support for Linux oldld, aout, or coff.
12921 linux*oldld* | linux*aout* | linux*coff*)
12922 dynamic_linker=no
12923 ;;
12924
12925 # This must be Linux ELF.
12926 linux*)
12927 version_type=linux
12928 need_lib_prefix=no
12929 need_version=no
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12931 soname_spec='${libname}${release}${shared_ext}$major'
12932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12933 shlibpath_var=LD_LIBRARY_PATH
12934 shlibpath_overrides_runpath=no
12935 # This implies no fast_install, which is unacceptable.
12936 # Some rework will be needed to allow for fast_install
12937 # before this can be enabled.
12938 hardcode_into_libs=yes
12939
12940 # find out which ABI we are using
12941 libsuff=
12942 case "$host_cpu" in
12943 x86_64*|s390x*|powerpc64*)
12944 echo '#line 12944 "configure"' > conftest.$ac_ext
12945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12946 (eval $ac_compile) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; then
12950 case `/usr/bin/file conftest.$ac_objext` in
12951 *64-bit*)
12952 libsuff=64
12953 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12954 ;;
12955 esac
12956 fi
12957 rm -rf conftest*
12958 ;;
12959 esac
12960
12961 # Append ld.so.conf contents to the search path
12962 if test -f /etc/ld.so.conf; then
12963 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' ' '`
12964 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12965 fi
12966
12967 # We used to test for /lib/ld.so.1 and disable shared libraries on
12968 # powerpc, because MkLinux only supported shared libraries with the
12969 # GNU dynamic linker. Since this was broken with cross compilers,
12970 # most powerpc-linux boxes support dynamic linking these days and
12971 # people can always --disable-shared, the test was removed, and we
12972 # assume the GNU/Linux dynamic linker is in use.
12973 dynamic_linker='GNU/Linux ld.so'
12974 ;;
12975
12976 knetbsd*-gnu)
12977 version_type=linux
12978 need_lib_prefix=no
12979 need_version=no
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12981 soname_spec='${libname}${release}${shared_ext}$major'
12982 shlibpath_var=LD_LIBRARY_PATH
12983 shlibpath_overrides_runpath=no
12984 hardcode_into_libs=yes
12985 dynamic_linker='GNU ld.so'
12986 ;;
12987
12988 netbsd*)
12989 version_type=sunos
12990 need_lib_prefix=no
12991 need_version=no
12992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12995 dynamic_linker='NetBSD (a.out) ld.so'
12996 else
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12998 soname_spec='${libname}${release}${shared_ext}$major'
12999 dynamic_linker='NetBSD ld.elf_so'
13000 fi
13001 shlibpath_var=LD_LIBRARY_PATH
13002 shlibpath_overrides_runpath=yes
13003 hardcode_into_libs=yes
13004 ;;
13005
13006 newsos6)
13007 version_type=linux
13008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009 shlibpath_var=LD_LIBRARY_PATH
13010 shlibpath_overrides_runpath=yes
13011 ;;
13012
13013 nto-qnx*)
13014 version_type=linux
13015 need_lib_prefix=no
13016 need_version=no
13017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13018 soname_spec='${libname}${release}${shared_ext}$major'
13019 shlibpath_var=LD_LIBRARY_PATH
13020 shlibpath_overrides_runpath=yes
13021 ;;
13022
13023 openbsd*)
13024 version_type=sunos
13025 sys_lib_dlsearch_path_spec="/usr/lib"
13026 need_lib_prefix=no
13027 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13028 case $host_os in
13029 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13030 *) need_version=no ;;
13031 esac
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13034 shlibpath_var=LD_LIBRARY_PATH
13035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13036 case $host_os in
13037 openbsd2.[89] | openbsd2.[89].*)
13038 shlibpath_overrides_runpath=no
13039 ;;
13040 *)
13041 shlibpath_overrides_runpath=yes
13042 ;;
13043 esac
13044 else
13045 shlibpath_overrides_runpath=yes
13046 fi
13047 ;;
13048
13049 os2*)
13050 libname_spec='$name'
13051 shrext_cmds=".dll"
13052 need_lib_prefix=no
13053 library_names_spec='$libname${shared_ext} $libname.a'
13054 dynamic_linker='OS/2 ld.exe'
13055 shlibpath_var=LIBPATH
13056 ;;
13057
13058 osf3* | osf4* | osf5*)
13059 version_type=osf
13060 need_lib_prefix=no
13061 need_version=no
13062 soname_spec='${libname}${release}${shared_ext}$major'
13063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13064 shlibpath_var=LD_LIBRARY_PATH
13065 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13066 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13067 ;;
13068
13069 solaris*)
13070 version_type=linux
13071 need_lib_prefix=no
13072 need_version=no
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13074 soname_spec='${libname}${release}${shared_ext}$major'
13075 shlibpath_var=LD_LIBRARY_PATH
13076 shlibpath_overrides_runpath=yes
13077 hardcode_into_libs=yes
13078 # ldd complains unless libraries are executable
13079 postinstall_cmds='chmod +x $lib'
13080 ;;
13081
13082 sunos4*)
13083 version_type=sunos
13084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13085 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13086 shlibpath_var=LD_LIBRARY_PATH
13087 shlibpath_overrides_runpath=yes
13088 if test "$with_gnu_ld" = yes; then
13089 need_lib_prefix=no
13090 fi
13091 need_version=yes
13092 ;;
13093
13094 sysv4 | sysv4.3*)
13095 version_type=linux
13096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097 soname_spec='${libname}${release}${shared_ext}$major'
13098 shlibpath_var=LD_LIBRARY_PATH
13099 case $host_vendor in
13100 sni)
13101 shlibpath_overrides_runpath=no
13102 need_lib_prefix=no
13103 export_dynamic_flag_spec='${wl}-Blargedynsym'
13104 runpath_var=LD_RUN_PATH
13105 ;;
13106 siemens)
13107 need_lib_prefix=no
13108 ;;
13109 motorola)
13110 need_lib_prefix=no
13111 need_version=no
13112 shlibpath_overrides_runpath=no
13113 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13114 ;;
13115 esac
13116 ;;
13117
13118 sysv4*MP*)
13119 if test -d /usr/nec ;then
13120 version_type=linux
13121 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13122 soname_spec='$libname${shared_ext}.$major'
13123 shlibpath_var=LD_LIBRARY_PATH
13124 fi
13125 ;;
13126
13127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13128 version_type=freebsd-elf
13129 need_lib_prefix=no
13130 need_version=no
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13132 soname_spec='${libname}${release}${shared_ext}$major'
13133 shlibpath_var=LD_LIBRARY_PATH
13134 hardcode_into_libs=yes
13135 if test "$with_gnu_ld" = yes; then
13136 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13137 shlibpath_overrides_runpath=no
13138 else
13139 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13140 shlibpath_overrides_runpath=yes
13141 case $host_os in
13142 sco3.2v5*)
13143 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13144 ;;
13145 esac
13146 fi
13147 sys_lib_dlsearch_path_spec='/usr/lib'
13148 ;;
13149
13150 uts4*)
13151 version_type=linux
13152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13153 soname_spec='${libname}${release}${shared_ext}$major'
13154 shlibpath_var=LD_LIBRARY_PATH
13155 ;;
13156
13157 *)
13158 dynamic_linker=no
13159 ;;
13160 esac
13161 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13162 echo "${ECHO_T}$dynamic_linker" >&6; }
13163 test "$dynamic_linker" = no && can_build_shared=no
13164
13165 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13166 if test "$GCC" = yes; then
13167 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13168 fi
13169
13170 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13171 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13172 hardcode_action_CXX=
13173 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13174 test -n "$runpath_var_CXX" || \
13175 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13176
13177 # We can hardcode non-existant directories.
13178 if test "$hardcode_direct_CXX" != no &&
13179 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13180 # have to relink, otherwise we might link with an installed library
13181 # when we should be linking with a yet-to-be-installed one
13182 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13183 test "$hardcode_minus_L_CXX" != no; then
13184 # Linking always hardcodes the temporary library directory.
13185 hardcode_action_CXX=relink
13186 else
13187 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13188 hardcode_action_CXX=immediate
13189 fi
13190 else
13191 # We cannot hardcode anything, or else we can only hardcode existing
13192 # directories.
13193 hardcode_action_CXX=unsupported
13194 fi
13195 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13196 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13197
13198 if test "$hardcode_action_CXX" = relink; then
13199 # Fast installation is not supported
13200 enable_fast_install=no
13201 elif test "$shlibpath_overrides_runpath" = yes ||
13202 test "$enable_shared" = no; then
13203 # Fast installation is not necessary
13204 enable_fast_install=needless
13205 fi
13206
13207
13208 # The else clause should only fire when bootstrapping the
13209 # libtool distribution, otherwise you forgot to ship ltmain.sh
13210 # with your package, and you will get complaints that there are
13211 # no rules to generate ltmain.sh.
13212 if test -f "$ltmain"; then
13213 # See if we are running on zsh, and set the options which allow our commands through
13214 # without removal of \ escapes.
13215 if test -n "${ZSH_VERSION+set}" ; then
13216 setopt NO_GLOB_SUBST
13217 fi
13218 # Now quote all the things that may contain metacharacters while being
13219 # careful not to overquote the AC_SUBSTed values. We take copies of the
13220 # variables and quote the copies for generation of the libtool script.
13221 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13222 SED SHELL STRIP \
13223 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13224 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13225 deplibs_check_method reload_flag reload_cmds need_locks \
13226 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13227 lt_cv_sys_global_symbol_to_c_name_address \
13228 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13229 old_postinstall_cmds old_postuninstall_cmds \
13230 compiler_CXX \
13231 CC_CXX \
13232 LD_CXX \
13233 lt_prog_compiler_wl_CXX \
13234 lt_prog_compiler_pic_CXX \
13235 lt_prog_compiler_static_CXX \
13236 lt_prog_compiler_no_builtin_flag_CXX \
13237 export_dynamic_flag_spec_CXX \
13238 thread_safe_flag_spec_CXX \
13239 whole_archive_flag_spec_CXX \
13240 enable_shared_with_static_runtimes_CXX \
13241 old_archive_cmds_CXX \
13242 old_archive_from_new_cmds_CXX \
13243 predep_objects_CXX \
13244 postdep_objects_CXX \
13245 predeps_CXX \
13246 postdeps_CXX \
13247 compiler_lib_search_path_CXX \
13248 archive_cmds_CXX \
13249 archive_expsym_cmds_CXX \
13250 postinstall_cmds_CXX \
13251 postuninstall_cmds_CXX \
13252 old_archive_from_expsyms_cmds_CXX \
13253 allow_undefined_flag_CXX \
13254 no_undefined_flag_CXX \
13255 export_symbols_cmds_CXX \
13256 hardcode_libdir_flag_spec_CXX \
13257 hardcode_libdir_flag_spec_ld_CXX \
13258 hardcode_libdir_separator_CXX \
13259 hardcode_automatic_CXX \
13260 module_cmds_CXX \
13261 module_expsym_cmds_CXX \
13262 lt_cv_prog_compiler_c_o_CXX \
13263 exclude_expsyms_CXX \
13264 include_expsyms_CXX; do
13265
13266 case $var in
13267 old_archive_cmds_CXX | \
13268 old_archive_from_new_cmds_CXX | \
13269 archive_cmds_CXX | \
13270 archive_expsym_cmds_CXX | \
13271 module_cmds_CXX | \
13272 module_expsym_cmds_CXX | \
13273 old_archive_from_expsyms_cmds_CXX | \
13274 export_symbols_cmds_CXX | \
13275 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13276 postinstall_cmds | postuninstall_cmds | \
13277 old_postinstall_cmds | old_postuninstall_cmds | \
13278 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13279 # Double-quote double-evaled strings.
13280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13281 ;;
13282 *)
13283 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13284 ;;
13285 esac
13286 done
13287
13288 case $lt_echo in
13289 *'\$0 --fallback-echo"')
13290 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13291 ;;
13292 esac
13293
13294 cfgfile="$ofile"
13295
13296 cat <<__EOF__ >> "$cfgfile"
13297 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13298
13299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13300
13301 # Shell to use when invoking shell scripts.
13302 SHELL=$lt_SHELL
13303
13304 # Whether or not to build shared libraries.
13305 build_libtool_libs=$enable_shared
13306
13307 # Whether or not to build static libraries.
13308 build_old_libs=$enable_static
13309
13310 # Whether or not to add -lc for building shared libraries.
13311 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13312
13313 # Whether or not to disallow shared libs when runtime libs are static
13314 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13315
13316 # Whether or not to optimize for fast installation.
13317 fast_install=$enable_fast_install
13318
13319 # The host system.
13320 host_alias=$host_alias
13321 host=$host
13322 host_os=$host_os
13323
13324 # The build system.
13325 build_alias=$build_alias
13326 build=$build
13327 build_os=$build_os
13328
13329 # An echo program that does not interpret backslashes.
13330 echo=$lt_echo
13331
13332 # The archiver.
13333 AR=$lt_AR
13334 AR_FLAGS=$lt_AR_FLAGS
13335
13336 # A C compiler.
13337 LTCC=$lt_LTCC
13338
13339 # LTCC compiler flags.
13340 LTCFLAGS=$lt_LTCFLAGS
13341
13342 # A language-specific compiler.
13343 CC=$lt_compiler_CXX
13344
13345 # Is the compiler the GNU C compiler?
13346 with_gcc=$GCC_CXX
13347
13348 # An ERE matcher.
13349 EGREP=$lt_EGREP
13350
13351 # The linker used to build libraries.
13352 LD=$lt_LD_CXX
13353
13354 # Whether we need hard or soft links.
13355 LN_S=$lt_LN_S
13356
13357 # A BSD-compatible nm program.
13358 NM=$lt_NM
13359
13360 # A symbol stripping program
13361 STRIP=$lt_STRIP
13362
13363 # Used to examine libraries when file_magic_cmd begins "file"
13364 MAGIC_CMD=$MAGIC_CMD
13365
13366 # Used on cygwin: DLL creation program.
13367 DLLTOOL="$DLLTOOL"
13368
13369 # Used on cygwin: object dumper.
13370 OBJDUMP="$OBJDUMP"
13371
13372 # Used on cygwin: assembler.
13373 AS="$AS"
13374
13375 # The name of the directory that contains temporary libtool files.
13376 objdir=$objdir
13377
13378 # How to create reloadable object files.
13379 reload_flag=$lt_reload_flag
13380 reload_cmds=$lt_reload_cmds
13381
13382 # How to pass a linker flag through the compiler.
13383 wl=$lt_lt_prog_compiler_wl_CXX
13384
13385 # Object file suffix (normally "o").
13386 objext="$ac_objext"
13387
13388 # Old archive suffix (normally "a").
13389 libext="$libext"
13390
13391 # Shared library suffix (normally ".so").
13392 shrext_cmds='$shrext_cmds'
13393
13394 # Executable file suffix (normally "").
13395 exeext="$exeext"
13396
13397 # Additional compiler flags for building library objects.
13398 pic_flag=$lt_lt_prog_compiler_pic_CXX
13399 pic_mode=$pic_mode
13400
13401 # What is the maximum length of a command?
13402 max_cmd_len=$lt_cv_sys_max_cmd_len
13403
13404 # Does compiler simultaneously support -c and -o options?
13405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13406
13407 # Must we lock files when doing compilation?
13408 need_locks=$lt_need_locks
13409
13410 # Do we need the lib prefix for modules?
13411 need_lib_prefix=$need_lib_prefix
13412
13413 # Do we need a version for libraries?
13414 need_version=$need_version
13415
13416 # Whether dlopen is supported.
13417 dlopen_support=$enable_dlopen
13418
13419 # Whether dlopen of programs is supported.
13420 dlopen_self=$enable_dlopen_self
13421
13422 # Whether dlopen of statically linked programs is supported.
13423 dlopen_self_static=$enable_dlopen_self_static
13424
13425 # Compiler flag to prevent dynamic linking.
13426 link_static_flag=$lt_lt_prog_compiler_static_CXX
13427
13428 # Compiler flag to turn off builtin functions.
13429 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13430
13431 # Compiler flag to allow reflexive dlopens.
13432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13433
13434 # Compiler flag to generate shared objects directly from archives.
13435 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13436
13437 # Compiler flag to generate thread-safe objects.
13438 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13439
13440 # Library versioning type.
13441 version_type=$version_type
13442
13443 # Format of library name prefix.
13444 libname_spec=$lt_libname_spec
13445
13446 # List of archive names. First name is the real one, the rest are links.
13447 # The last name is the one that the linker finds with -lNAME.
13448 library_names_spec=$lt_library_names_spec
13449
13450 # The coded name of the library, if different from the real name.
13451 soname_spec=$lt_soname_spec
13452
13453 # Commands used to build and install an old-style archive.
13454 RANLIB=$lt_RANLIB
13455 old_archive_cmds=$lt_old_archive_cmds_CXX
13456 old_postinstall_cmds=$lt_old_postinstall_cmds
13457 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13458
13459 # Create an old-style archive from a shared archive.
13460 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13461
13462 # Create a temporary old-style archive to link instead of a shared archive.
13463 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13464
13465 # Commands used to build and install a shared archive.
13466 archive_cmds=$lt_archive_cmds_CXX
13467 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13468 postinstall_cmds=$lt_postinstall_cmds
13469 postuninstall_cmds=$lt_postuninstall_cmds
13470
13471 # Commands used to build a loadable module (assumed same as above if empty)
13472 module_cmds=$lt_module_cmds_CXX
13473 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13474
13475 # Commands to strip libraries.
13476 old_striplib=$lt_old_striplib
13477 striplib=$lt_striplib
13478
13479 # Dependencies to place before the objects being linked to create a
13480 # shared library.
13481 predep_objects=$lt_predep_objects_CXX
13482
13483 # Dependencies to place after the objects being linked to create a
13484 # shared library.
13485 postdep_objects=$lt_postdep_objects_CXX
13486
13487 # Dependencies to place before the objects being linked to create a
13488 # shared library.
13489 predeps=$lt_predeps_CXX
13490
13491 # Dependencies to place after the objects being linked to create a
13492 # shared library.
13493 postdeps=$lt_postdeps_CXX
13494
13495 # The library search path used internally by the compiler when linking
13496 # a shared library.
13497 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13498
13499 # Method to check whether dependent libraries are shared objects.
13500 deplibs_check_method=$lt_deplibs_check_method
13501
13502 # Command to use when deplibs_check_method == file_magic.
13503 file_magic_cmd=$lt_file_magic_cmd
13504
13505 # Flag that allows shared libraries with undefined symbols to be built.
13506 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13507
13508 # Flag that forces no undefined symbols.
13509 no_undefined_flag=$lt_no_undefined_flag_CXX
13510
13511 # Commands used to finish a libtool library installation in a directory.
13512 finish_cmds=$lt_finish_cmds
13513
13514 # Same as above, but a single script fragment to be evaled but not shown.
13515 finish_eval=$lt_finish_eval
13516
13517 # Take the output of nm and produce a listing of raw symbols and C names.
13518 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13519
13520 # Transform the output of nm in a proper C declaration
13521 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13522
13523 # Transform the output of nm in a C name address pair
13524 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13525
13526 # This is the shared library runtime path variable.
13527 runpath_var=$runpath_var
13528
13529 # This is the shared library path variable.
13530 shlibpath_var=$shlibpath_var
13531
13532 # Is shlibpath searched before the hard-coded library search path?
13533 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13534
13535 # How to hardcode a shared library path into an executable.
13536 hardcode_action=$hardcode_action_CXX
13537
13538 # Whether we should hardcode library paths into libraries.
13539 hardcode_into_libs=$hardcode_into_libs
13540
13541 # Flag to hardcode \$libdir into a binary during linking.
13542 # This must work even if \$libdir does not exist.
13543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13544
13545 # If ld is used when linking, flag to hardcode \$libdir into
13546 # a binary during linking. This must work even if \$libdir does
13547 # not exist.
13548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13549
13550 # Whether we need a single -rpath flag with a separated argument.
13551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13552
13553 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13554 # resulting binary.
13555 hardcode_direct=$hardcode_direct_CXX
13556
13557 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13558 # resulting binary.
13559 hardcode_minus_L=$hardcode_minus_L_CXX
13560
13561 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13562 # the resulting binary.
13563 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13564
13565 # Set to yes if building a shared library automatically hardcodes DIR into the library
13566 # and all subsequent libraries and executables linked against it.
13567 hardcode_automatic=$hardcode_automatic_CXX
13568
13569 # Variables whose values should be saved in libtool wrapper scripts and
13570 # restored at relink time.
13571 variables_saved_for_relink="$variables_saved_for_relink"
13572
13573 # Whether libtool must link a program against all its dependency libraries.
13574 link_all_deplibs=$link_all_deplibs_CXX
13575
13576 # Compile-time system search path for libraries
13577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13578
13579 # Run-time system search path for libraries
13580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13581
13582 # Fix the shell variable \$srcfile for the compiler.
13583 fix_srcfile_path="$fix_srcfile_path_CXX"
13584
13585 # Set to yes if exported symbols are required.
13586 always_export_symbols=$always_export_symbols_CXX
13587
13588 # The commands to list exported symbols.
13589 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13590
13591 # The commands to extract the exported symbol list from a shared archive.
13592 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13593
13594 # Symbols that should not be listed in the preloaded symbols.
13595 exclude_expsyms=$lt_exclude_expsyms_CXX
13596
13597 # Symbols that must always be exported.
13598 include_expsyms=$lt_include_expsyms_CXX
13599
13600 # ### END LIBTOOL TAG CONFIG: $tagname
13601
13602 __EOF__
13603
13604
13605 else
13606 # If there is no Makefile yet, we rely on a make rule to execute
13607 # `config.status --recheck' to rerun these tests and create the
13608 # libtool script then.
13609 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13610 if test -f "$ltmain_in"; then
13611 test -f Makefile && make "$ltmain"
13612 fi
13613 fi
13614
13615
13616 ac_ext=c
13617 ac_cpp='$CPP $CPPFLAGS'
13618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13621
13622 CC=$lt_save_CC
13623 LDCXX=$LD
13624 LD=$lt_save_LD
13625 GCC=$lt_save_GCC
13626 with_gnu_ldcxx=$with_gnu_ld
13627 with_gnu_ld=$lt_save_with_gnu_ld
13628 lt_cv_path_LDCXX=$lt_cv_path_LD
13629 lt_cv_path_LD=$lt_save_path_LD
13630 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13631 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13632
13633 else
13634 tagname=""
13635 fi
13636 ;;
13637
13638 F77)
13639 if test -n "$F77" && test "X$F77" != "Xno"; then
13640
13641 ac_ext=f
13642 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13643 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13644 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13645
13646
13647 archive_cmds_need_lc_F77=no
13648 allow_undefined_flag_F77=
13649 always_export_symbols_F77=no
13650 archive_expsym_cmds_F77=
13651 export_dynamic_flag_spec_F77=
13652 hardcode_direct_F77=no
13653 hardcode_libdir_flag_spec_F77=
13654 hardcode_libdir_flag_spec_ld_F77=
13655 hardcode_libdir_separator_F77=
13656 hardcode_minus_L_F77=no
13657 hardcode_automatic_F77=no
13658 module_cmds_F77=
13659 module_expsym_cmds_F77=
13660 link_all_deplibs_F77=unknown
13661 old_archive_cmds_F77=$old_archive_cmds
13662 no_undefined_flag_F77=
13663 whole_archive_flag_spec_F77=
13664 enable_shared_with_static_runtimes_F77=no
13665
13666 # Source file extension for f77 test sources.
13667 ac_ext=f
13668
13669 # Object file extension for compiled f77 test sources.
13670 objext=o
13671 objext_F77=$objext
13672
13673 # Code to be used in simple compile tests
13674 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13675
13676 # Code to be used in simple link tests
13677 lt_simple_link_test_code=" program t\n end\n"
13678
13679 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13680
13681 # If no C compiler was specified, use CC.
13682 LTCC=${LTCC-"$CC"}
13683
13684 # If no C compiler flags were specified, use CFLAGS.
13685 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13686
13687 # Allow CC to be a program name with arguments.
13688 compiler=$CC
13689
13690
13691 # save warnings/boilerplate of simple test code
13692 ac_outfile=conftest.$ac_objext
13693 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13694 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13695 _lt_compiler_boilerplate=`cat conftest.err`
13696 $rm conftest*
13697
13698 ac_outfile=conftest.$ac_objext
13699 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13700 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13701 _lt_linker_boilerplate=`cat conftest.err`
13702 $rm conftest*
13703
13704
13705 # Allow CC to be a program name with arguments.
13706 lt_save_CC="$CC"
13707 CC=${F77-"f77"}
13708 compiler=$CC
13709 compiler_F77=$CC
13710 for cc_temp in $compiler""; do
13711 case $cc_temp in
13712 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13713 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13714 \-*) ;;
13715 *) break;;
13716 esac
13717 done
13718 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13719
13720
13721 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13722 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13723 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13724 echo "${ECHO_T}$can_build_shared" >&6; }
13725
13726 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13727 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13728 test "$can_build_shared" = "no" && enable_shared=no
13729
13730 # On AIX, shared libraries and static libraries use the same namespace, and
13731 # are all built from PIC.
13732 case $host_os in
13733 aix3*)
13734 test "$enable_shared" = yes && enable_static=no
13735 if test -n "$RANLIB"; then
13736 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13737 postinstall_cmds='$RANLIB $lib'
13738 fi
13739 ;;
13740 aix4* | aix5*)
13741 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13742 test "$enable_shared" = yes && enable_static=no
13743 fi
13744 ;;
13745 esac
13746 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13747 echo "${ECHO_T}$enable_shared" >&6; }
13748
13749 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13750 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13751 # Make sure either enable_shared or enable_static is yes.
13752 test "$enable_shared" = yes || enable_static=yes
13753 { echo "$as_me:$LINENO: result: $enable_static" >&5
13754 echo "${ECHO_T}$enable_static" >&6; }
13755
13756 GCC_F77="$G77"
13757 LD_F77="$LD"
13758
13759 lt_prog_compiler_wl_F77=
13760 lt_prog_compiler_pic_F77=
13761 lt_prog_compiler_static_F77=
13762
13763 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13764 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13765
13766 if test "$GCC" = yes; then
13767 lt_prog_compiler_wl_F77='-Wl,'
13768 lt_prog_compiler_static_F77='-static'
13769
13770 case $host_os in
13771 aix*)
13772 # All AIX code is PIC.
13773 if test "$host_cpu" = ia64; then
13774 # AIX 5 now supports IA64 processor
13775 lt_prog_compiler_static_F77='-Bstatic'
13776 fi
13777 ;;
13778
13779 amigaos*)
13780 # FIXME: we need at least 68020 code to build shared libraries, but
13781 # adding the `-m68020' flag to GCC prevents building anything better,
13782 # like `-m68040'.
13783 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13784 ;;
13785
13786 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13787 # PIC is the default for these OSes.
13788 ;;
13789
13790 mingw* | pw32* | os2*)
13791 # This hack is so that the source file can tell whether it is being
13792 # built for inclusion in a dll (and should export symbols for example).
13793 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13794 ;;
13795
13796 darwin* | rhapsody*)
13797 # PIC is the default on this platform
13798 # Common symbols not allowed in MH_DYLIB files
13799 lt_prog_compiler_pic_F77='-fno-common'
13800 ;;
13801
13802 interix3*)
13803 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13804 # Instead, we relocate shared libraries at runtime.
13805 ;;
13806
13807 msdosdjgpp*)
13808 # Just because we use GCC doesn't mean we suddenly get shared libraries
13809 # on systems that don't support them.
13810 lt_prog_compiler_can_build_shared_F77=no
13811 enable_shared=no
13812 ;;
13813
13814 sysv4*MP*)
13815 if test -d /usr/nec; then
13816 lt_prog_compiler_pic_F77=-Kconform_pic
13817 fi
13818 ;;
13819
13820 hpux*)
13821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13822 # not for PA HP-UX.
13823 case $host_cpu in
13824 hppa*64*|ia64*)
13825 # +Z the default
13826 ;;
13827 *)
13828 lt_prog_compiler_pic_F77='-fPIC'
13829 ;;
13830 esac
13831 ;;
13832
13833 *)
13834 lt_prog_compiler_pic_F77='-fPIC'
13835 ;;
13836 esac
13837 else
13838 # PORTME Check for flag to pass linker flags through the system compiler.
13839 case $host_os in
13840 aix*)
13841 lt_prog_compiler_wl_F77='-Wl,'
13842 if test "$host_cpu" = ia64; then
13843 # AIX 5 now supports IA64 processor
13844 lt_prog_compiler_static_F77='-Bstatic'
13845 else
13846 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13847 fi
13848 ;;
13849 darwin*)
13850 # PIC is the default on this platform
13851 # Common symbols not allowed in MH_DYLIB files
13852 case $cc_basename in
13853 xlc*)
13854 lt_prog_compiler_pic_F77='-qnocommon'
13855 lt_prog_compiler_wl_F77='-Wl,'
13856 ;;
13857 esac
13858 ;;
13859
13860 mingw* | pw32* | os2*)
13861 # This hack is so that the source file can tell whether it is being
13862 # built for inclusion in a dll (and should export symbols for example).
13863 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13864 ;;
13865
13866 hpux9* | hpux10* | hpux11*)
13867 lt_prog_compiler_wl_F77='-Wl,'
13868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13869 # not for PA HP-UX.
13870 case $host_cpu in
13871 hppa*64*|ia64*)
13872 # +Z the default
13873 ;;
13874 *)
13875 lt_prog_compiler_pic_F77='+Z'
13876 ;;
13877 esac
13878 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13879 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13880 ;;
13881
13882 irix5* | irix6* | nonstopux*)
13883 lt_prog_compiler_wl_F77='-Wl,'
13884 # PIC (with -KPIC) is the default.
13885 lt_prog_compiler_static_F77='-non_shared'
13886 ;;
13887
13888 newsos6)
13889 lt_prog_compiler_pic_F77='-KPIC'
13890 lt_prog_compiler_static_F77='-Bstatic'
13891 ;;
13892
13893 linux*)
13894 case $cc_basename in
13895 icc* | ecc*)
13896 lt_prog_compiler_wl_F77='-Wl,'
13897 lt_prog_compiler_pic_F77='-KPIC'
13898 lt_prog_compiler_static_F77='-static'
13899 ;;
13900 pgcc* | pgf77* | pgf90* | pgf95*)
13901 # Portland Group compilers (*not* the Pentium gcc compiler,
13902 # which looks to be a dead project)
13903 lt_prog_compiler_wl_F77='-Wl,'
13904 lt_prog_compiler_pic_F77='-fpic'
13905 lt_prog_compiler_static_F77='-Bstatic'
13906 ;;
13907 ccc*)
13908 lt_prog_compiler_wl_F77='-Wl,'
13909 # All Alpha code is PIC.
13910 lt_prog_compiler_static_F77='-non_shared'
13911 ;;
13912 esac
13913 ;;
13914
13915 osf3* | osf4* | osf5*)
13916 lt_prog_compiler_wl_F77='-Wl,'
13917 # All OSF/1 code is PIC.
13918 lt_prog_compiler_static_F77='-non_shared'
13919 ;;
13920
13921 solaris*)
13922 lt_prog_compiler_pic_F77='-KPIC'
13923 lt_prog_compiler_static_F77='-Bstatic'
13924 case $cc_basename in
13925 f77* | f90* | f95*)
13926 lt_prog_compiler_wl_F77='-Qoption ld ';;
13927 *)
13928 lt_prog_compiler_wl_F77='-Wl,';;
13929 esac
13930 ;;
13931
13932 sunos4*)
13933 lt_prog_compiler_wl_F77='-Qoption ld '
13934 lt_prog_compiler_pic_F77='-PIC'
13935 lt_prog_compiler_static_F77='-Bstatic'
13936 ;;
13937
13938 sysv4 | sysv4.2uw2* | sysv4.3*)
13939 lt_prog_compiler_wl_F77='-Wl,'
13940 lt_prog_compiler_pic_F77='-KPIC'
13941 lt_prog_compiler_static_F77='-Bstatic'
13942 ;;
13943
13944 sysv4*MP*)
13945 if test -d /usr/nec ;then
13946 lt_prog_compiler_pic_F77='-Kconform_pic'
13947 lt_prog_compiler_static_F77='-Bstatic'
13948 fi
13949 ;;
13950
13951 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13952 lt_prog_compiler_wl_F77='-Wl,'
13953 lt_prog_compiler_pic_F77='-KPIC'
13954 lt_prog_compiler_static_F77='-Bstatic'
13955 ;;
13956
13957 unicos*)
13958 lt_prog_compiler_wl_F77='-Wl,'
13959 lt_prog_compiler_can_build_shared_F77=no
13960 ;;
13961
13962 uts4*)
13963 lt_prog_compiler_pic_F77='-pic'
13964 lt_prog_compiler_static_F77='-Bstatic'
13965 ;;
13966
13967 *)
13968 lt_prog_compiler_can_build_shared_F77=no
13969 ;;
13970 esac
13971 fi
13972
13973 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13974 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13975
13976 #
13977 # Check to make sure the PIC flag actually works.
13978 #
13979 if test -n "$lt_prog_compiler_pic_F77"; then
13980
13981 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13982 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13983 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986 lt_prog_compiler_pic_works_F77=no
13987 ac_outfile=conftest.$ac_objext
13988 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13989 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13990 # Insert the option either (1) after the last *FLAGS variable, or
13991 # (2) before a word containing "conftest.", or (3) at the end.
13992 # Note that $ac_compile itself does not contain backslashes and begins
13993 # with a dollar sign (not a hyphen), so the echo should work correctly.
13994 # The option is referenced via a variable to avoid confusing sed.
13995 lt_compile=`echo "$ac_compile" | $SED \
13996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13998 -e 's:$: $lt_compiler_flag:'`
13999 (eval echo "\"\$as_me:13999: $lt_compile\"" >&5)
14000 (eval "$lt_compile" 2>conftest.err)
14001 ac_status=$?
14002 cat conftest.err >&5
14003 echo "$as_me:14003: \$? = $ac_status" >&5
14004 if (exit $ac_status) && test -s "$ac_outfile"; then
14005 # The compiler can only warn and ignore the option if not recognized
14006 # So say no if there are warnings other than the usual output.
14007 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14009 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14010 lt_prog_compiler_pic_works_F77=yes
14011 fi
14012 fi
14013 $rm conftest*
14014
14015 fi
14016 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14017 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14018
14019 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14020 case $lt_prog_compiler_pic_F77 in
14021 "" | " "*) ;;
14022 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14023 esac
14024 else
14025 lt_prog_compiler_pic_F77=
14026 lt_prog_compiler_can_build_shared_F77=no
14027 fi
14028
14029 fi
14030 case $host_os in
14031 # For platforms which do not support PIC, -DPIC is meaningless:
14032 *djgpp*)
14033 lt_prog_compiler_pic_F77=
14034 ;;
14035 *)
14036 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14037 ;;
14038 esac
14039
14040 #
14041 # Check to make sure the static flag actually works.
14042 #
14043 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14044 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14045 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14046 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 else
14049 lt_prog_compiler_static_works_F77=no
14050 save_LDFLAGS="$LDFLAGS"
14051 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14052 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14053 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14054 # The linker can only warn and ignore the option if not recognized
14055 # So say no if there are warnings
14056 if test -s conftest.err; then
14057 # Append any errors to the config.log.
14058 cat conftest.err 1>&5
14059 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14061 if diff conftest.exp conftest.er2 >/dev/null; then
14062 lt_prog_compiler_static_works_F77=yes
14063 fi
14064 else
14065 lt_prog_compiler_static_works_F77=yes
14066 fi
14067 fi
14068 $rm conftest*
14069 LDFLAGS="$save_LDFLAGS"
14070
14071 fi
14072 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14073 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14074
14075 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14076 :
14077 else
14078 lt_prog_compiler_static_F77=
14079 fi
14080
14081
14082 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14083 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14084 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 else
14087 lt_cv_prog_compiler_c_o_F77=no
14088 $rm -r conftest 2>/dev/null
14089 mkdir conftest
14090 cd conftest
14091 mkdir out
14092 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14093
14094 lt_compiler_flag="-o out/conftest2.$ac_objext"
14095 # Insert the option either (1) after the last *FLAGS variable, or
14096 # (2) before a word containing "conftest.", or (3) at the end.
14097 # Note that $ac_compile itself does not contain backslashes and begins
14098 # with a dollar sign (not a hyphen), so the echo should work correctly.
14099 lt_compile=`echo "$ac_compile" | $SED \
14100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14102 -e 's:$: $lt_compiler_flag:'`
14103 (eval echo "\"\$as_me:14103: $lt_compile\"" >&5)
14104 (eval "$lt_compile" 2>out/conftest.err)
14105 ac_status=$?
14106 cat out/conftest.err >&5
14107 echo "$as_me:14107: \$? = $ac_status" >&5
14108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14109 then
14110 # The compiler can only warn and ignore the option if not recognized
14111 # So say no if there are warnings
14112 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14113 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14114 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14115 lt_cv_prog_compiler_c_o_F77=yes
14116 fi
14117 fi
14118 chmod u+w . 2>&5
14119 $rm conftest*
14120 # SGI C++ compiler will create directory out/ii_files/ for
14121 # template instantiation
14122 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14123 $rm out/* && rmdir out
14124 cd ..
14125 rmdir conftest
14126 $rm conftest*
14127
14128 fi
14129 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14130 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14131
14132
14133 hard_links="nottested"
14134 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14135 # do not overwrite the value of need_locks provided by the user
14136 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14137 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14138 hard_links=yes
14139 $rm conftest*
14140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14141 touch conftest.a
14142 ln conftest.a conftest.b 2>&5 || hard_links=no
14143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14144 { echo "$as_me:$LINENO: result: $hard_links" >&5
14145 echo "${ECHO_T}$hard_links" >&6; }
14146 if test "$hard_links" = no; then
14147 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14148 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14149 need_locks=warn
14150 fi
14151 else
14152 need_locks=no
14153 fi
14154
14155 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14156 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14157
14158 runpath_var=
14159 allow_undefined_flag_F77=
14160 enable_shared_with_static_runtimes_F77=no
14161 archive_cmds_F77=
14162 archive_expsym_cmds_F77=
14163 old_archive_From_new_cmds_F77=
14164 old_archive_from_expsyms_cmds_F77=
14165 export_dynamic_flag_spec_F77=
14166 whole_archive_flag_spec_F77=
14167 thread_safe_flag_spec_F77=
14168 hardcode_libdir_flag_spec_F77=
14169 hardcode_libdir_flag_spec_ld_F77=
14170 hardcode_libdir_separator_F77=
14171 hardcode_direct_F77=no
14172 hardcode_minus_L_F77=no
14173 hardcode_shlibpath_var_F77=unsupported
14174 link_all_deplibs_F77=unknown
14175 hardcode_automatic_F77=no
14176 module_cmds_F77=
14177 module_expsym_cmds_F77=
14178 always_export_symbols_F77=no
14179 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14180 # include_expsyms should be a list of space-separated symbols to be *always*
14181 # included in the symbol list
14182 include_expsyms_F77=
14183 # exclude_expsyms can be an extended regexp of symbols to exclude
14184 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14185 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14186 # as well as any symbol that contains `d'.
14187 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14188 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14189 # platforms (ab)use it in PIC code, but their linkers get confused if
14190 # the symbol is explicitly referenced. Since portable code cannot
14191 # rely on this symbol name, it's probably fine to never include it in
14192 # preloaded symbol tables.
14193 extract_expsyms_cmds=
14194 # Just being paranoid about ensuring that cc_basename is set.
14195 for cc_temp in $compiler""; do
14196 case $cc_temp in
14197 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14198 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14199 \-*) ;;
14200 *) break;;
14201 esac
14202 done
14203 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14204
14205 case $host_os in
14206 cygwin* | mingw* | pw32*)
14207 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14208 # When not using gcc, we currently assume that we are using
14209 # Microsoft Visual C++.
14210 if test "$GCC" != yes; then
14211 with_gnu_ld=no
14212 fi
14213 ;;
14214 interix*)
14215 # we just hope/assume this is gcc and not c89 (= MSVC++)
14216 with_gnu_ld=yes
14217 ;;
14218 openbsd*)
14219 with_gnu_ld=no
14220 ;;
14221 esac
14222
14223 ld_shlibs_F77=yes
14224 if test "$with_gnu_ld" = yes; then
14225 # If archive_cmds runs LD, not CC, wlarc should be empty
14226 wlarc='${wl}'
14227
14228 # Set some defaults for GNU ld with shared library support. These
14229 # are reset later if shared libraries are not supported. Putting them
14230 # here allows them to be overridden if necessary.
14231 runpath_var=LD_RUN_PATH
14232 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14233 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14234 # ancient GNU ld didn't support --whole-archive et. al.
14235 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14236 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14237 else
14238 whole_archive_flag_spec_F77=
14239 fi
14240 supports_anon_versioning=no
14241 case `$LD -v 2>/dev/null` in
14242 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14243 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14244 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14245 *\ 2.11.*) ;; # other 2.11 versions
14246 *) supports_anon_versioning=yes ;;
14247 esac
14248
14249 # See if GNU ld supports shared libraries.
14250 case $host_os in
14251 aix3* | aix4* | aix5*)
14252 # On AIX/PPC, the GNU linker is very broken
14253 if test "$host_cpu" != ia64; then
14254 ld_shlibs_F77=no
14255 cat <<EOF 1>&2
14256
14257 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14258 *** to be unable to reliably create shared libraries on AIX.
14259 *** Therefore, libtool is disabling shared libraries support. If you
14260 *** really care for shared libraries, you may want to modify your PATH
14261 *** so that a non-GNU linker is found, and then restart.
14262
14263 EOF
14264 fi
14265 ;;
14266
14267 amigaos*)
14268 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)'
14269 hardcode_libdir_flag_spec_F77='-L$libdir'
14270 hardcode_minus_L_F77=yes
14271
14272 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14273 # that the semantics of dynamic libraries on AmigaOS, at least up
14274 # to version 4, is to share data among multiple programs linked
14275 # with the same dynamic library. Since this doesn't match the
14276 # behavior of shared libraries on other platforms, we can't use
14277 # them.
14278 ld_shlibs_F77=no
14279 ;;
14280
14281 beos*)
14282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14283 allow_undefined_flag_F77=unsupported
14284 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14285 # support --undefined. This deserves some investigation. FIXME
14286 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14287 else
14288 ld_shlibs_F77=no
14289 fi
14290 ;;
14291
14292 cygwin* | mingw* | pw32*)
14293 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14294 # as there is no search path for DLLs.
14295 hardcode_libdir_flag_spec_F77='-L$libdir'
14296 allow_undefined_flag_F77=unsupported
14297 always_export_symbols_F77=no
14298 enable_shared_with_static_runtimes_F77=yes
14299 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14300
14301 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14302 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14303 # If the export-symbols file already is a .def file (1st line
14304 # is EXPORTS), use it as is; otherwise, prepend...
14305 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14306 cp $export_symbols $output_objdir/$soname.def;
14307 else
14308 echo EXPORTS > $output_objdir/$soname.def;
14309 cat $export_symbols >> $output_objdir/$soname.def;
14310 fi~
14311 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14312 else
14313 ld_shlibs_F77=no
14314 fi
14315 ;;
14316
14317 interix3*)
14318 hardcode_direct_F77=no
14319 hardcode_shlibpath_var_F77=no
14320 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14321 export_dynamic_flag_spec_F77='${wl}-E'
14322 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14323 # Instead, shared libraries are loaded at an image base (0x10000000 by
14324 # default) and relocated if they conflict, which is a slow very memory
14325 # consuming and fragmenting process. To avoid this, we pick a random,
14326 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14327 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14328 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'
14329 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'
14330 ;;
14331
14332 linux*)
14333 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14334 tmp_addflag=
14335 case $cc_basename,$host_cpu in
14336 pgcc*) # Portland Group C compiler
14337 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'
14338 tmp_addflag=' $pic_flag'
14339 ;;
14340 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14341 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'
14342 tmp_addflag=' $pic_flag -Mnomain' ;;
14343 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14344 tmp_addflag=' -i_dynamic' ;;
14345 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14346 tmp_addflag=' -i_dynamic -nofor_main' ;;
14347 ifc* | ifort*) # Intel Fortran compiler
14348 tmp_addflag=' -nofor_main' ;;
14349 esac
14350 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14351
14352 if test $supports_anon_versioning = yes; then
14353 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14355 $echo "local: *; };" >> $output_objdir/$libname.ver~
14356 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14357 fi
14358 else
14359 ld_shlibs_F77=no
14360 fi
14361 ;;
14362
14363 netbsd*)
14364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14365 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14366 wlarc=
14367 else
14368 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14369 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14370 fi
14371 ;;
14372
14373 solaris*)
14374 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14375 ld_shlibs_F77=no
14376 cat <<EOF 1>&2
14377
14378 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14379 *** create shared libraries on Solaris systems. Therefore, libtool
14380 *** is disabling shared libraries support. We urge you to upgrade GNU
14381 *** binutils to release 2.9.1 or newer. Another option is to modify
14382 *** your PATH or compiler configuration so that the native linker is
14383 *** used, and then restart.
14384
14385 EOF
14386 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14387 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14388 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14389 else
14390 ld_shlibs_F77=no
14391 fi
14392 ;;
14393
14394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14395 case `$LD -v 2>&1` in
14396 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14397 ld_shlibs_F77=no
14398 cat <<_LT_EOF 1>&2
14399
14400 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14401 *** reliably create shared libraries on SCO systems. Therefore, libtool
14402 *** is disabling shared libraries support. We urge you to upgrade GNU
14403 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14404 *** your PATH or compiler configuration so that the native linker is
14405 *** used, and then restart.
14406
14407 _LT_EOF
14408 ;;
14409 *)
14410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14411 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14412 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14413 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14414 else
14415 ld_shlibs_F77=no
14416 fi
14417 ;;
14418 esac
14419 ;;
14420
14421 sunos4*)
14422 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14423 wlarc=
14424 hardcode_direct_F77=yes
14425 hardcode_shlibpath_var_F77=no
14426 ;;
14427
14428 *)
14429 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14430 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14431 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14432 else
14433 ld_shlibs_F77=no
14434 fi
14435 ;;
14436 esac
14437
14438 if test "$ld_shlibs_F77" = no; then
14439 runpath_var=
14440 hardcode_libdir_flag_spec_F77=
14441 export_dynamic_flag_spec_F77=
14442 whole_archive_flag_spec_F77=
14443 fi
14444 else
14445 # PORTME fill in a description of your system's linker (not GNU ld)
14446 case $host_os in
14447 aix3*)
14448 allow_undefined_flag_F77=unsupported
14449 always_export_symbols_F77=yes
14450 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'
14451 # Note: this linker hardcodes the directories in LIBPATH if there
14452 # are no directories specified by -L.
14453 hardcode_minus_L_F77=yes
14454 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14455 # Neither direct hardcoding nor static linking is supported with a
14456 # broken collect2.
14457 hardcode_direct_F77=unsupported
14458 fi
14459 ;;
14460
14461 aix4* | aix5*)
14462 if test "$host_cpu" = ia64; then
14463 # On IA64, the linker does run time linking by default, so we don't
14464 # have to do anything special.
14465 aix_use_runtimelinking=no
14466 exp_sym_flag='-Bexport'
14467 no_entry_flag=""
14468 else
14469 # If we're using GNU nm, then we don't want the "-C" option.
14470 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14471 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14472 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'
14473 else
14474 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'
14475 fi
14476 aix_use_runtimelinking=no
14477
14478 # Test if we are trying to use run time linking or normal
14479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14480 # need to do runtime linking.
14481 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14482 for ld_flag in $LDFLAGS; do
14483 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14484 aix_use_runtimelinking=yes
14485 break
14486 fi
14487 done
14488 ;;
14489 esac
14490
14491 exp_sym_flag='-bexport'
14492 no_entry_flag='-bnoentry'
14493 fi
14494
14495 # When large executables or shared objects are built, AIX ld can
14496 # have problems creating the table of contents. If linking a library
14497 # or program results in "error TOC overflow" add -mminimal-toc to
14498 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14499 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14500
14501 archive_cmds_F77=''
14502 hardcode_direct_F77=yes
14503 hardcode_libdir_separator_F77=':'
14504 link_all_deplibs_F77=yes
14505
14506 if test "$GCC" = yes; then
14507 case $host_os in aix4.[012]|aix4.[012].*)
14508 # We only want to do this on AIX 4.2 and lower, the check
14509 # below for broken collect2 doesn't work under 4.3+
14510 collect2name=`${CC} -print-prog-name=collect2`
14511 if test -f "$collect2name" && \
14512 strings "$collect2name" | grep resolve_lib_name >/dev/null
14513 then
14514 # We have reworked collect2
14515 hardcode_direct_F77=yes
14516 else
14517 # We have old collect2
14518 hardcode_direct_F77=unsupported
14519 # It fails to find uninstalled libraries when the uninstalled
14520 # path is not listed in the libpath. Setting hardcode_minus_L
14521 # to unsupported forces relinking
14522 hardcode_minus_L_F77=yes
14523 hardcode_libdir_flag_spec_F77='-L$libdir'
14524 hardcode_libdir_separator_F77=
14525 fi
14526 ;;
14527 esac
14528 shared_flag='-shared'
14529 if test "$aix_use_runtimelinking" = yes; then
14530 shared_flag="$shared_flag "'${wl}-G'
14531 fi
14532 else
14533 # not using gcc
14534 if test "$host_cpu" = ia64; then
14535 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14536 # chokes on -Wl,-G. The following line is correct:
14537 shared_flag='-G'
14538 else
14539 if test "$aix_use_runtimelinking" = yes; then
14540 shared_flag='${wl}-G'
14541 else
14542 shared_flag='${wl}-bM:SRE'
14543 fi
14544 fi
14545 fi
14546
14547 # It seems that -bexpall does not export symbols beginning with
14548 # underscore (_), so it is better to generate a list of symbols to export.
14549 always_export_symbols_F77=yes
14550 if test "$aix_use_runtimelinking" = yes; then
14551 # Warning - without using the other runtime loading flags (-brtl),
14552 # -berok will link without error, but may produce a broken library.
14553 allow_undefined_flag_F77='-berok'
14554 # Determine the default libpath from the value encoded in an empty executable.
14555 cat >conftest.$ac_ext <<_ACEOF
14556 program main
14557
14558 end
14559 _ACEOF
14560 rm -f conftest.$ac_objext conftest$ac_exeext
14561 if { (ac_try="$ac_link"
14562 case "(($ac_try" in
14563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14564 *) ac_try_echo=$ac_try;;
14565 esac
14566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14567 (eval "$ac_link") 2>conftest.er1
14568 ac_status=$?
14569 grep -v '^ *+' conftest.er1 >conftest.err
14570 rm -f conftest.er1
14571 cat conftest.err >&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } && {
14574 test -z "$ac_f77_werror_flag" ||
14575 test ! -s conftest.err
14576 } && test -s conftest$ac_exeext &&
14577 $as_test_x conftest$ac_exeext; then
14578
14579 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14580 }'`
14581 # Check for a 64-bit object if we didn't find anything.
14582 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; }
14583 }'`; fi
14584 else
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14587
14588
14589 fi
14590
14591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14592 conftest$ac_exeext conftest.$ac_ext
14593 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14594
14595 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14596 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"
14597 else
14598 if test "$host_cpu" = ia64; then
14599 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14600 allow_undefined_flag_F77="-z nodefs"
14601 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"
14602 else
14603 # Determine the default libpath from the value encoded in an empty executable.
14604 cat >conftest.$ac_ext <<_ACEOF
14605 program main
14606
14607 end
14608 _ACEOF
14609 rm -f conftest.$ac_objext conftest$ac_exeext
14610 if { (ac_try="$ac_link"
14611 case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14614 esac
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_link") 2>conftest.er1
14617 ac_status=$?
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } && {
14623 test -z "$ac_f77_werror_flag" ||
14624 test ! -s conftest.err
14625 } && test -s conftest$ac_exeext &&
14626 $as_test_x conftest$ac_exeext; then
14627
14628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14629 }'`
14630 # Check for a 64-bit object if we didn't find anything.
14631 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; }
14632 }'`; fi
14633 else
14634 echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14636
14637
14638 fi
14639
14640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14641 conftest$ac_exeext conftest.$ac_ext
14642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14643
14644 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14645 # Warning - without using the other run time loading flags,
14646 # -berok will link without error, but may produce a broken library.
14647 no_undefined_flag_F77=' ${wl}-bernotok'
14648 allow_undefined_flag_F77=' ${wl}-berok'
14649 # Exported symbols can be pulled into shared objects from archives
14650 whole_archive_flag_spec_F77='$convenience'
14651 archive_cmds_need_lc_F77=yes
14652 # This is similar to how AIX traditionally builds its shared libraries.
14653 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'
14654 fi
14655 fi
14656 ;;
14657
14658 amigaos*)
14659 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)'
14660 hardcode_libdir_flag_spec_F77='-L$libdir'
14661 hardcode_minus_L_F77=yes
14662 # see comment about different semantics on the GNU ld section
14663 ld_shlibs_F77=no
14664 ;;
14665
14666 bsdi[45]*)
14667 export_dynamic_flag_spec_F77=-rdynamic
14668 ;;
14669
14670 cygwin* | mingw* | pw32*)
14671 # When not using gcc, we currently assume that we are using
14672 # Microsoft Visual C++.
14673 # hardcode_libdir_flag_spec is actually meaningless, as there is
14674 # no search path for DLLs.
14675 hardcode_libdir_flag_spec_F77=' '
14676 allow_undefined_flag_F77=unsupported
14677 # Tell ltmain to make .lib files, not .a files.
14678 libext=lib
14679 # Tell ltmain to make .dll files, not .so files.
14680 shrext_cmds=".dll"
14681 # FIXME: Setting linknames here is a bad hack.
14682 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14683 # The linker will automatically build a .lib file if we build a DLL.
14684 old_archive_From_new_cmds_F77='true'
14685 # FIXME: Should let the user specify the lib program.
14686 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14687 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14688 enable_shared_with_static_runtimes_F77=yes
14689 ;;
14690
14691 darwin* | rhapsody*)
14692 case $host_os in
14693 rhapsody* | darwin1.[012])
14694 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14695 ;;
14696 *) # Darwin 1.3 on
14697 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14698 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14699 else
14700 case ${MACOSX_DEPLOYMENT_TARGET} in
14701 10.[012])
14702 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14703 ;;
14704 10.*)
14705 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14706 ;;
14707 esac
14708 fi
14709 ;;
14710 esac
14711 archive_cmds_need_lc_F77=no
14712 hardcode_direct_F77=no
14713 hardcode_automatic_F77=yes
14714 hardcode_shlibpath_var_F77=unsupported
14715 whole_archive_flag_spec_F77=''
14716 link_all_deplibs_F77=yes
14717 if test "$GCC" = yes ; then
14718 output_verbose_link_cmd='echo'
14719 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14720 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14721 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14722 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}'
14723 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}'
14724 else
14725 case $cc_basename in
14726 xlc*)
14727 output_verbose_link_cmd='echo'
14728 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14729 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14730 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14731 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}'
14732 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}'
14733 ;;
14734 *)
14735 ld_shlibs_F77=no
14736 ;;
14737 esac
14738 fi
14739 ;;
14740
14741 dgux*)
14742 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14743 hardcode_libdir_flag_spec_F77='-L$libdir'
14744 hardcode_shlibpath_var_F77=no
14745 ;;
14746
14747 freebsd1*)
14748 ld_shlibs_F77=no
14749 ;;
14750
14751 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14752 # support. Future versions do this automatically, but an explicit c++rt0.o
14753 # does not break anything, and helps significantly (at the cost of a little
14754 # extra space).
14755 freebsd2.2*)
14756 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14757 hardcode_libdir_flag_spec_F77='-R$libdir'
14758 hardcode_direct_F77=yes
14759 hardcode_shlibpath_var_F77=no
14760 ;;
14761
14762 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14763 freebsd2*)
14764 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14765 hardcode_direct_F77=yes
14766 hardcode_minus_L_F77=yes
14767 hardcode_shlibpath_var_F77=no
14768 ;;
14769
14770 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14771 freebsd* | kfreebsd*-gnu | dragonfly*)
14772 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14773 hardcode_libdir_flag_spec_F77='-R$libdir'
14774 hardcode_direct_F77=yes
14775 hardcode_shlibpath_var_F77=no
14776 ;;
14777
14778 hpux9*)
14779 if test "$GCC" = yes; then
14780 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'
14781 else
14782 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'
14783 fi
14784 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14785 hardcode_libdir_separator_F77=:
14786 hardcode_direct_F77=yes
14787
14788 # hardcode_minus_L: Not really in the search PATH,
14789 # but as the default location of the library.
14790 hardcode_minus_L_F77=yes
14791 export_dynamic_flag_spec_F77='${wl}-E'
14792 ;;
14793
14794 hpux10*)
14795 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14796 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14797 else
14798 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14799 fi
14800 if test "$with_gnu_ld" = no; then
14801 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14802 hardcode_libdir_separator_F77=:
14803
14804 hardcode_direct_F77=yes
14805 export_dynamic_flag_spec_F77='${wl}-E'
14806
14807 # hardcode_minus_L: Not really in the search PATH,
14808 # but as the default location of the library.
14809 hardcode_minus_L_F77=yes
14810 fi
14811 ;;
14812
14813 hpux11*)
14814 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14815 case $host_cpu in
14816 hppa*64*)
14817 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14818 ;;
14819 ia64*)
14820 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14821 ;;
14822 *)
14823 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14824 ;;
14825 esac
14826 else
14827 case $host_cpu in
14828 hppa*64*)
14829 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14830 ;;
14831 ia64*)
14832 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14833 ;;
14834 *)
14835 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14836 ;;
14837 esac
14838 fi
14839 if test "$with_gnu_ld" = no; then
14840 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14841 hardcode_libdir_separator_F77=:
14842
14843 case $host_cpu in
14844 hppa*64*|ia64*)
14845 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14846 hardcode_direct_F77=no
14847 hardcode_shlibpath_var_F77=no
14848 ;;
14849 *)
14850 hardcode_direct_F77=yes
14851 export_dynamic_flag_spec_F77='${wl}-E'
14852
14853 # hardcode_minus_L: Not really in the search PATH,
14854 # but as the default location of the library.
14855 hardcode_minus_L_F77=yes
14856 ;;
14857 esac
14858 fi
14859 ;;
14860
14861 irix5* | irix6* | nonstopux*)
14862 if test "$GCC" = yes; then
14863 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'
14864 else
14865 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'
14866 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14867 fi
14868 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14869 hardcode_libdir_separator_F77=:
14870 link_all_deplibs_F77=yes
14871 ;;
14872
14873 netbsd*)
14874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14875 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14876 else
14877 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14878 fi
14879 hardcode_libdir_flag_spec_F77='-R$libdir'
14880 hardcode_direct_F77=yes
14881 hardcode_shlibpath_var_F77=no
14882 ;;
14883
14884 newsos6)
14885 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14886 hardcode_direct_F77=yes
14887 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14888 hardcode_libdir_separator_F77=:
14889 hardcode_shlibpath_var_F77=no
14890 ;;
14891
14892 openbsd*)
14893 hardcode_direct_F77=yes
14894 hardcode_shlibpath_var_F77=no
14895 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14896 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14897 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14898 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14899 export_dynamic_flag_spec_F77='${wl}-E'
14900 else
14901 case $host_os in
14902 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14903 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14904 hardcode_libdir_flag_spec_F77='-R$libdir'
14905 ;;
14906 *)
14907 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14908 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14909 ;;
14910 esac
14911 fi
14912 ;;
14913
14914 os2*)
14915 hardcode_libdir_flag_spec_F77='-L$libdir'
14916 hardcode_minus_L_F77=yes
14917 allow_undefined_flag_F77=unsupported
14918 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'
14919 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14920 ;;
14921
14922 osf3*)
14923 if test "$GCC" = yes; then
14924 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14925 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'
14926 else
14927 allow_undefined_flag_F77=' -expect_unresolved \*'
14928 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'
14929 fi
14930 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14931 hardcode_libdir_separator_F77=:
14932 ;;
14933
14934 osf4* | osf5*) # as osf3* with the addition of -msym flag
14935 if test "$GCC" = yes; then
14936 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14937 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'
14938 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14939 else
14940 allow_undefined_flag_F77=' -expect_unresolved \*'
14941 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'
14942 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~
14943 $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'
14944
14945 # Both c and cxx compiler support -rpath directly
14946 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14947 fi
14948 hardcode_libdir_separator_F77=:
14949 ;;
14950
14951 solaris*)
14952 no_undefined_flag_F77=' -z text'
14953 if test "$GCC" = yes; then
14954 wlarc='${wl}'
14955 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14956 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14957 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14958 else
14959 wlarc=''
14960 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14961 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14962 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14963 fi
14964 hardcode_libdir_flag_spec_F77='-R$libdir'
14965 hardcode_shlibpath_var_F77=no
14966 case $host_os in
14967 solaris2.[0-5] | solaris2.[0-5].*) ;;
14968 *)
14969 # The compiler driver will combine linker options so we
14970 # cannot just pass the convience library names through
14971 # without $wl, iff we do not link with $LD.
14972 # Luckily, gcc supports the same syntax we need for Sun Studio.
14973 # Supported since Solaris 2.6 (maybe 2.5.1?)
14974 case $wlarc in
14975 '')
14976 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14977 *)
14978 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' ;;
14979 esac ;;
14980 esac
14981 link_all_deplibs_F77=yes
14982 ;;
14983
14984 sunos4*)
14985 if test "x$host_vendor" = xsequent; then
14986 # Use $CC to link under sequent, because it throws in some extra .o
14987 # files that make .init and .fini sections work.
14988 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14989 else
14990 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14991 fi
14992 hardcode_libdir_flag_spec_F77='-L$libdir'
14993 hardcode_direct_F77=yes
14994 hardcode_minus_L_F77=yes
14995 hardcode_shlibpath_var_F77=no
14996 ;;
14997
14998 sysv4)
14999 case $host_vendor in
15000 sni)
15001 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15002 hardcode_direct_F77=yes # is this really true???
15003 ;;
15004 siemens)
15005 ## LD is ld it makes a PLAMLIB
15006 ## CC just makes a GrossModule.
15007 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15008 reload_cmds_F77='$CC -r -o $output$reload_objs'
15009 hardcode_direct_F77=no
15010 ;;
15011 motorola)
15012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15014 ;;
15015 esac
15016 runpath_var='LD_RUN_PATH'
15017 hardcode_shlibpath_var_F77=no
15018 ;;
15019
15020 sysv4.3*)
15021 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15022 hardcode_shlibpath_var_F77=no
15023 export_dynamic_flag_spec_F77='-Bexport'
15024 ;;
15025
15026 sysv4*MP*)
15027 if test -d /usr/nec; then
15028 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15029 hardcode_shlibpath_var_F77=no
15030 runpath_var=LD_RUN_PATH
15031 hardcode_runpath_var=yes
15032 ld_shlibs_F77=yes
15033 fi
15034 ;;
15035
15036 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15037 no_undefined_flag_F77='${wl}-z,text'
15038 archive_cmds_need_lc_F77=no
15039 hardcode_shlibpath_var_F77=no
15040 runpath_var='LD_RUN_PATH'
15041
15042 if test "$GCC" = yes; then
15043 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15044 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15045 else
15046 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15047 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15048 fi
15049 ;;
15050
15051 sysv5* | sco3.2v5* | sco5v6*)
15052 # Note: We can NOT use -z defs as we might desire, because we do not
15053 # link with -lc, and that would cause any symbols used from libc to
15054 # always be unresolved, which means just about no library would
15055 # ever link correctly. If we're not using GNU ld we use -z text
15056 # though, which does catch some bad symbols but isn't as heavy-handed
15057 # as -z defs.
15058 no_undefined_flag_F77='${wl}-z,text'
15059 allow_undefined_flag_F77='${wl}-z,nodefs'
15060 archive_cmds_need_lc_F77=no
15061 hardcode_shlibpath_var_F77=no
15062 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15063 hardcode_libdir_separator_F77=':'
15064 link_all_deplibs_F77=yes
15065 export_dynamic_flag_spec_F77='${wl}-Bexport'
15066 runpath_var='LD_RUN_PATH'
15067
15068 if test "$GCC" = yes; then
15069 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15070 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15071 else
15072 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15073 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15074 fi
15075 ;;
15076
15077 uts4*)
15078 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15079 hardcode_libdir_flag_spec_F77='-L$libdir'
15080 hardcode_shlibpath_var_F77=no
15081 ;;
15082
15083 *)
15084 ld_shlibs_F77=no
15085 ;;
15086 esac
15087 fi
15088
15089 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15090 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15091 test "$ld_shlibs_F77" = no && can_build_shared=no
15092
15093 #
15094 # Do we need to explicitly link libc?
15095 #
15096 case "x$archive_cmds_need_lc_F77" in
15097 x|xyes)
15098 # Assume -lc should be added
15099 archive_cmds_need_lc_F77=yes
15100
15101 if test "$enable_shared" = yes && test "$GCC" = yes; then
15102 case $archive_cmds_F77 in
15103 *'~'*)
15104 # FIXME: we may have to deal with multi-command sequences.
15105 ;;
15106 '$CC '*)
15107 # Test whether the compiler implicitly links with -lc since on some
15108 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15109 # to ld, don't add -lc before -lgcc.
15110 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15111 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15112 $rm conftest*
15113 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15114
15115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15116 (eval $ac_compile) 2>&5
15117 ac_status=$?
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } 2>conftest.err; then
15120 soname=conftest
15121 lib=conftest
15122 libobjs=conftest.$ac_objext
15123 deplibs=
15124 wl=$lt_prog_compiler_wl_F77
15125 pic_flag=$lt_prog_compiler_pic_F77
15126 compiler_flags=-v
15127 linker_flags=-v
15128 verstring=
15129 output_objdir=.
15130 libname=conftest
15131 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15132 allow_undefined_flag_F77=
15133 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15134 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }
15138 then
15139 archive_cmds_need_lc_F77=no
15140 else
15141 archive_cmds_need_lc_F77=yes
15142 fi
15143 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15144 else
15145 cat conftest.err 1>&5
15146 fi
15147 $rm conftest*
15148 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15149 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15150 ;;
15151 esac
15152 fi
15153 ;;
15154 esac
15155
15156 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15157 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15158 library_names_spec=
15159 libname_spec='lib$name'
15160 soname_spec=
15161 shrext_cmds=".so"
15162 postinstall_cmds=
15163 postuninstall_cmds=
15164 finish_cmds=
15165 finish_eval=
15166 shlibpath_var=
15167 shlibpath_overrides_runpath=unknown
15168 version_type=none
15169 dynamic_linker="$host_os ld.so"
15170 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15171 if test "$GCC" = yes; then
15172 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15173 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15174 # if the path contains ";" then we assume it to be the separator
15175 # otherwise default to the standard path separator (i.e. ":") - it is
15176 # assumed that no part of a normal pathname contains ";" but that should
15177 # okay in the real world where ";" in dirpaths is itself problematic.
15178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15179 else
15180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15181 fi
15182 else
15183 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15184 fi
15185 need_lib_prefix=unknown
15186 hardcode_into_libs=no
15187
15188 # when you set need_version to no, make sure it does not cause -set_version
15189 # flags to be left without arguments
15190 need_version=unknown
15191
15192 case $host_os in
15193 aix3*)
15194 version_type=linux
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15196 shlibpath_var=LIBPATH
15197
15198 # AIX 3 has no versioning support, so we append a major version to the name.
15199 soname_spec='${libname}${release}${shared_ext}$major'
15200 ;;
15201
15202 aix4* | aix5*)
15203 version_type=linux
15204 need_lib_prefix=no
15205 need_version=no
15206 hardcode_into_libs=yes
15207 if test "$host_cpu" = ia64; then
15208 # AIX 5 supports IA64
15209 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 else
15212 # With GCC up to 2.95.x, collect2 would create an import file
15213 # for dependence libraries. The import file would start with
15214 # the line `#! .'. This would cause the generated library to
15215 # depend on `.', always an invalid library. This was fixed in
15216 # development snapshots of GCC prior to 3.0.
15217 case $host_os in
15218 aix4 | aix4.[01] | aix4.[01].*)
15219 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15220 echo ' yes '
15221 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15222 :
15223 else
15224 can_build_shared=no
15225 fi
15226 ;;
15227 esac
15228 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15229 # soname into executable. Probably we can add versioning support to
15230 # collect2, so additional links can be useful in future.
15231 if test "$aix_use_runtimelinking" = yes; then
15232 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15233 # instead of lib<name>.a to let people know that these are not
15234 # typical AIX shared libraries.
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15236 else
15237 # We preserve .a as extension for shared libraries through AIX4.2
15238 # and later when we are not doing run time linking.
15239 library_names_spec='${libname}${release}.a $libname.a'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15241 fi
15242 shlibpath_var=LIBPATH
15243 fi
15244 ;;
15245
15246 amigaos*)
15247 library_names_spec='$libname.ixlibrary $libname.a'
15248 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15249 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'
15250 ;;
15251
15252 beos*)
15253 library_names_spec='${libname}${shared_ext}'
15254 dynamic_linker="$host_os ld.so"
15255 shlibpath_var=LIBRARY_PATH
15256 ;;
15257
15258 bsdi[45]*)
15259 version_type=linux
15260 need_version=no
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15262 soname_spec='${libname}${release}${shared_ext}$major'
15263 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15266 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15267 # the default ld.so.conf also contains /usr/contrib/lib and
15268 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15269 # libtool to hard-code these into programs
15270 ;;
15271
15272 cygwin* | mingw* | pw32*)
15273 version_type=windows
15274 shrext_cmds=".dll"
15275 need_version=no
15276 need_lib_prefix=no
15277
15278 case $GCC,$host_os in
15279 yes,cygwin* | yes,mingw* | yes,pw32*)
15280 library_names_spec='$libname.dll.a'
15281 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15282 postinstall_cmds='base_file=`basename \${file}`~
15283 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15284 dldir=$destdir/`dirname \$dlpath`~
15285 test -d \$dldir || mkdir -p \$dldir~
15286 $install_prog $dir/$dlname \$dldir/$dlname~
15287 chmod a+x \$dldir/$dlname'
15288 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15289 dlpath=$dir/\$dldll~
15290 $rm \$dlpath'
15291 shlibpath_overrides_runpath=yes
15292
15293 case $host_os in
15294 cygwin*)
15295 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15296 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15297 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15298 ;;
15299 mingw*)
15300 # MinGW DLLs use traditional 'lib' prefix
15301 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15302 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15303 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15304 # It is most probably a Windows format PATH printed by
15305 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15306 # path with ; separators, and with drive letters. We can handle the
15307 # drive letters (cygwin fileutils understands them), so leave them,
15308 # especially as we might pass files found there to a mingw objdump,
15309 # which wouldn't understand a cygwinified path. Ahh.
15310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15311 else
15312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15313 fi
15314 ;;
15315 pw32*)
15316 # pw32 DLLs use 'pw' prefix rather than 'lib'
15317 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15318 ;;
15319 esac
15320 ;;
15321
15322 *)
15323 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15324 ;;
15325 esac
15326 dynamic_linker='Win32 ld.exe'
15327 # FIXME: first we should search . and the directory the executable is in
15328 shlibpath_var=PATH
15329 ;;
15330
15331 darwin* | rhapsody*)
15332 dynamic_linker="$host_os dyld"
15333 version_type=darwin
15334 need_lib_prefix=no
15335 need_version=no
15336 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15337 soname_spec='${libname}${release}${major}$shared_ext'
15338 shlibpath_overrides_runpath=yes
15339 shlibpath_var=DYLD_LIBRARY_PATH
15340 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15341 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15342 if test "$GCC" = yes; then
15343 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"`
15344 else
15345 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15346 fi
15347 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15348 ;;
15349
15350 dgux*)
15351 version_type=linux
15352 need_lib_prefix=no
15353 need_version=no
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 ;;
15358
15359 freebsd1*)
15360 dynamic_linker=no
15361 ;;
15362
15363 kfreebsd*-gnu)
15364 version_type=linux
15365 need_lib_prefix=no
15366 need_version=no
15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15368 soname_spec='${libname}${release}${shared_ext}$major'
15369 shlibpath_var=LD_LIBRARY_PATH
15370 shlibpath_overrides_runpath=no
15371 hardcode_into_libs=yes
15372 dynamic_linker='GNU ld.so'
15373 ;;
15374
15375 freebsd* | dragonfly*)
15376 # DragonFly does not have aout. When/if they implement a new
15377 # versioning mechanism, adjust this.
15378 if test -x /usr/bin/objformat; then
15379 objformat=`/usr/bin/objformat`
15380 else
15381 case $host_os in
15382 freebsd[123]*) objformat=aout ;;
15383 *) objformat=elf ;;
15384 esac
15385 fi
15386 version_type=freebsd-$objformat
15387 case $version_type in
15388 freebsd-elf*)
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15390 need_version=no
15391 need_lib_prefix=no
15392 ;;
15393 freebsd-*)
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15395 need_version=yes
15396 ;;
15397 esac
15398 shlibpath_var=LD_LIBRARY_PATH
15399 case $host_os in
15400 freebsd2*)
15401 shlibpath_overrides_runpath=yes
15402 ;;
15403 freebsd3.[01]* | freebsdelf3.[01]*)
15404 shlibpath_overrides_runpath=yes
15405 hardcode_into_libs=yes
15406 ;;
15407 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15408 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15409 shlibpath_overrides_runpath=no
15410 hardcode_into_libs=yes
15411 ;;
15412 freebsd*) # from 4.6 on
15413 shlibpath_overrides_runpath=yes
15414 hardcode_into_libs=yes
15415 ;;
15416 esac
15417 ;;
15418
15419 gnu*)
15420 version_type=linux
15421 need_lib_prefix=no
15422 need_version=no
15423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15424 soname_spec='${libname}${release}${shared_ext}$major'
15425 shlibpath_var=LD_LIBRARY_PATH
15426 hardcode_into_libs=yes
15427 ;;
15428
15429 hpux9* | hpux10* | hpux11*)
15430 # Give a soname corresponding to the major version so that dld.sl refuses to
15431 # link against other versions.
15432 version_type=sunos
15433 need_lib_prefix=no
15434 need_version=no
15435 case $host_cpu in
15436 ia64*)
15437 shrext_cmds='.so'
15438 hardcode_into_libs=yes
15439 dynamic_linker="$host_os dld.so"
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443 soname_spec='${libname}${release}${shared_ext}$major'
15444 if test "X$HPUX_IA64_MODE" = X32; then
15445 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15446 else
15447 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15448 fi
15449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15450 ;;
15451 hppa*64*)
15452 shrext_cmds='.sl'
15453 hardcode_into_libs=yes
15454 dynamic_linker="$host_os dld.sl"
15455 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458 soname_spec='${libname}${release}${shared_ext}$major'
15459 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15461 ;;
15462 *)
15463 shrext_cmds='.sl'
15464 dynamic_linker="$host_os dld.sl"
15465 shlibpath_var=SHLIB_PATH
15466 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468 soname_spec='${libname}${release}${shared_ext}$major'
15469 ;;
15470 esac
15471 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15472 postinstall_cmds='chmod 555 $lib'
15473 ;;
15474
15475 interix3*)
15476 version_type=linux
15477 need_lib_prefix=no
15478 need_version=no
15479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15480 soname_spec='${libname}${release}${shared_ext}$major'
15481 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15482 shlibpath_var=LD_LIBRARY_PATH
15483 shlibpath_overrides_runpath=no
15484 hardcode_into_libs=yes
15485 ;;
15486
15487 irix5* | irix6* | nonstopux*)
15488 case $host_os in
15489 nonstopux*) version_type=nonstopux ;;
15490 *)
15491 if test "$lt_cv_prog_gnu_ld" = yes; then
15492 version_type=linux
15493 else
15494 version_type=irix
15495 fi ;;
15496 esac
15497 need_lib_prefix=no
15498 need_version=no
15499 soname_spec='${libname}${release}${shared_ext}$major'
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15501 case $host_os in
15502 irix5* | nonstopux*)
15503 libsuff= shlibsuff=
15504 ;;
15505 *)
15506 case $LD in # libtool.m4 will add one of these switches to LD
15507 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15508 libsuff= shlibsuff= libmagic=32-bit;;
15509 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15510 libsuff=32 shlibsuff=N32 libmagic=N32;;
15511 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15512 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15513 *) libsuff= shlibsuff= libmagic=never-match;;
15514 esac
15515 ;;
15516 esac
15517 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15518 shlibpath_overrides_runpath=no
15519 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15520 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15521 hardcode_into_libs=yes
15522 ;;
15523
15524 # No shared lib support for Linux oldld, aout, or coff.
15525 linux*oldld* | linux*aout* | linux*coff*)
15526 dynamic_linker=no
15527 ;;
15528
15529 # This must be Linux ELF.
15530 linux*)
15531 version_type=linux
15532 need_lib_prefix=no
15533 need_version=no
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15537 shlibpath_var=LD_LIBRARY_PATH
15538 shlibpath_overrides_runpath=no
15539 # This implies no fast_install, which is unacceptable.
15540 # Some rework will be needed to allow for fast_install
15541 # before this can be enabled.
15542 hardcode_into_libs=yes
15543
15544 # find out which ABI we are using
15545 libsuff=
15546 case "$host_cpu" in
15547 x86_64*|s390x*|powerpc64*)
15548 echo '#line 15548 "configure"' > conftest.$ac_ext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15550 (eval $ac_compile) 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; then
15554 case `/usr/bin/file conftest.$ac_objext` in
15555 *64-bit*)
15556 libsuff=64
15557 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15558 ;;
15559 esac
15560 fi
15561 rm -rf conftest*
15562 ;;
15563 esac
15564
15565 # Append ld.so.conf contents to the search path
15566 if test -f /etc/ld.so.conf; then
15567 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' ' '`
15568 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15569 fi
15570
15571 # We used to test for /lib/ld.so.1 and disable shared libraries on
15572 # powerpc, because MkLinux only supported shared libraries with the
15573 # GNU dynamic linker. Since this was broken with cross compilers,
15574 # most powerpc-linux boxes support dynamic linking these days and
15575 # people can always --disable-shared, the test was removed, and we
15576 # assume the GNU/Linux dynamic linker is in use.
15577 dynamic_linker='GNU/Linux ld.so'
15578 ;;
15579
15580 knetbsd*-gnu)
15581 version_type=linux
15582 need_lib_prefix=no
15583 need_version=no
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15585 soname_spec='${libname}${release}${shared_ext}$major'
15586 shlibpath_var=LD_LIBRARY_PATH
15587 shlibpath_overrides_runpath=no
15588 hardcode_into_libs=yes
15589 dynamic_linker='GNU ld.so'
15590 ;;
15591
15592 netbsd*)
15593 version_type=sunos
15594 need_lib_prefix=no
15595 need_version=no
15596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15599 dynamic_linker='NetBSD (a.out) ld.so'
15600 else
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 dynamic_linker='NetBSD ld.elf_so'
15604 fi
15605 shlibpath_var=LD_LIBRARY_PATH
15606 shlibpath_overrides_runpath=yes
15607 hardcode_into_libs=yes
15608 ;;
15609
15610 newsos6)
15611 version_type=linux
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613 shlibpath_var=LD_LIBRARY_PATH
15614 shlibpath_overrides_runpath=yes
15615 ;;
15616
15617 nto-qnx*)
15618 version_type=linux
15619 need_lib_prefix=no
15620 need_version=no
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622 soname_spec='${libname}${release}${shared_ext}$major'
15623 shlibpath_var=LD_LIBRARY_PATH
15624 shlibpath_overrides_runpath=yes
15625 ;;
15626
15627 openbsd*)
15628 version_type=sunos
15629 sys_lib_dlsearch_path_spec="/usr/lib"
15630 need_lib_prefix=no
15631 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15632 case $host_os in
15633 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15634 *) need_version=no ;;
15635 esac
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15640 case $host_os in
15641 openbsd2.[89] | openbsd2.[89].*)
15642 shlibpath_overrides_runpath=no
15643 ;;
15644 *)
15645 shlibpath_overrides_runpath=yes
15646 ;;
15647 esac
15648 else
15649 shlibpath_overrides_runpath=yes
15650 fi
15651 ;;
15652
15653 os2*)
15654 libname_spec='$name'
15655 shrext_cmds=".dll"
15656 need_lib_prefix=no
15657 library_names_spec='$libname${shared_ext} $libname.a'
15658 dynamic_linker='OS/2 ld.exe'
15659 shlibpath_var=LIBPATH
15660 ;;
15661
15662 osf3* | osf4* | osf5*)
15663 version_type=osf
15664 need_lib_prefix=no
15665 need_version=no
15666 soname_spec='${libname}${release}${shared_ext}$major'
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668 shlibpath_var=LD_LIBRARY_PATH
15669 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15670 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15671 ;;
15672
15673 solaris*)
15674 version_type=linux
15675 need_lib_prefix=no
15676 need_version=no
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678 soname_spec='${libname}${release}${shared_ext}$major'
15679 shlibpath_var=LD_LIBRARY_PATH
15680 shlibpath_overrides_runpath=yes
15681 hardcode_into_libs=yes
15682 # ldd complains unless libraries are executable
15683 postinstall_cmds='chmod +x $lib'
15684 ;;
15685
15686 sunos4*)
15687 version_type=sunos
15688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15689 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15690 shlibpath_var=LD_LIBRARY_PATH
15691 shlibpath_overrides_runpath=yes
15692 if test "$with_gnu_ld" = yes; then
15693 need_lib_prefix=no
15694 fi
15695 need_version=yes
15696 ;;
15697
15698 sysv4 | sysv4.3*)
15699 version_type=linux
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 case $host_vendor in
15704 sni)
15705 shlibpath_overrides_runpath=no
15706 need_lib_prefix=no
15707 export_dynamic_flag_spec='${wl}-Blargedynsym'
15708 runpath_var=LD_RUN_PATH
15709 ;;
15710 siemens)
15711 need_lib_prefix=no
15712 ;;
15713 motorola)
15714 need_lib_prefix=no
15715 need_version=no
15716 shlibpath_overrides_runpath=no
15717 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15718 ;;
15719 esac
15720 ;;
15721
15722 sysv4*MP*)
15723 if test -d /usr/nec ;then
15724 version_type=linux
15725 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15726 soname_spec='$libname${shared_ext}.$major'
15727 shlibpath_var=LD_LIBRARY_PATH
15728 fi
15729 ;;
15730
15731 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15732 version_type=freebsd-elf
15733 need_lib_prefix=no
15734 need_version=no
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15736 soname_spec='${libname}${release}${shared_ext}$major'
15737 shlibpath_var=LD_LIBRARY_PATH
15738 hardcode_into_libs=yes
15739 if test "$with_gnu_ld" = yes; then
15740 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15741 shlibpath_overrides_runpath=no
15742 else
15743 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15744 shlibpath_overrides_runpath=yes
15745 case $host_os in
15746 sco3.2v5*)
15747 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15748 ;;
15749 esac
15750 fi
15751 sys_lib_dlsearch_path_spec='/usr/lib'
15752 ;;
15753
15754 uts4*)
15755 version_type=linux
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 ;;
15760
15761 *)
15762 dynamic_linker=no
15763 ;;
15764 esac
15765 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15766 echo "${ECHO_T}$dynamic_linker" >&6; }
15767 test "$dynamic_linker" = no && can_build_shared=no
15768
15769 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15770 if test "$GCC" = yes; then
15771 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15772 fi
15773
15774 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15775 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15776 hardcode_action_F77=
15777 if test -n "$hardcode_libdir_flag_spec_F77" || \
15778 test -n "$runpath_var_F77" || \
15779 test "X$hardcode_automatic_F77" = "Xyes" ; then
15780
15781 # We can hardcode non-existant directories.
15782 if test "$hardcode_direct_F77" != no &&
15783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15784 # have to relink, otherwise we might link with an installed library
15785 # when we should be linking with a yet-to-be-installed one
15786 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15787 test "$hardcode_minus_L_F77" != no; then
15788 # Linking always hardcodes the temporary library directory.
15789 hardcode_action_F77=relink
15790 else
15791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15792 hardcode_action_F77=immediate
15793 fi
15794 else
15795 # We cannot hardcode anything, or else we can only hardcode existing
15796 # directories.
15797 hardcode_action_F77=unsupported
15798 fi
15799 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15800 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15801
15802 if test "$hardcode_action_F77" = relink; then
15803 # Fast installation is not supported
15804 enable_fast_install=no
15805 elif test "$shlibpath_overrides_runpath" = yes ||
15806 test "$enable_shared" = no; then
15807 # Fast installation is not necessary
15808 enable_fast_install=needless
15809 fi
15810
15811
15812 # The else clause should only fire when bootstrapping the
15813 # libtool distribution, otherwise you forgot to ship ltmain.sh
15814 # with your package, and you will get complaints that there are
15815 # no rules to generate ltmain.sh.
15816 if test -f "$ltmain"; then
15817 # See if we are running on zsh, and set the options which allow our commands through
15818 # without removal of \ escapes.
15819 if test -n "${ZSH_VERSION+set}" ; then
15820 setopt NO_GLOB_SUBST
15821 fi
15822 # Now quote all the things that may contain metacharacters while being
15823 # careful not to overquote the AC_SUBSTed values. We take copies of the
15824 # variables and quote the copies for generation of the libtool script.
15825 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15826 SED SHELL STRIP \
15827 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15828 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15829 deplibs_check_method reload_flag reload_cmds need_locks \
15830 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15831 lt_cv_sys_global_symbol_to_c_name_address \
15832 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15833 old_postinstall_cmds old_postuninstall_cmds \
15834 compiler_F77 \
15835 CC_F77 \
15836 LD_F77 \
15837 lt_prog_compiler_wl_F77 \
15838 lt_prog_compiler_pic_F77 \
15839 lt_prog_compiler_static_F77 \
15840 lt_prog_compiler_no_builtin_flag_F77 \
15841 export_dynamic_flag_spec_F77 \
15842 thread_safe_flag_spec_F77 \
15843 whole_archive_flag_spec_F77 \
15844 enable_shared_with_static_runtimes_F77 \
15845 old_archive_cmds_F77 \
15846 old_archive_from_new_cmds_F77 \
15847 predep_objects_F77 \
15848 postdep_objects_F77 \
15849 predeps_F77 \
15850 postdeps_F77 \
15851 compiler_lib_search_path_F77 \
15852 archive_cmds_F77 \
15853 archive_expsym_cmds_F77 \
15854 postinstall_cmds_F77 \
15855 postuninstall_cmds_F77 \
15856 old_archive_from_expsyms_cmds_F77 \
15857 allow_undefined_flag_F77 \
15858 no_undefined_flag_F77 \
15859 export_symbols_cmds_F77 \
15860 hardcode_libdir_flag_spec_F77 \
15861 hardcode_libdir_flag_spec_ld_F77 \
15862 hardcode_libdir_separator_F77 \
15863 hardcode_automatic_F77 \
15864 module_cmds_F77 \
15865 module_expsym_cmds_F77 \
15866 lt_cv_prog_compiler_c_o_F77 \
15867 exclude_expsyms_F77 \
15868 include_expsyms_F77; do
15869
15870 case $var in
15871 old_archive_cmds_F77 | \
15872 old_archive_from_new_cmds_F77 | \
15873 archive_cmds_F77 | \
15874 archive_expsym_cmds_F77 | \
15875 module_cmds_F77 | \
15876 module_expsym_cmds_F77 | \
15877 old_archive_from_expsyms_cmds_F77 | \
15878 export_symbols_cmds_F77 | \
15879 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15880 postinstall_cmds | postuninstall_cmds | \
15881 old_postinstall_cmds | old_postuninstall_cmds | \
15882 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15883 # Double-quote double-evaled strings.
15884 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15885 ;;
15886 *)
15887 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15888 ;;
15889 esac
15890 done
15891
15892 case $lt_echo in
15893 *'\$0 --fallback-echo"')
15894 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15895 ;;
15896 esac
15897
15898 cfgfile="$ofile"
15899
15900 cat <<__EOF__ >> "$cfgfile"
15901 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15902
15903 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15904
15905 # Shell to use when invoking shell scripts.
15906 SHELL=$lt_SHELL
15907
15908 # Whether or not to build shared libraries.
15909 build_libtool_libs=$enable_shared
15910
15911 # Whether or not to build static libraries.
15912 build_old_libs=$enable_static
15913
15914 # Whether or not to add -lc for building shared libraries.
15915 build_libtool_need_lc=$archive_cmds_need_lc_F77
15916
15917 # Whether or not to disallow shared libs when runtime libs are static
15918 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15919
15920 # Whether or not to optimize for fast installation.
15921 fast_install=$enable_fast_install
15922
15923 # The host system.
15924 host_alias=$host_alias
15925 host=$host
15926 host_os=$host_os
15927
15928 # The build system.
15929 build_alias=$build_alias
15930 build=$build
15931 build_os=$build_os
15932
15933 # An echo program that does not interpret backslashes.
15934 echo=$lt_echo
15935
15936 # The archiver.
15937 AR=$lt_AR
15938 AR_FLAGS=$lt_AR_FLAGS
15939
15940 # A C compiler.
15941 LTCC=$lt_LTCC
15942
15943 # LTCC compiler flags.
15944 LTCFLAGS=$lt_LTCFLAGS
15945
15946 # A language-specific compiler.
15947 CC=$lt_compiler_F77
15948
15949 # Is the compiler the GNU C compiler?
15950 with_gcc=$GCC_F77
15951
15952 # An ERE matcher.
15953 EGREP=$lt_EGREP
15954
15955 # The linker used to build libraries.
15956 LD=$lt_LD_F77
15957
15958 # Whether we need hard or soft links.
15959 LN_S=$lt_LN_S
15960
15961 # A BSD-compatible nm program.
15962 NM=$lt_NM
15963
15964 # A symbol stripping program
15965 STRIP=$lt_STRIP
15966
15967 # Used to examine libraries when file_magic_cmd begins "file"
15968 MAGIC_CMD=$MAGIC_CMD
15969
15970 # Used on cygwin: DLL creation program.
15971 DLLTOOL="$DLLTOOL"
15972
15973 # Used on cygwin: object dumper.
15974 OBJDUMP="$OBJDUMP"
15975
15976 # Used on cygwin: assembler.
15977 AS="$AS"
15978
15979 # The name of the directory that contains temporary libtool files.
15980 objdir=$objdir
15981
15982 # How to create reloadable object files.
15983 reload_flag=$lt_reload_flag
15984 reload_cmds=$lt_reload_cmds
15985
15986 # How to pass a linker flag through the compiler.
15987 wl=$lt_lt_prog_compiler_wl_F77
15988
15989 # Object file suffix (normally "o").
15990 objext="$ac_objext"
15991
15992 # Old archive suffix (normally "a").
15993 libext="$libext"
15994
15995 # Shared library suffix (normally ".so").
15996 shrext_cmds='$shrext_cmds'
15997
15998 # Executable file suffix (normally "").
15999 exeext="$exeext"
16000
16001 # Additional compiler flags for building library objects.
16002 pic_flag=$lt_lt_prog_compiler_pic_F77
16003 pic_mode=$pic_mode
16004
16005 # What is the maximum length of a command?
16006 max_cmd_len=$lt_cv_sys_max_cmd_len
16007
16008 # Does compiler simultaneously support -c and -o options?
16009 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16010
16011 # Must we lock files when doing compilation?
16012 need_locks=$lt_need_locks
16013
16014 # Do we need the lib prefix for modules?
16015 need_lib_prefix=$need_lib_prefix
16016
16017 # Do we need a version for libraries?
16018 need_version=$need_version
16019
16020 # Whether dlopen is supported.
16021 dlopen_support=$enable_dlopen
16022
16023 # Whether dlopen of programs is supported.
16024 dlopen_self=$enable_dlopen_self
16025
16026 # Whether dlopen of statically linked programs is supported.
16027 dlopen_self_static=$enable_dlopen_self_static
16028
16029 # Compiler flag to prevent dynamic linking.
16030 link_static_flag=$lt_lt_prog_compiler_static_F77
16031
16032 # Compiler flag to turn off builtin functions.
16033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16034
16035 # Compiler flag to allow reflexive dlopens.
16036 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16037
16038 # Compiler flag to generate shared objects directly from archives.
16039 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16040
16041 # Compiler flag to generate thread-safe objects.
16042 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16043
16044 # Library versioning type.
16045 version_type=$version_type
16046
16047 # Format of library name prefix.
16048 libname_spec=$lt_libname_spec
16049
16050 # List of archive names. First name is the real one, the rest are links.
16051 # The last name is the one that the linker finds with -lNAME.
16052 library_names_spec=$lt_library_names_spec
16053
16054 # The coded name of the library, if different from the real name.
16055 soname_spec=$lt_soname_spec
16056
16057 # Commands used to build and install an old-style archive.
16058 RANLIB=$lt_RANLIB
16059 old_archive_cmds=$lt_old_archive_cmds_F77
16060 old_postinstall_cmds=$lt_old_postinstall_cmds
16061 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16062
16063 # Create an old-style archive from a shared archive.
16064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16065
16066 # Create a temporary old-style archive to link instead of a shared archive.
16067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16068
16069 # Commands used to build and install a shared archive.
16070 archive_cmds=$lt_archive_cmds_F77
16071 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16072 postinstall_cmds=$lt_postinstall_cmds
16073 postuninstall_cmds=$lt_postuninstall_cmds
16074
16075 # Commands used to build a loadable module (assumed same as above if empty)
16076 module_cmds=$lt_module_cmds_F77
16077 module_expsym_cmds=$lt_module_expsym_cmds_F77
16078
16079 # Commands to strip libraries.
16080 old_striplib=$lt_old_striplib
16081 striplib=$lt_striplib
16082
16083 # Dependencies to place before the objects being linked to create a
16084 # shared library.
16085 predep_objects=$lt_predep_objects_F77
16086
16087 # Dependencies to place after the objects being linked to create a
16088 # shared library.
16089 postdep_objects=$lt_postdep_objects_F77
16090
16091 # Dependencies to place before the objects being linked to create a
16092 # shared library.
16093 predeps=$lt_predeps_F77
16094
16095 # Dependencies to place after the objects being linked to create a
16096 # shared library.
16097 postdeps=$lt_postdeps_F77
16098
16099 # The library search path used internally by the compiler when linking
16100 # a shared library.
16101 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16102
16103 # Method to check whether dependent libraries are shared objects.
16104 deplibs_check_method=$lt_deplibs_check_method
16105
16106 # Command to use when deplibs_check_method == file_magic.
16107 file_magic_cmd=$lt_file_magic_cmd
16108
16109 # Flag that allows shared libraries with undefined symbols to be built.
16110 allow_undefined_flag=$lt_allow_undefined_flag_F77
16111
16112 # Flag that forces no undefined symbols.
16113 no_undefined_flag=$lt_no_undefined_flag_F77
16114
16115 # Commands used to finish a libtool library installation in a directory.
16116 finish_cmds=$lt_finish_cmds
16117
16118 # Same as above, but a single script fragment to be evaled but not shown.
16119 finish_eval=$lt_finish_eval
16120
16121 # Take the output of nm and produce a listing of raw symbols and C names.
16122 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16123
16124 # Transform the output of nm in a proper C declaration
16125 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16126
16127 # Transform the output of nm in a C name address pair
16128 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16129
16130 # This is the shared library runtime path variable.
16131 runpath_var=$runpath_var
16132
16133 # This is the shared library path variable.
16134 shlibpath_var=$shlibpath_var
16135
16136 # Is shlibpath searched before the hard-coded library search path?
16137 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16138
16139 # How to hardcode a shared library path into an executable.
16140 hardcode_action=$hardcode_action_F77
16141
16142 # Whether we should hardcode library paths into libraries.
16143 hardcode_into_libs=$hardcode_into_libs
16144
16145 # Flag to hardcode \$libdir into a binary during linking.
16146 # This must work even if \$libdir does not exist.
16147 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16148
16149 # If ld is used when linking, flag to hardcode \$libdir into
16150 # a binary during linking. This must work even if \$libdir does
16151 # not exist.
16152 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16153
16154 # Whether we need a single -rpath flag with a separated argument.
16155 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16156
16157 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16158 # resulting binary.
16159 hardcode_direct=$hardcode_direct_F77
16160
16161 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16162 # resulting binary.
16163 hardcode_minus_L=$hardcode_minus_L_F77
16164
16165 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16166 # the resulting binary.
16167 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16168
16169 # Set to yes if building a shared library automatically hardcodes DIR into the library
16170 # and all subsequent libraries and executables linked against it.
16171 hardcode_automatic=$hardcode_automatic_F77
16172
16173 # Variables whose values should be saved in libtool wrapper scripts and
16174 # restored at relink time.
16175 variables_saved_for_relink="$variables_saved_for_relink"
16176
16177 # Whether libtool must link a program against all its dependency libraries.
16178 link_all_deplibs=$link_all_deplibs_F77
16179
16180 # Compile-time system search path for libraries
16181 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16182
16183 # Run-time system search path for libraries
16184 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16185
16186 # Fix the shell variable \$srcfile for the compiler.
16187 fix_srcfile_path="$fix_srcfile_path_F77"
16188
16189 # Set to yes if exported symbols are required.
16190 always_export_symbols=$always_export_symbols_F77
16191
16192 # The commands to list exported symbols.
16193 export_symbols_cmds=$lt_export_symbols_cmds_F77
16194
16195 # The commands to extract the exported symbol list from a shared archive.
16196 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16197
16198 # Symbols that should not be listed in the preloaded symbols.
16199 exclude_expsyms=$lt_exclude_expsyms_F77
16200
16201 # Symbols that must always be exported.
16202 include_expsyms=$lt_include_expsyms_F77
16203
16204 # ### END LIBTOOL TAG CONFIG: $tagname
16205
16206 __EOF__
16207
16208
16209 else
16210 # If there is no Makefile yet, we rely on a make rule to execute
16211 # `config.status --recheck' to rerun these tests and create the
16212 # libtool script then.
16213 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16214 if test -f "$ltmain_in"; then
16215 test -f Makefile && make "$ltmain"
16216 fi
16217 fi
16218
16219
16220 ac_ext=c
16221 ac_cpp='$CPP $CPPFLAGS'
16222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16225
16226 CC="$lt_save_CC"
16227
16228 else
16229 tagname=""
16230 fi
16231 ;;
16232
16233 GCJ)
16234 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16235
16236
16237 # Source file extension for Java test sources.
16238 ac_ext=java
16239
16240 # Object file extension for compiled Java test sources.
16241 objext=o
16242 objext_GCJ=$objext
16243
16244 # Code to be used in simple compile tests
16245 lt_simple_compile_test_code="class foo {}\n"
16246
16247 # Code to be used in simple link tests
16248 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16249
16250 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16251
16252 # If no C compiler was specified, use CC.
16253 LTCC=${LTCC-"$CC"}
16254
16255 # If no C compiler flags were specified, use CFLAGS.
16256 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16257
16258 # Allow CC to be a program name with arguments.
16259 compiler=$CC
16260
16261
16262 # save warnings/boilerplate of simple test code
16263 ac_outfile=conftest.$ac_objext
16264 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16265 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16266 _lt_compiler_boilerplate=`cat conftest.err`
16267 $rm conftest*
16268
16269 ac_outfile=conftest.$ac_objext
16270 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16271 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16272 _lt_linker_boilerplate=`cat conftest.err`
16273 $rm conftest*
16274
16275
16276 # Allow CC to be a program name with arguments.
16277 lt_save_CC="$CC"
16278 CC=${GCJ-"gcj"}
16279 compiler=$CC
16280 compiler_GCJ=$CC
16281 for cc_temp in $compiler""; do
16282 case $cc_temp in
16283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16285 \-*) ;;
16286 *) break;;
16287 esac
16288 done
16289 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16290
16291
16292 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16293 archive_cmds_need_lc_GCJ=no
16294
16295 old_archive_cmds_GCJ=$old_archive_cmds
16296
16297
16298 lt_prog_compiler_no_builtin_flag_GCJ=
16299
16300 if test "$GCC" = yes; then
16301 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16302
16303
16304 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16305 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16306 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16307 echo $ECHO_N "(cached) $ECHO_C" >&6
16308 else
16309 lt_cv_prog_compiler_rtti_exceptions=no
16310 ac_outfile=conftest.$ac_objext
16311 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16312 lt_compiler_flag="-fno-rtti -fno-exceptions"
16313 # Insert the option either (1) after the last *FLAGS variable, or
16314 # (2) before a word containing "conftest.", or (3) at the end.
16315 # Note that $ac_compile itself does not contain backslashes and begins
16316 # with a dollar sign (not a hyphen), so the echo should work correctly.
16317 # The option is referenced via a variable to avoid confusing sed.
16318 lt_compile=`echo "$ac_compile" | $SED \
16319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16321 -e 's:$: $lt_compiler_flag:'`
16322 (eval echo "\"\$as_me:16322: $lt_compile\"" >&5)
16323 (eval "$lt_compile" 2>conftest.err)
16324 ac_status=$?
16325 cat conftest.err >&5
16326 echo "$as_me:16326: \$? = $ac_status" >&5
16327 if (exit $ac_status) && test -s "$ac_outfile"; then
16328 # The compiler can only warn and ignore the option if not recognized
16329 # So say no if there are warnings other than the usual output.
16330 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16332 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16333 lt_cv_prog_compiler_rtti_exceptions=yes
16334 fi
16335 fi
16336 $rm conftest*
16337
16338 fi
16339 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16340 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16341
16342 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16343 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16344 else
16345 :
16346 fi
16347
16348 fi
16349
16350 lt_prog_compiler_wl_GCJ=
16351 lt_prog_compiler_pic_GCJ=
16352 lt_prog_compiler_static_GCJ=
16353
16354 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16355 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16356
16357 if test "$GCC" = yes; then
16358 lt_prog_compiler_wl_GCJ='-Wl,'
16359 lt_prog_compiler_static_GCJ='-static'
16360
16361 case $host_os in
16362 aix*)
16363 # All AIX code is PIC.
16364 if test "$host_cpu" = ia64; then
16365 # AIX 5 now supports IA64 processor
16366 lt_prog_compiler_static_GCJ='-Bstatic'
16367 fi
16368 ;;
16369
16370 amigaos*)
16371 # FIXME: we need at least 68020 code to build shared libraries, but
16372 # adding the `-m68020' flag to GCC prevents building anything better,
16373 # like `-m68040'.
16374 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16375 ;;
16376
16377 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16378 # PIC is the default for these OSes.
16379 ;;
16380
16381 mingw* | pw32* | os2*)
16382 # This hack is so that the source file can tell whether it is being
16383 # built for inclusion in a dll (and should export symbols for example).
16384 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16385 ;;
16386
16387 darwin* | rhapsody*)
16388 # PIC is the default on this platform
16389 # Common symbols not allowed in MH_DYLIB files
16390 lt_prog_compiler_pic_GCJ='-fno-common'
16391 ;;
16392
16393 interix3*)
16394 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16395 # Instead, we relocate shared libraries at runtime.
16396 ;;
16397
16398 msdosdjgpp*)
16399 # Just because we use GCC doesn't mean we suddenly get shared libraries
16400 # on systems that don't support them.
16401 lt_prog_compiler_can_build_shared_GCJ=no
16402 enable_shared=no
16403 ;;
16404
16405 sysv4*MP*)
16406 if test -d /usr/nec; then
16407 lt_prog_compiler_pic_GCJ=-Kconform_pic
16408 fi
16409 ;;
16410
16411 hpux*)
16412 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16413 # not for PA HP-UX.
16414 case $host_cpu in
16415 hppa*64*|ia64*)
16416 # +Z the default
16417 ;;
16418 *)
16419 lt_prog_compiler_pic_GCJ='-fPIC'
16420 ;;
16421 esac
16422 ;;
16423
16424 *)
16425 lt_prog_compiler_pic_GCJ='-fPIC'
16426 ;;
16427 esac
16428 else
16429 # PORTME Check for flag to pass linker flags through the system compiler.
16430 case $host_os in
16431 aix*)
16432 lt_prog_compiler_wl_GCJ='-Wl,'
16433 if test "$host_cpu" = ia64; then
16434 # AIX 5 now supports IA64 processor
16435 lt_prog_compiler_static_GCJ='-Bstatic'
16436 else
16437 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16438 fi
16439 ;;
16440 darwin*)
16441 # PIC is the default on this platform
16442 # Common symbols not allowed in MH_DYLIB files
16443 case $cc_basename in
16444 xlc*)
16445 lt_prog_compiler_pic_GCJ='-qnocommon'
16446 lt_prog_compiler_wl_GCJ='-Wl,'
16447 ;;
16448 esac
16449 ;;
16450
16451 mingw* | pw32* | os2*)
16452 # This hack is so that the source file can tell whether it is being
16453 # built for inclusion in a dll (and should export symbols for example).
16454 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16455 ;;
16456
16457 hpux9* | hpux10* | hpux11*)
16458 lt_prog_compiler_wl_GCJ='-Wl,'
16459 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16460 # not for PA HP-UX.
16461 case $host_cpu in
16462 hppa*64*|ia64*)
16463 # +Z the default
16464 ;;
16465 *)
16466 lt_prog_compiler_pic_GCJ='+Z'
16467 ;;
16468 esac
16469 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16470 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16471 ;;
16472
16473 irix5* | irix6* | nonstopux*)
16474 lt_prog_compiler_wl_GCJ='-Wl,'
16475 # PIC (with -KPIC) is the default.
16476 lt_prog_compiler_static_GCJ='-non_shared'
16477 ;;
16478
16479 newsos6)
16480 lt_prog_compiler_pic_GCJ='-KPIC'
16481 lt_prog_compiler_static_GCJ='-Bstatic'
16482 ;;
16483
16484 linux*)
16485 case $cc_basename in
16486 icc* | ecc*)
16487 lt_prog_compiler_wl_GCJ='-Wl,'
16488 lt_prog_compiler_pic_GCJ='-KPIC'
16489 lt_prog_compiler_static_GCJ='-static'
16490 ;;
16491 pgcc* | pgf77* | pgf90* | pgf95*)
16492 # Portland Group compilers (*not* the Pentium gcc compiler,
16493 # which looks to be a dead project)
16494 lt_prog_compiler_wl_GCJ='-Wl,'
16495 lt_prog_compiler_pic_GCJ='-fpic'
16496 lt_prog_compiler_static_GCJ='-Bstatic'
16497 ;;
16498 ccc*)
16499 lt_prog_compiler_wl_GCJ='-Wl,'
16500 # All Alpha code is PIC.
16501 lt_prog_compiler_static_GCJ='-non_shared'
16502 ;;
16503 esac
16504 ;;
16505
16506 osf3* | osf4* | osf5*)
16507 lt_prog_compiler_wl_GCJ='-Wl,'
16508 # All OSF/1 code is PIC.
16509 lt_prog_compiler_static_GCJ='-non_shared'
16510 ;;
16511
16512 solaris*)
16513 lt_prog_compiler_pic_GCJ='-KPIC'
16514 lt_prog_compiler_static_GCJ='-Bstatic'
16515 case $cc_basename in
16516 f77* | f90* | f95*)
16517 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16518 *)
16519 lt_prog_compiler_wl_GCJ='-Wl,';;
16520 esac
16521 ;;
16522
16523 sunos4*)
16524 lt_prog_compiler_wl_GCJ='-Qoption ld '
16525 lt_prog_compiler_pic_GCJ='-PIC'
16526 lt_prog_compiler_static_GCJ='-Bstatic'
16527 ;;
16528
16529 sysv4 | sysv4.2uw2* | sysv4.3*)
16530 lt_prog_compiler_wl_GCJ='-Wl,'
16531 lt_prog_compiler_pic_GCJ='-KPIC'
16532 lt_prog_compiler_static_GCJ='-Bstatic'
16533 ;;
16534
16535 sysv4*MP*)
16536 if test -d /usr/nec ;then
16537 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16538 lt_prog_compiler_static_GCJ='-Bstatic'
16539 fi
16540 ;;
16541
16542 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16543 lt_prog_compiler_wl_GCJ='-Wl,'
16544 lt_prog_compiler_pic_GCJ='-KPIC'
16545 lt_prog_compiler_static_GCJ='-Bstatic'
16546 ;;
16547
16548 unicos*)
16549 lt_prog_compiler_wl_GCJ='-Wl,'
16550 lt_prog_compiler_can_build_shared_GCJ=no
16551 ;;
16552
16553 uts4*)
16554 lt_prog_compiler_pic_GCJ='-pic'
16555 lt_prog_compiler_static_GCJ='-Bstatic'
16556 ;;
16557
16558 *)
16559 lt_prog_compiler_can_build_shared_GCJ=no
16560 ;;
16561 esac
16562 fi
16563
16564 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16565 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16566
16567 #
16568 # Check to make sure the PIC flag actually works.
16569 #
16570 if test -n "$lt_prog_compiler_pic_GCJ"; then
16571
16572 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16573 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16574 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16576 else
16577 lt_prog_compiler_pic_works_GCJ=no
16578 ac_outfile=conftest.$ac_objext
16579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16580 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16581 # Insert the option either (1) after the last *FLAGS variable, or
16582 # (2) before a word containing "conftest.", or (3) at the end.
16583 # Note that $ac_compile itself does not contain backslashes and begins
16584 # with a dollar sign (not a hyphen), so the echo should work correctly.
16585 # The option is referenced via a variable to avoid confusing sed.
16586 lt_compile=`echo "$ac_compile" | $SED \
16587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16589 -e 's:$: $lt_compiler_flag:'`
16590 (eval echo "\"\$as_me:16590: $lt_compile\"" >&5)
16591 (eval "$lt_compile" 2>conftest.err)
16592 ac_status=$?
16593 cat conftest.err >&5
16594 echo "$as_me:16594: \$? = $ac_status" >&5
16595 if (exit $ac_status) && test -s "$ac_outfile"; then
16596 # The compiler can only warn and ignore the option if not recognized
16597 # So say no if there are warnings other than the usual output.
16598 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16600 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16601 lt_prog_compiler_pic_works_GCJ=yes
16602 fi
16603 fi
16604 $rm conftest*
16605
16606 fi
16607 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16608 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16609
16610 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16611 case $lt_prog_compiler_pic_GCJ in
16612 "" | " "*) ;;
16613 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16614 esac
16615 else
16616 lt_prog_compiler_pic_GCJ=
16617 lt_prog_compiler_can_build_shared_GCJ=no
16618 fi
16619
16620 fi
16621 case $host_os in
16622 # For platforms which do not support PIC, -DPIC is meaningless:
16623 *djgpp*)
16624 lt_prog_compiler_pic_GCJ=
16625 ;;
16626 *)
16627 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16628 ;;
16629 esac
16630
16631 #
16632 # Check to make sure the static flag actually works.
16633 #
16634 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16635 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16636 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16637 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640 lt_prog_compiler_static_works_GCJ=no
16641 save_LDFLAGS="$LDFLAGS"
16642 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16643 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16645 # The linker can only warn and ignore the option if not recognized
16646 # So say no if there are warnings
16647 if test -s conftest.err; then
16648 # Append any errors to the config.log.
16649 cat conftest.err 1>&5
16650 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16652 if diff conftest.exp conftest.er2 >/dev/null; then
16653 lt_prog_compiler_static_works_GCJ=yes
16654 fi
16655 else
16656 lt_prog_compiler_static_works_GCJ=yes
16657 fi
16658 fi
16659 $rm conftest*
16660 LDFLAGS="$save_LDFLAGS"
16661
16662 fi
16663 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16664 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16665
16666 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16667 :
16668 else
16669 lt_prog_compiler_static_GCJ=
16670 fi
16671
16672
16673 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16674 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16675 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 else
16678 lt_cv_prog_compiler_c_o_GCJ=no
16679 $rm -r conftest 2>/dev/null
16680 mkdir conftest
16681 cd conftest
16682 mkdir out
16683 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16684
16685 lt_compiler_flag="-o out/conftest2.$ac_objext"
16686 # Insert the option either (1) after the last *FLAGS variable, or
16687 # (2) before a word containing "conftest.", or (3) at the end.
16688 # Note that $ac_compile itself does not contain backslashes and begins
16689 # with a dollar sign (not a hyphen), so the echo should work correctly.
16690 lt_compile=`echo "$ac_compile" | $SED \
16691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16693 -e 's:$: $lt_compiler_flag:'`
16694 (eval echo "\"\$as_me:16694: $lt_compile\"" >&5)
16695 (eval "$lt_compile" 2>out/conftest.err)
16696 ac_status=$?
16697 cat out/conftest.err >&5
16698 echo "$as_me:16698: \$? = $ac_status" >&5
16699 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16700 then
16701 # The compiler can only warn and ignore the option if not recognized
16702 # So say no if there are warnings
16703 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16704 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16705 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16706 lt_cv_prog_compiler_c_o_GCJ=yes
16707 fi
16708 fi
16709 chmod u+w . 2>&5
16710 $rm conftest*
16711 # SGI C++ compiler will create directory out/ii_files/ for
16712 # template instantiation
16713 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16714 $rm out/* && rmdir out
16715 cd ..
16716 rmdir conftest
16717 $rm conftest*
16718
16719 fi
16720 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16721 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16722
16723
16724 hard_links="nottested"
16725 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16726 # do not overwrite the value of need_locks provided by the user
16727 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16728 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16729 hard_links=yes
16730 $rm conftest*
16731 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16732 touch conftest.a
16733 ln conftest.a conftest.b 2>&5 || hard_links=no
16734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16735 { echo "$as_me:$LINENO: result: $hard_links" >&5
16736 echo "${ECHO_T}$hard_links" >&6; }
16737 if test "$hard_links" = no; then
16738 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16739 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16740 need_locks=warn
16741 fi
16742 else
16743 need_locks=no
16744 fi
16745
16746 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16747 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16748
16749 runpath_var=
16750 allow_undefined_flag_GCJ=
16751 enable_shared_with_static_runtimes_GCJ=no
16752 archive_cmds_GCJ=
16753 archive_expsym_cmds_GCJ=
16754 old_archive_From_new_cmds_GCJ=
16755 old_archive_from_expsyms_cmds_GCJ=
16756 export_dynamic_flag_spec_GCJ=
16757 whole_archive_flag_spec_GCJ=
16758 thread_safe_flag_spec_GCJ=
16759 hardcode_libdir_flag_spec_GCJ=
16760 hardcode_libdir_flag_spec_ld_GCJ=
16761 hardcode_libdir_separator_GCJ=
16762 hardcode_direct_GCJ=no
16763 hardcode_minus_L_GCJ=no
16764 hardcode_shlibpath_var_GCJ=unsupported
16765 link_all_deplibs_GCJ=unknown
16766 hardcode_automatic_GCJ=no
16767 module_cmds_GCJ=
16768 module_expsym_cmds_GCJ=
16769 always_export_symbols_GCJ=no
16770 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16771 # include_expsyms should be a list of space-separated symbols to be *always*
16772 # included in the symbol list
16773 include_expsyms_GCJ=
16774 # exclude_expsyms can be an extended regexp of symbols to exclude
16775 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16776 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16777 # as well as any symbol that contains `d'.
16778 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16779 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16780 # platforms (ab)use it in PIC code, but their linkers get confused if
16781 # the symbol is explicitly referenced. Since portable code cannot
16782 # rely on this symbol name, it's probably fine to never include it in
16783 # preloaded symbol tables.
16784 extract_expsyms_cmds=
16785 # Just being paranoid about ensuring that cc_basename is set.
16786 for cc_temp in $compiler""; do
16787 case $cc_temp in
16788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16790 \-*) ;;
16791 *) break;;
16792 esac
16793 done
16794 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16795
16796 case $host_os in
16797 cygwin* | mingw* | pw32*)
16798 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16799 # When not using gcc, we currently assume that we are using
16800 # Microsoft Visual C++.
16801 if test "$GCC" != yes; then
16802 with_gnu_ld=no
16803 fi
16804 ;;
16805 interix*)
16806 # we just hope/assume this is gcc and not c89 (= MSVC++)
16807 with_gnu_ld=yes
16808 ;;
16809 openbsd*)
16810 with_gnu_ld=no
16811 ;;
16812 esac
16813
16814 ld_shlibs_GCJ=yes
16815 if test "$with_gnu_ld" = yes; then
16816 # If archive_cmds runs LD, not CC, wlarc should be empty
16817 wlarc='${wl}'
16818
16819 # Set some defaults for GNU ld with shared library support. These
16820 # are reset later if shared libraries are not supported. Putting them
16821 # here allows them to be overridden if necessary.
16822 runpath_var=LD_RUN_PATH
16823 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16824 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16825 # ancient GNU ld didn't support --whole-archive et. al.
16826 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16827 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16828 else
16829 whole_archive_flag_spec_GCJ=
16830 fi
16831 supports_anon_versioning=no
16832 case `$LD -v 2>/dev/null` in
16833 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16834 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16835 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16836 *\ 2.11.*) ;; # other 2.11 versions
16837 *) supports_anon_versioning=yes ;;
16838 esac
16839
16840 # See if GNU ld supports shared libraries.
16841 case $host_os in
16842 aix3* | aix4* | aix5*)
16843 # On AIX/PPC, the GNU linker is very broken
16844 if test "$host_cpu" != ia64; then
16845 ld_shlibs_GCJ=no
16846 cat <<EOF 1>&2
16847
16848 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16849 *** to be unable to reliably create shared libraries on AIX.
16850 *** Therefore, libtool is disabling shared libraries support. If you
16851 *** really care for shared libraries, you may want to modify your PATH
16852 *** so that a non-GNU linker is found, and then restart.
16853
16854 EOF
16855 fi
16856 ;;
16857
16858 amigaos*)
16859 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)'
16860 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16861 hardcode_minus_L_GCJ=yes
16862
16863 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16864 # that the semantics of dynamic libraries on AmigaOS, at least up
16865 # to version 4, is to share data among multiple programs linked
16866 # with the same dynamic library. Since this doesn't match the
16867 # behavior of shared libraries on other platforms, we can't use
16868 # them.
16869 ld_shlibs_GCJ=no
16870 ;;
16871
16872 beos*)
16873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16874 allow_undefined_flag_GCJ=unsupported
16875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16876 # support --undefined. This deserves some investigation. FIXME
16877 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16878 else
16879 ld_shlibs_GCJ=no
16880 fi
16881 ;;
16882
16883 cygwin* | mingw* | pw32*)
16884 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16885 # as there is no search path for DLLs.
16886 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16887 allow_undefined_flag_GCJ=unsupported
16888 always_export_symbols_GCJ=no
16889 enable_shared_with_static_runtimes_GCJ=yes
16890 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16891
16892 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16893 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16894 # If the export-symbols file already is a .def file (1st line
16895 # is EXPORTS), use it as is; otherwise, prepend...
16896 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16897 cp $export_symbols $output_objdir/$soname.def;
16898 else
16899 echo EXPORTS > $output_objdir/$soname.def;
16900 cat $export_symbols >> $output_objdir/$soname.def;
16901 fi~
16902 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16903 else
16904 ld_shlibs_GCJ=no
16905 fi
16906 ;;
16907
16908 interix3*)
16909 hardcode_direct_GCJ=no
16910 hardcode_shlibpath_var_GCJ=no
16911 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16912 export_dynamic_flag_spec_GCJ='${wl}-E'
16913 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16914 # Instead, shared libraries are loaded at an image base (0x10000000 by
16915 # default) and relocated if they conflict, which is a slow very memory
16916 # consuming and fragmenting process. To avoid this, we pick a random,
16917 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16918 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16919 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'
16920 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'
16921 ;;
16922
16923 linux*)
16924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16925 tmp_addflag=
16926 case $cc_basename,$host_cpu in
16927 pgcc*) # Portland Group C compiler
16928 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'
16929 tmp_addflag=' $pic_flag'
16930 ;;
16931 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16932 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'
16933 tmp_addflag=' $pic_flag -Mnomain' ;;
16934 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16935 tmp_addflag=' -i_dynamic' ;;
16936 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16937 tmp_addflag=' -i_dynamic -nofor_main' ;;
16938 ifc* | ifort*) # Intel Fortran compiler
16939 tmp_addflag=' -nofor_main' ;;
16940 esac
16941 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16942
16943 if test $supports_anon_versioning = yes; then
16944 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16945 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16946 $echo "local: *; };" >> $output_objdir/$libname.ver~
16947 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16948 fi
16949 else
16950 ld_shlibs_GCJ=no
16951 fi
16952 ;;
16953
16954 netbsd*)
16955 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16956 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16957 wlarc=
16958 else
16959 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16960 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16961 fi
16962 ;;
16963
16964 solaris*)
16965 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16966 ld_shlibs_GCJ=no
16967 cat <<EOF 1>&2
16968
16969 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16970 *** create shared libraries on Solaris systems. Therefore, libtool
16971 *** is disabling shared libraries support. We urge you to upgrade GNU
16972 *** binutils to release 2.9.1 or newer. Another option is to modify
16973 *** your PATH or compiler configuration so that the native linker is
16974 *** used, and then restart.
16975
16976 EOF
16977 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16978 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16979 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16980 else
16981 ld_shlibs_GCJ=no
16982 fi
16983 ;;
16984
16985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16986 case `$LD -v 2>&1` in
16987 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16988 ld_shlibs_GCJ=no
16989 cat <<_LT_EOF 1>&2
16990
16991 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16992 *** reliably create shared libraries on SCO systems. Therefore, libtool
16993 *** is disabling shared libraries support. We urge you to upgrade GNU
16994 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16995 *** your PATH or compiler configuration so that the native linker is
16996 *** used, and then restart.
16997
16998 _LT_EOF
16999 ;;
17000 *)
17001 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17002 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17003 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17004 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17005 else
17006 ld_shlibs_GCJ=no
17007 fi
17008 ;;
17009 esac
17010 ;;
17011
17012 sunos4*)
17013 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17014 wlarc=
17015 hardcode_direct_GCJ=yes
17016 hardcode_shlibpath_var_GCJ=no
17017 ;;
17018
17019 *)
17020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17021 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17022 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17023 else
17024 ld_shlibs_GCJ=no
17025 fi
17026 ;;
17027 esac
17028
17029 if test "$ld_shlibs_GCJ" = no; then
17030 runpath_var=
17031 hardcode_libdir_flag_spec_GCJ=
17032 export_dynamic_flag_spec_GCJ=
17033 whole_archive_flag_spec_GCJ=
17034 fi
17035 else
17036 # PORTME fill in a description of your system's linker (not GNU ld)
17037 case $host_os in
17038 aix3*)
17039 allow_undefined_flag_GCJ=unsupported
17040 always_export_symbols_GCJ=yes
17041 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'
17042 # Note: this linker hardcodes the directories in LIBPATH if there
17043 # are no directories specified by -L.
17044 hardcode_minus_L_GCJ=yes
17045 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17046 # Neither direct hardcoding nor static linking is supported with a
17047 # broken collect2.
17048 hardcode_direct_GCJ=unsupported
17049 fi
17050 ;;
17051
17052 aix4* | aix5*)
17053 if test "$host_cpu" = ia64; then
17054 # On IA64, the linker does run time linking by default, so we don't
17055 # have to do anything special.
17056 aix_use_runtimelinking=no
17057 exp_sym_flag='-Bexport'
17058 no_entry_flag=""
17059 else
17060 # If we're using GNU nm, then we don't want the "-C" option.
17061 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17062 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17063 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'
17064 else
17065 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'
17066 fi
17067 aix_use_runtimelinking=no
17068
17069 # Test if we are trying to use run time linking or normal
17070 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17071 # need to do runtime linking.
17072 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17073 for ld_flag in $LDFLAGS; do
17074 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17075 aix_use_runtimelinking=yes
17076 break
17077 fi
17078 done
17079 ;;
17080 esac
17081
17082 exp_sym_flag='-bexport'
17083 no_entry_flag='-bnoentry'
17084 fi
17085
17086 # When large executables or shared objects are built, AIX ld can
17087 # have problems creating the table of contents. If linking a library
17088 # or program results in "error TOC overflow" add -mminimal-toc to
17089 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17090 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17091
17092 archive_cmds_GCJ=''
17093 hardcode_direct_GCJ=yes
17094 hardcode_libdir_separator_GCJ=':'
17095 link_all_deplibs_GCJ=yes
17096
17097 if test "$GCC" = yes; then
17098 case $host_os in aix4.[012]|aix4.[012].*)
17099 # We only want to do this on AIX 4.2 and lower, the check
17100 # below for broken collect2 doesn't work under 4.3+
17101 collect2name=`${CC} -print-prog-name=collect2`
17102 if test -f "$collect2name" && \
17103 strings "$collect2name" | grep resolve_lib_name >/dev/null
17104 then
17105 # We have reworked collect2
17106 hardcode_direct_GCJ=yes
17107 else
17108 # We have old collect2
17109 hardcode_direct_GCJ=unsupported
17110 # It fails to find uninstalled libraries when the uninstalled
17111 # path is not listed in the libpath. Setting hardcode_minus_L
17112 # to unsupported forces relinking
17113 hardcode_minus_L_GCJ=yes
17114 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17115 hardcode_libdir_separator_GCJ=
17116 fi
17117 ;;
17118 esac
17119 shared_flag='-shared'
17120 if test "$aix_use_runtimelinking" = yes; then
17121 shared_flag="$shared_flag "'${wl}-G'
17122 fi
17123 else
17124 # not using gcc
17125 if test "$host_cpu" = ia64; then
17126 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17127 # chokes on -Wl,-G. The following line is correct:
17128 shared_flag='-G'
17129 else
17130 if test "$aix_use_runtimelinking" = yes; then
17131 shared_flag='${wl}-G'
17132 else
17133 shared_flag='${wl}-bM:SRE'
17134 fi
17135 fi
17136 fi
17137
17138 # It seems that -bexpall does not export symbols beginning with
17139 # underscore (_), so it is better to generate a list of symbols to export.
17140 always_export_symbols_GCJ=yes
17141 if test "$aix_use_runtimelinking" = yes; then
17142 # Warning - without using the other runtime loading flags (-brtl),
17143 # -berok will link without error, but may produce a broken library.
17144 allow_undefined_flag_GCJ='-berok'
17145 # Determine the default libpath from the value encoded in an empty executable.
17146 cat >conftest.$ac_ext <<_ACEOF
17147 /* confdefs.h. */
17148 _ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17152
17153 int
17154 main ()
17155 {
17156
17157 ;
17158 return 0;
17159 }
17160 _ACEOF
17161 rm -f conftest.$ac_objext conftest$ac_exeext
17162 if { (ac_try="$ac_link"
17163 case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166 esac
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_link") 2>conftest.er1
17169 ac_status=$?
17170 grep -v '^ *+' conftest.er1 >conftest.err
17171 rm -f conftest.er1
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } && {
17175 test -z "$ac_c_werror_flag" ||
17176 test ! -s conftest.err
17177 } && test -s conftest$ac_exeext &&
17178 $as_test_x conftest$ac_exeext; then
17179
17180 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17181 }'`
17182 # Check for a 64-bit object if we didn't find anything.
17183 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; }
17184 }'`; fi
17185 else
17186 echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17188
17189
17190 fi
17191
17192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17193 conftest$ac_exeext conftest.$ac_ext
17194 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17195
17196 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17197 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"
17198 else
17199 if test "$host_cpu" = ia64; then
17200 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17201 allow_undefined_flag_GCJ="-z nodefs"
17202 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"
17203 else
17204 # Determine the default libpath from the value encoded in an empty executable.
17205 cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h. */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17211
17212 int
17213 main ()
17214 {
17215
17216 ;
17217 return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest.$ac_objext conftest$ac_exeext
17221 if { (ac_try="$ac_link"
17222 case "(($ac_try" in
17223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224 *) ac_try_echo=$ac_try;;
17225 esac
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227 (eval "$ac_link") 2>conftest.er1
17228 ac_status=$?
17229 grep -v '^ *+' conftest.er1 >conftest.err
17230 rm -f conftest.er1
17231 cat conftest.err >&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } && {
17234 test -z "$ac_c_werror_flag" ||
17235 test ! -s conftest.err
17236 } && test -s conftest$ac_exeext &&
17237 $as_test_x conftest$ac_exeext; then
17238
17239 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17240 }'`
17241 # Check for a 64-bit object if we didn't find anything.
17242 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; }
17243 }'`; fi
17244 else
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248
17249 fi
17250
17251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17252 conftest$ac_exeext conftest.$ac_ext
17253 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17254
17255 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17256 # Warning - without using the other run time loading flags,
17257 # -berok will link without error, but may produce a broken library.
17258 no_undefined_flag_GCJ=' ${wl}-bernotok'
17259 allow_undefined_flag_GCJ=' ${wl}-berok'
17260 # Exported symbols can be pulled into shared objects from archives
17261 whole_archive_flag_spec_GCJ='$convenience'
17262 archive_cmds_need_lc_GCJ=yes
17263 # This is similar to how AIX traditionally builds its shared libraries.
17264 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'
17265 fi
17266 fi
17267 ;;
17268
17269 amigaos*)
17270 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)'
17271 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17272 hardcode_minus_L_GCJ=yes
17273 # see comment about different semantics on the GNU ld section
17274 ld_shlibs_GCJ=no
17275 ;;
17276
17277 bsdi[45]*)
17278 export_dynamic_flag_spec_GCJ=-rdynamic
17279 ;;
17280
17281 cygwin* | mingw* | pw32*)
17282 # When not using gcc, we currently assume that we are using
17283 # Microsoft Visual C++.
17284 # hardcode_libdir_flag_spec is actually meaningless, as there is
17285 # no search path for DLLs.
17286 hardcode_libdir_flag_spec_GCJ=' '
17287 allow_undefined_flag_GCJ=unsupported
17288 # Tell ltmain to make .lib files, not .a files.
17289 libext=lib
17290 # Tell ltmain to make .dll files, not .so files.
17291 shrext_cmds=".dll"
17292 # FIXME: Setting linknames here is a bad hack.
17293 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17294 # The linker will automatically build a .lib file if we build a DLL.
17295 old_archive_From_new_cmds_GCJ='true'
17296 # FIXME: Should let the user specify the lib program.
17297 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17298 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17299 enable_shared_with_static_runtimes_GCJ=yes
17300 ;;
17301
17302 darwin* | rhapsody*)
17303 case $host_os in
17304 rhapsody* | darwin1.[012])
17305 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17306 ;;
17307 *) # Darwin 1.3 on
17308 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17309 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17310 else
17311 case ${MACOSX_DEPLOYMENT_TARGET} in
17312 10.[012])
17313 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17314 ;;
17315 10.*)
17316 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17317 ;;
17318 esac
17319 fi
17320 ;;
17321 esac
17322 archive_cmds_need_lc_GCJ=no
17323 hardcode_direct_GCJ=no
17324 hardcode_automatic_GCJ=yes
17325 hardcode_shlibpath_var_GCJ=unsupported
17326 whole_archive_flag_spec_GCJ=''
17327 link_all_deplibs_GCJ=yes
17328 if test "$GCC" = yes ; then
17329 output_verbose_link_cmd='echo'
17330 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17331 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17332 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17333 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}'
17334 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}'
17335 else
17336 case $cc_basename in
17337 xlc*)
17338 output_verbose_link_cmd='echo'
17339 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17340 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17341 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17342 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}'
17343 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}'
17344 ;;
17345 *)
17346 ld_shlibs_GCJ=no
17347 ;;
17348 esac
17349 fi
17350 ;;
17351
17352 dgux*)
17353 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17354 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17355 hardcode_shlibpath_var_GCJ=no
17356 ;;
17357
17358 freebsd1*)
17359 ld_shlibs_GCJ=no
17360 ;;
17361
17362 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17363 # support. Future versions do this automatically, but an explicit c++rt0.o
17364 # does not break anything, and helps significantly (at the cost of a little
17365 # extra space).
17366 freebsd2.2*)
17367 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17368 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17369 hardcode_direct_GCJ=yes
17370 hardcode_shlibpath_var_GCJ=no
17371 ;;
17372
17373 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17374 freebsd2*)
17375 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17376 hardcode_direct_GCJ=yes
17377 hardcode_minus_L_GCJ=yes
17378 hardcode_shlibpath_var_GCJ=no
17379 ;;
17380
17381 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17382 freebsd* | kfreebsd*-gnu | dragonfly*)
17383 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17384 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17385 hardcode_direct_GCJ=yes
17386 hardcode_shlibpath_var_GCJ=no
17387 ;;
17388
17389 hpux9*)
17390 if test "$GCC" = yes; then
17391 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'
17392 else
17393 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'
17394 fi
17395 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17396 hardcode_libdir_separator_GCJ=:
17397 hardcode_direct_GCJ=yes
17398
17399 # hardcode_minus_L: Not really in the search PATH,
17400 # but as the default location of the library.
17401 hardcode_minus_L_GCJ=yes
17402 export_dynamic_flag_spec_GCJ='${wl}-E'
17403 ;;
17404
17405 hpux10*)
17406 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17407 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17408 else
17409 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17410 fi
17411 if test "$with_gnu_ld" = no; then
17412 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17413 hardcode_libdir_separator_GCJ=:
17414
17415 hardcode_direct_GCJ=yes
17416 export_dynamic_flag_spec_GCJ='${wl}-E'
17417
17418 # hardcode_minus_L: Not really in the search PATH,
17419 # but as the default location of the library.
17420 hardcode_minus_L_GCJ=yes
17421 fi
17422 ;;
17423
17424 hpux11*)
17425 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17426 case $host_cpu in
17427 hppa*64*)
17428 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17429 ;;
17430 ia64*)
17431 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17432 ;;
17433 *)
17434 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17435 ;;
17436 esac
17437 else
17438 case $host_cpu in
17439 hppa*64*)
17440 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17441 ;;
17442 ia64*)
17443 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17444 ;;
17445 *)
17446 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17447 ;;
17448 esac
17449 fi
17450 if test "$with_gnu_ld" = no; then
17451 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17452 hardcode_libdir_separator_GCJ=:
17453
17454 case $host_cpu in
17455 hppa*64*|ia64*)
17456 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17457 hardcode_direct_GCJ=no
17458 hardcode_shlibpath_var_GCJ=no
17459 ;;
17460 *)
17461 hardcode_direct_GCJ=yes
17462 export_dynamic_flag_spec_GCJ='${wl}-E'
17463
17464 # hardcode_minus_L: Not really in the search PATH,
17465 # but as the default location of the library.
17466 hardcode_minus_L_GCJ=yes
17467 ;;
17468 esac
17469 fi
17470 ;;
17471
17472 irix5* | irix6* | nonstopux*)
17473 if test "$GCC" = yes; then
17474 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'
17475 else
17476 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'
17477 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17478 fi
17479 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17480 hardcode_libdir_separator_GCJ=:
17481 link_all_deplibs_GCJ=yes
17482 ;;
17483
17484 netbsd*)
17485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17486 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17487 else
17488 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17489 fi
17490 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17491 hardcode_direct_GCJ=yes
17492 hardcode_shlibpath_var_GCJ=no
17493 ;;
17494
17495 newsos6)
17496 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17497 hardcode_direct_GCJ=yes
17498 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17499 hardcode_libdir_separator_GCJ=:
17500 hardcode_shlibpath_var_GCJ=no
17501 ;;
17502
17503 openbsd*)
17504 hardcode_direct_GCJ=yes
17505 hardcode_shlibpath_var_GCJ=no
17506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17507 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17508 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17510 export_dynamic_flag_spec_GCJ='${wl}-E'
17511 else
17512 case $host_os in
17513 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17514 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17515 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17516 ;;
17517 *)
17518 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17519 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17520 ;;
17521 esac
17522 fi
17523 ;;
17524
17525 os2*)
17526 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17527 hardcode_minus_L_GCJ=yes
17528 allow_undefined_flag_GCJ=unsupported
17529 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'
17530 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17531 ;;
17532
17533 osf3*)
17534 if test "$GCC" = yes; then
17535 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17536 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'
17537 else
17538 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17539 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'
17540 fi
17541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17542 hardcode_libdir_separator_GCJ=:
17543 ;;
17544
17545 osf4* | osf5*) # as osf3* with the addition of -msym flag
17546 if test "$GCC" = yes; then
17547 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17548 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'
17549 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17550 else
17551 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17552 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'
17553 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~
17554 $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'
17555
17556 # Both c and cxx compiler support -rpath directly
17557 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17558 fi
17559 hardcode_libdir_separator_GCJ=:
17560 ;;
17561
17562 solaris*)
17563 no_undefined_flag_GCJ=' -z text'
17564 if test "$GCC" = yes; then
17565 wlarc='${wl}'
17566 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17567 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17568 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17569 else
17570 wlarc=''
17571 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17572 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17573 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17574 fi
17575 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17576 hardcode_shlibpath_var_GCJ=no
17577 case $host_os in
17578 solaris2.[0-5] | solaris2.[0-5].*) ;;
17579 *)
17580 # The compiler driver will combine linker options so we
17581 # cannot just pass the convience library names through
17582 # without $wl, iff we do not link with $LD.
17583 # Luckily, gcc supports the same syntax we need for Sun Studio.
17584 # Supported since Solaris 2.6 (maybe 2.5.1?)
17585 case $wlarc in
17586 '')
17587 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17588 *)
17589 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' ;;
17590 esac ;;
17591 esac
17592 link_all_deplibs_GCJ=yes
17593 ;;
17594
17595 sunos4*)
17596 if test "x$host_vendor" = xsequent; then
17597 # Use $CC to link under sequent, because it throws in some extra .o
17598 # files that make .init and .fini sections work.
17599 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17600 else
17601 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17602 fi
17603 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17604 hardcode_direct_GCJ=yes
17605 hardcode_minus_L_GCJ=yes
17606 hardcode_shlibpath_var_GCJ=no
17607 ;;
17608
17609 sysv4)
17610 case $host_vendor in
17611 sni)
17612 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17613 hardcode_direct_GCJ=yes # is this really true???
17614 ;;
17615 siemens)
17616 ## LD is ld it makes a PLAMLIB
17617 ## CC just makes a GrossModule.
17618 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17619 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17620 hardcode_direct_GCJ=no
17621 ;;
17622 motorola)
17623 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17624 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17625 ;;
17626 esac
17627 runpath_var='LD_RUN_PATH'
17628 hardcode_shlibpath_var_GCJ=no
17629 ;;
17630
17631 sysv4.3*)
17632 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17633 hardcode_shlibpath_var_GCJ=no
17634 export_dynamic_flag_spec_GCJ='-Bexport'
17635 ;;
17636
17637 sysv4*MP*)
17638 if test -d /usr/nec; then
17639 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17640 hardcode_shlibpath_var_GCJ=no
17641 runpath_var=LD_RUN_PATH
17642 hardcode_runpath_var=yes
17643 ld_shlibs_GCJ=yes
17644 fi
17645 ;;
17646
17647 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17648 no_undefined_flag_GCJ='${wl}-z,text'
17649 archive_cmds_need_lc_GCJ=no
17650 hardcode_shlibpath_var_GCJ=no
17651 runpath_var='LD_RUN_PATH'
17652
17653 if test "$GCC" = yes; then
17654 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17655 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17656 else
17657 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17658 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17659 fi
17660 ;;
17661
17662 sysv5* | sco3.2v5* | sco5v6*)
17663 # Note: We can NOT use -z defs as we might desire, because we do not
17664 # link with -lc, and that would cause any symbols used from libc to
17665 # always be unresolved, which means just about no library would
17666 # ever link correctly. If we're not using GNU ld we use -z text
17667 # though, which does catch some bad symbols but isn't as heavy-handed
17668 # as -z defs.
17669 no_undefined_flag_GCJ='${wl}-z,text'
17670 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17671 archive_cmds_need_lc_GCJ=no
17672 hardcode_shlibpath_var_GCJ=no
17673 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17674 hardcode_libdir_separator_GCJ=':'
17675 link_all_deplibs_GCJ=yes
17676 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17677 runpath_var='LD_RUN_PATH'
17678
17679 if test "$GCC" = yes; then
17680 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17681 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17682 else
17683 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17684 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17685 fi
17686 ;;
17687
17688 uts4*)
17689 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17690 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17691 hardcode_shlibpath_var_GCJ=no
17692 ;;
17693
17694 *)
17695 ld_shlibs_GCJ=no
17696 ;;
17697 esac
17698 fi
17699
17700 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17701 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17702 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17703
17704 #
17705 # Do we need to explicitly link libc?
17706 #
17707 case "x$archive_cmds_need_lc_GCJ" in
17708 x|xyes)
17709 # Assume -lc should be added
17710 archive_cmds_need_lc_GCJ=yes
17711
17712 if test "$enable_shared" = yes && test "$GCC" = yes; then
17713 case $archive_cmds_GCJ in
17714 *'~'*)
17715 # FIXME: we may have to deal with multi-command sequences.
17716 ;;
17717 '$CC '*)
17718 # Test whether the compiler implicitly links with -lc since on some
17719 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17720 # to ld, don't add -lc before -lgcc.
17721 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17722 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17723 $rm conftest*
17724 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17725
17726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17727 (eval $ac_compile) 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } 2>conftest.err; then
17731 soname=conftest
17732 lib=conftest
17733 libobjs=conftest.$ac_objext
17734 deplibs=
17735 wl=$lt_prog_compiler_wl_GCJ
17736 pic_flag=$lt_prog_compiler_pic_GCJ
17737 compiler_flags=-v
17738 linker_flags=-v
17739 verstring=
17740 output_objdir=.
17741 libname=conftest
17742 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17743 allow_undefined_flag_GCJ=
17744 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17745 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }
17749 then
17750 archive_cmds_need_lc_GCJ=no
17751 else
17752 archive_cmds_need_lc_GCJ=yes
17753 fi
17754 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17755 else
17756 cat conftest.err 1>&5
17757 fi
17758 $rm conftest*
17759 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17760 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17761 ;;
17762 esac
17763 fi
17764 ;;
17765 esac
17766
17767 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17768 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17769 library_names_spec=
17770 libname_spec='lib$name'
17771 soname_spec=
17772 shrext_cmds=".so"
17773 postinstall_cmds=
17774 postuninstall_cmds=
17775 finish_cmds=
17776 finish_eval=
17777 shlibpath_var=
17778 shlibpath_overrides_runpath=unknown
17779 version_type=none
17780 dynamic_linker="$host_os ld.so"
17781 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17782 if test "$GCC" = yes; then
17783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17784 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17785 # if the path contains ";" then we assume it to be the separator
17786 # otherwise default to the standard path separator (i.e. ":") - it is
17787 # assumed that no part of a normal pathname contains ";" but that should
17788 # okay in the real world where ";" in dirpaths is itself problematic.
17789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17790 else
17791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17792 fi
17793 else
17794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17795 fi
17796 need_lib_prefix=unknown
17797 hardcode_into_libs=no
17798
17799 # when you set need_version to no, make sure it does not cause -set_version
17800 # flags to be left without arguments
17801 need_version=unknown
17802
17803 case $host_os in
17804 aix3*)
17805 version_type=linux
17806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17807 shlibpath_var=LIBPATH
17808
17809 # AIX 3 has no versioning support, so we append a major version to the name.
17810 soname_spec='${libname}${release}${shared_ext}$major'
17811 ;;
17812
17813 aix4* | aix5*)
17814 version_type=linux
17815 need_lib_prefix=no
17816 need_version=no
17817 hardcode_into_libs=yes
17818 if test "$host_cpu" = ia64; then
17819 # AIX 5 supports IA64
17820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17821 shlibpath_var=LD_LIBRARY_PATH
17822 else
17823 # With GCC up to 2.95.x, collect2 would create an import file
17824 # for dependence libraries. The import file would start with
17825 # the line `#! .'. This would cause the generated library to
17826 # depend on `.', always an invalid library. This was fixed in
17827 # development snapshots of GCC prior to 3.0.
17828 case $host_os in
17829 aix4 | aix4.[01] | aix4.[01].*)
17830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17831 echo ' yes '
17832 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17833 :
17834 else
17835 can_build_shared=no
17836 fi
17837 ;;
17838 esac
17839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17840 # soname into executable. Probably we can add versioning support to
17841 # collect2, so additional links can be useful in future.
17842 if test "$aix_use_runtimelinking" = yes; then
17843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17844 # instead of lib<name>.a to let people know that these are not
17845 # typical AIX shared libraries.
17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17847 else
17848 # We preserve .a as extension for shared libraries through AIX4.2
17849 # and later when we are not doing run time linking.
17850 library_names_spec='${libname}${release}.a $libname.a'
17851 soname_spec='${libname}${release}${shared_ext}$major'
17852 fi
17853 shlibpath_var=LIBPATH
17854 fi
17855 ;;
17856
17857 amigaos*)
17858 library_names_spec='$libname.ixlibrary $libname.a'
17859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17860 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'
17861 ;;
17862
17863 beos*)
17864 library_names_spec='${libname}${shared_ext}'
17865 dynamic_linker="$host_os ld.so"
17866 shlibpath_var=LIBRARY_PATH
17867 ;;
17868
17869 bsdi[45]*)
17870 version_type=linux
17871 need_version=no
17872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17873 soname_spec='${libname}${release}${shared_ext}$major'
17874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17875 shlibpath_var=LD_LIBRARY_PATH
17876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17878 # the default ld.so.conf also contains /usr/contrib/lib and
17879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17880 # libtool to hard-code these into programs
17881 ;;
17882
17883 cygwin* | mingw* | pw32*)
17884 version_type=windows
17885 shrext_cmds=".dll"
17886 need_version=no
17887 need_lib_prefix=no
17888
17889 case $GCC,$host_os in
17890 yes,cygwin* | yes,mingw* | yes,pw32*)
17891 library_names_spec='$libname.dll.a'
17892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17893 postinstall_cmds='base_file=`basename \${file}`~
17894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17895 dldir=$destdir/`dirname \$dlpath`~
17896 test -d \$dldir || mkdir -p \$dldir~
17897 $install_prog $dir/$dlname \$dldir/$dlname~
17898 chmod a+x \$dldir/$dlname'
17899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17900 dlpath=$dir/\$dldll~
17901 $rm \$dlpath'
17902 shlibpath_overrides_runpath=yes
17903
17904 case $host_os in
17905 cygwin*)
17906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17908 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17909 ;;
17910 mingw*)
17911 # MinGW DLLs use traditional 'lib' prefix
17912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17914 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17915 # It is most probably a Windows format PATH printed by
17916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17917 # path with ; separators, and with drive letters. We can handle the
17918 # drive letters (cygwin fileutils understands them), so leave them,
17919 # especially as we might pass files found there to a mingw objdump,
17920 # which wouldn't understand a cygwinified path. Ahh.
17921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17922 else
17923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17924 fi
17925 ;;
17926 pw32*)
17927 # pw32 DLLs use 'pw' prefix rather than 'lib'
17928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17929 ;;
17930 esac
17931 ;;
17932
17933 *)
17934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17935 ;;
17936 esac
17937 dynamic_linker='Win32 ld.exe'
17938 # FIXME: first we should search . and the directory the executable is in
17939 shlibpath_var=PATH
17940 ;;
17941
17942 darwin* | rhapsody*)
17943 dynamic_linker="$host_os dyld"
17944 version_type=darwin
17945 need_lib_prefix=no
17946 need_version=no
17947 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17948 soname_spec='${libname}${release}${major}$shared_ext'
17949 shlibpath_overrides_runpath=yes
17950 shlibpath_var=DYLD_LIBRARY_PATH
17951 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17952 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17953 if test "$GCC" = yes; then
17954 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"`
17955 else
17956 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17957 fi
17958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17959 ;;
17960
17961 dgux*)
17962 version_type=linux
17963 need_lib_prefix=no
17964 need_version=no
17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17966 soname_spec='${libname}${release}${shared_ext}$major'
17967 shlibpath_var=LD_LIBRARY_PATH
17968 ;;
17969
17970 freebsd1*)
17971 dynamic_linker=no
17972 ;;
17973
17974 kfreebsd*-gnu)
17975 version_type=linux
17976 need_lib_prefix=no
17977 need_version=no
17978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17979 soname_spec='${libname}${release}${shared_ext}$major'
17980 shlibpath_var=LD_LIBRARY_PATH
17981 shlibpath_overrides_runpath=no
17982 hardcode_into_libs=yes
17983 dynamic_linker='GNU ld.so'
17984 ;;
17985
17986 freebsd* | dragonfly*)
17987 # DragonFly does not have aout. When/if they implement a new
17988 # versioning mechanism, adjust this.
17989 if test -x /usr/bin/objformat; then
17990 objformat=`/usr/bin/objformat`
17991 else
17992 case $host_os in
17993 freebsd[123]*) objformat=aout ;;
17994 *) objformat=elf ;;
17995 esac
17996 fi
17997 version_type=freebsd-$objformat
17998 case $version_type in
17999 freebsd-elf*)
18000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18001 need_version=no
18002 need_lib_prefix=no
18003 ;;
18004 freebsd-*)
18005 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18006 need_version=yes
18007 ;;
18008 esac
18009 shlibpath_var=LD_LIBRARY_PATH
18010 case $host_os in
18011 freebsd2*)
18012 shlibpath_overrides_runpath=yes
18013 ;;
18014 freebsd3.[01]* | freebsdelf3.[01]*)
18015 shlibpath_overrides_runpath=yes
18016 hardcode_into_libs=yes
18017 ;;
18018 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18019 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18020 shlibpath_overrides_runpath=no
18021 hardcode_into_libs=yes
18022 ;;
18023 freebsd*) # from 4.6 on
18024 shlibpath_overrides_runpath=yes
18025 hardcode_into_libs=yes
18026 ;;
18027 esac
18028 ;;
18029
18030 gnu*)
18031 version_type=linux
18032 need_lib_prefix=no
18033 need_version=no
18034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18035 soname_spec='${libname}${release}${shared_ext}$major'
18036 shlibpath_var=LD_LIBRARY_PATH
18037 hardcode_into_libs=yes
18038 ;;
18039
18040 hpux9* | hpux10* | hpux11*)
18041 # Give a soname corresponding to the major version so that dld.sl refuses to
18042 # link against other versions.
18043 version_type=sunos
18044 need_lib_prefix=no
18045 need_version=no
18046 case $host_cpu in
18047 ia64*)
18048 shrext_cmds='.so'
18049 hardcode_into_libs=yes
18050 dynamic_linker="$host_os dld.so"
18051 shlibpath_var=LD_LIBRARY_PATH
18052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18054 soname_spec='${libname}${release}${shared_ext}$major'
18055 if test "X$HPUX_IA64_MODE" = X32; then
18056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18057 else
18058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18059 fi
18060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18061 ;;
18062 hppa*64*)
18063 shrext_cmds='.sl'
18064 hardcode_into_libs=yes
18065 dynamic_linker="$host_os dld.sl"
18066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18069 soname_spec='${libname}${release}${shared_ext}$major'
18070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18072 ;;
18073 *)
18074 shrext_cmds='.sl'
18075 dynamic_linker="$host_os dld.sl"
18076 shlibpath_var=SHLIB_PATH
18077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18079 soname_spec='${libname}${release}${shared_ext}$major'
18080 ;;
18081 esac
18082 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18083 postinstall_cmds='chmod 555 $lib'
18084 ;;
18085
18086 interix3*)
18087 version_type=linux
18088 need_lib_prefix=no
18089 need_version=no
18090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18091 soname_spec='${libname}${release}${shared_ext}$major'
18092 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18093 shlibpath_var=LD_LIBRARY_PATH
18094 shlibpath_overrides_runpath=no
18095 hardcode_into_libs=yes
18096 ;;
18097
18098 irix5* | irix6* | nonstopux*)
18099 case $host_os in
18100 nonstopux*) version_type=nonstopux ;;
18101 *)
18102 if test "$lt_cv_prog_gnu_ld" = yes; then
18103 version_type=linux
18104 else
18105 version_type=irix
18106 fi ;;
18107 esac
18108 need_lib_prefix=no
18109 need_version=no
18110 soname_spec='${libname}${release}${shared_ext}$major'
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18112 case $host_os in
18113 irix5* | nonstopux*)
18114 libsuff= shlibsuff=
18115 ;;
18116 *)
18117 case $LD in # libtool.m4 will add one of these switches to LD
18118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18119 libsuff= shlibsuff= libmagic=32-bit;;
18120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18121 libsuff=32 shlibsuff=N32 libmagic=N32;;
18122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18123 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18124 *) libsuff= shlibsuff= libmagic=never-match;;
18125 esac
18126 ;;
18127 esac
18128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18129 shlibpath_overrides_runpath=no
18130 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18131 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18132 hardcode_into_libs=yes
18133 ;;
18134
18135 # No shared lib support for Linux oldld, aout, or coff.
18136 linux*oldld* | linux*aout* | linux*coff*)
18137 dynamic_linker=no
18138 ;;
18139
18140 # This must be Linux ELF.
18141 linux*)
18142 version_type=linux
18143 need_lib_prefix=no
18144 need_version=no
18145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18146 soname_spec='${libname}${release}${shared_ext}$major'
18147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18148 shlibpath_var=LD_LIBRARY_PATH
18149 shlibpath_overrides_runpath=no
18150 # This implies no fast_install, which is unacceptable.
18151 # Some rework will be needed to allow for fast_install
18152 # before this can be enabled.
18153 hardcode_into_libs=yes
18154
18155 # find out which ABI we are using
18156 libsuff=
18157 case "$host_cpu" in
18158 x86_64*|s390x*|powerpc64*)
18159 echo '#line 18159 "configure"' > conftest.$ac_ext
18160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18161 (eval $ac_compile) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; then
18165 case `/usr/bin/file conftest.$ac_objext` in
18166 *64-bit*)
18167 libsuff=64
18168 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18169 ;;
18170 esac
18171 fi
18172 rm -rf conftest*
18173 ;;
18174 esac
18175
18176 # Append ld.so.conf contents to the search path
18177 if test -f /etc/ld.so.conf; then
18178 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' ' '`
18179 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18180 fi
18181
18182 # We used to test for /lib/ld.so.1 and disable shared libraries on
18183 # powerpc, because MkLinux only supported shared libraries with the
18184 # GNU dynamic linker. Since this was broken with cross compilers,
18185 # most powerpc-linux boxes support dynamic linking these days and
18186 # people can always --disable-shared, the test was removed, and we
18187 # assume the GNU/Linux dynamic linker is in use.
18188 dynamic_linker='GNU/Linux ld.so'
18189 ;;
18190
18191 knetbsd*-gnu)
18192 version_type=linux
18193 need_lib_prefix=no
18194 need_version=no
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 shlibpath_var=LD_LIBRARY_PATH
18198 shlibpath_overrides_runpath=no
18199 hardcode_into_libs=yes
18200 dynamic_linker='GNU ld.so'
18201 ;;
18202
18203 netbsd*)
18204 version_type=sunos
18205 need_lib_prefix=no
18206 need_version=no
18207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18210 dynamic_linker='NetBSD (a.out) ld.so'
18211 else
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18213 soname_spec='${libname}${release}${shared_ext}$major'
18214 dynamic_linker='NetBSD ld.elf_so'
18215 fi
18216 shlibpath_var=LD_LIBRARY_PATH
18217 shlibpath_overrides_runpath=yes
18218 hardcode_into_libs=yes
18219 ;;
18220
18221 newsos6)
18222 version_type=linux
18223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224 shlibpath_var=LD_LIBRARY_PATH
18225 shlibpath_overrides_runpath=yes
18226 ;;
18227
18228 nto-qnx*)
18229 version_type=linux
18230 need_lib_prefix=no
18231 need_version=no
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18233 soname_spec='${libname}${release}${shared_ext}$major'
18234 shlibpath_var=LD_LIBRARY_PATH
18235 shlibpath_overrides_runpath=yes
18236 ;;
18237
18238 openbsd*)
18239 version_type=sunos
18240 sys_lib_dlsearch_path_spec="/usr/lib"
18241 need_lib_prefix=no
18242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18243 case $host_os in
18244 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18245 *) need_version=no ;;
18246 esac
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18249 shlibpath_var=LD_LIBRARY_PATH
18250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18251 case $host_os in
18252 openbsd2.[89] | openbsd2.[89].*)
18253 shlibpath_overrides_runpath=no
18254 ;;
18255 *)
18256 shlibpath_overrides_runpath=yes
18257 ;;
18258 esac
18259 else
18260 shlibpath_overrides_runpath=yes
18261 fi
18262 ;;
18263
18264 os2*)
18265 libname_spec='$name'
18266 shrext_cmds=".dll"
18267 need_lib_prefix=no
18268 library_names_spec='$libname${shared_ext} $libname.a'
18269 dynamic_linker='OS/2 ld.exe'
18270 shlibpath_var=LIBPATH
18271 ;;
18272
18273 osf3* | osf4* | osf5*)
18274 version_type=osf
18275 need_lib_prefix=no
18276 need_version=no
18277 soname_spec='${libname}${release}${shared_ext}$major'
18278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18279 shlibpath_var=LD_LIBRARY_PATH
18280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18282 ;;
18283
18284 solaris*)
18285 version_type=linux
18286 need_lib_prefix=no
18287 need_version=no
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289 soname_spec='${libname}${release}${shared_ext}$major'
18290 shlibpath_var=LD_LIBRARY_PATH
18291 shlibpath_overrides_runpath=yes
18292 hardcode_into_libs=yes
18293 # ldd complains unless libraries are executable
18294 postinstall_cmds='chmod +x $lib'
18295 ;;
18296
18297 sunos4*)
18298 version_type=sunos
18299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18301 shlibpath_var=LD_LIBRARY_PATH
18302 shlibpath_overrides_runpath=yes
18303 if test "$with_gnu_ld" = yes; then
18304 need_lib_prefix=no
18305 fi
18306 need_version=yes
18307 ;;
18308
18309 sysv4 | sysv4.3*)
18310 version_type=linux
18311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18312 soname_spec='${libname}${release}${shared_ext}$major'
18313 shlibpath_var=LD_LIBRARY_PATH
18314 case $host_vendor in
18315 sni)
18316 shlibpath_overrides_runpath=no
18317 need_lib_prefix=no
18318 export_dynamic_flag_spec='${wl}-Blargedynsym'
18319 runpath_var=LD_RUN_PATH
18320 ;;
18321 siemens)
18322 need_lib_prefix=no
18323 ;;
18324 motorola)
18325 need_lib_prefix=no
18326 need_version=no
18327 shlibpath_overrides_runpath=no
18328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18329 ;;
18330 esac
18331 ;;
18332
18333 sysv4*MP*)
18334 if test -d /usr/nec ;then
18335 version_type=linux
18336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18337 soname_spec='$libname${shared_ext}.$major'
18338 shlibpath_var=LD_LIBRARY_PATH
18339 fi
18340 ;;
18341
18342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18343 version_type=freebsd-elf
18344 need_lib_prefix=no
18345 need_version=no
18346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18347 soname_spec='${libname}${release}${shared_ext}$major'
18348 shlibpath_var=LD_LIBRARY_PATH
18349 hardcode_into_libs=yes
18350 if test "$with_gnu_ld" = yes; then
18351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18352 shlibpath_overrides_runpath=no
18353 else
18354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18355 shlibpath_overrides_runpath=yes
18356 case $host_os in
18357 sco3.2v5*)
18358 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18359 ;;
18360 esac
18361 fi
18362 sys_lib_dlsearch_path_spec='/usr/lib'
18363 ;;
18364
18365 uts4*)
18366 version_type=linux
18367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368 soname_spec='${libname}${release}${shared_ext}$major'
18369 shlibpath_var=LD_LIBRARY_PATH
18370 ;;
18371
18372 *)
18373 dynamic_linker=no
18374 ;;
18375 esac
18376 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18377 echo "${ECHO_T}$dynamic_linker" >&6; }
18378 test "$dynamic_linker" = no && can_build_shared=no
18379
18380 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18381 if test "$GCC" = yes; then
18382 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18383 fi
18384
18385 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18386 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18387 hardcode_action_GCJ=
18388 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18389 test -n "$runpath_var_GCJ" || \
18390 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18391
18392 # We can hardcode non-existant directories.
18393 if test "$hardcode_direct_GCJ" != no &&
18394 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18395 # have to relink, otherwise we might link with an installed library
18396 # when we should be linking with a yet-to-be-installed one
18397 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18398 test "$hardcode_minus_L_GCJ" != no; then
18399 # Linking always hardcodes the temporary library directory.
18400 hardcode_action_GCJ=relink
18401 else
18402 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18403 hardcode_action_GCJ=immediate
18404 fi
18405 else
18406 # We cannot hardcode anything, or else we can only hardcode existing
18407 # directories.
18408 hardcode_action_GCJ=unsupported
18409 fi
18410 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18411 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18412
18413 if test "$hardcode_action_GCJ" = relink; then
18414 # Fast installation is not supported
18415 enable_fast_install=no
18416 elif test "$shlibpath_overrides_runpath" = yes ||
18417 test "$enable_shared" = no; then
18418 # Fast installation is not necessary
18419 enable_fast_install=needless
18420 fi
18421
18422
18423 # The else clause should only fire when bootstrapping the
18424 # libtool distribution, otherwise you forgot to ship ltmain.sh
18425 # with your package, and you will get complaints that there are
18426 # no rules to generate ltmain.sh.
18427 if test -f "$ltmain"; then
18428 # See if we are running on zsh, and set the options which allow our commands through
18429 # without removal of \ escapes.
18430 if test -n "${ZSH_VERSION+set}" ; then
18431 setopt NO_GLOB_SUBST
18432 fi
18433 # Now quote all the things that may contain metacharacters while being
18434 # careful not to overquote the AC_SUBSTed values. We take copies of the
18435 # variables and quote the copies for generation of the libtool script.
18436 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18437 SED SHELL STRIP \
18438 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18439 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18440 deplibs_check_method reload_flag reload_cmds need_locks \
18441 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18442 lt_cv_sys_global_symbol_to_c_name_address \
18443 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18444 old_postinstall_cmds old_postuninstall_cmds \
18445 compiler_GCJ \
18446 CC_GCJ \
18447 LD_GCJ \
18448 lt_prog_compiler_wl_GCJ \
18449 lt_prog_compiler_pic_GCJ \
18450 lt_prog_compiler_static_GCJ \
18451 lt_prog_compiler_no_builtin_flag_GCJ \
18452 export_dynamic_flag_spec_GCJ \
18453 thread_safe_flag_spec_GCJ \
18454 whole_archive_flag_spec_GCJ \
18455 enable_shared_with_static_runtimes_GCJ \
18456 old_archive_cmds_GCJ \
18457 old_archive_from_new_cmds_GCJ \
18458 predep_objects_GCJ \
18459 postdep_objects_GCJ \
18460 predeps_GCJ \
18461 postdeps_GCJ \
18462 compiler_lib_search_path_GCJ \
18463 archive_cmds_GCJ \
18464 archive_expsym_cmds_GCJ \
18465 postinstall_cmds_GCJ \
18466 postuninstall_cmds_GCJ \
18467 old_archive_from_expsyms_cmds_GCJ \
18468 allow_undefined_flag_GCJ \
18469 no_undefined_flag_GCJ \
18470 export_symbols_cmds_GCJ \
18471 hardcode_libdir_flag_spec_GCJ \
18472 hardcode_libdir_flag_spec_ld_GCJ \
18473 hardcode_libdir_separator_GCJ \
18474 hardcode_automatic_GCJ \
18475 module_cmds_GCJ \
18476 module_expsym_cmds_GCJ \
18477 lt_cv_prog_compiler_c_o_GCJ \
18478 exclude_expsyms_GCJ \
18479 include_expsyms_GCJ; do
18480
18481 case $var in
18482 old_archive_cmds_GCJ | \
18483 old_archive_from_new_cmds_GCJ | \
18484 archive_cmds_GCJ | \
18485 archive_expsym_cmds_GCJ | \
18486 module_cmds_GCJ | \
18487 module_expsym_cmds_GCJ | \
18488 old_archive_from_expsyms_cmds_GCJ | \
18489 export_symbols_cmds_GCJ | \
18490 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18491 postinstall_cmds | postuninstall_cmds | \
18492 old_postinstall_cmds | old_postuninstall_cmds | \
18493 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18494 # Double-quote double-evaled strings.
18495 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18496 ;;
18497 *)
18498 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18499 ;;
18500 esac
18501 done
18502
18503 case $lt_echo in
18504 *'\$0 --fallback-echo"')
18505 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18506 ;;
18507 esac
18508
18509 cfgfile="$ofile"
18510
18511 cat <<__EOF__ >> "$cfgfile"
18512 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18513
18514 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18515
18516 # Shell to use when invoking shell scripts.
18517 SHELL=$lt_SHELL
18518
18519 # Whether or not to build shared libraries.
18520 build_libtool_libs=$enable_shared
18521
18522 # Whether or not to build static libraries.
18523 build_old_libs=$enable_static
18524
18525 # Whether or not to add -lc for building shared libraries.
18526 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18527
18528 # Whether or not to disallow shared libs when runtime libs are static
18529 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18530
18531 # Whether or not to optimize for fast installation.
18532 fast_install=$enable_fast_install
18533
18534 # The host system.
18535 host_alias=$host_alias
18536 host=$host
18537 host_os=$host_os
18538
18539 # The build system.
18540 build_alias=$build_alias
18541 build=$build
18542 build_os=$build_os
18543
18544 # An echo program that does not interpret backslashes.
18545 echo=$lt_echo
18546
18547 # The archiver.
18548 AR=$lt_AR
18549 AR_FLAGS=$lt_AR_FLAGS
18550
18551 # A C compiler.
18552 LTCC=$lt_LTCC
18553
18554 # LTCC compiler flags.
18555 LTCFLAGS=$lt_LTCFLAGS
18556
18557 # A language-specific compiler.
18558 CC=$lt_compiler_GCJ
18559
18560 # Is the compiler the GNU C compiler?
18561 with_gcc=$GCC_GCJ
18562
18563 # An ERE matcher.
18564 EGREP=$lt_EGREP
18565
18566 # The linker used to build libraries.
18567 LD=$lt_LD_GCJ
18568
18569 # Whether we need hard or soft links.
18570 LN_S=$lt_LN_S
18571
18572 # A BSD-compatible nm program.
18573 NM=$lt_NM
18574
18575 # A symbol stripping program
18576 STRIP=$lt_STRIP
18577
18578 # Used to examine libraries when file_magic_cmd begins "file"
18579 MAGIC_CMD=$MAGIC_CMD
18580
18581 # Used on cygwin: DLL creation program.
18582 DLLTOOL="$DLLTOOL"
18583
18584 # Used on cygwin: object dumper.
18585 OBJDUMP="$OBJDUMP"
18586
18587 # Used on cygwin: assembler.
18588 AS="$AS"
18589
18590 # The name of the directory that contains temporary libtool files.
18591 objdir=$objdir
18592
18593 # How to create reloadable object files.
18594 reload_flag=$lt_reload_flag
18595 reload_cmds=$lt_reload_cmds
18596
18597 # How to pass a linker flag through the compiler.
18598 wl=$lt_lt_prog_compiler_wl_GCJ
18599
18600 # Object file suffix (normally "o").
18601 objext="$ac_objext"
18602
18603 # Old archive suffix (normally "a").
18604 libext="$libext"
18605
18606 # Shared library suffix (normally ".so").
18607 shrext_cmds='$shrext_cmds'
18608
18609 # Executable file suffix (normally "").
18610 exeext="$exeext"
18611
18612 # Additional compiler flags for building library objects.
18613 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18614 pic_mode=$pic_mode
18615
18616 # What is the maximum length of a command?
18617 max_cmd_len=$lt_cv_sys_max_cmd_len
18618
18619 # Does compiler simultaneously support -c and -o options?
18620 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18621
18622 # Must we lock files when doing compilation?
18623 need_locks=$lt_need_locks
18624
18625 # Do we need the lib prefix for modules?
18626 need_lib_prefix=$need_lib_prefix
18627
18628 # Do we need a version for libraries?
18629 need_version=$need_version
18630
18631 # Whether dlopen is supported.
18632 dlopen_support=$enable_dlopen
18633
18634 # Whether dlopen of programs is supported.
18635 dlopen_self=$enable_dlopen_self
18636
18637 # Whether dlopen of statically linked programs is supported.
18638 dlopen_self_static=$enable_dlopen_self_static
18639
18640 # Compiler flag to prevent dynamic linking.
18641 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18642
18643 # Compiler flag to turn off builtin functions.
18644 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18645
18646 # Compiler flag to allow reflexive dlopens.
18647 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18648
18649 # Compiler flag to generate shared objects directly from archives.
18650 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18651
18652 # Compiler flag to generate thread-safe objects.
18653 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18654
18655 # Library versioning type.
18656 version_type=$version_type
18657
18658 # Format of library name prefix.
18659 libname_spec=$lt_libname_spec
18660
18661 # List of archive names. First name is the real one, the rest are links.
18662 # The last name is the one that the linker finds with -lNAME.
18663 library_names_spec=$lt_library_names_spec
18664
18665 # The coded name of the library, if different from the real name.
18666 soname_spec=$lt_soname_spec
18667
18668 # Commands used to build and install an old-style archive.
18669 RANLIB=$lt_RANLIB
18670 old_archive_cmds=$lt_old_archive_cmds_GCJ
18671 old_postinstall_cmds=$lt_old_postinstall_cmds
18672 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18673
18674 # Create an old-style archive from a shared archive.
18675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18676
18677 # Create a temporary old-style archive to link instead of a shared archive.
18678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18679
18680 # Commands used to build and install a shared archive.
18681 archive_cmds=$lt_archive_cmds_GCJ
18682 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18683 postinstall_cmds=$lt_postinstall_cmds
18684 postuninstall_cmds=$lt_postuninstall_cmds
18685
18686 # Commands used to build a loadable module (assumed same as above if empty)
18687 module_cmds=$lt_module_cmds_GCJ
18688 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18689
18690 # Commands to strip libraries.
18691 old_striplib=$lt_old_striplib
18692 striplib=$lt_striplib
18693
18694 # Dependencies to place before the objects being linked to create a
18695 # shared library.
18696 predep_objects=$lt_predep_objects_GCJ
18697
18698 # Dependencies to place after the objects being linked to create a
18699 # shared library.
18700 postdep_objects=$lt_postdep_objects_GCJ
18701
18702 # Dependencies to place before the objects being linked to create a
18703 # shared library.
18704 predeps=$lt_predeps_GCJ
18705
18706 # Dependencies to place after the objects being linked to create a
18707 # shared library.
18708 postdeps=$lt_postdeps_GCJ
18709
18710 # The library search path used internally by the compiler when linking
18711 # a shared library.
18712 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18713
18714 # Method to check whether dependent libraries are shared objects.
18715 deplibs_check_method=$lt_deplibs_check_method
18716
18717 # Command to use when deplibs_check_method == file_magic.
18718 file_magic_cmd=$lt_file_magic_cmd
18719
18720 # Flag that allows shared libraries with undefined symbols to be built.
18721 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18722
18723 # Flag that forces no undefined symbols.
18724 no_undefined_flag=$lt_no_undefined_flag_GCJ
18725
18726 # Commands used to finish a libtool library installation in a directory.
18727 finish_cmds=$lt_finish_cmds
18728
18729 # Same as above, but a single script fragment to be evaled but not shown.
18730 finish_eval=$lt_finish_eval
18731
18732 # Take the output of nm and produce a listing of raw symbols and C names.
18733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18734
18735 # Transform the output of nm in a proper C declaration
18736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18737
18738 # Transform the output of nm in a C name address pair
18739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18740
18741 # This is the shared library runtime path variable.
18742 runpath_var=$runpath_var
18743
18744 # This is the shared library path variable.
18745 shlibpath_var=$shlibpath_var
18746
18747 # Is shlibpath searched before the hard-coded library search path?
18748 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18749
18750 # How to hardcode a shared library path into an executable.
18751 hardcode_action=$hardcode_action_GCJ
18752
18753 # Whether we should hardcode library paths into libraries.
18754 hardcode_into_libs=$hardcode_into_libs
18755
18756 # Flag to hardcode \$libdir into a binary during linking.
18757 # This must work even if \$libdir does not exist.
18758 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18759
18760 # If ld is used when linking, flag to hardcode \$libdir into
18761 # a binary during linking. This must work even if \$libdir does
18762 # not exist.
18763 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18764
18765 # Whether we need a single -rpath flag with a separated argument.
18766 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18767
18768 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18769 # resulting binary.
18770 hardcode_direct=$hardcode_direct_GCJ
18771
18772 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18773 # resulting binary.
18774 hardcode_minus_L=$hardcode_minus_L_GCJ
18775
18776 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18777 # the resulting binary.
18778 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18779
18780 # Set to yes if building a shared library automatically hardcodes DIR into the library
18781 # and all subsequent libraries and executables linked against it.
18782 hardcode_automatic=$hardcode_automatic_GCJ
18783
18784 # Variables whose values should be saved in libtool wrapper scripts and
18785 # restored at relink time.
18786 variables_saved_for_relink="$variables_saved_for_relink"
18787
18788 # Whether libtool must link a program against all its dependency libraries.
18789 link_all_deplibs=$link_all_deplibs_GCJ
18790
18791 # Compile-time system search path for libraries
18792 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18793
18794 # Run-time system search path for libraries
18795 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18796
18797 # Fix the shell variable \$srcfile for the compiler.
18798 fix_srcfile_path="$fix_srcfile_path_GCJ"
18799
18800 # Set to yes if exported symbols are required.
18801 always_export_symbols=$always_export_symbols_GCJ
18802
18803 # The commands to list exported symbols.
18804 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18805
18806 # The commands to extract the exported symbol list from a shared archive.
18807 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18808
18809 # Symbols that should not be listed in the preloaded symbols.
18810 exclude_expsyms=$lt_exclude_expsyms_GCJ
18811
18812 # Symbols that must always be exported.
18813 include_expsyms=$lt_include_expsyms_GCJ
18814
18815 # ### END LIBTOOL TAG CONFIG: $tagname
18816
18817 __EOF__
18818
18819
18820 else
18821 # If there is no Makefile yet, we rely on a make rule to execute
18822 # `config.status --recheck' to rerun these tests and create the
18823 # libtool script then.
18824 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18825 if test -f "$ltmain_in"; then
18826 test -f Makefile && make "$ltmain"
18827 fi
18828 fi
18829
18830
18831 ac_ext=c
18832 ac_cpp='$CPP $CPPFLAGS'
18833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18836
18837 CC="$lt_save_CC"
18838
18839 else
18840 tagname=""
18841 fi
18842 ;;
18843
18844 RC)
18845
18846
18847 # Source file extension for RC test sources.
18848 ac_ext=rc
18849
18850 # Object file extension for compiled RC test sources.
18851 objext=o
18852 objext_RC=$objext
18853
18854 # Code to be used in simple compile tests
18855 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18856
18857 # Code to be used in simple link tests
18858 lt_simple_link_test_code="$lt_simple_compile_test_code"
18859
18860 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18861
18862 # If no C compiler was specified, use CC.
18863 LTCC=${LTCC-"$CC"}
18864
18865 # If no C compiler flags were specified, use CFLAGS.
18866 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18867
18868 # Allow CC to be a program name with arguments.
18869 compiler=$CC
18870
18871
18872 # save warnings/boilerplate of simple test code
18873 ac_outfile=conftest.$ac_objext
18874 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18875 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18876 _lt_compiler_boilerplate=`cat conftest.err`
18877 $rm conftest*
18878
18879 ac_outfile=conftest.$ac_objext
18880 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18881 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18882 _lt_linker_boilerplate=`cat conftest.err`
18883 $rm conftest*
18884
18885
18886 # Allow CC to be a program name with arguments.
18887 lt_save_CC="$CC"
18888 CC=${RC-"windres"}
18889 compiler=$CC
18890 compiler_RC=$CC
18891 for cc_temp in $compiler""; do
18892 case $cc_temp in
18893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18895 \-*) ;;
18896 *) break;;
18897 esac
18898 done
18899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18900
18901 lt_cv_prog_compiler_c_o_RC=yes
18902
18903 # The else clause should only fire when bootstrapping the
18904 # libtool distribution, otherwise you forgot to ship ltmain.sh
18905 # with your package, and you will get complaints that there are
18906 # no rules to generate ltmain.sh.
18907 if test -f "$ltmain"; then
18908 # See if we are running on zsh, and set the options which allow our commands through
18909 # without removal of \ escapes.
18910 if test -n "${ZSH_VERSION+set}" ; then
18911 setopt NO_GLOB_SUBST
18912 fi
18913 # Now quote all the things that may contain metacharacters while being
18914 # careful not to overquote the AC_SUBSTed values. We take copies of the
18915 # variables and quote the copies for generation of the libtool script.
18916 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18917 SED SHELL STRIP \
18918 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18919 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18920 deplibs_check_method reload_flag reload_cmds need_locks \
18921 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18922 lt_cv_sys_global_symbol_to_c_name_address \
18923 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18924 old_postinstall_cmds old_postuninstall_cmds \
18925 compiler_RC \
18926 CC_RC \
18927 LD_RC \
18928 lt_prog_compiler_wl_RC \
18929 lt_prog_compiler_pic_RC \
18930 lt_prog_compiler_static_RC \
18931 lt_prog_compiler_no_builtin_flag_RC \
18932 export_dynamic_flag_spec_RC \
18933 thread_safe_flag_spec_RC \
18934 whole_archive_flag_spec_RC \
18935 enable_shared_with_static_runtimes_RC \
18936 old_archive_cmds_RC \
18937 old_archive_from_new_cmds_RC \
18938 predep_objects_RC \
18939 postdep_objects_RC \
18940 predeps_RC \
18941 postdeps_RC \
18942 compiler_lib_search_path_RC \
18943 archive_cmds_RC \
18944 archive_expsym_cmds_RC \
18945 postinstall_cmds_RC \
18946 postuninstall_cmds_RC \
18947 old_archive_from_expsyms_cmds_RC \
18948 allow_undefined_flag_RC \
18949 no_undefined_flag_RC \
18950 export_symbols_cmds_RC \
18951 hardcode_libdir_flag_spec_RC \
18952 hardcode_libdir_flag_spec_ld_RC \
18953 hardcode_libdir_separator_RC \
18954 hardcode_automatic_RC \
18955 module_cmds_RC \
18956 module_expsym_cmds_RC \
18957 lt_cv_prog_compiler_c_o_RC \
18958 exclude_expsyms_RC \
18959 include_expsyms_RC; do
18960
18961 case $var in
18962 old_archive_cmds_RC | \
18963 old_archive_from_new_cmds_RC | \
18964 archive_cmds_RC | \
18965 archive_expsym_cmds_RC | \
18966 module_cmds_RC | \
18967 module_expsym_cmds_RC | \
18968 old_archive_from_expsyms_cmds_RC | \
18969 export_symbols_cmds_RC | \
18970 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18971 postinstall_cmds | postuninstall_cmds | \
18972 old_postinstall_cmds | old_postuninstall_cmds | \
18973 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18974 # Double-quote double-evaled strings.
18975 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18976 ;;
18977 *)
18978 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18979 ;;
18980 esac
18981 done
18982
18983 case $lt_echo in
18984 *'\$0 --fallback-echo"')
18985 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18986 ;;
18987 esac
18988
18989 cfgfile="$ofile"
18990
18991 cat <<__EOF__ >> "$cfgfile"
18992 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18993
18994 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18995
18996 # Shell to use when invoking shell scripts.
18997 SHELL=$lt_SHELL
18998
18999 # Whether or not to build shared libraries.
19000 build_libtool_libs=$enable_shared
19001
19002 # Whether or not to build static libraries.
19003 build_old_libs=$enable_static
19004
19005 # Whether or not to add -lc for building shared libraries.
19006 build_libtool_need_lc=$archive_cmds_need_lc_RC
19007
19008 # Whether or not to disallow shared libs when runtime libs are static
19009 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19010
19011 # Whether or not to optimize for fast installation.
19012 fast_install=$enable_fast_install
19013
19014 # The host system.
19015 host_alias=$host_alias
19016 host=$host
19017 host_os=$host_os
19018
19019 # The build system.
19020 build_alias=$build_alias
19021 build=$build
19022 build_os=$build_os
19023
19024 # An echo program that does not interpret backslashes.
19025 echo=$lt_echo
19026
19027 # The archiver.
19028 AR=$lt_AR
19029 AR_FLAGS=$lt_AR_FLAGS
19030
19031 # A C compiler.
19032 LTCC=$lt_LTCC
19033
19034 # LTCC compiler flags.
19035 LTCFLAGS=$lt_LTCFLAGS
19036
19037 # A language-specific compiler.
19038 CC=$lt_compiler_RC
19039
19040 # Is the compiler the GNU C compiler?
19041 with_gcc=$GCC_RC
19042
19043 # An ERE matcher.
19044 EGREP=$lt_EGREP
19045
19046 # The linker used to build libraries.
19047 LD=$lt_LD_RC
19048
19049 # Whether we need hard or soft links.
19050 LN_S=$lt_LN_S
19051
19052 # A BSD-compatible nm program.
19053 NM=$lt_NM
19054
19055 # A symbol stripping program
19056 STRIP=$lt_STRIP
19057
19058 # Used to examine libraries when file_magic_cmd begins "file"
19059 MAGIC_CMD=$MAGIC_CMD
19060
19061 # Used on cygwin: DLL creation program.
19062 DLLTOOL="$DLLTOOL"
19063
19064 # Used on cygwin: object dumper.
19065 OBJDUMP="$OBJDUMP"
19066
19067 # Used on cygwin: assembler.
19068 AS="$AS"
19069
19070 # The name of the directory that contains temporary libtool files.
19071 objdir=$objdir
19072
19073 # How to create reloadable object files.
19074 reload_flag=$lt_reload_flag
19075 reload_cmds=$lt_reload_cmds
19076
19077 # How to pass a linker flag through the compiler.
19078 wl=$lt_lt_prog_compiler_wl_RC
19079
19080 # Object file suffix (normally "o").
19081 objext="$ac_objext"
19082
19083 # Old archive suffix (normally "a").
19084 libext="$libext"
19085
19086 # Shared library suffix (normally ".so").
19087 shrext_cmds='$shrext_cmds'
19088
19089 # Executable file suffix (normally "").
19090 exeext="$exeext"
19091
19092 # Additional compiler flags for building library objects.
19093 pic_flag=$lt_lt_prog_compiler_pic_RC
19094 pic_mode=$pic_mode
19095
19096 # What is the maximum length of a command?
19097 max_cmd_len=$lt_cv_sys_max_cmd_len
19098
19099 # Does compiler simultaneously support -c and -o options?
19100 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19101
19102 # Must we lock files when doing compilation?
19103 need_locks=$lt_need_locks
19104
19105 # Do we need the lib prefix for modules?
19106 need_lib_prefix=$need_lib_prefix
19107
19108 # Do we need a version for libraries?
19109 need_version=$need_version
19110
19111 # Whether dlopen is supported.
19112 dlopen_support=$enable_dlopen
19113
19114 # Whether dlopen of programs is supported.
19115 dlopen_self=$enable_dlopen_self
19116
19117 # Whether dlopen of statically linked programs is supported.
19118 dlopen_self_static=$enable_dlopen_self_static
19119
19120 # Compiler flag to prevent dynamic linking.
19121 link_static_flag=$lt_lt_prog_compiler_static_RC
19122
19123 # Compiler flag to turn off builtin functions.
19124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19125
19126 # Compiler flag to allow reflexive dlopens.
19127 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19128
19129 # Compiler flag to generate shared objects directly from archives.
19130 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19131
19132 # Compiler flag to generate thread-safe objects.
19133 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19134
19135 # Library versioning type.
19136 version_type=$version_type
19137
19138 # Format of library name prefix.
19139 libname_spec=$lt_libname_spec
19140
19141 # List of archive names. First name is the real one, the rest are links.
19142 # The last name is the one that the linker finds with -lNAME.
19143 library_names_spec=$lt_library_names_spec
19144
19145 # The coded name of the library, if different from the real name.
19146 soname_spec=$lt_soname_spec
19147
19148 # Commands used to build and install an old-style archive.
19149 RANLIB=$lt_RANLIB
19150 old_archive_cmds=$lt_old_archive_cmds_RC
19151 old_postinstall_cmds=$lt_old_postinstall_cmds
19152 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19153
19154 # Create an old-style archive from a shared archive.
19155 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19156
19157 # Create a temporary old-style archive to link instead of a shared archive.
19158 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19159
19160 # Commands used to build and install a shared archive.
19161 archive_cmds=$lt_archive_cmds_RC
19162 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19163 postinstall_cmds=$lt_postinstall_cmds
19164 postuninstall_cmds=$lt_postuninstall_cmds
19165
19166 # Commands used to build a loadable module (assumed same as above if empty)
19167 module_cmds=$lt_module_cmds_RC
19168 module_expsym_cmds=$lt_module_expsym_cmds_RC
19169
19170 # Commands to strip libraries.
19171 old_striplib=$lt_old_striplib
19172 striplib=$lt_striplib
19173
19174 # Dependencies to place before the objects being linked to create a
19175 # shared library.
19176 predep_objects=$lt_predep_objects_RC
19177
19178 # Dependencies to place after the objects being linked to create a
19179 # shared library.
19180 postdep_objects=$lt_postdep_objects_RC
19181
19182 # Dependencies to place before the objects being linked to create a
19183 # shared library.
19184 predeps=$lt_predeps_RC
19185
19186 # Dependencies to place after the objects being linked to create a
19187 # shared library.
19188 postdeps=$lt_postdeps_RC
19189
19190 # The library search path used internally by the compiler when linking
19191 # a shared library.
19192 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19193
19194 # Method to check whether dependent libraries are shared objects.
19195 deplibs_check_method=$lt_deplibs_check_method
19196
19197 # Command to use when deplibs_check_method == file_magic.
19198 file_magic_cmd=$lt_file_magic_cmd
19199
19200 # Flag that allows shared libraries with undefined symbols to be built.
19201 allow_undefined_flag=$lt_allow_undefined_flag_RC
19202
19203 # Flag that forces no undefined symbols.
19204 no_undefined_flag=$lt_no_undefined_flag_RC
19205
19206 # Commands used to finish a libtool library installation in a directory.
19207 finish_cmds=$lt_finish_cmds
19208
19209 # Same as above, but a single script fragment to be evaled but not shown.
19210 finish_eval=$lt_finish_eval
19211
19212 # Take the output of nm and produce a listing of raw symbols and C names.
19213 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19214
19215 # Transform the output of nm in a proper C declaration
19216 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19217
19218 # Transform the output of nm in a C name address pair
19219 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19220
19221 # This is the shared library runtime path variable.
19222 runpath_var=$runpath_var
19223
19224 # This is the shared library path variable.
19225 shlibpath_var=$shlibpath_var
19226
19227 # Is shlibpath searched before the hard-coded library search path?
19228 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19229
19230 # How to hardcode a shared library path into an executable.
19231 hardcode_action=$hardcode_action_RC
19232
19233 # Whether we should hardcode library paths into libraries.
19234 hardcode_into_libs=$hardcode_into_libs
19235
19236 # Flag to hardcode \$libdir into a binary during linking.
19237 # This must work even if \$libdir does not exist.
19238 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19239
19240 # If ld is used when linking, flag to hardcode \$libdir into
19241 # a binary during linking. This must work even if \$libdir does
19242 # not exist.
19243 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19244
19245 # Whether we need a single -rpath flag with a separated argument.
19246 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19247
19248 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19249 # resulting binary.
19250 hardcode_direct=$hardcode_direct_RC
19251
19252 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19253 # resulting binary.
19254 hardcode_minus_L=$hardcode_minus_L_RC
19255
19256 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19257 # the resulting binary.
19258 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19259
19260 # Set to yes if building a shared library automatically hardcodes DIR into the library
19261 # and all subsequent libraries and executables linked against it.
19262 hardcode_automatic=$hardcode_automatic_RC
19263
19264 # Variables whose values should be saved in libtool wrapper scripts and
19265 # restored at relink time.
19266 variables_saved_for_relink="$variables_saved_for_relink"
19267
19268 # Whether libtool must link a program against all its dependency libraries.
19269 link_all_deplibs=$link_all_deplibs_RC
19270
19271 # Compile-time system search path for libraries
19272 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19273
19274 # Run-time system search path for libraries
19275 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19276
19277 # Fix the shell variable \$srcfile for the compiler.
19278 fix_srcfile_path="$fix_srcfile_path_RC"
19279
19280 # Set to yes if exported symbols are required.
19281 always_export_symbols=$always_export_symbols_RC
19282
19283 # The commands to list exported symbols.
19284 export_symbols_cmds=$lt_export_symbols_cmds_RC
19285
19286 # The commands to extract the exported symbol list from a shared archive.
19287 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19288
19289 # Symbols that should not be listed in the preloaded symbols.
19290 exclude_expsyms=$lt_exclude_expsyms_RC
19291
19292 # Symbols that must always be exported.
19293 include_expsyms=$lt_include_expsyms_RC
19294
19295 # ### END LIBTOOL TAG CONFIG: $tagname
19296
19297 __EOF__
19298
19299
19300 else
19301 # If there is no Makefile yet, we rely on a make rule to execute
19302 # `config.status --recheck' to rerun these tests and create the
19303 # libtool script then.
19304 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19305 if test -f "$ltmain_in"; then
19306 test -f Makefile && make "$ltmain"
19307 fi
19308 fi
19309
19310
19311 ac_ext=c
19312 ac_cpp='$CPP $CPPFLAGS'
19313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19316
19317 CC="$lt_save_CC"
19318
19319 ;;
19320
19321 *)
19322 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19323 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19324 { (exit 1); exit 1; }; }
19325 ;;
19326 esac
19327
19328 # Append the new tag name to the list of available tags.
19329 if test -n "$tagname" ; then
19330 available_tags="$available_tags $tagname"
19331 fi
19332 fi
19333 done
19334 IFS="$lt_save_ifs"
19335
19336 # Now substitute the updated list of available tags.
19337 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19338 mv "${ofile}T" "$ofile"
19339 chmod +x "$ofile"
19340 else
19341 rm -f "${ofile}T"
19342 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19343 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19344 { (exit 1); exit 1; }; }
19345 fi
19346 fi
19347
19348
19349
19350 # This can be used to rebuild libtool when needed
19351 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19352
19353 # Always use our own libtool.
19354 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19355
19356 # Prevent multiple expansion
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378 if test "$GCC" = yes
19379 then
19380 CFLAGS="-Wall $CFLAGS"
19381 fi
19382
19383 CFLAGS="$CFLAGS -I$srcdir/.. -I.."
19384
19385
19386 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19387 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19388 if test "${ac_cv_header_stdc+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 else
19391 cat >conftest.$ac_ext <<_ACEOF
19392 /* confdefs.h. */
19393 _ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19397 #include <stdlib.h>
19398 #include <stdarg.h>
19399 #include <string.h>
19400 #include <float.h>
19401
19402 int
19403 main ()
19404 {
19405
19406 ;
19407 return 0;
19408 }
19409 _ACEOF
19410 rm -f conftest.$ac_objext
19411 if { (ac_try="$ac_compile"
19412 case "(($ac_try" in
19413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414 *) ac_try_echo=$ac_try;;
19415 esac
19416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417 (eval "$ac_compile") 2>conftest.er1
19418 ac_status=$?
19419 grep -v '^ *+' conftest.er1 >conftest.err
19420 rm -f conftest.er1
19421 cat conftest.err >&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } && {
19424 test -z "$ac_c_werror_flag" ||
19425 test ! -s conftest.err
19426 } && test -s conftest.$ac_objext; then
19427 ac_cv_header_stdc=yes
19428 else
19429 echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19431
19432 ac_cv_header_stdc=no
19433 fi
19434
19435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19436
19437 if test $ac_cv_header_stdc = yes; then
19438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19439 cat >conftest.$ac_ext <<_ACEOF
19440 /* confdefs.h. */
19441 _ACEOF
19442 cat confdefs.h >>conftest.$ac_ext
19443 cat >>conftest.$ac_ext <<_ACEOF
19444 /* end confdefs.h. */
19445 #include <string.h>
19446
19447 _ACEOF
19448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19449 $EGREP "memchr" >/dev/null 2>&1; then
19450 :
19451 else
19452 ac_cv_header_stdc=no
19453 fi
19454 rm -f conftest*
19455
19456 fi
19457
19458 if test $ac_cv_header_stdc = yes; then
19459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19460 cat >conftest.$ac_ext <<_ACEOF
19461 /* confdefs.h. */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19466 #include <stdlib.h>
19467
19468 _ACEOF
19469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19470 $EGREP "free" >/dev/null 2>&1; then
19471 :
19472 else
19473 ac_cv_header_stdc=no
19474 fi
19475 rm -f conftest*
19476
19477 fi
19478
19479 if test $ac_cv_header_stdc = yes; then
19480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19481 if test "$cross_compiling" = yes; then
19482 :
19483 else
19484 cat >conftest.$ac_ext <<_ACEOF
19485 /* confdefs.h. */
19486 _ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19490 #include <ctype.h>
19491 #include <stdlib.h>
19492 #if ((' ' & 0x0FF) == 0x020)
19493 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19494 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19495 #else
19496 # define ISLOWER(c) \
19497 (('a' <= (c) && (c) <= 'i') \
19498 || ('j' <= (c) && (c) <= 'r') \
19499 || ('s' <= (c) && (c) <= 'z'))
19500 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19501 #endif
19502
19503 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19504 int
19505 main ()
19506 {
19507 int i;
19508 for (i = 0; i < 256; i++)
19509 if (XOR (islower (i), ISLOWER (i))
19510 || toupper (i) != TOUPPER (i))
19511 return 2;
19512 return 0;
19513 }
19514 _ACEOF
19515 rm -f conftest$ac_exeext
19516 if { (ac_try="$ac_link"
19517 case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520 esac
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_link") 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19526 { (case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19529 esac
19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$ac_try") 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 :
19536 else
19537 echo "$as_me: program exited with status $ac_status" >&5
19538 echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19540
19541 ( exit $ac_status )
19542 ac_cv_header_stdc=no
19543 fi
19544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19545 fi
19546
19547
19548 fi
19549 fi
19550 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19551 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19552 if test $ac_cv_header_stdc = yes; then
19553
19554 cat >>confdefs.h <<\_ACEOF
19555 #define STDC_HEADERS 1
19556 _ACEOF
19557
19558 fi
19559
19560
19561
19562 for ac_header in sys/types.h
19563 do
19564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19570 fi
19571 ac_res=`eval echo '${'$as_ac_Header'}'`
19572 { echo "$as_me:$LINENO: result: $ac_res" >&5
19573 echo "${ECHO_T}$ac_res" >&6; }
19574 else
19575 # Is the header compilable?
19576 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19578 cat >conftest.$ac_ext <<_ACEOF
19579 /* confdefs.h. */
19580 _ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 $ac_includes_default
19585 #include <$ac_header>
19586 _ACEOF
19587 rm -f conftest.$ac_objext
19588 if { (ac_try="$ac_compile"
19589 case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19592 esac
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_compile") 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } && {
19601 test -z "$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19603 } && test -s conftest.$ac_objext; then
19604 ac_header_compiler=yes
19605 else
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 ac_header_compiler=no
19610 fi
19611
19612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19614 echo "${ECHO_T}$ac_header_compiler" >&6; }
19615
19616 # Is the header present?
19617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19619 cat >conftest.$ac_ext <<_ACEOF
19620 /* confdefs.h. */
19621 _ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19625 #include <$ac_header>
19626 _ACEOF
19627 if { (ac_try="$ac_cpp conftest.$ac_ext"
19628 case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19634 ac_status=$?
19635 grep -v '^ *+' conftest.er1 >conftest.err
19636 rm -f conftest.er1
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } >/dev/null && {
19640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19641 test ! -s conftest.err
19642 }; then
19643 ac_header_preproc=yes
19644 else
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19647
19648 ac_header_preproc=no
19649 fi
19650
19651 rm -f conftest.err conftest.$ac_ext
19652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19653 echo "${ECHO_T}$ac_header_preproc" >&6; }
19654
19655 # So? What about this header?
19656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19657 yes:no: )
19658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19662 ac_header_preproc=yes
19663 ;;
19664 no:yes:* )
19665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19677 ( cat <<\_ASBOX
19678 ## -------------------------------------------------- ##
19679 ## Report this to courier-users@lists.sourceforge.net ##
19680 ## -------------------------------------------------- ##
19681 _ASBOX
19682 ) | sed "s/^/$as_me: WARNING: /" >&2
19683 ;;
19684 esac
19685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690 eval "$as_ac_Header=\$ac_header_preproc"
19691 fi
19692 ac_res=`eval echo '${'$as_ac_Header'}'`
19693 { echo "$as_me:$LINENO: result: $ac_res" >&5
19694 echo "${ECHO_T}$ac_res" >&6; }
19695
19696 fi
19697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19698 cat >>confdefs.h <<_ACEOF
19699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19700 _ACEOF
19701
19702 fi
19703
19704 done
19705
19706
19707
19708
19709 # Check whether --with-int32 was given.
19710 if test "${with_int32+set}" = set; then
19711 withval=$with_int32; int32="$withval"
19712 else
19713
19714
19715 { echo "$as_me:$LINENO: checking for uint32_t" >&5
19716 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
19717
19718 cat >conftest.$ac_ext <<_ACEOF
19719 /* confdefs.h. */
19720 _ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19724
19725 #if HAVE_SYS_TYPES_H
19726 #include <sys/types.h>
19727 #endif
19728
19729 int
19730 main ()
19731 {
19732
19733 uint32_t i=0;
19734
19735 ;
19736 return 0;
19737 }
19738 _ACEOF
19739 rm -f conftest.$ac_objext
19740 if { (ac_try="$ac_compile"
19741 case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19744 esac
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_compile") 2>conftest.er1
19747 ac_status=$?
19748 grep -v '^ *+' conftest.er1 >conftest.err
19749 rm -f conftest.er1
19750 cat conftest.err >&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } && {
19753 test -z "$ac_c_werror_flag" ||
19754 test ! -s conftest.err
19755 } && test -s conftest.$ac_objext; then
19756 { echo "$as_me:$LINENO: result: yes" >&5
19757 echo "${ECHO_T}yes" >&6; } ; int32="uint32_t"
19758 else
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19761
19762
19763
19764 { echo "$as_me:$LINENO: result: no" >&5
19765 echo "${ECHO_T}no" >&6; }
19766 { echo "$as_me:$LINENO: checking for u_int_32_t" >&5
19767 echo $ECHO_N "checking for u_int_32_t... $ECHO_C" >&6; }
19768
19769 cat >conftest.$ac_ext <<_ACEOF
19770 /* confdefs.h. */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775
19776 #if HAVE_SYS_TYPES_H
19777 #include <sys/types.h>
19778 #endif
19779
19780 int
19781 main ()
19782 {
19783
19784 u_int32_t i=0;
19785
19786 ;
19787 return 0;
19788 }
19789 _ACEOF
19790 rm -f conftest.$ac_objext
19791 if { (ac_try="$ac_compile"
19792 case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_compile") 2>conftest.er1
19798 ac_status=$?
19799 grep -v '^ *+' conftest.er1 >conftest.err
19800 rm -f conftest.er1
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } && {
19804 test -z "$ac_c_werror_flag" ||
19805 test ! -s conftest.err
19806 } && test -s conftest.$ac_objext; then
19807 { echo "$as_me:$LINENO: result: yes" >&5
19808 echo "${ECHO_T}yes" >&6; }; int32="u_int32_t"
19809 else
19810 echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19812
19813
19814
19815 { echo "$as_me:$LINENO: result: no" >&5
19816 echo "${ECHO_T}no" >&6; }
19817
19818 { echo "$as_me:$LINENO: checking for unsigned" >&5
19819 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
19820 if test "${ac_cv_type_unsigned+set}" = set; then
19821 echo $ECHO_N "(cached) $ECHO_C" >&6
19822 else
19823 cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h. */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19829 $ac_includes_default
19830 typedef unsigned ac__type_new_;
19831 int
19832 main ()
19833 {
19834 if ((ac__type_new_ *) 0)
19835 return 0;
19836 if (sizeof (ac__type_new_))
19837 return 0;
19838 ;
19839 return 0;
19840 }
19841 _ACEOF
19842 rm -f conftest.$ac_objext
19843 if { (ac_try="$ac_compile"
19844 case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19847 esac
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_compile") 2>conftest.er1
19850 ac_status=$?
19851 grep -v '^ *+' conftest.er1 >conftest.err
19852 rm -f conftest.er1
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && {
19856 test -z "$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19858 } && test -s conftest.$ac_objext; then
19859 ac_cv_type_unsigned=yes
19860 else
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19863
19864 ac_cv_type_unsigned=no
19865 fi
19866
19867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868 fi
19869 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
19870 echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
19871
19872 # The cast to long int works around a bug in the HP C Compiler
19873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19875 # This bug is HP SR number 8606223364.
19876 { echo "$as_me:$LINENO: checking size of unsigned" >&5
19877 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
19878 if test "${ac_cv_sizeof_unsigned+set}" = set; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19880 else
19881 if test "$cross_compiling" = yes; then
19882 # Depending upon the size, compute the lo and hi bounds.
19883 cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h. */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19889 $ac_includes_default
19890 typedef unsigned ac__type_sizeof_;
19891 int
19892 main ()
19893 {
19894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19895 test_array [0] = 0
19896
19897 ;
19898 return 0;
19899 }
19900 _ACEOF
19901 rm -f conftest.$ac_objext
19902 if { (ac_try="$ac_compile"
19903 case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19906 esac
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_compile") 2>conftest.er1
19909 ac_status=$?
19910 grep -v '^ *+' conftest.er1 >conftest.err
19911 rm -f conftest.er1
19912 cat conftest.err >&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } && {
19915 test -z "$ac_c_werror_flag" ||
19916 test ! -s conftest.err
19917 } && test -s conftest.$ac_objext; then
19918 ac_lo=0 ac_mid=0
19919 while :; do
19920 cat >conftest.$ac_ext <<_ACEOF
19921 /* confdefs.h. */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19926 $ac_includes_default
19927 typedef unsigned ac__type_sizeof_;
19928 int
19929 main ()
19930 {
19931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19932 test_array [0] = 0
19933
19934 ;
19935 return 0;
19936 }
19937 _ACEOF
19938 rm -f conftest.$ac_objext
19939 if { (ac_try="$ac_compile"
19940 case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19943 esac
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_compile") 2>conftest.er1
19946 ac_status=$?
19947 grep -v '^ *+' conftest.er1 >conftest.err
19948 rm -f conftest.er1
19949 cat conftest.err >&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); } && {
19952 test -z "$ac_c_werror_flag" ||
19953 test ! -s conftest.err
19954 } && test -s conftest.$ac_objext; then
19955 ac_hi=$ac_mid; break
19956 else
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19959
19960 ac_lo=`expr $ac_mid + 1`
19961 if test $ac_lo -le $ac_mid; then
19962 ac_lo= ac_hi=
19963 break
19964 fi
19965 ac_mid=`expr 2 '*' $ac_mid + 1`
19966 fi
19967
19968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19969 done
19970 else
19971 echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19973
19974 cat >conftest.$ac_ext <<_ACEOF
19975 /* confdefs.h. */
19976 _ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19980 $ac_includes_default
19981 typedef unsigned ac__type_sizeof_;
19982 int
19983 main ()
19984 {
19985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19986 test_array [0] = 0
19987
19988 ;
19989 return 0;
19990 }
19991 _ACEOF
19992 rm -f conftest.$ac_objext
19993 if { (ac_try="$ac_compile"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997 esac
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_compile") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest.$ac_objext; then
20009 ac_hi=-1 ac_mid=-1
20010 while :; do
20011 cat >conftest.$ac_ext <<_ACEOF
20012 /* confdefs.h. */
20013 _ACEOF
20014 cat confdefs.h >>conftest.$ac_ext
20015 cat >>conftest.$ac_ext <<_ACEOF
20016 /* end confdefs.h. */
20017 $ac_includes_default
20018 typedef unsigned ac__type_sizeof_;
20019 int
20020 main ()
20021 {
20022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20023 test_array [0] = 0
20024
20025 ;
20026 return 0;
20027 }
20028 _ACEOF
20029 rm -f conftest.$ac_objext
20030 if { (ac_try="$ac_compile"
20031 case "(($ac_try" in
20032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033 *) ac_try_echo=$ac_try;;
20034 esac
20035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036 (eval "$ac_compile") 2>conftest.er1
20037 ac_status=$?
20038 grep -v '^ *+' conftest.er1 >conftest.err
20039 rm -f conftest.er1
20040 cat conftest.err >&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } && {
20043 test -z "$ac_c_werror_flag" ||
20044 test ! -s conftest.err
20045 } && test -s conftest.$ac_objext; then
20046 ac_lo=$ac_mid; break
20047 else
20048 echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20050
20051 ac_hi=`expr '(' $ac_mid ')' - 1`
20052 if test $ac_mid -le $ac_hi; then
20053 ac_lo= ac_hi=
20054 break
20055 fi
20056 ac_mid=`expr 2 '*' $ac_mid`
20057 fi
20058
20059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20060 done
20061 else
20062 echo "$as_me: failed program was:" >&5
20063 sed 's/^/| /' conftest.$ac_ext >&5
20064
20065 ac_lo= ac_hi=
20066 fi
20067
20068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20069 fi
20070
20071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20072 # Binary search between lo and hi bounds.
20073 while test "x$ac_lo" != "x$ac_hi"; do
20074 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20075 cat >conftest.$ac_ext <<_ACEOF
20076 /* confdefs.h. */
20077 _ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20081 $ac_includes_default
20082 typedef unsigned ac__type_sizeof_;
20083 int
20084 main ()
20085 {
20086 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20087 test_array [0] = 0
20088
20089 ;
20090 return 0;
20091 }
20092 _ACEOF
20093 rm -f conftest.$ac_objext
20094 if { (ac_try="$ac_compile"
20095 case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20098 esac
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_compile") 2>conftest.er1
20101 ac_status=$?
20102 grep -v '^ *+' conftest.er1 >conftest.err
20103 rm -f conftest.er1
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } && {
20107 test -z "$ac_c_werror_flag" ||
20108 test ! -s conftest.err
20109 } && test -s conftest.$ac_objext; then
20110 ac_hi=$ac_mid
20111 else
20112 echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20114
20115 ac_lo=`expr '(' $ac_mid ')' + 1`
20116 fi
20117
20118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20119 done
20120 case $ac_lo in
20121 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
20122 '') if test "$ac_cv_type_unsigned" = yes; then
20123 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
20124 See \`config.log' for more details." >&5
20125 echo "$as_me: error: cannot compute sizeof (unsigned)
20126 See \`config.log' for more details." >&2;}
20127 { (exit 77); exit 77; }; }
20128 else
20129 ac_cv_sizeof_unsigned=0
20130 fi ;;
20131 esac
20132 else
20133 cat >conftest.$ac_ext <<_ACEOF
20134 /* confdefs.h. */
20135 _ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20139 $ac_includes_default
20140 typedef unsigned ac__type_sizeof_;
20141 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20142 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20143 #include <stdio.h>
20144 #include <stdlib.h>
20145 int
20146 main ()
20147 {
20148
20149 FILE *f = fopen ("conftest.val", "w");
20150 if (! f)
20151 return 1;
20152 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20153 {
20154 long int i = longval ();
20155 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20156 return 1;
20157 fprintf (f, "%ld\n", i);
20158 }
20159 else
20160 {
20161 unsigned long int i = ulongval ();
20162 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20163 return 1;
20164 fprintf (f, "%lu\n", i);
20165 }
20166 return ferror (f) || fclose (f) != 0;
20167
20168 ;
20169 return 0;
20170 }
20171 _ACEOF
20172 rm -f conftest$ac_exeext
20173 if { (ac_try="$ac_link"
20174 case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177 esac
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_link") 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20183 { (case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20186 esac
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_try") 2>&5
20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 ac_cv_sizeof_unsigned=`cat conftest.val`
20193 else
20194 echo "$as_me: program exited with status $ac_status" >&5
20195 echo "$as_me: failed program was:" >&5
20196 sed 's/^/| /' conftest.$ac_ext >&5
20197
20198 ( exit $ac_status )
20199 if test "$ac_cv_type_unsigned" = yes; then
20200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
20201 See \`config.log' for more details." >&5
20202 echo "$as_me: error: cannot compute sizeof (unsigned)
20203 See \`config.log' for more details." >&2;}
20204 { (exit 77); exit 77; }; }
20205 else
20206 ac_cv_sizeof_unsigned=0
20207 fi
20208 fi
20209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20210 fi
20211 rm -f conftest.val
20212 fi
20213 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
20214 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
20215
20216
20217
20218 cat >>confdefs.h <<_ACEOF
20219 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
20220 _ACEOF
20221
20222
20223 if test "$ac_cv_sizeof_unsigned" != 4
20224 then
20225 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20226 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20227 if test "${ac_cv_type_unsigned_long+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20229 else
20230 cat >conftest.$ac_ext <<_ACEOF
20231 /* confdefs.h. */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h. */
20236 $ac_includes_default
20237 typedef unsigned long ac__type_new_;
20238 int
20239 main ()
20240 {
20241 if ((ac__type_new_ *) 0)
20242 return 0;
20243 if (sizeof (ac__type_new_))
20244 return 0;
20245 ;
20246 return 0;
20247 }
20248 _ACEOF
20249 rm -f conftest.$ac_objext
20250 if { (ac_try="$ac_compile"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254 esac
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_compile") 2>conftest.er1
20257 ac_status=$?
20258 grep -v '^ *+' conftest.er1 >conftest.err
20259 rm -f conftest.er1
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } && {
20263 test -z "$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20265 } && test -s conftest.$ac_objext; then
20266 ac_cv_type_unsigned_long=yes
20267 else
20268 echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20270
20271 ac_cv_type_unsigned_long=no
20272 fi
20273
20274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20275 fi
20276 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20277 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20278
20279 # The cast to long int works around a bug in the HP C Compiler
20280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20282 # This bug is HP SR number 8606223364.
20283 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20284 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20285 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20286 echo $ECHO_N "(cached) $ECHO_C" >&6
20287 else
20288 if test "$cross_compiling" = yes; then
20289 # Depending upon the size, compute the lo and hi bounds.
20290 cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h. */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296 $ac_includes_default
20297 typedef unsigned long ac__type_sizeof_;
20298 int
20299 main ()
20300 {
20301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20302 test_array [0] = 0
20303
20304 ;
20305 return 0;
20306 }
20307 _ACEOF
20308 rm -f conftest.$ac_objext
20309 if { (ac_try="$ac_compile"
20310 case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20313 esac
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_compile") 2>conftest.er1
20316 ac_status=$?
20317 grep -v '^ *+' conftest.er1 >conftest.err
20318 rm -f conftest.er1
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest.$ac_objext; then
20325 ac_lo=0 ac_mid=0
20326 while :; do
20327 cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h. */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20333 $ac_includes_default
20334 typedef unsigned long ac__type_sizeof_;
20335 int
20336 main ()
20337 {
20338 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20339 test_array [0] = 0
20340
20341 ;
20342 return 0;
20343 }
20344 _ACEOF
20345 rm -f conftest.$ac_objext
20346 if { (ac_try="$ac_compile"
20347 case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20350 esac
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_compile") 2>conftest.er1
20353 ac_status=$?
20354 grep -v '^ *+' conftest.er1 >conftest.err
20355 rm -f conftest.er1
20356 cat conftest.err >&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } && {
20359 test -z "$ac_c_werror_flag" ||
20360 test ! -s conftest.err
20361 } && test -s conftest.$ac_objext; then
20362 ac_hi=$ac_mid; break
20363 else
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20366
20367 ac_lo=`expr $ac_mid + 1`
20368 if test $ac_lo -le $ac_mid; then
20369 ac_lo= ac_hi=
20370 break
20371 fi
20372 ac_mid=`expr 2 '*' $ac_mid + 1`
20373 fi
20374
20375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20376 done
20377 else
20378 echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20380
20381 cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h. */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387 $ac_includes_default
20388 typedef unsigned long ac__type_sizeof_;
20389 int
20390 main ()
20391 {
20392 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20393 test_array [0] = 0
20394
20395 ;
20396 return 0;
20397 }
20398 _ACEOF
20399 rm -f conftest.$ac_objext
20400 if { (ac_try="$ac_compile"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20404 esac
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_compile") 2>conftest.er1
20407 ac_status=$?
20408 grep -v '^ *+' conftest.er1 >conftest.err
20409 rm -f conftest.er1
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } && {
20413 test -z "$ac_c_werror_flag" ||
20414 test ! -s conftest.err
20415 } && test -s conftest.$ac_objext; then
20416 ac_hi=-1 ac_mid=-1
20417 while :; do
20418 cat >conftest.$ac_ext <<_ACEOF
20419 /* confdefs.h. */
20420 _ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h. */
20424 $ac_includes_default
20425 typedef unsigned long ac__type_sizeof_;
20426 int
20427 main ()
20428 {
20429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20430 test_array [0] = 0
20431
20432 ;
20433 return 0;
20434 }
20435 _ACEOF
20436 rm -f conftest.$ac_objext
20437 if { (ac_try="$ac_compile"
20438 case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20441 esac
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443 (eval "$ac_compile") 2>conftest.er1
20444 ac_status=$?
20445 grep -v '^ *+' conftest.er1 >conftest.err
20446 rm -f conftest.er1
20447 cat conftest.err >&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); } && {
20450 test -z "$ac_c_werror_flag" ||
20451 test ! -s conftest.err
20452 } && test -s conftest.$ac_objext; then
20453 ac_lo=$ac_mid; break
20454 else
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20457
20458 ac_hi=`expr '(' $ac_mid ')' - 1`
20459 if test $ac_mid -le $ac_hi; then
20460 ac_lo= ac_hi=
20461 break
20462 fi
20463 ac_mid=`expr 2 '*' $ac_mid`
20464 fi
20465
20466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20467 done
20468 else
20469 echo "$as_me: failed program was:" >&5
20470 sed 's/^/| /' conftest.$ac_ext >&5
20471
20472 ac_lo= ac_hi=
20473 fi
20474
20475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20476 fi
20477
20478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20479 # Binary search between lo and hi bounds.
20480 while test "x$ac_lo" != "x$ac_hi"; do
20481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20482 cat >conftest.$ac_ext <<_ACEOF
20483 /* confdefs.h. */
20484 _ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h. */
20488 $ac_includes_default
20489 typedef unsigned long ac__type_sizeof_;
20490 int
20491 main ()
20492 {
20493 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20494 test_array [0] = 0
20495
20496 ;
20497 return 0;
20498 }
20499 _ACEOF
20500 rm -f conftest.$ac_objext
20501 if { (ac_try="$ac_compile"
20502 case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20505 esac
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_compile") 2>conftest.er1
20508 ac_status=$?
20509 grep -v '^ *+' conftest.er1 >conftest.err
20510 rm -f conftest.er1
20511 cat conftest.err >&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } && {
20514 test -z "$ac_c_werror_flag" ||
20515 test ! -s conftest.err
20516 } && test -s conftest.$ac_objext; then
20517 ac_hi=$ac_mid
20518 else
20519 echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20521
20522 ac_lo=`expr '(' $ac_mid ')' + 1`
20523 fi
20524
20525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20526 done
20527 case $ac_lo in
20528 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20529 '') if test "$ac_cv_type_unsigned_long" = yes; then
20530 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20531 See \`config.log' for more details." >&5
20532 echo "$as_me: error: cannot compute sizeof (unsigned long)
20533 See \`config.log' for more details." >&2;}
20534 { (exit 77); exit 77; }; }
20535 else
20536 ac_cv_sizeof_unsigned_long=0
20537 fi ;;
20538 esac
20539 else
20540 cat >conftest.$ac_ext <<_ACEOF
20541 /* confdefs.h. */
20542 _ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h. */
20546 $ac_includes_default
20547 typedef unsigned long ac__type_sizeof_;
20548 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20549 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20550 #include <stdio.h>
20551 #include <stdlib.h>
20552 int
20553 main ()
20554 {
20555
20556 FILE *f = fopen ("conftest.val", "w");
20557 if (! f)
20558 return 1;
20559 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20560 {
20561 long int i = longval ();
20562 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20563 return 1;
20564 fprintf (f, "%ld\n", i);
20565 }
20566 else
20567 {
20568 unsigned long int i = ulongval ();
20569 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20570 return 1;
20571 fprintf (f, "%lu\n", i);
20572 }
20573 return ferror (f) || fclose (f) != 0;
20574
20575 ;
20576 return 0;
20577 }
20578 _ACEOF
20579 rm -f conftest$ac_exeext
20580 if { (ac_try="$ac_link"
20581 case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20584 esac
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_link") 2>&5
20587 ac_status=$?
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20590 { (case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20593 esac
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_try") 2>&5
20596 ac_status=$?
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
20599 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20600 else
20601 echo "$as_me: program exited with status $ac_status" >&5
20602 echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20604
20605 ( exit $ac_status )
20606 if test "$ac_cv_type_unsigned_long" = yes; then
20607 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20608 See \`config.log' for more details." >&5
20609 echo "$as_me: error: cannot compute sizeof (unsigned long)
20610 See \`config.log' for more details." >&2;}
20611 { (exit 77); exit 77; }; }
20612 else
20613 ac_cv_sizeof_unsigned_long=0
20614 fi
20615 fi
20616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20617 fi
20618 rm -f conftest.val
20619 fi
20620 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20621 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20622
20623
20624
20625 cat >>confdefs.h <<_ACEOF
20626 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20627 _ACEOF
20628
20629
20630 if test "$ac_cv_sizeof_unsigned_long" != 4
20631 then
20632 { echo "$as_me:$LINENO: checking for unsigned short" >&5
20633 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
20634 if test "${ac_cv_type_unsigned_short+set}" = set; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20636 else
20637 cat >conftest.$ac_ext <<_ACEOF
20638 /* confdefs.h. */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h. */
20643 $ac_includes_default
20644 typedef unsigned short ac__type_new_;
20645 int
20646 main ()
20647 {
20648 if ((ac__type_new_ *) 0)
20649 return 0;
20650 if (sizeof (ac__type_new_))
20651 return 0;
20652 ;
20653 return 0;
20654 }
20655 _ACEOF
20656 rm -f conftest.$ac_objext
20657 if { (ac_try="$ac_compile"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_compile") 2>conftest.er1
20664 ac_status=$?
20665 grep -v '^ *+' conftest.er1 >conftest.err
20666 rm -f conftest.er1
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest.$ac_objext; then
20673 ac_cv_type_unsigned_short=yes
20674 else
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20677
20678 ac_cv_type_unsigned_short=no
20679 fi
20680
20681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20682 fi
20683 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
20684 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
20685
20686 # The cast to long int works around a bug in the HP C Compiler
20687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20689 # This bug is HP SR number 8606223364.
20690 { echo "$as_me:$LINENO: checking size of unsigned short" >&5
20691 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
20692 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 else
20695 if test "$cross_compiling" = yes; then
20696 # Depending upon the size, compute the lo and hi bounds.
20697 cat >conftest.$ac_ext <<_ACEOF
20698 /* confdefs.h. */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20703 $ac_includes_default
20704 typedef unsigned short ac__type_sizeof_;
20705 int
20706 main ()
20707 {
20708 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20709 test_array [0] = 0
20710
20711 ;
20712 return 0;
20713 }
20714 _ACEOF
20715 rm -f conftest.$ac_objext
20716 if { (ac_try="$ac_compile"
20717 case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20720 esac
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_compile") 2>conftest.er1
20723 ac_status=$?
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } && {
20729 test -z "$ac_c_werror_flag" ||
20730 test ! -s conftest.err
20731 } && test -s conftest.$ac_objext; then
20732 ac_lo=0 ac_mid=0
20733 while :; do
20734 cat >conftest.$ac_ext <<_ACEOF
20735 /* confdefs.h. */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 $ac_includes_default
20741 typedef unsigned short ac__type_sizeof_;
20742 int
20743 main ()
20744 {
20745 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20746 test_array [0] = 0
20747
20748 ;
20749 return 0;
20750 }
20751 _ACEOF
20752 rm -f conftest.$ac_objext
20753 if { (ac_try="$ac_compile"
20754 case "(($ac_try" in
20755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756 *) ac_try_echo=$ac_try;;
20757 esac
20758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20759 (eval "$ac_compile") 2>conftest.er1
20760 ac_status=$?
20761 grep -v '^ *+' conftest.er1 >conftest.err
20762 rm -f conftest.er1
20763 cat conftest.err >&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } && {
20766 test -z "$ac_c_werror_flag" ||
20767 test ! -s conftest.err
20768 } && test -s conftest.$ac_objext; then
20769 ac_hi=$ac_mid; break
20770 else
20771 echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20773
20774 ac_lo=`expr $ac_mid + 1`
20775 if test $ac_lo -le $ac_mid; then
20776 ac_lo= ac_hi=
20777 break
20778 fi
20779 ac_mid=`expr 2 '*' $ac_mid + 1`
20780 fi
20781
20782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20783 done
20784 else
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20787
20788 cat >conftest.$ac_ext <<_ACEOF
20789 /* confdefs.h. */
20790 _ACEOF
20791 cat confdefs.h >>conftest.$ac_ext
20792 cat >>conftest.$ac_ext <<_ACEOF
20793 /* end confdefs.h. */
20794 $ac_includes_default
20795 typedef unsigned short ac__type_sizeof_;
20796 int
20797 main ()
20798 {
20799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20800 test_array [0] = 0
20801
20802 ;
20803 return 0;
20804 }
20805 _ACEOF
20806 rm -f conftest.$ac_objext
20807 if { (ac_try="$ac_compile"
20808 case "(($ac_try" in
20809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810 *) ac_try_echo=$ac_try;;
20811 esac
20812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813 (eval "$ac_compile") 2>conftest.er1
20814 ac_status=$?
20815 grep -v '^ *+' conftest.er1 >conftest.err
20816 rm -f conftest.er1
20817 cat conftest.err >&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } && {
20820 test -z "$ac_c_werror_flag" ||
20821 test ! -s conftest.err
20822 } && test -s conftest.$ac_objext; then
20823 ac_hi=-1 ac_mid=-1
20824 while :; do
20825 cat >conftest.$ac_ext <<_ACEOF
20826 /* confdefs.h. */
20827 _ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h. */
20831 $ac_includes_default
20832 typedef unsigned short ac__type_sizeof_;
20833 int
20834 main ()
20835 {
20836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20837 test_array [0] = 0
20838
20839 ;
20840 return 0;
20841 }
20842 _ACEOF
20843 rm -f conftest.$ac_objext
20844 if { (ac_try="$ac_compile"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20848 esac
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_compile") 2>conftest.er1
20851 ac_status=$?
20852 grep -v '^ *+' conftest.er1 >conftest.err
20853 rm -f conftest.er1
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } && {
20857 test -z "$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest.$ac_objext; then
20860 ac_lo=$ac_mid; break
20861 else
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20864
20865 ac_hi=`expr '(' $ac_mid ')' - 1`
20866 if test $ac_mid -le $ac_hi; then
20867 ac_lo= ac_hi=
20868 break
20869 fi
20870 ac_mid=`expr 2 '*' $ac_mid`
20871 fi
20872
20873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20874 done
20875 else
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20878
20879 ac_lo= ac_hi=
20880 fi
20881
20882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20883 fi
20884
20885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886 # Binary search between lo and hi bounds.
20887 while test "x$ac_lo" != "x$ac_hi"; do
20888 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h. */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20895 $ac_includes_default
20896 typedef unsigned short ac__type_sizeof_;
20897 int
20898 main ()
20899 {
20900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20901 test_array [0] = 0
20902
20903 ;
20904 return 0;
20905 }
20906 _ACEOF
20907 rm -f conftest.$ac_objext
20908 if { (ac_try="$ac_compile"
20909 case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20912 esac
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914 (eval "$ac_compile") 2>conftest.er1
20915 ac_status=$?
20916 grep -v '^ *+' conftest.er1 >conftest.err
20917 rm -f conftest.er1
20918 cat conftest.err >&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } && {
20921 test -z "$ac_c_werror_flag" ||
20922 test ! -s conftest.err
20923 } && test -s conftest.$ac_objext; then
20924 ac_hi=$ac_mid
20925 else
20926 echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20928
20929 ac_lo=`expr '(' $ac_mid ')' + 1`
20930 fi
20931
20932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20933 done
20934 case $ac_lo in
20935 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
20936 '') if test "$ac_cv_type_unsigned_short" = yes; then
20937 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
20938 See \`config.log' for more details." >&5
20939 echo "$as_me: error: cannot compute sizeof (unsigned short)
20940 See \`config.log' for more details." >&2;}
20941 { (exit 77); exit 77; }; }
20942 else
20943 ac_cv_sizeof_unsigned_short=0
20944 fi ;;
20945 esac
20946 else
20947 cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h. */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20953 $ac_includes_default
20954 typedef unsigned short ac__type_sizeof_;
20955 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20956 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20957 #include <stdio.h>
20958 #include <stdlib.h>
20959 int
20960 main ()
20961 {
20962
20963 FILE *f = fopen ("conftest.val", "w");
20964 if (! f)
20965 return 1;
20966 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20967 {
20968 long int i = longval ();
20969 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20970 return 1;
20971 fprintf (f, "%ld\n", i);
20972 }
20973 else
20974 {
20975 unsigned long int i = ulongval ();
20976 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20977 return 1;
20978 fprintf (f, "%lu\n", i);
20979 }
20980 return ferror (f) || fclose (f) != 0;
20981
20982 ;
20983 return 0;
20984 }
20985 _ACEOF
20986 rm -f conftest$ac_exeext
20987 if { (ac_try="$ac_link"
20988 case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_link") 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20997 { (case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21000 esac
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_try") 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 ac_cv_sizeof_unsigned_short=`cat conftest.val`
21007 else
21008 echo "$as_me: program exited with status $ac_status" >&5
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21011
21012 ( exit $ac_status )
21013 if test "$ac_cv_type_unsigned_short" = yes; then
21014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
21015 See \`config.log' for more details." >&5
21016 echo "$as_me: error: cannot compute sizeof (unsigned short)
21017 See \`config.log' for more details." >&2;}
21018 { (exit 77); exit 77; }; }
21019 else
21020 ac_cv_sizeof_unsigned_short=0
21021 fi
21022 fi
21023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21024 fi
21025 rm -f conftest.val
21026 fi
21027 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
21028 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
21029
21030
21031
21032 cat >>confdefs.h <<_ACEOF
21033 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21034 _ACEOF
21035
21036
21037 if test "$ac_cv_sizeof_unsigned_short" != 4
21038 then
21039 { { echo "$as_me:$LINENO: error: --with-int32 option is required" >&5
21040 echo "$as_me: error: --with-int32 option is required" >&2;}
21041 { (exit 1); exit 1; }; }
21042 fi
21043 int32="unsigned short"
21044 fi
21045 int32="unsigned long"
21046 else
21047 int32="unsigned"
21048 fi
21049
21050 fi
21051
21052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21053
21054 fi
21055
21056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21057
21058
21059 fi
21060
21061 UINT32="$int32"
21062
21063
21064 cat >>confdefs.h <<_ACEOF
21065 #define MD5_WORD $UINT32
21066 _ACEOF
21067
21068
21069 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21070 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21071 if test "${ac_cv_c_const+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21073 else
21074 cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h. */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080
21081 int
21082 main ()
21083 {
21084 /* FIXME: Include the comments suggested by Paul. */
21085 #ifndef __cplusplus
21086 /* Ultrix mips cc rejects this. */
21087 typedef int charset[2];
21088 const charset cs;
21089 /* SunOS 4.1.1 cc rejects this. */
21090 char const *const *pcpcc;
21091 char **ppc;
21092 /* NEC SVR4.0.2 mips cc rejects this. */
21093 struct point {int x, y;};
21094 static struct point const zero = {0,0};
21095 /* AIX XL C 1.02.0.0 rejects this.
21096 It does not let you subtract one const X* pointer from another in
21097 an arm of an if-expression whose if-part is not a constant
21098 expression */
21099 const char *g = "string";
21100 pcpcc = &g + (g ? g-g : 0);
21101 /* HPUX 7.0 cc rejects these. */
21102 ++pcpcc;
21103 ppc = (char**) pcpcc;
21104 pcpcc = (char const *const *) ppc;
21105 { /* SCO 3.2v4 cc rejects this. */
21106 char *t;
21107 char const *s = 0 ? (char *) 0 : (char const *) 0;
21108
21109 *t++ = 0;
21110 if (s) return 0;
21111 }
21112 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21113 int x[] = {25, 17};
21114 const int *foo = &x[0];
21115 ++foo;
21116 }
21117 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21118 typedef const int *iptr;
21119 iptr p = 0;
21120 ++p;
21121 }
21122 { /* AIX XL C 1.02.0.0 rejects this saying
21123 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21124 struct s { int j; const int *ap[3]; };
21125 struct s *b; b->j = 5;
21126 }
21127 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21128 const int foo = 10;
21129 if (!foo) return 0;
21130 }
21131 return !cs[0] && !zero.x;
21132 #endif
21133
21134 ;
21135 return 0;
21136 }
21137 _ACEOF
21138 rm -f conftest.$ac_objext
21139 if { (ac_try="$ac_compile"
21140 case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21143 esac
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_compile") 2>conftest.er1
21146 ac_status=$?
21147 grep -v '^ *+' conftest.er1 >conftest.err
21148 rm -f conftest.er1
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } && {
21152 test -z "$ac_c_werror_flag" ||
21153 test ! -s conftest.err
21154 } && test -s conftest.$ac_objext; then
21155 ac_cv_c_const=yes
21156 else
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21159
21160 ac_cv_c_const=no
21161 fi
21162
21163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21164 fi
21165 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21166 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21167 if test $ac_cv_c_const = no; then
21168
21169 cat >>confdefs.h <<\_ACEOF
21170 #define const
21171 _ACEOF
21172
21173 fi
21174
21175
21176
21177 ac_config_files="$ac_config_files Makefile"
21178
21179 cat >confcache <<\_ACEOF
21180 # This file is a shell script that caches the results of configure
21181 # tests run on this system so they can be shared between configure
21182 # scripts and configure runs, see configure's option --config-cache.
21183 # It is not useful on other systems. If it contains results you don't
21184 # want to keep, you may remove or edit it.
21185 #
21186 # config.status only pays attention to the cache file if you give it
21187 # the --recheck option to rerun configure.
21188 #
21189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21191 # following values.
21192
21193 _ACEOF
21194
21195 # The following way of writing the cache mishandles newlines in values,
21196 # but we know of no workaround that is simple, portable, and efficient.
21197 # So, we kill variables containing newlines.
21198 # Ultrix sh set writes to stderr and can't be redirected directly,
21199 # and sets the high bit in the cache file unless we assign to the vars.
21200 (
21201 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21202 eval ac_val=\$$ac_var
21203 case $ac_val in #(
21204 *${as_nl}*)
21205 case $ac_var in #(
21206 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21207 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21208 esac
21209 case $ac_var in #(
21210 _ | IFS | as_nl) ;; #(
21211 *) $as_unset $ac_var ;;
21212 esac ;;
21213 esac
21214 done
21215
21216 (set) 2>&1 |
21217 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21218 *${as_nl}ac_space=\ *)
21219 # `set' does not quote correctly, so add quotes (double-quote
21220 # substitution turns \\\\ into \\, and sed turns \\ into \).
21221 sed -n \
21222 "s/'/'\\\\''/g;
21223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21224 ;; #(
21225 *)
21226 # `set' quotes correctly as required by POSIX, so do not add quotes.
21227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21228 ;;
21229 esac |
21230 sort
21231 ) |
21232 sed '
21233 /^ac_cv_env_/b end
21234 t clear
21235 :clear
21236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21237 t end
21238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21239 :end' >>confcache
21240 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21241 if test -w "$cache_file"; then
21242 test "x$cache_file" != "x/dev/null" &&
21243 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21244 echo "$as_me: updating cache $cache_file" >&6;}
21245 cat confcache >$cache_file
21246 else
21247 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21248 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21249 fi
21250 fi
21251 rm -f confcache
21252
21253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21254 # Let make expand exec_prefix.
21255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21256
21257 DEFS=-DHAVE_CONFIG_H
21258
21259 ac_libobjs=
21260 ac_ltlibobjs=
21261 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21262 # 1. Remove the extension, and $U if already installed.
21263 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21264 ac_i=`echo "$ac_i" | sed "$ac_script"`
21265 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21266 # will be set to the directory where LIBOBJS objects are built.
21267 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21268 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21269 done
21270 LIBOBJS=$ac_libobjs
21271
21272 LTLIBOBJS=$ac_ltlibobjs
21273
21274
21275 if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
21276 { { echo "$as_me:$LINENO: error: conditional \"HMACC\" was never defined.
21277 Usually this means the macro was only invoked conditionally." >&5
21278 echo "$as_me: error: conditional \"HMACC\" was never defined.
21279 Usually this means the macro was only invoked conditionally." >&2;}
21280 { (exit 1); exit 1; }; }
21281 fi
21282 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21283 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21284 Usually this means the macro was only invoked conditionally." >&5
21285 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21286 Usually this means the macro was only invoked conditionally." >&2;}
21287 { (exit 1); exit 1; }; }
21288 fi
21289 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21290 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21291 Usually this means the macro was only invoked conditionally." >&5
21292 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21293 Usually this means the macro was only invoked conditionally." >&2;}
21294 { (exit 1); exit 1; }; }
21295 fi
21296 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21297 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21298 Usually this means the macro was only invoked conditionally." >&5
21299 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21300 Usually this means the macro was only invoked conditionally." >&2;}
21301 { (exit 1); exit 1; }; }
21302 fi
21303
21304 : ${CONFIG_STATUS=./config.status}
21305 ac_clean_files_save=$ac_clean_files
21306 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21307 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21308 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21309 cat >$CONFIG_STATUS <<_ACEOF
21310 #! $SHELL
21311 # Generated by $as_me.
21312 # Run this file to recreate the current configuration.
21313 # Compiler output produced by configure, useful for debugging
21314 # configure, is in config.log if it exists.
21315
21316 debug=false
21317 ac_cs_recheck=false
21318 ac_cs_silent=false
21319 SHELL=\${CONFIG_SHELL-$SHELL}
21320 _ACEOF
21321
21322 cat >>$CONFIG_STATUS <<\_ACEOF
21323 ## --------------------- ##
21324 ## M4sh Initialization. ##
21325 ## --------------------- ##
21326
21327 # Be more Bourne compatible
21328 DUALCASE=1; export DUALCASE # for MKS sh
21329 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21330 emulate sh
21331 NULLCMD=:
21332 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21333 # is contrary to our usage. Disable this feature.
21334 alias -g '${1+"$@"}'='"$@"'
21335 setopt NO_GLOB_SUBST
21336 else
21337 case `(set -o) 2>/dev/null` in
21338 *posix*) set -o posix ;;
21339 esac
21340
21341 fi
21342
21343
21344
21345
21346 # PATH needs CR
21347 # Avoid depending upon Character Ranges.
21348 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21349 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21350 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21351 as_cr_digits='0123456789'
21352 as_cr_alnum=$as_cr_Letters$as_cr_digits
21353
21354 # The user is always right.
21355 if test "${PATH_SEPARATOR+set}" != set; then
21356 echo "#! /bin/sh" >conf$$.sh
21357 echo "exit 0" >>conf$$.sh
21358 chmod +x conf$$.sh
21359 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21360 PATH_SEPARATOR=';'
21361 else
21362 PATH_SEPARATOR=:
21363 fi
21364 rm -f conf$$.sh
21365 fi
21366
21367 # Support unset when possible.
21368 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21369 as_unset=unset
21370 else
21371 as_unset=false
21372 fi
21373
21374
21375 # IFS
21376 # We need space, tab and new line, in precisely that order. Quoting is
21377 # there to prevent editors from complaining about space-tab.
21378 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21379 # splitting by setting IFS to empty value.)
21380 as_nl='
21381 '
21382 IFS=" "" $as_nl"
21383
21384 # Find who we are. Look in the path if we contain no directory separator.
21385 case $0 in
21386 *[\\/]* ) as_myself=$0 ;;
21387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21388 for as_dir in $PATH
21389 do
21390 IFS=$as_save_IFS
21391 test -z "$as_dir" && as_dir=.
21392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21393 done
21394 IFS=$as_save_IFS
21395
21396 ;;
21397 esac
21398 # We did not find ourselves, most probably we were run as `sh COMMAND'
21399 # in which case we are not to be found in the path.
21400 if test "x$as_myself" = x; then
21401 as_myself=$0
21402 fi
21403 if test ! -f "$as_myself"; then
21404 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21405 { (exit 1); exit 1; }
21406 fi
21407
21408 # Work around bugs in pre-3.0 UWIN ksh.
21409 for as_var in ENV MAIL MAILPATH
21410 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21411 done
21412 PS1='$ '
21413 PS2='> '
21414 PS4='+ '
21415
21416 # NLS nuisances.
21417 for as_var in \
21418 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21419 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21420 LC_TELEPHONE LC_TIME
21421 do
21422 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21423 eval $as_var=C; export $as_var
21424 else
21425 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21426 fi
21427 done
21428
21429 # Required to use basename.
21430 if expr a : '\(a\)' >/dev/null 2>&1 &&
21431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21432 as_expr=expr
21433 else
21434 as_expr=false
21435 fi
21436
21437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21438 as_basename=basename
21439 else
21440 as_basename=false
21441 fi
21442
21443
21444 # Name of the executable.
21445 as_me=`$as_basename -- "$0" ||
21446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21447 X"$0" : 'X\(//\)$' \| \
21448 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21449 echo X/"$0" |
21450 sed '/^.*\/\([^/][^/]*\)\/*$/{
21451 s//\1/
21452 q
21453 }
21454 /^X\/\(\/\/\)$/{
21455 s//\1/
21456 q
21457 }
21458 /^X\/\(\/\).*/{
21459 s//\1/
21460 q
21461 }
21462 s/.*/./; q'`
21463
21464 # CDPATH.
21465 $as_unset CDPATH
21466
21467
21468
21469 as_lineno_1=$LINENO
21470 as_lineno_2=$LINENO
21471 test "x$as_lineno_1" != "x$as_lineno_2" &&
21472 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21473
21474 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21475 # uniformly replaced by the line number. The first 'sed' inserts a
21476 # line-number line after each line using $LINENO; the second 'sed'
21477 # does the real work. The second script uses 'N' to pair each
21478 # line-number line with the line containing $LINENO, and appends
21479 # trailing '-' during substitution so that $LINENO is not a special
21480 # case at line end.
21481 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21482 # scripts with optimization help from Paolo Bonzini. Blame Lee
21483 # E. McMahon (1931-1989) for sed's syntax. :-)
21484 sed -n '
21485 p
21486 /[$]LINENO/=
21487 ' <$as_myself |
21488 sed '
21489 s/[$]LINENO.*/&-/
21490 t lineno
21491 b
21492 :lineno
21493 N
21494 :loop
21495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21496 t loop
21497 s/-\n.*//
21498 ' >$as_me.lineno &&
21499 chmod +x "$as_me.lineno" ||
21500 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21501 { (exit 1); exit 1; }; }
21502
21503 # Don't try to exec as it changes $[0], causing all sort of problems
21504 # (the dirname of $[0] is not the place where we might find the
21505 # original and so on. Autoconf is especially sensitive to this).
21506 . "./$as_me.lineno"
21507 # Exit status is that of the last command.
21508 exit
21509 }
21510
21511
21512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21513 as_dirname=dirname
21514 else
21515 as_dirname=false
21516 fi
21517
21518 ECHO_C= ECHO_N= ECHO_T=
21519 case `echo -n x` in
21520 -n*)
21521 case `echo 'x\c'` in
21522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21523 *) ECHO_C='\c';;
21524 esac;;
21525 *)
21526 ECHO_N='-n';;
21527 esac
21528
21529 if expr a : '\(a\)' >/dev/null 2>&1 &&
21530 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21531 as_expr=expr
21532 else
21533 as_expr=false
21534 fi
21535
21536 rm -f conf$$ conf$$.exe conf$$.file
21537 if test -d conf$$.dir; then
21538 rm -f conf$$.dir/conf$$.file
21539 else
21540 rm -f conf$$.dir
21541 mkdir conf$$.dir
21542 fi
21543 echo >conf$$.file
21544 if ln -s conf$$.file conf$$ 2>/dev/null; then
21545 as_ln_s='ln -s'
21546 # ... but there are two gotchas:
21547 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21548 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21549 # In both cases, we have to default to `cp -p'.
21550 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21551 as_ln_s='cp -p'
21552 elif ln conf$$.file conf$$ 2>/dev/null; then
21553 as_ln_s=ln
21554 else
21555 as_ln_s='cp -p'
21556 fi
21557 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21558 rmdir conf$$.dir 2>/dev/null
21559
21560 if mkdir -p . 2>/dev/null; then
21561 as_mkdir_p=:
21562 else
21563 test -d ./-p && rmdir ./-p
21564 as_mkdir_p=false
21565 fi
21566
21567 if test -x / >/dev/null 2>&1; then
21568 as_test_x='test -x'
21569 else
21570 if ls -dL / >/dev/null 2>&1; then
21571 as_ls_L_option=L
21572 else
21573 as_ls_L_option=
21574 fi
21575 as_test_x='
21576 eval sh -c '\''
21577 if test -d "$1"; then
21578 test -d "$1/.";
21579 else
21580 case $1 in
21581 -*)set "./$1";;
21582 esac;
21583 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21584 ???[sx]*):;;*)false;;esac;fi
21585 '\'' sh
21586 '
21587 fi
21588 as_executable_p=$as_test_x
21589
21590 # Sed expression to map a string onto a valid CPP name.
21591 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21592
21593 # Sed expression to map a string onto a valid variable name.
21594 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21595
21596
21597 exec 6>&1
21598
21599 # Save the log message, to keep $[0] and so on meaningful, and to
21600 # report actual input values of CONFIG_FILES etc. instead of their
21601 # values after options handling.
21602 ac_log="
21603 This file was extended by libmd5 $as_me 1.21, which was
21604 generated by GNU Autoconf 2.61. Invocation command line was
21605
21606 CONFIG_FILES = $CONFIG_FILES
21607 CONFIG_HEADERS = $CONFIG_HEADERS
21608 CONFIG_LINKS = $CONFIG_LINKS
21609 CONFIG_COMMANDS = $CONFIG_COMMANDS
21610 $ $0 $@
21611
21612 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21613 "
21614
21615 _ACEOF
21616
21617 cat >>$CONFIG_STATUS <<_ACEOF
21618 # Files that config.status was made for.
21619 config_files="$ac_config_files"
21620 config_headers="$ac_config_headers"
21621 config_commands="$ac_config_commands"
21622
21623 _ACEOF
21624
21625 cat >>$CONFIG_STATUS <<\_ACEOF
21626 ac_cs_usage="\
21627 \`$as_me' instantiates files from templates according to the
21628 current configuration.
21629
21630 Usage: $0 [OPTIONS] [FILE]...
21631
21632 -h, --help print this help, then exit
21633 -V, --version print version number and configuration settings, then exit
21634 -q, --quiet do not print progress messages
21635 -d, --debug don't remove temporary files
21636 --recheck update $as_me by reconfiguring in the same conditions
21637 --file=FILE[:TEMPLATE]
21638 instantiate the configuration file FILE
21639 --header=FILE[:TEMPLATE]
21640 instantiate the configuration header FILE
21641
21642 Configuration files:
21643 $config_files
21644
21645 Configuration headers:
21646 $config_headers
21647
21648 Configuration commands:
21649 $config_commands
21650
21651 Report bugs to <bug-autoconf@gnu.org>."
21652
21653 _ACEOF
21654 cat >>$CONFIG_STATUS <<_ACEOF
21655 ac_cs_version="\\
21656 libmd5 config.status 1.21
21657 configured by $0, generated by GNU Autoconf 2.61,
21658 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21659
21660 Copyright (C) 2006 Free Software Foundation, Inc.
21661 This config.status script is free software; the Free Software Foundation
21662 gives unlimited permission to copy, distribute and modify it."
21663
21664 ac_pwd='$ac_pwd'
21665 srcdir='$srcdir'
21666 INSTALL='$INSTALL'
21667 MKDIR_P='$MKDIR_P'
21668 _ACEOF
21669
21670 cat >>$CONFIG_STATUS <<\_ACEOF
21671 # If no file are specified by the user, then we need to provide default
21672 # value. By we need to know if files were specified by the user.
21673 ac_need_defaults=:
21674 while test $# != 0
21675 do
21676 case $1 in
21677 --*=*)
21678 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21679 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21680 ac_shift=:
21681 ;;
21682 *)
21683 ac_option=$1
21684 ac_optarg=$2
21685 ac_shift=shift
21686 ;;
21687 esac
21688
21689 case $ac_option in
21690 # Handling of the options.
21691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21692 ac_cs_recheck=: ;;
21693 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21694 echo "$ac_cs_version"; exit ;;
21695 --debug | --debu | --deb | --de | --d | -d )
21696 debug=: ;;
21697 --file | --fil | --fi | --f )
21698 $ac_shift
21699 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21700 ac_need_defaults=false;;
21701 --header | --heade | --head | --hea )
21702 $ac_shift
21703 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21704 ac_need_defaults=false;;
21705 --he | --h)
21706 # Conflict between --help and --header
21707 { echo "$as_me: error: ambiguous option: $1
21708 Try \`$0 --help' for more information." >&2
21709 { (exit 1); exit 1; }; };;
21710 --help | --hel | -h )
21711 echo "$ac_cs_usage"; exit ;;
21712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21713 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21714 ac_cs_silent=: ;;
21715
21716 # This is an error.
21717 -*) { echo "$as_me: error: unrecognized option: $1
21718 Try \`$0 --help' for more information." >&2
21719 { (exit 1); exit 1; }; } ;;
21720
21721 *) ac_config_targets="$ac_config_targets $1"
21722 ac_need_defaults=false ;;
21723
21724 esac
21725 shift
21726 done
21727
21728 ac_configure_extra_args=
21729
21730 if $ac_cs_silent; then
21731 exec 6>/dev/null
21732 ac_configure_extra_args="$ac_configure_extra_args --silent"
21733 fi
21734
21735 _ACEOF
21736 cat >>$CONFIG_STATUS <<_ACEOF
21737 if \$ac_cs_recheck; then
21738 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21739 CONFIG_SHELL=$SHELL
21740 export CONFIG_SHELL
21741 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21742 fi
21743
21744 _ACEOF
21745 cat >>$CONFIG_STATUS <<\_ACEOF
21746 exec 5>>config.log
21747 {
21748 echo
21749 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21750 ## Running $as_me. ##
21751 _ASBOX
21752 echo "$ac_log"
21753 } >&5
21754
21755 _ACEOF
21756 cat >>$CONFIG_STATUS <<_ACEOF
21757 #
21758 # INIT-COMMANDS
21759 #
21760 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21761
21762 _ACEOF
21763
21764 cat >>$CONFIG_STATUS <<\_ACEOF
21765
21766 # Handling of arguments.
21767 for ac_config_target in $ac_config_targets
21768 do
21769 case $ac_config_target in
21770 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21771 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21772 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21773
21774 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21775 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21776 { (exit 1); exit 1; }; };;
21777 esac
21778 done
21779
21780
21781 # If the user did not use the arguments to specify the items to instantiate,
21782 # then the envvar interface is used. Set only those that are not.
21783 # We use the long form for the default assignment because of an extremely
21784 # bizarre bug on SunOS 4.1.3.
21785 if $ac_need_defaults; then
21786 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21787 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21788 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21789 fi
21790
21791 # Have a temporary directory for convenience. Make it in the build tree
21792 # simply because there is no reason against having it here, and in addition,
21793 # creating and moving files from /tmp can sometimes cause problems.
21794 # Hook for its removal unless debugging.
21795 # Note that there is a small window in which the directory will not be cleaned:
21796 # after its creation but before its name has been assigned to `$tmp'.
21797 $debug ||
21798 {
21799 tmp=
21800 trap 'exit_status=$?
21801 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21802 ' 0
21803 trap '{ (exit 1); exit 1; }' 1 2 13 15
21804 }
21805 # Create a (secure) tmp directory for tmp files.
21806
21807 {
21808 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21809 test -n "$tmp" && test -d "$tmp"
21810 } ||
21811 {
21812 tmp=./conf$$-$RANDOM
21813 (umask 077 && mkdir "$tmp")
21814 } ||
21815 {
21816 echo "$me: cannot create a temporary directory in ." >&2
21817 { (exit 1); exit 1; }
21818 }
21819
21820 #
21821 # Set up the sed scripts for CONFIG_FILES section.
21822 #
21823
21824 # No need to generate the scripts if there are no CONFIG_FILES.
21825 # This happens for instance when ./config.status config.h
21826 if test -n "$CONFIG_FILES"; then
21827
21828 _ACEOF
21829
21830
21831
21832 ac_delim='%!_!# '
21833 for ac_last_try in false false false false false :; do
21834 cat >conf$$subs.sed <<_ACEOF
21835 SHELL!$SHELL$ac_delim
21836 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21837 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21838 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21839 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21840 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21841 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21842 exec_prefix!$exec_prefix$ac_delim
21843 prefix!$prefix$ac_delim
21844 program_transform_name!$program_transform_name$ac_delim
21845 bindir!$bindir$ac_delim
21846 sbindir!$sbindir$ac_delim
21847 libexecdir!$libexecdir$ac_delim
21848 datarootdir!$datarootdir$ac_delim
21849 datadir!$datadir$ac_delim
21850 sysconfdir!$sysconfdir$ac_delim
21851 sharedstatedir!$sharedstatedir$ac_delim
21852 localstatedir!$localstatedir$ac_delim
21853 includedir!$includedir$ac_delim
21854 oldincludedir!$oldincludedir$ac_delim
21855 docdir!$docdir$ac_delim
21856 infodir!$infodir$ac_delim
21857 htmldir!$htmldir$ac_delim
21858 dvidir!$dvidir$ac_delim
21859 pdfdir!$pdfdir$ac_delim
21860 psdir!$psdir$ac_delim
21861 libdir!$libdir$ac_delim
21862 localedir!$localedir$ac_delim
21863 mandir!$mandir$ac_delim
21864 DEFS!$DEFS$ac_delim
21865 ECHO_C!$ECHO_C$ac_delim
21866 ECHO_N!$ECHO_N$ac_delim
21867 ECHO_T!$ECHO_T$ac_delim
21868 LIBS!$LIBS$ac_delim
21869 build_alias!$build_alias$ac_delim
21870 host_alias!$host_alias$ac_delim
21871 target_alias!$target_alias$ac_delim
21872 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21873 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21874 INSTALL_DATA!$INSTALL_DATA$ac_delim
21875 am__isrc!$am__isrc$ac_delim
21876 CYGPATH_W!$CYGPATH_W$ac_delim
21877 PACKAGE!$PACKAGE$ac_delim
21878 VERSION!$VERSION$ac_delim
21879 ACLOCAL!$ACLOCAL$ac_delim
21880 AUTOCONF!$AUTOCONF$ac_delim
21881 AUTOMAKE!$AUTOMAKE$ac_delim
21882 AUTOHEADER!$AUTOHEADER$ac_delim
21883 MAKEINFO!$MAKEINFO$ac_delim
21884 install_sh!$install_sh$ac_delim
21885 STRIP!$STRIP$ac_delim
21886 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21887 mkdir_p!$mkdir_p$ac_delim
21888 AWK!$AWK$ac_delim
21889 SET_MAKE!$SET_MAKE$ac_delim
21890 am__leading_dot!$am__leading_dot$ac_delim
21891 AMTAR!$AMTAR$ac_delim
21892 am__tar!$am__tar$ac_delim
21893 am__untar!$am__untar$ac_delim
21894 HMACC_TRUE!$HMACC_TRUE$ac_delim
21895 HMACC_FALSE!$HMACC_FALSE$ac_delim
21896 LN_S!$LN_S$ac_delim
21897 CC!$CC$ac_delim
21898 CFLAGS!$CFLAGS$ac_delim
21899 LDFLAGS!$LDFLAGS$ac_delim
21900 CPPFLAGS!$CPPFLAGS$ac_delim
21901 ac_ct_CC!$ac_ct_CC$ac_delim
21902 EXEEXT!$EXEEXT$ac_delim
21903 OBJEXT!$OBJEXT$ac_delim
21904 DEPDIR!$DEPDIR$ac_delim
21905 am__include!$am__include$ac_delim
21906 am__quote!$am__quote$ac_delim
21907 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21908 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21909 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21910 CCDEPMODE!$CCDEPMODE$ac_delim
21911 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21912 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21913 build!$build$ac_delim
21914 build_cpu!$build_cpu$ac_delim
21915 build_vendor!$build_vendor$ac_delim
21916 build_os!$build_os$ac_delim
21917 host!$host$ac_delim
21918 host_cpu!$host_cpu$ac_delim
21919 host_vendor!$host_vendor$ac_delim
21920 host_os!$host_os$ac_delim
21921 SED!$SED$ac_delim
21922 GREP!$GREP$ac_delim
21923 EGREP!$EGREP$ac_delim
21924 ECHO!$ECHO$ac_delim
21925 AR!$AR$ac_delim
21926 RANLIB!$RANLIB$ac_delim
21927 CPP!$CPP$ac_delim
21928 CXX!$CXX$ac_delim
21929 CXXFLAGS!$CXXFLAGS$ac_delim
21930 ac_ct_CXX!$ac_ct_CXX$ac_delim
21931 CXXDEPMODE!$CXXDEPMODE$ac_delim
21932 _ACEOF
21933
21934 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21935 break
21936 elif $ac_last_try; then
21937 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21938 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21939 { (exit 1); exit 1; }; }
21940 else
21941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21942 fi
21943 done
21944
21945 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21946 if test -n "$ac_eof"; then
21947 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21948 ac_eof=`expr $ac_eof + 1`
21949 fi
21950
21951 cat >>$CONFIG_STATUS <<_ACEOF
21952 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21954 _ACEOF
21955 sed '
21956 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21957 s/^/s,@/; s/!/@,|#_!!_#|/
21958 :n
21959 t n
21960 s/'"$ac_delim"'$/,g/; t
21961 s/$/\\/; p
21962 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21963 ' >>$CONFIG_STATUS <conf$$subs.sed
21964 rm -f conf$$subs.sed
21965 cat >>$CONFIG_STATUS <<_ACEOF
21966 CEOF$ac_eof
21967 _ACEOF
21968
21969
21970 ac_delim='%!_!# '
21971 for ac_last_try in false false false false false :; do
21972 cat >conf$$subs.sed <<_ACEOF
21973 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21974 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21975 CXXCPP!$CXXCPP$ac_delim
21976 F77!$F77$ac_delim
21977 FFLAGS!$FFLAGS$ac_delim
21978 ac_ct_F77!$ac_ct_F77$ac_delim
21979 LIBTOOL!$LIBTOOL$ac_delim
21980 LIBOBJS!$LIBOBJS$ac_delim
21981 LTLIBOBJS!$LTLIBOBJS$ac_delim
21982 _ACEOF
21983
21984 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
21985 break
21986 elif $ac_last_try; then
21987 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21988 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21989 { (exit 1); exit 1; }; }
21990 else
21991 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21992 fi
21993 done
21994
21995 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21996 if test -n "$ac_eof"; then
21997 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21998 ac_eof=`expr $ac_eof + 1`
21999 fi
22000
22001 cat >>$CONFIG_STATUS <<_ACEOF
22002 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22004 _ACEOF
22005 sed '
22006 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22007 s/^/s,@/; s/!/@,|#_!!_#|/
22008 :n
22009 t n
22010 s/'"$ac_delim"'$/,g/; t
22011 s/$/\\/; p
22012 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22013 ' >>$CONFIG_STATUS <conf$$subs.sed
22014 rm -f conf$$subs.sed
22015 cat >>$CONFIG_STATUS <<_ACEOF
22016 :end
22017 s/|#_!!_#|//g
22018 CEOF$ac_eof
22019 _ACEOF
22020
22021
22022 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22023 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22024 # trailing colons and then remove the whole line if VPATH becomes empty
22025 # (actually we leave an empty line to preserve line numbers).
22026 if test "x$srcdir" = x.; then
22027 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22028 s/:*\$(srcdir):*/:/
22029 s/:*\${srcdir}:*/:/
22030 s/:*@srcdir@:*/:/
22031 s/^\([^=]*=[ ]*\):*/\1/
22032 s/:*$//
22033 s/^[^=]*=[ ]*$//
22034 }'
22035 fi
22036
22037 cat >>$CONFIG_STATUS <<\_ACEOF
22038 fi # test -n "$CONFIG_FILES"
22039
22040
22041 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22042 do
22043 case $ac_tag in
22044 :[FHLC]) ac_mode=$ac_tag; continue;;
22045 esac
22046 case $ac_mode$ac_tag in
22047 :[FHL]*:*);;
22048 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22049 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22050 { (exit 1); exit 1; }; };;
22051 :[FH]-) ac_tag=-:-;;
22052 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22053 esac
22054 ac_save_IFS=$IFS
22055 IFS=:
22056 set x $ac_tag
22057 IFS=$ac_save_IFS
22058 shift
22059 ac_file=$1
22060 shift
22061
22062 case $ac_mode in
22063 :L) ac_source=$1;;
22064 :[FH])
22065 ac_file_inputs=
22066 for ac_f
22067 do
22068 case $ac_f in
22069 -) ac_f="$tmp/stdin";;
22070 *) # Look for the file first in the build tree, then in the source tree
22071 # (if the path is not absolute). The absolute path cannot be DOS-style,
22072 # because $ac_f cannot contain `:'.
22073 test -f "$ac_f" ||
22074 case $ac_f in
22075 [\\/$]*) false;;
22076 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22077 esac ||
22078 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22079 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22080 { (exit 1); exit 1; }; };;
22081 esac
22082 ac_file_inputs="$ac_file_inputs $ac_f"
22083 done
22084
22085 # Let's still pretend it is `configure' which instantiates (i.e., don't
22086 # use $as_me), people would be surprised to read:
22087 # /* config.h. Generated by config.status. */
22088 configure_input="Generated from "`IFS=:
22089 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22090 if test x"$ac_file" != x-; then
22091 configure_input="$ac_file. $configure_input"
22092 { echo "$as_me:$LINENO: creating $ac_file" >&5
22093 echo "$as_me: creating $ac_file" >&6;}
22094 fi
22095
22096 case $ac_tag in
22097 *:-:* | *:-) cat >"$tmp/stdin";;
22098 esac
22099 ;;
22100 esac
22101
22102 ac_dir=`$as_dirname -- "$ac_file" ||
22103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22104 X"$ac_file" : 'X\(//\)[^/]' \| \
22105 X"$ac_file" : 'X\(//\)$' \| \
22106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22107 echo X"$ac_file" |
22108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22109 s//\1/
22110 q
22111 }
22112 /^X\(\/\/\)[^/].*/{
22113 s//\1/
22114 q
22115 }
22116 /^X\(\/\/\)$/{
22117 s//\1/
22118 q
22119 }
22120 /^X\(\/\).*/{
22121 s//\1/
22122 q
22123 }
22124 s/.*/./; q'`
22125 { as_dir="$ac_dir"
22126 case $as_dir in #(
22127 -*) as_dir=./$as_dir;;
22128 esac
22129 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22130 as_dirs=
22131 while :; do
22132 case $as_dir in #(
22133 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22134 *) as_qdir=$as_dir;;
22135 esac
22136 as_dirs="'$as_qdir' $as_dirs"
22137 as_dir=`$as_dirname -- "$as_dir" ||
22138 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22139 X"$as_dir" : 'X\(//\)[^/]' \| \
22140 X"$as_dir" : 'X\(//\)$' \| \
22141 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22142 echo X"$as_dir" |
22143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22144 s//\1/
22145 q
22146 }
22147 /^X\(\/\/\)[^/].*/{
22148 s//\1/
22149 q
22150 }
22151 /^X\(\/\/\)$/{
22152 s//\1/
22153 q
22154 }
22155 /^X\(\/\).*/{
22156 s//\1/
22157 q
22158 }
22159 s/.*/./; q'`
22160 test -d "$as_dir" && break
22161 done
22162 test -z "$as_dirs" || eval "mkdir $as_dirs"
22163 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22164 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22165 { (exit 1); exit 1; }; }; }
22166 ac_builddir=.
22167
22168 case "$ac_dir" in
22169 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22170 *)
22171 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22172 # A ".." for each directory in $ac_dir_suffix.
22173 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22174 case $ac_top_builddir_sub in
22175 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22176 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22177 esac ;;
22178 esac
22179 ac_abs_top_builddir=$ac_pwd
22180 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22181 # for backward compatibility:
22182 ac_top_builddir=$ac_top_build_prefix
22183
22184 case $srcdir in
22185 .) # We are building in place.
22186 ac_srcdir=.
22187 ac_top_srcdir=$ac_top_builddir_sub
22188 ac_abs_top_srcdir=$ac_pwd ;;
22189 [\\/]* | ?:[\\/]* ) # Absolute name.
22190 ac_srcdir=$srcdir$ac_dir_suffix;
22191 ac_top_srcdir=$srcdir
22192 ac_abs_top_srcdir=$srcdir ;;
22193 *) # Relative name.
22194 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22195 ac_top_srcdir=$ac_top_build_prefix$srcdir
22196 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22197 esac
22198 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22199
22200
22201 case $ac_mode in
22202 :F)
22203 #
22204 # CONFIG_FILE
22205 #
22206
22207 case $INSTALL in
22208 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22209 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22210 esac
22211 ac_MKDIR_P=$MKDIR_P
22212 case $MKDIR_P in
22213 [\\/$]* | ?:[\\/]* ) ;;
22214 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22215 esac
22216 _ACEOF
22217
22218 cat >>$CONFIG_STATUS <<\_ACEOF
22219 # If the template does not know about datarootdir, expand it.
22220 # FIXME: This hack should be removed a few years after 2.60.
22221 ac_datarootdir_hack=; ac_datarootdir_seen=
22222
22223 case `sed -n '/datarootdir/ {
22224 p
22225 q
22226 }
22227 /@datadir@/p
22228 /@docdir@/p
22229 /@infodir@/p
22230 /@localedir@/p
22231 /@mandir@/p
22232 ' $ac_file_inputs` in
22233 *datarootdir*) ac_datarootdir_seen=yes;;
22234 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22235 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22236 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22237 _ACEOF
22238 cat >>$CONFIG_STATUS <<_ACEOF
22239 ac_datarootdir_hack='
22240 s&@datadir@&$datadir&g
22241 s&@docdir@&$docdir&g
22242 s&@infodir@&$infodir&g
22243 s&@localedir@&$localedir&g
22244 s&@mandir@&$mandir&g
22245 s&\\\${datarootdir}&$datarootdir&g' ;;
22246 esac
22247 _ACEOF
22248
22249 # Neutralize VPATH when `$srcdir' = `.'.
22250 # Shell code in configure.ac might set extrasub.
22251 # FIXME: do we really want to maintain this feature?
22252 cat >>$CONFIG_STATUS <<_ACEOF
22253 sed "$ac_vpsub
22254 $extrasub
22255 _ACEOF
22256 cat >>$CONFIG_STATUS <<\_ACEOF
22257 :t
22258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22259 s&@configure_input@&$configure_input&;t t
22260 s&@top_builddir@&$ac_top_builddir_sub&;t t
22261 s&@srcdir@&$ac_srcdir&;t t
22262 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22263 s&@top_srcdir@&$ac_top_srcdir&;t t
22264 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22265 s&@builddir@&$ac_builddir&;t t
22266 s&@abs_builddir@&$ac_abs_builddir&;t t
22267 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22268 s&@INSTALL@&$ac_INSTALL&;t t
22269 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22270 $ac_datarootdir_hack
22271 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22272
22273 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22274 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22275 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22276 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22277 which seems to be undefined. Please make sure it is defined." >&5
22278 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22279 which seems to be undefined. Please make sure it is defined." >&2;}
22280
22281 rm -f "$tmp/stdin"
22282 case $ac_file in
22283 -) cat "$tmp/out"; rm -f "$tmp/out";;
22284 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22285 esac
22286 ;;
22287 :H)
22288 #
22289 # CONFIG_HEADER
22290 #
22291 _ACEOF
22292
22293 # Transform confdefs.h into a sed script `conftest.defines', that
22294 # substitutes the proper values into config.h.in to produce config.h.
22295 rm -f conftest.defines conftest.tail
22296 # First, append a space to every undef/define line, to ease matching.
22297 echo 's/$/ /' >conftest.defines
22298 # Then, protect against being on the right side of a sed subst, or in
22299 # an unquoted here document, in config.status. If some macros were
22300 # called several times there might be several #defines for the same
22301 # symbol, which is useless. But do not sort them, since the last
22302 # AC_DEFINE must be honored.
22303 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22304 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22305 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22306 # PARAMS is the parameter list in the macro definition--in most cases, it's
22307 # just an empty string.
22308 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22309 ac_dB='\\)[ (].*,\\1define\\2'
22310 ac_dC=' '
22311 ac_dD=' ,'
22312
22313 uniq confdefs.h |
22314 sed -n '
22315 t rset
22316 :rset
22317 s/^[ ]*#[ ]*define[ ][ ]*//
22318 t ok
22319 d
22320 :ok
22321 s/[\\&,]/\\&/g
22322 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22323 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22324 ' >>conftest.defines
22325
22326 # Remove the space that was appended to ease matching.
22327 # Then replace #undef with comments. This is necessary, for
22328 # example, in the case of _POSIX_SOURCE, which is predefined and required
22329 # on some systems where configure will not decide to define it.
22330 # (The regexp can be short, since the line contains either #define or #undef.)
22331 echo 's/ $//
22332 s,^[ #]*u.*,/* & */,' >>conftest.defines
22333
22334 # Break up conftest.defines:
22335 ac_max_sed_lines=50
22336
22337 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22338 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22339 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22340 # et cetera.
22341 ac_in='$ac_file_inputs'
22342 ac_out='"$tmp/out1"'
22343 ac_nxt='"$tmp/out2"'
22344
22345 while :
22346 do
22347 # Write a here document:
22348 cat >>$CONFIG_STATUS <<_ACEOF
22349 # First, check the format of the line:
22350 cat >"\$tmp/defines.sed" <<\\CEOF
22351 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22352 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22353 b
22354 :def
22355 _ACEOF
22356 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22357 echo 'CEOF
22358 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22359 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22360 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22361 grep . conftest.tail >/dev/null || break
22362 rm -f conftest.defines
22363 mv conftest.tail conftest.defines
22364 done
22365 rm -f conftest.defines conftest.tail
22366
22367 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22368 cat >>$CONFIG_STATUS <<\_ACEOF
22369 if test x"$ac_file" != x-; then
22370 echo "/* $configure_input */" >"$tmp/config.h"
22371 cat "$ac_result" >>"$tmp/config.h"
22372 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22373 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22374 echo "$as_me: $ac_file is unchanged" >&6;}
22375 else
22376 rm -f $ac_file
22377 mv "$tmp/config.h" $ac_file
22378 fi
22379 else
22380 echo "/* $configure_input */"
22381 cat "$ac_result"
22382 fi
22383 rm -f "$tmp/out12"
22384 # Compute $ac_file's index in $config_headers.
22385 _am_stamp_count=1
22386 for _am_header in $config_headers :; do
22387 case $_am_header in
22388 $ac_file | $ac_file:* )
22389 break ;;
22390 * )
22391 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22392 esac
22393 done
22394 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22395 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22396 X$ac_file : 'X\(//\)[^/]' \| \
22397 X$ac_file : 'X\(//\)$' \| \
22398 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22399 echo X$ac_file |
22400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22401 s//\1/
22402 q
22403 }
22404 /^X\(\/\/\)[^/].*/{
22405 s//\1/
22406 q
22407 }
22408 /^X\(\/\/\)$/{
22409 s//\1/
22410 q
22411 }
22412 /^X\(\/\).*/{
22413 s//\1/
22414 q
22415 }
22416 s/.*/./; q'`/stamp-h$_am_stamp_count
22417 ;;
22418
22419 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22420 echo "$as_me: executing $ac_file commands" >&6;}
22421 ;;
22422 esac
22423
22424
22425 case $ac_file$ac_mode in
22426 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22427 # Strip MF so we end up with the name of the file.
22428 mf=`echo "$mf" | sed -e 's/:.*$//'`
22429 # Check whether this is an Automake generated Makefile or not.
22430 # We used to match only the files named `Makefile.in', but
22431 # some people rename them; so instead we look at the file content.
22432 # Grep'ing the first line is not enough: some people post-process
22433 # each Makefile.in and add a new line on top of each file to say so.
22434 # Grep'ing the whole file is not good either: AIX grep has a line
22435 # limit of 2048, but all sed's we know have understand at least 4000.
22436 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22437 dirpart=`$as_dirname -- "$mf" ||
22438 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22439 X"$mf" : 'X\(//\)[^/]' \| \
22440 X"$mf" : 'X\(//\)$' \| \
22441 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22442 echo X"$mf" |
22443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22444 s//\1/
22445 q
22446 }
22447 /^X\(\/\/\)[^/].*/{
22448 s//\1/
22449 q
22450 }
22451 /^X\(\/\/\)$/{
22452 s//\1/
22453 q
22454 }
22455 /^X\(\/\).*/{
22456 s//\1/
22457 q
22458 }
22459 s/.*/./; q'`
22460 else
22461 continue
22462 fi
22463 # Extract the definition of DEPDIR, am__include, and am__quote
22464 # from the Makefile without running `make'.
22465 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22466 test -z "$DEPDIR" && continue
22467 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22468 test -z "am__include" && continue
22469 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22470 # When using ansi2knr, U may be empty or an underscore; expand it
22471 U=`sed -n 's/^U = //p' < "$mf"`
22472 # Find all dependency output files, they are included files with
22473 # $(DEPDIR) in their names. We invoke sed twice because it is the
22474 # simplest approach to changing $(DEPDIR) to its actual value in the
22475 # expansion.
22476 for file in `sed -n "
22477 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22478 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22479 # Make sure the directory exists.
22480 test -f "$dirpart/$file" && continue
22481 fdir=`$as_dirname -- "$file" ||
22482 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22483 X"$file" : 'X\(//\)[^/]' \| \
22484 X"$file" : 'X\(//\)$' \| \
22485 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22486 echo X"$file" |
22487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22488 s//\1/
22489 q
22490 }
22491 /^X\(\/\/\)[^/].*/{
22492 s//\1/
22493 q
22494 }
22495 /^X\(\/\/\)$/{
22496 s//\1/
22497 q
22498 }
22499 /^X\(\/\).*/{
22500 s//\1/
22501 q
22502 }
22503 s/.*/./; q'`
22504 { as_dir=$dirpart/$fdir
22505 case $as_dir in #(
22506 -*) as_dir=./$as_dir;;
22507 esac
22508 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22509 as_dirs=
22510 while :; do
22511 case $as_dir in #(
22512 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22513 *) as_qdir=$as_dir;;
22514 esac
22515 as_dirs="'$as_qdir' $as_dirs"
22516 as_dir=`$as_dirname -- "$as_dir" ||
22517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22518 X"$as_dir" : 'X\(//\)[^/]' \| \
22519 X"$as_dir" : 'X\(//\)$' \| \
22520 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22521 echo X"$as_dir" |
22522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22523 s//\1/
22524 q
22525 }
22526 /^X\(\/\/\)[^/].*/{
22527 s//\1/
22528 q
22529 }
22530 /^X\(\/\/\)$/{
22531 s//\1/
22532 q
22533 }
22534 /^X\(\/\).*/{
22535 s//\1/
22536 q
22537 }
22538 s/.*/./; q'`
22539 test -d "$as_dir" && break
22540 done
22541 test -z "$as_dirs" || eval "mkdir $as_dirs"
22542 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22543 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22544 { (exit 1); exit 1; }; }; }
22545 # echo "creating $dirpart/$file"
22546 echo '# dummy' > "$dirpart/$file"
22547 done
22548 done
22549 ;;
22550
22551 esac
22552 done # for ac_tag
22553
22554
22555 { (exit 0); exit 0; }
22556 _ACEOF
22557 chmod +x $CONFIG_STATUS
22558 ac_clean_files=$ac_clean_files_save
22559
22560
22561 # configure is writing to config.log, and then calls config.status.
22562 # config.status does its own redirection, appending to config.log.
22563 # Unfortunately, on DOS this fails, as config.log is still kept open
22564 # by configure, so config.status won't be able to write to it; its
22565 # output is simply discarded. So we exec the FD to /dev/null,
22566 # effectively closing config.log, so it can be properly (re)opened and
22567 # appended to by config.status. When coming back to configure, we
22568 # need to make the FD available again.
22569 if test "$no_create" != yes; then
22570 ac_cs_success=:
22571 ac_config_status_args=
22572 test "$silent" = yes &&
22573 ac_config_status_args="$ac_config_status_args --quiet"
22574 exec 5>/dev/null
22575 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22576 exec 5>>config.log
22577 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22578 # would make configure fail if this is the last instruction.
22579 $ac_cs_success || { (exit 1); exit 1; }
22580 fi
22581