Imported upstream version 0.60.1
[hcoop/debian/courier-authlib.git] / liblog / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for courierlogger 0.10.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='courierlogger'
730 PACKAGE_TARNAME='courierlogger'
731 PACKAGE_VERSION='0.10'
732 PACKAGE_STRING='courierlogger 0.10'
733 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735 ac_unique_file="logger.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 CC
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
847 LN_S
848 build
849 build_cpu
850 build_vendor
851 build_os
852 host
853 host_cpu
854 host_vendor
855 host_os
856 SED
857 GREP
858 EGREP
859 ECHO
860 AR
861 RANLIB
862 CPP
863 CXX
864 CXXFLAGS
865 ac_ct_CXX
866 CXXDEPMODE
867 am__fastdepCXX_TRUE
868 am__fastdepCXX_FALSE
869 CXXCPP
870 F77
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 HAVE_SGML_TRUE
875 HAVE_SGML_FALSE
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 courierlogger 0.10 to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/courierlogger]
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 courierlogger 0.10:";;
1467 esac
1468 cat <<\_ACEOF
1469
1470 Optional Features:
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --disable-dependency-tracking speeds up one-time build
1474 --enable-dependency-tracking do not reject slow dependency extractors
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480
1481 Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-pic try to use only PIC/non-PIC objects [default=use
1486 both]
1487 --with-tags[=TAGS] include additional configurations [automatic]
1488 --with-syslog=XXX syslog facility [MAIL]
1489
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 CPP C preprocessor
1499 CXX C++ compiler command
1500 CXXFLAGS C++ compiler flags
1501 CXXCPP C++ preprocessor
1502 F77 Fortran 77 compiler command
1503 FFLAGS Fortran 77 compiler flags
1504
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1507
1508 Report bugs to <courier-users@lists.sourceforge.net>.
1509 _ACEOF
1510 ac_status=$?
1511 fi
1512
1513 if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516 test -d "$ac_dir" || continue
1517 ac_builddir=.
1518
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *)
1522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1534
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1559 else
1560 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1563 done
1564 fi
1565
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568 cat <<\_ACEOF
1569 courierlogger configure 0.10
1570 generated by GNU Autoconf 2.61
1571
1572 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1573 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1578 fi
1579 cat >config.log <<_ACEOF
1580 This file contains any messages produced by compilers while
1581 running configure, to aid debugging if configure makes a mistake.
1582
1583 It was created by courierlogger $as_me 0.10, which was
1584 generated by GNU Autoconf 2.61. Invocation command line was
1585
1586 $ $0 $@
1587
1588 _ACEOF
1589 exec 5>>config.log
1590 {
1591 cat <<_ASUNAME
1592 ## --------- ##
1593 ## Platform. ##
1594 ## --------- ##
1595
1596 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1601
1602 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1604
1605 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1606 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1607 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1608 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1609 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1610 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1611 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1612
1613 _ASUNAME
1614
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 echo "PATH: $as_dir"
1621 done
1622 IFS=$as_save_IFS
1623
1624 } >&5
1625
1626 cat >&5 <<_ACEOF
1627
1628
1629 ## ----------- ##
1630 ## Core tests. ##
1631 ## ----------- ##
1632
1633 _ACEOF
1634
1635
1636 # Keep a trace of the command line.
1637 # Strip out --no-create and --no-recursion so they do not pile up.
1638 # Strip out --silent because we don't want to record it for future runs.
1639 # Also quote any args containing shell meta-characters.
1640 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_configure_args=
1642 ac_configure_args0=
1643 ac_configure_args1=
1644 ac_must_keep_next=false
1645 for ac_pass in 1 2
1646 do
1647 for ac_arg
1648 do
1649 case $ac_arg in
1650 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652 | -silent | --silent | --silen | --sile | --sil)
1653 continue ;;
1654 *\'*)
1655 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1656 esac
1657 case $ac_pass in
1658 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659 2)
1660 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1661 if test $ac_must_keep_next = true; then
1662 ac_must_keep_next=false # Got value, back to normal.
1663 else
1664 case $ac_arg in
1665 *=* | --config-cache | -C | -disable-* | --disable-* \
1666 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668 | -with-* | --with-* | -without-* | --without-* | --x)
1669 case "$ac_configure_args0 " in
1670 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1671 esac
1672 ;;
1673 -* ) ac_must_keep_next=true ;;
1674 esac
1675 fi
1676 ac_configure_args="$ac_configure_args '$ac_arg'"
1677 ;;
1678 esac
1679 done
1680 done
1681 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1682 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683
1684 # When interrupted or exit'd, cleanup temporary files, and complete
1685 # config.log. We remove comments because anyway the quotes in there
1686 # would cause problems or look ugly.
1687 # WARNING: Use '\'' to represent an apostrophe within the trap.
1688 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1689 trap 'exit_status=$?
1690 # Save into config.log some information that might help in debugging.
1691 {
1692 echo
1693
1694 cat <<\_ASBOX
1695 ## ---------------- ##
1696 ## Cache variables. ##
1697 ## ---------------- ##
1698 _ASBOX
1699 echo
1700 # The following way of writing the cache mishandles newlines in values,
1701 (
1702 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1703 eval ac_val=\$$ac_var
1704 case $ac_val in #(
1705 *${as_nl}*)
1706 case $ac_var in #(
1707 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1708 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1709 esac
1710 case $ac_var in #(
1711 _ | IFS | as_nl) ;; #(
1712 *) $as_unset $ac_var ;;
1713 esac ;;
1714 esac
1715 done
1716 (set) 2>&1 |
1717 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1718 *${as_nl}ac_space=\ *)
1719 sed -n \
1720 "s/'\''/'\''\\\\'\'''\''/g;
1721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1722 ;; #(
1723 *)
1724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725 ;;
1726 esac |
1727 sort
1728 )
1729 echo
1730
1731 cat <<\_ASBOX
1732 ## ----------------- ##
1733 ## Output variables. ##
1734 ## ----------------- ##
1735 _ASBOX
1736 echo
1737 for ac_var in $ac_subst_vars
1738 do
1739 eval ac_val=\$$ac_var
1740 case $ac_val in
1741 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 esac
1743 echo "$ac_var='\''$ac_val'\''"
1744 done | sort
1745 echo
1746
1747 if test -n "$ac_subst_files"; then
1748 cat <<\_ASBOX
1749 ## ------------------- ##
1750 ## File substitutions. ##
1751 ## ------------------- ##
1752 _ASBOX
1753 echo
1754 for ac_var in $ac_subst_files
1755 do
1756 eval ac_val=\$$ac_var
1757 case $ac_val in
1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 esac
1760 echo "$ac_var='\''$ac_val'\''"
1761 done | sort
1762 echo
1763 fi
1764
1765 if test -s confdefs.h; then
1766 cat <<\_ASBOX
1767 ## ----------- ##
1768 ## confdefs.h. ##
1769 ## ----------- ##
1770 _ASBOX
1771 echo
1772 cat confdefs.h
1773 echo
1774 fi
1775 test "$ac_signal" != 0 &&
1776 echo "$as_me: caught signal $ac_signal"
1777 echo "$as_me: exit $exit_status"
1778 } >&5
1779 rm -f core *.core core.conftest.* &&
1780 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1781 exit $exit_status
1782 ' 0
1783 for ac_signal in 1 2 13 15; do
1784 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 done
1786 ac_signal=0
1787
1788 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1789 rm -f -r conftest* confdefs.h
1790
1791 # Predefined preprocessor variables.
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 _ACEOF
1811
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 _ACEOF
1816
1817
1818 # Let the site file select an alternate cache file if it wants to.
1819 # Prefer explicitly selected file to automatically selected ones.
1820 if test -n "$CONFIG_SITE"; then
1821 set x "$CONFIG_SITE"
1822 elif test "x$prefix" != xNONE; then
1823 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824 else
1825 set x "$ac_default_prefix/share/config.site" \
1826 "$ac_default_prefix/etc/config.site"
1827 fi
1828 shift
1829 for ac_site_file
1830 do
1831 if test -r "$ac_site_file"; then
1832 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1833 echo "$as_me: loading site script $ac_site_file" >&6;}
1834 sed 's/^/| /' "$ac_site_file" >&5
1835 . "$ac_site_file"
1836 fi
1837 done
1838
1839 if test -r "$cache_file"; then
1840 # Some versions of bash will fail to source /dev/null (special
1841 # files actually), so we avoid doing that.
1842 if test -f "$cache_file"; then
1843 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1844 echo "$as_me: loading cache $cache_file" >&6;}
1845 case $cache_file in
1846 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1847 *) . "./$cache_file";;
1848 esac
1849 fi
1850 else
1851 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1852 echo "$as_me: creating cache $cache_file" >&6;}
1853 >$cache_file
1854 fi
1855
1856 # Check that the precious variables saved in the cache have kept the same
1857 # value.
1858 ac_cache_corrupted=false
1859 for ac_var in $ac_precious_vars; do
1860 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1861 eval ac_new_set=\$ac_env_${ac_var}_set
1862 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1863 eval ac_new_val=\$ac_env_${ac_var}_value
1864 case $ac_old_set,$ac_new_set in
1865 set,)
1866 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1869 ,set)
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1871 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1873 ,);;
1874 *)
1875 if test "x$ac_old_val" != "x$ac_new_val"; then
1876 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1877 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1878 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1879 echo "$as_me: former value: $ac_old_val" >&2;}
1880 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1881 echo "$as_me: current value: $ac_new_val" >&2;}
1882 ac_cache_corrupted=:
1883 fi;;
1884 esac
1885 # Pass precious variables to config.status.
1886 if test "$ac_new_set" = set; then
1887 case $ac_new_val in
1888 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1889 *) ac_arg=$ac_var=$ac_new_val ;;
1890 esac
1891 case " $ac_configure_args " in
1892 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1893 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1894 esac
1895 fi
1896 done
1897 if $ac_cache_corrupted; then
1898 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1899 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1900 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1901 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1902 { (exit 1); exit 1; }; }
1903 fi
1904
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 ac_ext=c
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934
1935
1936
1937 >confdefs.h # Kill PACKAGE_ macros.
1938 LPATH="$PATH:/usr/local/bin"
1939
1940 am__api_version='1.10'
1941
1942 ac_aux_dir=
1943 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1944 if test -f "$ac_dir/install-sh"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 break
1948 elif test -f "$ac_dir/install.sh"; then
1949 ac_aux_dir=$ac_dir
1950 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 break
1952 elif test -f "$ac_dir/shtool"; then
1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 break
1956 fi
1957 done
1958 if test -z "$ac_aux_dir"; then
1959 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1960 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1961 { (exit 1); exit 1; }; }
1962 fi
1963
1964 # These three variables are undocumented and unsupported,
1965 # and are intended to be withdrawn in a future Autoconf release.
1966 # They can cause serious problems if a builder's source tree is in a directory
1967 # whose full name contains unusual characters.
1968 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1969 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1970 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971
1972
1973 # Find a good install program. We prefer a C program (faster),
1974 # so one script is as good as another. But avoid the broken or
1975 # incompatible versions:
1976 # SysV /etc/install, /usr/sbin/install
1977 # SunOS /usr/etc/install
1978 # IRIX /sbin/install
1979 # AIX /bin/install
1980 # AmigaOS /C/install, which installs bootblocks on floppy discs
1981 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1982 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1984 # OS/2's system install, which has a completely different semantic
1985 # ./install, which can be erroneously created by make from ./install.sh.
1986 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1987 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1988 if test -z "$INSTALL"; then
1989 if test "${ac_cv_path_install+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1994 do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 # Account for people who put trailing slashes in PATH elements.
1998 case $as_dir/ in
1999 ./ | .// | /cC/* | \
2000 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2001 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2002 /usr/ucb/* ) ;;
2003 *)
2004 # OSF1 and SCO ODT 3.0 have their own names for install.
2005 # Don't use installbsd from OSF since it installs stuff as root
2006 # by default.
2007 for ac_prog in ginstall scoinst install; do
2008 for ac_exec_ext in '' $ac_executable_extensions; do
2009 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2010 if test $ac_prog = install &&
2011 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012 # AIX install. It has an incompatible calling convention.
2013 :
2014 elif test $ac_prog = install &&
2015 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2016 # program-specific install script used by HP pwplus--don't use.
2017 :
2018 else
2019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2020 break 3
2021 fi
2022 fi
2023 done
2024 done
2025 ;;
2026 esac
2027 done
2028 IFS=$as_save_IFS
2029
2030
2031 fi
2032 if test "${ac_cv_path_install+set}" = set; then
2033 INSTALL=$ac_cv_path_install
2034 else
2035 # As a last resort, use the slow shell script. Don't cache a
2036 # value for INSTALL within a source directory, because that will
2037 # break other packages using the cache if that directory is
2038 # removed, or if the value is a relative name.
2039 INSTALL=$ac_install_sh
2040 fi
2041 fi
2042 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2043 echo "${ECHO_T}$INSTALL" >&6; }
2044
2045 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2046 # It thinks the first close brace ends the variable substitution.
2047 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2048
2049 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2050
2051 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2052
2053 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2054 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2055 # Just in case
2056 sleep 1
2057 echo timestamp > conftest.file
2058 # Do `set' in a subshell so we don't clobber the current shell's
2059 # arguments. Must try -L first in case configure is actually a
2060 # symlink; some systems play weird games with the mod time of symlinks
2061 # (eg FreeBSD returns the mod time of the symlink's containing
2062 # directory).
2063 if (
2064 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2065 if test "$*" = "X"; then
2066 # -L didn't work.
2067 set X `ls -t $srcdir/configure conftest.file`
2068 fi
2069 rm -f conftest.file
2070 if test "$*" != "X $srcdir/configure conftest.file" \
2071 && test "$*" != "X conftest.file $srcdir/configure"; then
2072
2073 # If neither matched, then we have a broken ls. This can happen
2074 # if, for instance, CONFIG_SHELL is bash and it inherits a
2075 # broken ls alias from the environment. This has actually
2076 # happened. Such a system could not be considered "sane".
2077 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2078 alias in your environment" >&5
2079 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2080 alias in your environment" >&2;}
2081 { (exit 1); exit 1; }; }
2082 fi
2083
2084 test "$2" = conftest.file
2085 )
2086 then
2087 # Ok.
2088 :
2089 else
2090 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2091 Check your system clock" >&5
2092 echo "$as_me: error: newly created file is older than distributed files!
2093 Check your system clock" >&2;}
2094 { (exit 1); exit 1; }; }
2095 fi
2096 { echo "$as_me:$LINENO: result: yes" >&5
2097 echo "${ECHO_T}yes" >&6; }
2098 test "$program_prefix" != NONE &&
2099 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2100 # Use a double $ so make ignores it.
2101 test "$program_suffix" != NONE &&
2102 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2103 # Double any \ or $. echo might interpret backslashes.
2104 # By default was `s,x,x', remove it if useless.
2105 cat <<\_ACEOF >conftest.sed
2106 s/[\\$]/&&/g;s/;s,x,x,$//
2107 _ACEOF
2108 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2109 rm -f conftest.sed
2110
2111 # expand $ac_aux_dir to an absolute path
2112 am_aux_dir=`cd $ac_aux_dir && pwd`
2113
2114 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2115 # Use eval to expand $SHELL
2116 if eval "$MISSING --run true"; then
2117 am_missing_run="$MISSING --run "
2118 else
2119 am_missing_run=
2120 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2121 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2122 fi
2123
2124 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2125 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2126 if test -z "$MKDIR_P"; then
2127 if test "${ac_cv_path_mkdir+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2132 do
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_prog in mkdir gmkdir; do
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2138 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2139 'mkdir (GNU coreutils) '* | \
2140 'mkdir (coreutils) '* | \
2141 'mkdir (fileutils) '4.1*)
2142 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2143 break 3;;
2144 esac
2145 done
2146 done
2147 done
2148 IFS=$as_save_IFS
2149
2150 fi
2151
2152 if test "${ac_cv_path_mkdir+set}" = set; then
2153 MKDIR_P="$ac_cv_path_mkdir -p"
2154 else
2155 # As a last resort, use the slow shell script. Don't cache a
2156 # value for MKDIR_P within a source directory, because that will
2157 # break other packages using the cache if that directory is
2158 # removed, or if the value is a relative name.
2159 test -d ./--version && rmdir ./--version
2160 MKDIR_P="$ac_install_sh -d"
2161 fi
2162 fi
2163 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2164 echo "${ECHO_T}$MKDIR_P" >&6; }
2165
2166 mkdir_p="$MKDIR_P"
2167 case $mkdir_p in
2168 [\\/$]* | ?:[\\/]*) ;;
2169 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2170 esac
2171
2172 for ac_prog in gawk mawk nawk awk
2173 do
2174 # Extract the first word of "$ac_prog", so it can be a program name with args.
2175 set dummy $ac_prog; ac_word=$2
2176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178 if test "${ac_cv_prog_AWK+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181 if test -n "$AWK"; then
2182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2183 else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191 ac_cv_prog_AWK="$ac_prog"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2194 fi
2195 done
2196 done
2197 IFS=$as_save_IFS
2198
2199 fi
2200 fi
2201 AWK=$ac_cv_prog_AWK
2202 if test -n "$AWK"; then
2203 { echo "$as_me:$LINENO: result: $AWK" >&5
2204 echo "${ECHO_T}$AWK" >&6; }
2205 else
2206 { echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6; }
2208 fi
2209
2210
2211 test -n "$AWK" && break
2212 done
2213
2214 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2215 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2216 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2217 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 cat >conftest.make <<\_ACEOF
2221 SHELL = /bin/sh
2222 all:
2223 @echo '@@@%%%=$(MAKE)=@@@%%%'
2224 _ACEOF
2225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2226 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2227 *@@@%%%=?*=@@@%%%*)
2228 eval ac_cv_prog_make_${ac_make}_set=yes;;
2229 *)
2230 eval ac_cv_prog_make_${ac_make}_set=no;;
2231 esac
2232 rm -f conftest.make
2233 fi
2234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6; }
2237 SET_MAKE=
2238 else
2239 { echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6; }
2241 SET_MAKE="MAKE=${MAKE-make}"
2242 fi
2243
2244 rm -rf .tst 2>/dev/null
2245 mkdir .tst 2>/dev/null
2246 if test -d .tst; then
2247 am__leading_dot=.
2248 else
2249 am__leading_dot=_
2250 fi
2251 rmdir .tst 2>/dev/null
2252
2253 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2254 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2255 # is not polluted with repeated "-I."
2256 am__isrc=' -I$(srcdir)'
2257 # test to see if srcdir already configured
2258 if test -f $srcdir/config.status; then
2259 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2260 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2261 { (exit 1); exit 1; }; }
2262 fi
2263 fi
2264
2265 # test whether we have cygpath
2266 if test -z "$CYGPATH_W"; then
2267 if (cygpath --version) >/dev/null 2>/dev/null; then
2268 CYGPATH_W='cygpath -w'
2269 else
2270 CYGPATH_W=echo
2271 fi
2272 fi
2273
2274
2275 # Define the identity of the package.
2276 PACKAGE='courierlogger'
2277 VERSION='0.10'
2278
2279
2280 # Some tools Automake needs.
2281
2282 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2283
2284
2285 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2286
2287
2288 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2289
2290
2291 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2292
2293
2294 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2295
2296 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2297
2298 # Installed binaries are usually stripped using `strip' when the user
2299 # run `make install-strip'. However `strip' might not be the right
2300 # tool to use in cross-compilation environments, therefore Automake
2301 # will honor the `STRIP' environment variable to overrule this program.
2302 if test "$cross_compiling" != no; then
2303 if test -n "$ac_tool_prefix"; then
2304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2305 set dummy ${ac_tool_prefix}strip; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_prog_STRIP+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311 if test -n "$STRIP"; then
2312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 break 2
2324 fi
2325 done
2326 done
2327 IFS=$as_save_IFS
2328
2329 fi
2330 fi
2331 STRIP=$ac_cv_prog_STRIP
2332 if test -n "$STRIP"; then
2333 { echo "$as_me:$LINENO: result: $STRIP" >&5
2334 echo "${ECHO_T}$STRIP" >&6; }
2335 else
2336 { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2338 fi
2339
2340
2341 fi
2342 if test -z "$ac_cv_prog_STRIP"; then
2343 ac_ct_STRIP=$STRIP
2344 # Extract the first word of "strip", so it can be a program name with args.
2345 set dummy strip; ac_word=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 if test -n "$ac_ct_STRIP"; then
2352 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361 ac_cv_prog_ac_ct_STRIP="strip"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2364 fi
2365 done
2366 done
2367 IFS=$as_save_IFS
2368
2369 fi
2370 fi
2371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2372 if test -n "$ac_ct_STRIP"; then
2373 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2374 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2375 else
2376 { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2378 fi
2379
2380 if test "x$ac_ct_STRIP" = x; then
2381 STRIP=":"
2382 else
2383 case $cross_compiling:$ac_tool_warned in
2384 yes:)
2385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2386 whose name does not start with the host triplet. If you think this
2387 configuration is useful to you, please write to autoconf@gnu.org." >&5
2388 echo "$as_me: 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." >&2;}
2391 ac_tool_warned=yes ;;
2392 esac
2393 STRIP=$ac_ct_STRIP
2394 fi
2395 else
2396 STRIP="$ac_cv_prog_STRIP"
2397 fi
2398
2399 fi
2400 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2401
2402 # We need awk for the "check" target. The system "awk" is bad on
2403 # some platforms.
2404 # Always define AMTAR for backward compatibility.
2405
2406 AMTAR=${AMTAR-"${am_missing_run}tar"}
2407
2408 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2409
2410
2411
2412
2413
2414 ac_config_headers="$ac_config_headers config.h"
2415
2416
2417 ac_ext=c
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422 if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2424 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2443 fi
2444 done
2445 done
2446 IFS=$as_save_IFS
2447
2448 fi
2449 fi
2450 CC=$ac_cv_prog_CC
2451 if test -n "$CC"; then
2452 { echo "$as_me:$LINENO: result: $CC" >&5
2453 echo "${ECHO_T}$CC" >&6; }
2454 else
2455 { echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6; }
2457 fi
2458
2459
2460 fi
2461 if test -z "$ac_cv_prog_CC"; then
2462 ac_ct_CC=$CC
2463 # Extract the first word of "gcc", so it can be a program name with args.
2464 set dummy gcc; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470 if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_ac_ct_CC="gcc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491 if test -n "$ac_ct_CC"; then
2492 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493 echo "${ECHO_T}$ac_ct_CC" >&6; }
2494 else
2495 { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2497 fi
2498
2499 if test "x$ac_ct_CC" = x; then
2500 CC=""
2501 else
2502 case $cross_compiling:$ac_tool_warned in
2503 yes:)
2504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet. If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&5
2507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet. If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510 ac_tool_warned=yes ;;
2511 esac
2512 CC=$ac_ct_CC
2513 fi
2514 else
2515 CC="$ac_cv_prog_CC"
2516 fi
2517
2518 if test -z "$CC"; then
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}cc; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_CC="${ac_tool_prefix}cc"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 CC=$ac_cv_prog_CC
2548 if test -n "$CC"; then
2549 { echo "$as_me:$LINENO: result: $CC" >&5
2550 echo "${ECHO_T}$CC" >&6; }
2551 else
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2554 fi
2555
2556
2557 fi
2558 fi
2559 if test -z "$CC"; then
2560 # Extract the first word of "cc", so it can be a program name with args.
2561 set dummy cc; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2569 else
2570 ac_prog_rejected=no
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579 ac_prog_rejected=yes
2580 continue
2581 fi
2582 ac_cv_prog_CC="cc"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586 done
2587 done
2588 IFS=$as_save_IFS
2589
2590 if test $ac_prog_rejected = yes; then
2591 # We found a bogon in the path, so make sure we never use it.
2592 set dummy $ac_cv_prog_CC
2593 shift
2594 if test $# != 0; then
2595 # We chose a different compiler from the bogus one.
2596 # However, it has the same basename, so the bogon will be chosen
2597 # first if we set CC to just the basename; use the full file name.
2598 shift
2599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2600 fi
2601 fi
2602 fi
2603 fi
2604 CC=$ac_cv_prog_CC
2605 if test -n "$CC"; then
2606 { echo "$as_me:$LINENO: result: $CC" >&5
2607 echo "${ECHO_T}$CC" >&6; }
2608 else
2609 { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2611 fi
2612
2613
2614 fi
2615 if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
2617 for ac_prog in cl.exe
2618 do
2619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648 { echo "$as_me:$LINENO: result: $CC" >&5
2649 echo "${ECHO_T}$CC" >&6; }
2650 else
2651 { echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6; }
2653 fi
2654
2655
2656 test -n "$CC" && break
2657 done
2658 fi
2659 if test -z "$CC"; then
2660 ac_ct_CC=$CC
2661 for ac_prog in cl.exe
2662 do
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664 set dummy $ac_prog; 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_ac_ct_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691 if test -n "$ac_ct_CC"; then
2692 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2693 echo "${ECHO_T}$ac_ct_CC" >&6; }
2694 else
2695 { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2697 fi
2698
2699
2700 test -n "$ac_ct_CC" && break
2701 done
2702
2703 if test "x$ac_ct_CC" = x; then
2704 CC=""
2705 else
2706 case $cross_compiling:$ac_tool_warned in
2707 yes:)
2708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2709 whose name does not start with the host triplet. If you think this
2710 configuration is useful to you, please write to autoconf@gnu.org." >&5
2711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2712 whose name does not start with the host triplet. If you think this
2713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2714 ac_tool_warned=yes ;;
2715 esac
2716 CC=$ac_ct_CC
2717 fi
2718 fi
2719
2720 fi
2721
2722
2723 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2724 See \`config.log' for more details." >&5
2725 echo "$as_me: error: no acceptable C compiler found in \$PATH
2726 See \`config.log' for more details." >&2;}
2727 { (exit 1); exit 1; }; }
2728
2729 # Provide some information about the compiler.
2730 echo "$as_me:$LINENO: checking for C compiler version" >&5
2731 ac_compiler=`set X $ac_compile; echo $2`
2732 { (ac_try="$ac_compiler --version >&5"
2733 case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler --version >&5") 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2742 { (ac_try="$ac_compiler -v >&5"
2743 case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler -v >&5") 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2752 { (ac_try="$ac_compiler -V >&5"
2753 case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756 esac
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compiler -V >&5") 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
2762
2763 cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h. */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2769
2770 int
2771 main ()
2772 {
2773
2774 ;
2775 return 0;
2776 }
2777 _ACEOF
2778 ac_clean_files_save=$ac_clean_files
2779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2780 # Try to create an executable without -o first, disregard a.out.
2781 # It will help us diagnose broken compilers, and finding out an intuition
2782 # of exeext.
2783 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2786 #
2787 # List of possible output files, starting from the most likely.
2788 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2789 # only as a last resort. b.out is created by i960 compilers.
2790 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2791 #
2792 # The IRIX 6 linker writes into existing files which may not be
2793 # executable, retaining their permissions. Remove them first so a
2794 # subsequent execution test works.
2795 ac_rmfiles=
2796 for ac_file in $ac_files
2797 do
2798 case $ac_file in
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2801 esac
2802 done
2803 rm -f $ac_rmfiles
2804
2805 if { (ac_try="$ac_link_default"
2806 case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_link_default") 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; then
2815 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2816 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2817 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2818 # so that the user can short-circuit this test for compilers unknown to
2819 # Autoconf.
2820 for ac_file in $ac_files ''
2821 do
2822 test -f "$ac_file" || continue
2823 case $ac_file in
2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2825 ;;
2826 [ab].out )
2827 # We found the default executable, but exeext='' is most
2828 # certainly right.
2829 break;;
2830 *.* )
2831 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2832 then :; else
2833 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2834 fi
2835 # We set ac_cv_exeext here because the later test for it is not
2836 # safe: cross compilers may not add the suffix if given an `-o'
2837 # argument, so we may need to know it at that point already.
2838 # Even if this section looks crufty: it has the advantage of
2839 # actually working.
2840 break;;
2841 * )
2842 break;;
2843 esac
2844 done
2845 test "$ac_cv_exeext" = no && ac_cv_exeext=
2846
2847 else
2848 ac_file=''
2849 fi
2850
2851 { echo "$as_me:$LINENO: result: $ac_file" >&5
2852 echo "${ECHO_T}$ac_file" >&6; }
2853 if test -z "$ac_file"; then
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2856
2857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: C compiler cannot create executables
2860 See \`config.log' for more details." >&2;}
2861 { (exit 77); exit 77; }; }
2862 fi
2863
2864 ac_exeext=$ac_cv_exeext
2865
2866 # Check that the compiler produces executables we can run. If not, either
2867 # the compiler is broken, or we cross compile.
2868 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2869 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2870 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2871 # If not cross compiling, check that we can run a simple program.
2872 if test "$cross_compiling" != yes; then
2873 if { ac_try='./$ac_file'
2874 { (case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_try") 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 cross_compiling=no
2884 else
2885 if test "$cross_compiling" = maybe; then
2886 cross_compiling=yes
2887 else
2888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2889 If you meant to cross compile, use \`--host'.
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: cannot run C compiled programs.
2892 If you meant to cross compile, use \`--host'.
2893 See \`config.log' for more details." >&2;}
2894 { (exit 1); exit 1; }; }
2895 fi
2896 fi
2897 fi
2898 { echo "$as_me:$LINENO: result: yes" >&5
2899 echo "${ECHO_T}yes" >&6; }
2900
2901 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2902 ac_clean_files=$ac_clean_files_save
2903 # Check that the compiler produces executables we can run. If not, either
2904 # the compiler is broken, or we cross compile.
2905 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2906 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2907 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2908 echo "${ECHO_T}$cross_compiling" >&6; }
2909
2910 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2911 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2912 if { (ac_try="$ac_link"
2913 case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_link") 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; then
2922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2923 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2924 # work properly (i.e., refer to `conftest.exe'), while it won't with
2925 # `rm'.
2926 for ac_file in conftest.exe conftest conftest.*; do
2927 test -f "$ac_file" || continue
2928 case $ac_file in
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931 break;;
2932 * ) break;;
2933 esac
2934 done
2935 else
2936 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2937 See \`config.log' for more details." >&5
2938 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2939 See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }
2941 fi
2942
2943 rm -f conftest$ac_cv_exeext
2944 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2945 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2946
2947 rm -f conftest.$ac_ext
2948 EXEEXT=$ac_cv_exeext
2949 ac_exeext=$EXEEXT
2950 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2951 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2952 if test "${ac_cv_objext+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955 cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h. */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2961
2962 int
2963 main ()
2964 {
2965
2966 ;
2967 return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.o conftest.obj
2971 if { (ac_try="$ac_compile"
2972 case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; then
2981 for ac_file in conftest.o conftest.obj conftest.*; do
2982 test -f "$ac_file" || continue;
2983 case $ac_file in
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2986 break;;
2987 esac
2988 done
2989 else
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2992
2993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2994 See \`config.log' for more details." >&5
2995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2996 See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
2998 fi
2999
3000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3001 fi
3002 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3003 echo "${ECHO_T}$ac_cv_objext" >&6; }
3004 OBJEXT=$ac_cv_objext
3005 ac_objext=$OBJEXT
3006 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 else
3011 cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017
3018 int
3019 main ()
3020 {
3021 #ifndef __GNUC__
3022 choke me
3023 #endif
3024
3025 ;
3026 return 0;
3027 }
3028 _ACEOF
3029 rm -f conftest.$ac_objext
3030 if { (ac_try="$ac_compile"
3031 case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compile") 2>conftest.er1
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } && {
3043 test -z "$ac_c_werror_flag" ||
3044 test ! -s conftest.err
3045 } && test -s conftest.$ac_objext; then
3046 ac_compiler_gnu=yes
3047 else
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051 ac_compiler_gnu=no
3052 fi
3053
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3056
3057 fi
3058 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3060 GCC=`test $ac_compiler_gnu = yes && echo yes`
3061 ac_test_CFLAGS=${CFLAGS+set}
3062 ac_save_CFLAGS=$CFLAGS
3063 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3065 if test "${ac_cv_prog_cc_g+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 ac_save_c_werror_flag=$ac_c_werror_flag
3069 ac_c_werror_flag=yes
3070 ac_cv_prog_cc_g=no
3071 CFLAGS="-g"
3072 cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3078
3079 int
3080 main ()
3081 {
3082
3083 ;
3084 return 0;
3085 }
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3104 ac_cv_prog_cc_g=yes
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116
3117 int
3118 main ()
3119 {
3120
3121 ;
3122 return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3142 :
3143 else
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3148 CFLAGS="-g"
3149 cat >conftest.$ac_ext <<_ACEOF
3150 /* confdefs.h. */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3155
3156 int
3157 main ()
3158 {
3159
3160 ;
3161 return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 ac_cv_prog_cc_g=yes
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 fi
3191
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 fi
3194
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_c_werror_flag=$ac_save_c_werror_flag
3197 fi
3198 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3199 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3200 if test "$ac_test_CFLAGS" = set; then
3201 CFLAGS=$ac_save_CFLAGS
3202 elif test $ac_cv_prog_cc_g = yes; then
3203 if test "$GCC" = yes; then
3204 CFLAGS="-g -O2"
3205 else
3206 CFLAGS="-g"
3207 fi
3208 else
3209 if test "$GCC" = yes; then
3210 CFLAGS="-O2"
3211 else
3212 CFLAGS=
3213 fi
3214 fi
3215 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3216 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3217 if test "${ac_cv_prog_cc_c89+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 ac_cv_prog_cc_c89=no
3221 ac_save_CC=$CC
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228 #include <stdarg.h>
3229 #include <stdio.h>
3230 #include <sys/types.h>
3231 #include <sys/stat.h>
3232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3233 struct buf { int x; };
3234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235 static char *e (p, i)
3236 char **p;
3237 int i;
3238 {
3239 return p[i];
3240 }
3241 static char *f (char * (*g) (char **, int), char **p, ...)
3242 {
3243 char *s;
3244 va_list v;
3245 va_start (v,p);
3246 s = g (p, va_arg (v,int));
3247 va_end (v);
3248 return s;
3249 }
3250
3251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3252 function prototypes and stuff, but not '\xHH' hex character constants.
3253 These don't provoke an error unfortunately, instead are silently treated
3254 as 'x'. The following induces an error, until -std is added to get
3255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3256 array size at least. It's necessary to write '\x00'==0 to get something
3257 that's true only with -std. */
3258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259
3260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261 inside strings and character constants. */
3262 #define FOO(x) 'x'
3263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264
3265 int test (int i, double x);
3266 struct s1 {int (*f) (int a);};
3267 struct s2 {int (*f) (double a);};
3268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3269 int argc;
3270 char **argv;
3271 int
3272 main ()
3273 {
3274 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3275 ;
3276 return 0;
3277 }
3278 _ACEOF
3279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3281 do
3282 CC="$ac_save_CC $ac_arg"
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3300 ac_cv_prog_cc_c89=$ac_arg
3301 else
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305
3306 fi
3307
3308 rm -f core conftest.err conftest.$ac_objext
3309 test "x$ac_cv_prog_cc_c89" != "xno" && break
3310 done
3311 rm -f conftest.$ac_ext
3312 CC=$ac_save_CC
3313
3314 fi
3315 # AC_CACHE_VAL
3316 case "x$ac_cv_prog_cc_c89" in
3317 x)
3318 { echo "$as_me:$LINENO: result: none needed" >&5
3319 echo "${ECHO_T}none needed" >&6; } ;;
3320 xno)
3321 { echo "$as_me:$LINENO: result: unsupported" >&5
3322 echo "${ECHO_T}unsupported" >&6; } ;;
3323 *)
3324 CC="$CC $ac_cv_prog_cc_c89"
3325 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3326 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3327 esac
3328
3329
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 DEPDIR="${am__leading_dot}deps"
3336
3337 ac_config_commands="$ac_config_commands depfiles"
3338
3339
3340 am_make=${MAKE-make}
3341 cat > confinc << 'END'
3342 am__doit:
3343 @echo done
3344 .PHONY: am__doit
3345 END
3346 # If we don't find an include directive, just comment out the code.
3347 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3348 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3349 am__include="#"
3350 am__quote=
3351 _am_result=none
3352 # First try GNU make style include.
3353 echo "include confinc" > confmf
3354 # We grep out `Entering directory' and `Leaving directory'
3355 # messages which can occur if `w' ends up in MAKEFLAGS.
3356 # In particular we don't look at `^make:' because GNU make might
3357 # be invoked under some other name (usually "gmake"), in which
3358 # case it prints its new name instead of `make'.
3359 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3360 am__include=include
3361 am__quote=
3362 _am_result=GNU
3363 fi
3364 # Now try BSD make style include.
3365 if test "$am__include" = "#"; then
3366 echo '.include "confinc"' > confmf
3367 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3368 am__include=.include
3369 am__quote="\""
3370 _am_result=BSD
3371 fi
3372 fi
3373
3374
3375 { echo "$as_me:$LINENO: result: $_am_result" >&5
3376 echo "${ECHO_T}$_am_result" >&6; }
3377 rm -f confinc confmf
3378
3379 # Check whether --enable-dependency-tracking was given.
3380 if test "${enable_dependency_tracking+set}" = set; then
3381 enableval=$enable_dependency_tracking;
3382 fi
3383
3384 if test "x$enable_dependency_tracking" != xno; then
3385 am_depcomp="$ac_aux_dir/depcomp"
3386 AMDEPBACKSLASH='\'
3387 fi
3388 if test "x$enable_dependency_tracking" != xno; then
3389 AMDEP_TRUE=
3390 AMDEP_FALSE='#'
3391 else
3392 AMDEP_TRUE='#'
3393 AMDEP_FALSE=
3394 fi
3395
3396
3397
3398 depcc="$CC" am_compiler_list=
3399
3400 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3401 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3402 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3406 # We make a subdir and do the tests there. Otherwise we can end up
3407 # making bogus files that we don't know about and never remove. For
3408 # instance it was reported that on HP-UX the gcc test will end up
3409 # making a dummy file named `D' -- because `-MD' means `put the output
3410 # in D'.
3411 mkdir conftest.dir
3412 # Copy depcomp to subdir because otherwise we won't find it if we're
3413 # using a relative directory.
3414 cp "$am_depcomp" conftest.dir
3415 cd conftest.dir
3416 # We will build objects and dependencies in a subdirectory because
3417 # it helps to detect inapplicable dependency modes. For instance
3418 # both Tru64's cc and ICC support -MD to output dependencies as a
3419 # side effect of compilation, but ICC will put the dependencies in
3420 # the current directory while Tru64 will put them in the object
3421 # directory.
3422 mkdir sub
3423
3424 am_cv_CC_dependencies_compiler_type=none
3425 if test "$am_compiler_list" = ""; then
3426 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3427 fi
3428 for depmode in $am_compiler_list; do
3429 # Setup a source with many dependencies, because some compilers
3430 # like to wrap large dependency lists on column 80 (with \), and
3431 # we should not choose a depcomp mode which is confused by this.
3432 #
3433 # We need to recreate these files for each test, as the compiler may
3434 # overwrite some of them when testing with obscure command lines.
3435 # This happens at least with the AIX C compiler.
3436 : > sub/conftest.c
3437 for i in 1 2 3 4 5 6; do
3438 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3439 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3440 # Solaris 8's {/usr,}/bin/sh.
3441 touch sub/conftst$i.h
3442 done
3443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3444
3445 case $depmode in
3446 nosideeffect)
3447 # after this tag, mechanisms are not by side-effect, so they'll
3448 # only be used when explicitly requested
3449 if test "x$enable_dependency_tracking" = xyes; then
3450 continue
3451 else
3452 break
3453 fi
3454 ;;
3455 none) break ;;
3456 esac
3457 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3458 # mode. It turns out that the SunPro C++ compiler does not properly
3459 # handle `-M -o', and we need to detect this.
3460 if depmode=$depmode \
3461 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3462 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3463 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3464 >/dev/null 2>conftest.err &&
3465 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3466 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3467 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3468 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3469 # icc doesn't choke on unknown options, it will just issue warnings
3470 # or remarks (even with -Werror). So we grep stderr for any message
3471 # that says an option was ignored or not supported.
3472 # When given -MP, icc 7.0 and 7.1 complain thusly:
3473 # icc: Command line warning: ignoring option '-M'; no argument required
3474 # The diagnosis changed in icc 8.0:
3475 # icc: Command line remark: option '-MP' not supported
3476 if (grep 'ignoring option' conftest.err ||
3477 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3478 am_cv_CC_dependencies_compiler_type=$depmode
3479 break
3480 fi
3481 fi
3482 done
3483
3484 cd ..
3485 rm -rf conftest.dir
3486 else
3487 am_cv_CC_dependencies_compiler_type=none
3488 fi
3489
3490 fi
3491 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3492 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3493 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3494
3495 if
3496 test "x$enable_dependency_tracking" != xno \
3497 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3498 am__fastdepCC_TRUE=
3499 am__fastdepCC_FALSE='#'
3500 else
3501 am__fastdepCC_TRUE='#'
3502 am__fastdepCC_FALSE=
3503 fi
3504
3505
3506 # Find a good install program. We prefer a C program (faster),
3507 # so one script is as good as another. But avoid the broken or
3508 # incompatible versions:
3509 # SysV /etc/install, /usr/sbin/install
3510 # SunOS /usr/etc/install
3511 # IRIX /sbin/install
3512 # AIX /bin/install
3513 # AmigaOS /C/install, which installs bootblocks on floppy discs
3514 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3515 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3516 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3517 # OS/2's system install, which has a completely different semantic
3518 # ./install, which can be erroneously created by make from ./install.sh.
3519 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3520 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3521 if test -z "$INSTALL"; then
3522 if test "${ac_cv_path_install+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 # Account for people who put trailing slashes in PATH elements.
3531 case $as_dir/ in
3532 ./ | .// | /cC/* | \
3533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3534 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3535 /usr/ucb/* ) ;;
3536 *)
3537 # OSF1 and SCO ODT 3.0 have their own names for install.
3538 # Don't use installbsd from OSF since it installs stuff as root
3539 # by default.
3540 for ac_prog in ginstall scoinst install; do
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3543 if test $ac_prog = install &&
3544 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3545 # AIX install. It has an incompatible calling convention.
3546 :
3547 elif test $ac_prog = install &&
3548 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3549 # program-specific install script used by HP pwplus--don't use.
3550 :
3551 else
3552 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3553 break 3
3554 fi
3555 fi
3556 done
3557 done
3558 ;;
3559 esac
3560 done
3561 IFS=$as_save_IFS
3562
3563
3564 fi
3565 if test "${ac_cv_path_install+set}" = set; then
3566 INSTALL=$ac_cv_path_install
3567 else
3568 # As a last resort, use the slow shell script. Don't cache a
3569 # value for INSTALL within a source directory, because that will
3570 # break other packages using the cache if that directory is
3571 # removed, or if the value is a relative name.
3572 INSTALL=$ac_install_sh
3573 fi
3574 fi
3575 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3576 echo "${ECHO_T}$INSTALL" >&6; }
3577
3578 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3579 # It thinks the first close brace ends the variable substitution.
3580 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3581
3582 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3583
3584 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3585
3586 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3587 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3588 LN_S=$as_ln_s
3589 if test "$LN_S" = "ln -s"; then
3590 { echo "$as_me:$LINENO: result: yes" >&5
3591 echo "${ECHO_T}yes" >&6; }
3592 else
3593 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3594 echo "${ECHO_T}no, using $LN_S" >&6; }
3595 fi
3596
3597 # Check whether --enable-shared was given.
3598 if test "${enable_shared+set}" = set; then
3599 enableval=$enable_shared; p=${PACKAGE-default}
3600 case $enableval in
3601 yes) enable_shared=yes ;;
3602 no) enable_shared=no ;;
3603 *)
3604 enable_shared=no
3605 # Look at the argument we got. We use all the common list separators.
3606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3607 for pkg in $enableval; do
3608 IFS="$lt_save_ifs"
3609 if test "X$pkg" = "X$p"; then
3610 enable_shared=yes
3611 fi
3612 done
3613 IFS="$lt_save_ifs"
3614 ;;
3615 esac
3616 else
3617 enable_shared=yes
3618 fi
3619
3620
3621 # Check whether --enable-static was given.
3622 if test "${enable_static+set}" = set; then
3623 enableval=$enable_static; p=${PACKAGE-default}
3624 case $enableval in
3625 yes) enable_static=yes ;;
3626 no) enable_static=no ;;
3627 *)
3628 enable_static=no
3629 # Look at the argument we got. We use all the common list separators.
3630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3631 for pkg in $enableval; do
3632 IFS="$lt_save_ifs"
3633 if test "X$pkg" = "X$p"; then
3634 enable_static=yes
3635 fi
3636 done
3637 IFS="$lt_save_ifs"
3638 ;;
3639 esac
3640 else
3641 enable_static=yes
3642 fi
3643
3644
3645 # Check whether --enable-fast-install was given.
3646 if test "${enable_fast_install+set}" = set; then
3647 enableval=$enable_fast_install; p=${PACKAGE-default}
3648 case $enableval in
3649 yes) enable_fast_install=yes ;;
3650 no) enable_fast_install=no ;;
3651 *)
3652 enable_fast_install=no
3653 # Look at the argument we got. We use all the common list separators.
3654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3655 for pkg in $enableval; do
3656 IFS="$lt_save_ifs"
3657 if test "X$pkg" = "X$p"; then
3658 enable_fast_install=yes
3659 fi
3660 done
3661 IFS="$lt_save_ifs"
3662 ;;
3663 esac
3664 else
3665 enable_fast_install=yes
3666 fi
3667
3668
3669 # Make sure we can run config.sub.
3670 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3671 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3672 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3673 { (exit 1); exit 1; }; }
3674
3675 { echo "$as_me:$LINENO: checking build system type" >&5
3676 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3677 if test "${ac_cv_build+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680 ac_build_alias=$build_alias
3681 test "x$ac_build_alias" = x &&
3682 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3683 test "x$ac_build_alias" = x &&
3684 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3685 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3686 { (exit 1); exit 1; }; }
3687 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3688 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3689 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3690 { (exit 1); exit 1; }; }
3691
3692 fi
3693 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3694 echo "${ECHO_T}$ac_cv_build" >&6; }
3695 case $ac_cv_build in
3696 *-*-*) ;;
3697 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3698 echo "$as_me: error: invalid value of canonical build" >&2;}
3699 { (exit 1); exit 1; }; };;
3700 esac
3701 build=$ac_cv_build
3702 ac_save_IFS=$IFS; IFS='-'
3703 set x $ac_cv_build
3704 shift
3705 build_cpu=$1
3706 build_vendor=$2
3707 shift; shift
3708 # Remember, the first character of IFS is used to create $*,
3709 # except with old shells:
3710 build_os=$*
3711 IFS=$ac_save_IFS
3712 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3713
3714
3715 { echo "$as_me:$LINENO: checking host system type" >&5
3716 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3717 if test "${ac_cv_host+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720 if test "x$host_alias" = x; then
3721 ac_cv_host=$ac_cv_build
3722 else
3723 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3724 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3725 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3726 { (exit 1); exit 1; }; }
3727 fi
3728
3729 fi
3730 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3731 echo "${ECHO_T}$ac_cv_host" >&6; }
3732 case $ac_cv_host in
3733 *-*-*) ;;
3734 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3735 echo "$as_me: error: invalid value of canonical host" >&2;}
3736 { (exit 1); exit 1; }; };;
3737 esac
3738 host=$ac_cv_host
3739 ac_save_IFS=$IFS; IFS='-'
3740 set x $ac_cv_host
3741 shift
3742 host_cpu=$1
3743 host_vendor=$2
3744 shift; shift
3745 # Remember, the first character of IFS is used to create $*,
3746 # except with old shells:
3747 host_os=$*
3748 IFS=$ac_save_IFS
3749 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3750
3751
3752 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3753 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3754 if test "${lt_cv_path_SED+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757 # Loop through the user's path and test for sed and gsed.
3758 # Then use that list of sed's as ones to test for truncation.
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for lt_ac_prog in sed gsed; do
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3767 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3768 fi
3769 done
3770 done
3771 done
3772 IFS=$as_save_IFS
3773 lt_ac_max=0
3774 lt_ac_count=0
3775 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3776 # along with /bin/sed that truncates output.
3777 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3778 test ! -f $lt_ac_sed && continue
3779 cat /dev/null > conftest.in
3780 lt_ac_count=0
3781 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3782 # Check for GNU sed and select it if it is found.
3783 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3784 lt_cv_path_SED=$lt_ac_sed
3785 break
3786 fi
3787 while true; do
3788 cat conftest.in conftest.in >conftest.tmp
3789 mv conftest.tmp conftest.in
3790 cp conftest.in conftest.nl
3791 echo >>conftest.nl
3792 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3793 cmp -s conftest.out conftest.nl || break
3794 # 10000 chars as input seems more than enough
3795 test $lt_ac_count -gt 10 && break
3796 lt_ac_count=`expr $lt_ac_count + 1`
3797 if test $lt_ac_count -gt $lt_ac_max; then
3798 lt_ac_max=$lt_ac_count
3799 lt_cv_path_SED=$lt_ac_sed
3800 fi
3801 done
3802 done
3803
3804 fi
3805
3806 SED=$lt_cv_path_SED
3807
3808 { echo "$as_me:$LINENO: result: $SED" >&5
3809 echo "${ECHO_T}$SED" >&6; }
3810
3811 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3812 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3813 if test "${ac_cv_path_GREP+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816 # Extract the first word of "grep ggrep" to use in msg output
3817 if test -z "$GREP"; then
3818 set dummy grep ggrep; ac_prog_name=$2
3819 if test "${ac_cv_path_GREP+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822 ac_path_GREP_found=false
3823 # Loop through the user's path and test for each of PROGNAME-LIST
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3826 do
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_prog in grep ggrep; do
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3832 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3833 # Check for GNU ac_path_GREP and select it if it is found.
3834 # Check for GNU $ac_path_GREP
3835 case `"$ac_path_GREP" --version 2>&1` in
3836 *GNU*)
3837 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3838 *)
3839 ac_count=0
3840 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3841 while :
3842 do
3843 cat "conftest.in" "conftest.in" >"conftest.tmp"
3844 mv "conftest.tmp" "conftest.in"
3845 cp "conftest.in" "conftest.nl"
3846 echo 'GREP' >> "conftest.nl"
3847 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3849 ac_count=`expr $ac_count + 1`
3850 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3851 # Best one so far, save it but keep looking for a better one
3852 ac_cv_path_GREP="$ac_path_GREP"
3853 ac_path_GREP_max=$ac_count
3854 fi
3855 # 10*(2^10) chars as input seems more than enough
3856 test $ac_count -gt 10 && break
3857 done
3858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3859 esac
3860
3861
3862 $ac_path_GREP_found && break 3
3863 done
3864 done
3865
3866 done
3867 IFS=$as_save_IFS
3868
3869
3870 fi
3871
3872 GREP="$ac_cv_path_GREP"
3873 if test -z "$GREP"; then
3874 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3875 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3876 { (exit 1); exit 1; }; }
3877 fi
3878
3879 else
3880 ac_cv_path_GREP=$GREP
3881 fi
3882
3883
3884 fi
3885 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3886 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3887 GREP="$ac_cv_path_GREP"
3888
3889
3890 { echo "$as_me:$LINENO: checking for egrep" >&5
3891 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3892 if test "${ac_cv_path_EGREP+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3896 then ac_cv_path_EGREP="$GREP -E"
3897 else
3898 # Extract the first word of "egrep" to use in msg output
3899 if test -z "$EGREP"; then
3900 set dummy egrep; ac_prog_name=$2
3901 if test "${ac_cv_path_EGREP+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904 ac_path_EGREP_found=false
3905 # Loop through the user's path and test for each of PROGNAME-LIST
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908 do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_prog in egrep; do
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3914 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3915 # Check for GNU ac_path_EGREP and select it if it is found.
3916 # Check for GNU $ac_path_EGREP
3917 case `"$ac_path_EGREP" --version 2>&1` in
3918 *GNU*)
3919 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3920 *)
3921 ac_count=0
3922 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3923 while :
3924 do
3925 cat "conftest.in" "conftest.in" >"conftest.tmp"
3926 mv "conftest.tmp" "conftest.in"
3927 cp "conftest.in" "conftest.nl"
3928 echo 'EGREP' >> "conftest.nl"
3929 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3931 ac_count=`expr $ac_count + 1`
3932 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3933 # Best one so far, save it but keep looking for a better one
3934 ac_cv_path_EGREP="$ac_path_EGREP"
3935 ac_path_EGREP_max=$ac_count
3936 fi
3937 # 10*(2^10) chars as input seems more than enough
3938 test $ac_count -gt 10 && break
3939 done
3940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941 esac
3942
3943
3944 $ac_path_EGREP_found && break 3
3945 done
3946 done
3947
3948 done
3949 IFS=$as_save_IFS
3950
3951
3952 fi
3953
3954 EGREP="$ac_cv_path_EGREP"
3955 if test -z "$EGREP"; then
3956 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3957 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3958 { (exit 1); exit 1; }; }
3959 fi
3960
3961 else
3962 ac_cv_path_EGREP=$EGREP
3963 fi
3964
3965
3966 fi
3967 fi
3968 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3969 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3970 EGREP="$ac_cv_path_EGREP"
3971
3972
3973
3974 # Check whether --with-gnu-ld was given.
3975 if test "${with_gnu_ld+set}" = set; then
3976 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3977 else
3978 with_gnu_ld=no
3979 fi
3980
3981 ac_prog=ld
3982 if test "$GCC" = yes; then
3983 # Check if gcc -print-prog-name=ld gives a path.
3984 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3985 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3986 case $host in
3987 *-*-mingw*)
3988 # gcc leaves a trailing carriage return which upsets mingw
3989 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3990 *)
3991 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3992 esac
3993 case $ac_prog in
3994 # Accept absolute paths.
3995 [\\/]* | ?:[\\/]*)
3996 re_direlt='/[^/][^/]*/\.\./'
3997 # Canonicalize the pathname of ld
3998 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3999 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4000 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4001 done
4002 test -z "$LD" && LD="$ac_prog"
4003 ;;
4004 "")
4005 # If it fails, then pretend we aren't using GCC.
4006 ac_prog=ld
4007 ;;
4008 *)
4009 # If it is relative, then search for the first ld in PATH.
4010 with_gnu_ld=unknown
4011 ;;
4012 esac
4013 elif test "$with_gnu_ld" = yes; then
4014 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4015 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4016 else
4017 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4018 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4019 fi
4020 if test "${lt_cv_path_LD+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 if test -z "$LD"; then
4024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4025 for ac_dir in $PATH; do
4026 IFS="$lt_save_ifs"
4027 test -z "$ac_dir" && ac_dir=.
4028 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4029 lt_cv_path_LD="$ac_dir/$ac_prog"
4030 # Check to see if the program is GNU ld. I'd rather use --version,
4031 # but apparently some variants of GNU ld only accept -v.
4032 # Break only if it was the GNU/non-GNU ld that we prefer.
4033 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4034 *GNU* | *'with BFD'*)
4035 test "$with_gnu_ld" != no && break
4036 ;;
4037 *)
4038 test "$with_gnu_ld" != yes && break
4039 ;;
4040 esac
4041 fi
4042 done
4043 IFS="$lt_save_ifs"
4044 else
4045 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4046 fi
4047 fi
4048
4049 LD="$lt_cv_path_LD"
4050 if test -n "$LD"; then
4051 { echo "$as_me:$LINENO: result: $LD" >&5
4052 echo "${ECHO_T}$LD" >&6; }
4053 else
4054 { echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6; }
4056 fi
4057 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4058 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4059 { (exit 1); exit 1; }; }
4060 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4061 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4062 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4066 case `$LD -v 2>&1 </dev/null` in
4067 *GNU* | *'with BFD'*)
4068 lt_cv_prog_gnu_ld=yes
4069 ;;
4070 *)
4071 lt_cv_prog_gnu_ld=no
4072 ;;
4073 esac
4074 fi
4075 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4076 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4077 with_gnu_ld=$lt_cv_prog_gnu_ld
4078
4079
4080 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4081 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4082 if test "${lt_cv_ld_reload_flag+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085 lt_cv_ld_reload_flag='-r'
4086 fi
4087 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4088 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4089 reload_flag=$lt_cv_ld_reload_flag
4090 case $reload_flag in
4091 "" | " "*) ;;
4092 *) reload_flag=" $reload_flag" ;;
4093 esac
4094 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4095 case $host_os in
4096 darwin*)
4097 if test "$GCC" = yes; then
4098 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4099 else
4100 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4101 fi
4102 ;;
4103 esac
4104
4105 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4106 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4107 if test "${lt_cv_path_NM+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 if test -n "$NM"; then
4111 # Let the user override the test.
4112 lt_cv_path_NM="$NM"
4113 else
4114 lt_nm_to_check="${ac_tool_prefix}nm"
4115 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4116 lt_nm_to_check="$lt_nm_to_check nm"
4117 fi
4118 for lt_tmp_nm in $lt_nm_to_check; do
4119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4120 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4121 IFS="$lt_save_ifs"
4122 test -z "$ac_dir" && ac_dir=.
4123 tmp_nm="$ac_dir/$lt_tmp_nm"
4124 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4125 # Check to see if the nm accepts a BSD-compat flag.
4126 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4127 # nm: unknown option "B" ignored
4128 # Tru64's nm complains that /dev/null is an invalid object file
4129 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4130 */dev/null* | *'Invalid file or object type'*)
4131 lt_cv_path_NM="$tmp_nm -B"
4132 break
4133 ;;
4134 *)
4135 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4136 */dev/null*)
4137 lt_cv_path_NM="$tmp_nm -p"
4138 break
4139 ;;
4140 *)
4141 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4142 continue # so that we can try to find one that supports BSD flags
4143 ;;
4144 esac
4145 ;;
4146 esac
4147 fi
4148 done
4149 IFS="$lt_save_ifs"
4150 done
4151 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4152 fi
4153 fi
4154 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4155 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4156 NM="$lt_cv_path_NM"
4157
4158 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4159 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4160 if test "${lt_cv_deplibs_check_method+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 lt_cv_file_magic_cmd='$MAGIC_CMD'
4164 lt_cv_file_magic_test_file=
4165 lt_cv_deplibs_check_method='unknown'
4166 # Need to set the preceding variable on all platforms that support
4167 # interlibrary dependencies.
4168 # 'none' -- dependencies not supported.
4169 # `unknown' -- same as none, but documents that we really don't know.
4170 # 'pass_all' -- all dependencies passed with no checks.
4171 # 'test_compile' -- check by making test program.
4172 # 'file_magic [[regex]]' -- check by looking for files in library path
4173 # which responds to the $file_magic_cmd with a given extended regex.
4174 # If you have `file' or equivalent on your system and you're not sure
4175 # whether `pass_all' will *always* work, you probably want this one.
4176
4177 case $host_os in
4178 aix4* | aix5*)
4179 lt_cv_deplibs_check_method=pass_all
4180 ;;
4181
4182 beos*)
4183 lt_cv_deplibs_check_method=pass_all
4184 ;;
4185
4186 bsdi[45]*)
4187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4188 lt_cv_file_magic_cmd='/usr/bin/file -L'
4189 lt_cv_file_magic_test_file=/shlib/libc.so
4190 ;;
4191
4192 cygwin*)
4193 # func_win32_libid is a shell function defined in ltmain.sh
4194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4195 lt_cv_file_magic_cmd='func_win32_libid'
4196 ;;
4197
4198 mingw* | pw32*)
4199 # Base MSYS/MinGW do not provide the 'file' command needed by
4200 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4201 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4202 lt_cv_file_magic_cmd='$OBJDUMP -f'
4203 ;;
4204
4205 darwin* | rhapsody*)
4206 lt_cv_deplibs_check_method=pass_all
4207 ;;
4208
4209 freebsd* | kfreebsd*-gnu | dragonfly*)
4210 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4211 case $host_cpu in
4212 i*86 )
4213 # Not sure whether the presence of OpenBSD here was a mistake.
4214 # Let's accept both of them until this is cleared up.
4215 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4216 lt_cv_file_magic_cmd=/usr/bin/file
4217 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4218 ;;
4219 esac
4220 else
4221 lt_cv_deplibs_check_method=pass_all
4222 fi
4223 ;;
4224
4225 gnu*)
4226 lt_cv_deplibs_check_method=pass_all
4227 ;;
4228
4229 hpux10.20* | hpux11*)
4230 lt_cv_file_magic_cmd=/usr/bin/file
4231 case $host_cpu in
4232 ia64*)
4233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4234 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4235 ;;
4236 hppa*64*)
4237 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]'
4238 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4239 ;;
4240 *)
4241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4242 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4243 ;;
4244 esac
4245 ;;
4246
4247 interix3*)
4248 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4250 ;;
4251
4252 irix5* | irix6* | nonstopux*)
4253 case $LD in
4254 *-32|*"-32 ") libmagic=32-bit;;
4255 *-n32|*"-n32 ") libmagic=N32;;
4256 *-64|*"-64 ") libmagic=64-bit;;
4257 *) libmagic=never-match;;
4258 esac
4259 lt_cv_deplibs_check_method=pass_all
4260 ;;
4261
4262 # This must be Linux ELF.
4263 linux*)
4264 lt_cv_deplibs_check_method=pass_all
4265 ;;
4266
4267 netbsd*)
4268 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4270 else
4271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4272 fi
4273 ;;
4274
4275 newos6*)
4276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4277 lt_cv_file_magic_cmd=/usr/bin/file
4278 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4279 ;;
4280
4281 nto-qnx*)
4282 lt_cv_deplibs_check_method=unknown
4283 ;;
4284
4285 openbsd*)
4286 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4288 else
4289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4290 fi
4291 ;;
4292
4293 osf3* | osf4* | osf5*)
4294 lt_cv_deplibs_check_method=pass_all
4295 ;;
4296
4297 solaris*)
4298 lt_cv_deplibs_check_method=pass_all
4299 ;;
4300
4301 sysv4 | sysv4.3*)
4302 case $host_vendor in
4303 motorola)
4304 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]'
4305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4306 ;;
4307 ncr)
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310 sequent)
4311 lt_cv_file_magic_cmd='/bin/file'
4312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4313 ;;
4314 sni)
4315 lt_cv_file_magic_cmd='/bin/file'
4316 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4317 lt_cv_file_magic_test_file=/lib/libc.so
4318 ;;
4319 siemens)
4320 lt_cv_deplibs_check_method=pass_all
4321 ;;
4322 pc)
4323 lt_cv_deplibs_check_method=pass_all
4324 ;;
4325 esac
4326 ;;
4327
4328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4329 lt_cv_deplibs_check_method=pass_all
4330 ;;
4331 esac
4332
4333 fi
4334 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4335 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4336 file_magic_cmd=$lt_cv_file_magic_cmd
4337 deplibs_check_method=$lt_cv_deplibs_check_method
4338 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4339
4340
4341
4342
4343 # If no C compiler was specified, use CC.
4344 LTCC=${LTCC-"$CC"}
4345
4346 # If no C compiler flags were specified, use CFLAGS.
4347 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4348
4349 # Allow CC to be a program name with arguments.
4350 compiler=$CC
4351
4352
4353 # Check whether --enable-libtool-lock was given.
4354 if test "${enable_libtool_lock+set}" = set; then
4355 enableval=$enable_libtool_lock;
4356 fi
4357
4358 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4359
4360 # Some flags need to be propagated to the compiler or linker for good
4361 # libtool support.
4362 case $host in
4363 ia64-*-hpux*)
4364 # Find out which ABI we are using.
4365 echo 'int i;' > conftest.$ac_ext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; then
4371 case `/usr/bin/file conftest.$ac_objext` in
4372 *ELF-32*)
4373 HPUX_IA64_MODE="32"
4374 ;;
4375 *ELF-64*)
4376 HPUX_IA64_MODE="64"
4377 ;;
4378 esac
4379 fi
4380 rm -rf conftest*
4381 ;;
4382 *-*-irix6*)
4383 # Find out which ABI we are using.
4384 echo '#line 4384 "configure"' > conftest.$ac_ext
4385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4386 (eval $ac_compile) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; then
4390 if test "$lt_cv_prog_gnu_ld" = yes; then
4391 case `/usr/bin/file conftest.$ac_objext` in
4392 *32-bit*)
4393 LD="${LD-ld} -melf32bsmip"
4394 ;;
4395 *N32*)
4396 LD="${LD-ld} -melf32bmipn32"
4397 ;;
4398 *64-bit*)
4399 LD="${LD-ld} -melf64bmip"
4400 ;;
4401 esac
4402 else
4403 case `/usr/bin/file conftest.$ac_objext` in
4404 *32-bit*)
4405 LD="${LD-ld} -32"
4406 ;;
4407 *N32*)
4408 LD="${LD-ld} -n32"
4409 ;;
4410 *64-bit*)
4411 LD="${LD-ld} -64"
4412 ;;
4413 esac
4414 fi
4415 fi
4416 rm -rf conftest*
4417 ;;
4418
4419 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4420 # Find out which ABI we are using.
4421 echo 'int i;' > conftest.$ac_ext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; then
4427 case `/usr/bin/file conftest.o` in
4428 *32-bit*)
4429 case $host in
4430 x86_64-*linux*)
4431 LD="${LD-ld} -m elf_i386"
4432 ;;
4433 ppc64-*linux*|powerpc64-*linux*)
4434 LD="${LD-ld} -m elf32ppclinux"
4435 ;;
4436 s390x-*linux*)
4437 LD="${LD-ld} -m elf_s390"
4438 ;;
4439 sparc64-*linux*)
4440 LD="${LD-ld} -m elf32_sparc"
4441 ;;
4442 esac
4443 ;;
4444 *64-bit*)
4445 case $host in
4446 x86_64-*linux*)
4447 LD="${LD-ld} -m elf_x86_64"
4448 ;;
4449 ppc*-*linux*|powerpc*-*linux*)
4450 LD="${LD-ld} -m elf64ppc"
4451 ;;
4452 s390*-*linux*)
4453 LD="${LD-ld} -m elf64_s390"
4454 ;;
4455 sparc*-*linux*)
4456 LD="${LD-ld} -m elf64_sparc"
4457 ;;
4458 esac
4459 ;;
4460 esac
4461 fi
4462 rm -rf conftest*
4463 ;;
4464
4465 *-*-sco3.2v5*)
4466 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4467 SAVE_CFLAGS="$CFLAGS"
4468 CFLAGS="$CFLAGS -belf"
4469 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4470 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4471 if test "${lt_cv_cc_needs_belf+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474 ac_ext=c
4475 ac_cpp='$CPP $CPPFLAGS'
4476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h. */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486
4487 int
4488 main ()
4489 {
4490
4491 ;
4492 return 0;
4493 }
4494 _ACEOF
4495 rm -f conftest.$ac_objext conftest$ac_exeext
4496 if { (ac_try="$ac_link"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_link") 2>conftest.er1
4503 ac_status=$?
4504 grep -v '^ *+' conftest.er1 >conftest.err
4505 rm -f conftest.er1
4506 cat conftest.err >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } && {
4509 test -z "$ac_c_werror_flag" ||
4510 test ! -s conftest.err
4511 } && test -s conftest$ac_exeext &&
4512 $as_test_x conftest$ac_exeext; then
4513 lt_cv_cc_needs_belf=yes
4514 else
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4517
4518 lt_cv_cc_needs_belf=no
4519 fi
4520
4521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4522 conftest$ac_exeext conftest.$ac_ext
4523 ac_ext=c
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528
4529 fi
4530 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4531 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4532 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4533 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4534 CFLAGS="$SAVE_CFLAGS"
4535 fi
4536 ;;
4537 sparc*-*solaris*)
4538 # Find out which ABI we are using.
4539 echo 'int i;' > conftest.$ac_ext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; then
4545 case `/usr/bin/file conftest.o` in
4546 *64-bit*)
4547 case $lt_cv_prog_gnu_ld in
4548 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4549 *) LD="${LD-ld} -64" ;;
4550 esac
4551 ;;
4552 esac
4553 fi
4554 rm -rf conftest*
4555 ;;
4556
4557
4558 esac
4559
4560 need_locks="$enable_libtool_lock"
4561
4562
4563 ac_ext=c
4564 ac_cpp='$CPP $CPPFLAGS'
4565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4569 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4570 # On Suns, sometimes $CPP names a directory.
4571 if test -n "$CPP" && test -d "$CPP"; then
4572 CPP=
4573 fi
4574 if test -z "$CPP"; then
4575 if test "${ac_cv_prog_CPP+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578 # Double quotes because CPP needs to be expanded
4579 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4580 do
4581 ac_preproc_ok=false
4582 for ac_c_preproc_warn_flag in '' yes
4583 do
4584 # Use a header file that comes with gcc, so configuring glibc
4585 # with a fresh cross-compiler works.
4586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4587 # <limits.h> exists even on freestanding compilers.
4588 # On the NeXT, cc -E runs the code through the compiler's parser,
4589 # not just through cpp. "Syntax error" is here to catch this case.
4590 cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h. */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 #ifdef __STDC__
4597 # include <limits.h>
4598 #else
4599 # include <assert.h>
4600 #endif
4601 Syntax error
4602 _ACEOF
4603 if { (ac_try="$ac_cpp conftest.$ac_ext"
4604 case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4607 esac
4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4610 ac_status=$?
4611 grep -v '^ *+' conftest.er1 >conftest.err
4612 rm -f conftest.er1
4613 cat conftest.err >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } >/dev/null && {
4616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4617 test ! -s conftest.err
4618 }; then
4619 :
4620 else
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 # Broken: fails on valid input.
4625 continue
4626 fi
4627
4628 rm -f conftest.err conftest.$ac_ext
4629
4630 # OK, works on sane cases. Now check whether nonexistent headers
4631 # can be detected and how.
4632 cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h. */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 #include <ac_nonexistent.h>
4639 _ACEOF
4640 if { (ac_try="$ac_cpp conftest.$ac_ext"
4641 case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644 esac
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } >/dev/null && {
4653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 }; then
4656 # Broken: success on invalid input.
4657 continue
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 # Passes both tests.
4663 ac_preproc_ok=:
4664 break
4665 fi
4666
4667 rm -f conftest.err conftest.$ac_ext
4668
4669 done
4670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4671 rm -f conftest.err conftest.$ac_ext
4672 if $ac_preproc_ok; then
4673 break
4674 fi
4675
4676 done
4677 ac_cv_prog_CPP=$CPP
4678
4679 fi
4680 CPP=$ac_cv_prog_CPP
4681 else
4682 ac_cv_prog_CPP=$CPP
4683 fi
4684 { echo "$as_me:$LINENO: result: $CPP" >&5
4685 echo "${ECHO_T}$CPP" >&6; }
4686 ac_preproc_ok=false
4687 for ac_c_preproc_warn_flag in '' yes
4688 do
4689 # Use a header file that comes with gcc, so configuring glibc
4690 # with a fresh cross-compiler works.
4691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692 # <limits.h> exists even on freestanding compilers.
4693 # On the NeXT, cc -E runs the code through the compiler's parser,
4694 # not just through cpp. "Syntax error" is here to catch this case.
4695 cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h. */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 #ifdef __STDC__
4702 # include <limits.h>
4703 #else
4704 # include <assert.h>
4705 #endif
4706 Syntax error
4707 _ACEOF
4708 if { (ac_try="$ac_cpp conftest.$ac_ext"
4709 case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4712 esac
4713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } >/dev/null && {
4721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4722 test ! -s conftest.err
4723 }; then
4724 :
4725 else
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729 # Broken: fails on valid input.
4730 continue
4731 fi
4732
4733 rm -f conftest.err conftest.$ac_ext
4734
4735 # OK, works on sane cases. Now check whether nonexistent headers
4736 # can be detected and how.
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #include <ac_nonexistent.h>
4744 _ACEOF
4745 if { (ac_try="$ac_cpp conftest.$ac_ext"
4746 case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749 esac
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4752 ac_status=$?
4753 grep -v '^ *+' conftest.er1 >conftest.err
4754 rm -f conftest.er1
4755 cat conftest.err >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } >/dev/null && {
4758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4759 test ! -s conftest.err
4760 }; then
4761 # Broken: success on invalid input.
4762 continue
4763 else
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767 # Passes both tests.
4768 ac_preproc_ok=:
4769 break
4770 fi
4771
4772 rm -f conftest.err conftest.$ac_ext
4773
4774 done
4775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4776 rm -f conftest.err conftest.$ac_ext
4777 if $ac_preproc_ok; then
4778 :
4779 else
4780 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4781 See \`config.log' for more details." >&5
4782 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4783 See \`config.log' for more details." >&2;}
4784 { (exit 1); exit 1; }; }
4785 fi
4786
4787 ac_ext=c
4788 ac_cpp='$CPP $CPPFLAGS'
4789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4792
4793
4794 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4795 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4796 if test "${ac_cv_header_stdc+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799 cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h. */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 #include <stdlib.h>
4806 #include <stdarg.h>
4807 #include <string.h>
4808 #include <float.h>
4809
4810 int
4811 main ()
4812 {
4813
4814 ;
4815 return 0;
4816 }
4817 _ACEOF
4818 rm -f conftest.$ac_objext
4819 if { (ac_try="$ac_compile"
4820 case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_compile") 2>conftest.er1
4826 ac_status=$?
4827 grep -v '^ *+' conftest.er1 >conftest.err
4828 rm -f conftest.er1
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } && {
4832 test -z "$ac_c_werror_flag" ||
4833 test ! -s conftest.err
4834 } && test -s conftest.$ac_objext; then
4835 ac_cv_header_stdc=yes
4836 else
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4839
4840 ac_cv_header_stdc=no
4841 fi
4842
4843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844
4845 if test $ac_cv_header_stdc = yes; then
4846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 #include <string.h>
4854
4855 _ACEOF
4856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4857 $EGREP "memchr" >/dev/null 2>&1; then
4858 :
4859 else
4860 ac_cv_header_stdc=no
4861 fi
4862 rm -f conftest*
4863
4864 fi
4865
4866 if test $ac_cv_header_stdc = yes; then
4867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h. */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 #include <stdlib.h>
4875
4876 _ACEOF
4877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4878 $EGREP "free" >/dev/null 2>&1; then
4879 :
4880 else
4881 ac_cv_header_stdc=no
4882 fi
4883 rm -f conftest*
4884
4885 fi
4886
4887 if test $ac_cv_header_stdc = yes; then
4888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4889 if test "$cross_compiling" = yes; then
4890 :
4891 else
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 #include <ctype.h>
4899 #include <stdlib.h>
4900 #if ((' ' & 0x0FF) == 0x020)
4901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4903 #else
4904 # define ISLOWER(c) \
4905 (('a' <= (c) && (c) <= 'i') \
4906 || ('j' <= (c) && (c) <= 'r') \
4907 || ('s' <= (c) && (c) <= 'z'))
4908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4909 #endif
4910
4911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4912 int
4913 main ()
4914 {
4915 int i;
4916 for (i = 0; i < 256; i++)
4917 if (XOR (islower (i), ISLOWER (i))
4918 || toupper (i) != TOUPPER (i))
4919 return 2;
4920 return 0;
4921 }
4922 _ACEOF
4923 rm -f conftest$ac_exeext
4924 if { (ac_try="$ac_link"
4925 case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928 esac
4929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4930 (eval "$ac_link") 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4934 { (case "(($ac_try" in
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4937 esac
4938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4939 (eval "$ac_try") 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 :
4944 else
4945 echo "$as_me: program exited with status $ac_status" >&5
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949 ( exit $ac_status )
4950 ac_cv_header_stdc=no
4951 fi
4952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4953 fi
4954
4955
4956 fi
4957 fi
4958 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4959 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4960 if test $ac_cv_header_stdc = yes; then
4961
4962 cat >>confdefs.h <<\_ACEOF
4963 #define STDC_HEADERS 1
4964 _ACEOF
4965
4966 fi
4967
4968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4979 inttypes.h stdint.h unistd.h
4980 do
4981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987 cat >conftest.$ac_ext <<_ACEOF
4988 /* confdefs.h. */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4993 $ac_includes_default
4994
4995 #include <$ac_header>
4996 _ACEOF
4997 rm -f conftest.$ac_objext
4998 if { (ac_try="$ac_compile"
4999 case "(($ac_try" in
5000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001 *) ac_try_echo=$ac_try;;
5002 esac
5003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5004 (eval "$ac_compile") 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && {
5011 test -z "$ac_c_werror_flag" ||
5012 test ! -s conftest.err
5013 } && test -s conftest.$ac_objext; then
5014 eval "$as_ac_Header=yes"
5015 else
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 eval "$as_ac_Header=no"
5020 fi
5021
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 fi
5024 ac_res=`eval echo '${'$as_ac_Header'}'`
5025 { echo "$as_me:$LINENO: result: $ac_res" >&5
5026 echo "${ECHO_T}$ac_res" >&6; }
5027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5028 cat >>confdefs.h <<_ACEOF
5029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5030 _ACEOF
5031
5032 fi
5033
5034 done
5035
5036
5037
5038 for ac_header in dlfcn.h
5039 do
5040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 fi
5047 ac_res=`eval echo '${'$as_ac_Header'}'`
5048 { echo "$as_me:$LINENO: result: $ac_res" >&5
5049 echo "${ECHO_T}$ac_res" >&6; }
5050 else
5051 # Is the header compilable?
5052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 $ac_includes_default
5061 #include <$ac_header>
5062 _ACEOF
5063 rm -f conftest.$ac_objext
5064 if { (ac_try="$ac_compile"
5065 case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068 esac
5069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070 (eval "$ac_compile") 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } && {
5077 test -z "$ac_c_werror_flag" ||
5078 test ! -s conftest.err
5079 } && test -s conftest.$ac_objext; then
5080 ac_header_compiler=yes
5081 else
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5084
5085 ac_header_compiler=no
5086 fi
5087
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5090 echo "${ECHO_T}$ac_header_compiler" >&6; }
5091
5092 # Is the header present?
5093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5095 cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #include <$ac_header>
5102 _ACEOF
5103 if { (ac_try="$ac_cpp conftest.$ac_ext"
5104 case "(($ac_try" in
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5107 esac
5108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5110 ac_status=$?
5111 grep -v '^ *+' conftest.er1 >conftest.err
5112 rm -f conftest.er1
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } >/dev/null && {
5116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5117 test ! -s conftest.err
5118 }; then
5119 ac_header_preproc=yes
5120 else
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124 ac_header_preproc=no
5125 fi
5126
5127 rm -f conftest.err conftest.$ac_ext
5128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5129 echo "${ECHO_T}$ac_header_preproc" >&6; }
5130
5131 # So? What about this header?
5132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5133 yes:no: )
5134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5138 ac_header_preproc=yes
5139 ;;
5140 no:yes:* )
5141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5153 ( cat <<\_ASBOX
5154 ## -------------------------------------------------- ##
5155 ## Report this to courier-users@lists.sourceforge.net ##
5156 ## -------------------------------------------------- ##
5157 _ASBOX
5158 ) | sed "s/^/$as_me: WARNING: /" >&2
5159 ;;
5160 esac
5161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 eval "$as_ac_Header=\$ac_header_preproc"
5167 fi
5168 ac_res=`eval echo '${'$as_ac_Header'}'`
5169 { echo "$as_me:$LINENO: result: $ac_res" >&5
5170 echo "${ECHO_T}$ac_res" >&6; }
5171
5172 fi
5173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5174 cat >>confdefs.h <<_ACEOF
5175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5176 _ACEOF
5177
5178 fi
5179
5180 done
5181
5182 ac_ext=cpp
5183 ac_cpp='$CXXCPP $CPPFLAGS'
5184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5187 if test -z "$CXX"; then
5188 if test -n "$CCC"; then
5189 CXX=$CCC
5190 else
5191 if test -n "$ac_tool_prefix"; then
5192 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5193 do
5194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5198 if test "${ac_cv_prog_CXX+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201 if test -n "$CXX"; then
5202 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5211 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5214 fi
5215 done
5216 done
5217 IFS=$as_save_IFS
5218
5219 fi
5220 fi
5221 CXX=$ac_cv_prog_CXX
5222 if test -n "$CXX"; then
5223 { echo "$as_me:$LINENO: result: $CXX" >&5
5224 echo "${ECHO_T}$CXX" >&6; }
5225 else
5226 { echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6; }
5228 fi
5229
5230
5231 test -n "$CXX" && break
5232 done
5233 fi
5234 if test -z "$CXX"; then
5235 ac_ct_CXX=$CXX
5236 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5237 do
5238 # Extract the first word of "$ac_prog", so it can be a program name with args.
5239 set dummy $ac_prog; ac_word=$2
5240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5242 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245 if test -n "$ac_ct_CXX"; then
5246 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255 ac_cv_prog_ac_ct_CXX="$ac_prog"
5256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259 done
5260 done
5261 IFS=$as_save_IFS
5262
5263 fi
5264 fi
5265 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5266 if test -n "$ac_ct_CXX"; then
5267 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5268 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5269 else
5270 { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5272 fi
5273
5274
5275 test -n "$ac_ct_CXX" && break
5276 done
5277
5278 if test "x$ac_ct_CXX" = x; then
5279 CXX="g++"
5280 else
5281 case $cross_compiling:$ac_tool_warned in
5282 yes:)
5283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5284 whose name does not start with the host triplet. If you think this
5285 configuration is useful to you, please write to autoconf@gnu.org." >&5
5286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5287 whose name does not start with the host triplet. If you think this
5288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5289 ac_tool_warned=yes ;;
5290 esac
5291 CXX=$ac_ct_CXX
5292 fi
5293 fi
5294
5295 fi
5296 fi
5297 # Provide some information about the compiler.
5298 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5299 ac_compiler=`set X $ac_compile; echo $2`
5300 { (ac_try="$ac_compiler --version >&5"
5301 case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304 esac
5305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_compiler --version >&5") 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }
5310 { (ac_try="$ac_compiler -v >&5"
5311 case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314 esac
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compiler -v >&5") 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }
5320 { (ac_try="$ac_compiler -V >&5"
5321 case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324 esac
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compiler -V >&5") 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }
5330
5331 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5332 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5333 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h. */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342
5343 int
5344 main ()
5345 {
5346 #ifndef __GNUC__
5347 choke me
5348 #endif
5349
5350 ;
5351 return 0;
5352 }
5353 _ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (ac_try="$ac_compile"
5356 case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359 esac
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_compile") 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } && {
5368 test -z "$ac_cxx_werror_flag" ||
5369 test ! -s conftest.err
5370 } && test -s conftest.$ac_objext; then
5371 ac_compiler_gnu=yes
5372 else
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 ac_compiler_gnu=no
5377 fi
5378
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5381
5382 fi
5383 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5384 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5385 GXX=`test $ac_compiler_gnu = yes && echo yes`
5386 ac_test_CXXFLAGS=${CXXFLAGS+set}
5387 ac_save_CXXFLAGS=$CXXFLAGS
5388 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5389 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5390 if test "${ac_cv_prog_cxx_g+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5394 ac_cxx_werror_flag=yes
5395 ac_cv_prog_cxx_g=no
5396 CXXFLAGS="-g"
5397 cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h. */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5403
5404 int
5405 main ()
5406 {
5407
5408 ;
5409 return 0;
5410 }
5411 _ACEOF
5412 rm -f conftest.$ac_objext
5413 if { (ac_try="$ac_compile"
5414 case "(($ac_try" in
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5417 esac
5418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419 (eval "$ac_compile") 2>conftest.er1
5420 ac_status=$?
5421 grep -v '^ *+' conftest.er1 >conftest.err
5422 rm -f conftest.er1
5423 cat conftest.err >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } && {
5426 test -z "$ac_cxx_werror_flag" ||
5427 test ! -s conftest.err
5428 } && test -s conftest.$ac_objext; then
5429 ac_cv_prog_cxx_g=yes
5430 else
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 CXXFLAGS=""
5435 cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h. */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441
5442 int
5443 main ()
5444 {
5445
5446 ;
5447 return 0;
5448 }
5449 _ACEOF
5450 rm -f conftest.$ac_objext
5451 if { (ac_try="$ac_compile"
5452 case "(($ac_try" in
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5455 esac
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_compile") 2>conftest.er1
5458 ac_status=$?
5459 grep -v '^ *+' conftest.er1 >conftest.err
5460 rm -f conftest.er1
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } && {
5464 test -z "$ac_cxx_werror_flag" ||
5465 test ! -s conftest.err
5466 } && test -s conftest.$ac_objext; then
5467 :
5468 else
5469 echo "$as_me: failed program was:" >&5
5470 sed 's/^/| /' conftest.$ac_ext >&5
5471
5472 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5473 CXXFLAGS="-g"
5474 cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h. */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480
5481 int
5482 main ()
5483 {
5484
5485 ;
5486 return 0;
5487 }
5488 _ACEOF
5489 rm -f conftest.$ac_objext
5490 if { (ac_try="$ac_compile"
5491 case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494 esac
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_compile") 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && {
5503 test -z "$ac_cxx_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest.$ac_objext; then
5506 ac_cv_prog_cxx_g=yes
5507 else
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5510
5511
5512 fi
5513
5514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515 fi
5516
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 fi
5519
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5522 fi
5523 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5524 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5525 if test "$ac_test_CXXFLAGS" = set; then
5526 CXXFLAGS=$ac_save_CXXFLAGS
5527 elif test $ac_cv_prog_cxx_g = yes; then
5528 if test "$GXX" = yes; then
5529 CXXFLAGS="-g -O2"
5530 else
5531 CXXFLAGS="-g"
5532 fi
5533 else
5534 if test "$GXX" = yes; then
5535 CXXFLAGS="-O2"
5536 else
5537 CXXFLAGS=
5538 fi
5539 fi
5540 ac_ext=cpp
5541 ac_cpp='$CXXCPP $CPPFLAGS'
5542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5545
5546 depcc="$CXX" am_compiler_list=
5547
5548 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5549 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5550 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5554 # We make a subdir and do the tests there. Otherwise we can end up
5555 # making bogus files that we don't know about and never remove. For
5556 # instance it was reported that on HP-UX the gcc test will end up
5557 # making a dummy file named `D' -- because `-MD' means `put the output
5558 # in D'.
5559 mkdir conftest.dir
5560 # Copy depcomp to subdir because otherwise we won't find it if we're
5561 # using a relative directory.
5562 cp "$am_depcomp" conftest.dir
5563 cd conftest.dir
5564 # We will build objects and dependencies in a subdirectory because
5565 # it helps to detect inapplicable dependency modes. For instance
5566 # both Tru64's cc and ICC support -MD to output dependencies as a
5567 # side effect of compilation, but ICC will put the dependencies in
5568 # the current directory while Tru64 will put them in the object
5569 # directory.
5570 mkdir sub
5571
5572 am_cv_CXX_dependencies_compiler_type=none
5573 if test "$am_compiler_list" = ""; then
5574 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5575 fi
5576 for depmode in $am_compiler_list; do
5577 # Setup a source with many dependencies, because some compilers
5578 # like to wrap large dependency lists on column 80 (with \), and
5579 # we should not choose a depcomp mode which is confused by this.
5580 #
5581 # We need to recreate these files for each test, as the compiler may
5582 # overwrite some of them when testing with obscure command lines.
5583 # This happens at least with the AIX C compiler.
5584 : > sub/conftest.c
5585 for i in 1 2 3 4 5 6; do
5586 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5587 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5588 # Solaris 8's {/usr,}/bin/sh.
5589 touch sub/conftst$i.h
5590 done
5591 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5592
5593 case $depmode in
5594 nosideeffect)
5595 # after this tag, mechanisms are not by side-effect, so they'll
5596 # only be used when explicitly requested
5597 if test "x$enable_dependency_tracking" = xyes; then
5598 continue
5599 else
5600 break
5601 fi
5602 ;;
5603 none) break ;;
5604 esac
5605 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5606 # mode. It turns out that the SunPro C++ compiler does not properly
5607 # handle `-M -o', and we need to detect this.
5608 if depmode=$depmode \
5609 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5610 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5611 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5612 >/dev/null 2>conftest.err &&
5613 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5614 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5615 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5616 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5617 # icc doesn't choke on unknown options, it will just issue warnings
5618 # or remarks (even with -Werror). So we grep stderr for any message
5619 # that says an option was ignored or not supported.
5620 # When given -MP, icc 7.0 and 7.1 complain thusly:
5621 # icc: Command line warning: ignoring option '-M'; no argument required
5622 # The diagnosis changed in icc 8.0:
5623 # icc: Command line remark: option '-MP' not supported
5624 if (grep 'ignoring option' conftest.err ||
5625 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5626 am_cv_CXX_dependencies_compiler_type=$depmode
5627 break
5628 fi
5629 fi
5630 done
5631
5632 cd ..
5633 rm -rf conftest.dir
5634 else
5635 am_cv_CXX_dependencies_compiler_type=none
5636 fi
5637
5638 fi
5639 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5640 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5641 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5642
5643 if
5644 test "x$enable_dependency_tracking" != xno \
5645 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5646 am__fastdepCXX_TRUE=
5647 am__fastdepCXX_FALSE='#'
5648 else
5649 am__fastdepCXX_TRUE='#'
5650 am__fastdepCXX_FALSE=
5651 fi
5652
5653
5654
5655
5656 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5657 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5658 (test "X$CXX" != "Xg++"))) ; then
5659 ac_ext=cpp
5660 ac_cpp='$CXXCPP $CPPFLAGS'
5661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5664 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5665 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5666 if test -z "$CXXCPP"; then
5667 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670 # Double quotes because CXXCPP needs to be expanded
5671 for CXXCPP in "$CXX -E" "/lib/cpp"
5672 do
5673 ac_preproc_ok=false
5674 for ac_cxx_preproc_warn_flag in '' yes
5675 do
5676 # Use a header file that comes with gcc, so configuring glibc
5677 # with a fresh cross-compiler works.
5678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5679 # <limits.h> exists even on freestanding compilers.
5680 # On the NeXT, cc -E runs the code through the compiler's parser,
5681 # not just through cpp. "Syntax error" is here to catch this case.
5682 cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h. */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 #ifdef __STDC__
5689 # include <limits.h>
5690 #else
5691 # include <assert.h>
5692 #endif
5693 Syntax error
5694 _ACEOF
5695 if { (ac_try="$ac_cpp conftest.$ac_ext"
5696 case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5699 esac
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5702 ac_status=$?
5703 grep -v '^ *+' conftest.er1 >conftest.err
5704 rm -f conftest.er1
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } >/dev/null && {
5708 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5709 test ! -s conftest.err
5710 }; then
5711 :
5712 else
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5715
5716 # Broken: fails on valid input.
5717 continue
5718 fi
5719
5720 rm -f conftest.err conftest.$ac_ext
5721
5722 # OK, works on sane cases. Now check whether nonexistent headers
5723 # can be detected and how.
5724 cat >conftest.$ac_ext <<_ACEOF
5725 /* confdefs.h. */
5726 _ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5730 #include <ac_nonexistent.h>
5731 _ACEOF
5732 if { (ac_try="$ac_cpp conftest.$ac_ext"
5733 case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736 esac
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } >/dev/null && {
5745 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5746 test ! -s conftest.err
5747 }; then
5748 # Broken: success on invalid input.
5749 continue
5750 else
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754 # Passes both tests.
5755 ac_preproc_ok=:
5756 break
5757 fi
5758
5759 rm -f conftest.err conftest.$ac_ext
5760
5761 done
5762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5763 rm -f conftest.err conftest.$ac_ext
5764 if $ac_preproc_ok; then
5765 break
5766 fi
5767
5768 done
5769 ac_cv_prog_CXXCPP=$CXXCPP
5770
5771 fi
5772 CXXCPP=$ac_cv_prog_CXXCPP
5773 else
5774 ac_cv_prog_CXXCPP=$CXXCPP
5775 fi
5776 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5777 echo "${ECHO_T}$CXXCPP" >&6; }
5778 ac_preproc_ok=false
5779 for ac_cxx_preproc_warn_flag in '' yes
5780 do
5781 # Use a header file that comes with gcc, so configuring glibc
5782 # with a fresh cross-compiler works.
5783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5784 # <limits.h> exists even on freestanding compilers.
5785 # On the NeXT, cc -E runs the code through the compiler's parser,
5786 # not just through cpp. "Syntax error" is here to catch this case.
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 #ifdef __STDC__
5794 # include <limits.h>
5795 #else
5796 # include <assert.h>
5797 #endif
5798 Syntax error
5799 _ACEOF
5800 if { (ac_try="$ac_cpp conftest.$ac_ext"
5801 case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804 esac
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } >/dev/null && {
5813 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5814 test ! -s conftest.err
5815 }; then
5816 :
5817 else
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5820
5821 # Broken: fails on valid input.
5822 continue
5823 fi
5824
5825 rm -f conftest.err conftest.$ac_ext
5826
5827 # OK, works on sane cases. Now check whether nonexistent headers
5828 # can be detected and how.
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 #include <ac_nonexistent.h>
5836 _ACEOF
5837 if { (ac_try="$ac_cpp conftest.$ac_ext"
5838 case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } >/dev/null && {
5850 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5851 test ! -s conftest.err
5852 }; then
5853 # Broken: success on invalid input.
5854 continue
5855 else
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5858
5859 # Passes both tests.
5860 ac_preproc_ok=:
5861 break
5862 fi
5863
5864 rm -f conftest.err conftest.$ac_ext
5865
5866 done
5867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5868 rm -f conftest.err conftest.$ac_ext
5869 if $ac_preproc_ok; then
5870 :
5871 else
5872 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5873 See \`config.log' for more details." >&5
5874 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5875 See \`config.log' for more details." >&2;}
5876 { (exit 1); exit 1; }; }
5877 fi
5878
5879 ac_ext=cpp
5880 ac_cpp='$CXXCPP $CPPFLAGS'
5881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5884
5885 fi
5886
5887
5888 ac_ext=f
5889 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5890 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5892 if test -n "$ac_tool_prefix"; then
5893 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
5894 do
5895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899 if test "${ac_cv_prog_F77+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902 if test -n "$F77"; then
5903 ac_cv_prog_F77="$F77" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916 done
5917 done
5918 IFS=$as_save_IFS
5919
5920 fi
5921 fi
5922 F77=$ac_cv_prog_F77
5923 if test -n "$F77"; then
5924 { echo "$as_me:$LINENO: result: $F77" >&5
5925 echo "${ECHO_T}$F77" >&6; }
5926 else
5927 { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5929 fi
5930
5931
5932 test -n "$F77" && break
5933 done
5934 fi
5935 if test -z "$F77"; then
5936 ac_ct_F77=$F77
5937 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
5938 do
5939 # Extract the first word of "$ac_prog", so it can be a program name with args.
5940 set dummy $ac_prog; ac_word=$2
5941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 if test -n "$ac_ct_F77"; then
5947 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5951 do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_ac_ct_F77="$ac_prog"
5957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5959 fi
5960 done
5961 done
5962 IFS=$as_save_IFS
5963
5964 fi
5965 fi
5966 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5967 if test -n "$ac_ct_F77"; then
5968 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5969 echo "${ECHO_T}$ac_ct_F77" >&6; }
5970 else
5971 { echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6; }
5973 fi
5974
5975
5976 test -n "$ac_ct_F77" && break
5977 done
5978
5979 if test "x$ac_ct_F77" = x; then
5980 F77=""
5981 else
5982 case $cross_compiling:$ac_tool_warned in
5983 yes:)
5984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5985 whose name does not start with the host triplet. If you think this
5986 configuration is useful to you, please write to autoconf@gnu.org." >&5
5987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5988 whose name does not start with the host triplet. If you think this
5989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992 F77=$ac_ct_F77
5993 fi
5994 fi
5995
5996
5997 # Provide some information about the compiler.
5998 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5999 ac_compiler=`set X $ac_compile; echo $2`
6000 { (ac_try="$ac_compiler --version >&5"
6001 case "(($ac_try" in
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6004 esac
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_compiler --version >&5") 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }
6010 { (ac_try="$ac_compiler -v >&5"
6011 case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compiler -v >&5") 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }
6020 { (ac_try="$ac_compiler -V >&5"
6021 case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024 esac
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_compiler -V >&5") 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }
6030 rm -f a.out
6031
6032 # If we don't use `.F' as extension, the preprocessor is not run on the
6033 # input file. (Note that this only needs to work for GNU compilers.)
6034 ac_save_ext=$ac_ext
6035 ac_ext=F
6036 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6037 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6038 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041 cat >conftest.$ac_ext <<_ACEOF
6042 program main
6043 #ifndef __GNUC__
6044 choke me
6045 #endif
6046
6047 end
6048 _ACEOF
6049 rm -f conftest.$ac_objext
6050 if { (ac_try="$ac_compile"
6051 case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054 esac
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_compile") 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && {
6063 test -z "$ac_f77_werror_flag" ||
6064 test ! -s conftest.err
6065 } && test -s conftest.$ac_objext; then
6066 ac_compiler_gnu=yes
6067 else
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6070
6071 ac_compiler_gnu=no
6072 fi
6073
6074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6076
6077 fi
6078 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6079 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6080 ac_ext=$ac_save_ext
6081 ac_test_FFLAGS=${FFLAGS+set}
6082 ac_save_FFLAGS=$FFLAGS
6083 FFLAGS=
6084 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6085 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6086 if test "${ac_cv_prog_f77_g+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 FFLAGS=-g
6090 cat >conftest.$ac_ext <<_ACEOF
6091 program main
6092
6093 end
6094 _ACEOF
6095 rm -f conftest.$ac_objext
6096 if { (ac_try="$ac_compile"
6097 case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100 esac
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_compile") 2>conftest.er1
6103 ac_status=$?
6104 grep -v '^ *+' conftest.er1 >conftest.err
6105 rm -f conftest.er1
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } && {
6109 test -z "$ac_f77_werror_flag" ||
6110 test ! -s conftest.err
6111 } && test -s conftest.$ac_objext; then
6112 ac_cv_prog_f77_g=yes
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 ac_cv_prog_f77_g=no
6118 fi
6119
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121
6122 fi
6123 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6124 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6125 if test "$ac_test_FFLAGS" = set; then
6126 FFLAGS=$ac_save_FFLAGS
6127 elif test $ac_cv_prog_f77_g = yes; then
6128 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6129 FFLAGS="-g -O2"
6130 else
6131 FFLAGS="-g"
6132 fi
6133 else
6134 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6135 FFLAGS="-O2"
6136 else
6137 FFLAGS=
6138 fi
6139 fi
6140
6141 G77=`test $ac_compiler_gnu = yes && echo yes`
6142 ac_ext=c
6143 ac_cpp='$CPP $CPPFLAGS'
6144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6147
6148
6149
6150 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6151
6152 # find the maximum length of command line arguments
6153 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6154 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6155 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158 i=0
6159 teststring="ABCD"
6160
6161 case $build_os in
6162 msdosdjgpp*)
6163 # On DJGPP, this test can blow up pretty badly due to problems in libc
6164 # (any single argument exceeding 2000 bytes causes a buffer overrun
6165 # during glob expansion). Even if it were fixed, the result of this
6166 # check would be larger than it should be.
6167 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6168 ;;
6169
6170 gnu*)
6171 # Under GNU Hurd, this test is not required because there is
6172 # no limit to the length of command line arguments.
6173 # Libtool will interpret -1 as no limit whatsoever
6174 lt_cv_sys_max_cmd_len=-1;
6175 ;;
6176
6177 cygwin* | mingw*)
6178 # On Win9x/ME, this test blows up -- it succeeds, but takes
6179 # about 5 minutes as the teststring grows exponentially.
6180 # Worse, since 9x/ME are not pre-emptively multitasking,
6181 # you end up with a "frozen" computer, even though with patience
6182 # the test eventually succeeds (with a max line length of 256k).
6183 # Instead, let's just punt: use the minimum linelength reported by
6184 # all of the supported platforms: 8192 (on NT/2K/XP).
6185 lt_cv_sys_max_cmd_len=8192;
6186 ;;
6187
6188 amigaos*)
6189 # On AmigaOS with pdksh, this test takes hours, literally.
6190 # So we just punt and use a minimum line length of 8192.
6191 lt_cv_sys_max_cmd_len=8192;
6192 ;;
6193
6194 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6195 # This has been around since 386BSD, at least. Likely further.
6196 if test -x /sbin/sysctl; then
6197 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6198 elif test -x /usr/sbin/sysctl; then
6199 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6200 else
6201 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6202 fi
6203 # And add a safety zone
6204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6206 ;;
6207
6208 interix*)
6209 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6210 lt_cv_sys_max_cmd_len=196608
6211 ;;
6212
6213 osf*)
6214 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6215 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6216 # nice to cause kernel panics so lets avoid the loop below.
6217 # First set a reasonable default.
6218 lt_cv_sys_max_cmd_len=16384
6219 #
6220 if test -x /sbin/sysconfig; then
6221 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6222 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6223 esac
6224 fi
6225 ;;
6226 sco3.2v5*)
6227 lt_cv_sys_max_cmd_len=102400
6228 ;;
6229 sysv5* | sco5v6* | sysv4.2uw2*)
6230 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6231 if test -n "$kargmax"; then
6232 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6233 else
6234 lt_cv_sys_max_cmd_len=32768
6235 fi
6236 ;;
6237 *)
6238 # If test is not a shell built-in, we'll probably end up computing a
6239 # maximum length that is only half of the actual maximum length, but
6240 # we can't tell.
6241 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6242 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6243 = "XX$teststring") >/dev/null 2>&1 &&
6244 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6245 lt_cv_sys_max_cmd_len=$new_result &&
6246 test $i != 17 # 1/2 MB should be enough
6247 do
6248 i=`expr $i + 1`
6249 teststring=$teststring$teststring
6250 done
6251 teststring=
6252 # Add a significant safety factor because C++ compilers can tack on massive
6253 # amounts of additional arguments before passing them to the linker.
6254 # It appears as though 1/2 is a usable value.
6255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6256 ;;
6257 esac
6258
6259 fi
6260
6261 if test -n $lt_cv_sys_max_cmd_len ; then
6262 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6263 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6264 else
6265 { echo "$as_me:$LINENO: result: none" >&5
6266 echo "${ECHO_T}none" >&6; }
6267 fi
6268
6269
6270
6271
6272 # Check for command to grab the raw symbol name followed by C symbol from nm.
6273 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6274 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6275 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278
6279 # These are sane defaults that work on at least a few old systems.
6280 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6281
6282 # Character class describing NM global symbol codes.
6283 symcode='[BCDEGRST]'
6284
6285 # Regexp to match symbols that can be accessed directly from C.
6286 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6287
6288 # Transform an extracted symbol line into a proper C declaration
6289 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6290
6291 # Transform an extracted symbol line into symbol name and symbol address
6292 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6293
6294 # Define system-specific variables.
6295 case $host_os in
6296 aix*)
6297 symcode='[BCDT]'
6298 ;;
6299 cygwin* | mingw* | pw32*)
6300 symcode='[ABCDGISTW]'
6301 ;;
6302 hpux*) # Its linker distinguishes data from code symbols
6303 if test "$host_cpu" = ia64; then
6304 symcode='[ABCDEGRST]'
6305 fi
6306 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6307 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'"
6308 ;;
6309 linux*)
6310 if test "$host_cpu" = ia64; then
6311 symcode='[ABCDGIRSTW]'
6312 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6313 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'"
6314 fi
6315 ;;
6316 irix* | nonstopux*)
6317 symcode='[BCDEGRST]'
6318 ;;
6319 osf*)
6320 symcode='[BCDEGQRST]'
6321 ;;
6322 solaris*)
6323 symcode='[BDRT]'
6324 ;;
6325 sco3.2v5*)
6326 symcode='[DT]'
6327 ;;
6328 sysv4.2uw2*)
6329 symcode='[DT]'
6330 ;;
6331 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6332 symcode='[ABDT]'
6333 ;;
6334 sysv4)
6335 symcode='[DFNSTU]'
6336 ;;
6337 esac
6338
6339 # Handle CRLF in mingw tool chain
6340 opt_cr=
6341 case $build_os in
6342 mingw*)
6343 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6344 ;;
6345 esac
6346
6347 # If we're using GNU nm, then use its standard symbol codes.
6348 case `$NM -V 2>&1` in
6349 *GNU* | *'with BFD'*)
6350 symcode='[ABCDGIRSTW]' ;;
6351 esac
6352
6353 # Try without a prefix undercore, then with it.
6354 for ac_symprfx in "" "_"; do
6355
6356 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6357 symxfrm="\\1 $ac_symprfx\\2 \\2"
6358
6359 # Write the raw and C identifiers.
6360 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6361
6362 # Check to see that the pipe works correctly.
6363 pipe_works=no
6364
6365 rm -f conftest*
6366 cat > conftest.$ac_ext <<EOF
6367 #ifdef __cplusplus
6368 extern "C" {
6369 #endif
6370 char nm_test_var;
6371 void nm_test_func(){}
6372 #ifdef __cplusplus
6373 }
6374 #endif
6375 int main(){nm_test_var='a';nm_test_func();return(0);}
6376 EOF
6377
6378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6379 (eval $ac_compile) 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; then
6383 # Now try to grab the symbols.
6384 nlist=conftest.nm
6385 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6386 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } && test -s "$nlist"; then
6390 # Try sorting and uniquifying the output.
6391 if sort "$nlist" | uniq > "$nlist"T; then
6392 mv -f "$nlist"T "$nlist"
6393 else
6394 rm -f "$nlist"T
6395 fi
6396
6397 # Make sure that we snagged all the symbols we need.
6398 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6399 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6400 cat <<EOF > conftest.$ac_ext
6401 #ifdef __cplusplus
6402 extern "C" {
6403 #endif
6404
6405 EOF
6406 # Now generate the symbol file.
6407 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6408
6409 cat <<EOF >> conftest.$ac_ext
6410 #if defined (__STDC__) && __STDC__
6411 # define lt_ptr_t void *
6412 #else
6413 # define lt_ptr_t char *
6414 # define const
6415 #endif
6416
6417 /* The mapping between symbol names and symbols. */
6418 const struct {
6419 const char *name;
6420 lt_ptr_t address;
6421 }
6422 lt_preloaded_symbols[] =
6423 {
6424 EOF
6425 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6426 cat <<\EOF >> conftest.$ac_ext
6427 {0, (lt_ptr_t) 0}
6428 };
6429
6430 #ifdef __cplusplus
6431 }
6432 #endif
6433 EOF
6434 # Now try linking the two files.
6435 mv conftest.$ac_objext conftstm.$ac_objext
6436 lt_save_LIBS="$LIBS"
6437 lt_save_CFLAGS="$CFLAGS"
6438 LIBS="conftstm.$ac_objext"
6439 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6441 (eval $ac_link) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6445 pipe_works=yes
6446 fi
6447 LIBS="$lt_save_LIBS"
6448 CFLAGS="$lt_save_CFLAGS"
6449 else
6450 echo "cannot find nm_test_func in $nlist" >&5
6451 fi
6452 else
6453 echo "cannot find nm_test_var in $nlist" >&5
6454 fi
6455 else
6456 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6457 fi
6458 else
6459 echo "$progname: failed program was:" >&5
6460 cat conftest.$ac_ext >&5
6461 fi
6462 rm -f conftest* conftst*
6463
6464 # Do not use the global_symbol_pipe unless it works.
6465 if test "$pipe_works" = yes; then
6466 break
6467 else
6468 lt_cv_sys_global_symbol_pipe=
6469 fi
6470 done
6471
6472 fi
6473
6474 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6475 lt_cv_sys_global_symbol_to_cdecl=
6476 fi
6477 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6478 { echo "$as_me:$LINENO: result: failed" >&5
6479 echo "${ECHO_T}failed" >&6; }
6480 else
6481 { echo "$as_me:$LINENO: result: ok" >&5
6482 echo "${ECHO_T}ok" >&6; }
6483 fi
6484
6485 { echo "$as_me:$LINENO: checking for objdir" >&5
6486 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6487 if test "${lt_cv_objdir+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490 rm -f .libs 2>/dev/null
6491 mkdir .libs 2>/dev/null
6492 if test -d .libs; then
6493 lt_cv_objdir=.libs
6494 else
6495 # MS-DOS does not allow filenames that begin with a dot.
6496 lt_cv_objdir=_libs
6497 fi
6498 rmdir .libs 2>/dev/null
6499 fi
6500 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6501 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6502 objdir=$lt_cv_objdir
6503
6504
6505
6506
6507
6508 case $host_os in
6509 aix3*)
6510 # AIX sometimes has problems with the GCC collect2 program. For some
6511 # reason, if we set the COLLECT_NAMES environment variable, the problems
6512 # vanish in a puff of smoke.
6513 if test "X${COLLECT_NAMES+set}" != Xset; then
6514 COLLECT_NAMES=
6515 export COLLECT_NAMES
6516 fi
6517 ;;
6518 esac
6519
6520 # Sed substitution that helps us do robust quoting. It backslashifies
6521 # metacharacters that are still active within double-quoted strings.
6522 Xsed='sed -e 1s/^X//'
6523 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6524
6525 # Same as above, but do not quote variable references.
6526 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6527
6528 # Sed substitution to delay expansion of an escaped shell variable in a
6529 # double_quote_subst'ed string.
6530 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6531
6532 # Sed substitution to avoid accidental globbing in evaled expressions
6533 no_glob_subst='s/\*/\\\*/g'
6534
6535 # Constants:
6536 rm="rm -f"
6537
6538 # Global variables:
6539 default_ofile=libtool
6540 can_build_shared=yes
6541
6542 # All known linkers require a `.a' archive for static linking (except MSVC,
6543 # which needs '.lib').
6544 libext=a
6545 ltmain="$ac_aux_dir/ltmain.sh"
6546 ofile="$default_ofile"
6547 with_gnu_ld="$lt_cv_prog_gnu_ld"
6548
6549 if test -n "$ac_tool_prefix"; then
6550 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}ar; ac_word=$2
6552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554 if test "${ac_cv_prog_AR+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557 if test -n "$AR"; then
6558 ac_cv_prog_AR="$AR" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567 ac_cv_prog_AR="${ac_tool_prefix}ar"
6568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 break 2
6570 fi
6571 done
6572 done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 AR=$ac_cv_prog_AR
6578 if test -n "$AR"; then
6579 { echo "$as_me:$LINENO: result: $AR" >&5
6580 echo "${ECHO_T}$AR" >&6; }
6581 else
6582 { echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6; }
6584 fi
6585
6586
6587 fi
6588 if test -z "$ac_cv_prog_AR"; then
6589 ac_ct_AR=$AR
6590 # Extract the first word of "ar", so it can be a program name with args.
6591 set dummy ar; ac_word=$2
6592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6594 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597 if test -n "$ac_ct_AR"; then
6598 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607 ac_cv_prog_ac_ct_AR="ar"
6608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611 done
6612 done
6613 IFS=$as_save_IFS
6614
6615 fi
6616 fi
6617 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6618 if test -n "$ac_ct_AR"; then
6619 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6620 echo "${ECHO_T}$ac_ct_AR" >&6; }
6621 else
6622 { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6624 fi
6625
6626 if test "x$ac_ct_AR" = x; then
6627 AR="false"
6628 else
6629 case $cross_compiling:$ac_tool_warned in
6630 yes:)
6631 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6632 whose name does not start with the host triplet. If you think this
6633 configuration is useful to you, please write to autoconf@gnu.org." >&5
6634 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6635 whose name does not start with the host triplet. If you think this
6636 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6637 ac_tool_warned=yes ;;
6638 esac
6639 AR=$ac_ct_AR
6640 fi
6641 else
6642 AR="$ac_cv_prog_AR"
6643 fi
6644
6645 if test -n "$ac_tool_prefix"; then
6646 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6647 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650 if test "${ac_cv_prog_RANLIB+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653 if test -n "$RANLIB"; then
6654 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6655 else
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6658 do
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 break 2
6666 fi
6667 done
6668 done
6669 IFS=$as_save_IFS
6670
6671 fi
6672 fi
6673 RANLIB=$ac_cv_prog_RANLIB
6674 if test -n "$RANLIB"; then
6675 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6676 echo "${ECHO_T}$RANLIB" >&6; }
6677 else
6678 { echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6; }
6680 fi
6681
6682
6683 fi
6684 if test -z "$ac_cv_prog_RANLIB"; then
6685 ac_ct_RANLIB=$RANLIB
6686 # Extract the first word of "ranlib", so it can be a program name with args.
6687 set dummy ranlib; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693 if test -n "$ac_ct_RANLIB"; then
6694 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_prog_ac_ct_RANLIB="ranlib"
6704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707 done
6708 done
6709 IFS=$as_save_IFS
6710
6711 fi
6712 fi
6713 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6714 if test -n "$ac_ct_RANLIB"; then
6715 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6716 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6717 else
6718 { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6720 fi
6721
6722 if test "x$ac_ct_RANLIB" = x; then
6723 RANLIB=":"
6724 else
6725 case $cross_compiling:$ac_tool_warned in
6726 yes:)
6727 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6728 whose name does not start with the host triplet. If you think this
6729 configuration is useful to you, please write to autoconf@gnu.org." >&5
6730 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6731 whose name does not start with the host triplet. If you think this
6732 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6733 ac_tool_warned=yes ;;
6734 esac
6735 RANLIB=$ac_ct_RANLIB
6736 fi
6737 else
6738 RANLIB="$ac_cv_prog_RANLIB"
6739 fi
6740
6741 if test -n "$ac_tool_prefix"; then
6742 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6743 set dummy ${ac_tool_prefix}strip; ac_word=$2
6744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6746 if test "${ac_cv_prog_STRIP+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 if test -n "$STRIP"; then
6750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767 fi
6768 fi
6769 STRIP=$ac_cv_prog_STRIP
6770 if test -n "$STRIP"; then
6771 { echo "$as_me:$LINENO: result: $STRIP" >&5
6772 echo "${ECHO_T}$STRIP" >&6; }
6773 else
6774 { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6776 fi
6777
6778
6779 fi
6780 if test -z "$ac_cv_prog_STRIP"; then
6781 ac_ct_STRIP=$STRIP
6782 # Extract the first word of "strip", so it can be a program name with args.
6783 set dummy strip; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789 if test -n "$ac_ct_STRIP"; then
6790 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799 ac_cv_prog_ac_ct_STRIP="strip"
6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6802 fi
6803 done
6804 done
6805 IFS=$as_save_IFS
6806
6807 fi
6808 fi
6809 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6810 if test -n "$ac_ct_STRIP"; then
6811 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6812 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6813 else
6814 { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6816 fi
6817
6818 if test "x$ac_ct_STRIP" = x; then
6819 STRIP=":"
6820 else
6821 case $cross_compiling:$ac_tool_warned in
6822 yes:)
6823 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6824 whose name does not start with the host triplet. If you think this
6825 configuration is useful to you, please write to autoconf@gnu.org." >&5
6826 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6827 whose name does not start with the host triplet. If you think this
6828 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6829 ac_tool_warned=yes ;;
6830 esac
6831 STRIP=$ac_ct_STRIP
6832 fi
6833 else
6834 STRIP="$ac_cv_prog_STRIP"
6835 fi
6836
6837
6838 old_CC="$CC"
6839 old_CFLAGS="$CFLAGS"
6840
6841 # Set sane defaults for various variables
6842 test -z "$AR" && AR=ar
6843 test -z "$AR_FLAGS" && AR_FLAGS=cru
6844 test -z "$AS" && AS=as
6845 test -z "$CC" && CC=cc
6846 test -z "$LTCC" && LTCC=$CC
6847 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6848 test -z "$DLLTOOL" && DLLTOOL=dlltool
6849 test -z "$LD" && LD=ld
6850 test -z "$LN_S" && LN_S="ln -s"
6851 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6852 test -z "$NM" && NM=nm
6853 test -z "$SED" && SED=sed
6854 test -z "$OBJDUMP" && OBJDUMP=objdump
6855 test -z "$RANLIB" && RANLIB=:
6856 test -z "$STRIP" && STRIP=:
6857 test -z "$ac_objext" && ac_objext=o
6858
6859 # Determine commands to create old-style static archives.
6860 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6861 old_postinstall_cmds='chmod 644 $oldlib'
6862 old_postuninstall_cmds=
6863
6864 if test -n "$RANLIB"; then
6865 case $host_os in
6866 openbsd*)
6867 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6868 ;;
6869 *)
6870 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6871 ;;
6872 esac
6873 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6874 fi
6875
6876 for cc_temp in $compiler""; do
6877 case $cc_temp in
6878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6880 \-*) ;;
6881 *) break;;
6882 esac
6883 done
6884 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6885
6886
6887 # Only perform the check for file, if the check method requires it
6888 case $deplibs_check_method in
6889 file_magic*)
6890 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6891 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6892 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6893 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896 case $MAGIC_CMD in
6897 [\\/*] | ?:[\\/]*)
6898 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6899 ;;
6900 *)
6901 lt_save_MAGIC_CMD="$MAGIC_CMD"
6902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6903 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6904 for ac_dir in $ac_dummy; do
6905 IFS="$lt_save_ifs"
6906 test -z "$ac_dir" && ac_dir=.
6907 if test -f $ac_dir/${ac_tool_prefix}file; then
6908 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6909 if test -n "$file_magic_test_file"; then
6910 case $deplibs_check_method in
6911 "file_magic "*)
6912 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6914 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6915 $EGREP "$file_magic_regex" > /dev/null; then
6916 :
6917 else
6918 cat <<EOF 1>&2
6919
6920 *** Warning: the command libtool uses to detect shared libraries,
6921 *** $file_magic_cmd, produces output that libtool cannot recognize.
6922 *** The result is that libtool may fail to recognize shared libraries
6923 *** as such. This will affect the creation of libtool libraries that
6924 *** depend on shared libraries, but programs linked with such libtool
6925 *** libraries will work regardless of this problem. Nevertheless, you
6926 *** may want to report the problem to your system manager and/or to
6927 *** bug-libtool@gnu.org
6928
6929 EOF
6930 fi ;;
6931 esac
6932 fi
6933 break
6934 fi
6935 done
6936 IFS="$lt_save_ifs"
6937 MAGIC_CMD="$lt_save_MAGIC_CMD"
6938 ;;
6939 esac
6940 fi
6941
6942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6943 if test -n "$MAGIC_CMD"; then
6944 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6945 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6946 else
6947 { echo "$as_me:$LINENO: result: no" >&5
6948 echo "${ECHO_T}no" >&6; }
6949 fi
6950
6951 if test -z "$lt_cv_path_MAGIC_CMD"; then
6952 if test -n "$ac_tool_prefix"; then
6953 { echo "$as_me:$LINENO: checking for file" >&5
6954 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6955 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958 case $MAGIC_CMD in
6959 [\\/*] | ?:[\\/]*)
6960 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6961 ;;
6962 *)
6963 lt_save_MAGIC_CMD="$MAGIC_CMD"
6964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6965 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6966 for ac_dir in $ac_dummy; do
6967 IFS="$lt_save_ifs"
6968 test -z "$ac_dir" && ac_dir=.
6969 if test -f $ac_dir/file; then
6970 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6971 if test -n "$file_magic_test_file"; then
6972 case $deplibs_check_method in
6973 "file_magic "*)
6974 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6975 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6976 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6977 $EGREP "$file_magic_regex" > /dev/null; then
6978 :
6979 else
6980 cat <<EOF 1>&2
6981
6982 *** Warning: the command libtool uses to detect shared libraries,
6983 *** $file_magic_cmd, produces output that libtool cannot recognize.
6984 *** The result is that libtool may fail to recognize shared libraries
6985 *** as such. This will affect the creation of libtool libraries that
6986 *** depend on shared libraries, but programs linked with such libtool
6987 *** libraries will work regardless of this problem. Nevertheless, you
6988 *** may want to report the problem to your system manager and/or to
6989 *** bug-libtool@gnu.org
6990
6991 EOF
6992 fi ;;
6993 esac
6994 fi
6995 break
6996 fi
6997 done
6998 IFS="$lt_save_ifs"
6999 MAGIC_CMD="$lt_save_MAGIC_CMD"
7000 ;;
7001 esac
7002 fi
7003
7004 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7005 if test -n "$MAGIC_CMD"; then
7006 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7007 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7008 else
7009 { echo "$as_me:$LINENO: result: no" >&5
7010 echo "${ECHO_T}no" >&6; }
7011 fi
7012
7013 else
7014 MAGIC_CMD=:
7015 fi
7016 fi
7017
7018 fi
7019 ;;
7020 esac
7021
7022 enable_dlopen=no
7023 enable_win32_dll=no
7024
7025 # Check whether --enable-libtool-lock was given.
7026 if test "${enable_libtool_lock+set}" = set; then
7027 enableval=$enable_libtool_lock;
7028 fi
7029
7030 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7031
7032
7033 # Check whether --with-pic was given.
7034 if test "${with_pic+set}" = set; then
7035 withval=$with_pic; pic_mode="$withval"
7036 else
7037 pic_mode=default
7038 fi
7039
7040 test -z "$pic_mode" && pic_mode=default
7041
7042 # Use C for the default configuration in the libtool script
7043 tagname=
7044 lt_save_CC="$CC"
7045 ac_ext=c
7046 ac_cpp='$CPP $CPPFLAGS'
7047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7050
7051
7052 # Source file extension for C test sources.
7053 ac_ext=c
7054
7055 # Object file extension for compiled C test sources.
7056 objext=o
7057 objext=$objext
7058
7059 # Code to be used in simple compile tests
7060 lt_simple_compile_test_code="int some_variable = 0;\n"
7061
7062 # Code to be used in simple link tests
7063 lt_simple_link_test_code='int main(){return(0);}\n'
7064
7065
7066 # If no C compiler was specified, use CC.
7067 LTCC=${LTCC-"$CC"}
7068
7069 # If no C compiler flags were specified, use CFLAGS.
7070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7071
7072 # Allow CC to be a program name with arguments.
7073 compiler=$CC
7074
7075
7076 # save warnings/boilerplate of simple test code
7077 ac_outfile=conftest.$ac_objext
7078 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7079 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7080 _lt_compiler_boilerplate=`cat conftest.err`
7081 $rm conftest*
7082
7083 ac_outfile=conftest.$ac_objext
7084 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7085 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7086 _lt_linker_boilerplate=`cat conftest.err`
7087 $rm conftest*
7088
7089
7090
7091 lt_prog_compiler_no_builtin_flag=
7092
7093 if test "$GCC" = yes; then
7094 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7095
7096
7097 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7098 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7099 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102 lt_cv_prog_compiler_rtti_exceptions=no
7103 ac_outfile=conftest.$ac_objext
7104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7105 lt_compiler_flag="-fno-rtti -fno-exceptions"
7106 # Insert the option either (1) after the last *FLAGS variable, or
7107 # (2) before a word containing "conftest.", or (3) at the end.
7108 # Note that $ac_compile itself does not contain backslashes and begins
7109 # with a dollar sign (not a hyphen), so the echo should work correctly.
7110 # The option is referenced via a variable to avoid confusing sed.
7111 lt_compile=`echo "$ac_compile" | $SED \
7112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7114 -e 's:$: $lt_compiler_flag:'`
7115 (eval echo "\"\$as_me:7115: $lt_compile\"" >&5)
7116 (eval "$lt_compile" 2>conftest.err)
7117 ac_status=$?
7118 cat conftest.err >&5
7119 echo "$as_me:7119: \$? = $ac_status" >&5
7120 if (exit $ac_status) && test -s "$ac_outfile"; then
7121 # The compiler can only warn and ignore the option if not recognized
7122 # So say no if there are warnings other than the usual output.
7123 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7125 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7126 lt_cv_prog_compiler_rtti_exceptions=yes
7127 fi
7128 fi
7129 $rm conftest*
7130
7131 fi
7132 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7133 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7134
7135 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7136 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7137 else
7138 :
7139 fi
7140
7141 fi
7142
7143 lt_prog_compiler_wl=
7144 lt_prog_compiler_pic=
7145 lt_prog_compiler_static=
7146
7147 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7148 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7149
7150 if test "$GCC" = yes; then
7151 lt_prog_compiler_wl='-Wl,'
7152 lt_prog_compiler_static='-static'
7153
7154 case $host_os in
7155 aix*)
7156 # All AIX code is PIC.
7157 if test "$host_cpu" = ia64; then
7158 # AIX 5 now supports IA64 processor
7159 lt_prog_compiler_static='-Bstatic'
7160 fi
7161 ;;
7162
7163 amigaos*)
7164 # FIXME: we need at least 68020 code to build shared libraries, but
7165 # adding the `-m68020' flag to GCC prevents building anything better,
7166 # like `-m68040'.
7167 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7168 ;;
7169
7170 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7171 # PIC is the default for these OSes.
7172 ;;
7173
7174 mingw* | pw32* | os2*)
7175 # This hack is so that the source file can tell whether it is being
7176 # built for inclusion in a dll (and should export symbols for example).
7177 lt_prog_compiler_pic='-DDLL_EXPORT'
7178 ;;
7179
7180 darwin* | rhapsody*)
7181 # PIC is the default on this platform
7182 # Common symbols not allowed in MH_DYLIB files
7183 lt_prog_compiler_pic='-fno-common'
7184 ;;
7185
7186 interix3*)
7187 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7188 # Instead, we relocate shared libraries at runtime.
7189 ;;
7190
7191 msdosdjgpp*)
7192 # Just because we use GCC doesn't mean we suddenly get shared libraries
7193 # on systems that don't support them.
7194 lt_prog_compiler_can_build_shared=no
7195 enable_shared=no
7196 ;;
7197
7198 sysv4*MP*)
7199 if test -d /usr/nec; then
7200 lt_prog_compiler_pic=-Kconform_pic
7201 fi
7202 ;;
7203
7204 hpux*)
7205 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7206 # not for PA HP-UX.
7207 case $host_cpu in
7208 hppa*64*|ia64*)
7209 # +Z the default
7210 ;;
7211 *)
7212 lt_prog_compiler_pic='-fPIC'
7213 ;;
7214 esac
7215 ;;
7216
7217 *)
7218 lt_prog_compiler_pic='-fPIC'
7219 ;;
7220 esac
7221 else
7222 # PORTME Check for flag to pass linker flags through the system compiler.
7223 case $host_os in
7224 aix*)
7225 lt_prog_compiler_wl='-Wl,'
7226 if test "$host_cpu" = ia64; then
7227 # AIX 5 now supports IA64 processor
7228 lt_prog_compiler_static='-Bstatic'
7229 else
7230 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7231 fi
7232 ;;
7233 darwin*)
7234 # PIC is the default on this platform
7235 # Common symbols not allowed in MH_DYLIB files
7236 case $cc_basename in
7237 xlc*)
7238 lt_prog_compiler_pic='-qnocommon'
7239 lt_prog_compiler_wl='-Wl,'
7240 ;;
7241 esac
7242 ;;
7243
7244 mingw* | pw32* | os2*)
7245 # This hack is so that the source file can tell whether it is being
7246 # built for inclusion in a dll (and should export symbols for example).
7247 lt_prog_compiler_pic='-DDLL_EXPORT'
7248 ;;
7249
7250 hpux9* | hpux10* | hpux11*)
7251 lt_prog_compiler_wl='-Wl,'
7252 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7253 # not for PA HP-UX.
7254 case $host_cpu in
7255 hppa*64*|ia64*)
7256 # +Z the default
7257 ;;
7258 *)
7259 lt_prog_compiler_pic='+Z'
7260 ;;
7261 esac
7262 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7263 lt_prog_compiler_static='${wl}-a ${wl}archive'
7264 ;;
7265
7266 irix5* | irix6* | nonstopux*)
7267 lt_prog_compiler_wl='-Wl,'
7268 # PIC (with -KPIC) is the default.
7269 lt_prog_compiler_static='-non_shared'
7270 ;;
7271
7272 newsos6)
7273 lt_prog_compiler_pic='-KPIC'
7274 lt_prog_compiler_static='-Bstatic'
7275 ;;
7276
7277 linux*)
7278 case $cc_basename in
7279 icc* | ecc*)
7280 lt_prog_compiler_wl='-Wl,'
7281 lt_prog_compiler_pic='-KPIC'
7282 lt_prog_compiler_static='-static'
7283 ;;
7284 pgcc* | pgf77* | pgf90* | pgf95*)
7285 # Portland Group compilers (*not* the Pentium gcc compiler,
7286 # which looks to be a dead project)
7287 lt_prog_compiler_wl='-Wl,'
7288 lt_prog_compiler_pic='-fpic'
7289 lt_prog_compiler_static='-Bstatic'
7290 ;;
7291 ccc*)
7292 lt_prog_compiler_wl='-Wl,'
7293 # All Alpha code is PIC.
7294 lt_prog_compiler_static='-non_shared'
7295 ;;
7296 esac
7297 ;;
7298
7299 osf3* | osf4* | osf5*)
7300 lt_prog_compiler_wl='-Wl,'
7301 # All OSF/1 code is PIC.
7302 lt_prog_compiler_static='-non_shared'
7303 ;;
7304
7305 solaris*)
7306 lt_prog_compiler_pic='-KPIC'
7307 lt_prog_compiler_static='-Bstatic'
7308 case $cc_basename in
7309 f77* | f90* | f95*)
7310 lt_prog_compiler_wl='-Qoption ld ';;
7311 *)
7312 lt_prog_compiler_wl='-Wl,';;
7313 esac
7314 ;;
7315
7316 sunos4*)
7317 lt_prog_compiler_wl='-Qoption ld '
7318 lt_prog_compiler_pic='-PIC'
7319 lt_prog_compiler_static='-Bstatic'
7320 ;;
7321
7322 sysv4 | sysv4.2uw2* | sysv4.3*)
7323 lt_prog_compiler_wl='-Wl,'
7324 lt_prog_compiler_pic='-KPIC'
7325 lt_prog_compiler_static='-Bstatic'
7326 ;;
7327
7328 sysv4*MP*)
7329 if test -d /usr/nec ;then
7330 lt_prog_compiler_pic='-Kconform_pic'
7331 lt_prog_compiler_static='-Bstatic'
7332 fi
7333 ;;
7334
7335 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7336 lt_prog_compiler_wl='-Wl,'
7337 lt_prog_compiler_pic='-KPIC'
7338 lt_prog_compiler_static='-Bstatic'
7339 ;;
7340
7341 unicos*)
7342 lt_prog_compiler_wl='-Wl,'
7343 lt_prog_compiler_can_build_shared=no
7344 ;;
7345
7346 uts4*)
7347 lt_prog_compiler_pic='-pic'
7348 lt_prog_compiler_static='-Bstatic'
7349 ;;
7350
7351 *)
7352 lt_prog_compiler_can_build_shared=no
7353 ;;
7354 esac
7355 fi
7356
7357 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7358 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7359
7360 #
7361 # Check to make sure the PIC flag actually works.
7362 #
7363 if test -n "$lt_prog_compiler_pic"; then
7364
7365 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7366 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7367 if test "${lt_prog_compiler_pic_works+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370 lt_prog_compiler_pic_works=no
7371 ac_outfile=conftest.$ac_objext
7372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7373 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7374 # Insert the option either (1) after the last *FLAGS variable, or
7375 # (2) before a word containing "conftest.", or (3) at the end.
7376 # Note that $ac_compile itself does not contain backslashes and begins
7377 # with a dollar sign (not a hyphen), so the echo should work correctly.
7378 # The option is referenced via a variable to avoid confusing sed.
7379 lt_compile=`echo "$ac_compile" | $SED \
7380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7382 -e 's:$: $lt_compiler_flag:'`
7383 (eval echo "\"\$as_me:7383: $lt_compile\"" >&5)
7384 (eval "$lt_compile" 2>conftest.err)
7385 ac_status=$?
7386 cat conftest.err >&5
7387 echo "$as_me:7387: \$? = $ac_status" >&5
7388 if (exit $ac_status) && test -s "$ac_outfile"; then
7389 # The compiler can only warn and ignore the option if not recognized
7390 # So say no if there are warnings other than the usual output.
7391 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7394 lt_prog_compiler_pic_works=yes
7395 fi
7396 fi
7397 $rm conftest*
7398
7399 fi
7400 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7401 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7402
7403 if test x"$lt_prog_compiler_pic_works" = xyes; then
7404 case $lt_prog_compiler_pic in
7405 "" | " "*) ;;
7406 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7407 esac
7408 else
7409 lt_prog_compiler_pic=
7410 lt_prog_compiler_can_build_shared=no
7411 fi
7412
7413 fi
7414 case $host_os in
7415 # For platforms which do not support PIC, -DPIC is meaningless:
7416 *djgpp*)
7417 lt_prog_compiler_pic=
7418 ;;
7419 *)
7420 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7421 ;;
7422 esac
7423
7424 #
7425 # Check to make sure the static flag actually works.
7426 #
7427 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7428 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7429 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7430 if test "${lt_prog_compiler_static_works+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 lt_prog_compiler_static_works=no
7434 save_LDFLAGS="$LDFLAGS"
7435 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7436 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7438 # The linker can only warn and ignore the option if not recognized
7439 # So say no if there are warnings
7440 if test -s conftest.err; then
7441 # Append any errors to the config.log.
7442 cat conftest.err 1>&5
7443 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7445 if diff conftest.exp conftest.er2 >/dev/null; then
7446 lt_prog_compiler_static_works=yes
7447 fi
7448 else
7449 lt_prog_compiler_static_works=yes
7450 fi
7451 fi
7452 $rm conftest*
7453 LDFLAGS="$save_LDFLAGS"
7454
7455 fi
7456 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7457 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7458
7459 if test x"$lt_prog_compiler_static_works" = xyes; then
7460 :
7461 else
7462 lt_prog_compiler_static=
7463 fi
7464
7465
7466 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7467 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7468 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471 lt_cv_prog_compiler_c_o=no
7472 $rm -r conftest 2>/dev/null
7473 mkdir conftest
7474 cd conftest
7475 mkdir out
7476 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7477
7478 lt_compiler_flag="-o out/conftest2.$ac_objext"
7479 # Insert the option either (1) after the last *FLAGS variable, or
7480 # (2) before a word containing "conftest.", or (3) at the end.
7481 # Note that $ac_compile itself does not contain backslashes and begins
7482 # with a dollar sign (not a hyphen), so the echo should work correctly.
7483 lt_compile=`echo "$ac_compile" | $SED \
7484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7486 -e 's:$: $lt_compiler_flag:'`
7487 (eval echo "\"\$as_me:7487: $lt_compile\"" >&5)
7488 (eval "$lt_compile" 2>out/conftest.err)
7489 ac_status=$?
7490 cat out/conftest.err >&5
7491 echo "$as_me:7491: \$? = $ac_status" >&5
7492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7493 then
7494 # The compiler can only warn and ignore the option if not recognized
7495 # So say no if there are warnings
7496 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7499 lt_cv_prog_compiler_c_o=yes
7500 fi
7501 fi
7502 chmod u+w . 2>&5
7503 $rm conftest*
7504 # SGI C++ compiler will create directory out/ii_files/ for
7505 # template instantiation
7506 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7507 $rm out/* && rmdir out
7508 cd ..
7509 rmdir conftest
7510 $rm conftest*
7511
7512 fi
7513 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7514 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7515
7516
7517 hard_links="nottested"
7518 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7519 # do not overwrite the value of need_locks provided by the user
7520 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7521 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7522 hard_links=yes
7523 $rm conftest*
7524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7525 touch conftest.a
7526 ln conftest.a conftest.b 2>&5 || hard_links=no
7527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7528 { echo "$as_me:$LINENO: result: $hard_links" >&5
7529 echo "${ECHO_T}$hard_links" >&6; }
7530 if test "$hard_links" = no; then
7531 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7532 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7533 need_locks=warn
7534 fi
7535 else
7536 need_locks=no
7537 fi
7538
7539 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7540 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7541
7542 runpath_var=
7543 allow_undefined_flag=
7544 enable_shared_with_static_runtimes=no
7545 archive_cmds=
7546 archive_expsym_cmds=
7547 old_archive_From_new_cmds=
7548 old_archive_from_expsyms_cmds=
7549 export_dynamic_flag_spec=
7550 whole_archive_flag_spec=
7551 thread_safe_flag_spec=
7552 hardcode_libdir_flag_spec=
7553 hardcode_libdir_flag_spec_ld=
7554 hardcode_libdir_separator=
7555 hardcode_direct=no
7556 hardcode_minus_L=no
7557 hardcode_shlibpath_var=unsupported
7558 link_all_deplibs=unknown
7559 hardcode_automatic=no
7560 module_cmds=
7561 module_expsym_cmds=
7562 always_export_symbols=no
7563 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7564 # include_expsyms should be a list of space-separated symbols to be *always*
7565 # included in the symbol list
7566 include_expsyms=
7567 # exclude_expsyms can be an extended regexp of symbols to exclude
7568 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7569 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7570 # as well as any symbol that contains `d'.
7571 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7572 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7573 # platforms (ab)use it in PIC code, but their linkers get confused if
7574 # the symbol is explicitly referenced. Since portable code cannot
7575 # rely on this symbol name, it's probably fine to never include it in
7576 # preloaded symbol tables.
7577 extract_expsyms_cmds=
7578 # Just being paranoid about ensuring that cc_basename is set.
7579 for cc_temp in $compiler""; do
7580 case $cc_temp in
7581 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7582 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7583 \-*) ;;
7584 *) break;;
7585 esac
7586 done
7587 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7588
7589 case $host_os in
7590 cygwin* | mingw* | pw32*)
7591 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7592 # When not using gcc, we currently assume that we are using
7593 # Microsoft Visual C++.
7594 if test "$GCC" != yes; then
7595 with_gnu_ld=no
7596 fi
7597 ;;
7598 interix*)
7599 # we just hope/assume this is gcc and not c89 (= MSVC++)
7600 with_gnu_ld=yes
7601 ;;
7602 openbsd*)
7603 with_gnu_ld=no
7604 ;;
7605 esac
7606
7607 ld_shlibs=yes
7608 if test "$with_gnu_ld" = yes; then
7609 # If archive_cmds runs LD, not CC, wlarc should be empty
7610 wlarc='${wl}'
7611
7612 # Set some defaults for GNU ld with shared library support. These
7613 # are reset later if shared libraries are not supported. Putting them
7614 # here allows them to be overridden if necessary.
7615 runpath_var=LD_RUN_PATH
7616 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7617 export_dynamic_flag_spec='${wl}--export-dynamic'
7618 # ancient GNU ld didn't support --whole-archive et. al.
7619 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7620 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7621 else
7622 whole_archive_flag_spec=
7623 fi
7624 supports_anon_versioning=no
7625 case `$LD -v 2>/dev/null` in
7626 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7627 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7628 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7629 *\ 2.11.*) ;; # other 2.11 versions
7630 *) supports_anon_versioning=yes ;;
7631 esac
7632
7633 # See if GNU ld supports shared libraries.
7634 case $host_os in
7635 aix3* | aix4* | aix5*)
7636 # On AIX/PPC, the GNU linker is very broken
7637 if test "$host_cpu" != ia64; then
7638 ld_shlibs=no
7639 cat <<EOF 1>&2
7640
7641 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7642 *** to be unable to reliably create shared libraries on AIX.
7643 *** Therefore, libtool is disabling shared libraries support. If you
7644 *** really care for shared libraries, you may want to modify your PATH
7645 *** so that a non-GNU linker is found, and then restart.
7646
7647 EOF
7648 fi
7649 ;;
7650
7651 amigaos*)
7652 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)'
7653 hardcode_libdir_flag_spec='-L$libdir'
7654 hardcode_minus_L=yes
7655
7656 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7657 # that the semantics of dynamic libraries on AmigaOS, at least up
7658 # to version 4, is to share data among multiple programs linked
7659 # with the same dynamic library. Since this doesn't match the
7660 # behavior of shared libraries on other platforms, we can't use
7661 # them.
7662 ld_shlibs=no
7663 ;;
7664
7665 beos*)
7666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7667 allow_undefined_flag=unsupported
7668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7669 # support --undefined. This deserves some investigation. FIXME
7670 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7671 else
7672 ld_shlibs=no
7673 fi
7674 ;;
7675
7676 cygwin* | mingw* | pw32*)
7677 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7678 # as there is no search path for DLLs.
7679 hardcode_libdir_flag_spec='-L$libdir'
7680 allow_undefined_flag=unsupported
7681 always_export_symbols=no
7682 enable_shared_with_static_runtimes=yes
7683 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7684
7685 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7687 # If the export-symbols file already is a .def file (1st line
7688 # is EXPORTS), use it as is; otherwise, prepend...
7689 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7690 cp $export_symbols $output_objdir/$soname.def;
7691 else
7692 echo EXPORTS > $output_objdir/$soname.def;
7693 cat $export_symbols >> $output_objdir/$soname.def;
7694 fi~
7695 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7696 else
7697 ld_shlibs=no
7698 fi
7699 ;;
7700
7701 interix3*)
7702 hardcode_direct=no
7703 hardcode_shlibpath_var=no
7704 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7705 export_dynamic_flag_spec='${wl}-E'
7706 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7707 # Instead, shared libraries are loaded at an image base (0x10000000 by
7708 # default) and relocated if they conflict, which is a slow very memory
7709 # consuming and fragmenting process. To avoid this, we pick a random,
7710 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7711 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7712 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7713 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'
7714 ;;
7715
7716 linux*)
7717 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7718 tmp_addflag=
7719 case $cc_basename,$host_cpu in
7720 pgcc*) # Portland Group C compiler
7721 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'
7722 tmp_addflag=' $pic_flag'
7723 ;;
7724 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7725 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'
7726 tmp_addflag=' $pic_flag -Mnomain' ;;
7727 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7728 tmp_addflag=' -i_dynamic' ;;
7729 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7730 tmp_addflag=' -i_dynamic -nofor_main' ;;
7731 ifc* | ifort*) # Intel Fortran compiler
7732 tmp_addflag=' -nofor_main' ;;
7733 esac
7734 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7735
7736 if test $supports_anon_versioning = yes; then
7737 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7738 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7739 $echo "local: *; };" >> $output_objdir/$libname.ver~
7740 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7741 fi
7742 else
7743 ld_shlibs=no
7744 fi
7745 ;;
7746
7747 netbsd*)
7748 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7749 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7750 wlarc=
7751 else
7752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7753 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7754 fi
7755 ;;
7756
7757 solaris*)
7758 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7759 ld_shlibs=no
7760 cat <<EOF 1>&2
7761
7762 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7763 *** create shared libraries on Solaris systems. Therefore, libtool
7764 *** is disabling shared libraries support. We urge you to upgrade GNU
7765 *** binutils to release 2.9.1 or newer. Another option is to modify
7766 *** your PATH or compiler configuration so that the native linker is
7767 *** used, and then restart.
7768
7769 EOF
7770 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7773 else
7774 ld_shlibs=no
7775 fi
7776 ;;
7777
7778 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7779 case `$LD -v 2>&1` in
7780 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7781 ld_shlibs=no
7782 cat <<_LT_EOF 1>&2
7783
7784 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7785 *** reliably create shared libraries on SCO systems. Therefore, libtool
7786 *** is disabling shared libraries support. We urge you to upgrade GNU
7787 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7788 *** your PATH or compiler configuration so that the native linker is
7789 *** used, and then restart.
7790
7791 _LT_EOF
7792 ;;
7793 *)
7794 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7795 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7798 else
7799 ld_shlibs=no
7800 fi
7801 ;;
7802 esac
7803 ;;
7804
7805 sunos4*)
7806 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7807 wlarc=
7808 hardcode_direct=yes
7809 hardcode_shlibpath_var=no
7810 ;;
7811
7812 *)
7813 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7816 else
7817 ld_shlibs=no
7818 fi
7819 ;;
7820 esac
7821
7822 if test "$ld_shlibs" = no; then
7823 runpath_var=
7824 hardcode_libdir_flag_spec=
7825 export_dynamic_flag_spec=
7826 whole_archive_flag_spec=
7827 fi
7828 else
7829 # PORTME fill in a description of your system's linker (not GNU ld)
7830 case $host_os in
7831 aix3*)
7832 allow_undefined_flag=unsupported
7833 always_export_symbols=yes
7834 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'
7835 # Note: this linker hardcodes the directories in LIBPATH if there
7836 # are no directories specified by -L.
7837 hardcode_minus_L=yes
7838 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7839 # Neither direct hardcoding nor static linking is supported with a
7840 # broken collect2.
7841 hardcode_direct=unsupported
7842 fi
7843 ;;
7844
7845 aix4* | aix5*)
7846 if test "$host_cpu" = ia64; then
7847 # On IA64, the linker does run time linking by default, so we don't
7848 # have to do anything special.
7849 aix_use_runtimelinking=no
7850 exp_sym_flag='-Bexport'
7851 no_entry_flag=""
7852 else
7853 # If we're using GNU nm, then we don't want the "-C" option.
7854 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7855 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7856 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'
7857 else
7858 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'
7859 fi
7860 aix_use_runtimelinking=no
7861
7862 # Test if we are trying to use run time linking or normal
7863 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7864 # need to do runtime linking.
7865 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7866 for ld_flag in $LDFLAGS; do
7867 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7868 aix_use_runtimelinking=yes
7869 break
7870 fi
7871 done
7872 ;;
7873 esac
7874
7875 exp_sym_flag='-bexport'
7876 no_entry_flag='-bnoentry'
7877 fi
7878
7879 # When large executables or shared objects are built, AIX ld can
7880 # have problems creating the table of contents. If linking a library
7881 # or program results in "error TOC overflow" add -mminimal-toc to
7882 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7883 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7884
7885 archive_cmds=''
7886 hardcode_direct=yes
7887 hardcode_libdir_separator=':'
7888 link_all_deplibs=yes
7889
7890 if test "$GCC" = yes; then
7891 case $host_os in aix4.[012]|aix4.[012].*)
7892 # We only want to do this on AIX 4.2 and lower, the check
7893 # below for broken collect2 doesn't work under 4.3+
7894 collect2name=`${CC} -print-prog-name=collect2`
7895 if test -f "$collect2name" && \
7896 strings "$collect2name" | grep resolve_lib_name >/dev/null
7897 then
7898 # We have reworked collect2
7899 hardcode_direct=yes
7900 else
7901 # We have old collect2
7902 hardcode_direct=unsupported
7903 # It fails to find uninstalled libraries when the uninstalled
7904 # path is not listed in the libpath. Setting hardcode_minus_L
7905 # to unsupported forces relinking
7906 hardcode_minus_L=yes
7907 hardcode_libdir_flag_spec='-L$libdir'
7908 hardcode_libdir_separator=
7909 fi
7910 ;;
7911 esac
7912 shared_flag='-shared'
7913 if test "$aix_use_runtimelinking" = yes; then
7914 shared_flag="$shared_flag "'${wl}-G'
7915 fi
7916 else
7917 # not using gcc
7918 if test "$host_cpu" = ia64; then
7919 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7920 # chokes on -Wl,-G. The following line is correct:
7921 shared_flag='-G'
7922 else
7923 if test "$aix_use_runtimelinking" = yes; then
7924 shared_flag='${wl}-G'
7925 else
7926 shared_flag='${wl}-bM:SRE'
7927 fi
7928 fi
7929 fi
7930
7931 # It seems that -bexpall does not export symbols beginning with
7932 # underscore (_), so it is better to generate a list of symbols to export.
7933 always_export_symbols=yes
7934 if test "$aix_use_runtimelinking" = yes; then
7935 # Warning - without using the other runtime loading flags (-brtl),
7936 # -berok will link without error, but may produce a broken library.
7937 allow_undefined_flag='-berok'
7938 # Determine the default libpath from the value encoded in an empty executable.
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h. */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7945
7946 int
7947 main ()
7948 {
7949
7950 ;
7951 return 0;
7952 }
7953 _ACEOF
7954 rm -f conftest.$ac_objext conftest$ac_exeext
7955 if { (ac_try="$ac_link"
7956 case "(($ac_try" in
7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958 *) ac_try_echo=$ac_try;;
7959 esac
7960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961 (eval "$ac_link") 2>conftest.er1
7962 ac_status=$?
7963 grep -v '^ *+' conftest.er1 >conftest.err
7964 rm -f conftest.er1
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } && {
7968 test -z "$ac_c_werror_flag" ||
7969 test ! -s conftest.err
7970 } && test -s conftest$ac_exeext &&
7971 $as_test_x conftest$ac_exeext; then
7972
7973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7974 }'`
7975 # Check for a 64-bit object if we didn't find anything.
7976 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; }
7977 }'`; fi
7978 else
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7981
7982
7983 fi
7984
7985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7986 conftest$ac_exeext conftest.$ac_ext
7987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7988
7989 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7990 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"
7991 else
7992 if test "$host_cpu" = ia64; then
7993 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7994 allow_undefined_flag="-z nodefs"
7995 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"
7996 else
7997 # Determine the default libpath from the value encoded in an empty executable.
7998 cat >conftest.$ac_ext <<_ACEOF
7999 /* confdefs.h. */
8000 _ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8004
8005 int
8006 main ()
8007 {
8008
8009 ;
8010 return 0;
8011 }
8012 _ACEOF
8013 rm -f conftest.$ac_objext conftest$ac_exeext
8014 if { (ac_try="$ac_link"
8015 case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8018 esac
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_link") 2>conftest.er1
8021 ac_status=$?
8022 grep -v '^ *+' conftest.er1 >conftest.err
8023 rm -f conftest.er1
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } && {
8027 test -z "$ac_c_werror_flag" ||
8028 test ! -s conftest.err
8029 } && test -s conftest$ac_exeext &&
8030 $as_test_x conftest$ac_exeext; then
8031
8032 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8033 }'`
8034 # Check for a 64-bit object if we didn't find anything.
8035 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; }
8036 }'`; fi
8037 else
8038 echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8040
8041
8042 fi
8043
8044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8045 conftest$ac_exeext conftest.$ac_ext
8046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8047
8048 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8049 # Warning - without using the other run time loading flags,
8050 # -berok will link without error, but may produce a broken library.
8051 no_undefined_flag=' ${wl}-bernotok'
8052 allow_undefined_flag=' ${wl}-berok'
8053 # Exported symbols can be pulled into shared objects from archives
8054 whole_archive_flag_spec='$convenience'
8055 archive_cmds_need_lc=yes
8056 # This is similar to how AIX traditionally builds its shared libraries.
8057 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'
8058 fi
8059 fi
8060 ;;
8061
8062 amigaos*)
8063 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)'
8064 hardcode_libdir_flag_spec='-L$libdir'
8065 hardcode_minus_L=yes
8066 # see comment about different semantics on the GNU ld section
8067 ld_shlibs=no
8068 ;;
8069
8070 bsdi[45]*)
8071 export_dynamic_flag_spec=-rdynamic
8072 ;;
8073
8074 cygwin* | mingw* | pw32*)
8075 # When not using gcc, we currently assume that we are using
8076 # Microsoft Visual C++.
8077 # hardcode_libdir_flag_spec is actually meaningless, as there is
8078 # no search path for DLLs.
8079 hardcode_libdir_flag_spec=' '
8080 allow_undefined_flag=unsupported
8081 # Tell ltmain to make .lib files, not .a files.
8082 libext=lib
8083 # Tell ltmain to make .dll files, not .so files.
8084 shrext_cmds=".dll"
8085 # FIXME: Setting linknames here is a bad hack.
8086 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8087 # The linker will automatically build a .lib file if we build a DLL.
8088 old_archive_From_new_cmds='true'
8089 # FIXME: Should let the user specify the lib program.
8090 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8091 fix_srcfile_path='`cygpath -w "$srcfile"`'
8092 enable_shared_with_static_runtimes=yes
8093 ;;
8094
8095 darwin* | rhapsody*)
8096 case $host_os in
8097 rhapsody* | darwin1.[012])
8098 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8099 ;;
8100 *) # Darwin 1.3 on
8101 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8102 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8103 else
8104 case ${MACOSX_DEPLOYMENT_TARGET} in
8105 10.[012])
8106 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8107 ;;
8108 10.*)
8109 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8110 ;;
8111 esac
8112 fi
8113 ;;
8114 esac
8115 archive_cmds_need_lc=no
8116 hardcode_direct=no
8117 hardcode_automatic=yes
8118 hardcode_shlibpath_var=unsupported
8119 whole_archive_flag_spec=''
8120 link_all_deplibs=yes
8121 if test "$GCC" = yes ; then
8122 output_verbose_link_cmd='echo'
8123 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8124 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8125 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8126 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}'
8127 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}'
8128 else
8129 case $cc_basename in
8130 xlc*)
8131 output_verbose_link_cmd='echo'
8132 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8133 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8134 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8135 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}'
8136 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}'
8137 ;;
8138 *)
8139 ld_shlibs=no
8140 ;;
8141 esac
8142 fi
8143 ;;
8144
8145 dgux*)
8146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8147 hardcode_libdir_flag_spec='-L$libdir'
8148 hardcode_shlibpath_var=no
8149 ;;
8150
8151 freebsd1*)
8152 ld_shlibs=no
8153 ;;
8154
8155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8156 # support. Future versions do this automatically, but an explicit c++rt0.o
8157 # does not break anything, and helps significantly (at the cost of a little
8158 # extra space).
8159 freebsd2.2*)
8160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8161 hardcode_libdir_flag_spec='-R$libdir'
8162 hardcode_direct=yes
8163 hardcode_shlibpath_var=no
8164 ;;
8165
8166 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8167 freebsd2*)
8168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8169 hardcode_direct=yes
8170 hardcode_minus_L=yes
8171 hardcode_shlibpath_var=no
8172 ;;
8173
8174 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8175 freebsd* | kfreebsd*-gnu | dragonfly*)
8176 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8177 hardcode_libdir_flag_spec='-R$libdir'
8178 hardcode_direct=yes
8179 hardcode_shlibpath_var=no
8180 ;;
8181
8182 hpux9*)
8183 if test "$GCC" = yes; then
8184 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'
8185 else
8186 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'
8187 fi
8188 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8189 hardcode_libdir_separator=:
8190 hardcode_direct=yes
8191
8192 # hardcode_minus_L: Not really in the search PATH,
8193 # but as the default location of the library.
8194 hardcode_minus_L=yes
8195 export_dynamic_flag_spec='${wl}-E'
8196 ;;
8197
8198 hpux10*)
8199 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8200 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8201 else
8202 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8203 fi
8204 if test "$with_gnu_ld" = no; then
8205 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8206 hardcode_libdir_separator=:
8207
8208 hardcode_direct=yes
8209 export_dynamic_flag_spec='${wl}-E'
8210
8211 # hardcode_minus_L: Not really in the search PATH,
8212 # but as the default location of the library.
8213 hardcode_minus_L=yes
8214 fi
8215 ;;
8216
8217 hpux11*)
8218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8219 case $host_cpu in
8220 hppa*64*)
8221 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8222 ;;
8223 ia64*)
8224 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8225 ;;
8226 *)
8227 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8228 ;;
8229 esac
8230 else
8231 case $host_cpu in
8232 hppa*64*)
8233 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8234 ;;
8235 ia64*)
8236 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8237 ;;
8238 *)
8239 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8240 ;;
8241 esac
8242 fi
8243 if test "$with_gnu_ld" = no; then
8244 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8245 hardcode_libdir_separator=:
8246
8247 case $host_cpu in
8248 hppa*64*|ia64*)
8249 hardcode_libdir_flag_spec_ld='+b $libdir'
8250 hardcode_direct=no
8251 hardcode_shlibpath_var=no
8252 ;;
8253 *)
8254 hardcode_direct=yes
8255 export_dynamic_flag_spec='${wl}-E'
8256
8257 # hardcode_minus_L: Not really in the search PATH,
8258 # but as the default location of the library.
8259 hardcode_minus_L=yes
8260 ;;
8261 esac
8262 fi
8263 ;;
8264
8265 irix5* | irix6* | nonstopux*)
8266 if test "$GCC" = yes; then
8267 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'
8268 else
8269 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'
8270 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8271 fi
8272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8273 hardcode_libdir_separator=:
8274 link_all_deplibs=yes
8275 ;;
8276
8277 netbsd*)
8278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8280 else
8281 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8282 fi
8283 hardcode_libdir_flag_spec='-R$libdir'
8284 hardcode_direct=yes
8285 hardcode_shlibpath_var=no
8286 ;;
8287
8288 newsos6)
8289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8290 hardcode_direct=yes
8291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8292 hardcode_libdir_separator=:
8293 hardcode_shlibpath_var=no
8294 ;;
8295
8296 openbsd*)
8297 hardcode_direct=yes
8298 hardcode_shlibpath_var=no
8299 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8300 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8301 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8302 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8303 export_dynamic_flag_spec='${wl}-E'
8304 else
8305 case $host_os in
8306 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8308 hardcode_libdir_flag_spec='-R$libdir'
8309 ;;
8310 *)
8311 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8312 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8313 ;;
8314 esac
8315 fi
8316 ;;
8317
8318 os2*)
8319 hardcode_libdir_flag_spec='-L$libdir'
8320 hardcode_minus_L=yes
8321 allow_undefined_flag=unsupported
8322 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'
8323 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8324 ;;
8325
8326 osf3*)
8327 if test "$GCC" = yes; then
8328 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8329 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'
8330 else
8331 allow_undefined_flag=' -expect_unresolved \*'
8332 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'
8333 fi
8334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8335 hardcode_libdir_separator=:
8336 ;;
8337
8338 osf4* | osf5*) # as osf3* with the addition of -msym flag
8339 if test "$GCC" = yes; then
8340 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8341 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'
8342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8343 else
8344 allow_undefined_flag=' -expect_unresolved \*'
8345 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'
8346 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8347 $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'
8348
8349 # Both c and cxx compiler support -rpath directly
8350 hardcode_libdir_flag_spec='-rpath $libdir'
8351 fi
8352 hardcode_libdir_separator=:
8353 ;;
8354
8355 solaris*)
8356 no_undefined_flag=' -z text'
8357 if test "$GCC" = yes; then
8358 wlarc='${wl}'
8359 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8360 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8361 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8362 else
8363 wlarc=''
8364 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8365 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8366 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8367 fi
8368 hardcode_libdir_flag_spec='-R$libdir'
8369 hardcode_shlibpath_var=no
8370 case $host_os in
8371 solaris2.[0-5] | solaris2.[0-5].*) ;;
8372 *)
8373 # The compiler driver will combine linker options so we
8374 # cannot just pass the convience library names through
8375 # without $wl, iff we do not link with $LD.
8376 # Luckily, gcc supports the same syntax we need for Sun Studio.
8377 # Supported since Solaris 2.6 (maybe 2.5.1?)
8378 case $wlarc in
8379 '')
8380 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8381 *)
8382 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' ;;
8383 esac ;;
8384 esac
8385 link_all_deplibs=yes
8386 ;;
8387
8388 sunos4*)
8389 if test "x$host_vendor" = xsequent; then
8390 # Use $CC to link under sequent, because it throws in some extra .o
8391 # files that make .init and .fini sections work.
8392 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8393 else
8394 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8395 fi
8396 hardcode_libdir_flag_spec='-L$libdir'
8397 hardcode_direct=yes
8398 hardcode_minus_L=yes
8399 hardcode_shlibpath_var=no
8400 ;;
8401
8402 sysv4)
8403 case $host_vendor in
8404 sni)
8405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8406 hardcode_direct=yes # is this really true???
8407 ;;
8408 siemens)
8409 ## LD is ld it makes a PLAMLIB
8410 ## CC just makes a GrossModule.
8411 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8412 reload_cmds='$CC -r -o $output$reload_objs'
8413 hardcode_direct=no
8414 ;;
8415 motorola)
8416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8417 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8418 ;;
8419 esac
8420 runpath_var='LD_RUN_PATH'
8421 hardcode_shlibpath_var=no
8422 ;;
8423
8424 sysv4.3*)
8425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8426 hardcode_shlibpath_var=no
8427 export_dynamic_flag_spec='-Bexport'
8428 ;;
8429
8430 sysv4*MP*)
8431 if test -d /usr/nec; then
8432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8433 hardcode_shlibpath_var=no
8434 runpath_var=LD_RUN_PATH
8435 hardcode_runpath_var=yes
8436 ld_shlibs=yes
8437 fi
8438 ;;
8439
8440 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8441 no_undefined_flag='${wl}-z,text'
8442 archive_cmds_need_lc=no
8443 hardcode_shlibpath_var=no
8444 runpath_var='LD_RUN_PATH'
8445
8446 if test "$GCC" = yes; then
8447 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8448 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8449 else
8450 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8451 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8452 fi
8453 ;;
8454
8455 sysv5* | sco3.2v5* | sco5v6*)
8456 # Note: We can NOT use -z defs as we might desire, because we do not
8457 # link with -lc, and that would cause any symbols used from libc to
8458 # always be unresolved, which means just about no library would
8459 # ever link correctly. If we're not using GNU ld we use -z text
8460 # though, which does catch some bad symbols but isn't as heavy-handed
8461 # as -z defs.
8462 no_undefined_flag='${wl}-z,text'
8463 allow_undefined_flag='${wl}-z,nodefs'
8464 archive_cmds_need_lc=no
8465 hardcode_shlibpath_var=no
8466 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8467 hardcode_libdir_separator=':'
8468 link_all_deplibs=yes
8469 export_dynamic_flag_spec='${wl}-Bexport'
8470 runpath_var='LD_RUN_PATH'
8471
8472 if test "$GCC" = yes; then
8473 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8474 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8475 else
8476 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8477 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8478 fi
8479 ;;
8480
8481 uts4*)
8482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8483 hardcode_libdir_flag_spec='-L$libdir'
8484 hardcode_shlibpath_var=no
8485 ;;
8486
8487 *)
8488 ld_shlibs=no
8489 ;;
8490 esac
8491 fi
8492
8493 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8494 echo "${ECHO_T}$ld_shlibs" >&6; }
8495 test "$ld_shlibs" = no && can_build_shared=no
8496
8497 #
8498 # Do we need to explicitly link libc?
8499 #
8500 case "x$archive_cmds_need_lc" in
8501 x|xyes)
8502 # Assume -lc should be added
8503 archive_cmds_need_lc=yes
8504
8505 if test "$enable_shared" = yes && test "$GCC" = yes; then
8506 case $archive_cmds in
8507 *'~'*)
8508 # FIXME: we may have to deal with multi-command sequences.
8509 ;;
8510 '$CC '*)
8511 # Test whether the compiler implicitly links with -lc since on some
8512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8513 # to ld, don't add -lc before -lgcc.
8514 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8515 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8516 $rm conftest*
8517 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8518
8519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8520 (eval $ac_compile) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } 2>conftest.err; then
8524 soname=conftest
8525 lib=conftest
8526 libobjs=conftest.$ac_objext
8527 deplibs=
8528 wl=$lt_prog_compiler_wl
8529 pic_flag=$lt_prog_compiler_pic
8530 compiler_flags=-v
8531 linker_flags=-v
8532 verstring=
8533 output_objdir=.
8534 libname=conftest
8535 lt_save_allow_undefined_flag=$allow_undefined_flag
8536 allow_undefined_flag=
8537 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8538 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }
8542 then
8543 archive_cmds_need_lc=no
8544 else
8545 archive_cmds_need_lc=yes
8546 fi
8547 allow_undefined_flag=$lt_save_allow_undefined_flag
8548 else
8549 cat conftest.err 1>&5
8550 fi
8551 $rm conftest*
8552 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8553 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8554 ;;
8555 esac
8556 fi
8557 ;;
8558 esac
8559
8560 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8561 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8562 library_names_spec=
8563 libname_spec='lib$name'
8564 soname_spec=
8565 shrext_cmds=".so"
8566 postinstall_cmds=
8567 postuninstall_cmds=
8568 finish_cmds=
8569 finish_eval=
8570 shlibpath_var=
8571 shlibpath_overrides_runpath=unknown
8572 version_type=none
8573 dynamic_linker="$host_os ld.so"
8574 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8575 if test "$GCC" = yes; then
8576 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8577 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8578 # if the path contains ";" then we assume it to be the separator
8579 # otherwise default to the standard path separator (i.e. ":") - it is
8580 # assumed that no part of a normal pathname contains ";" but that should
8581 # okay in the real world where ";" in dirpaths is itself problematic.
8582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8583 else
8584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8585 fi
8586 else
8587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8588 fi
8589 need_lib_prefix=unknown
8590 hardcode_into_libs=no
8591
8592 # when you set need_version to no, make sure it does not cause -set_version
8593 # flags to be left without arguments
8594 need_version=unknown
8595
8596 case $host_os in
8597 aix3*)
8598 version_type=linux
8599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8600 shlibpath_var=LIBPATH
8601
8602 # AIX 3 has no versioning support, so we append a major version to the name.
8603 soname_spec='${libname}${release}${shared_ext}$major'
8604 ;;
8605
8606 aix4* | aix5*)
8607 version_type=linux
8608 need_lib_prefix=no
8609 need_version=no
8610 hardcode_into_libs=yes
8611 if test "$host_cpu" = ia64; then
8612 # AIX 5 supports IA64
8613 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8614 shlibpath_var=LD_LIBRARY_PATH
8615 else
8616 # With GCC up to 2.95.x, collect2 would create an import file
8617 # for dependence libraries. The import file would start with
8618 # the line `#! .'. This would cause the generated library to
8619 # depend on `.', always an invalid library. This was fixed in
8620 # development snapshots of GCC prior to 3.0.
8621 case $host_os in
8622 aix4 | aix4.[01] | aix4.[01].*)
8623 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8624 echo ' yes '
8625 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8626 :
8627 else
8628 can_build_shared=no
8629 fi
8630 ;;
8631 esac
8632 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8633 # soname into executable. Probably we can add versioning support to
8634 # collect2, so additional links can be useful in future.
8635 if test "$aix_use_runtimelinking" = yes; then
8636 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8637 # instead of lib<name>.a to let people know that these are not
8638 # typical AIX shared libraries.
8639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8640 else
8641 # We preserve .a as extension for shared libraries through AIX4.2
8642 # and later when we are not doing run time linking.
8643 library_names_spec='${libname}${release}.a $libname.a'
8644 soname_spec='${libname}${release}${shared_ext}$major'
8645 fi
8646 shlibpath_var=LIBPATH
8647 fi
8648 ;;
8649
8650 amigaos*)
8651 library_names_spec='$libname.ixlibrary $libname.a'
8652 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8653 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'
8654 ;;
8655
8656 beos*)
8657 library_names_spec='${libname}${shared_ext}'
8658 dynamic_linker="$host_os ld.so"
8659 shlibpath_var=LIBRARY_PATH
8660 ;;
8661
8662 bsdi[45]*)
8663 version_type=linux
8664 need_version=no
8665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8666 soname_spec='${libname}${release}${shared_ext}$major'
8667 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8668 shlibpath_var=LD_LIBRARY_PATH
8669 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8670 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8671 # the default ld.so.conf also contains /usr/contrib/lib and
8672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8673 # libtool to hard-code these into programs
8674 ;;
8675
8676 cygwin* | mingw* | pw32*)
8677 version_type=windows
8678 shrext_cmds=".dll"
8679 need_version=no
8680 need_lib_prefix=no
8681
8682 case $GCC,$host_os in
8683 yes,cygwin* | yes,mingw* | yes,pw32*)
8684 library_names_spec='$libname.dll.a'
8685 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8686 postinstall_cmds='base_file=`basename \${file}`~
8687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8688 dldir=$destdir/`dirname \$dlpath`~
8689 test -d \$dldir || mkdir -p \$dldir~
8690 $install_prog $dir/$dlname \$dldir/$dlname~
8691 chmod a+x \$dldir/$dlname'
8692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8693 dlpath=$dir/\$dldll~
8694 $rm \$dlpath'
8695 shlibpath_overrides_runpath=yes
8696
8697 case $host_os in
8698 cygwin*)
8699 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8700 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8701 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8702 ;;
8703 mingw*)
8704 # MinGW DLLs use traditional 'lib' prefix
8705 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8706 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8707 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8708 # It is most probably a Windows format PATH printed by
8709 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8710 # path with ; separators, and with drive letters. We can handle the
8711 # drive letters (cygwin fileutils understands them), so leave them,
8712 # especially as we might pass files found there to a mingw objdump,
8713 # which wouldn't understand a cygwinified path. Ahh.
8714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8715 else
8716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8717 fi
8718 ;;
8719 pw32*)
8720 # pw32 DLLs use 'pw' prefix rather than 'lib'
8721 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8722 ;;
8723 esac
8724 ;;
8725
8726 *)
8727 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8728 ;;
8729 esac
8730 dynamic_linker='Win32 ld.exe'
8731 # FIXME: first we should search . and the directory the executable is in
8732 shlibpath_var=PATH
8733 ;;
8734
8735 darwin* | rhapsody*)
8736 dynamic_linker="$host_os dyld"
8737 version_type=darwin
8738 need_lib_prefix=no
8739 need_version=no
8740 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8741 soname_spec='${libname}${release}${major}$shared_ext'
8742 shlibpath_overrides_runpath=yes
8743 shlibpath_var=DYLD_LIBRARY_PATH
8744 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8745 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8746 if test "$GCC" = yes; then
8747 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"`
8748 else
8749 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8750 fi
8751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8752 ;;
8753
8754 dgux*)
8755 version_type=linux
8756 need_lib_prefix=no
8757 need_version=no
8758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8759 soname_spec='${libname}${release}${shared_ext}$major'
8760 shlibpath_var=LD_LIBRARY_PATH
8761 ;;
8762
8763 freebsd1*)
8764 dynamic_linker=no
8765 ;;
8766
8767 kfreebsd*-gnu)
8768 version_type=linux
8769 need_lib_prefix=no
8770 need_version=no
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8772 soname_spec='${libname}${release}${shared_ext}$major'
8773 shlibpath_var=LD_LIBRARY_PATH
8774 shlibpath_overrides_runpath=no
8775 hardcode_into_libs=yes
8776 dynamic_linker='GNU ld.so'
8777 ;;
8778
8779 freebsd* | dragonfly*)
8780 # DragonFly does not have aout. When/if they implement a new
8781 # versioning mechanism, adjust this.
8782 if test -x /usr/bin/objformat; then
8783 objformat=`/usr/bin/objformat`
8784 else
8785 case $host_os in
8786 freebsd[123]*) objformat=aout ;;
8787 *) objformat=elf ;;
8788 esac
8789 fi
8790 version_type=freebsd-$objformat
8791 case $version_type in
8792 freebsd-elf*)
8793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8794 need_version=no
8795 need_lib_prefix=no
8796 ;;
8797 freebsd-*)
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8799 need_version=yes
8800 ;;
8801 esac
8802 shlibpath_var=LD_LIBRARY_PATH
8803 case $host_os in
8804 freebsd2*)
8805 shlibpath_overrides_runpath=yes
8806 ;;
8807 freebsd3.[01]* | freebsdelf3.[01]*)
8808 shlibpath_overrides_runpath=yes
8809 hardcode_into_libs=yes
8810 ;;
8811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8813 shlibpath_overrides_runpath=no
8814 hardcode_into_libs=yes
8815 ;;
8816 freebsd*) # from 4.6 on
8817 shlibpath_overrides_runpath=yes
8818 hardcode_into_libs=yes
8819 ;;
8820 esac
8821 ;;
8822
8823 gnu*)
8824 version_type=linux
8825 need_lib_prefix=no
8826 need_version=no
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 shlibpath_var=LD_LIBRARY_PATH
8830 hardcode_into_libs=yes
8831 ;;
8832
8833 hpux9* | hpux10* | hpux11*)
8834 # Give a soname corresponding to the major version so that dld.sl refuses to
8835 # link against other versions.
8836 version_type=sunos
8837 need_lib_prefix=no
8838 need_version=no
8839 case $host_cpu in
8840 ia64*)
8841 shrext_cmds='.so'
8842 hardcode_into_libs=yes
8843 dynamic_linker="$host_os dld.so"
8844 shlibpath_var=LD_LIBRARY_PATH
8845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 if test "X$HPUX_IA64_MODE" = X32; then
8849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8850 else
8851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8852 fi
8853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8854 ;;
8855 hppa*64*)
8856 shrext_cmds='.sl'
8857 hardcode_into_libs=yes
8858 dynamic_linker="$host_os dld.sl"
8859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8865 ;;
8866 *)
8867 shrext_cmds='.sl'
8868 dynamic_linker="$host_os dld.sl"
8869 shlibpath_var=SHLIB_PATH
8870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 ;;
8874 esac
8875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8876 postinstall_cmds='chmod 555 $lib'
8877 ;;
8878
8879 interix3*)
8880 version_type=linux
8881 need_lib_prefix=no
8882 need_version=no
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8884 soname_spec='${libname}${release}${shared_ext}$major'
8885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8886 shlibpath_var=LD_LIBRARY_PATH
8887 shlibpath_overrides_runpath=no
8888 hardcode_into_libs=yes
8889 ;;
8890
8891 irix5* | irix6* | nonstopux*)
8892 case $host_os in
8893 nonstopux*) version_type=nonstopux ;;
8894 *)
8895 if test "$lt_cv_prog_gnu_ld" = yes; then
8896 version_type=linux
8897 else
8898 version_type=irix
8899 fi ;;
8900 esac
8901 need_lib_prefix=no
8902 need_version=no
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8905 case $host_os in
8906 irix5* | nonstopux*)
8907 libsuff= shlibsuff=
8908 ;;
8909 *)
8910 case $LD in # libtool.m4 will add one of these switches to LD
8911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8912 libsuff= shlibsuff= libmagic=32-bit;;
8913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8914 libsuff=32 shlibsuff=N32 libmagic=N32;;
8915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8917 *) libsuff= shlibsuff= libmagic=never-match;;
8918 esac
8919 ;;
8920 esac
8921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8922 shlibpath_overrides_runpath=no
8923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8925 hardcode_into_libs=yes
8926 ;;
8927
8928 # No shared lib support for Linux oldld, aout, or coff.
8929 linux*oldld* | linux*aout* | linux*coff*)
8930 dynamic_linker=no
8931 ;;
8932
8933 # This must be Linux ELF.
8934 linux*)
8935 version_type=linux
8936 need_lib_prefix=no
8937 need_version=no
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8941 shlibpath_var=LD_LIBRARY_PATH
8942 shlibpath_overrides_runpath=no
8943 # This implies no fast_install, which is unacceptable.
8944 # Some rework will be needed to allow for fast_install
8945 # before this can be enabled.
8946 hardcode_into_libs=yes
8947
8948 # find out which ABI we are using
8949 libsuff=
8950 case "$host_cpu" in
8951 x86_64*|s390x*|powerpc64*)
8952 echo '#line 8952 "configure"' > conftest.$ac_ext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8954 (eval $ac_compile) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; then
8958 case `/usr/bin/file conftest.$ac_objext` in
8959 *64-bit*)
8960 libsuff=64
8961 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8962 ;;
8963 esac
8964 fi
8965 rm -rf conftest*
8966 ;;
8967 esac
8968
8969 # Append ld.so.conf contents to the search path
8970 if test -f /etc/ld.so.conf; then
8971 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' ' '`
8972 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8973 fi
8974
8975 # We used to test for /lib/ld.so.1 and disable shared libraries on
8976 # powerpc, because MkLinux only supported shared libraries with the
8977 # GNU dynamic linker. Since this was broken with cross compilers,
8978 # most powerpc-linux boxes support dynamic linking these days and
8979 # people can always --disable-shared, the test was removed, and we
8980 # assume the GNU/Linux dynamic linker is in use.
8981 dynamic_linker='GNU/Linux ld.so'
8982 ;;
8983
8984 knetbsd*-gnu)
8985 version_type=linux
8986 need_lib_prefix=no
8987 need_version=no
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=no
8992 hardcode_into_libs=yes
8993 dynamic_linker='GNU ld.so'
8994 ;;
8995
8996 netbsd*)
8997 version_type=sunos
8998 need_lib_prefix=no
8999 need_version=no
9000 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9003 dynamic_linker='NetBSD (a.out) ld.so'
9004 else
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 dynamic_linker='NetBSD ld.elf_so'
9008 fi
9009 shlibpath_var=LD_LIBRARY_PATH
9010 shlibpath_overrides_runpath=yes
9011 hardcode_into_libs=yes
9012 ;;
9013
9014 newsos6)
9015 version_type=linux
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 shlibpath_var=LD_LIBRARY_PATH
9018 shlibpath_overrides_runpath=yes
9019 ;;
9020
9021 nto-qnx*)
9022 version_type=linux
9023 need_lib_prefix=no
9024 need_version=no
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=yes
9029 ;;
9030
9031 openbsd*)
9032 version_type=sunos
9033 sys_lib_dlsearch_path_spec="/usr/lib"
9034 need_lib_prefix=no
9035 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9036 case $host_os in
9037 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9038 *) need_version=no ;;
9039 esac
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9044 case $host_os in
9045 openbsd2.[89] | openbsd2.[89].*)
9046 shlibpath_overrides_runpath=no
9047 ;;
9048 *)
9049 shlibpath_overrides_runpath=yes
9050 ;;
9051 esac
9052 else
9053 shlibpath_overrides_runpath=yes
9054 fi
9055 ;;
9056
9057 os2*)
9058 libname_spec='$name'
9059 shrext_cmds=".dll"
9060 need_lib_prefix=no
9061 library_names_spec='$libname${shared_ext} $libname.a'
9062 dynamic_linker='OS/2 ld.exe'
9063 shlibpath_var=LIBPATH
9064 ;;
9065
9066 osf3* | osf4* | osf5*)
9067 version_type=osf
9068 need_lib_prefix=no
9069 need_version=no
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9074 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9075 ;;
9076
9077 solaris*)
9078 version_type=linux
9079 need_lib_prefix=no
9080 need_version=no
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 shlibpath_overrides_runpath=yes
9085 hardcode_into_libs=yes
9086 # ldd complains unless libraries are executable
9087 postinstall_cmds='chmod +x $lib'
9088 ;;
9089
9090 sunos4*)
9091 version_type=sunos
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9093 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 shlibpath_overrides_runpath=yes
9096 if test "$with_gnu_ld" = yes; then
9097 need_lib_prefix=no
9098 fi
9099 need_version=yes
9100 ;;
9101
9102 sysv4 | sysv4.3*)
9103 version_type=linux
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 shlibpath_var=LD_LIBRARY_PATH
9107 case $host_vendor in
9108 sni)
9109 shlibpath_overrides_runpath=no
9110 need_lib_prefix=no
9111 export_dynamic_flag_spec='${wl}-Blargedynsym'
9112 runpath_var=LD_RUN_PATH
9113 ;;
9114 siemens)
9115 need_lib_prefix=no
9116 ;;
9117 motorola)
9118 need_lib_prefix=no
9119 need_version=no
9120 shlibpath_overrides_runpath=no
9121 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9122 ;;
9123 esac
9124 ;;
9125
9126 sysv4*MP*)
9127 if test -d /usr/nec ;then
9128 version_type=linux
9129 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9130 soname_spec='$libname${shared_ext}.$major'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 fi
9133 ;;
9134
9135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9136 version_type=freebsd-elf
9137 need_lib_prefix=no
9138 need_version=no
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 hardcode_into_libs=yes
9143 if test "$with_gnu_ld" = yes; then
9144 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9145 shlibpath_overrides_runpath=no
9146 else
9147 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9148 shlibpath_overrides_runpath=yes
9149 case $host_os in
9150 sco3.2v5*)
9151 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9152 ;;
9153 esac
9154 fi
9155 sys_lib_dlsearch_path_spec='/usr/lib'
9156 ;;
9157
9158 uts4*)
9159 version_type=linux
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 shlibpath_var=LD_LIBRARY_PATH
9163 ;;
9164
9165 *)
9166 dynamic_linker=no
9167 ;;
9168 esac
9169 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9170 echo "${ECHO_T}$dynamic_linker" >&6; }
9171 test "$dynamic_linker" = no && can_build_shared=no
9172
9173 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9174 if test "$GCC" = yes; then
9175 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9176 fi
9177
9178 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9179 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9180 hardcode_action=
9181 if test -n "$hardcode_libdir_flag_spec" || \
9182 test -n "$runpath_var" || \
9183 test "X$hardcode_automatic" = "Xyes" ; then
9184
9185 # We can hardcode non-existant directories.
9186 if test "$hardcode_direct" != no &&
9187 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9188 # have to relink, otherwise we might link with an installed library
9189 # when we should be linking with a yet-to-be-installed one
9190 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9191 test "$hardcode_minus_L" != no; then
9192 # Linking always hardcodes the temporary library directory.
9193 hardcode_action=relink
9194 else
9195 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9196 hardcode_action=immediate
9197 fi
9198 else
9199 # We cannot hardcode anything, or else we can only hardcode existing
9200 # directories.
9201 hardcode_action=unsupported
9202 fi
9203 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9204 echo "${ECHO_T}$hardcode_action" >&6; }
9205
9206 if test "$hardcode_action" = relink; then
9207 # Fast installation is not supported
9208 enable_fast_install=no
9209 elif test "$shlibpath_overrides_runpath" = yes ||
9210 test "$enable_shared" = no; then
9211 # Fast installation is not necessary
9212 enable_fast_install=needless
9213 fi
9214
9215 striplib=
9216 old_striplib=
9217 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9218 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9219 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9220 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9221 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9222 { echo "$as_me:$LINENO: result: yes" >&5
9223 echo "${ECHO_T}yes" >&6; }
9224 else
9225 # FIXME - insert some real tests, host_os isn't really good enough
9226 case $host_os in
9227 darwin*)
9228 if test -n "$STRIP" ; then
9229 striplib="$STRIP -x"
9230 { echo "$as_me:$LINENO: result: yes" >&5
9231 echo "${ECHO_T}yes" >&6; }
9232 else
9233 { echo "$as_me:$LINENO: result: no" >&5
9234 echo "${ECHO_T}no" >&6; }
9235 fi
9236 ;;
9237 *)
9238 { echo "$as_me:$LINENO: result: no" >&5
9239 echo "${ECHO_T}no" >&6; }
9240 ;;
9241 esac
9242 fi
9243
9244 if test "x$enable_dlopen" != xyes; then
9245 enable_dlopen=unknown
9246 enable_dlopen_self=unknown
9247 enable_dlopen_self_static=unknown
9248 else
9249 lt_cv_dlopen=no
9250 lt_cv_dlopen_libs=
9251
9252 case $host_os in
9253 beos*)
9254 lt_cv_dlopen="load_add_on"
9255 lt_cv_dlopen_libs=
9256 lt_cv_dlopen_self=yes
9257 ;;
9258
9259 mingw* | pw32*)
9260 lt_cv_dlopen="LoadLibrary"
9261 lt_cv_dlopen_libs=
9262 ;;
9263
9264 cygwin*)
9265 lt_cv_dlopen="dlopen"
9266 lt_cv_dlopen_libs=
9267 ;;
9268
9269 darwin*)
9270 # if libdl is installed we need to link against it
9271 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9272 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9273 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276 ac_check_lib_save_LIBS=$LIBS
9277 LIBS="-ldl $LIBS"
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h. */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9284
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 char dlopen ();
9292 int
9293 main ()
9294 {
9295 return dlopen ();
9296 ;
9297 return 0;
9298 }
9299 _ACEOF
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (ac_try="$ac_link"
9302 case "(($ac_try" in
9303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304 *) ac_try_echo=$ac_try;;
9305 esac
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307 (eval "$ac_link") 2>conftest.er1
9308 ac_status=$?
9309 grep -v '^ *+' conftest.er1 >conftest.err
9310 rm -f conftest.er1
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } && {
9314 test -z "$ac_c_werror_flag" ||
9315 test ! -s conftest.err
9316 } && test -s conftest$ac_exeext &&
9317 $as_test_x conftest$ac_exeext; then
9318 ac_cv_lib_dl_dlopen=yes
9319 else
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9322
9323 ac_cv_lib_dl_dlopen=no
9324 fi
9325
9326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9327 conftest$ac_exeext conftest.$ac_ext
9328 LIBS=$ac_check_lib_save_LIBS
9329 fi
9330 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9331 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9332 if test $ac_cv_lib_dl_dlopen = yes; then
9333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9334 else
9335
9336 lt_cv_dlopen="dyld"
9337 lt_cv_dlopen_libs=
9338 lt_cv_dlopen_self=yes
9339
9340 fi
9341
9342 ;;
9343
9344 *)
9345 { echo "$as_me:$LINENO: checking for shl_load" >&5
9346 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9347 if test "${ac_cv_func_shl_load+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350 cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h. */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9358 #define shl_load innocuous_shl_load
9359
9360 /* System header to define __stub macros and hopefully few prototypes,
9361 which can conflict with char shl_load (); below.
9362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9363 <limits.h> exists even on freestanding compilers. */
9364
9365 #ifdef __STDC__
9366 # include <limits.h>
9367 #else
9368 # include <assert.h>
9369 #endif
9370
9371 #undef shl_load
9372
9373 /* Override any GCC internal prototype to avoid an error.
9374 Use char because int might match the return type of a GCC
9375 builtin and then its argument prototype would still apply. */
9376 #ifdef __cplusplus
9377 extern "C"
9378 #endif
9379 char shl_load ();
9380 /* The GNU C library defines this for functions which it implements
9381 to always fail with ENOSYS. Some functions are actually named
9382 something starting with __ and the normal name is an alias. */
9383 #if defined __stub_shl_load || defined __stub___shl_load
9384 choke me
9385 #endif
9386
9387 int
9388 main ()
9389 {
9390 return shl_load ();
9391 ;
9392 return 0;
9393 }
9394 _ACEOF
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9397 case "(($ac_try" in
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9400 esac
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_link") 2>conftest.er1
9403 ac_status=$?
9404 grep -v '^ *+' conftest.er1 >conftest.err
9405 rm -f conftest.er1
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } && {
9409 test -z "$ac_c_werror_flag" ||
9410 test ! -s conftest.err
9411 } && test -s conftest$ac_exeext &&
9412 $as_test_x conftest$ac_exeext; then
9413 ac_cv_func_shl_load=yes
9414 else
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9417
9418 ac_cv_func_shl_load=no
9419 fi
9420
9421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9422 conftest$ac_exeext conftest.$ac_ext
9423 fi
9424 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9425 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9426 if test $ac_cv_func_shl_load = yes; then
9427 lt_cv_dlopen="shl_load"
9428 else
9429 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9430 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9431 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434 ac_check_lib_save_LIBS=$LIBS
9435 LIBS="-ldld $LIBS"
9436 cat >conftest.$ac_ext <<_ACEOF
9437 /* confdefs.h. */
9438 _ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9442
9443 /* Override any GCC internal prototype to avoid an error.
9444 Use char because int might match the return type of a GCC
9445 builtin and then its argument prototype would still apply. */
9446 #ifdef __cplusplus
9447 extern "C"
9448 #endif
9449 char shl_load ();
9450 int
9451 main ()
9452 {
9453 return shl_load ();
9454 ;
9455 return 0;
9456 }
9457 _ACEOF
9458 rm -f conftest.$ac_objext conftest$ac_exeext
9459 if { (ac_try="$ac_link"
9460 case "(($ac_try" in
9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462 *) ac_try_echo=$ac_try;;
9463 esac
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465 (eval "$ac_link") 2>conftest.er1
9466 ac_status=$?
9467 grep -v '^ *+' conftest.er1 >conftest.err
9468 rm -f conftest.er1
9469 cat conftest.err >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); } && {
9472 test -z "$ac_c_werror_flag" ||
9473 test ! -s conftest.err
9474 } && test -s conftest$ac_exeext &&
9475 $as_test_x conftest$ac_exeext; then
9476 ac_cv_lib_dld_shl_load=yes
9477 else
9478 echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9480
9481 ac_cv_lib_dld_shl_load=no
9482 fi
9483
9484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9485 conftest$ac_exeext conftest.$ac_ext
9486 LIBS=$ac_check_lib_save_LIBS
9487 fi
9488 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9489 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9490 if test $ac_cv_lib_dld_shl_load = yes; then
9491 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9492 else
9493 { echo "$as_me:$LINENO: checking for dlopen" >&5
9494 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9495 if test "${ac_cv_func_dlopen+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9506 #define dlopen innocuous_dlopen
9507
9508 /* System header to define __stub macros and hopefully few prototypes,
9509 which can conflict with char dlopen (); below.
9510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9511 <limits.h> exists even on freestanding compilers. */
9512
9513 #ifdef __STDC__
9514 # include <limits.h>
9515 #else
9516 # include <assert.h>
9517 #endif
9518
9519 #undef dlopen
9520
9521 /* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9524 #ifdef __cplusplus
9525 extern "C"
9526 #endif
9527 char dlopen ();
9528 /* The GNU C library defines this for functions which it implements
9529 to always fail with ENOSYS. Some functions are actually named
9530 something starting with __ and the normal name is an alias. */
9531 #if defined __stub_dlopen || defined __stub___dlopen
9532 choke me
9533 #endif
9534
9535 int
9536 main ()
9537 {
9538 return dlopen ();
9539 ;
9540 return 0;
9541 }
9542 _ACEOF
9543 rm -f conftest.$ac_objext conftest$ac_exeext
9544 if { (ac_try="$ac_link"
9545 case "(($ac_try" in
9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9548 esac
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550 (eval "$ac_link") 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && {
9557 test -z "$ac_c_werror_flag" ||
9558 test ! -s conftest.err
9559 } && test -s conftest$ac_exeext &&
9560 $as_test_x conftest$ac_exeext; then
9561 ac_cv_func_dlopen=yes
9562 else
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9565
9566 ac_cv_func_dlopen=no
9567 fi
9568
9569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570 conftest$ac_exeext conftest.$ac_ext
9571 fi
9572 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9573 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9574 if test $ac_cv_func_dlopen = yes; then
9575 lt_cv_dlopen="dlopen"
9576 else
9577 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9578 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9579 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582 ac_check_lib_save_LIBS=$LIBS
9583 LIBS="-ldl $LIBS"
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h. */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590
9591 /* Override any GCC internal prototype to avoid an error.
9592 Use char because int might match the return type of a GCC
9593 builtin and then its argument prototype would still apply. */
9594 #ifdef __cplusplus
9595 extern "C"
9596 #endif
9597 char dlopen ();
9598 int
9599 main ()
9600 {
9601 return dlopen ();
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9608 case "(($ac_try" in
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9611 esac
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_link") 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } && {
9620 test -z "$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 } && test -s conftest$ac_exeext &&
9623 $as_test_x conftest$ac_exeext; then
9624 ac_cv_lib_dl_dlopen=yes
9625 else
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ac_cv_lib_dl_dlopen=no
9630 fi
9631
9632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9633 conftest$ac_exeext conftest.$ac_ext
9634 LIBS=$ac_check_lib_save_LIBS
9635 fi
9636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9637 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9638 if test $ac_cv_lib_dl_dlopen = yes; then
9639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9640 else
9641 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9642 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9643 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646 ac_check_lib_save_LIBS=$LIBS
9647 LIBS="-lsvld $LIBS"
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654
9655 /* Override any GCC internal prototype to avoid an error.
9656 Use char because int might match the return type of a GCC
9657 builtin and then its argument prototype would still apply. */
9658 #ifdef __cplusplus
9659 extern "C"
9660 #endif
9661 char dlopen ();
9662 int
9663 main ()
9664 {
9665 return dlopen ();
9666 ;
9667 return 0;
9668 }
9669 _ACEOF
9670 rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (ac_try="$ac_link"
9672 case "(($ac_try" in
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9675 esac
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_link") 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } && {
9684 test -z "$ac_c_werror_flag" ||
9685 test ! -s conftest.err
9686 } && test -s conftest$ac_exeext &&
9687 $as_test_x conftest$ac_exeext; then
9688 ac_cv_lib_svld_dlopen=yes
9689 else
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9692
9693 ac_cv_lib_svld_dlopen=no
9694 fi
9695
9696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9697 conftest$ac_exeext conftest.$ac_ext
9698 LIBS=$ac_check_lib_save_LIBS
9699 fi
9700 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9701 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9702 if test $ac_cv_lib_svld_dlopen = yes; then
9703 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9704 else
9705 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9706 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9707 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710 ac_check_lib_save_LIBS=$LIBS
9711 LIBS="-ldld $LIBS"
9712 cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h. */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718
9719 /* Override any GCC internal prototype to avoid an error.
9720 Use char because int might match the return type of a GCC
9721 builtin and then its argument prototype would still apply. */
9722 #ifdef __cplusplus
9723 extern "C"
9724 #endif
9725 char dld_link ();
9726 int
9727 main ()
9728 {
9729 return dld_link ();
9730 ;
9731 return 0;
9732 }
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (ac_try="$ac_link"
9736 case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739 esac
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_link") 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest$ac_exeext &&
9751 $as_test_x conftest$ac_exeext; then
9752 ac_cv_lib_dld_dld_link=yes
9753 else
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 ac_cv_lib_dld_dld_link=no
9758 fi
9759
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761 conftest$ac_exeext conftest.$ac_ext
9762 LIBS=$ac_check_lib_save_LIBS
9763 fi
9764 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9765 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9766 if test $ac_cv_lib_dld_dld_link = yes; then
9767 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9768 fi
9769
9770
9771 fi
9772
9773
9774 fi
9775
9776
9777 fi
9778
9779
9780 fi
9781
9782
9783 fi
9784
9785 ;;
9786 esac
9787
9788 if test "x$lt_cv_dlopen" != xno; then
9789 enable_dlopen=yes
9790 else
9791 enable_dlopen=no
9792 fi
9793
9794 case $lt_cv_dlopen in
9795 dlopen)
9796 save_CPPFLAGS="$CPPFLAGS"
9797 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9798
9799 save_LDFLAGS="$LDFLAGS"
9800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9801
9802 save_LIBS="$LIBS"
9803 LIBS="$lt_cv_dlopen_libs $LIBS"
9804
9805 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9806 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9807 if test "${lt_cv_dlopen_self+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810 if test "$cross_compiling" = yes; then :
9811 lt_cv_dlopen_self=cross
9812 else
9813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9814 lt_status=$lt_dlunknown
9815 cat > conftest.$ac_ext <<EOF
9816 #line 9816 "configure"
9817 #include "confdefs.h"
9818
9819 #if HAVE_DLFCN_H
9820 #include <dlfcn.h>
9821 #endif
9822
9823 #include <stdio.h>
9824
9825 #ifdef RTLD_GLOBAL
9826 # define LT_DLGLOBAL RTLD_GLOBAL
9827 #else
9828 # ifdef DL_GLOBAL
9829 # define LT_DLGLOBAL DL_GLOBAL
9830 # else
9831 # define LT_DLGLOBAL 0
9832 # endif
9833 #endif
9834
9835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9836 find out it does not work in some platform. */
9837 #ifndef LT_DLLAZY_OR_NOW
9838 # ifdef RTLD_LAZY
9839 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9840 # else
9841 # ifdef DL_LAZY
9842 # define LT_DLLAZY_OR_NOW DL_LAZY
9843 # else
9844 # ifdef RTLD_NOW
9845 # define LT_DLLAZY_OR_NOW RTLD_NOW
9846 # else
9847 # ifdef DL_NOW
9848 # define LT_DLLAZY_OR_NOW DL_NOW
9849 # else
9850 # define LT_DLLAZY_OR_NOW 0
9851 # endif
9852 # endif
9853 # endif
9854 # endif
9855 #endif
9856
9857 #ifdef __cplusplus
9858 extern "C" void exit (int);
9859 #endif
9860
9861 void fnord() { int i=42;}
9862 int main ()
9863 {
9864 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9865 int status = $lt_dlunknown;
9866
9867 if (self)
9868 {
9869 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9870 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9871 /* dlclose (self); */
9872 }
9873 else
9874 puts (dlerror ());
9875
9876 exit (status);
9877 }
9878 EOF
9879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9880 (eval $ac_link) 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9884 (./conftest; exit; ) >&5 2>/dev/null
9885 lt_status=$?
9886 case x$lt_status in
9887 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9888 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9889 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9890 esac
9891 else :
9892 # compilation failed
9893 lt_cv_dlopen_self=no
9894 fi
9895 fi
9896 rm -fr conftest*
9897
9898
9899 fi
9900 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9901 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9902
9903 if test "x$lt_cv_dlopen_self" = xyes; then
9904 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9905 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9906 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9907 if test "${lt_cv_dlopen_self_static+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 else
9910 if test "$cross_compiling" = yes; then :
9911 lt_cv_dlopen_self_static=cross
9912 else
9913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9914 lt_status=$lt_dlunknown
9915 cat > conftest.$ac_ext <<EOF
9916 #line 9916 "configure"
9917 #include "confdefs.h"
9918
9919 #if HAVE_DLFCN_H
9920 #include <dlfcn.h>
9921 #endif
9922
9923 #include <stdio.h>
9924
9925 #ifdef RTLD_GLOBAL
9926 # define LT_DLGLOBAL RTLD_GLOBAL
9927 #else
9928 # ifdef DL_GLOBAL
9929 # define LT_DLGLOBAL DL_GLOBAL
9930 # else
9931 # define LT_DLGLOBAL 0
9932 # endif
9933 #endif
9934
9935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9936 find out it does not work in some platform. */
9937 #ifndef LT_DLLAZY_OR_NOW
9938 # ifdef RTLD_LAZY
9939 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9940 # else
9941 # ifdef DL_LAZY
9942 # define LT_DLLAZY_OR_NOW DL_LAZY
9943 # else
9944 # ifdef RTLD_NOW
9945 # define LT_DLLAZY_OR_NOW RTLD_NOW
9946 # else
9947 # ifdef DL_NOW
9948 # define LT_DLLAZY_OR_NOW DL_NOW
9949 # else
9950 # define LT_DLLAZY_OR_NOW 0
9951 # endif
9952 # endif
9953 # endif
9954 # endif
9955 #endif
9956
9957 #ifdef __cplusplus
9958 extern "C" void exit (int);
9959 #endif
9960
9961 void fnord() { int i=42;}
9962 int main ()
9963 {
9964 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9965 int status = $lt_dlunknown;
9966
9967 if (self)
9968 {
9969 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9970 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9971 /* dlclose (self); */
9972 }
9973 else
9974 puts (dlerror ());
9975
9976 exit (status);
9977 }
9978 EOF
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980 (eval $ac_link) 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9984 (./conftest; exit; ) >&5 2>/dev/null
9985 lt_status=$?
9986 case x$lt_status in
9987 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9988 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9989 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9990 esac
9991 else :
9992 # compilation failed
9993 lt_cv_dlopen_self_static=no
9994 fi
9995 fi
9996 rm -fr conftest*
9997
9998
9999 fi
10000 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10001 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10002 fi
10003
10004 CPPFLAGS="$save_CPPFLAGS"
10005 LDFLAGS="$save_LDFLAGS"
10006 LIBS="$save_LIBS"
10007 ;;
10008 esac
10009
10010 case $lt_cv_dlopen_self in
10011 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10012 *) enable_dlopen_self=unknown ;;
10013 esac
10014
10015 case $lt_cv_dlopen_self_static in
10016 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10017 *) enable_dlopen_self_static=unknown ;;
10018 esac
10019 fi
10020
10021
10022 # Report which library types will actually be built
10023 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10024 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10025 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10026 echo "${ECHO_T}$can_build_shared" >&6; }
10027
10028 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10029 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10030 test "$can_build_shared" = "no" && enable_shared=no
10031
10032 # On AIX, shared libraries and static libraries use the same namespace, and
10033 # are all built from PIC.
10034 case $host_os in
10035 aix3*)
10036 test "$enable_shared" = yes && enable_static=no
10037 if test -n "$RANLIB"; then
10038 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10039 postinstall_cmds='$RANLIB $lib'
10040 fi
10041 ;;
10042
10043 aix4* | aix5*)
10044 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10045 test "$enable_shared" = yes && enable_static=no
10046 fi
10047 ;;
10048 esac
10049 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10050 echo "${ECHO_T}$enable_shared" >&6; }
10051
10052 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10053 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10054 # Make sure either enable_shared or enable_static is yes.
10055 test "$enable_shared" = yes || enable_static=yes
10056 { echo "$as_me:$LINENO: result: $enable_static" >&5
10057 echo "${ECHO_T}$enable_static" >&6; }
10058
10059 # The else clause should only fire when bootstrapping the
10060 # libtool distribution, otherwise you forgot to ship ltmain.sh
10061 # with your package, and you will get complaints that there are
10062 # no rules to generate ltmain.sh.
10063 if test -f "$ltmain"; then
10064 # See if we are running on zsh, and set the options which allow our commands through
10065 # without removal of \ escapes.
10066 if test -n "${ZSH_VERSION+set}" ; then
10067 setopt NO_GLOB_SUBST
10068 fi
10069 # Now quote all the things that may contain metacharacters while being
10070 # careful not to overquote the AC_SUBSTed values. We take copies of the
10071 # variables and quote the copies for generation of the libtool script.
10072 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10073 SED SHELL STRIP \
10074 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10075 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10076 deplibs_check_method reload_flag reload_cmds need_locks \
10077 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10078 lt_cv_sys_global_symbol_to_c_name_address \
10079 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10080 old_postinstall_cmds old_postuninstall_cmds \
10081 compiler \
10082 CC \
10083 LD \
10084 lt_prog_compiler_wl \
10085 lt_prog_compiler_pic \
10086 lt_prog_compiler_static \
10087 lt_prog_compiler_no_builtin_flag \
10088 export_dynamic_flag_spec \
10089 thread_safe_flag_spec \
10090 whole_archive_flag_spec \
10091 enable_shared_with_static_runtimes \
10092 old_archive_cmds \
10093 old_archive_from_new_cmds \
10094 predep_objects \
10095 postdep_objects \
10096 predeps \
10097 postdeps \
10098 compiler_lib_search_path \
10099 archive_cmds \
10100 archive_expsym_cmds \
10101 postinstall_cmds \
10102 postuninstall_cmds \
10103 old_archive_from_expsyms_cmds \
10104 allow_undefined_flag \
10105 no_undefined_flag \
10106 export_symbols_cmds \
10107 hardcode_libdir_flag_spec \
10108 hardcode_libdir_flag_spec_ld \
10109 hardcode_libdir_separator \
10110 hardcode_automatic \
10111 module_cmds \
10112 module_expsym_cmds \
10113 lt_cv_prog_compiler_c_o \
10114 exclude_expsyms \
10115 include_expsyms; do
10116
10117 case $var in
10118 old_archive_cmds | \
10119 old_archive_from_new_cmds | \
10120 archive_cmds | \
10121 archive_expsym_cmds | \
10122 module_cmds | \
10123 module_expsym_cmds | \
10124 old_archive_from_expsyms_cmds | \
10125 export_symbols_cmds | \
10126 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10127 postinstall_cmds | postuninstall_cmds | \
10128 old_postinstall_cmds | old_postuninstall_cmds | \
10129 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10130 # Double-quote double-evaled strings.
10131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10132 ;;
10133 *)
10134 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10135 ;;
10136 esac
10137 done
10138
10139 case $lt_echo in
10140 *'\$0 --fallback-echo"')
10141 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10142 ;;
10143 esac
10144
10145 cfgfile="${ofile}T"
10146 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10147 $rm -f "$cfgfile"
10148 { echo "$as_me:$LINENO: creating $ofile" >&5
10149 echo "$as_me: creating $ofile" >&6;}
10150
10151 cat <<__EOF__ >> "$cfgfile"
10152 #! $SHELL
10153
10154 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10155 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10156 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10157 #
10158 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10159 # Free Software Foundation, Inc.
10160 #
10161 # This file is part of GNU Libtool:
10162 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10163 #
10164 # This program is free software; you can redistribute it and/or modify
10165 # it under the terms of the GNU General Public License as published by
10166 # the Free Software Foundation; either version 2 of the License, or
10167 # (at your option) any later version.
10168 #
10169 # This program is distributed in the hope that it will be useful, but
10170 # WITHOUT ANY WARRANTY; without even the implied warranty of
10171 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10172 # General Public License for more details.
10173 #
10174 # You should have received a copy of the GNU General Public License
10175 # along with this program; if not, write to the Free Software
10176 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10177 #
10178 # As a special exception to the GNU General Public License, if you
10179 # distribute this file as part of a program that contains a
10180 # configuration script generated by Autoconf, you may include it under
10181 # the same distribution terms that you use for the rest of that program.
10182
10183 # A sed program that does not truncate output.
10184 SED=$lt_SED
10185
10186 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10187 Xsed="$SED -e 1s/^X//"
10188
10189 # The HP-UX ksh and POSIX shell print the target directory to stdout
10190 # if CDPATH is set.
10191 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10192
10193 # The names of the tagged configurations supported by this script.
10194 available_tags=
10195
10196 # ### BEGIN LIBTOOL CONFIG
10197
10198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10199
10200 # Shell to use when invoking shell scripts.
10201 SHELL=$lt_SHELL
10202
10203 # Whether or not to build shared libraries.
10204 build_libtool_libs=$enable_shared
10205
10206 # Whether or not to build static libraries.
10207 build_old_libs=$enable_static
10208
10209 # Whether or not to add -lc for building shared libraries.
10210 build_libtool_need_lc=$archive_cmds_need_lc
10211
10212 # Whether or not to disallow shared libs when runtime libs are static
10213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10214
10215 # Whether or not to optimize for fast installation.
10216 fast_install=$enable_fast_install
10217
10218 # The host system.
10219 host_alias=$host_alias
10220 host=$host
10221 host_os=$host_os
10222
10223 # The build system.
10224 build_alias=$build_alias
10225 build=$build
10226 build_os=$build_os
10227
10228 # An echo program that does not interpret backslashes.
10229 echo=$lt_echo
10230
10231 # The archiver.
10232 AR=$lt_AR
10233 AR_FLAGS=$lt_AR_FLAGS
10234
10235 # A C compiler.
10236 LTCC=$lt_LTCC
10237
10238 # LTCC compiler flags.
10239 LTCFLAGS=$lt_LTCFLAGS
10240
10241 # A language-specific compiler.
10242 CC=$lt_compiler
10243
10244 # Is the compiler the GNU C compiler?
10245 with_gcc=$GCC
10246
10247 # An ERE matcher.
10248 EGREP=$lt_EGREP
10249
10250 # The linker used to build libraries.
10251 LD=$lt_LD
10252
10253 # Whether we need hard or soft links.
10254 LN_S=$lt_LN_S
10255
10256 # A BSD-compatible nm program.
10257 NM=$lt_NM
10258
10259 # A symbol stripping program
10260 STRIP=$lt_STRIP
10261
10262 # Used to examine libraries when file_magic_cmd begins "file"
10263 MAGIC_CMD=$MAGIC_CMD
10264
10265 # Used on cygwin: DLL creation program.
10266 DLLTOOL="$DLLTOOL"
10267
10268 # Used on cygwin: object dumper.
10269 OBJDUMP="$OBJDUMP"
10270
10271 # Used on cygwin: assembler.
10272 AS="$AS"
10273
10274 # The name of the directory that contains temporary libtool files.
10275 objdir=$objdir
10276
10277 # How to create reloadable object files.
10278 reload_flag=$lt_reload_flag
10279 reload_cmds=$lt_reload_cmds
10280
10281 # How to pass a linker flag through the compiler.
10282 wl=$lt_lt_prog_compiler_wl
10283
10284 # Object file suffix (normally "o").
10285 objext="$ac_objext"
10286
10287 # Old archive suffix (normally "a").
10288 libext="$libext"
10289
10290 # Shared library suffix (normally ".so").
10291 shrext_cmds='$shrext_cmds'
10292
10293 # Executable file suffix (normally "").
10294 exeext="$exeext"
10295
10296 # Additional compiler flags for building library objects.
10297 pic_flag=$lt_lt_prog_compiler_pic
10298 pic_mode=$pic_mode
10299
10300 # What is the maximum length of a command?
10301 max_cmd_len=$lt_cv_sys_max_cmd_len
10302
10303 # Does compiler simultaneously support -c and -o options?
10304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10305
10306 # Must we lock files when doing compilation?
10307 need_locks=$lt_need_locks
10308
10309 # Do we need the lib prefix for modules?
10310 need_lib_prefix=$need_lib_prefix
10311
10312 # Do we need a version for libraries?
10313 need_version=$need_version
10314
10315 # Whether dlopen is supported.
10316 dlopen_support=$enable_dlopen
10317
10318 # Whether dlopen of programs is supported.
10319 dlopen_self=$enable_dlopen_self
10320
10321 # Whether dlopen of statically linked programs is supported.
10322 dlopen_self_static=$enable_dlopen_self_static
10323
10324 # Compiler flag to prevent dynamic linking.
10325 link_static_flag=$lt_lt_prog_compiler_static
10326
10327 # Compiler flag to turn off builtin functions.
10328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10329
10330 # Compiler flag to allow reflexive dlopens.
10331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10332
10333 # Compiler flag to generate shared objects directly from archives.
10334 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10335
10336 # Compiler flag to generate thread-safe objects.
10337 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10338
10339 # Library versioning type.
10340 version_type=$version_type
10341
10342 # Format of library name prefix.
10343 libname_spec=$lt_libname_spec
10344
10345 # List of archive names. First name is the real one, the rest are links.
10346 # The last name is the one that the linker finds with -lNAME.
10347 library_names_spec=$lt_library_names_spec
10348
10349 # The coded name of the library, if different from the real name.
10350 soname_spec=$lt_soname_spec
10351
10352 # Commands used to build and install an old-style archive.
10353 RANLIB=$lt_RANLIB
10354 old_archive_cmds=$lt_old_archive_cmds
10355 old_postinstall_cmds=$lt_old_postinstall_cmds
10356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10357
10358 # Create an old-style archive from a shared archive.
10359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10360
10361 # Create a temporary old-style archive to link instead of a shared archive.
10362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10363
10364 # Commands used to build and install a shared archive.
10365 archive_cmds=$lt_archive_cmds
10366 archive_expsym_cmds=$lt_archive_expsym_cmds
10367 postinstall_cmds=$lt_postinstall_cmds
10368 postuninstall_cmds=$lt_postuninstall_cmds
10369
10370 # Commands used to build a loadable module (assumed same as above if empty)
10371 module_cmds=$lt_module_cmds
10372 module_expsym_cmds=$lt_module_expsym_cmds
10373
10374 # Commands to strip libraries.
10375 old_striplib=$lt_old_striplib
10376 striplib=$lt_striplib
10377
10378 # Dependencies to place before the objects being linked to create a
10379 # shared library.
10380 predep_objects=$lt_predep_objects
10381
10382 # Dependencies to place after the objects being linked to create a
10383 # shared library.
10384 postdep_objects=$lt_postdep_objects
10385
10386 # Dependencies to place before the objects being linked to create a
10387 # shared library.
10388 predeps=$lt_predeps
10389
10390 # Dependencies to place after the objects being linked to create a
10391 # shared library.
10392 postdeps=$lt_postdeps
10393
10394 # The library search path used internally by the compiler when linking
10395 # a shared library.
10396 compiler_lib_search_path=$lt_compiler_lib_search_path
10397
10398 # Method to check whether dependent libraries are shared objects.
10399 deplibs_check_method=$lt_deplibs_check_method
10400
10401 # Command to use when deplibs_check_method == file_magic.
10402 file_magic_cmd=$lt_file_magic_cmd
10403
10404 # Flag that allows shared libraries with undefined symbols to be built.
10405 allow_undefined_flag=$lt_allow_undefined_flag
10406
10407 # Flag that forces no undefined symbols.
10408 no_undefined_flag=$lt_no_undefined_flag
10409
10410 # Commands used to finish a libtool library installation in a directory.
10411 finish_cmds=$lt_finish_cmds
10412
10413 # Same as above, but a single script fragment to be evaled but not shown.
10414 finish_eval=$lt_finish_eval
10415
10416 # Take the output of nm and produce a listing of raw symbols and C names.
10417 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10418
10419 # Transform the output of nm in a proper C declaration
10420 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10421
10422 # Transform the output of nm in a C name address pair
10423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10424
10425 # This is the shared library runtime path variable.
10426 runpath_var=$runpath_var
10427
10428 # This is the shared library path variable.
10429 shlibpath_var=$shlibpath_var
10430
10431 # Is shlibpath searched before the hard-coded library search path?
10432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10433
10434 # How to hardcode a shared library path into an executable.
10435 hardcode_action=$hardcode_action
10436
10437 # Whether we should hardcode library paths into libraries.
10438 hardcode_into_libs=$hardcode_into_libs
10439
10440 # Flag to hardcode \$libdir into a binary during linking.
10441 # This must work even if \$libdir does not exist.
10442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10443
10444 # If ld is used when linking, flag to hardcode \$libdir into
10445 # a binary during linking. This must work even if \$libdir does
10446 # not exist.
10447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10448
10449 # Whether we need a single -rpath flag with a separated argument.
10450 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10451
10452 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10453 # resulting binary.
10454 hardcode_direct=$hardcode_direct
10455
10456 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10457 # resulting binary.
10458 hardcode_minus_L=$hardcode_minus_L
10459
10460 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10461 # the resulting binary.
10462 hardcode_shlibpath_var=$hardcode_shlibpath_var
10463
10464 # Set to yes if building a shared library automatically hardcodes DIR into the library
10465 # and all subsequent libraries and executables linked against it.
10466 hardcode_automatic=$hardcode_automatic
10467
10468 # Variables whose values should be saved in libtool wrapper scripts and
10469 # restored at relink time.
10470 variables_saved_for_relink="$variables_saved_for_relink"
10471
10472 # Whether libtool must link a program against all its dependency libraries.
10473 link_all_deplibs=$link_all_deplibs
10474
10475 # Compile-time system search path for libraries
10476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10477
10478 # Run-time system search path for libraries
10479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10480
10481 # Fix the shell variable \$srcfile for the compiler.
10482 fix_srcfile_path="$fix_srcfile_path"
10483
10484 # Set to yes if exported symbols are required.
10485 always_export_symbols=$always_export_symbols
10486
10487 # The commands to list exported symbols.
10488 export_symbols_cmds=$lt_export_symbols_cmds
10489
10490 # The commands to extract the exported symbol list from a shared archive.
10491 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10492
10493 # Symbols that should not be listed in the preloaded symbols.
10494 exclude_expsyms=$lt_exclude_expsyms
10495
10496 # Symbols that must always be exported.
10497 include_expsyms=$lt_include_expsyms
10498
10499 # ### END LIBTOOL CONFIG
10500
10501 __EOF__
10502
10503
10504 case $host_os in
10505 aix3*)
10506 cat <<\EOF >> "$cfgfile"
10507
10508 # AIX sometimes has problems with the GCC collect2 program. For some
10509 # reason, if we set the COLLECT_NAMES environment variable, the problems
10510 # vanish in a puff of smoke.
10511 if test "X${COLLECT_NAMES+set}" != Xset; then
10512 COLLECT_NAMES=
10513 export COLLECT_NAMES
10514 fi
10515 EOF
10516 ;;
10517 esac
10518
10519 # We use sed instead of cat because bash on DJGPP gets confused if
10520 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10521 # text mode, it properly converts lines to CR/LF. This bash problem
10522 # is reportedly fixed, but why not run on old versions too?
10523 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10524
10525 mv -f "$cfgfile" "$ofile" || \
10526 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10527 chmod +x "$ofile"
10528
10529 else
10530 # If there is no Makefile yet, we rely on a make rule to execute
10531 # `config.status --recheck' to rerun these tests and create the
10532 # libtool script then.
10533 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10534 if test -f "$ltmain_in"; then
10535 test -f Makefile && make "$ltmain"
10536 fi
10537 fi
10538
10539
10540 ac_ext=c
10541 ac_cpp='$CPP $CPPFLAGS'
10542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10545
10546 CC="$lt_save_CC"
10547
10548
10549 # Check whether --with-tags was given.
10550 if test "${with_tags+set}" = set; then
10551 withval=$with_tags; tagnames="$withval"
10552 fi
10553
10554
10555 if test -f "$ltmain" && test -n "$tagnames"; then
10556 if test ! -f "${ofile}"; then
10557 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10558 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10559 fi
10560
10561 if test -z "$LTCC"; then
10562 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10563 if test -z "$LTCC"; then
10564 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10565 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10566 else
10567 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10568 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10569 fi
10570 fi
10571 if test -z "$LTCFLAGS"; then
10572 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10573 fi
10574
10575 # Extract list of available tagged configurations in $ofile.
10576 # Note that this assumes the entire list is on one line.
10577 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10578
10579 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10580 for tagname in $tagnames; do
10581 IFS="$lt_save_ifs"
10582 # Check whether tagname contains only valid characters
10583 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10584 "") ;;
10585 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10586 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10587 { (exit 1); exit 1; }; }
10588 ;;
10589 esac
10590
10591 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10592 then
10593 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10594 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10595 { (exit 1); exit 1; }; }
10596 fi
10597
10598 # Update the list of available tags.
10599 if test -n "$tagname"; then
10600 echo appending configuration tag \"$tagname\" to $ofile
10601
10602 case $tagname in
10603 CXX)
10604 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10605 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10606 (test "X$CXX" != "Xg++"))) ; then
10607 ac_ext=cpp
10608 ac_cpp='$CXXCPP $CPPFLAGS'
10609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10612
10613
10614
10615
10616 archive_cmds_need_lc_CXX=no
10617 allow_undefined_flag_CXX=
10618 always_export_symbols_CXX=no
10619 archive_expsym_cmds_CXX=
10620 export_dynamic_flag_spec_CXX=
10621 hardcode_direct_CXX=no
10622 hardcode_libdir_flag_spec_CXX=
10623 hardcode_libdir_flag_spec_ld_CXX=
10624 hardcode_libdir_separator_CXX=
10625 hardcode_minus_L_CXX=no
10626 hardcode_shlibpath_var_CXX=unsupported
10627 hardcode_automatic_CXX=no
10628 module_cmds_CXX=
10629 module_expsym_cmds_CXX=
10630 link_all_deplibs_CXX=unknown
10631 old_archive_cmds_CXX=$old_archive_cmds
10632 no_undefined_flag_CXX=
10633 whole_archive_flag_spec_CXX=
10634 enable_shared_with_static_runtimes_CXX=no
10635
10636 # Dependencies to place before and after the object being linked:
10637 predep_objects_CXX=
10638 postdep_objects_CXX=
10639 predeps_CXX=
10640 postdeps_CXX=
10641 compiler_lib_search_path_CXX=
10642
10643 # Source file extension for C++ test sources.
10644 ac_ext=cpp
10645
10646 # Object file extension for compiled C++ test sources.
10647 objext=o
10648 objext_CXX=$objext
10649
10650 # Code to be used in simple compile tests
10651 lt_simple_compile_test_code="int some_variable = 0;\n"
10652
10653 # Code to be used in simple link tests
10654 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10655
10656 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10657
10658 # If no C compiler was specified, use CC.
10659 LTCC=${LTCC-"$CC"}
10660
10661 # If no C compiler flags were specified, use CFLAGS.
10662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10663
10664 # Allow CC to be a program name with arguments.
10665 compiler=$CC
10666
10667
10668 # save warnings/boilerplate of simple test code
10669 ac_outfile=conftest.$ac_objext
10670 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10671 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10672 _lt_compiler_boilerplate=`cat conftest.err`
10673 $rm conftest*
10674
10675 ac_outfile=conftest.$ac_objext
10676 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10677 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10678 _lt_linker_boilerplate=`cat conftest.err`
10679 $rm conftest*
10680
10681
10682 # Allow CC to be a program name with arguments.
10683 lt_save_CC=$CC
10684 lt_save_LD=$LD
10685 lt_save_GCC=$GCC
10686 GCC=$GXX
10687 lt_save_with_gnu_ld=$with_gnu_ld
10688 lt_save_path_LD=$lt_cv_path_LD
10689 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10690 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10691 else
10692 $as_unset lt_cv_prog_gnu_ld
10693 fi
10694 if test -n "${lt_cv_path_LDCXX+set}"; then
10695 lt_cv_path_LD=$lt_cv_path_LDCXX
10696 else
10697 $as_unset lt_cv_path_LD
10698 fi
10699 test -z "${LDCXX+set}" || LD=$LDCXX
10700 CC=${CXX-"c++"}
10701 compiler=$CC
10702 compiler_CXX=$CC
10703 for cc_temp in $compiler""; do
10704 case $cc_temp in
10705 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10706 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10707 \-*) ;;
10708 *) break;;
10709 esac
10710 done
10711 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10712
10713
10714 # We don't want -fno-exception wen compiling C++ code, so set the
10715 # no_builtin_flag separately
10716 if test "$GXX" = yes; then
10717 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10718 else
10719 lt_prog_compiler_no_builtin_flag_CXX=
10720 fi
10721
10722 if test "$GXX" = yes; then
10723 # Set up default GNU C++ configuration
10724
10725
10726 # Check whether --with-gnu-ld was given.
10727 if test "${with_gnu_ld+set}" = set; then
10728 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10729 else
10730 with_gnu_ld=no
10731 fi
10732
10733 ac_prog=ld
10734 if test "$GCC" = yes; then
10735 # Check if gcc -print-prog-name=ld gives a path.
10736 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10737 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10738 case $host in
10739 *-*-mingw*)
10740 # gcc leaves a trailing carriage return which upsets mingw
10741 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10742 *)
10743 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10744 esac
10745 case $ac_prog in
10746 # Accept absolute paths.
10747 [\\/]* | ?:[\\/]*)
10748 re_direlt='/[^/][^/]*/\.\./'
10749 # Canonicalize the pathname of ld
10750 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10751 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10752 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10753 done
10754 test -z "$LD" && LD="$ac_prog"
10755 ;;
10756 "")
10757 # If it fails, then pretend we aren't using GCC.
10758 ac_prog=ld
10759 ;;
10760 *)
10761 # If it is relative, then search for the first ld in PATH.
10762 with_gnu_ld=unknown
10763 ;;
10764 esac
10765 elif test "$with_gnu_ld" = yes; then
10766 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10767 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10768 else
10769 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10770 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10771 fi
10772 if test "${lt_cv_path_LD+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10774 else
10775 if test -z "$LD"; then
10776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10777 for ac_dir in $PATH; do
10778 IFS="$lt_save_ifs"
10779 test -z "$ac_dir" && ac_dir=.
10780 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10781 lt_cv_path_LD="$ac_dir/$ac_prog"
10782 # Check to see if the program is GNU ld. I'd rather use --version,
10783 # but apparently some variants of GNU ld only accept -v.
10784 # Break only if it was the GNU/non-GNU ld that we prefer.
10785 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10786 *GNU* | *'with BFD'*)
10787 test "$with_gnu_ld" != no && break
10788 ;;
10789 *)
10790 test "$with_gnu_ld" != yes && break
10791 ;;
10792 esac
10793 fi
10794 done
10795 IFS="$lt_save_ifs"
10796 else
10797 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10798 fi
10799 fi
10800
10801 LD="$lt_cv_path_LD"
10802 if test -n "$LD"; then
10803 { echo "$as_me:$LINENO: result: $LD" >&5
10804 echo "${ECHO_T}$LD" >&6; }
10805 else
10806 { echo "$as_me:$LINENO: result: no" >&5
10807 echo "${ECHO_T}no" >&6; }
10808 fi
10809 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10810 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10811 { (exit 1); exit 1; }; }
10812 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10813 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10814 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10818 case `$LD -v 2>&1 </dev/null` in
10819 *GNU* | *'with BFD'*)
10820 lt_cv_prog_gnu_ld=yes
10821 ;;
10822 *)
10823 lt_cv_prog_gnu_ld=no
10824 ;;
10825 esac
10826 fi
10827 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10828 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10829 with_gnu_ld=$lt_cv_prog_gnu_ld
10830
10831
10832
10833 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10834 # archiving commands below assume that GNU ld is being used.
10835 if test "$with_gnu_ld" = yes; then
10836 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10837 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'
10838
10839 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10840 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10841
10842 # If archive_cmds runs LD, not CC, wlarc should be empty
10843 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10844 # investigate it a little bit more. (MM)
10845 wlarc='${wl}'
10846
10847 # ancient GNU ld didn't support --whole-archive et. al.
10848 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10849 grep 'no-whole-archive' > /dev/null; then
10850 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10851 else
10852 whole_archive_flag_spec_CXX=
10853 fi
10854 else
10855 with_gnu_ld=no
10856 wlarc=
10857
10858 # A generic and very simple default shared library creation
10859 # command for GNU C++ for the case where it uses the native
10860 # linker, instead of GNU ld. If possible, this setting should
10861 # overridden to take advantage of the native linker features on
10862 # the platform it is being used on.
10863 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10864 fi
10865
10866 # Commands to make compiler produce verbose output that lists
10867 # what "hidden" libraries, object files and flags are used when
10868 # linking a shared library.
10869 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10870
10871 else
10872 GXX=no
10873 with_gnu_ld=no
10874 wlarc=
10875 fi
10876
10877 # PORTME: fill in a description of your system's C++ link characteristics
10878 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10879 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10880 ld_shlibs_CXX=yes
10881 case $host_os in
10882 aix3*)
10883 # FIXME: insert proper C++ library support
10884 ld_shlibs_CXX=no
10885 ;;
10886 aix4* | aix5*)
10887 if test "$host_cpu" = ia64; then
10888 # On IA64, the linker does run time linking by default, so we don't
10889 # have to do anything special.
10890 aix_use_runtimelinking=no
10891 exp_sym_flag='-Bexport'
10892 no_entry_flag=""
10893 else
10894 aix_use_runtimelinking=no
10895
10896 # Test if we are trying to use run time linking or normal
10897 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10898 # need to do runtime linking.
10899 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10900 for ld_flag in $LDFLAGS; do
10901 case $ld_flag in
10902 *-brtl*)
10903 aix_use_runtimelinking=yes
10904 break
10905 ;;
10906 esac
10907 done
10908 ;;
10909 esac
10910
10911 exp_sym_flag='-bexport'
10912 no_entry_flag='-bnoentry'
10913 fi
10914
10915 # When large executables or shared objects are built, AIX ld can
10916 # have problems creating the table of contents. If linking a library
10917 # or program results in "error TOC overflow" add -mminimal-toc to
10918 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10919 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10920
10921 archive_cmds_CXX=''
10922 hardcode_direct_CXX=yes
10923 hardcode_libdir_separator_CXX=':'
10924 link_all_deplibs_CXX=yes
10925
10926 if test "$GXX" = yes; then
10927 case $host_os in aix4.[012]|aix4.[012].*)
10928 # We only want to do this on AIX 4.2 and lower, the check
10929 # below for broken collect2 doesn't work under 4.3+
10930 collect2name=`${CC} -print-prog-name=collect2`
10931 if test -f "$collect2name" && \
10932 strings "$collect2name" | grep resolve_lib_name >/dev/null
10933 then
10934 # We have reworked collect2
10935 hardcode_direct_CXX=yes
10936 else
10937 # We have old collect2
10938 hardcode_direct_CXX=unsupported
10939 # It fails to find uninstalled libraries when the uninstalled
10940 # path is not listed in the libpath. Setting hardcode_minus_L
10941 # to unsupported forces relinking
10942 hardcode_minus_L_CXX=yes
10943 hardcode_libdir_flag_spec_CXX='-L$libdir'
10944 hardcode_libdir_separator_CXX=
10945 fi
10946 ;;
10947 esac
10948 shared_flag='-shared'
10949 if test "$aix_use_runtimelinking" = yes; then
10950 shared_flag="$shared_flag "'${wl}-G'
10951 fi
10952 else
10953 # not using gcc
10954 if test "$host_cpu" = ia64; then
10955 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10956 # chokes on -Wl,-G. The following line is correct:
10957 shared_flag='-G'
10958 else
10959 if test "$aix_use_runtimelinking" = yes; then
10960 shared_flag='${wl}-G'
10961 else
10962 shared_flag='${wl}-bM:SRE'
10963 fi
10964 fi
10965 fi
10966
10967 # It seems that -bexpall does not export symbols beginning with
10968 # underscore (_), so it is better to generate a list of symbols to export.
10969 always_export_symbols_CXX=yes
10970 if test "$aix_use_runtimelinking" = yes; then
10971 # Warning - without using the other runtime loading flags (-brtl),
10972 # -berok will link without error, but may produce a broken library.
10973 allow_undefined_flag_CXX='-berok'
10974 # Determine the default libpath from the value encoded in an empty executable.
10975 cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h. */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981
10982 int
10983 main ()
10984 {
10985
10986 ;
10987 return 0;
10988 }
10989 _ACEOF
10990 rm -f conftest.$ac_objext conftest$ac_exeext
10991 if { (ac_try="$ac_link"
10992 case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10995 esac
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_link") 2>conftest.er1
10998 ac_status=$?
10999 grep -v '^ *+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && {
11004 test -z "$ac_cxx_werror_flag" ||
11005 test ! -s conftest.err
11006 } && test -s conftest$ac_exeext &&
11007 $as_test_x conftest$ac_exeext; then
11008
11009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11010 }'`
11011 # Check for a 64-bit object if we didn't find anything.
11012 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; }
11013 }'`; fi
11014 else
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11017
11018
11019 fi
11020
11021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11022 conftest$ac_exeext conftest.$ac_ext
11023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11024
11025 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11026
11027 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"
11028 else
11029 if test "$host_cpu" = ia64; then
11030 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11031 allow_undefined_flag_CXX="-z nodefs"
11032 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"
11033 else
11034 # Determine the default libpath from the value encoded in an empty executable.
11035 cat >conftest.$ac_ext <<_ACEOF
11036 /* confdefs.h. */
11037 _ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11041
11042 int
11043 main ()
11044 {
11045
11046 ;
11047 return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (ac_try="$ac_link"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_link") 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } && {
11064 test -z "$ac_cxx_werror_flag" ||
11065 test ! -s conftest.err
11066 } && test -s conftest$ac_exeext &&
11067 $as_test_x conftest$ac_exeext; then
11068
11069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11070 }'`
11071 # Check for a 64-bit object if we didn't find anything.
11072 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; }
11073 }'`; fi
11074 else
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11077
11078
11079 fi
11080
11081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11082 conftest$ac_exeext conftest.$ac_ext
11083 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11084
11085 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11086 # Warning - without using the other run time loading flags,
11087 # -berok will link without error, but may produce a broken library.
11088 no_undefined_flag_CXX=' ${wl}-bernotok'
11089 allow_undefined_flag_CXX=' ${wl}-berok'
11090 # Exported symbols can be pulled into shared objects from archives
11091 whole_archive_flag_spec_CXX='$convenience'
11092 archive_cmds_need_lc_CXX=yes
11093 # This is similar to how AIX traditionally builds its shared libraries.
11094 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'
11095 fi
11096 fi
11097 ;;
11098
11099 beos*)
11100 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11101 allow_undefined_flag_CXX=unsupported
11102 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11103 # support --undefined. This deserves some investigation. FIXME
11104 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11105 else
11106 ld_shlibs_CXX=no
11107 fi
11108 ;;
11109
11110 chorus*)
11111 case $cc_basename in
11112 *)
11113 # FIXME: insert proper C++ library support
11114 ld_shlibs_CXX=no
11115 ;;
11116 esac
11117 ;;
11118
11119 cygwin* | mingw* | pw32*)
11120 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11121 # as there is no search path for DLLs.
11122 hardcode_libdir_flag_spec_CXX='-L$libdir'
11123 allow_undefined_flag_CXX=unsupported
11124 always_export_symbols_CXX=no
11125 enable_shared_with_static_runtimes_CXX=yes
11126
11127 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11128 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'
11129 # If the export-symbols file already is a .def file (1st line
11130 # is EXPORTS), use it as is; otherwise, prepend...
11131 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11132 cp $export_symbols $output_objdir/$soname.def;
11133 else
11134 echo EXPORTS > $output_objdir/$soname.def;
11135 cat $export_symbols >> $output_objdir/$soname.def;
11136 fi~
11137 $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'
11138 else
11139 ld_shlibs_CXX=no
11140 fi
11141 ;;
11142 darwin* | rhapsody*)
11143 case $host_os in
11144 rhapsody* | darwin1.[012])
11145 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11146 ;;
11147 *) # Darwin 1.3 on
11148 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11149 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11150 else
11151 case ${MACOSX_DEPLOYMENT_TARGET} in
11152 10.[012])
11153 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11154 ;;
11155 10.*)
11156 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11157 ;;
11158 esac
11159 fi
11160 ;;
11161 esac
11162 archive_cmds_need_lc_CXX=no
11163 hardcode_direct_CXX=no
11164 hardcode_automatic_CXX=yes
11165 hardcode_shlibpath_var_CXX=unsupported
11166 whole_archive_flag_spec_CXX=''
11167 link_all_deplibs_CXX=yes
11168
11169 if test "$GXX" = yes ; then
11170 lt_int_apple_cc_single_mod=no
11171 output_verbose_link_cmd='echo'
11172 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11173 lt_int_apple_cc_single_mod=yes
11174 fi
11175 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11176 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11177 else
11178 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'
11179 fi
11180 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11181 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11182 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11183 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}'
11184 else
11185 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}'
11186 fi
11187 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}'
11188 else
11189 case $cc_basename in
11190 xlc*)
11191 output_verbose_link_cmd='echo'
11192 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'
11193 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11194 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11195 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}'
11196 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}'
11197 ;;
11198 *)
11199 ld_shlibs_CXX=no
11200 ;;
11201 esac
11202 fi
11203 ;;
11204
11205 dgux*)
11206 case $cc_basename in
11207 ec++*)
11208 # FIXME: insert proper C++ library support
11209 ld_shlibs_CXX=no
11210 ;;
11211 ghcx*)
11212 # Green Hills C++ Compiler
11213 # FIXME: insert proper C++ library support
11214 ld_shlibs_CXX=no
11215 ;;
11216 *)
11217 # FIXME: insert proper C++ library support
11218 ld_shlibs_CXX=no
11219 ;;
11220 esac
11221 ;;
11222 freebsd[12]*)
11223 # C++ shared libraries reported to be fairly broken before switch to ELF
11224 ld_shlibs_CXX=no
11225 ;;
11226 freebsd-elf*)
11227 archive_cmds_need_lc_CXX=no
11228 ;;
11229 freebsd* | kfreebsd*-gnu | dragonfly*)
11230 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11231 # conventions
11232 ld_shlibs_CXX=yes
11233 ;;
11234 gnu*)
11235 ;;
11236 hpux9*)
11237 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11238 hardcode_libdir_separator_CXX=:
11239 export_dynamic_flag_spec_CXX='${wl}-E'
11240 hardcode_direct_CXX=yes
11241 hardcode_minus_L_CXX=yes # Not in the search PATH,
11242 # but as the default
11243 # location of the library.
11244
11245 case $cc_basename in
11246 CC*)
11247 # FIXME: insert proper C++ library support
11248 ld_shlibs_CXX=no
11249 ;;
11250 aCC*)
11251 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'
11252 # Commands to make compiler produce verbose output that lists
11253 # what "hidden" libraries, object files and flags are used when
11254 # linking a shared library.
11255 #
11256 # There doesn't appear to be a way to prevent this compiler from
11257 # explicitly linking system object files so we need to strip them
11258 # from the output so that they don't get included in the library
11259 # dependencies.
11260 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'
11261 ;;
11262 *)
11263 if test "$GXX" = yes; then
11264 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'
11265 else
11266 # FIXME: insert proper C++ library support
11267 ld_shlibs_CXX=no
11268 fi
11269 ;;
11270 esac
11271 ;;
11272 hpux10*|hpux11*)
11273 if test $with_gnu_ld = no; then
11274 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11275 hardcode_libdir_separator_CXX=:
11276
11277 case $host_cpu in
11278 hppa*64*|ia64*)
11279 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11280 ;;
11281 *)
11282 export_dynamic_flag_spec_CXX='${wl}-E'
11283 ;;
11284 esac
11285 fi
11286 case $host_cpu in
11287 hppa*64*|ia64*)
11288 hardcode_direct_CXX=no
11289 hardcode_shlibpath_var_CXX=no
11290 ;;
11291 *)
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 esac
11298
11299 case $cc_basename in
11300 CC*)
11301 # FIXME: insert proper C++ library support
11302 ld_shlibs_CXX=no
11303 ;;
11304 aCC*)
11305 case $host_cpu in
11306 hppa*64*)
11307 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11308 ;;
11309 ia64*)
11310 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11311 ;;
11312 *)
11313 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11314 ;;
11315 esac
11316 # Commands to make compiler produce verbose output that lists
11317 # what "hidden" libraries, object files and flags are used when
11318 # linking a shared library.
11319 #
11320 # There doesn't appear to be a way to prevent this compiler from
11321 # explicitly linking system object files so we need to strip them
11322 # from the output so that they don't get included in the library
11323 # dependencies.
11324 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'
11325 ;;
11326 *)
11327 if test "$GXX" = yes; then
11328 if test $with_gnu_ld = no; then
11329 case $host_cpu in
11330 hppa*64*)
11331 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11332 ;;
11333 ia64*)
11334 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11335 ;;
11336 *)
11337 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'
11338 ;;
11339 esac
11340 fi
11341 else
11342 # FIXME: insert proper C++ library support
11343 ld_shlibs_CXX=no
11344 fi
11345 ;;
11346 esac
11347 ;;
11348 interix3*)
11349 hardcode_direct_CXX=no
11350 hardcode_shlibpath_var_CXX=no
11351 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11352 export_dynamic_flag_spec_CXX='${wl}-E'
11353 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11354 # Instead, shared libraries are loaded at an image base (0x10000000 by
11355 # default) and relocated if they conflict, which is a slow very memory
11356 # consuming and fragmenting process. To avoid this, we pick a random,
11357 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11358 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11359 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'
11360 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'
11361 ;;
11362 irix5* | irix6*)
11363 case $cc_basename in
11364 CC*)
11365 # SGI C++
11366 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'
11367
11368 # Archives containing C++ object files must be created using
11369 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11370 # necessary to make sure instantiated templates are included
11371 # in the archive.
11372 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11373 ;;
11374 *)
11375 if test "$GXX" = yes; then
11376 if test "$with_gnu_ld" = no; then
11377 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'
11378 else
11379 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'
11380 fi
11381 fi
11382 link_all_deplibs_CXX=yes
11383 ;;
11384 esac
11385 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11386 hardcode_libdir_separator_CXX=:
11387 ;;
11388 linux*)
11389 case $cc_basename in
11390 KCC*)
11391 # Kuck and Associates, Inc. (KAI) C++ Compiler
11392
11393 # KCC will only create a shared library if the output file
11394 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11395 # to its proper name (with version) after linking.
11396 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'
11397 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'
11398 # Commands to make compiler produce verbose output that lists
11399 # what "hidden" libraries, object files and flags are used when
11400 # linking a shared library.
11401 #
11402 # There doesn't appear to be a way to prevent this compiler from
11403 # explicitly linking system object files so we need to strip them
11404 # from the output so that they don't get included in the library
11405 # dependencies.
11406 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'
11407
11408 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11409 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11410
11411 # Archives containing C++ object files must be created using
11412 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11413 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11414 ;;
11415 icpc*)
11416 # Intel C++
11417 with_gnu_ld=yes
11418 # version 8.0 and above of icpc choke on multiply defined symbols
11419 # if we add $predep_objects and $postdep_objects, however 7.1 and
11420 # earlier do not add the objects themselves.
11421 case `$CC -V 2>&1` in
11422 *"Version 7."*)
11423 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11424 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'
11425 ;;
11426 *) # Version 8.0 or newer
11427 tmp_idyn=
11428 case $host_cpu in
11429 ia64*) tmp_idyn=' -i_dynamic';;
11430 esac
11431 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11432 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'
11433 ;;
11434 esac
11435 archive_cmds_need_lc_CXX=no
11436 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11437 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11438 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11439 ;;
11440 pgCC*)
11441 # Portland Group C++ compiler
11442 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11443 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'
11444
11445 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11446 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11447 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'
11448 ;;
11449 cxx*)
11450 # Compaq C++
11451 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11452 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'
11453
11454 runpath_var=LD_RUN_PATH
11455 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11456 hardcode_libdir_separator_CXX=:
11457
11458 # Commands to make compiler produce verbose output that lists
11459 # what "hidden" libraries, object files and flags are used when
11460 # linking a shared library.
11461 #
11462 # There doesn't appear to be a way to prevent this compiler from
11463 # explicitly linking system object files so we need to strip them
11464 # from the output so that they don't get included in the library
11465 # dependencies.
11466 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'
11467 ;;
11468 esac
11469 ;;
11470 lynxos*)
11471 # FIXME: insert proper C++ library support
11472 ld_shlibs_CXX=no
11473 ;;
11474 m88k*)
11475 # FIXME: insert proper C++ library support
11476 ld_shlibs_CXX=no
11477 ;;
11478 mvs*)
11479 case $cc_basename in
11480 cxx*)
11481 # FIXME: insert proper C++ library support
11482 ld_shlibs_CXX=no
11483 ;;
11484 *)
11485 # FIXME: insert proper C++ library support
11486 ld_shlibs_CXX=no
11487 ;;
11488 esac
11489 ;;
11490 netbsd*)
11491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11492 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11493 wlarc=
11494 hardcode_libdir_flag_spec_CXX='-R$libdir'
11495 hardcode_direct_CXX=yes
11496 hardcode_shlibpath_var_CXX=no
11497 fi
11498 # Workaround some broken pre-1.5 toolchains
11499 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11500 ;;
11501 openbsd2*)
11502 # C++ shared libraries are fairly broken
11503 ld_shlibs_CXX=no
11504 ;;
11505 openbsd*)
11506 hardcode_direct_CXX=yes
11507 hardcode_shlibpath_var_CXX=no
11508 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11509 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11510 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11511 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11512 export_dynamic_flag_spec_CXX='${wl}-E'
11513 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11514 fi
11515 output_verbose_link_cmd='echo'
11516 ;;
11517 osf3*)
11518 case $cc_basename in
11519 KCC*)
11520 # Kuck and Associates, Inc. (KAI) C++ Compiler
11521
11522 # KCC will only create a shared library if the output file
11523 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11524 # to its proper name (with version) after linking.
11525 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'
11526
11527 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11528 hardcode_libdir_separator_CXX=:
11529
11530 # Archives containing C++ object files must be created using
11531 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11532 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11533
11534 ;;
11535 RCC*)
11536 # Rational C++ 2.4.1
11537 # FIXME: insert proper C++ library support
11538 ld_shlibs_CXX=no
11539 ;;
11540 cxx*)
11541 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11542 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'
11543
11544 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11545 hardcode_libdir_separator_CXX=:
11546
11547 # Commands to make compiler produce verbose output that lists
11548 # what "hidden" libraries, object files and flags are used when
11549 # linking a shared library.
11550 #
11551 # There doesn't appear to be a way to prevent this compiler from
11552 # explicitly linking system object files so we need to strip them
11553 # from the output so that they don't get included in the library
11554 # dependencies.
11555 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'
11556 ;;
11557 *)
11558 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11559 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11560 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'
11561
11562 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11563 hardcode_libdir_separator_CXX=:
11564
11565 # Commands to make compiler produce verbose output that lists
11566 # what "hidden" libraries, object files and flags are used when
11567 # linking a shared library.
11568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11569
11570 else
11571 # FIXME: insert proper C++ library support
11572 ld_shlibs_CXX=no
11573 fi
11574 ;;
11575 esac
11576 ;;
11577 osf4* | osf5*)
11578 case $cc_basename in
11579 KCC*)
11580 # Kuck and Associates, Inc. (KAI) C++ Compiler
11581
11582 # KCC will only create a shared library if the output file
11583 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11584 # to its proper name (with version) after linking.
11585 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'
11586
11587 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11588 hardcode_libdir_separator_CXX=:
11589
11590 # Archives containing C++ object files must be created using
11591 # the KAI C++ compiler.
11592 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11593 ;;
11594 RCC*)
11595 # Rational C++ 2.4.1
11596 # FIXME: insert proper C++ library support
11597 ld_shlibs_CXX=no
11598 ;;
11599 cxx*)
11600 allow_undefined_flag_CXX=' -expect_unresolved \*'
11601 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'
11602 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11603 echo "-hidden">> $lib.exp~
11604 $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~
11605 $rm $lib.exp'
11606
11607 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11608 hardcode_libdir_separator_CXX=:
11609
11610 # Commands to make compiler produce verbose output that lists
11611 # what "hidden" libraries, object files and flags are used when
11612 # linking a shared library.
11613 #
11614 # There doesn't appear to be a way to prevent this compiler from
11615 # explicitly linking system object files so we need to strip them
11616 # from the output so that they don't get included in the library
11617 # dependencies.
11618 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'
11619 ;;
11620 *)
11621 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11622 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11623 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'
11624
11625 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11626 hardcode_libdir_separator_CXX=:
11627
11628 # Commands to make compiler produce verbose output that lists
11629 # what "hidden" libraries, object files and flags are used when
11630 # linking a shared library.
11631 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11632
11633 else
11634 # FIXME: insert proper C++ library support
11635 ld_shlibs_CXX=no
11636 fi
11637 ;;
11638 esac
11639 ;;
11640 psos*)
11641 # FIXME: insert proper C++ library support
11642 ld_shlibs_CXX=no
11643 ;;
11644 sunos4*)
11645 case $cc_basename in
11646 CC*)
11647 # Sun C++ 4.x
11648 # FIXME: insert proper C++ library support
11649 ld_shlibs_CXX=no
11650 ;;
11651 lcc*)
11652 # Lucid
11653 # FIXME: insert proper C++ library support
11654 ld_shlibs_CXX=no
11655 ;;
11656 *)
11657 # FIXME: insert proper C++ library support
11658 ld_shlibs_CXX=no
11659 ;;
11660 esac
11661 ;;
11662 solaris*)
11663 case $cc_basename in
11664 CC*)
11665 # Sun C++ 4.2, 5.x and Centerline C++
11666 archive_cmds_need_lc_CXX=yes
11667 no_undefined_flag_CXX=' -zdefs'
11668 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11669 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11670 $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'
11671
11672 hardcode_libdir_flag_spec_CXX='-R$libdir'
11673 hardcode_shlibpath_var_CXX=no
11674 case $host_os in
11675 solaris2.[0-5] | solaris2.[0-5].*) ;;
11676 *)
11677 # The C++ compiler is used as linker so we must use $wl
11678 # flag to pass the commands to the underlying system
11679 # linker. We must also pass each convience library through
11680 # to the system linker between allextract/defaultextract.
11681 # The C++ compiler will combine linker options so we
11682 # cannot just pass the convience library names through
11683 # without $wl.
11684 # Supported since Solaris 2.6 (maybe 2.5.1?)
11685 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'
11686 ;;
11687 esac
11688 link_all_deplibs_CXX=yes
11689
11690 output_verbose_link_cmd='echo'
11691
11692 # Archives containing C++ object files must be created using
11693 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11694 # necessary to make sure instantiated templates are included
11695 # in the archive.
11696 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11697 ;;
11698 gcx*)
11699 # Green Hills C++ Compiler
11700 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11701
11702 # The C++ compiler must be used to create the archive.
11703 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11704 ;;
11705 *)
11706 # GNU C++ compiler with Solaris linker
11707 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11708 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11709 if $CC --version | grep -v '^2\.7' > /dev/null; then
11710 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11711 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11712 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11713
11714 # Commands to make compiler produce verbose output that lists
11715 # what "hidden" libraries, object files and flags are used when
11716 # linking a shared library.
11717 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11718 else
11719 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11720 # platform.
11721 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11722 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11723 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11724
11725 # Commands to make compiler produce verbose output that lists
11726 # what "hidden" libraries, object files and flags are used when
11727 # linking a shared library.
11728 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11729 fi
11730
11731 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11732 fi
11733 ;;
11734 esac
11735 ;;
11736 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11737 no_undefined_flag_CXX='${wl}-z,text'
11738 archive_cmds_need_lc_CXX=no
11739 hardcode_shlibpath_var_CXX=no
11740 runpath_var='LD_RUN_PATH'
11741
11742 case $cc_basename in
11743 CC*)
11744 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11745 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11746 ;;
11747 *)
11748 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11749 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11750 ;;
11751 esac
11752 ;;
11753 sysv5* | sco3.2v5* | sco5v6*)
11754 # Note: We can NOT use -z defs as we might desire, because we do not
11755 # link with -lc, and that would cause any symbols used from libc to
11756 # always be unresolved, which means just about no library would
11757 # ever link correctly. If we're not using GNU ld we use -z text
11758 # though, which does catch some bad symbols but isn't as heavy-handed
11759 # as -z defs.
11760 # For security reasons, it is highly recommended that you always
11761 # use absolute paths for naming shared libraries, and exclude the
11762 # DT_RUNPATH tag from executables and libraries. But doing so
11763 # requires that you compile everything twice, which is a pain.
11764 # So that behaviour is only enabled if SCOABSPATH is set to a
11765 # non-empty value in the environment. Most likely only useful for
11766 # creating official distributions of packages.
11767 # This is a hack until libtool officially supports absolute path
11768 # names for shared libraries.
11769 no_undefined_flag_CXX='${wl}-z,text'
11770 allow_undefined_flag_CXX='${wl}-z,nodefs'
11771 archive_cmds_need_lc_CXX=no
11772 hardcode_shlibpath_var_CXX=no
11773 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11774 hardcode_libdir_separator_CXX=':'
11775 link_all_deplibs_CXX=yes
11776 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11777 runpath_var='LD_RUN_PATH'
11778
11779 case $cc_basename in
11780 CC*)
11781 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11782 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11783 ;;
11784 *)
11785 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11786 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11787 ;;
11788 esac
11789 ;;
11790 tandem*)
11791 case $cc_basename in
11792 NCC*)
11793 # NonStop-UX NCC 3.20
11794 # FIXME: insert proper C++ library support
11795 ld_shlibs_CXX=no
11796 ;;
11797 *)
11798 # FIXME: insert proper C++ library support
11799 ld_shlibs_CXX=no
11800 ;;
11801 esac
11802 ;;
11803 vxworks*)
11804 # FIXME: insert proper C++ library support
11805 ld_shlibs_CXX=no
11806 ;;
11807 *)
11808 # FIXME: insert proper C++ library support
11809 ld_shlibs_CXX=no
11810 ;;
11811 esac
11812 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11813 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11814 test "$ld_shlibs_CXX" = no && can_build_shared=no
11815
11816 GCC_CXX="$GXX"
11817 LD_CXX="$LD"
11818
11819
11820 cat > conftest.$ac_ext <<EOF
11821 class Foo
11822 {
11823 public:
11824 Foo (void) { a = 0; }
11825 private:
11826 int a;
11827 };
11828 EOF
11829
11830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11831 (eval $ac_compile) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; then
11835 # Parse the compiler output and extract the necessary
11836 # objects, libraries and library flags.
11837
11838 # Sentinel used to keep track of whether or not we are before
11839 # the conftest object file.
11840 pre_test_object_deps_done=no
11841
11842 # The `*' in the case matches for architectures that use `case' in
11843 # $output_verbose_cmd can trigger glob expansion during the loop
11844 # eval without this substitution.
11845 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11846
11847 for p in `eval $output_verbose_link_cmd`; do
11848 case $p in
11849
11850 -L* | -R* | -l*)
11851 # Some compilers place space between "-{L,R}" and the path.
11852 # Remove the space.
11853 if test $p = "-L" \
11854 || test $p = "-R"; then
11855 prev=$p
11856 continue
11857 else
11858 prev=
11859 fi
11860
11861 if test "$pre_test_object_deps_done" = no; then
11862 case $p in
11863 -L* | -R*)
11864 # Internal compiler library paths should come after those
11865 # provided the user. The postdeps already come after the
11866 # user supplied libs so there is no need to process them.
11867 if test -z "$compiler_lib_search_path_CXX"; then
11868 compiler_lib_search_path_CXX="${prev}${p}"
11869 else
11870 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11871 fi
11872 ;;
11873 # The "-l" case would never come before the object being
11874 # linked, so don't bother handling this case.
11875 esac
11876 else
11877 if test -z "$postdeps_CXX"; then
11878 postdeps_CXX="${prev}${p}"
11879 else
11880 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11881 fi
11882 fi
11883 ;;
11884
11885 *.$objext)
11886 # This assumes that the test object file only shows up
11887 # once in the compiler output.
11888 if test "$p" = "conftest.$objext"; then
11889 pre_test_object_deps_done=yes
11890 continue
11891 fi
11892
11893 if test "$pre_test_object_deps_done" = no; then
11894 if test -z "$predep_objects_CXX"; then
11895 predep_objects_CXX="$p"
11896 else
11897 predep_objects_CXX="$predep_objects_CXX $p"
11898 fi
11899 else
11900 if test -z "$postdep_objects_CXX"; then
11901 postdep_objects_CXX="$p"
11902 else
11903 postdep_objects_CXX="$postdep_objects_CXX $p"
11904 fi
11905 fi
11906 ;;
11907
11908 *) ;; # Ignore the rest.
11909
11910 esac
11911 done
11912
11913 # Clean up.
11914 rm -f a.out a.exe
11915 else
11916 echo "libtool.m4: error: problem compiling CXX test program"
11917 fi
11918
11919 $rm -f confest.$objext
11920
11921 # PORTME: override above test on systems where it is broken
11922 case $host_os in
11923 interix3*)
11924 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11925 # hack all around it, let's just trust "g++" to DTRT.
11926 predep_objects_CXX=
11927 postdep_objects_CXX=
11928 postdeps_CXX=
11929 ;;
11930
11931 solaris*)
11932 case $cc_basename in
11933 CC*)
11934 # Adding this requires a known-good setup of shared libraries for
11935 # Sun compiler versions before 5.6, else PIC objects from an old
11936 # archive will be linked into the output, leading to subtle bugs.
11937 postdeps_CXX='-lCstd -lCrun'
11938 ;;
11939 esac
11940 ;;
11941 esac
11942
11943
11944 case " $postdeps_CXX " in
11945 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11946 esac
11947
11948 lt_prog_compiler_wl_CXX=
11949 lt_prog_compiler_pic_CXX=
11950 lt_prog_compiler_static_CXX=
11951
11952 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11953 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11954
11955 # C++ specific cases for pic, static, wl, etc.
11956 if test "$GXX" = yes; then
11957 lt_prog_compiler_wl_CXX='-Wl,'
11958 lt_prog_compiler_static_CXX='-static'
11959
11960 case $host_os in
11961 aix*)
11962 # All AIX code is PIC.
11963 if test "$host_cpu" = ia64; then
11964 # AIX 5 now supports IA64 processor
11965 lt_prog_compiler_static_CXX='-Bstatic'
11966 fi
11967 ;;
11968 amigaos*)
11969 # FIXME: we need at least 68020 code to build shared libraries, but
11970 # adding the `-m68020' flag to GCC prevents building anything better,
11971 # like `-m68040'.
11972 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11973 ;;
11974 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11975 # PIC is the default for these OSes.
11976 ;;
11977 mingw* | os2* | pw32*)
11978 # This hack is so that the source file can tell whether it is being
11979 # built for inclusion in a dll (and should export symbols for example).
11980 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11981 ;;
11982 darwin* | rhapsody*)
11983 # PIC is the default on this platform
11984 # Common symbols not allowed in MH_DYLIB files
11985 lt_prog_compiler_pic_CXX='-fno-common'
11986 ;;
11987 *djgpp*)
11988 # DJGPP does not support shared libraries at all
11989 lt_prog_compiler_pic_CXX=
11990 ;;
11991 interix3*)
11992 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11993 # Instead, we relocate shared libraries at runtime.
11994 ;;
11995 sysv4*MP*)
11996 if test -d /usr/nec; then
11997 lt_prog_compiler_pic_CXX=-Kconform_pic
11998 fi
11999 ;;
12000 hpux*)
12001 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12002 # not for PA HP-UX.
12003 case $host_cpu in
12004 hppa*64*|ia64*)
12005 ;;
12006 *)
12007 lt_prog_compiler_pic_CXX='-fPIC'
12008 ;;
12009 esac
12010 ;;
12011 *)
12012 lt_prog_compiler_pic_CXX='-fPIC'
12013 ;;
12014 esac
12015 else
12016 case $host_os in
12017 aix4* | aix5*)
12018 # All AIX code is PIC.
12019 if test "$host_cpu" = ia64; then
12020 # AIX 5 now supports IA64 processor
12021 lt_prog_compiler_static_CXX='-Bstatic'
12022 else
12023 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12024 fi
12025 ;;
12026 chorus*)
12027 case $cc_basename in
12028 cxch68*)
12029 # Green Hills C++ Compiler
12030 # _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"
12031 ;;
12032 esac
12033 ;;
12034 darwin*)
12035 # PIC is the default on this platform
12036 # Common symbols not allowed in MH_DYLIB files
12037 case $cc_basename in
12038 xlc*)
12039 lt_prog_compiler_pic_CXX='-qnocommon'
12040 lt_prog_compiler_wl_CXX='-Wl,'
12041 ;;
12042 esac
12043 ;;
12044 dgux*)
12045 case $cc_basename in
12046 ec++*)
12047 lt_prog_compiler_pic_CXX='-KPIC'
12048 ;;
12049 ghcx*)
12050 # Green Hills C++ Compiler
12051 lt_prog_compiler_pic_CXX='-pic'
12052 ;;
12053 *)
12054 ;;
12055 esac
12056 ;;
12057 freebsd* | kfreebsd*-gnu | dragonfly*)
12058 # FreeBSD uses GNU C++
12059 ;;
12060 hpux9* | hpux10* | hpux11*)
12061 case $cc_basename in
12062 CC*)
12063 lt_prog_compiler_wl_CXX='-Wl,'
12064 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12065 if test "$host_cpu" != ia64; then
12066 lt_prog_compiler_pic_CXX='+Z'
12067 fi
12068 ;;
12069 aCC*)
12070 lt_prog_compiler_wl_CXX='-Wl,'
12071 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12072 case $host_cpu in
12073 hppa*64*|ia64*)
12074 # +Z the default
12075 ;;
12076 *)
12077 lt_prog_compiler_pic_CXX='+Z'
12078 ;;
12079 esac
12080 ;;
12081 *)
12082 ;;
12083 esac
12084 ;;
12085 interix*)
12086 # This is c89, which is MS Visual C++ (no shared libs)
12087 # Anyone wants to do a port?
12088 ;;
12089 irix5* | irix6* | nonstopux*)
12090 case $cc_basename in
12091 CC*)
12092 lt_prog_compiler_wl_CXX='-Wl,'
12093 lt_prog_compiler_static_CXX='-non_shared'
12094 # CC pic flag -KPIC is the default.
12095 ;;
12096 *)
12097 ;;
12098 esac
12099 ;;
12100 linux*)
12101 case $cc_basename in
12102 KCC*)
12103 # KAI C++ Compiler
12104 lt_prog_compiler_wl_CXX='--backend -Wl,'
12105 lt_prog_compiler_pic_CXX='-fPIC'
12106 ;;
12107 icpc* | ecpc*)
12108 # Intel C++
12109 lt_prog_compiler_wl_CXX='-Wl,'
12110 lt_prog_compiler_pic_CXX='-KPIC'
12111 lt_prog_compiler_static_CXX='-static'
12112 ;;
12113 pgCC*)
12114 # Portland Group C++ compiler.
12115 lt_prog_compiler_wl_CXX='-Wl,'
12116 lt_prog_compiler_pic_CXX='-fpic'
12117 lt_prog_compiler_static_CXX='-Bstatic'
12118 ;;
12119 cxx*)
12120 # Compaq C++
12121 # Make sure the PIC flag is empty. It appears that all Alpha
12122 # Linux and Compaq Tru64 Unix objects are PIC.
12123 lt_prog_compiler_pic_CXX=
12124 lt_prog_compiler_static_CXX='-non_shared'
12125 ;;
12126 *)
12127 ;;
12128 esac
12129 ;;
12130 lynxos*)
12131 ;;
12132 m88k*)
12133 ;;
12134 mvs*)
12135 case $cc_basename in
12136 cxx*)
12137 lt_prog_compiler_pic_CXX='-W c,exportall'
12138 ;;
12139 *)
12140 ;;
12141 esac
12142 ;;
12143 netbsd*)
12144 ;;
12145 osf3* | osf4* | osf5*)
12146 case $cc_basename in
12147 KCC*)
12148 lt_prog_compiler_wl_CXX='--backend -Wl,'
12149 ;;
12150 RCC*)
12151 # Rational C++ 2.4.1
12152 lt_prog_compiler_pic_CXX='-pic'
12153 ;;
12154 cxx*)
12155 # Digital/Compaq C++
12156 lt_prog_compiler_wl_CXX='-Wl,'
12157 # Make sure the PIC flag is empty. It appears that all Alpha
12158 # Linux and Compaq Tru64 Unix objects are PIC.
12159 lt_prog_compiler_pic_CXX=
12160 lt_prog_compiler_static_CXX='-non_shared'
12161 ;;
12162 *)
12163 ;;
12164 esac
12165 ;;
12166 psos*)
12167 ;;
12168 solaris*)
12169 case $cc_basename in
12170 CC*)
12171 # Sun C++ 4.2, 5.x and Centerline C++
12172 lt_prog_compiler_pic_CXX='-KPIC'
12173 lt_prog_compiler_static_CXX='-Bstatic'
12174 lt_prog_compiler_wl_CXX='-Qoption ld '
12175 ;;
12176 gcx*)
12177 # Green Hills C++ Compiler
12178 lt_prog_compiler_pic_CXX='-PIC'
12179 ;;
12180 *)
12181 ;;
12182 esac
12183 ;;
12184 sunos4*)
12185 case $cc_basename in
12186 CC*)
12187 # Sun C++ 4.x
12188 lt_prog_compiler_pic_CXX='-pic'
12189 lt_prog_compiler_static_CXX='-Bstatic'
12190 ;;
12191 lcc*)
12192 # Lucid
12193 lt_prog_compiler_pic_CXX='-pic'
12194 ;;
12195 *)
12196 ;;
12197 esac
12198 ;;
12199 tandem*)
12200 case $cc_basename in
12201 NCC*)
12202 # NonStop-UX NCC 3.20
12203 lt_prog_compiler_pic_CXX='-KPIC'
12204 ;;
12205 *)
12206 ;;
12207 esac
12208 ;;
12209 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12210 case $cc_basename in
12211 CC*)
12212 lt_prog_compiler_wl_CXX='-Wl,'
12213 lt_prog_compiler_pic_CXX='-KPIC'
12214 lt_prog_compiler_static_CXX='-Bstatic'
12215 ;;
12216 esac
12217 ;;
12218 vxworks*)
12219 ;;
12220 *)
12221 lt_prog_compiler_can_build_shared_CXX=no
12222 ;;
12223 esac
12224 fi
12225
12226 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12227 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12228
12229 #
12230 # Check to make sure the PIC flag actually works.
12231 #
12232 if test -n "$lt_prog_compiler_pic_CXX"; then
12233
12234 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12235 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12236 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239 lt_prog_compiler_pic_works_CXX=no
12240 ac_outfile=conftest.$ac_objext
12241 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12242 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12243 # Insert the option either (1) after the last *FLAGS variable, or
12244 # (2) before a word containing "conftest.", or (3) at the end.
12245 # Note that $ac_compile itself does not contain backslashes and begins
12246 # with a dollar sign (not a hyphen), so the echo should work correctly.
12247 # The option is referenced via a variable to avoid confusing sed.
12248 lt_compile=`echo "$ac_compile" | $SED \
12249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12251 -e 's:$: $lt_compiler_flag:'`
12252 (eval echo "\"\$as_me:12252: $lt_compile\"" >&5)
12253 (eval "$lt_compile" 2>conftest.err)
12254 ac_status=$?
12255 cat conftest.err >&5
12256 echo "$as_me:12256: \$? = $ac_status" >&5
12257 if (exit $ac_status) && test -s "$ac_outfile"; then
12258 # The compiler can only warn and ignore the option if not recognized
12259 # So say no if there are warnings other than the usual output.
12260 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12263 lt_prog_compiler_pic_works_CXX=yes
12264 fi
12265 fi
12266 $rm conftest*
12267
12268 fi
12269 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12270 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12271
12272 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12273 case $lt_prog_compiler_pic_CXX in
12274 "" | " "*) ;;
12275 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12276 esac
12277 else
12278 lt_prog_compiler_pic_CXX=
12279 lt_prog_compiler_can_build_shared_CXX=no
12280 fi
12281
12282 fi
12283 case $host_os in
12284 # For platforms which do not support PIC, -DPIC is meaningless:
12285 *djgpp*)
12286 lt_prog_compiler_pic_CXX=
12287 ;;
12288 *)
12289 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12290 ;;
12291 esac
12292
12293 #
12294 # Check to make sure the static flag actually works.
12295 #
12296 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12297 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12298 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12299 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302 lt_prog_compiler_static_works_CXX=no
12303 save_LDFLAGS="$LDFLAGS"
12304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12305 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12307 # The linker can only warn and ignore the option if not recognized
12308 # So say no if there are warnings
12309 if test -s conftest.err; then
12310 # Append any errors to the config.log.
12311 cat conftest.err 1>&5
12312 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12314 if diff conftest.exp conftest.er2 >/dev/null; then
12315 lt_prog_compiler_static_works_CXX=yes
12316 fi
12317 else
12318 lt_prog_compiler_static_works_CXX=yes
12319 fi
12320 fi
12321 $rm conftest*
12322 LDFLAGS="$save_LDFLAGS"
12323
12324 fi
12325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12326 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12327
12328 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12329 :
12330 else
12331 lt_prog_compiler_static_CXX=
12332 fi
12333
12334
12335 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12337 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340 lt_cv_prog_compiler_c_o_CXX=no
12341 $rm -r conftest 2>/dev/null
12342 mkdir conftest
12343 cd conftest
12344 mkdir out
12345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12346
12347 lt_compiler_flag="-o out/conftest2.$ac_objext"
12348 # Insert the option either (1) after the last *FLAGS variable, or
12349 # (2) before a word containing "conftest.", or (3) at the end.
12350 # Note that $ac_compile itself does not contain backslashes and begins
12351 # with a dollar sign (not a hyphen), so the echo should work correctly.
12352 lt_compile=`echo "$ac_compile" | $SED \
12353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12355 -e 's:$: $lt_compiler_flag:'`
12356 (eval echo "\"\$as_me:12356: $lt_compile\"" >&5)
12357 (eval "$lt_compile" 2>out/conftest.err)
12358 ac_status=$?
12359 cat out/conftest.err >&5
12360 echo "$as_me:12360: \$? = $ac_status" >&5
12361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12362 then
12363 # The compiler can only warn and ignore the option if not recognized
12364 # So say no if there are warnings
12365 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12368 lt_cv_prog_compiler_c_o_CXX=yes
12369 fi
12370 fi
12371 chmod u+w . 2>&5
12372 $rm conftest*
12373 # SGI C++ compiler will create directory out/ii_files/ for
12374 # template instantiation
12375 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12376 $rm out/* && rmdir out
12377 cd ..
12378 rmdir conftest
12379 $rm conftest*
12380
12381 fi
12382 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12383 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12384
12385
12386 hard_links="nottested"
12387 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12388 # do not overwrite the value of need_locks provided by the user
12389 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12390 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12391 hard_links=yes
12392 $rm conftest*
12393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12394 touch conftest.a
12395 ln conftest.a conftest.b 2>&5 || hard_links=no
12396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12397 { echo "$as_me:$LINENO: result: $hard_links" >&5
12398 echo "${ECHO_T}$hard_links" >&6; }
12399 if test "$hard_links" = no; then
12400 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12401 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12402 need_locks=warn
12403 fi
12404 else
12405 need_locks=no
12406 fi
12407
12408 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12410
12411 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12412 case $host_os in
12413 aix4* | aix5*)
12414 # If we're using GNU nm, then we don't want the "-C" option.
12415 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12416 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12417 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'
12418 else
12419 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'
12420 fi
12421 ;;
12422 pw32*)
12423 export_symbols_cmds_CXX="$ltdll_cmds"
12424 ;;
12425 cygwin* | mingw*)
12426 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'
12427 ;;
12428 *)
12429 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12430 ;;
12431 esac
12432
12433 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12434 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12435 test "$ld_shlibs_CXX" = no && can_build_shared=no
12436
12437 #
12438 # Do we need to explicitly link libc?
12439 #
12440 case "x$archive_cmds_need_lc_CXX" in
12441 x|xyes)
12442 # Assume -lc should be added
12443 archive_cmds_need_lc_CXX=yes
12444
12445 if test "$enable_shared" = yes && test "$GCC" = yes; then
12446 case $archive_cmds_CXX in
12447 *'~'*)
12448 # FIXME: we may have to deal with multi-command sequences.
12449 ;;
12450 '$CC '*)
12451 # Test whether the compiler implicitly links with -lc since on some
12452 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12453 # to ld, don't add -lc before -lgcc.
12454 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12455 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12456 $rm conftest*
12457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12458
12459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12460 (eval $ac_compile) 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } 2>conftest.err; then
12464 soname=conftest
12465 lib=conftest
12466 libobjs=conftest.$ac_objext
12467 deplibs=
12468 wl=$lt_prog_compiler_wl_CXX
12469 pic_flag=$lt_prog_compiler_pic_CXX
12470 compiler_flags=-v
12471 linker_flags=-v
12472 verstring=
12473 output_objdir=.
12474 libname=conftest
12475 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12476 allow_undefined_flag_CXX=
12477 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12478 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }
12482 then
12483 archive_cmds_need_lc_CXX=no
12484 else
12485 archive_cmds_need_lc_CXX=yes
12486 fi
12487 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12488 else
12489 cat conftest.err 1>&5
12490 fi
12491 $rm conftest*
12492 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12493 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12494 ;;
12495 esac
12496 fi
12497 ;;
12498 esac
12499
12500 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12501 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12502 library_names_spec=
12503 libname_spec='lib$name'
12504 soname_spec=
12505 shrext_cmds=".so"
12506 postinstall_cmds=
12507 postuninstall_cmds=
12508 finish_cmds=
12509 finish_eval=
12510 shlibpath_var=
12511 shlibpath_overrides_runpath=unknown
12512 version_type=none
12513 dynamic_linker="$host_os ld.so"
12514 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12515 if test "$GCC" = yes; then
12516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12517 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12518 # if the path contains ";" then we assume it to be the separator
12519 # otherwise default to the standard path separator (i.e. ":") - it is
12520 # assumed that no part of a normal pathname contains ";" but that should
12521 # okay in the real world where ";" in dirpaths is itself problematic.
12522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12523 else
12524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12525 fi
12526 else
12527 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12528 fi
12529 need_lib_prefix=unknown
12530 hardcode_into_libs=no
12531
12532 # when you set need_version to no, make sure it does not cause -set_version
12533 # flags to be left without arguments
12534 need_version=unknown
12535
12536 case $host_os in
12537 aix3*)
12538 version_type=linux
12539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12540 shlibpath_var=LIBPATH
12541
12542 # AIX 3 has no versioning support, so we append a major version to the name.
12543 soname_spec='${libname}${release}${shared_ext}$major'
12544 ;;
12545
12546 aix4* | aix5*)
12547 version_type=linux
12548 need_lib_prefix=no
12549 need_version=no
12550 hardcode_into_libs=yes
12551 if test "$host_cpu" = ia64; then
12552 # AIX 5 supports IA64
12553 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 else
12556 # With GCC up to 2.95.x, collect2 would create an import file
12557 # for dependence libraries. The import file would start with
12558 # the line `#! .'. This would cause the generated library to
12559 # depend on `.', always an invalid library. This was fixed in
12560 # development snapshots of GCC prior to 3.0.
12561 case $host_os in
12562 aix4 | aix4.[01] | aix4.[01].*)
12563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12564 echo ' yes '
12565 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12566 :
12567 else
12568 can_build_shared=no
12569 fi
12570 ;;
12571 esac
12572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12573 # soname into executable. Probably we can add versioning support to
12574 # collect2, so additional links can be useful in future.
12575 if test "$aix_use_runtimelinking" = yes; then
12576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12577 # instead of lib<name>.a to let people know that these are not
12578 # typical AIX shared libraries.
12579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12580 else
12581 # We preserve .a as extension for shared libraries through AIX4.2
12582 # and later when we are not doing run time linking.
12583 library_names_spec='${libname}${release}.a $libname.a'
12584 soname_spec='${libname}${release}${shared_ext}$major'
12585 fi
12586 shlibpath_var=LIBPATH
12587 fi
12588 ;;
12589
12590 amigaos*)
12591 library_names_spec='$libname.ixlibrary $libname.a'
12592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12593 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'
12594 ;;
12595
12596 beos*)
12597 library_names_spec='${libname}${shared_ext}'
12598 dynamic_linker="$host_os ld.so"
12599 shlibpath_var=LIBRARY_PATH
12600 ;;
12601
12602 bsdi[45]*)
12603 version_type=linux
12604 need_version=no
12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606 soname_spec='${libname}${release}${shared_ext}$major'
12607 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12608 shlibpath_var=LD_LIBRARY_PATH
12609 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12610 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12611 # the default ld.so.conf also contains /usr/contrib/lib and
12612 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12613 # libtool to hard-code these into programs
12614 ;;
12615
12616 cygwin* | mingw* | pw32*)
12617 version_type=windows
12618 shrext_cmds=".dll"
12619 need_version=no
12620 need_lib_prefix=no
12621
12622 case $GCC,$host_os in
12623 yes,cygwin* | yes,mingw* | yes,pw32*)
12624 library_names_spec='$libname.dll.a'
12625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12626 postinstall_cmds='base_file=`basename \${file}`~
12627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12628 dldir=$destdir/`dirname \$dlpath`~
12629 test -d \$dldir || mkdir -p \$dldir~
12630 $install_prog $dir/$dlname \$dldir/$dlname~
12631 chmod a+x \$dldir/$dlname'
12632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12633 dlpath=$dir/\$dldll~
12634 $rm \$dlpath'
12635 shlibpath_overrides_runpath=yes
12636
12637 case $host_os in
12638 cygwin*)
12639 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12640 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12641 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12642 ;;
12643 mingw*)
12644 # MinGW DLLs use traditional 'lib' prefix
12645 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12647 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12648 # It is most probably a Windows format PATH printed by
12649 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12650 # path with ; separators, and with drive letters. We can handle the
12651 # drive letters (cygwin fileutils understands them), so leave them,
12652 # especially as we might pass files found there to a mingw objdump,
12653 # which wouldn't understand a cygwinified path. Ahh.
12654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12655 else
12656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12657 fi
12658 ;;
12659 pw32*)
12660 # pw32 DLLs use 'pw' prefix rather than 'lib'
12661 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12662 ;;
12663 esac
12664 ;;
12665
12666 *)
12667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12668 ;;
12669 esac
12670 dynamic_linker='Win32 ld.exe'
12671 # FIXME: first we should search . and the directory the executable is in
12672 shlibpath_var=PATH
12673 ;;
12674
12675 darwin* | rhapsody*)
12676 dynamic_linker="$host_os dyld"
12677 version_type=darwin
12678 need_lib_prefix=no
12679 need_version=no
12680 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12681 soname_spec='${libname}${release}${major}$shared_ext'
12682 shlibpath_overrides_runpath=yes
12683 shlibpath_var=DYLD_LIBRARY_PATH
12684 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12685 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12686 if test "$GCC" = yes; then
12687 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"`
12688 else
12689 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12690 fi
12691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12692 ;;
12693
12694 dgux*)
12695 version_type=linux
12696 need_lib_prefix=no
12697 need_version=no
12698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12699 soname_spec='${libname}${release}${shared_ext}$major'
12700 shlibpath_var=LD_LIBRARY_PATH
12701 ;;
12702
12703 freebsd1*)
12704 dynamic_linker=no
12705 ;;
12706
12707 kfreebsd*-gnu)
12708 version_type=linux
12709 need_lib_prefix=no
12710 need_version=no
12711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12712 soname_spec='${libname}${release}${shared_ext}$major'
12713 shlibpath_var=LD_LIBRARY_PATH
12714 shlibpath_overrides_runpath=no
12715 hardcode_into_libs=yes
12716 dynamic_linker='GNU ld.so'
12717 ;;
12718
12719 freebsd* | dragonfly*)
12720 # DragonFly does not have aout. When/if they implement a new
12721 # versioning mechanism, adjust this.
12722 if test -x /usr/bin/objformat; then
12723 objformat=`/usr/bin/objformat`
12724 else
12725 case $host_os in
12726 freebsd[123]*) objformat=aout ;;
12727 *) objformat=elf ;;
12728 esac
12729 fi
12730 version_type=freebsd-$objformat
12731 case $version_type in
12732 freebsd-elf*)
12733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12734 need_version=no
12735 need_lib_prefix=no
12736 ;;
12737 freebsd-*)
12738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12739 need_version=yes
12740 ;;
12741 esac
12742 shlibpath_var=LD_LIBRARY_PATH
12743 case $host_os in
12744 freebsd2*)
12745 shlibpath_overrides_runpath=yes
12746 ;;
12747 freebsd3.[01]* | freebsdelf3.[01]*)
12748 shlibpath_overrides_runpath=yes
12749 hardcode_into_libs=yes
12750 ;;
12751 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12752 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12753 shlibpath_overrides_runpath=no
12754 hardcode_into_libs=yes
12755 ;;
12756 freebsd*) # from 4.6 on
12757 shlibpath_overrides_runpath=yes
12758 hardcode_into_libs=yes
12759 ;;
12760 esac
12761 ;;
12762
12763 gnu*)
12764 version_type=linux
12765 need_lib_prefix=no
12766 need_version=no
12767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12768 soname_spec='${libname}${release}${shared_ext}$major'
12769 shlibpath_var=LD_LIBRARY_PATH
12770 hardcode_into_libs=yes
12771 ;;
12772
12773 hpux9* | hpux10* | hpux11*)
12774 # Give a soname corresponding to the major version so that dld.sl refuses to
12775 # link against other versions.
12776 version_type=sunos
12777 need_lib_prefix=no
12778 need_version=no
12779 case $host_cpu in
12780 ia64*)
12781 shrext_cmds='.so'
12782 hardcode_into_libs=yes
12783 dynamic_linker="$host_os dld.so"
12784 shlibpath_var=LD_LIBRARY_PATH
12785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787 soname_spec='${libname}${release}${shared_ext}$major'
12788 if test "X$HPUX_IA64_MODE" = X32; then
12789 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12790 else
12791 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12792 fi
12793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12794 ;;
12795 hppa*64*)
12796 shrext_cmds='.sl'
12797 hardcode_into_libs=yes
12798 dynamic_linker="$host_os dld.sl"
12799 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12802 soname_spec='${libname}${release}${shared_ext}$major'
12803 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12805 ;;
12806 *)
12807 shrext_cmds='.sl'
12808 dynamic_linker="$host_os dld.sl"
12809 shlibpath_var=SHLIB_PATH
12810 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12812 soname_spec='${libname}${release}${shared_ext}$major'
12813 ;;
12814 esac
12815 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12816 postinstall_cmds='chmod 555 $lib'
12817 ;;
12818
12819 interix3*)
12820 version_type=linux
12821 need_lib_prefix=no
12822 need_version=no
12823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12824 soname_spec='${libname}${release}${shared_ext}$major'
12825 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12826 shlibpath_var=LD_LIBRARY_PATH
12827 shlibpath_overrides_runpath=no
12828 hardcode_into_libs=yes
12829 ;;
12830
12831 irix5* | irix6* | nonstopux*)
12832 case $host_os in
12833 nonstopux*) version_type=nonstopux ;;
12834 *)
12835 if test "$lt_cv_prog_gnu_ld" = yes; then
12836 version_type=linux
12837 else
12838 version_type=irix
12839 fi ;;
12840 esac
12841 need_lib_prefix=no
12842 need_version=no
12843 soname_spec='${libname}${release}${shared_ext}$major'
12844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12845 case $host_os in
12846 irix5* | nonstopux*)
12847 libsuff= shlibsuff=
12848 ;;
12849 *)
12850 case $LD in # libtool.m4 will add one of these switches to LD
12851 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12852 libsuff= shlibsuff= libmagic=32-bit;;
12853 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12854 libsuff=32 shlibsuff=N32 libmagic=N32;;
12855 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12856 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12857 *) libsuff= shlibsuff= libmagic=never-match;;
12858 esac
12859 ;;
12860 esac
12861 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12862 shlibpath_overrides_runpath=no
12863 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12864 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12865 hardcode_into_libs=yes
12866 ;;
12867
12868 # No shared lib support for Linux oldld, aout, or coff.
12869 linux*oldld* | linux*aout* | linux*coff*)
12870 dynamic_linker=no
12871 ;;
12872
12873 # This must be Linux ELF.
12874 linux*)
12875 version_type=linux
12876 need_lib_prefix=no
12877 need_version=no
12878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12879 soname_spec='${libname}${release}${shared_ext}$major'
12880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12881 shlibpath_var=LD_LIBRARY_PATH
12882 shlibpath_overrides_runpath=no
12883 # This implies no fast_install, which is unacceptable.
12884 # Some rework will be needed to allow for fast_install
12885 # before this can be enabled.
12886 hardcode_into_libs=yes
12887
12888 # find out which ABI we are using
12889 libsuff=
12890 case "$host_cpu" in
12891 x86_64*|s390x*|powerpc64*)
12892 echo '#line 12892 "configure"' > conftest.$ac_ext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894 (eval $ac_compile) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; then
12898 case `/usr/bin/file conftest.$ac_objext` in
12899 *64-bit*)
12900 libsuff=64
12901 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12902 ;;
12903 esac
12904 fi
12905 rm -rf conftest*
12906 ;;
12907 esac
12908
12909 # Append ld.so.conf contents to the search path
12910 if test -f /etc/ld.so.conf; then
12911 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' ' '`
12912 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12913 fi
12914
12915 # We used to test for /lib/ld.so.1 and disable shared libraries on
12916 # powerpc, because MkLinux only supported shared libraries with the
12917 # GNU dynamic linker. Since this was broken with cross compilers,
12918 # most powerpc-linux boxes support dynamic linking these days and
12919 # people can always --disable-shared, the test was removed, and we
12920 # assume the GNU/Linux dynamic linker is in use.
12921 dynamic_linker='GNU/Linux ld.so'
12922 ;;
12923
12924 knetbsd*-gnu)
12925 version_type=linux
12926 need_lib_prefix=no
12927 need_version=no
12928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12929 soname_spec='${libname}${release}${shared_ext}$major'
12930 shlibpath_var=LD_LIBRARY_PATH
12931 shlibpath_overrides_runpath=no
12932 hardcode_into_libs=yes
12933 dynamic_linker='GNU ld.so'
12934 ;;
12935
12936 netbsd*)
12937 version_type=sunos
12938 need_lib_prefix=no
12939 need_version=no
12940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12943 dynamic_linker='NetBSD (a.out) ld.so'
12944 else
12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12946 soname_spec='${libname}${release}${shared_ext}$major'
12947 dynamic_linker='NetBSD ld.elf_so'
12948 fi
12949 shlibpath_var=LD_LIBRARY_PATH
12950 shlibpath_overrides_runpath=yes
12951 hardcode_into_libs=yes
12952 ;;
12953
12954 newsos6)
12955 version_type=linux
12956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12957 shlibpath_var=LD_LIBRARY_PATH
12958 shlibpath_overrides_runpath=yes
12959 ;;
12960
12961 nto-qnx*)
12962 version_type=linux
12963 need_lib_prefix=no
12964 need_version=no
12965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12966 soname_spec='${libname}${release}${shared_ext}$major'
12967 shlibpath_var=LD_LIBRARY_PATH
12968 shlibpath_overrides_runpath=yes
12969 ;;
12970
12971 openbsd*)
12972 version_type=sunos
12973 sys_lib_dlsearch_path_spec="/usr/lib"
12974 need_lib_prefix=no
12975 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12976 case $host_os in
12977 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12978 *) need_version=no ;;
12979 esac
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12982 shlibpath_var=LD_LIBRARY_PATH
12983 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12984 case $host_os in
12985 openbsd2.[89] | openbsd2.[89].*)
12986 shlibpath_overrides_runpath=no
12987 ;;
12988 *)
12989 shlibpath_overrides_runpath=yes
12990 ;;
12991 esac
12992 else
12993 shlibpath_overrides_runpath=yes
12994 fi
12995 ;;
12996
12997 os2*)
12998 libname_spec='$name'
12999 shrext_cmds=".dll"
13000 need_lib_prefix=no
13001 library_names_spec='$libname${shared_ext} $libname.a'
13002 dynamic_linker='OS/2 ld.exe'
13003 shlibpath_var=LIBPATH
13004 ;;
13005
13006 osf3* | osf4* | osf5*)
13007 version_type=osf
13008 need_lib_prefix=no
13009 need_version=no
13010 soname_spec='${libname}${release}${shared_ext}$major'
13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13012 shlibpath_var=LD_LIBRARY_PATH
13013 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13014 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13015 ;;
13016
13017 solaris*)
13018 version_type=linux
13019 need_lib_prefix=no
13020 need_version=no
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022 soname_spec='${libname}${release}${shared_ext}$major'
13023 shlibpath_var=LD_LIBRARY_PATH
13024 shlibpath_overrides_runpath=yes
13025 hardcode_into_libs=yes
13026 # ldd complains unless libraries are executable
13027 postinstall_cmds='chmod +x $lib'
13028 ;;
13029
13030 sunos4*)
13031 version_type=sunos
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13033 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13034 shlibpath_var=LD_LIBRARY_PATH
13035 shlibpath_overrides_runpath=yes
13036 if test "$with_gnu_ld" = yes; then
13037 need_lib_prefix=no
13038 fi
13039 need_version=yes
13040 ;;
13041
13042 sysv4 | sysv4.3*)
13043 version_type=linux
13044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13045 soname_spec='${libname}${release}${shared_ext}$major'
13046 shlibpath_var=LD_LIBRARY_PATH
13047 case $host_vendor in
13048 sni)
13049 shlibpath_overrides_runpath=no
13050 need_lib_prefix=no
13051 export_dynamic_flag_spec='${wl}-Blargedynsym'
13052 runpath_var=LD_RUN_PATH
13053 ;;
13054 siemens)
13055 need_lib_prefix=no
13056 ;;
13057 motorola)
13058 need_lib_prefix=no
13059 need_version=no
13060 shlibpath_overrides_runpath=no
13061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13062 ;;
13063 esac
13064 ;;
13065
13066 sysv4*MP*)
13067 if test -d /usr/nec ;then
13068 version_type=linux
13069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13070 soname_spec='$libname${shared_ext}.$major'
13071 shlibpath_var=LD_LIBRARY_PATH
13072 fi
13073 ;;
13074
13075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13076 version_type=freebsd-elf
13077 need_lib_prefix=no
13078 need_version=no
13079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13080 soname_spec='${libname}${release}${shared_ext}$major'
13081 shlibpath_var=LD_LIBRARY_PATH
13082 hardcode_into_libs=yes
13083 if test "$with_gnu_ld" = yes; then
13084 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13085 shlibpath_overrides_runpath=no
13086 else
13087 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13088 shlibpath_overrides_runpath=yes
13089 case $host_os in
13090 sco3.2v5*)
13091 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13092 ;;
13093 esac
13094 fi
13095 sys_lib_dlsearch_path_spec='/usr/lib'
13096 ;;
13097
13098 uts4*)
13099 version_type=linux
13100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13101 soname_spec='${libname}${release}${shared_ext}$major'
13102 shlibpath_var=LD_LIBRARY_PATH
13103 ;;
13104
13105 *)
13106 dynamic_linker=no
13107 ;;
13108 esac
13109 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13110 echo "${ECHO_T}$dynamic_linker" >&6; }
13111 test "$dynamic_linker" = no && can_build_shared=no
13112
13113 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13114 if test "$GCC" = yes; then
13115 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13116 fi
13117
13118 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13119 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13120 hardcode_action_CXX=
13121 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13122 test -n "$runpath_var_CXX" || \
13123 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13124
13125 # We can hardcode non-existant directories.
13126 if test "$hardcode_direct_CXX" != no &&
13127 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13128 # have to relink, otherwise we might link with an installed library
13129 # when we should be linking with a yet-to-be-installed one
13130 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13131 test "$hardcode_minus_L_CXX" != no; then
13132 # Linking always hardcodes the temporary library directory.
13133 hardcode_action_CXX=relink
13134 else
13135 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13136 hardcode_action_CXX=immediate
13137 fi
13138 else
13139 # We cannot hardcode anything, or else we can only hardcode existing
13140 # directories.
13141 hardcode_action_CXX=unsupported
13142 fi
13143 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13144 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13145
13146 if test "$hardcode_action_CXX" = relink; then
13147 # Fast installation is not supported
13148 enable_fast_install=no
13149 elif test "$shlibpath_overrides_runpath" = yes ||
13150 test "$enable_shared" = no; then
13151 # Fast installation is not necessary
13152 enable_fast_install=needless
13153 fi
13154
13155
13156 # The else clause should only fire when bootstrapping the
13157 # libtool distribution, otherwise you forgot to ship ltmain.sh
13158 # with your package, and you will get complaints that there are
13159 # no rules to generate ltmain.sh.
13160 if test -f "$ltmain"; then
13161 # See if we are running on zsh, and set the options which allow our commands through
13162 # without removal of \ escapes.
13163 if test -n "${ZSH_VERSION+set}" ; then
13164 setopt NO_GLOB_SUBST
13165 fi
13166 # Now quote all the things that may contain metacharacters while being
13167 # careful not to overquote the AC_SUBSTed values. We take copies of the
13168 # variables and quote the copies for generation of the libtool script.
13169 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13170 SED SHELL STRIP \
13171 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13172 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13173 deplibs_check_method reload_flag reload_cmds need_locks \
13174 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13175 lt_cv_sys_global_symbol_to_c_name_address \
13176 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13177 old_postinstall_cmds old_postuninstall_cmds \
13178 compiler_CXX \
13179 CC_CXX \
13180 LD_CXX \
13181 lt_prog_compiler_wl_CXX \
13182 lt_prog_compiler_pic_CXX \
13183 lt_prog_compiler_static_CXX \
13184 lt_prog_compiler_no_builtin_flag_CXX \
13185 export_dynamic_flag_spec_CXX \
13186 thread_safe_flag_spec_CXX \
13187 whole_archive_flag_spec_CXX \
13188 enable_shared_with_static_runtimes_CXX \
13189 old_archive_cmds_CXX \
13190 old_archive_from_new_cmds_CXX \
13191 predep_objects_CXX \
13192 postdep_objects_CXX \
13193 predeps_CXX \
13194 postdeps_CXX \
13195 compiler_lib_search_path_CXX \
13196 archive_cmds_CXX \
13197 archive_expsym_cmds_CXX \
13198 postinstall_cmds_CXX \
13199 postuninstall_cmds_CXX \
13200 old_archive_from_expsyms_cmds_CXX \
13201 allow_undefined_flag_CXX \
13202 no_undefined_flag_CXX \
13203 export_symbols_cmds_CXX \
13204 hardcode_libdir_flag_spec_CXX \
13205 hardcode_libdir_flag_spec_ld_CXX \
13206 hardcode_libdir_separator_CXX \
13207 hardcode_automatic_CXX \
13208 module_cmds_CXX \
13209 module_expsym_cmds_CXX \
13210 lt_cv_prog_compiler_c_o_CXX \
13211 exclude_expsyms_CXX \
13212 include_expsyms_CXX; do
13213
13214 case $var in
13215 old_archive_cmds_CXX | \
13216 old_archive_from_new_cmds_CXX | \
13217 archive_cmds_CXX | \
13218 archive_expsym_cmds_CXX | \
13219 module_cmds_CXX | \
13220 module_expsym_cmds_CXX | \
13221 old_archive_from_expsyms_cmds_CXX | \
13222 export_symbols_cmds_CXX | \
13223 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13224 postinstall_cmds | postuninstall_cmds | \
13225 old_postinstall_cmds | old_postuninstall_cmds | \
13226 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13227 # Double-quote double-evaled strings.
13228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13229 ;;
13230 *)
13231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13232 ;;
13233 esac
13234 done
13235
13236 case $lt_echo in
13237 *'\$0 --fallback-echo"')
13238 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13239 ;;
13240 esac
13241
13242 cfgfile="$ofile"
13243
13244 cat <<__EOF__ >> "$cfgfile"
13245 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13246
13247 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13248
13249 # Shell to use when invoking shell scripts.
13250 SHELL=$lt_SHELL
13251
13252 # Whether or not to build shared libraries.
13253 build_libtool_libs=$enable_shared
13254
13255 # Whether or not to build static libraries.
13256 build_old_libs=$enable_static
13257
13258 # Whether or not to add -lc for building shared libraries.
13259 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13260
13261 # Whether or not to disallow shared libs when runtime libs are static
13262 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13263
13264 # Whether or not to optimize for fast installation.
13265 fast_install=$enable_fast_install
13266
13267 # The host system.
13268 host_alias=$host_alias
13269 host=$host
13270 host_os=$host_os
13271
13272 # The build system.
13273 build_alias=$build_alias
13274 build=$build
13275 build_os=$build_os
13276
13277 # An echo program that does not interpret backslashes.
13278 echo=$lt_echo
13279
13280 # The archiver.
13281 AR=$lt_AR
13282 AR_FLAGS=$lt_AR_FLAGS
13283
13284 # A C compiler.
13285 LTCC=$lt_LTCC
13286
13287 # LTCC compiler flags.
13288 LTCFLAGS=$lt_LTCFLAGS
13289
13290 # A language-specific compiler.
13291 CC=$lt_compiler_CXX
13292
13293 # Is the compiler the GNU C compiler?
13294 with_gcc=$GCC_CXX
13295
13296 # An ERE matcher.
13297 EGREP=$lt_EGREP
13298
13299 # The linker used to build libraries.
13300 LD=$lt_LD_CXX
13301
13302 # Whether we need hard or soft links.
13303 LN_S=$lt_LN_S
13304
13305 # A BSD-compatible nm program.
13306 NM=$lt_NM
13307
13308 # A symbol stripping program
13309 STRIP=$lt_STRIP
13310
13311 # Used to examine libraries when file_magic_cmd begins "file"
13312 MAGIC_CMD=$MAGIC_CMD
13313
13314 # Used on cygwin: DLL creation program.
13315 DLLTOOL="$DLLTOOL"
13316
13317 # Used on cygwin: object dumper.
13318 OBJDUMP="$OBJDUMP"
13319
13320 # Used on cygwin: assembler.
13321 AS="$AS"
13322
13323 # The name of the directory that contains temporary libtool files.
13324 objdir=$objdir
13325
13326 # How to create reloadable object files.
13327 reload_flag=$lt_reload_flag
13328 reload_cmds=$lt_reload_cmds
13329
13330 # How to pass a linker flag through the compiler.
13331 wl=$lt_lt_prog_compiler_wl_CXX
13332
13333 # Object file suffix (normally "o").
13334 objext="$ac_objext"
13335
13336 # Old archive suffix (normally "a").
13337 libext="$libext"
13338
13339 # Shared library suffix (normally ".so").
13340 shrext_cmds='$shrext_cmds'
13341
13342 # Executable file suffix (normally "").
13343 exeext="$exeext"
13344
13345 # Additional compiler flags for building library objects.
13346 pic_flag=$lt_lt_prog_compiler_pic_CXX
13347 pic_mode=$pic_mode
13348
13349 # What is the maximum length of a command?
13350 max_cmd_len=$lt_cv_sys_max_cmd_len
13351
13352 # Does compiler simultaneously support -c and -o options?
13353 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13354
13355 # Must we lock files when doing compilation?
13356 need_locks=$lt_need_locks
13357
13358 # Do we need the lib prefix for modules?
13359 need_lib_prefix=$need_lib_prefix
13360
13361 # Do we need a version for libraries?
13362 need_version=$need_version
13363
13364 # Whether dlopen is supported.
13365 dlopen_support=$enable_dlopen
13366
13367 # Whether dlopen of programs is supported.
13368 dlopen_self=$enable_dlopen_self
13369
13370 # Whether dlopen of statically linked programs is supported.
13371 dlopen_self_static=$enable_dlopen_self_static
13372
13373 # Compiler flag to prevent dynamic linking.
13374 link_static_flag=$lt_lt_prog_compiler_static_CXX
13375
13376 # Compiler flag to turn off builtin functions.
13377 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13378
13379 # Compiler flag to allow reflexive dlopens.
13380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13381
13382 # Compiler flag to generate shared objects directly from archives.
13383 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13384
13385 # Compiler flag to generate thread-safe objects.
13386 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13387
13388 # Library versioning type.
13389 version_type=$version_type
13390
13391 # Format of library name prefix.
13392 libname_spec=$lt_libname_spec
13393
13394 # List of archive names. First name is the real one, the rest are links.
13395 # The last name is the one that the linker finds with -lNAME.
13396 library_names_spec=$lt_library_names_spec
13397
13398 # The coded name of the library, if different from the real name.
13399 soname_spec=$lt_soname_spec
13400
13401 # Commands used to build and install an old-style archive.
13402 RANLIB=$lt_RANLIB
13403 old_archive_cmds=$lt_old_archive_cmds_CXX
13404 old_postinstall_cmds=$lt_old_postinstall_cmds
13405 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13406
13407 # Create an old-style archive from a shared archive.
13408 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13409
13410 # Create a temporary old-style archive to link instead of a shared archive.
13411 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13412
13413 # Commands used to build and install a shared archive.
13414 archive_cmds=$lt_archive_cmds_CXX
13415 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13416 postinstall_cmds=$lt_postinstall_cmds
13417 postuninstall_cmds=$lt_postuninstall_cmds
13418
13419 # Commands used to build a loadable module (assumed same as above if empty)
13420 module_cmds=$lt_module_cmds_CXX
13421 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13422
13423 # Commands to strip libraries.
13424 old_striplib=$lt_old_striplib
13425 striplib=$lt_striplib
13426
13427 # Dependencies to place before the objects being linked to create a
13428 # shared library.
13429 predep_objects=$lt_predep_objects_CXX
13430
13431 # Dependencies to place after the objects being linked to create a
13432 # shared library.
13433 postdep_objects=$lt_postdep_objects_CXX
13434
13435 # Dependencies to place before the objects being linked to create a
13436 # shared library.
13437 predeps=$lt_predeps_CXX
13438
13439 # Dependencies to place after the objects being linked to create a
13440 # shared library.
13441 postdeps=$lt_postdeps_CXX
13442
13443 # The library search path used internally by the compiler when linking
13444 # a shared library.
13445 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13446
13447 # Method to check whether dependent libraries are shared objects.
13448 deplibs_check_method=$lt_deplibs_check_method
13449
13450 # Command to use when deplibs_check_method == file_magic.
13451 file_magic_cmd=$lt_file_magic_cmd
13452
13453 # Flag that allows shared libraries with undefined symbols to be built.
13454 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13455
13456 # Flag that forces no undefined symbols.
13457 no_undefined_flag=$lt_no_undefined_flag_CXX
13458
13459 # Commands used to finish a libtool library installation in a directory.
13460 finish_cmds=$lt_finish_cmds
13461
13462 # Same as above, but a single script fragment to be evaled but not shown.
13463 finish_eval=$lt_finish_eval
13464
13465 # Take the output of nm and produce a listing of raw symbols and C names.
13466 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13467
13468 # Transform the output of nm in a proper C declaration
13469 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13470
13471 # Transform the output of nm in a C name address pair
13472 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13473
13474 # This is the shared library runtime path variable.
13475 runpath_var=$runpath_var
13476
13477 # This is the shared library path variable.
13478 shlibpath_var=$shlibpath_var
13479
13480 # Is shlibpath searched before the hard-coded library search path?
13481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13482
13483 # How to hardcode a shared library path into an executable.
13484 hardcode_action=$hardcode_action_CXX
13485
13486 # Whether we should hardcode library paths into libraries.
13487 hardcode_into_libs=$hardcode_into_libs
13488
13489 # Flag to hardcode \$libdir into a binary during linking.
13490 # This must work even if \$libdir does not exist.
13491 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13492
13493 # If ld is used when linking, flag to hardcode \$libdir into
13494 # a binary during linking. This must work even if \$libdir does
13495 # not exist.
13496 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13497
13498 # Whether we need a single -rpath flag with a separated argument.
13499 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13500
13501 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13502 # resulting binary.
13503 hardcode_direct=$hardcode_direct_CXX
13504
13505 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13506 # resulting binary.
13507 hardcode_minus_L=$hardcode_minus_L_CXX
13508
13509 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13510 # the resulting binary.
13511 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13512
13513 # Set to yes if building a shared library automatically hardcodes DIR into the library
13514 # and all subsequent libraries and executables linked against it.
13515 hardcode_automatic=$hardcode_automatic_CXX
13516
13517 # Variables whose values should be saved in libtool wrapper scripts and
13518 # restored at relink time.
13519 variables_saved_for_relink="$variables_saved_for_relink"
13520
13521 # Whether libtool must link a program against all its dependency libraries.
13522 link_all_deplibs=$link_all_deplibs_CXX
13523
13524 # Compile-time system search path for libraries
13525 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13526
13527 # Run-time system search path for libraries
13528 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13529
13530 # Fix the shell variable \$srcfile for the compiler.
13531 fix_srcfile_path="$fix_srcfile_path_CXX"
13532
13533 # Set to yes if exported symbols are required.
13534 always_export_symbols=$always_export_symbols_CXX
13535
13536 # The commands to list exported symbols.
13537 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13538
13539 # The commands to extract the exported symbol list from a shared archive.
13540 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13541
13542 # Symbols that should not be listed in the preloaded symbols.
13543 exclude_expsyms=$lt_exclude_expsyms_CXX
13544
13545 # Symbols that must always be exported.
13546 include_expsyms=$lt_include_expsyms_CXX
13547
13548 # ### END LIBTOOL TAG CONFIG: $tagname
13549
13550 __EOF__
13551
13552
13553 else
13554 # If there is no Makefile yet, we rely on a make rule to execute
13555 # `config.status --recheck' to rerun these tests and create the
13556 # libtool script then.
13557 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13558 if test -f "$ltmain_in"; then
13559 test -f Makefile && make "$ltmain"
13560 fi
13561 fi
13562
13563
13564 ac_ext=c
13565 ac_cpp='$CPP $CPPFLAGS'
13566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13569
13570 CC=$lt_save_CC
13571 LDCXX=$LD
13572 LD=$lt_save_LD
13573 GCC=$lt_save_GCC
13574 with_gnu_ldcxx=$with_gnu_ld
13575 with_gnu_ld=$lt_save_with_gnu_ld
13576 lt_cv_path_LDCXX=$lt_cv_path_LD
13577 lt_cv_path_LD=$lt_save_path_LD
13578 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13579 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13580
13581 else
13582 tagname=""
13583 fi
13584 ;;
13585
13586 F77)
13587 if test -n "$F77" && test "X$F77" != "Xno"; then
13588
13589 ac_ext=f
13590 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13591 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13592 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13593
13594
13595 archive_cmds_need_lc_F77=no
13596 allow_undefined_flag_F77=
13597 always_export_symbols_F77=no
13598 archive_expsym_cmds_F77=
13599 export_dynamic_flag_spec_F77=
13600 hardcode_direct_F77=no
13601 hardcode_libdir_flag_spec_F77=
13602 hardcode_libdir_flag_spec_ld_F77=
13603 hardcode_libdir_separator_F77=
13604 hardcode_minus_L_F77=no
13605 hardcode_automatic_F77=no
13606 module_cmds_F77=
13607 module_expsym_cmds_F77=
13608 link_all_deplibs_F77=unknown
13609 old_archive_cmds_F77=$old_archive_cmds
13610 no_undefined_flag_F77=
13611 whole_archive_flag_spec_F77=
13612 enable_shared_with_static_runtimes_F77=no
13613
13614 # Source file extension for f77 test sources.
13615 ac_ext=f
13616
13617 # Object file extension for compiled f77 test sources.
13618 objext=o
13619 objext_F77=$objext
13620
13621 # Code to be used in simple compile tests
13622 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13623
13624 # Code to be used in simple link tests
13625 lt_simple_link_test_code=" program t\n end\n"
13626
13627 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13628
13629 # If no C compiler was specified, use CC.
13630 LTCC=${LTCC-"$CC"}
13631
13632 # If no C compiler flags were specified, use CFLAGS.
13633 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13634
13635 # Allow CC to be a program name with arguments.
13636 compiler=$CC
13637
13638
13639 # save warnings/boilerplate of simple test code
13640 ac_outfile=conftest.$ac_objext
13641 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13642 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13643 _lt_compiler_boilerplate=`cat conftest.err`
13644 $rm conftest*
13645
13646 ac_outfile=conftest.$ac_objext
13647 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13648 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13649 _lt_linker_boilerplate=`cat conftest.err`
13650 $rm conftest*
13651
13652
13653 # Allow CC to be a program name with arguments.
13654 lt_save_CC="$CC"
13655 CC=${F77-"f77"}
13656 compiler=$CC
13657 compiler_F77=$CC
13658 for cc_temp in $compiler""; do
13659 case $cc_temp in
13660 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13661 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13662 \-*) ;;
13663 *) break;;
13664 esac
13665 done
13666 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13667
13668
13669 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13670 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13671 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13672 echo "${ECHO_T}$can_build_shared" >&6; }
13673
13674 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13675 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13676 test "$can_build_shared" = "no" && enable_shared=no
13677
13678 # On AIX, shared libraries and static libraries use the same namespace, and
13679 # are all built from PIC.
13680 case $host_os in
13681 aix3*)
13682 test "$enable_shared" = yes && enable_static=no
13683 if test -n "$RANLIB"; then
13684 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13685 postinstall_cmds='$RANLIB $lib'
13686 fi
13687 ;;
13688 aix4* | aix5*)
13689 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13690 test "$enable_shared" = yes && enable_static=no
13691 fi
13692 ;;
13693 esac
13694 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13695 echo "${ECHO_T}$enable_shared" >&6; }
13696
13697 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13698 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13699 # Make sure either enable_shared or enable_static is yes.
13700 test "$enable_shared" = yes || enable_static=yes
13701 { echo "$as_me:$LINENO: result: $enable_static" >&5
13702 echo "${ECHO_T}$enable_static" >&6; }
13703
13704 GCC_F77="$G77"
13705 LD_F77="$LD"
13706
13707 lt_prog_compiler_wl_F77=
13708 lt_prog_compiler_pic_F77=
13709 lt_prog_compiler_static_F77=
13710
13711 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13712 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13713
13714 if test "$GCC" = yes; then
13715 lt_prog_compiler_wl_F77='-Wl,'
13716 lt_prog_compiler_static_F77='-static'
13717
13718 case $host_os in
13719 aix*)
13720 # All AIX code is PIC.
13721 if test "$host_cpu" = ia64; then
13722 # AIX 5 now supports IA64 processor
13723 lt_prog_compiler_static_F77='-Bstatic'
13724 fi
13725 ;;
13726
13727 amigaos*)
13728 # FIXME: we need at least 68020 code to build shared libraries, but
13729 # adding the `-m68020' flag to GCC prevents building anything better,
13730 # like `-m68040'.
13731 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13732 ;;
13733
13734 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13735 # PIC is the default for these OSes.
13736 ;;
13737
13738 mingw* | pw32* | os2*)
13739 # This hack is so that the source file can tell whether it is being
13740 # built for inclusion in a dll (and should export symbols for example).
13741 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13742 ;;
13743
13744 darwin* | rhapsody*)
13745 # PIC is the default on this platform
13746 # Common symbols not allowed in MH_DYLIB files
13747 lt_prog_compiler_pic_F77='-fno-common'
13748 ;;
13749
13750 interix3*)
13751 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13752 # Instead, we relocate shared libraries at runtime.
13753 ;;
13754
13755 msdosdjgpp*)
13756 # Just because we use GCC doesn't mean we suddenly get shared libraries
13757 # on systems that don't support them.
13758 lt_prog_compiler_can_build_shared_F77=no
13759 enable_shared=no
13760 ;;
13761
13762 sysv4*MP*)
13763 if test -d /usr/nec; then
13764 lt_prog_compiler_pic_F77=-Kconform_pic
13765 fi
13766 ;;
13767
13768 hpux*)
13769 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13770 # not for PA HP-UX.
13771 case $host_cpu in
13772 hppa*64*|ia64*)
13773 # +Z the default
13774 ;;
13775 *)
13776 lt_prog_compiler_pic_F77='-fPIC'
13777 ;;
13778 esac
13779 ;;
13780
13781 *)
13782 lt_prog_compiler_pic_F77='-fPIC'
13783 ;;
13784 esac
13785 else
13786 # PORTME Check for flag to pass linker flags through the system compiler.
13787 case $host_os in
13788 aix*)
13789 lt_prog_compiler_wl_F77='-Wl,'
13790 if test "$host_cpu" = ia64; then
13791 # AIX 5 now supports IA64 processor
13792 lt_prog_compiler_static_F77='-Bstatic'
13793 else
13794 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13795 fi
13796 ;;
13797 darwin*)
13798 # PIC is the default on this platform
13799 # Common symbols not allowed in MH_DYLIB files
13800 case $cc_basename in
13801 xlc*)
13802 lt_prog_compiler_pic_F77='-qnocommon'
13803 lt_prog_compiler_wl_F77='-Wl,'
13804 ;;
13805 esac
13806 ;;
13807
13808 mingw* | pw32* | os2*)
13809 # This hack is so that the source file can tell whether it is being
13810 # built for inclusion in a dll (and should export symbols for example).
13811 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13812 ;;
13813
13814 hpux9* | hpux10* | hpux11*)
13815 lt_prog_compiler_wl_F77='-Wl,'
13816 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13817 # not for PA HP-UX.
13818 case $host_cpu in
13819 hppa*64*|ia64*)
13820 # +Z the default
13821 ;;
13822 *)
13823 lt_prog_compiler_pic_F77='+Z'
13824 ;;
13825 esac
13826 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13827 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13828 ;;
13829
13830 irix5* | irix6* | nonstopux*)
13831 lt_prog_compiler_wl_F77='-Wl,'
13832 # PIC (with -KPIC) is the default.
13833 lt_prog_compiler_static_F77='-non_shared'
13834 ;;
13835
13836 newsos6)
13837 lt_prog_compiler_pic_F77='-KPIC'
13838 lt_prog_compiler_static_F77='-Bstatic'
13839 ;;
13840
13841 linux*)
13842 case $cc_basename in
13843 icc* | ecc*)
13844 lt_prog_compiler_wl_F77='-Wl,'
13845 lt_prog_compiler_pic_F77='-KPIC'
13846 lt_prog_compiler_static_F77='-static'
13847 ;;
13848 pgcc* | pgf77* | pgf90* | pgf95*)
13849 # Portland Group compilers (*not* the Pentium gcc compiler,
13850 # which looks to be a dead project)
13851 lt_prog_compiler_wl_F77='-Wl,'
13852 lt_prog_compiler_pic_F77='-fpic'
13853 lt_prog_compiler_static_F77='-Bstatic'
13854 ;;
13855 ccc*)
13856 lt_prog_compiler_wl_F77='-Wl,'
13857 # All Alpha code is PIC.
13858 lt_prog_compiler_static_F77='-non_shared'
13859 ;;
13860 esac
13861 ;;
13862
13863 osf3* | osf4* | osf5*)
13864 lt_prog_compiler_wl_F77='-Wl,'
13865 # All OSF/1 code is PIC.
13866 lt_prog_compiler_static_F77='-non_shared'
13867 ;;
13868
13869 solaris*)
13870 lt_prog_compiler_pic_F77='-KPIC'
13871 lt_prog_compiler_static_F77='-Bstatic'
13872 case $cc_basename in
13873 f77* | f90* | f95*)
13874 lt_prog_compiler_wl_F77='-Qoption ld ';;
13875 *)
13876 lt_prog_compiler_wl_F77='-Wl,';;
13877 esac
13878 ;;
13879
13880 sunos4*)
13881 lt_prog_compiler_wl_F77='-Qoption ld '
13882 lt_prog_compiler_pic_F77='-PIC'
13883 lt_prog_compiler_static_F77='-Bstatic'
13884 ;;
13885
13886 sysv4 | sysv4.2uw2* | sysv4.3*)
13887 lt_prog_compiler_wl_F77='-Wl,'
13888 lt_prog_compiler_pic_F77='-KPIC'
13889 lt_prog_compiler_static_F77='-Bstatic'
13890 ;;
13891
13892 sysv4*MP*)
13893 if test -d /usr/nec ;then
13894 lt_prog_compiler_pic_F77='-Kconform_pic'
13895 lt_prog_compiler_static_F77='-Bstatic'
13896 fi
13897 ;;
13898
13899 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13900 lt_prog_compiler_wl_F77='-Wl,'
13901 lt_prog_compiler_pic_F77='-KPIC'
13902 lt_prog_compiler_static_F77='-Bstatic'
13903 ;;
13904
13905 unicos*)
13906 lt_prog_compiler_wl_F77='-Wl,'
13907 lt_prog_compiler_can_build_shared_F77=no
13908 ;;
13909
13910 uts4*)
13911 lt_prog_compiler_pic_F77='-pic'
13912 lt_prog_compiler_static_F77='-Bstatic'
13913 ;;
13914
13915 *)
13916 lt_prog_compiler_can_build_shared_F77=no
13917 ;;
13918 esac
13919 fi
13920
13921 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13922 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13923
13924 #
13925 # Check to make sure the PIC flag actually works.
13926 #
13927 if test -n "$lt_prog_compiler_pic_F77"; then
13928
13929 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13930 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13931 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 else
13934 lt_prog_compiler_pic_works_F77=no
13935 ac_outfile=conftest.$ac_objext
13936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13937 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13938 # Insert the option either (1) after the last *FLAGS variable, or
13939 # (2) before a word containing "conftest.", or (3) at the end.
13940 # Note that $ac_compile itself does not contain backslashes and begins
13941 # with a dollar sign (not a hyphen), so the echo should work correctly.
13942 # The option is referenced via a variable to avoid confusing sed.
13943 lt_compile=`echo "$ac_compile" | $SED \
13944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13946 -e 's:$: $lt_compiler_flag:'`
13947 (eval echo "\"\$as_me:13947: $lt_compile\"" >&5)
13948 (eval "$lt_compile" 2>conftest.err)
13949 ac_status=$?
13950 cat conftest.err >&5
13951 echo "$as_me:13951: \$? = $ac_status" >&5
13952 if (exit $ac_status) && test -s "$ac_outfile"; then
13953 # The compiler can only warn and ignore the option if not recognized
13954 # So say no if there are warnings other than the usual output.
13955 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13957 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13958 lt_prog_compiler_pic_works_F77=yes
13959 fi
13960 fi
13961 $rm conftest*
13962
13963 fi
13964 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13965 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13966
13967 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13968 case $lt_prog_compiler_pic_F77 in
13969 "" | " "*) ;;
13970 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13971 esac
13972 else
13973 lt_prog_compiler_pic_F77=
13974 lt_prog_compiler_can_build_shared_F77=no
13975 fi
13976
13977 fi
13978 case $host_os in
13979 # For platforms which do not support PIC, -DPIC is meaningless:
13980 *djgpp*)
13981 lt_prog_compiler_pic_F77=
13982 ;;
13983 *)
13984 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13985 ;;
13986 esac
13987
13988 #
13989 # Check to make sure the static flag actually works.
13990 #
13991 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13992 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13993 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13994 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 else
13997 lt_prog_compiler_static_works_F77=no
13998 save_LDFLAGS="$LDFLAGS"
13999 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14000 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14001 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14002 # The linker can only warn and ignore the option if not recognized
14003 # So say no if there are warnings
14004 if test -s conftest.err; then
14005 # Append any errors to the config.log.
14006 cat conftest.err 1>&5
14007 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14009 if diff conftest.exp conftest.er2 >/dev/null; then
14010 lt_prog_compiler_static_works_F77=yes
14011 fi
14012 else
14013 lt_prog_compiler_static_works_F77=yes
14014 fi
14015 fi
14016 $rm conftest*
14017 LDFLAGS="$save_LDFLAGS"
14018
14019 fi
14020 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14021 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14022
14023 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14024 :
14025 else
14026 lt_prog_compiler_static_F77=
14027 fi
14028
14029
14030 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14031 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14032 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035 lt_cv_prog_compiler_c_o_F77=no
14036 $rm -r conftest 2>/dev/null
14037 mkdir conftest
14038 cd conftest
14039 mkdir out
14040 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14041
14042 lt_compiler_flag="-o out/conftest2.$ac_objext"
14043 # Insert the option either (1) after the last *FLAGS variable, or
14044 # (2) before a word containing "conftest.", or (3) at the end.
14045 # Note that $ac_compile itself does not contain backslashes and begins
14046 # with a dollar sign (not a hyphen), so the echo should work correctly.
14047 lt_compile=`echo "$ac_compile" | $SED \
14048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14050 -e 's:$: $lt_compiler_flag:'`
14051 (eval echo "\"\$as_me:14051: $lt_compile\"" >&5)
14052 (eval "$lt_compile" 2>out/conftest.err)
14053 ac_status=$?
14054 cat out/conftest.err >&5
14055 echo "$as_me:14055: \$? = $ac_status" >&5
14056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14057 then
14058 # The compiler can only warn and ignore the option if not recognized
14059 # So say no if there are warnings
14060 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14061 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14062 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14063 lt_cv_prog_compiler_c_o_F77=yes
14064 fi
14065 fi
14066 chmod u+w . 2>&5
14067 $rm conftest*
14068 # SGI C++ compiler will create directory out/ii_files/ for
14069 # template instantiation
14070 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14071 $rm out/* && rmdir out
14072 cd ..
14073 rmdir conftest
14074 $rm conftest*
14075
14076 fi
14077 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14078 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14079
14080
14081 hard_links="nottested"
14082 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14083 # do not overwrite the value of need_locks provided by the user
14084 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14085 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14086 hard_links=yes
14087 $rm conftest*
14088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14089 touch conftest.a
14090 ln conftest.a conftest.b 2>&5 || hard_links=no
14091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14092 { echo "$as_me:$LINENO: result: $hard_links" >&5
14093 echo "${ECHO_T}$hard_links" >&6; }
14094 if test "$hard_links" = no; then
14095 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14096 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14097 need_locks=warn
14098 fi
14099 else
14100 need_locks=no
14101 fi
14102
14103 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14104 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14105
14106 runpath_var=
14107 allow_undefined_flag_F77=
14108 enable_shared_with_static_runtimes_F77=no
14109 archive_cmds_F77=
14110 archive_expsym_cmds_F77=
14111 old_archive_From_new_cmds_F77=
14112 old_archive_from_expsyms_cmds_F77=
14113 export_dynamic_flag_spec_F77=
14114 whole_archive_flag_spec_F77=
14115 thread_safe_flag_spec_F77=
14116 hardcode_libdir_flag_spec_F77=
14117 hardcode_libdir_flag_spec_ld_F77=
14118 hardcode_libdir_separator_F77=
14119 hardcode_direct_F77=no
14120 hardcode_minus_L_F77=no
14121 hardcode_shlibpath_var_F77=unsupported
14122 link_all_deplibs_F77=unknown
14123 hardcode_automatic_F77=no
14124 module_cmds_F77=
14125 module_expsym_cmds_F77=
14126 always_export_symbols_F77=no
14127 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14128 # include_expsyms should be a list of space-separated symbols to be *always*
14129 # included in the symbol list
14130 include_expsyms_F77=
14131 # exclude_expsyms can be an extended regexp of symbols to exclude
14132 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14133 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14134 # as well as any symbol that contains `d'.
14135 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14136 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14137 # platforms (ab)use it in PIC code, but their linkers get confused if
14138 # the symbol is explicitly referenced. Since portable code cannot
14139 # rely on this symbol name, it's probably fine to never include it in
14140 # preloaded symbol tables.
14141 extract_expsyms_cmds=
14142 # Just being paranoid about ensuring that cc_basename is set.
14143 for cc_temp in $compiler""; do
14144 case $cc_temp in
14145 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14146 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14147 \-*) ;;
14148 *) break;;
14149 esac
14150 done
14151 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14152
14153 case $host_os in
14154 cygwin* | mingw* | pw32*)
14155 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14156 # When not using gcc, we currently assume that we are using
14157 # Microsoft Visual C++.
14158 if test "$GCC" != yes; then
14159 with_gnu_ld=no
14160 fi
14161 ;;
14162 interix*)
14163 # we just hope/assume this is gcc and not c89 (= MSVC++)
14164 with_gnu_ld=yes
14165 ;;
14166 openbsd*)
14167 with_gnu_ld=no
14168 ;;
14169 esac
14170
14171 ld_shlibs_F77=yes
14172 if test "$with_gnu_ld" = yes; then
14173 # If archive_cmds runs LD, not CC, wlarc should be empty
14174 wlarc='${wl}'
14175
14176 # Set some defaults for GNU ld with shared library support. These
14177 # are reset later if shared libraries are not supported. Putting them
14178 # here allows them to be overridden if necessary.
14179 runpath_var=LD_RUN_PATH
14180 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14181 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14182 # ancient GNU ld didn't support --whole-archive et. al.
14183 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14184 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14185 else
14186 whole_archive_flag_spec_F77=
14187 fi
14188 supports_anon_versioning=no
14189 case `$LD -v 2>/dev/null` in
14190 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14191 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14192 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14193 *\ 2.11.*) ;; # other 2.11 versions
14194 *) supports_anon_versioning=yes ;;
14195 esac
14196
14197 # See if GNU ld supports shared libraries.
14198 case $host_os in
14199 aix3* | aix4* | aix5*)
14200 # On AIX/PPC, the GNU linker is very broken
14201 if test "$host_cpu" != ia64; then
14202 ld_shlibs_F77=no
14203 cat <<EOF 1>&2
14204
14205 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14206 *** to be unable to reliably create shared libraries on AIX.
14207 *** Therefore, libtool is disabling shared libraries support. If you
14208 *** really care for shared libraries, you may want to modify your PATH
14209 *** so that a non-GNU linker is found, and then restart.
14210
14211 EOF
14212 fi
14213 ;;
14214
14215 amigaos*)
14216 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)'
14217 hardcode_libdir_flag_spec_F77='-L$libdir'
14218 hardcode_minus_L_F77=yes
14219
14220 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14221 # that the semantics of dynamic libraries on AmigaOS, at least up
14222 # to version 4, is to share data among multiple programs linked
14223 # with the same dynamic library. Since this doesn't match the
14224 # behavior of shared libraries on other platforms, we can't use
14225 # them.
14226 ld_shlibs_F77=no
14227 ;;
14228
14229 beos*)
14230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14231 allow_undefined_flag_F77=unsupported
14232 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14233 # support --undefined. This deserves some investigation. FIXME
14234 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14235 else
14236 ld_shlibs_F77=no
14237 fi
14238 ;;
14239
14240 cygwin* | mingw* | pw32*)
14241 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14242 # as there is no search path for DLLs.
14243 hardcode_libdir_flag_spec_F77='-L$libdir'
14244 allow_undefined_flag_F77=unsupported
14245 always_export_symbols_F77=no
14246 enable_shared_with_static_runtimes_F77=yes
14247 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14248
14249 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14250 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14251 # If the export-symbols file already is a .def file (1st line
14252 # is EXPORTS), use it as is; otherwise, prepend...
14253 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14254 cp $export_symbols $output_objdir/$soname.def;
14255 else
14256 echo EXPORTS > $output_objdir/$soname.def;
14257 cat $export_symbols >> $output_objdir/$soname.def;
14258 fi~
14259 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14260 else
14261 ld_shlibs_F77=no
14262 fi
14263 ;;
14264
14265 interix3*)
14266 hardcode_direct_F77=no
14267 hardcode_shlibpath_var_F77=no
14268 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14269 export_dynamic_flag_spec_F77='${wl}-E'
14270 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14271 # Instead, shared libraries are loaded at an image base (0x10000000 by
14272 # default) and relocated if they conflict, which is a slow very memory
14273 # consuming and fragmenting process. To avoid this, we pick a random,
14274 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14275 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14276 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'
14277 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'
14278 ;;
14279
14280 linux*)
14281 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14282 tmp_addflag=
14283 case $cc_basename,$host_cpu in
14284 pgcc*) # Portland Group C compiler
14285 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'
14286 tmp_addflag=' $pic_flag'
14287 ;;
14288 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14289 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'
14290 tmp_addflag=' $pic_flag -Mnomain' ;;
14291 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14292 tmp_addflag=' -i_dynamic' ;;
14293 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14294 tmp_addflag=' -i_dynamic -nofor_main' ;;
14295 ifc* | ifort*) # Intel Fortran compiler
14296 tmp_addflag=' -nofor_main' ;;
14297 esac
14298 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14299
14300 if test $supports_anon_versioning = yes; then
14301 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14303 $echo "local: *; };" >> $output_objdir/$libname.ver~
14304 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14305 fi
14306 else
14307 ld_shlibs_F77=no
14308 fi
14309 ;;
14310
14311 netbsd*)
14312 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14313 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14314 wlarc=
14315 else
14316 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14317 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14318 fi
14319 ;;
14320
14321 solaris*)
14322 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14323 ld_shlibs_F77=no
14324 cat <<EOF 1>&2
14325
14326 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14327 *** create shared libraries on Solaris systems. Therefore, libtool
14328 *** is disabling shared libraries support. We urge you to upgrade GNU
14329 *** binutils to release 2.9.1 or newer. Another option is to modify
14330 *** your PATH or compiler configuration so that the native linker is
14331 *** used, and then restart.
14332
14333 EOF
14334 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14335 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14336 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14337 else
14338 ld_shlibs_F77=no
14339 fi
14340 ;;
14341
14342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14343 case `$LD -v 2>&1` in
14344 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14345 ld_shlibs_F77=no
14346 cat <<_LT_EOF 1>&2
14347
14348 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14349 *** reliably create shared libraries on SCO systems. Therefore, libtool
14350 *** is disabling shared libraries support. We urge you to upgrade GNU
14351 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14352 *** your PATH or compiler configuration so that the native linker is
14353 *** used, and then restart.
14354
14355 _LT_EOF
14356 ;;
14357 *)
14358 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14359 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14360 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14361 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14362 else
14363 ld_shlibs_F77=no
14364 fi
14365 ;;
14366 esac
14367 ;;
14368
14369 sunos4*)
14370 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14371 wlarc=
14372 hardcode_direct_F77=yes
14373 hardcode_shlibpath_var_F77=no
14374 ;;
14375
14376 *)
14377 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14378 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14379 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14380 else
14381 ld_shlibs_F77=no
14382 fi
14383 ;;
14384 esac
14385
14386 if test "$ld_shlibs_F77" = no; then
14387 runpath_var=
14388 hardcode_libdir_flag_spec_F77=
14389 export_dynamic_flag_spec_F77=
14390 whole_archive_flag_spec_F77=
14391 fi
14392 else
14393 # PORTME fill in a description of your system's linker (not GNU ld)
14394 case $host_os in
14395 aix3*)
14396 allow_undefined_flag_F77=unsupported
14397 always_export_symbols_F77=yes
14398 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'
14399 # Note: this linker hardcodes the directories in LIBPATH if there
14400 # are no directories specified by -L.
14401 hardcode_minus_L_F77=yes
14402 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14403 # Neither direct hardcoding nor static linking is supported with a
14404 # broken collect2.
14405 hardcode_direct_F77=unsupported
14406 fi
14407 ;;
14408
14409 aix4* | aix5*)
14410 if test "$host_cpu" = ia64; then
14411 # On IA64, the linker does run time linking by default, so we don't
14412 # have to do anything special.
14413 aix_use_runtimelinking=no
14414 exp_sym_flag='-Bexport'
14415 no_entry_flag=""
14416 else
14417 # If we're using GNU nm, then we don't want the "-C" option.
14418 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14419 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14420 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'
14421 else
14422 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'
14423 fi
14424 aix_use_runtimelinking=no
14425
14426 # Test if we are trying to use run time linking or normal
14427 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14428 # need to do runtime linking.
14429 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14430 for ld_flag in $LDFLAGS; do
14431 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14432 aix_use_runtimelinking=yes
14433 break
14434 fi
14435 done
14436 ;;
14437 esac
14438
14439 exp_sym_flag='-bexport'
14440 no_entry_flag='-bnoentry'
14441 fi
14442
14443 # When large executables or shared objects are built, AIX ld can
14444 # have problems creating the table of contents. If linking a library
14445 # or program results in "error TOC overflow" add -mminimal-toc to
14446 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14447 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14448
14449 archive_cmds_F77=''
14450 hardcode_direct_F77=yes
14451 hardcode_libdir_separator_F77=':'
14452 link_all_deplibs_F77=yes
14453
14454 if test "$GCC" = yes; then
14455 case $host_os in aix4.[012]|aix4.[012].*)
14456 # We only want to do this on AIX 4.2 and lower, the check
14457 # below for broken collect2 doesn't work under 4.3+
14458 collect2name=`${CC} -print-prog-name=collect2`
14459 if test -f "$collect2name" && \
14460 strings "$collect2name" | grep resolve_lib_name >/dev/null
14461 then
14462 # We have reworked collect2
14463 hardcode_direct_F77=yes
14464 else
14465 # We have old collect2
14466 hardcode_direct_F77=unsupported
14467 # It fails to find uninstalled libraries when the uninstalled
14468 # path is not listed in the libpath. Setting hardcode_minus_L
14469 # to unsupported forces relinking
14470 hardcode_minus_L_F77=yes
14471 hardcode_libdir_flag_spec_F77='-L$libdir'
14472 hardcode_libdir_separator_F77=
14473 fi
14474 ;;
14475 esac
14476 shared_flag='-shared'
14477 if test "$aix_use_runtimelinking" = yes; then
14478 shared_flag="$shared_flag "'${wl}-G'
14479 fi
14480 else
14481 # not using gcc
14482 if test "$host_cpu" = ia64; then
14483 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14484 # chokes on -Wl,-G. The following line is correct:
14485 shared_flag='-G'
14486 else
14487 if test "$aix_use_runtimelinking" = yes; then
14488 shared_flag='${wl}-G'
14489 else
14490 shared_flag='${wl}-bM:SRE'
14491 fi
14492 fi
14493 fi
14494
14495 # It seems that -bexpall does not export symbols beginning with
14496 # underscore (_), so it is better to generate a list of symbols to export.
14497 always_export_symbols_F77=yes
14498 if test "$aix_use_runtimelinking" = yes; then
14499 # Warning - without using the other runtime loading flags (-brtl),
14500 # -berok will link without error, but may produce a broken library.
14501 allow_undefined_flag_F77='-berok'
14502 # Determine the default libpath from the value encoded in an empty executable.
14503 cat >conftest.$ac_ext <<_ACEOF
14504 program main
14505
14506 end
14507 _ACEOF
14508 rm -f conftest.$ac_objext conftest$ac_exeext
14509 if { (ac_try="$ac_link"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513 esac
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_link") 2>conftest.er1
14516 ac_status=$?
14517 grep -v '^ *+' conftest.er1 >conftest.err
14518 rm -f conftest.er1
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } && {
14522 test -z "$ac_f77_werror_flag" ||
14523 test ! -s conftest.err
14524 } && test -s conftest$ac_exeext &&
14525 $as_test_x conftest$ac_exeext; then
14526
14527 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14528 }'`
14529 # Check for a 64-bit object if we didn't find anything.
14530 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; }
14531 }'`; fi
14532 else
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14535
14536
14537 fi
14538
14539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14540 conftest$ac_exeext conftest.$ac_ext
14541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14542
14543 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14544 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"
14545 else
14546 if test "$host_cpu" = ia64; then
14547 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14548 allow_undefined_flag_F77="-z nodefs"
14549 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"
14550 else
14551 # Determine the default libpath from the value encoded in an empty executable.
14552 cat >conftest.$ac_ext <<_ACEOF
14553 program main
14554
14555 end
14556 _ACEOF
14557 rm -f conftest.$ac_objext conftest$ac_exeext
14558 if { (ac_try="$ac_link"
14559 case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14562 esac
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_link") 2>conftest.er1
14565 ac_status=$?
14566 grep -v '^ *+' conftest.er1 >conftest.err
14567 rm -f conftest.er1
14568 cat conftest.err >&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } && {
14571 test -z "$ac_f77_werror_flag" ||
14572 test ! -s conftest.err
14573 } && test -s conftest$ac_exeext &&
14574 $as_test_x conftest$ac_exeext; then
14575
14576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14577 }'`
14578 # Check for a 64-bit object if we didn't find anything.
14579 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; }
14580 }'`; fi
14581 else
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14584
14585
14586 fi
14587
14588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14589 conftest$ac_exeext conftest.$ac_ext
14590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14591
14592 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14593 # Warning - without using the other run time loading flags,
14594 # -berok will link without error, but may produce a broken library.
14595 no_undefined_flag_F77=' ${wl}-bernotok'
14596 allow_undefined_flag_F77=' ${wl}-berok'
14597 # Exported symbols can be pulled into shared objects from archives
14598 whole_archive_flag_spec_F77='$convenience'
14599 archive_cmds_need_lc_F77=yes
14600 # This is similar to how AIX traditionally builds its shared libraries.
14601 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'
14602 fi
14603 fi
14604 ;;
14605
14606 amigaos*)
14607 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)'
14608 hardcode_libdir_flag_spec_F77='-L$libdir'
14609 hardcode_minus_L_F77=yes
14610 # see comment about different semantics on the GNU ld section
14611 ld_shlibs_F77=no
14612 ;;
14613
14614 bsdi[45]*)
14615 export_dynamic_flag_spec_F77=-rdynamic
14616 ;;
14617
14618 cygwin* | mingw* | pw32*)
14619 # When not using gcc, we currently assume that we are using
14620 # Microsoft Visual C++.
14621 # hardcode_libdir_flag_spec is actually meaningless, as there is
14622 # no search path for DLLs.
14623 hardcode_libdir_flag_spec_F77=' '
14624 allow_undefined_flag_F77=unsupported
14625 # Tell ltmain to make .lib files, not .a files.
14626 libext=lib
14627 # Tell ltmain to make .dll files, not .so files.
14628 shrext_cmds=".dll"
14629 # FIXME: Setting linknames here is a bad hack.
14630 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14631 # The linker will automatically build a .lib file if we build a DLL.
14632 old_archive_From_new_cmds_F77='true'
14633 # FIXME: Should let the user specify the lib program.
14634 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14635 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14636 enable_shared_with_static_runtimes_F77=yes
14637 ;;
14638
14639 darwin* | rhapsody*)
14640 case $host_os in
14641 rhapsody* | darwin1.[012])
14642 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14643 ;;
14644 *) # Darwin 1.3 on
14645 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14646 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14647 else
14648 case ${MACOSX_DEPLOYMENT_TARGET} in
14649 10.[012])
14650 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14651 ;;
14652 10.*)
14653 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14654 ;;
14655 esac
14656 fi
14657 ;;
14658 esac
14659 archive_cmds_need_lc_F77=no
14660 hardcode_direct_F77=no
14661 hardcode_automatic_F77=yes
14662 hardcode_shlibpath_var_F77=unsupported
14663 whole_archive_flag_spec_F77=''
14664 link_all_deplibs_F77=yes
14665 if test "$GCC" = yes ; then
14666 output_verbose_link_cmd='echo'
14667 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14668 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14669 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14670 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}'
14671 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}'
14672 else
14673 case $cc_basename in
14674 xlc*)
14675 output_verbose_link_cmd='echo'
14676 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14677 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14678 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14679 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}'
14680 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}'
14681 ;;
14682 *)
14683 ld_shlibs_F77=no
14684 ;;
14685 esac
14686 fi
14687 ;;
14688
14689 dgux*)
14690 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14691 hardcode_libdir_flag_spec_F77='-L$libdir'
14692 hardcode_shlibpath_var_F77=no
14693 ;;
14694
14695 freebsd1*)
14696 ld_shlibs_F77=no
14697 ;;
14698
14699 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14700 # support. Future versions do this automatically, but an explicit c++rt0.o
14701 # does not break anything, and helps significantly (at the cost of a little
14702 # extra space).
14703 freebsd2.2*)
14704 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14705 hardcode_libdir_flag_spec_F77='-R$libdir'
14706 hardcode_direct_F77=yes
14707 hardcode_shlibpath_var_F77=no
14708 ;;
14709
14710 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14711 freebsd2*)
14712 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14713 hardcode_direct_F77=yes
14714 hardcode_minus_L_F77=yes
14715 hardcode_shlibpath_var_F77=no
14716 ;;
14717
14718 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14719 freebsd* | kfreebsd*-gnu | dragonfly*)
14720 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14721 hardcode_libdir_flag_spec_F77='-R$libdir'
14722 hardcode_direct_F77=yes
14723 hardcode_shlibpath_var_F77=no
14724 ;;
14725
14726 hpux9*)
14727 if test "$GCC" = yes; then
14728 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'
14729 else
14730 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'
14731 fi
14732 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14733 hardcode_libdir_separator_F77=:
14734 hardcode_direct_F77=yes
14735
14736 # hardcode_minus_L: Not really in the search PATH,
14737 # but as the default location of the library.
14738 hardcode_minus_L_F77=yes
14739 export_dynamic_flag_spec_F77='${wl}-E'
14740 ;;
14741
14742 hpux10*)
14743 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14744 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14745 else
14746 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14747 fi
14748 if test "$with_gnu_ld" = no; then
14749 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14750 hardcode_libdir_separator_F77=:
14751
14752 hardcode_direct_F77=yes
14753 export_dynamic_flag_spec_F77='${wl}-E'
14754
14755 # hardcode_minus_L: Not really in the search PATH,
14756 # but as the default location of the library.
14757 hardcode_minus_L_F77=yes
14758 fi
14759 ;;
14760
14761 hpux11*)
14762 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14763 case $host_cpu in
14764 hppa*64*)
14765 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14766 ;;
14767 ia64*)
14768 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14769 ;;
14770 *)
14771 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14772 ;;
14773 esac
14774 else
14775 case $host_cpu in
14776 hppa*64*)
14777 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14778 ;;
14779 ia64*)
14780 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14781 ;;
14782 *)
14783 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14784 ;;
14785 esac
14786 fi
14787 if test "$with_gnu_ld" = no; then
14788 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14789 hardcode_libdir_separator_F77=:
14790
14791 case $host_cpu in
14792 hppa*64*|ia64*)
14793 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14794 hardcode_direct_F77=no
14795 hardcode_shlibpath_var_F77=no
14796 ;;
14797 *)
14798 hardcode_direct_F77=yes
14799 export_dynamic_flag_spec_F77='${wl}-E'
14800
14801 # hardcode_minus_L: Not really in the search PATH,
14802 # but as the default location of the library.
14803 hardcode_minus_L_F77=yes
14804 ;;
14805 esac
14806 fi
14807 ;;
14808
14809 irix5* | irix6* | nonstopux*)
14810 if test "$GCC" = yes; then
14811 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'
14812 else
14813 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'
14814 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14815 fi
14816 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14817 hardcode_libdir_separator_F77=:
14818 link_all_deplibs_F77=yes
14819 ;;
14820
14821 netbsd*)
14822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14823 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14824 else
14825 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14826 fi
14827 hardcode_libdir_flag_spec_F77='-R$libdir'
14828 hardcode_direct_F77=yes
14829 hardcode_shlibpath_var_F77=no
14830 ;;
14831
14832 newsos6)
14833 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14834 hardcode_direct_F77=yes
14835 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14836 hardcode_libdir_separator_F77=:
14837 hardcode_shlibpath_var_F77=no
14838 ;;
14839
14840 openbsd*)
14841 hardcode_direct_F77=yes
14842 hardcode_shlibpath_var_F77=no
14843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14844 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14845 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14846 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14847 export_dynamic_flag_spec_F77='${wl}-E'
14848 else
14849 case $host_os in
14850 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14851 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14852 hardcode_libdir_flag_spec_F77='-R$libdir'
14853 ;;
14854 *)
14855 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14856 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14857 ;;
14858 esac
14859 fi
14860 ;;
14861
14862 os2*)
14863 hardcode_libdir_flag_spec_F77='-L$libdir'
14864 hardcode_minus_L_F77=yes
14865 allow_undefined_flag_F77=unsupported
14866 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'
14867 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14868 ;;
14869
14870 osf3*)
14871 if test "$GCC" = yes; then
14872 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14873 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'
14874 else
14875 allow_undefined_flag_F77=' -expect_unresolved \*'
14876 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'
14877 fi
14878 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14879 hardcode_libdir_separator_F77=:
14880 ;;
14881
14882 osf4* | osf5*) # as osf3* with the addition of -msym flag
14883 if test "$GCC" = yes; then
14884 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14885 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'
14886 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14887 else
14888 allow_undefined_flag_F77=' -expect_unresolved \*'
14889 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'
14890 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~
14891 $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'
14892
14893 # Both c and cxx compiler support -rpath directly
14894 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14895 fi
14896 hardcode_libdir_separator_F77=:
14897 ;;
14898
14899 solaris*)
14900 no_undefined_flag_F77=' -z text'
14901 if test "$GCC" = yes; then
14902 wlarc='${wl}'
14903 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14904 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14905 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14906 else
14907 wlarc=''
14908 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14909 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14910 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14911 fi
14912 hardcode_libdir_flag_spec_F77='-R$libdir'
14913 hardcode_shlibpath_var_F77=no
14914 case $host_os in
14915 solaris2.[0-5] | solaris2.[0-5].*) ;;
14916 *)
14917 # The compiler driver will combine linker options so we
14918 # cannot just pass the convience library names through
14919 # without $wl, iff we do not link with $LD.
14920 # Luckily, gcc supports the same syntax we need for Sun Studio.
14921 # Supported since Solaris 2.6 (maybe 2.5.1?)
14922 case $wlarc in
14923 '')
14924 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14925 *)
14926 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' ;;
14927 esac ;;
14928 esac
14929 link_all_deplibs_F77=yes
14930 ;;
14931
14932 sunos4*)
14933 if test "x$host_vendor" = xsequent; then
14934 # Use $CC to link under sequent, because it throws in some extra .o
14935 # files that make .init and .fini sections work.
14936 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14937 else
14938 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14939 fi
14940 hardcode_libdir_flag_spec_F77='-L$libdir'
14941 hardcode_direct_F77=yes
14942 hardcode_minus_L_F77=yes
14943 hardcode_shlibpath_var_F77=no
14944 ;;
14945
14946 sysv4)
14947 case $host_vendor in
14948 sni)
14949 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14950 hardcode_direct_F77=yes # is this really true???
14951 ;;
14952 siemens)
14953 ## LD is ld it makes a PLAMLIB
14954 ## CC just makes a GrossModule.
14955 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14956 reload_cmds_F77='$CC -r -o $output$reload_objs'
14957 hardcode_direct_F77=no
14958 ;;
14959 motorola)
14960 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14961 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14962 ;;
14963 esac
14964 runpath_var='LD_RUN_PATH'
14965 hardcode_shlibpath_var_F77=no
14966 ;;
14967
14968 sysv4.3*)
14969 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14970 hardcode_shlibpath_var_F77=no
14971 export_dynamic_flag_spec_F77='-Bexport'
14972 ;;
14973
14974 sysv4*MP*)
14975 if test -d /usr/nec; then
14976 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14977 hardcode_shlibpath_var_F77=no
14978 runpath_var=LD_RUN_PATH
14979 hardcode_runpath_var=yes
14980 ld_shlibs_F77=yes
14981 fi
14982 ;;
14983
14984 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14985 no_undefined_flag_F77='${wl}-z,text'
14986 archive_cmds_need_lc_F77=no
14987 hardcode_shlibpath_var_F77=no
14988 runpath_var='LD_RUN_PATH'
14989
14990 if test "$GCC" = yes; then
14991 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993 else
14994 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14995 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14996 fi
14997 ;;
14998
14999 sysv5* | sco3.2v5* | sco5v6*)
15000 # Note: We can NOT use -z defs as we might desire, because we do not
15001 # link with -lc, and that would cause any symbols used from libc to
15002 # always be unresolved, which means just about no library would
15003 # ever link correctly. If we're not using GNU ld we use -z text
15004 # though, which does catch some bad symbols but isn't as heavy-handed
15005 # as -z defs.
15006 no_undefined_flag_F77='${wl}-z,text'
15007 allow_undefined_flag_F77='${wl}-z,nodefs'
15008 archive_cmds_need_lc_F77=no
15009 hardcode_shlibpath_var_F77=no
15010 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15011 hardcode_libdir_separator_F77=':'
15012 link_all_deplibs_F77=yes
15013 export_dynamic_flag_spec_F77='${wl}-Bexport'
15014 runpath_var='LD_RUN_PATH'
15015
15016 if test "$GCC" = yes; then
15017 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15018 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15019 else
15020 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15021 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15022 fi
15023 ;;
15024
15025 uts4*)
15026 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15027 hardcode_libdir_flag_spec_F77='-L$libdir'
15028 hardcode_shlibpath_var_F77=no
15029 ;;
15030
15031 *)
15032 ld_shlibs_F77=no
15033 ;;
15034 esac
15035 fi
15036
15037 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15038 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15039 test "$ld_shlibs_F77" = no && can_build_shared=no
15040
15041 #
15042 # Do we need to explicitly link libc?
15043 #
15044 case "x$archive_cmds_need_lc_F77" in
15045 x|xyes)
15046 # Assume -lc should be added
15047 archive_cmds_need_lc_F77=yes
15048
15049 if test "$enable_shared" = yes && test "$GCC" = yes; then
15050 case $archive_cmds_F77 in
15051 *'~'*)
15052 # FIXME: we may have to deal with multi-command sequences.
15053 ;;
15054 '$CC '*)
15055 # Test whether the compiler implicitly links with -lc since on some
15056 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15057 # to ld, don't add -lc before -lgcc.
15058 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15059 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15060 $rm conftest*
15061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15062
15063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15064 (eval $ac_compile) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } 2>conftest.err; then
15068 soname=conftest
15069 lib=conftest
15070 libobjs=conftest.$ac_objext
15071 deplibs=
15072 wl=$lt_prog_compiler_wl_F77
15073 pic_flag=$lt_prog_compiler_pic_F77
15074 compiler_flags=-v
15075 linker_flags=-v
15076 verstring=
15077 output_objdir=.
15078 libname=conftest
15079 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15080 allow_undefined_flag_F77=
15081 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15082 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }
15086 then
15087 archive_cmds_need_lc_F77=no
15088 else
15089 archive_cmds_need_lc_F77=yes
15090 fi
15091 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15092 else
15093 cat conftest.err 1>&5
15094 fi
15095 $rm conftest*
15096 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15097 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15098 ;;
15099 esac
15100 fi
15101 ;;
15102 esac
15103
15104 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15105 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15106 library_names_spec=
15107 libname_spec='lib$name'
15108 soname_spec=
15109 shrext_cmds=".so"
15110 postinstall_cmds=
15111 postuninstall_cmds=
15112 finish_cmds=
15113 finish_eval=
15114 shlibpath_var=
15115 shlibpath_overrides_runpath=unknown
15116 version_type=none
15117 dynamic_linker="$host_os ld.so"
15118 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15119 if test "$GCC" = yes; then
15120 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15121 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15122 # if the path contains ";" then we assume it to be the separator
15123 # otherwise default to the standard path separator (i.e. ":") - it is
15124 # assumed that no part of a normal pathname contains ";" but that should
15125 # okay in the real world where ";" in dirpaths is itself problematic.
15126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15127 else
15128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15129 fi
15130 else
15131 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15132 fi
15133 need_lib_prefix=unknown
15134 hardcode_into_libs=no
15135
15136 # when you set need_version to no, make sure it does not cause -set_version
15137 # flags to be left without arguments
15138 need_version=unknown
15139
15140 case $host_os in
15141 aix3*)
15142 version_type=linux
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15144 shlibpath_var=LIBPATH
15145
15146 # AIX 3 has no versioning support, so we append a major version to the name.
15147 soname_spec='${libname}${release}${shared_ext}$major'
15148 ;;
15149
15150 aix4* | aix5*)
15151 version_type=linux
15152 need_lib_prefix=no
15153 need_version=no
15154 hardcode_into_libs=yes
15155 if test "$host_cpu" = ia64; then
15156 # AIX 5 supports IA64
15157 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15158 shlibpath_var=LD_LIBRARY_PATH
15159 else
15160 # With GCC up to 2.95.x, collect2 would create an import file
15161 # for dependence libraries. The import file would start with
15162 # the line `#! .'. This would cause the generated library to
15163 # depend on `.', always an invalid library. This was fixed in
15164 # development snapshots of GCC prior to 3.0.
15165 case $host_os in
15166 aix4 | aix4.[01] | aix4.[01].*)
15167 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15168 echo ' yes '
15169 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15170 :
15171 else
15172 can_build_shared=no
15173 fi
15174 ;;
15175 esac
15176 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15177 # soname into executable. Probably we can add versioning support to
15178 # collect2, so additional links can be useful in future.
15179 if test "$aix_use_runtimelinking" = yes; then
15180 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15181 # instead of lib<name>.a to let people know that these are not
15182 # typical AIX shared libraries.
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184 else
15185 # We preserve .a as extension for shared libraries through AIX4.2
15186 # and later when we are not doing run time linking.
15187 library_names_spec='${libname}${release}.a $libname.a'
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 fi
15190 shlibpath_var=LIBPATH
15191 fi
15192 ;;
15193
15194 amigaos*)
15195 library_names_spec='$libname.ixlibrary $libname.a'
15196 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15197 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'
15198 ;;
15199
15200 beos*)
15201 library_names_spec='${libname}${shared_ext}'
15202 dynamic_linker="$host_os ld.so"
15203 shlibpath_var=LIBRARY_PATH
15204 ;;
15205
15206 bsdi[45]*)
15207 version_type=linux
15208 need_version=no
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15210 soname_spec='${libname}${release}${shared_ext}$major'
15211 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15214 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15215 # the default ld.so.conf also contains /usr/contrib/lib and
15216 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15217 # libtool to hard-code these into programs
15218 ;;
15219
15220 cygwin* | mingw* | pw32*)
15221 version_type=windows
15222 shrext_cmds=".dll"
15223 need_version=no
15224 need_lib_prefix=no
15225
15226 case $GCC,$host_os in
15227 yes,cygwin* | yes,mingw* | yes,pw32*)
15228 library_names_spec='$libname.dll.a'
15229 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15230 postinstall_cmds='base_file=`basename \${file}`~
15231 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15232 dldir=$destdir/`dirname \$dlpath`~
15233 test -d \$dldir || mkdir -p \$dldir~
15234 $install_prog $dir/$dlname \$dldir/$dlname~
15235 chmod a+x \$dldir/$dlname'
15236 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15237 dlpath=$dir/\$dldll~
15238 $rm \$dlpath'
15239 shlibpath_overrides_runpath=yes
15240
15241 case $host_os in
15242 cygwin*)
15243 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15244 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15245 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15246 ;;
15247 mingw*)
15248 # MinGW DLLs use traditional 'lib' prefix
15249 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15250 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15251 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15252 # It is most probably a Windows format PATH printed by
15253 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15254 # path with ; separators, and with drive letters. We can handle the
15255 # drive letters (cygwin fileutils understands them), so leave them,
15256 # especially as we might pass files found there to a mingw objdump,
15257 # which wouldn't understand a cygwinified path. Ahh.
15258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15259 else
15260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15261 fi
15262 ;;
15263 pw32*)
15264 # pw32 DLLs use 'pw' prefix rather than 'lib'
15265 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15266 ;;
15267 esac
15268 ;;
15269
15270 *)
15271 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15272 ;;
15273 esac
15274 dynamic_linker='Win32 ld.exe'
15275 # FIXME: first we should search . and the directory the executable is in
15276 shlibpath_var=PATH
15277 ;;
15278
15279 darwin* | rhapsody*)
15280 dynamic_linker="$host_os dyld"
15281 version_type=darwin
15282 need_lib_prefix=no
15283 need_version=no
15284 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15285 soname_spec='${libname}${release}${major}$shared_ext'
15286 shlibpath_overrides_runpath=yes
15287 shlibpath_var=DYLD_LIBRARY_PATH
15288 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15289 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15290 if test "$GCC" = yes; then
15291 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"`
15292 else
15293 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15294 fi
15295 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15296 ;;
15297
15298 dgux*)
15299 version_type=linux
15300 need_lib_prefix=no
15301 need_version=no
15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15303 soname_spec='${libname}${release}${shared_ext}$major'
15304 shlibpath_var=LD_LIBRARY_PATH
15305 ;;
15306
15307 freebsd1*)
15308 dynamic_linker=no
15309 ;;
15310
15311 kfreebsd*-gnu)
15312 version_type=linux
15313 need_lib_prefix=no
15314 need_version=no
15315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15316 soname_spec='${libname}${release}${shared_ext}$major'
15317 shlibpath_var=LD_LIBRARY_PATH
15318 shlibpath_overrides_runpath=no
15319 hardcode_into_libs=yes
15320 dynamic_linker='GNU ld.so'
15321 ;;
15322
15323 freebsd* | dragonfly*)
15324 # DragonFly does not have aout. When/if they implement a new
15325 # versioning mechanism, adjust this.
15326 if test -x /usr/bin/objformat; then
15327 objformat=`/usr/bin/objformat`
15328 else
15329 case $host_os in
15330 freebsd[123]*) objformat=aout ;;
15331 *) objformat=elf ;;
15332 esac
15333 fi
15334 version_type=freebsd-$objformat
15335 case $version_type in
15336 freebsd-elf*)
15337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15338 need_version=no
15339 need_lib_prefix=no
15340 ;;
15341 freebsd-*)
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15343 need_version=yes
15344 ;;
15345 esac
15346 shlibpath_var=LD_LIBRARY_PATH
15347 case $host_os in
15348 freebsd2*)
15349 shlibpath_overrides_runpath=yes
15350 ;;
15351 freebsd3.[01]* | freebsdelf3.[01]*)
15352 shlibpath_overrides_runpath=yes
15353 hardcode_into_libs=yes
15354 ;;
15355 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15356 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15357 shlibpath_overrides_runpath=no
15358 hardcode_into_libs=yes
15359 ;;
15360 freebsd*) # from 4.6 on
15361 shlibpath_overrides_runpath=yes
15362 hardcode_into_libs=yes
15363 ;;
15364 esac
15365 ;;
15366
15367 gnu*)
15368 version_type=linux
15369 need_lib_prefix=no
15370 need_version=no
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15372 soname_spec='${libname}${release}${shared_ext}$major'
15373 shlibpath_var=LD_LIBRARY_PATH
15374 hardcode_into_libs=yes
15375 ;;
15376
15377 hpux9* | hpux10* | hpux11*)
15378 # Give a soname corresponding to the major version so that dld.sl refuses to
15379 # link against other versions.
15380 version_type=sunos
15381 need_lib_prefix=no
15382 need_version=no
15383 case $host_cpu in
15384 ia64*)
15385 shrext_cmds='.so'
15386 hardcode_into_libs=yes
15387 dynamic_linker="$host_os dld.so"
15388 shlibpath_var=LD_LIBRARY_PATH
15389 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391 soname_spec='${libname}${release}${shared_ext}$major'
15392 if test "X$HPUX_IA64_MODE" = X32; then
15393 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15394 else
15395 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15396 fi
15397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15398 ;;
15399 hppa*64*)
15400 shrext_cmds='.sl'
15401 hardcode_into_libs=yes
15402 dynamic_linker="$host_os dld.sl"
15403 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15406 soname_spec='${libname}${release}${shared_ext}$major'
15407 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15409 ;;
15410 *)
15411 shrext_cmds='.sl'
15412 dynamic_linker="$host_os dld.sl"
15413 shlibpath_var=SHLIB_PATH
15414 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 ;;
15418 esac
15419 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15420 postinstall_cmds='chmod 555 $lib'
15421 ;;
15422
15423 interix3*)
15424 version_type=linux
15425 need_lib_prefix=no
15426 need_version=no
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15430 shlibpath_var=LD_LIBRARY_PATH
15431 shlibpath_overrides_runpath=no
15432 hardcode_into_libs=yes
15433 ;;
15434
15435 irix5* | irix6* | nonstopux*)
15436 case $host_os in
15437 nonstopux*) version_type=nonstopux ;;
15438 *)
15439 if test "$lt_cv_prog_gnu_ld" = yes; then
15440 version_type=linux
15441 else
15442 version_type=irix
15443 fi ;;
15444 esac
15445 need_lib_prefix=no
15446 need_version=no
15447 soname_spec='${libname}${release}${shared_ext}$major'
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15449 case $host_os in
15450 irix5* | nonstopux*)
15451 libsuff= shlibsuff=
15452 ;;
15453 *)
15454 case $LD in # libtool.m4 will add one of these switches to LD
15455 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15456 libsuff= shlibsuff= libmagic=32-bit;;
15457 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15458 libsuff=32 shlibsuff=N32 libmagic=N32;;
15459 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15460 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15461 *) libsuff= shlibsuff= libmagic=never-match;;
15462 esac
15463 ;;
15464 esac
15465 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15466 shlibpath_overrides_runpath=no
15467 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15468 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15469 hardcode_into_libs=yes
15470 ;;
15471
15472 # No shared lib support for Linux oldld, aout, or coff.
15473 linux*oldld* | linux*aout* | linux*coff*)
15474 dynamic_linker=no
15475 ;;
15476
15477 # This must be Linux ELF.
15478 linux*)
15479 version_type=linux
15480 need_lib_prefix=no
15481 need_version=no
15482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15483 soname_spec='${libname}${release}${shared_ext}$major'
15484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 shlibpath_overrides_runpath=no
15487 # This implies no fast_install, which is unacceptable.
15488 # Some rework will be needed to allow for fast_install
15489 # before this can be enabled.
15490 hardcode_into_libs=yes
15491
15492 # find out which ABI we are using
15493 libsuff=
15494 case "$host_cpu" in
15495 x86_64*|s390x*|powerpc64*)
15496 echo '#line 15496 "configure"' > conftest.$ac_ext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15498 (eval $ac_compile) 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; then
15502 case `/usr/bin/file conftest.$ac_objext` in
15503 *64-bit*)
15504 libsuff=64
15505 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15506 ;;
15507 esac
15508 fi
15509 rm -rf conftest*
15510 ;;
15511 esac
15512
15513 # Append ld.so.conf contents to the search path
15514 if test -f /etc/ld.so.conf; then
15515 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' ' '`
15516 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15517 fi
15518
15519 # We used to test for /lib/ld.so.1 and disable shared libraries on
15520 # powerpc, because MkLinux only supported shared libraries with the
15521 # GNU dynamic linker. Since this was broken with cross compilers,
15522 # most powerpc-linux boxes support dynamic linking these days and
15523 # people can always --disable-shared, the test was removed, and we
15524 # assume the GNU/Linux dynamic linker is in use.
15525 dynamic_linker='GNU/Linux ld.so'
15526 ;;
15527
15528 knetbsd*-gnu)
15529 version_type=linux
15530 need_lib_prefix=no
15531 need_version=no
15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15533 soname_spec='${libname}${release}${shared_ext}$major'
15534 shlibpath_var=LD_LIBRARY_PATH
15535 shlibpath_overrides_runpath=no
15536 hardcode_into_libs=yes
15537 dynamic_linker='GNU ld.so'
15538 ;;
15539
15540 netbsd*)
15541 version_type=sunos
15542 need_lib_prefix=no
15543 need_version=no
15544 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15547 dynamic_linker='NetBSD (a.out) ld.so'
15548 else
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15550 soname_spec='${libname}${release}${shared_ext}$major'
15551 dynamic_linker='NetBSD ld.elf_so'
15552 fi
15553 shlibpath_var=LD_LIBRARY_PATH
15554 shlibpath_overrides_runpath=yes
15555 hardcode_into_libs=yes
15556 ;;
15557
15558 newsos6)
15559 version_type=linux
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=yes
15563 ;;
15564
15565 nto-qnx*)
15566 version_type=linux
15567 need_lib_prefix=no
15568 need_version=no
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 shlibpath_overrides_runpath=yes
15573 ;;
15574
15575 openbsd*)
15576 version_type=sunos
15577 sys_lib_dlsearch_path_spec="/usr/lib"
15578 need_lib_prefix=no
15579 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15580 case $host_os in
15581 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15582 *) need_version=no ;;
15583 esac
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15586 shlibpath_var=LD_LIBRARY_PATH
15587 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15588 case $host_os in
15589 openbsd2.[89] | openbsd2.[89].*)
15590 shlibpath_overrides_runpath=no
15591 ;;
15592 *)
15593 shlibpath_overrides_runpath=yes
15594 ;;
15595 esac
15596 else
15597 shlibpath_overrides_runpath=yes
15598 fi
15599 ;;
15600
15601 os2*)
15602 libname_spec='$name'
15603 shrext_cmds=".dll"
15604 need_lib_prefix=no
15605 library_names_spec='$libname${shared_ext} $libname.a'
15606 dynamic_linker='OS/2 ld.exe'
15607 shlibpath_var=LIBPATH
15608 ;;
15609
15610 osf3* | osf4* | osf5*)
15611 version_type=osf
15612 need_lib_prefix=no
15613 need_version=no
15614 soname_spec='${libname}${release}${shared_ext}$major'
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15616 shlibpath_var=LD_LIBRARY_PATH
15617 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15618 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15619 ;;
15620
15621 solaris*)
15622 version_type=linux
15623 need_lib_prefix=no
15624 need_version=no
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 shlibpath_overrides_runpath=yes
15629 hardcode_into_libs=yes
15630 # ldd complains unless libraries are executable
15631 postinstall_cmds='chmod +x $lib'
15632 ;;
15633
15634 sunos4*)
15635 version_type=sunos
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15637 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 shlibpath_overrides_runpath=yes
15640 if test "$with_gnu_ld" = yes; then
15641 need_lib_prefix=no
15642 fi
15643 need_version=yes
15644 ;;
15645
15646 sysv4 | sysv4.3*)
15647 version_type=linux
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649 soname_spec='${libname}${release}${shared_ext}$major'
15650 shlibpath_var=LD_LIBRARY_PATH
15651 case $host_vendor in
15652 sni)
15653 shlibpath_overrides_runpath=no
15654 need_lib_prefix=no
15655 export_dynamic_flag_spec='${wl}-Blargedynsym'
15656 runpath_var=LD_RUN_PATH
15657 ;;
15658 siemens)
15659 need_lib_prefix=no
15660 ;;
15661 motorola)
15662 need_lib_prefix=no
15663 need_version=no
15664 shlibpath_overrides_runpath=no
15665 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15666 ;;
15667 esac
15668 ;;
15669
15670 sysv4*MP*)
15671 if test -d /usr/nec ;then
15672 version_type=linux
15673 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15674 soname_spec='$libname${shared_ext}.$major'
15675 shlibpath_var=LD_LIBRARY_PATH
15676 fi
15677 ;;
15678
15679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15680 version_type=freebsd-elf
15681 need_lib_prefix=no
15682 need_version=no
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15684 soname_spec='${libname}${release}${shared_ext}$major'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 hardcode_into_libs=yes
15687 if test "$with_gnu_ld" = yes; then
15688 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15689 shlibpath_overrides_runpath=no
15690 else
15691 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15692 shlibpath_overrides_runpath=yes
15693 case $host_os in
15694 sco3.2v5*)
15695 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15696 ;;
15697 esac
15698 fi
15699 sys_lib_dlsearch_path_spec='/usr/lib'
15700 ;;
15701
15702 uts4*)
15703 version_type=linux
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705 soname_spec='${libname}${release}${shared_ext}$major'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 ;;
15708
15709 *)
15710 dynamic_linker=no
15711 ;;
15712 esac
15713 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15714 echo "${ECHO_T}$dynamic_linker" >&6; }
15715 test "$dynamic_linker" = no && can_build_shared=no
15716
15717 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15718 if test "$GCC" = yes; then
15719 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15720 fi
15721
15722 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15723 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15724 hardcode_action_F77=
15725 if test -n "$hardcode_libdir_flag_spec_F77" || \
15726 test -n "$runpath_var_F77" || \
15727 test "X$hardcode_automatic_F77" = "Xyes" ; then
15728
15729 # We can hardcode non-existant directories.
15730 if test "$hardcode_direct_F77" != no &&
15731 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15732 # have to relink, otherwise we might link with an installed library
15733 # when we should be linking with a yet-to-be-installed one
15734 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15735 test "$hardcode_minus_L_F77" != no; then
15736 # Linking always hardcodes the temporary library directory.
15737 hardcode_action_F77=relink
15738 else
15739 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15740 hardcode_action_F77=immediate
15741 fi
15742 else
15743 # We cannot hardcode anything, or else we can only hardcode existing
15744 # directories.
15745 hardcode_action_F77=unsupported
15746 fi
15747 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15748 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15749
15750 if test "$hardcode_action_F77" = relink; then
15751 # Fast installation is not supported
15752 enable_fast_install=no
15753 elif test "$shlibpath_overrides_runpath" = yes ||
15754 test "$enable_shared" = no; then
15755 # Fast installation is not necessary
15756 enable_fast_install=needless
15757 fi
15758
15759
15760 # The else clause should only fire when bootstrapping the
15761 # libtool distribution, otherwise you forgot to ship ltmain.sh
15762 # with your package, and you will get complaints that there are
15763 # no rules to generate ltmain.sh.
15764 if test -f "$ltmain"; then
15765 # See if we are running on zsh, and set the options which allow our commands through
15766 # without removal of \ escapes.
15767 if test -n "${ZSH_VERSION+set}" ; then
15768 setopt NO_GLOB_SUBST
15769 fi
15770 # Now quote all the things that may contain metacharacters while being
15771 # careful not to overquote the AC_SUBSTed values. We take copies of the
15772 # variables and quote the copies for generation of the libtool script.
15773 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15774 SED SHELL STRIP \
15775 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15776 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15777 deplibs_check_method reload_flag reload_cmds need_locks \
15778 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15779 lt_cv_sys_global_symbol_to_c_name_address \
15780 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15781 old_postinstall_cmds old_postuninstall_cmds \
15782 compiler_F77 \
15783 CC_F77 \
15784 LD_F77 \
15785 lt_prog_compiler_wl_F77 \
15786 lt_prog_compiler_pic_F77 \
15787 lt_prog_compiler_static_F77 \
15788 lt_prog_compiler_no_builtin_flag_F77 \
15789 export_dynamic_flag_spec_F77 \
15790 thread_safe_flag_spec_F77 \
15791 whole_archive_flag_spec_F77 \
15792 enable_shared_with_static_runtimes_F77 \
15793 old_archive_cmds_F77 \
15794 old_archive_from_new_cmds_F77 \
15795 predep_objects_F77 \
15796 postdep_objects_F77 \
15797 predeps_F77 \
15798 postdeps_F77 \
15799 compiler_lib_search_path_F77 \
15800 archive_cmds_F77 \
15801 archive_expsym_cmds_F77 \
15802 postinstall_cmds_F77 \
15803 postuninstall_cmds_F77 \
15804 old_archive_from_expsyms_cmds_F77 \
15805 allow_undefined_flag_F77 \
15806 no_undefined_flag_F77 \
15807 export_symbols_cmds_F77 \
15808 hardcode_libdir_flag_spec_F77 \
15809 hardcode_libdir_flag_spec_ld_F77 \
15810 hardcode_libdir_separator_F77 \
15811 hardcode_automatic_F77 \
15812 module_cmds_F77 \
15813 module_expsym_cmds_F77 \
15814 lt_cv_prog_compiler_c_o_F77 \
15815 exclude_expsyms_F77 \
15816 include_expsyms_F77; do
15817
15818 case $var in
15819 old_archive_cmds_F77 | \
15820 old_archive_from_new_cmds_F77 | \
15821 archive_cmds_F77 | \
15822 archive_expsym_cmds_F77 | \
15823 module_cmds_F77 | \
15824 module_expsym_cmds_F77 | \
15825 old_archive_from_expsyms_cmds_F77 | \
15826 export_symbols_cmds_F77 | \
15827 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15828 postinstall_cmds | postuninstall_cmds | \
15829 old_postinstall_cmds | old_postuninstall_cmds | \
15830 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15831 # Double-quote double-evaled strings.
15832 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15833 ;;
15834 *)
15835 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15836 ;;
15837 esac
15838 done
15839
15840 case $lt_echo in
15841 *'\$0 --fallback-echo"')
15842 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15843 ;;
15844 esac
15845
15846 cfgfile="$ofile"
15847
15848 cat <<__EOF__ >> "$cfgfile"
15849 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15850
15851 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15852
15853 # Shell to use when invoking shell scripts.
15854 SHELL=$lt_SHELL
15855
15856 # Whether or not to build shared libraries.
15857 build_libtool_libs=$enable_shared
15858
15859 # Whether or not to build static libraries.
15860 build_old_libs=$enable_static
15861
15862 # Whether or not to add -lc for building shared libraries.
15863 build_libtool_need_lc=$archive_cmds_need_lc_F77
15864
15865 # Whether or not to disallow shared libs when runtime libs are static
15866 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15867
15868 # Whether or not to optimize for fast installation.
15869 fast_install=$enable_fast_install
15870
15871 # The host system.
15872 host_alias=$host_alias
15873 host=$host
15874 host_os=$host_os
15875
15876 # The build system.
15877 build_alias=$build_alias
15878 build=$build
15879 build_os=$build_os
15880
15881 # An echo program that does not interpret backslashes.
15882 echo=$lt_echo
15883
15884 # The archiver.
15885 AR=$lt_AR
15886 AR_FLAGS=$lt_AR_FLAGS
15887
15888 # A C compiler.
15889 LTCC=$lt_LTCC
15890
15891 # LTCC compiler flags.
15892 LTCFLAGS=$lt_LTCFLAGS
15893
15894 # A language-specific compiler.
15895 CC=$lt_compiler_F77
15896
15897 # Is the compiler the GNU C compiler?
15898 with_gcc=$GCC_F77
15899
15900 # An ERE matcher.
15901 EGREP=$lt_EGREP
15902
15903 # The linker used to build libraries.
15904 LD=$lt_LD_F77
15905
15906 # Whether we need hard or soft links.
15907 LN_S=$lt_LN_S
15908
15909 # A BSD-compatible nm program.
15910 NM=$lt_NM
15911
15912 # A symbol stripping program
15913 STRIP=$lt_STRIP
15914
15915 # Used to examine libraries when file_magic_cmd begins "file"
15916 MAGIC_CMD=$MAGIC_CMD
15917
15918 # Used on cygwin: DLL creation program.
15919 DLLTOOL="$DLLTOOL"
15920
15921 # Used on cygwin: object dumper.
15922 OBJDUMP="$OBJDUMP"
15923
15924 # Used on cygwin: assembler.
15925 AS="$AS"
15926
15927 # The name of the directory that contains temporary libtool files.
15928 objdir=$objdir
15929
15930 # How to create reloadable object files.
15931 reload_flag=$lt_reload_flag
15932 reload_cmds=$lt_reload_cmds
15933
15934 # How to pass a linker flag through the compiler.
15935 wl=$lt_lt_prog_compiler_wl_F77
15936
15937 # Object file suffix (normally "o").
15938 objext="$ac_objext"
15939
15940 # Old archive suffix (normally "a").
15941 libext="$libext"
15942
15943 # Shared library suffix (normally ".so").
15944 shrext_cmds='$shrext_cmds'
15945
15946 # Executable file suffix (normally "").
15947 exeext="$exeext"
15948
15949 # Additional compiler flags for building library objects.
15950 pic_flag=$lt_lt_prog_compiler_pic_F77
15951 pic_mode=$pic_mode
15952
15953 # What is the maximum length of a command?
15954 max_cmd_len=$lt_cv_sys_max_cmd_len
15955
15956 # Does compiler simultaneously support -c and -o options?
15957 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15958
15959 # Must we lock files when doing compilation?
15960 need_locks=$lt_need_locks
15961
15962 # Do we need the lib prefix for modules?
15963 need_lib_prefix=$need_lib_prefix
15964
15965 # Do we need a version for libraries?
15966 need_version=$need_version
15967
15968 # Whether dlopen is supported.
15969 dlopen_support=$enable_dlopen
15970
15971 # Whether dlopen of programs is supported.
15972 dlopen_self=$enable_dlopen_self
15973
15974 # Whether dlopen of statically linked programs is supported.
15975 dlopen_self_static=$enable_dlopen_self_static
15976
15977 # Compiler flag to prevent dynamic linking.
15978 link_static_flag=$lt_lt_prog_compiler_static_F77
15979
15980 # Compiler flag to turn off builtin functions.
15981 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15982
15983 # Compiler flag to allow reflexive dlopens.
15984 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15985
15986 # Compiler flag to generate shared objects directly from archives.
15987 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15988
15989 # Compiler flag to generate thread-safe objects.
15990 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15991
15992 # Library versioning type.
15993 version_type=$version_type
15994
15995 # Format of library name prefix.
15996 libname_spec=$lt_libname_spec
15997
15998 # List of archive names. First name is the real one, the rest are links.
15999 # The last name is the one that the linker finds with -lNAME.
16000 library_names_spec=$lt_library_names_spec
16001
16002 # The coded name of the library, if different from the real name.
16003 soname_spec=$lt_soname_spec
16004
16005 # Commands used to build and install an old-style archive.
16006 RANLIB=$lt_RANLIB
16007 old_archive_cmds=$lt_old_archive_cmds_F77
16008 old_postinstall_cmds=$lt_old_postinstall_cmds
16009 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16010
16011 # Create an old-style archive from a shared archive.
16012 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16013
16014 # Create a temporary old-style archive to link instead of a shared archive.
16015 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16016
16017 # Commands used to build and install a shared archive.
16018 archive_cmds=$lt_archive_cmds_F77
16019 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16020 postinstall_cmds=$lt_postinstall_cmds
16021 postuninstall_cmds=$lt_postuninstall_cmds
16022
16023 # Commands used to build a loadable module (assumed same as above if empty)
16024 module_cmds=$lt_module_cmds_F77
16025 module_expsym_cmds=$lt_module_expsym_cmds_F77
16026
16027 # Commands to strip libraries.
16028 old_striplib=$lt_old_striplib
16029 striplib=$lt_striplib
16030
16031 # Dependencies to place before the objects being linked to create a
16032 # shared library.
16033 predep_objects=$lt_predep_objects_F77
16034
16035 # Dependencies to place after the objects being linked to create a
16036 # shared library.
16037 postdep_objects=$lt_postdep_objects_F77
16038
16039 # Dependencies to place before the objects being linked to create a
16040 # shared library.
16041 predeps=$lt_predeps_F77
16042
16043 # Dependencies to place after the objects being linked to create a
16044 # shared library.
16045 postdeps=$lt_postdeps_F77
16046
16047 # The library search path used internally by the compiler when linking
16048 # a shared library.
16049 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16050
16051 # Method to check whether dependent libraries are shared objects.
16052 deplibs_check_method=$lt_deplibs_check_method
16053
16054 # Command to use when deplibs_check_method == file_magic.
16055 file_magic_cmd=$lt_file_magic_cmd
16056
16057 # Flag that allows shared libraries with undefined symbols to be built.
16058 allow_undefined_flag=$lt_allow_undefined_flag_F77
16059
16060 # Flag that forces no undefined symbols.
16061 no_undefined_flag=$lt_no_undefined_flag_F77
16062
16063 # Commands used to finish a libtool library installation in a directory.
16064 finish_cmds=$lt_finish_cmds
16065
16066 # Same as above, but a single script fragment to be evaled but not shown.
16067 finish_eval=$lt_finish_eval
16068
16069 # Take the output of nm and produce a listing of raw symbols and C names.
16070 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16071
16072 # Transform the output of nm in a proper C declaration
16073 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16074
16075 # Transform the output of nm in a C name address pair
16076 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16077
16078 # This is the shared library runtime path variable.
16079 runpath_var=$runpath_var
16080
16081 # This is the shared library path variable.
16082 shlibpath_var=$shlibpath_var
16083
16084 # Is shlibpath searched before the hard-coded library search path?
16085 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16086
16087 # How to hardcode a shared library path into an executable.
16088 hardcode_action=$hardcode_action_F77
16089
16090 # Whether we should hardcode library paths into libraries.
16091 hardcode_into_libs=$hardcode_into_libs
16092
16093 # Flag to hardcode \$libdir into a binary during linking.
16094 # This must work even if \$libdir does not exist.
16095 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16096
16097 # If ld is used when linking, flag to hardcode \$libdir into
16098 # a binary during linking. This must work even if \$libdir does
16099 # not exist.
16100 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16101
16102 # Whether we need a single -rpath flag with a separated argument.
16103 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16104
16105 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16106 # resulting binary.
16107 hardcode_direct=$hardcode_direct_F77
16108
16109 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16110 # resulting binary.
16111 hardcode_minus_L=$hardcode_minus_L_F77
16112
16113 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16114 # the resulting binary.
16115 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16116
16117 # Set to yes if building a shared library automatically hardcodes DIR into the library
16118 # and all subsequent libraries and executables linked against it.
16119 hardcode_automatic=$hardcode_automatic_F77
16120
16121 # Variables whose values should be saved in libtool wrapper scripts and
16122 # restored at relink time.
16123 variables_saved_for_relink="$variables_saved_for_relink"
16124
16125 # Whether libtool must link a program against all its dependency libraries.
16126 link_all_deplibs=$link_all_deplibs_F77
16127
16128 # Compile-time system search path for libraries
16129 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16130
16131 # Run-time system search path for libraries
16132 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16133
16134 # Fix the shell variable \$srcfile for the compiler.
16135 fix_srcfile_path="$fix_srcfile_path_F77"
16136
16137 # Set to yes if exported symbols are required.
16138 always_export_symbols=$always_export_symbols_F77
16139
16140 # The commands to list exported symbols.
16141 export_symbols_cmds=$lt_export_symbols_cmds_F77
16142
16143 # The commands to extract the exported symbol list from a shared archive.
16144 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16145
16146 # Symbols that should not be listed in the preloaded symbols.
16147 exclude_expsyms=$lt_exclude_expsyms_F77
16148
16149 # Symbols that must always be exported.
16150 include_expsyms=$lt_include_expsyms_F77
16151
16152 # ### END LIBTOOL TAG CONFIG: $tagname
16153
16154 __EOF__
16155
16156
16157 else
16158 # If there is no Makefile yet, we rely on a make rule to execute
16159 # `config.status --recheck' to rerun these tests and create the
16160 # libtool script then.
16161 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16162 if test -f "$ltmain_in"; then
16163 test -f Makefile && make "$ltmain"
16164 fi
16165 fi
16166
16167
16168 ac_ext=c
16169 ac_cpp='$CPP $CPPFLAGS'
16170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16173
16174 CC="$lt_save_CC"
16175
16176 else
16177 tagname=""
16178 fi
16179 ;;
16180
16181 GCJ)
16182 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16183
16184
16185 # Source file extension for Java test sources.
16186 ac_ext=java
16187
16188 # Object file extension for compiled Java test sources.
16189 objext=o
16190 objext_GCJ=$objext
16191
16192 # Code to be used in simple compile tests
16193 lt_simple_compile_test_code="class foo {}\n"
16194
16195 # Code to be used in simple link tests
16196 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16197
16198 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16199
16200 # If no C compiler was specified, use CC.
16201 LTCC=${LTCC-"$CC"}
16202
16203 # If no C compiler flags were specified, use CFLAGS.
16204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16205
16206 # Allow CC to be a program name with arguments.
16207 compiler=$CC
16208
16209
16210 # save warnings/boilerplate of simple test code
16211 ac_outfile=conftest.$ac_objext
16212 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16213 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16214 _lt_compiler_boilerplate=`cat conftest.err`
16215 $rm conftest*
16216
16217 ac_outfile=conftest.$ac_objext
16218 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16219 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16220 _lt_linker_boilerplate=`cat conftest.err`
16221 $rm conftest*
16222
16223
16224 # Allow CC to be a program name with arguments.
16225 lt_save_CC="$CC"
16226 CC=${GCJ-"gcj"}
16227 compiler=$CC
16228 compiler_GCJ=$CC
16229 for cc_temp in $compiler""; do
16230 case $cc_temp in
16231 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16232 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16233 \-*) ;;
16234 *) break;;
16235 esac
16236 done
16237 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16238
16239
16240 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16241 archive_cmds_need_lc_GCJ=no
16242
16243 old_archive_cmds_GCJ=$old_archive_cmds
16244
16245
16246 lt_prog_compiler_no_builtin_flag_GCJ=
16247
16248 if test "$GCC" = yes; then
16249 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16250
16251
16252 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16253 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16254 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257 lt_cv_prog_compiler_rtti_exceptions=no
16258 ac_outfile=conftest.$ac_objext
16259 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16260 lt_compiler_flag="-fno-rtti -fno-exceptions"
16261 # Insert the option either (1) after the last *FLAGS variable, or
16262 # (2) before a word containing "conftest.", or (3) at the end.
16263 # Note that $ac_compile itself does not contain backslashes and begins
16264 # with a dollar sign (not a hyphen), so the echo should work correctly.
16265 # The option is referenced via a variable to avoid confusing sed.
16266 lt_compile=`echo "$ac_compile" | $SED \
16267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16269 -e 's:$: $lt_compiler_flag:'`
16270 (eval echo "\"\$as_me:16270: $lt_compile\"" >&5)
16271 (eval "$lt_compile" 2>conftest.err)
16272 ac_status=$?
16273 cat conftest.err >&5
16274 echo "$as_me:16274: \$? = $ac_status" >&5
16275 if (exit $ac_status) && test -s "$ac_outfile"; then
16276 # The compiler can only warn and ignore the option if not recognized
16277 # So say no if there are warnings other than the usual output.
16278 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16280 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16281 lt_cv_prog_compiler_rtti_exceptions=yes
16282 fi
16283 fi
16284 $rm conftest*
16285
16286 fi
16287 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16288 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16289
16290 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16291 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16292 else
16293 :
16294 fi
16295
16296 fi
16297
16298 lt_prog_compiler_wl_GCJ=
16299 lt_prog_compiler_pic_GCJ=
16300 lt_prog_compiler_static_GCJ=
16301
16302 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16303 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16304
16305 if test "$GCC" = yes; then
16306 lt_prog_compiler_wl_GCJ='-Wl,'
16307 lt_prog_compiler_static_GCJ='-static'
16308
16309 case $host_os in
16310 aix*)
16311 # All AIX code is PIC.
16312 if test "$host_cpu" = ia64; then
16313 # AIX 5 now supports IA64 processor
16314 lt_prog_compiler_static_GCJ='-Bstatic'
16315 fi
16316 ;;
16317
16318 amigaos*)
16319 # FIXME: we need at least 68020 code to build shared libraries, but
16320 # adding the `-m68020' flag to GCC prevents building anything better,
16321 # like `-m68040'.
16322 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16323 ;;
16324
16325 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16326 # PIC is the default for these OSes.
16327 ;;
16328
16329 mingw* | pw32* | os2*)
16330 # This hack is so that the source file can tell whether it is being
16331 # built for inclusion in a dll (and should export symbols for example).
16332 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16333 ;;
16334
16335 darwin* | rhapsody*)
16336 # PIC is the default on this platform
16337 # Common symbols not allowed in MH_DYLIB files
16338 lt_prog_compiler_pic_GCJ='-fno-common'
16339 ;;
16340
16341 interix3*)
16342 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16343 # Instead, we relocate shared libraries at runtime.
16344 ;;
16345
16346 msdosdjgpp*)
16347 # Just because we use GCC doesn't mean we suddenly get shared libraries
16348 # on systems that don't support them.
16349 lt_prog_compiler_can_build_shared_GCJ=no
16350 enable_shared=no
16351 ;;
16352
16353 sysv4*MP*)
16354 if test -d /usr/nec; then
16355 lt_prog_compiler_pic_GCJ=-Kconform_pic
16356 fi
16357 ;;
16358
16359 hpux*)
16360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16361 # not for PA HP-UX.
16362 case $host_cpu in
16363 hppa*64*|ia64*)
16364 # +Z the default
16365 ;;
16366 *)
16367 lt_prog_compiler_pic_GCJ='-fPIC'
16368 ;;
16369 esac
16370 ;;
16371
16372 *)
16373 lt_prog_compiler_pic_GCJ='-fPIC'
16374 ;;
16375 esac
16376 else
16377 # PORTME Check for flag to pass linker flags through the system compiler.
16378 case $host_os in
16379 aix*)
16380 lt_prog_compiler_wl_GCJ='-Wl,'
16381 if test "$host_cpu" = ia64; then
16382 # AIX 5 now supports IA64 processor
16383 lt_prog_compiler_static_GCJ='-Bstatic'
16384 else
16385 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16386 fi
16387 ;;
16388 darwin*)
16389 # PIC is the default on this platform
16390 # Common symbols not allowed in MH_DYLIB files
16391 case $cc_basename in
16392 xlc*)
16393 lt_prog_compiler_pic_GCJ='-qnocommon'
16394 lt_prog_compiler_wl_GCJ='-Wl,'
16395 ;;
16396 esac
16397 ;;
16398
16399 mingw* | pw32* | os2*)
16400 # This hack is so that the source file can tell whether it is being
16401 # built for inclusion in a dll (and should export symbols for example).
16402 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16403 ;;
16404
16405 hpux9* | hpux10* | hpux11*)
16406 lt_prog_compiler_wl_GCJ='-Wl,'
16407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16408 # not for PA HP-UX.
16409 case $host_cpu in
16410 hppa*64*|ia64*)
16411 # +Z the default
16412 ;;
16413 *)
16414 lt_prog_compiler_pic_GCJ='+Z'
16415 ;;
16416 esac
16417 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16418 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16419 ;;
16420
16421 irix5* | irix6* | nonstopux*)
16422 lt_prog_compiler_wl_GCJ='-Wl,'
16423 # PIC (with -KPIC) is the default.
16424 lt_prog_compiler_static_GCJ='-non_shared'
16425 ;;
16426
16427 newsos6)
16428 lt_prog_compiler_pic_GCJ='-KPIC'
16429 lt_prog_compiler_static_GCJ='-Bstatic'
16430 ;;
16431
16432 linux*)
16433 case $cc_basename in
16434 icc* | ecc*)
16435 lt_prog_compiler_wl_GCJ='-Wl,'
16436 lt_prog_compiler_pic_GCJ='-KPIC'
16437 lt_prog_compiler_static_GCJ='-static'
16438 ;;
16439 pgcc* | pgf77* | pgf90* | pgf95*)
16440 # Portland Group compilers (*not* the Pentium gcc compiler,
16441 # which looks to be a dead project)
16442 lt_prog_compiler_wl_GCJ='-Wl,'
16443 lt_prog_compiler_pic_GCJ='-fpic'
16444 lt_prog_compiler_static_GCJ='-Bstatic'
16445 ;;
16446 ccc*)
16447 lt_prog_compiler_wl_GCJ='-Wl,'
16448 # All Alpha code is PIC.
16449 lt_prog_compiler_static_GCJ='-non_shared'
16450 ;;
16451 esac
16452 ;;
16453
16454 osf3* | osf4* | osf5*)
16455 lt_prog_compiler_wl_GCJ='-Wl,'
16456 # All OSF/1 code is PIC.
16457 lt_prog_compiler_static_GCJ='-non_shared'
16458 ;;
16459
16460 solaris*)
16461 lt_prog_compiler_pic_GCJ='-KPIC'
16462 lt_prog_compiler_static_GCJ='-Bstatic'
16463 case $cc_basename in
16464 f77* | f90* | f95*)
16465 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16466 *)
16467 lt_prog_compiler_wl_GCJ='-Wl,';;
16468 esac
16469 ;;
16470
16471 sunos4*)
16472 lt_prog_compiler_wl_GCJ='-Qoption ld '
16473 lt_prog_compiler_pic_GCJ='-PIC'
16474 lt_prog_compiler_static_GCJ='-Bstatic'
16475 ;;
16476
16477 sysv4 | sysv4.2uw2* | sysv4.3*)
16478 lt_prog_compiler_wl_GCJ='-Wl,'
16479 lt_prog_compiler_pic_GCJ='-KPIC'
16480 lt_prog_compiler_static_GCJ='-Bstatic'
16481 ;;
16482
16483 sysv4*MP*)
16484 if test -d /usr/nec ;then
16485 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16486 lt_prog_compiler_static_GCJ='-Bstatic'
16487 fi
16488 ;;
16489
16490 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16491 lt_prog_compiler_wl_GCJ='-Wl,'
16492 lt_prog_compiler_pic_GCJ='-KPIC'
16493 lt_prog_compiler_static_GCJ='-Bstatic'
16494 ;;
16495
16496 unicos*)
16497 lt_prog_compiler_wl_GCJ='-Wl,'
16498 lt_prog_compiler_can_build_shared_GCJ=no
16499 ;;
16500
16501 uts4*)
16502 lt_prog_compiler_pic_GCJ='-pic'
16503 lt_prog_compiler_static_GCJ='-Bstatic'
16504 ;;
16505
16506 *)
16507 lt_prog_compiler_can_build_shared_GCJ=no
16508 ;;
16509 esac
16510 fi
16511
16512 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16513 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16514
16515 #
16516 # Check to make sure the PIC flag actually works.
16517 #
16518 if test -n "$lt_prog_compiler_pic_GCJ"; then
16519
16520 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16521 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16522 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525 lt_prog_compiler_pic_works_GCJ=no
16526 ac_outfile=conftest.$ac_objext
16527 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16528 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16529 # Insert the option either (1) after the last *FLAGS variable, or
16530 # (2) before a word containing "conftest.", or (3) at the end.
16531 # Note that $ac_compile itself does not contain backslashes and begins
16532 # with a dollar sign (not a hyphen), so the echo should work correctly.
16533 # The option is referenced via a variable to avoid confusing sed.
16534 lt_compile=`echo "$ac_compile" | $SED \
16535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16537 -e 's:$: $lt_compiler_flag:'`
16538 (eval echo "\"\$as_me:16538: $lt_compile\"" >&5)
16539 (eval "$lt_compile" 2>conftest.err)
16540 ac_status=$?
16541 cat conftest.err >&5
16542 echo "$as_me:16542: \$? = $ac_status" >&5
16543 if (exit $ac_status) && test -s "$ac_outfile"; then
16544 # The compiler can only warn and ignore the option if not recognized
16545 # So say no if there are warnings other than the usual output.
16546 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16548 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16549 lt_prog_compiler_pic_works_GCJ=yes
16550 fi
16551 fi
16552 $rm conftest*
16553
16554 fi
16555 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16556 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16557
16558 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16559 case $lt_prog_compiler_pic_GCJ in
16560 "" | " "*) ;;
16561 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16562 esac
16563 else
16564 lt_prog_compiler_pic_GCJ=
16565 lt_prog_compiler_can_build_shared_GCJ=no
16566 fi
16567
16568 fi
16569 case $host_os in
16570 # For platforms which do not support PIC, -DPIC is meaningless:
16571 *djgpp*)
16572 lt_prog_compiler_pic_GCJ=
16573 ;;
16574 *)
16575 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16576 ;;
16577 esac
16578
16579 #
16580 # Check to make sure the static flag actually works.
16581 #
16582 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16583 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16584 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16585 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16587 else
16588 lt_prog_compiler_static_works_GCJ=no
16589 save_LDFLAGS="$LDFLAGS"
16590 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16591 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16592 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16593 # The linker can only warn and ignore the option if not recognized
16594 # So say no if there are warnings
16595 if test -s conftest.err; then
16596 # Append any errors to the config.log.
16597 cat conftest.err 1>&5
16598 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16600 if diff conftest.exp conftest.er2 >/dev/null; then
16601 lt_prog_compiler_static_works_GCJ=yes
16602 fi
16603 else
16604 lt_prog_compiler_static_works_GCJ=yes
16605 fi
16606 fi
16607 $rm conftest*
16608 LDFLAGS="$save_LDFLAGS"
16609
16610 fi
16611 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16612 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16613
16614 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16615 :
16616 else
16617 lt_prog_compiler_static_GCJ=
16618 fi
16619
16620
16621 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16622 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16623 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16625 else
16626 lt_cv_prog_compiler_c_o_GCJ=no
16627 $rm -r conftest 2>/dev/null
16628 mkdir conftest
16629 cd conftest
16630 mkdir out
16631 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16632
16633 lt_compiler_flag="-o out/conftest2.$ac_objext"
16634 # Insert the option either (1) after the last *FLAGS variable, or
16635 # (2) before a word containing "conftest.", or (3) at the end.
16636 # Note that $ac_compile itself does not contain backslashes and begins
16637 # with a dollar sign (not a hyphen), so the echo should work correctly.
16638 lt_compile=`echo "$ac_compile" | $SED \
16639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16641 -e 's:$: $lt_compiler_flag:'`
16642 (eval echo "\"\$as_me:16642: $lt_compile\"" >&5)
16643 (eval "$lt_compile" 2>out/conftest.err)
16644 ac_status=$?
16645 cat out/conftest.err >&5
16646 echo "$as_me:16646: \$? = $ac_status" >&5
16647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16648 then
16649 # The compiler can only warn and ignore the option if not recognized
16650 # So say no if there are warnings
16651 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16654 lt_cv_prog_compiler_c_o_GCJ=yes
16655 fi
16656 fi
16657 chmod u+w . 2>&5
16658 $rm conftest*
16659 # SGI C++ compiler will create directory out/ii_files/ for
16660 # template instantiation
16661 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16662 $rm out/* && rmdir out
16663 cd ..
16664 rmdir conftest
16665 $rm conftest*
16666
16667 fi
16668 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16669 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16670
16671
16672 hard_links="nottested"
16673 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16674 # do not overwrite the value of need_locks provided by the user
16675 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16676 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16677 hard_links=yes
16678 $rm conftest*
16679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16680 touch conftest.a
16681 ln conftest.a conftest.b 2>&5 || hard_links=no
16682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16683 { echo "$as_me:$LINENO: result: $hard_links" >&5
16684 echo "${ECHO_T}$hard_links" >&6; }
16685 if test "$hard_links" = no; then
16686 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16687 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16688 need_locks=warn
16689 fi
16690 else
16691 need_locks=no
16692 fi
16693
16694 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16695 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16696
16697 runpath_var=
16698 allow_undefined_flag_GCJ=
16699 enable_shared_with_static_runtimes_GCJ=no
16700 archive_cmds_GCJ=
16701 archive_expsym_cmds_GCJ=
16702 old_archive_From_new_cmds_GCJ=
16703 old_archive_from_expsyms_cmds_GCJ=
16704 export_dynamic_flag_spec_GCJ=
16705 whole_archive_flag_spec_GCJ=
16706 thread_safe_flag_spec_GCJ=
16707 hardcode_libdir_flag_spec_GCJ=
16708 hardcode_libdir_flag_spec_ld_GCJ=
16709 hardcode_libdir_separator_GCJ=
16710 hardcode_direct_GCJ=no
16711 hardcode_minus_L_GCJ=no
16712 hardcode_shlibpath_var_GCJ=unsupported
16713 link_all_deplibs_GCJ=unknown
16714 hardcode_automatic_GCJ=no
16715 module_cmds_GCJ=
16716 module_expsym_cmds_GCJ=
16717 always_export_symbols_GCJ=no
16718 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16719 # include_expsyms should be a list of space-separated symbols to be *always*
16720 # included in the symbol list
16721 include_expsyms_GCJ=
16722 # exclude_expsyms can be an extended regexp of symbols to exclude
16723 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16724 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16725 # as well as any symbol that contains `d'.
16726 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16727 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16728 # platforms (ab)use it in PIC code, but their linkers get confused if
16729 # the symbol is explicitly referenced. Since portable code cannot
16730 # rely on this symbol name, it's probably fine to never include it in
16731 # preloaded symbol tables.
16732 extract_expsyms_cmds=
16733 # Just being paranoid about ensuring that cc_basename is set.
16734 for cc_temp in $compiler""; do
16735 case $cc_temp in
16736 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16737 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16738 \-*) ;;
16739 *) break;;
16740 esac
16741 done
16742 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16743
16744 case $host_os in
16745 cygwin* | mingw* | pw32*)
16746 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16747 # When not using gcc, we currently assume that we are using
16748 # Microsoft Visual C++.
16749 if test "$GCC" != yes; then
16750 with_gnu_ld=no
16751 fi
16752 ;;
16753 interix*)
16754 # we just hope/assume this is gcc and not c89 (= MSVC++)
16755 with_gnu_ld=yes
16756 ;;
16757 openbsd*)
16758 with_gnu_ld=no
16759 ;;
16760 esac
16761
16762 ld_shlibs_GCJ=yes
16763 if test "$with_gnu_ld" = yes; then
16764 # If archive_cmds runs LD, not CC, wlarc should be empty
16765 wlarc='${wl}'
16766
16767 # Set some defaults for GNU ld with shared library support. These
16768 # are reset later if shared libraries are not supported. Putting them
16769 # here allows them to be overridden if necessary.
16770 runpath_var=LD_RUN_PATH
16771 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16772 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16773 # ancient GNU ld didn't support --whole-archive et. al.
16774 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16775 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16776 else
16777 whole_archive_flag_spec_GCJ=
16778 fi
16779 supports_anon_versioning=no
16780 case `$LD -v 2>/dev/null` in
16781 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16782 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16783 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16784 *\ 2.11.*) ;; # other 2.11 versions
16785 *) supports_anon_versioning=yes ;;
16786 esac
16787
16788 # See if GNU ld supports shared libraries.
16789 case $host_os in
16790 aix3* | aix4* | aix5*)
16791 # On AIX/PPC, the GNU linker is very broken
16792 if test "$host_cpu" != ia64; then
16793 ld_shlibs_GCJ=no
16794 cat <<EOF 1>&2
16795
16796 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16797 *** to be unable to reliably create shared libraries on AIX.
16798 *** Therefore, libtool is disabling shared libraries support. If you
16799 *** really care for shared libraries, you may want to modify your PATH
16800 *** so that a non-GNU linker is found, and then restart.
16801
16802 EOF
16803 fi
16804 ;;
16805
16806 amigaos*)
16807 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)'
16808 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16809 hardcode_minus_L_GCJ=yes
16810
16811 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16812 # that the semantics of dynamic libraries on AmigaOS, at least up
16813 # to version 4, is to share data among multiple programs linked
16814 # with the same dynamic library. Since this doesn't match the
16815 # behavior of shared libraries on other platforms, we can't use
16816 # them.
16817 ld_shlibs_GCJ=no
16818 ;;
16819
16820 beos*)
16821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16822 allow_undefined_flag_GCJ=unsupported
16823 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16824 # support --undefined. This deserves some investigation. FIXME
16825 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16826 else
16827 ld_shlibs_GCJ=no
16828 fi
16829 ;;
16830
16831 cygwin* | mingw* | pw32*)
16832 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16833 # as there is no search path for DLLs.
16834 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16835 allow_undefined_flag_GCJ=unsupported
16836 always_export_symbols_GCJ=no
16837 enable_shared_with_static_runtimes_GCJ=yes
16838 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16839
16840 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16841 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16842 # If the export-symbols file already is a .def file (1st line
16843 # is EXPORTS), use it as is; otherwise, prepend...
16844 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16845 cp $export_symbols $output_objdir/$soname.def;
16846 else
16847 echo EXPORTS > $output_objdir/$soname.def;
16848 cat $export_symbols >> $output_objdir/$soname.def;
16849 fi~
16850 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16851 else
16852 ld_shlibs_GCJ=no
16853 fi
16854 ;;
16855
16856 interix3*)
16857 hardcode_direct_GCJ=no
16858 hardcode_shlibpath_var_GCJ=no
16859 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16860 export_dynamic_flag_spec_GCJ='${wl}-E'
16861 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16862 # Instead, shared libraries are loaded at an image base (0x10000000 by
16863 # default) and relocated if they conflict, which is a slow very memory
16864 # consuming and fragmenting process. To avoid this, we pick a random,
16865 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16866 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16867 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'
16868 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'
16869 ;;
16870
16871 linux*)
16872 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16873 tmp_addflag=
16874 case $cc_basename,$host_cpu in
16875 pgcc*) # Portland Group C compiler
16876 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'
16877 tmp_addflag=' $pic_flag'
16878 ;;
16879 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16880 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'
16881 tmp_addflag=' $pic_flag -Mnomain' ;;
16882 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16883 tmp_addflag=' -i_dynamic' ;;
16884 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16885 tmp_addflag=' -i_dynamic -nofor_main' ;;
16886 ifc* | ifort*) # Intel Fortran compiler
16887 tmp_addflag=' -nofor_main' ;;
16888 esac
16889 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16890
16891 if test $supports_anon_versioning = yes; then
16892 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16893 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16894 $echo "local: *; };" >> $output_objdir/$libname.ver~
16895 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16896 fi
16897 else
16898 ld_shlibs_GCJ=no
16899 fi
16900 ;;
16901
16902 netbsd*)
16903 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16904 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16905 wlarc=
16906 else
16907 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16908 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16909 fi
16910 ;;
16911
16912 solaris*)
16913 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16914 ld_shlibs_GCJ=no
16915 cat <<EOF 1>&2
16916
16917 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16918 *** create shared libraries on Solaris systems. Therefore, libtool
16919 *** is disabling shared libraries support. We urge you to upgrade GNU
16920 *** binutils to release 2.9.1 or newer. Another option is to modify
16921 *** your PATH or compiler configuration so that the native linker is
16922 *** used, and then restart.
16923
16924 EOF
16925 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16926 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16927 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16928 else
16929 ld_shlibs_GCJ=no
16930 fi
16931 ;;
16932
16933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16934 case `$LD -v 2>&1` in
16935 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16936 ld_shlibs_GCJ=no
16937 cat <<_LT_EOF 1>&2
16938
16939 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16940 *** reliably create shared libraries on SCO systems. Therefore, libtool
16941 *** is disabling shared libraries support. We urge you to upgrade GNU
16942 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16943 *** your PATH or compiler configuration so that the native linker is
16944 *** used, and then restart.
16945
16946 _LT_EOF
16947 ;;
16948 *)
16949 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16950 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16951 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16952 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16953 else
16954 ld_shlibs_GCJ=no
16955 fi
16956 ;;
16957 esac
16958 ;;
16959
16960 sunos4*)
16961 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16962 wlarc=
16963 hardcode_direct_GCJ=yes
16964 hardcode_shlibpath_var_GCJ=no
16965 ;;
16966
16967 *)
16968 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16969 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16970 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16971 else
16972 ld_shlibs_GCJ=no
16973 fi
16974 ;;
16975 esac
16976
16977 if test "$ld_shlibs_GCJ" = no; then
16978 runpath_var=
16979 hardcode_libdir_flag_spec_GCJ=
16980 export_dynamic_flag_spec_GCJ=
16981 whole_archive_flag_spec_GCJ=
16982 fi
16983 else
16984 # PORTME fill in a description of your system's linker (not GNU ld)
16985 case $host_os in
16986 aix3*)
16987 allow_undefined_flag_GCJ=unsupported
16988 always_export_symbols_GCJ=yes
16989 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'
16990 # Note: this linker hardcodes the directories in LIBPATH if there
16991 # are no directories specified by -L.
16992 hardcode_minus_L_GCJ=yes
16993 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16994 # Neither direct hardcoding nor static linking is supported with a
16995 # broken collect2.
16996 hardcode_direct_GCJ=unsupported
16997 fi
16998 ;;
16999
17000 aix4* | aix5*)
17001 if test "$host_cpu" = ia64; then
17002 # On IA64, the linker does run time linking by default, so we don't
17003 # have to do anything special.
17004 aix_use_runtimelinking=no
17005 exp_sym_flag='-Bexport'
17006 no_entry_flag=""
17007 else
17008 # If we're using GNU nm, then we don't want the "-C" option.
17009 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17010 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17011 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'
17012 else
17013 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'
17014 fi
17015 aix_use_runtimelinking=no
17016
17017 # Test if we are trying to use run time linking or normal
17018 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17019 # need to do runtime linking.
17020 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17021 for ld_flag in $LDFLAGS; do
17022 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17023 aix_use_runtimelinking=yes
17024 break
17025 fi
17026 done
17027 ;;
17028 esac
17029
17030 exp_sym_flag='-bexport'
17031 no_entry_flag='-bnoentry'
17032 fi
17033
17034 # When large executables or shared objects are built, AIX ld can
17035 # have problems creating the table of contents. If linking a library
17036 # or program results in "error TOC overflow" add -mminimal-toc to
17037 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17038 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17039
17040 archive_cmds_GCJ=''
17041 hardcode_direct_GCJ=yes
17042 hardcode_libdir_separator_GCJ=':'
17043 link_all_deplibs_GCJ=yes
17044
17045 if test "$GCC" = yes; then
17046 case $host_os in aix4.[012]|aix4.[012].*)
17047 # We only want to do this on AIX 4.2 and lower, the check
17048 # below for broken collect2 doesn't work under 4.3+
17049 collect2name=`${CC} -print-prog-name=collect2`
17050 if test -f "$collect2name" && \
17051 strings "$collect2name" | grep resolve_lib_name >/dev/null
17052 then
17053 # We have reworked collect2
17054 hardcode_direct_GCJ=yes
17055 else
17056 # We have old collect2
17057 hardcode_direct_GCJ=unsupported
17058 # It fails to find uninstalled libraries when the uninstalled
17059 # path is not listed in the libpath. Setting hardcode_minus_L
17060 # to unsupported forces relinking
17061 hardcode_minus_L_GCJ=yes
17062 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17063 hardcode_libdir_separator_GCJ=
17064 fi
17065 ;;
17066 esac
17067 shared_flag='-shared'
17068 if test "$aix_use_runtimelinking" = yes; then
17069 shared_flag="$shared_flag "'${wl}-G'
17070 fi
17071 else
17072 # not using gcc
17073 if test "$host_cpu" = ia64; then
17074 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17075 # chokes on -Wl,-G. The following line is correct:
17076 shared_flag='-G'
17077 else
17078 if test "$aix_use_runtimelinking" = yes; then
17079 shared_flag='${wl}-G'
17080 else
17081 shared_flag='${wl}-bM:SRE'
17082 fi
17083 fi
17084 fi
17085
17086 # It seems that -bexpall does not export symbols beginning with
17087 # underscore (_), so it is better to generate a list of symbols to export.
17088 always_export_symbols_GCJ=yes
17089 if test "$aix_use_runtimelinking" = yes; then
17090 # Warning - without using the other runtime loading flags (-brtl),
17091 # -berok will link without error, but may produce a broken library.
17092 allow_undefined_flag_GCJ='-berok'
17093 # Determine the default libpath from the value encoded in an empty executable.
17094 cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h. */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17100
17101 int
17102 main ()
17103 {
17104
17105 ;
17106 return 0;
17107 }
17108 _ACEOF
17109 rm -f conftest.$ac_objext conftest$ac_exeext
17110 if { (ac_try="$ac_link"
17111 case "(($ac_try" in
17112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113 *) ac_try_echo=$ac_try;;
17114 esac
17115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116 (eval "$ac_link") 2>conftest.er1
17117 ac_status=$?
17118 grep -v '^ *+' conftest.er1 >conftest.err
17119 rm -f conftest.er1
17120 cat conftest.err >&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } && {
17123 test -z "$ac_c_werror_flag" ||
17124 test ! -s conftest.err
17125 } && test -s conftest$ac_exeext &&
17126 $as_test_x conftest$ac_exeext; then
17127
17128 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17129 }'`
17130 # Check for a 64-bit object if we didn't find anything.
17131 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; }
17132 }'`; fi
17133 else
17134 echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17136
17137
17138 fi
17139
17140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17141 conftest$ac_exeext conftest.$ac_ext
17142 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17143
17144 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17145 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"
17146 else
17147 if test "$host_cpu" = ia64; then
17148 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17149 allow_undefined_flag_GCJ="-z nodefs"
17150 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"
17151 else
17152 # Determine the default libpath from the value encoded in an empty executable.
17153 cat >conftest.$ac_ext <<_ACEOF
17154 /* confdefs.h. */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17159
17160 int
17161 main ()
17162 {
17163
17164 ;
17165 return 0;
17166 }
17167 _ACEOF
17168 rm -f conftest.$ac_objext conftest$ac_exeext
17169 if { (ac_try="$ac_link"
17170 case "(($ac_try" in
17171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172 *) ac_try_echo=$ac_try;;
17173 esac
17174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175 (eval "$ac_link") 2>conftest.er1
17176 ac_status=$?
17177 grep -v '^ *+' conftest.er1 >conftest.err
17178 rm -f conftest.er1
17179 cat conftest.err >&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } && {
17182 test -z "$ac_c_werror_flag" ||
17183 test ! -s conftest.err
17184 } && test -s conftest$ac_exeext &&
17185 $as_test_x conftest$ac_exeext; then
17186
17187 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17188 }'`
17189 # Check for a 64-bit object if we didn't find anything.
17190 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; }
17191 }'`; fi
17192 else
17193 echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17195
17196
17197 fi
17198
17199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17200 conftest$ac_exeext conftest.$ac_ext
17201 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17202
17203 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17204 # Warning - without using the other run time loading flags,
17205 # -berok will link without error, but may produce a broken library.
17206 no_undefined_flag_GCJ=' ${wl}-bernotok'
17207 allow_undefined_flag_GCJ=' ${wl}-berok'
17208 # Exported symbols can be pulled into shared objects from archives
17209 whole_archive_flag_spec_GCJ='$convenience'
17210 archive_cmds_need_lc_GCJ=yes
17211 # This is similar to how AIX traditionally builds its shared libraries.
17212 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'
17213 fi
17214 fi
17215 ;;
17216
17217 amigaos*)
17218 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)'
17219 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17220 hardcode_minus_L_GCJ=yes
17221 # see comment about different semantics on the GNU ld section
17222 ld_shlibs_GCJ=no
17223 ;;
17224
17225 bsdi[45]*)
17226 export_dynamic_flag_spec_GCJ=-rdynamic
17227 ;;
17228
17229 cygwin* | mingw* | pw32*)
17230 # When not using gcc, we currently assume that we are using
17231 # Microsoft Visual C++.
17232 # hardcode_libdir_flag_spec is actually meaningless, as there is
17233 # no search path for DLLs.
17234 hardcode_libdir_flag_spec_GCJ=' '
17235 allow_undefined_flag_GCJ=unsupported
17236 # Tell ltmain to make .lib files, not .a files.
17237 libext=lib
17238 # Tell ltmain to make .dll files, not .so files.
17239 shrext_cmds=".dll"
17240 # FIXME: Setting linknames here is a bad hack.
17241 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17242 # The linker will automatically build a .lib file if we build a DLL.
17243 old_archive_From_new_cmds_GCJ='true'
17244 # FIXME: Should let the user specify the lib program.
17245 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17246 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17247 enable_shared_with_static_runtimes_GCJ=yes
17248 ;;
17249
17250 darwin* | rhapsody*)
17251 case $host_os in
17252 rhapsody* | darwin1.[012])
17253 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17254 ;;
17255 *) # Darwin 1.3 on
17256 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17257 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17258 else
17259 case ${MACOSX_DEPLOYMENT_TARGET} in
17260 10.[012])
17261 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17262 ;;
17263 10.*)
17264 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17265 ;;
17266 esac
17267 fi
17268 ;;
17269 esac
17270 archive_cmds_need_lc_GCJ=no
17271 hardcode_direct_GCJ=no
17272 hardcode_automatic_GCJ=yes
17273 hardcode_shlibpath_var_GCJ=unsupported
17274 whole_archive_flag_spec_GCJ=''
17275 link_all_deplibs_GCJ=yes
17276 if test "$GCC" = yes ; then
17277 output_verbose_link_cmd='echo'
17278 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17279 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17280 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17281 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}'
17282 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}'
17283 else
17284 case $cc_basename in
17285 xlc*)
17286 output_verbose_link_cmd='echo'
17287 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17288 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17289 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17290 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}'
17291 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}'
17292 ;;
17293 *)
17294 ld_shlibs_GCJ=no
17295 ;;
17296 esac
17297 fi
17298 ;;
17299
17300 dgux*)
17301 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17302 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17303 hardcode_shlibpath_var_GCJ=no
17304 ;;
17305
17306 freebsd1*)
17307 ld_shlibs_GCJ=no
17308 ;;
17309
17310 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17311 # support. Future versions do this automatically, but an explicit c++rt0.o
17312 # does not break anything, and helps significantly (at the cost of a little
17313 # extra space).
17314 freebsd2.2*)
17315 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17316 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17317 hardcode_direct_GCJ=yes
17318 hardcode_shlibpath_var_GCJ=no
17319 ;;
17320
17321 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17322 freebsd2*)
17323 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17324 hardcode_direct_GCJ=yes
17325 hardcode_minus_L_GCJ=yes
17326 hardcode_shlibpath_var_GCJ=no
17327 ;;
17328
17329 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17330 freebsd* | kfreebsd*-gnu | dragonfly*)
17331 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17332 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17333 hardcode_direct_GCJ=yes
17334 hardcode_shlibpath_var_GCJ=no
17335 ;;
17336
17337 hpux9*)
17338 if test "$GCC" = yes; then
17339 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'
17340 else
17341 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'
17342 fi
17343 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17344 hardcode_libdir_separator_GCJ=:
17345 hardcode_direct_GCJ=yes
17346
17347 # hardcode_minus_L: Not really in the search PATH,
17348 # but as the default location of the library.
17349 hardcode_minus_L_GCJ=yes
17350 export_dynamic_flag_spec_GCJ='${wl}-E'
17351 ;;
17352
17353 hpux10*)
17354 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17355 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17356 else
17357 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17358 fi
17359 if test "$with_gnu_ld" = no; then
17360 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17361 hardcode_libdir_separator_GCJ=:
17362
17363 hardcode_direct_GCJ=yes
17364 export_dynamic_flag_spec_GCJ='${wl}-E'
17365
17366 # hardcode_minus_L: Not really in the search PATH,
17367 # but as the default location of the library.
17368 hardcode_minus_L_GCJ=yes
17369 fi
17370 ;;
17371
17372 hpux11*)
17373 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17374 case $host_cpu in
17375 hppa*64*)
17376 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17377 ;;
17378 ia64*)
17379 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17380 ;;
17381 *)
17382 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17383 ;;
17384 esac
17385 else
17386 case $host_cpu in
17387 hppa*64*)
17388 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17389 ;;
17390 ia64*)
17391 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17392 ;;
17393 *)
17394 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17395 ;;
17396 esac
17397 fi
17398 if test "$with_gnu_ld" = no; then
17399 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17400 hardcode_libdir_separator_GCJ=:
17401
17402 case $host_cpu in
17403 hppa*64*|ia64*)
17404 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17405 hardcode_direct_GCJ=no
17406 hardcode_shlibpath_var_GCJ=no
17407 ;;
17408 *)
17409 hardcode_direct_GCJ=yes
17410 export_dynamic_flag_spec_GCJ='${wl}-E'
17411
17412 # hardcode_minus_L: Not really in the search PATH,
17413 # but as the default location of the library.
17414 hardcode_minus_L_GCJ=yes
17415 ;;
17416 esac
17417 fi
17418 ;;
17419
17420 irix5* | irix6* | nonstopux*)
17421 if test "$GCC" = yes; then
17422 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'
17423 else
17424 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'
17425 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17426 fi
17427 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17428 hardcode_libdir_separator_GCJ=:
17429 link_all_deplibs_GCJ=yes
17430 ;;
17431
17432 netbsd*)
17433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17434 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17435 else
17436 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17437 fi
17438 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17439 hardcode_direct_GCJ=yes
17440 hardcode_shlibpath_var_GCJ=no
17441 ;;
17442
17443 newsos6)
17444 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17445 hardcode_direct_GCJ=yes
17446 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17447 hardcode_libdir_separator_GCJ=:
17448 hardcode_shlibpath_var_GCJ=no
17449 ;;
17450
17451 openbsd*)
17452 hardcode_direct_GCJ=yes
17453 hardcode_shlibpath_var_GCJ=no
17454 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17455 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17456 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17457 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17458 export_dynamic_flag_spec_GCJ='${wl}-E'
17459 else
17460 case $host_os in
17461 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17462 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17463 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17464 ;;
17465 *)
17466 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17467 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17468 ;;
17469 esac
17470 fi
17471 ;;
17472
17473 os2*)
17474 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17475 hardcode_minus_L_GCJ=yes
17476 allow_undefined_flag_GCJ=unsupported
17477 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'
17478 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17479 ;;
17480
17481 osf3*)
17482 if test "$GCC" = yes; then
17483 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17484 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'
17485 else
17486 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17487 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'
17488 fi
17489 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17490 hardcode_libdir_separator_GCJ=:
17491 ;;
17492
17493 osf4* | osf5*) # as osf3* with the addition of -msym flag
17494 if test "$GCC" = yes; then
17495 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17496 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'
17497 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17498 else
17499 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17500 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'
17501 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~
17502 $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'
17503
17504 # Both c and cxx compiler support -rpath directly
17505 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17506 fi
17507 hardcode_libdir_separator_GCJ=:
17508 ;;
17509
17510 solaris*)
17511 no_undefined_flag_GCJ=' -z text'
17512 if test "$GCC" = yes; then
17513 wlarc='${wl}'
17514 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17515 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17516 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17517 else
17518 wlarc=''
17519 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17520 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17521 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17522 fi
17523 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17524 hardcode_shlibpath_var_GCJ=no
17525 case $host_os in
17526 solaris2.[0-5] | solaris2.[0-5].*) ;;
17527 *)
17528 # The compiler driver will combine linker options so we
17529 # cannot just pass the convience library names through
17530 # without $wl, iff we do not link with $LD.
17531 # Luckily, gcc supports the same syntax we need for Sun Studio.
17532 # Supported since Solaris 2.6 (maybe 2.5.1?)
17533 case $wlarc in
17534 '')
17535 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17536 *)
17537 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' ;;
17538 esac ;;
17539 esac
17540 link_all_deplibs_GCJ=yes
17541 ;;
17542
17543 sunos4*)
17544 if test "x$host_vendor" = xsequent; then
17545 # Use $CC to link under sequent, because it throws in some extra .o
17546 # files that make .init and .fini sections work.
17547 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17548 else
17549 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17550 fi
17551 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17552 hardcode_direct_GCJ=yes
17553 hardcode_minus_L_GCJ=yes
17554 hardcode_shlibpath_var_GCJ=no
17555 ;;
17556
17557 sysv4)
17558 case $host_vendor in
17559 sni)
17560 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17561 hardcode_direct_GCJ=yes # is this really true???
17562 ;;
17563 siemens)
17564 ## LD is ld it makes a PLAMLIB
17565 ## CC just makes a GrossModule.
17566 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17567 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17568 hardcode_direct_GCJ=no
17569 ;;
17570 motorola)
17571 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17572 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17573 ;;
17574 esac
17575 runpath_var='LD_RUN_PATH'
17576 hardcode_shlibpath_var_GCJ=no
17577 ;;
17578
17579 sysv4.3*)
17580 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17581 hardcode_shlibpath_var_GCJ=no
17582 export_dynamic_flag_spec_GCJ='-Bexport'
17583 ;;
17584
17585 sysv4*MP*)
17586 if test -d /usr/nec; then
17587 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17588 hardcode_shlibpath_var_GCJ=no
17589 runpath_var=LD_RUN_PATH
17590 hardcode_runpath_var=yes
17591 ld_shlibs_GCJ=yes
17592 fi
17593 ;;
17594
17595 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17596 no_undefined_flag_GCJ='${wl}-z,text'
17597 archive_cmds_need_lc_GCJ=no
17598 hardcode_shlibpath_var_GCJ=no
17599 runpath_var='LD_RUN_PATH'
17600
17601 if test "$GCC" = yes; then
17602 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17603 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17604 else
17605 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17606 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17607 fi
17608 ;;
17609
17610 sysv5* | sco3.2v5* | sco5v6*)
17611 # Note: We can NOT use -z defs as we might desire, because we do not
17612 # link with -lc, and that would cause any symbols used from libc to
17613 # always be unresolved, which means just about no library would
17614 # ever link correctly. If we're not using GNU ld we use -z text
17615 # though, which does catch some bad symbols but isn't as heavy-handed
17616 # as -z defs.
17617 no_undefined_flag_GCJ='${wl}-z,text'
17618 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17619 archive_cmds_need_lc_GCJ=no
17620 hardcode_shlibpath_var_GCJ=no
17621 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17622 hardcode_libdir_separator_GCJ=':'
17623 link_all_deplibs_GCJ=yes
17624 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17625 runpath_var='LD_RUN_PATH'
17626
17627 if test "$GCC" = yes; then
17628 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17629 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17630 else
17631 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17632 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17633 fi
17634 ;;
17635
17636 uts4*)
17637 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17638 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17639 hardcode_shlibpath_var_GCJ=no
17640 ;;
17641
17642 *)
17643 ld_shlibs_GCJ=no
17644 ;;
17645 esac
17646 fi
17647
17648 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17649 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17650 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17651
17652 #
17653 # Do we need to explicitly link libc?
17654 #
17655 case "x$archive_cmds_need_lc_GCJ" in
17656 x|xyes)
17657 # Assume -lc should be added
17658 archive_cmds_need_lc_GCJ=yes
17659
17660 if test "$enable_shared" = yes && test "$GCC" = yes; then
17661 case $archive_cmds_GCJ in
17662 *'~'*)
17663 # FIXME: we may have to deal with multi-command sequences.
17664 ;;
17665 '$CC '*)
17666 # Test whether the compiler implicitly links with -lc since on some
17667 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17668 # to ld, don't add -lc before -lgcc.
17669 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17670 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17671 $rm conftest*
17672 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17673
17674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17675 (eval $ac_compile) 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } 2>conftest.err; then
17679 soname=conftest
17680 lib=conftest
17681 libobjs=conftest.$ac_objext
17682 deplibs=
17683 wl=$lt_prog_compiler_wl_GCJ
17684 pic_flag=$lt_prog_compiler_pic_GCJ
17685 compiler_flags=-v
17686 linker_flags=-v
17687 verstring=
17688 output_objdir=.
17689 libname=conftest
17690 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17691 allow_undefined_flag_GCJ=
17692 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17693 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }
17697 then
17698 archive_cmds_need_lc_GCJ=no
17699 else
17700 archive_cmds_need_lc_GCJ=yes
17701 fi
17702 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17703 else
17704 cat conftest.err 1>&5
17705 fi
17706 $rm conftest*
17707 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17708 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17709 ;;
17710 esac
17711 fi
17712 ;;
17713 esac
17714
17715 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17716 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17717 library_names_spec=
17718 libname_spec='lib$name'
17719 soname_spec=
17720 shrext_cmds=".so"
17721 postinstall_cmds=
17722 postuninstall_cmds=
17723 finish_cmds=
17724 finish_eval=
17725 shlibpath_var=
17726 shlibpath_overrides_runpath=unknown
17727 version_type=none
17728 dynamic_linker="$host_os ld.so"
17729 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17730 if test "$GCC" = yes; then
17731 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17732 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17733 # if the path contains ";" then we assume it to be the separator
17734 # otherwise default to the standard path separator (i.e. ":") - it is
17735 # assumed that no part of a normal pathname contains ";" but that should
17736 # okay in the real world where ";" in dirpaths is itself problematic.
17737 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17738 else
17739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17740 fi
17741 else
17742 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17743 fi
17744 need_lib_prefix=unknown
17745 hardcode_into_libs=no
17746
17747 # when you set need_version to no, make sure it does not cause -set_version
17748 # flags to be left without arguments
17749 need_version=unknown
17750
17751 case $host_os in
17752 aix3*)
17753 version_type=linux
17754 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17755 shlibpath_var=LIBPATH
17756
17757 # AIX 3 has no versioning support, so we append a major version to the name.
17758 soname_spec='${libname}${release}${shared_ext}$major'
17759 ;;
17760
17761 aix4* | aix5*)
17762 version_type=linux
17763 need_lib_prefix=no
17764 need_version=no
17765 hardcode_into_libs=yes
17766 if test "$host_cpu" = ia64; then
17767 # AIX 5 supports IA64
17768 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17769 shlibpath_var=LD_LIBRARY_PATH
17770 else
17771 # With GCC up to 2.95.x, collect2 would create an import file
17772 # for dependence libraries. The import file would start with
17773 # the line `#! .'. This would cause the generated library to
17774 # depend on `.', always an invalid library. This was fixed in
17775 # development snapshots of GCC prior to 3.0.
17776 case $host_os in
17777 aix4 | aix4.[01] | aix4.[01].*)
17778 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17779 echo ' yes '
17780 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17781 :
17782 else
17783 can_build_shared=no
17784 fi
17785 ;;
17786 esac
17787 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17788 # soname into executable. Probably we can add versioning support to
17789 # collect2, so additional links can be useful in future.
17790 if test "$aix_use_runtimelinking" = yes; then
17791 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17792 # instead of lib<name>.a to let people know that these are not
17793 # typical AIX shared libraries.
17794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17795 else
17796 # We preserve .a as extension for shared libraries through AIX4.2
17797 # and later when we are not doing run time linking.
17798 library_names_spec='${libname}${release}.a $libname.a'
17799 soname_spec='${libname}${release}${shared_ext}$major'
17800 fi
17801 shlibpath_var=LIBPATH
17802 fi
17803 ;;
17804
17805 amigaos*)
17806 library_names_spec='$libname.ixlibrary $libname.a'
17807 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17808 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'
17809 ;;
17810
17811 beos*)
17812 library_names_spec='${libname}${shared_ext}'
17813 dynamic_linker="$host_os ld.so"
17814 shlibpath_var=LIBRARY_PATH
17815 ;;
17816
17817 bsdi[45]*)
17818 version_type=linux
17819 need_version=no
17820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17821 soname_spec='${libname}${release}${shared_ext}$major'
17822 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17823 shlibpath_var=LD_LIBRARY_PATH
17824 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17825 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17826 # the default ld.so.conf also contains /usr/contrib/lib and
17827 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17828 # libtool to hard-code these into programs
17829 ;;
17830
17831 cygwin* | mingw* | pw32*)
17832 version_type=windows
17833 shrext_cmds=".dll"
17834 need_version=no
17835 need_lib_prefix=no
17836
17837 case $GCC,$host_os in
17838 yes,cygwin* | yes,mingw* | yes,pw32*)
17839 library_names_spec='$libname.dll.a'
17840 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17841 postinstall_cmds='base_file=`basename \${file}`~
17842 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17843 dldir=$destdir/`dirname \$dlpath`~
17844 test -d \$dldir || mkdir -p \$dldir~
17845 $install_prog $dir/$dlname \$dldir/$dlname~
17846 chmod a+x \$dldir/$dlname'
17847 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17848 dlpath=$dir/\$dldll~
17849 $rm \$dlpath'
17850 shlibpath_overrides_runpath=yes
17851
17852 case $host_os in
17853 cygwin*)
17854 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17855 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17856 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17857 ;;
17858 mingw*)
17859 # MinGW DLLs use traditional 'lib' prefix
17860 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17861 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17862 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17863 # It is most probably a Windows format PATH printed by
17864 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17865 # path with ; separators, and with drive letters. We can handle the
17866 # drive letters (cygwin fileutils understands them), so leave them,
17867 # especially as we might pass files found there to a mingw objdump,
17868 # which wouldn't understand a cygwinified path. Ahh.
17869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17870 else
17871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17872 fi
17873 ;;
17874 pw32*)
17875 # pw32 DLLs use 'pw' prefix rather than 'lib'
17876 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17877 ;;
17878 esac
17879 ;;
17880
17881 *)
17882 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17883 ;;
17884 esac
17885 dynamic_linker='Win32 ld.exe'
17886 # FIXME: first we should search . and the directory the executable is in
17887 shlibpath_var=PATH
17888 ;;
17889
17890 darwin* | rhapsody*)
17891 dynamic_linker="$host_os dyld"
17892 version_type=darwin
17893 need_lib_prefix=no
17894 need_version=no
17895 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17896 soname_spec='${libname}${release}${major}$shared_ext'
17897 shlibpath_overrides_runpath=yes
17898 shlibpath_var=DYLD_LIBRARY_PATH
17899 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17900 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17901 if test "$GCC" = yes; then
17902 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"`
17903 else
17904 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17905 fi
17906 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17907 ;;
17908
17909 dgux*)
17910 version_type=linux
17911 need_lib_prefix=no
17912 need_version=no
17913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17914 soname_spec='${libname}${release}${shared_ext}$major'
17915 shlibpath_var=LD_LIBRARY_PATH
17916 ;;
17917
17918 freebsd1*)
17919 dynamic_linker=no
17920 ;;
17921
17922 kfreebsd*-gnu)
17923 version_type=linux
17924 need_lib_prefix=no
17925 need_version=no
17926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17927 soname_spec='${libname}${release}${shared_ext}$major'
17928 shlibpath_var=LD_LIBRARY_PATH
17929 shlibpath_overrides_runpath=no
17930 hardcode_into_libs=yes
17931 dynamic_linker='GNU ld.so'
17932 ;;
17933
17934 freebsd* | dragonfly*)
17935 # DragonFly does not have aout. When/if they implement a new
17936 # versioning mechanism, adjust this.
17937 if test -x /usr/bin/objformat; then
17938 objformat=`/usr/bin/objformat`
17939 else
17940 case $host_os in
17941 freebsd[123]*) objformat=aout ;;
17942 *) objformat=elf ;;
17943 esac
17944 fi
17945 version_type=freebsd-$objformat
17946 case $version_type in
17947 freebsd-elf*)
17948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17949 need_version=no
17950 need_lib_prefix=no
17951 ;;
17952 freebsd-*)
17953 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17954 need_version=yes
17955 ;;
17956 esac
17957 shlibpath_var=LD_LIBRARY_PATH
17958 case $host_os in
17959 freebsd2*)
17960 shlibpath_overrides_runpath=yes
17961 ;;
17962 freebsd3.[01]* | freebsdelf3.[01]*)
17963 shlibpath_overrides_runpath=yes
17964 hardcode_into_libs=yes
17965 ;;
17966 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17967 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17968 shlibpath_overrides_runpath=no
17969 hardcode_into_libs=yes
17970 ;;
17971 freebsd*) # from 4.6 on
17972 shlibpath_overrides_runpath=yes
17973 hardcode_into_libs=yes
17974 ;;
17975 esac
17976 ;;
17977
17978 gnu*)
17979 version_type=linux
17980 need_lib_prefix=no
17981 need_version=no
17982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17983 soname_spec='${libname}${release}${shared_ext}$major'
17984 shlibpath_var=LD_LIBRARY_PATH
17985 hardcode_into_libs=yes
17986 ;;
17987
17988 hpux9* | hpux10* | hpux11*)
17989 # Give a soname corresponding to the major version so that dld.sl refuses to
17990 # link against other versions.
17991 version_type=sunos
17992 need_lib_prefix=no
17993 need_version=no
17994 case $host_cpu in
17995 ia64*)
17996 shrext_cmds='.so'
17997 hardcode_into_libs=yes
17998 dynamic_linker="$host_os dld.so"
17999 shlibpath_var=LD_LIBRARY_PATH
18000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18002 soname_spec='${libname}${release}${shared_ext}$major'
18003 if test "X$HPUX_IA64_MODE" = X32; then
18004 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18005 else
18006 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18007 fi
18008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18009 ;;
18010 hppa*64*)
18011 shrext_cmds='.sl'
18012 hardcode_into_libs=yes
18013 dynamic_linker="$host_os dld.sl"
18014 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18017 soname_spec='${libname}${release}${shared_ext}$major'
18018 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18020 ;;
18021 *)
18022 shrext_cmds='.sl'
18023 dynamic_linker="$host_os dld.sl"
18024 shlibpath_var=SHLIB_PATH
18025 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18027 soname_spec='${libname}${release}${shared_ext}$major'
18028 ;;
18029 esac
18030 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18031 postinstall_cmds='chmod 555 $lib'
18032 ;;
18033
18034 interix3*)
18035 version_type=linux
18036 need_lib_prefix=no
18037 need_version=no
18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18039 soname_spec='${libname}${release}${shared_ext}$major'
18040 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18041 shlibpath_var=LD_LIBRARY_PATH
18042 shlibpath_overrides_runpath=no
18043 hardcode_into_libs=yes
18044 ;;
18045
18046 irix5* | irix6* | nonstopux*)
18047 case $host_os in
18048 nonstopux*) version_type=nonstopux ;;
18049 *)
18050 if test "$lt_cv_prog_gnu_ld" = yes; then
18051 version_type=linux
18052 else
18053 version_type=irix
18054 fi ;;
18055 esac
18056 need_lib_prefix=no
18057 need_version=no
18058 soname_spec='${libname}${release}${shared_ext}$major'
18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18060 case $host_os in
18061 irix5* | nonstopux*)
18062 libsuff= shlibsuff=
18063 ;;
18064 *)
18065 case $LD in # libtool.m4 will add one of these switches to LD
18066 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18067 libsuff= shlibsuff= libmagic=32-bit;;
18068 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18069 libsuff=32 shlibsuff=N32 libmagic=N32;;
18070 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18071 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18072 *) libsuff= shlibsuff= libmagic=never-match;;
18073 esac
18074 ;;
18075 esac
18076 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18077 shlibpath_overrides_runpath=no
18078 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18079 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18080 hardcode_into_libs=yes
18081 ;;
18082
18083 # No shared lib support for Linux oldld, aout, or coff.
18084 linux*oldld* | linux*aout* | linux*coff*)
18085 dynamic_linker=no
18086 ;;
18087
18088 # This must be Linux ELF.
18089 linux*)
18090 version_type=linux
18091 need_lib_prefix=no
18092 need_version=no
18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18094 soname_spec='${libname}${release}${shared_ext}$major'
18095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18096 shlibpath_var=LD_LIBRARY_PATH
18097 shlibpath_overrides_runpath=no
18098 # This implies no fast_install, which is unacceptable.
18099 # Some rework will be needed to allow for fast_install
18100 # before this can be enabled.
18101 hardcode_into_libs=yes
18102
18103 # find out which ABI we are using
18104 libsuff=
18105 case "$host_cpu" in
18106 x86_64*|s390x*|powerpc64*)
18107 echo '#line 18107 "configure"' > conftest.$ac_ext
18108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18109 (eval $ac_compile) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; then
18113 case `/usr/bin/file conftest.$ac_objext` in
18114 *64-bit*)
18115 libsuff=64
18116 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18117 ;;
18118 esac
18119 fi
18120 rm -rf conftest*
18121 ;;
18122 esac
18123
18124 # Append ld.so.conf contents to the search path
18125 if test -f /etc/ld.so.conf; then
18126 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' ' '`
18127 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18128 fi
18129
18130 # We used to test for /lib/ld.so.1 and disable shared libraries on
18131 # powerpc, because MkLinux only supported shared libraries with the
18132 # GNU dynamic linker. Since this was broken with cross compilers,
18133 # most powerpc-linux boxes support dynamic linking these days and
18134 # people can always --disable-shared, the test was removed, and we
18135 # assume the GNU/Linux dynamic linker is in use.
18136 dynamic_linker='GNU/Linux ld.so'
18137 ;;
18138
18139 knetbsd*-gnu)
18140 version_type=linux
18141 need_lib_prefix=no
18142 need_version=no
18143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18144 soname_spec='${libname}${release}${shared_ext}$major'
18145 shlibpath_var=LD_LIBRARY_PATH
18146 shlibpath_overrides_runpath=no
18147 hardcode_into_libs=yes
18148 dynamic_linker='GNU ld.so'
18149 ;;
18150
18151 netbsd*)
18152 version_type=sunos
18153 need_lib_prefix=no
18154 need_version=no
18155 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18158 dynamic_linker='NetBSD (a.out) ld.so'
18159 else
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18161 soname_spec='${libname}${release}${shared_ext}$major'
18162 dynamic_linker='NetBSD ld.elf_so'
18163 fi
18164 shlibpath_var=LD_LIBRARY_PATH
18165 shlibpath_overrides_runpath=yes
18166 hardcode_into_libs=yes
18167 ;;
18168
18169 newsos6)
18170 version_type=linux
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18172 shlibpath_var=LD_LIBRARY_PATH
18173 shlibpath_overrides_runpath=yes
18174 ;;
18175
18176 nto-qnx*)
18177 version_type=linux
18178 need_lib_prefix=no
18179 need_version=no
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181 soname_spec='${libname}${release}${shared_ext}$major'
18182 shlibpath_var=LD_LIBRARY_PATH
18183 shlibpath_overrides_runpath=yes
18184 ;;
18185
18186 openbsd*)
18187 version_type=sunos
18188 sys_lib_dlsearch_path_spec="/usr/lib"
18189 need_lib_prefix=no
18190 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18191 case $host_os in
18192 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18193 *) need_version=no ;;
18194 esac
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18197 shlibpath_var=LD_LIBRARY_PATH
18198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18199 case $host_os in
18200 openbsd2.[89] | openbsd2.[89].*)
18201 shlibpath_overrides_runpath=no
18202 ;;
18203 *)
18204 shlibpath_overrides_runpath=yes
18205 ;;
18206 esac
18207 else
18208 shlibpath_overrides_runpath=yes
18209 fi
18210 ;;
18211
18212 os2*)
18213 libname_spec='$name'
18214 shrext_cmds=".dll"
18215 need_lib_prefix=no
18216 library_names_spec='$libname${shared_ext} $libname.a'
18217 dynamic_linker='OS/2 ld.exe'
18218 shlibpath_var=LIBPATH
18219 ;;
18220
18221 osf3* | osf4* | osf5*)
18222 version_type=osf
18223 need_lib_prefix=no
18224 need_version=no
18225 soname_spec='${libname}${release}${shared_ext}$major'
18226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227 shlibpath_var=LD_LIBRARY_PATH
18228 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18229 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18230 ;;
18231
18232 solaris*)
18233 version_type=linux
18234 need_lib_prefix=no
18235 need_version=no
18236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18237 soname_spec='${libname}${release}${shared_ext}$major'
18238 shlibpath_var=LD_LIBRARY_PATH
18239 shlibpath_overrides_runpath=yes
18240 hardcode_into_libs=yes
18241 # ldd complains unless libraries are executable
18242 postinstall_cmds='chmod +x $lib'
18243 ;;
18244
18245 sunos4*)
18246 version_type=sunos
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18248 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18249 shlibpath_var=LD_LIBRARY_PATH
18250 shlibpath_overrides_runpath=yes
18251 if test "$with_gnu_ld" = yes; then
18252 need_lib_prefix=no
18253 fi
18254 need_version=yes
18255 ;;
18256
18257 sysv4 | sysv4.3*)
18258 version_type=linux
18259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18260 soname_spec='${libname}${release}${shared_ext}$major'
18261 shlibpath_var=LD_LIBRARY_PATH
18262 case $host_vendor in
18263 sni)
18264 shlibpath_overrides_runpath=no
18265 need_lib_prefix=no
18266 export_dynamic_flag_spec='${wl}-Blargedynsym'
18267 runpath_var=LD_RUN_PATH
18268 ;;
18269 siemens)
18270 need_lib_prefix=no
18271 ;;
18272 motorola)
18273 need_lib_prefix=no
18274 need_version=no
18275 shlibpath_overrides_runpath=no
18276 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18277 ;;
18278 esac
18279 ;;
18280
18281 sysv4*MP*)
18282 if test -d /usr/nec ;then
18283 version_type=linux
18284 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18285 soname_spec='$libname${shared_ext}.$major'
18286 shlibpath_var=LD_LIBRARY_PATH
18287 fi
18288 ;;
18289
18290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18291 version_type=freebsd-elf
18292 need_lib_prefix=no
18293 need_version=no
18294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18295 soname_spec='${libname}${release}${shared_ext}$major'
18296 shlibpath_var=LD_LIBRARY_PATH
18297 hardcode_into_libs=yes
18298 if test "$with_gnu_ld" = yes; then
18299 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18300 shlibpath_overrides_runpath=no
18301 else
18302 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18303 shlibpath_overrides_runpath=yes
18304 case $host_os in
18305 sco3.2v5*)
18306 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18307 ;;
18308 esac
18309 fi
18310 sys_lib_dlsearch_path_spec='/usr/lib'
18311 ;;
18312
18313 uts4*)
18314 version_type=linux
18315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18316 soname_spec='${libname}${release}${shared_ext}$major'
18317 shlibpath_var=LD_LIBRARY_PATH
18318 ;;
18319
18320 *)
18321 dynamic_linker=no
18322 ;;
18323 esac
18324 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18325 echo "${ECHO_T}$dynamic_linker" >&6; }
18326 test "$dynamic_linker" = no && can_build_shared=no
18327
18328 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18329 if test "$GCC" = yes; then
18330 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18331 fi
18332
18333 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18334 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18335 hardcode_action_GCJ=
18336 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18337 test -n "$runpath_var_GCJ" || \
18338 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18339
18340 # We can hardcode non-existant directories.
18341 if test "$hardcode_direct_GCJ" != no &&
18342 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18343 # have to relink, otherwise we might link with an installed library
18344 # when we should be linking with a yet-to-be-installed one
18345 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18346 test "$hardcode_minus_L_GCJ" != no; then
18347 # Linking always hardcodes the temporary library directory.
18348 hardcode_action_GCJ=relink
18349 else
18350 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18351 hardcode_action_GCJ=immediate
18352 fi
18353 else
18354 # We cannot hardcode anything, or else we can only hardcode existing
18355 # directories.
18356 hardcode_action_GCJ=unsupported
18357 fi
18358 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18359 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18360
18361 if test "$hardcode_action_GCJ" = relink; then
18362 # Fast installation is not supported
18363 enable_fast_install=no
18364 elif test "$shlibpath_overrides_runpath" = yes ||
18365 test "$enable_shared" = no; then
18366 # Fast installation is not necessary
18367 enable_fast_install=needless
18368 fi
18369
18370
18371 # The else clause should only fire when bootstrapping the
18372 # libtool distribution, otherwise you forgot to ship ltmain.sh
18373 # with your package, and you will get complaints that there are
18374 # no rules to generate ltmain.sh.
18375 if test -f "$ltmain"; then
18376 # See if we are running on zsh, and set the options which allow our commands through
18377 # without removal of \ escapes.
18378 if test -n "${ZSH_VERSION+set}" ; then
18379 setopt NO_GLOB_SUBST
18380 fi
18381 # Now quote all the things that may contain metacharacters while being
18382 # careful not to overquote the AC_SUBSTed values. We take copies of the
18383 # variables and quote the copies for generation of the libtool script.
18384 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18385 SED SHELL STRIP \
18386 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18387 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18388 deplibs_check_method reload_flag reload_cmds need_locks \
18389 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18390 lt_cv_sys_global_symbol_to_c_name_address \
18391 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18392 old_postinstall_cmds old_postuninstall_cmds \
18393 compiler_GCJ \
18394 CC_GCJ \
18395 LD_GCJ \
18396 lt_prog_compiler_wl_GCJ \
18397 lt_prog_compiler_pic_GCJ \
18398 lt_prog_compiler_static_GCJ \
18399 lt_prog_compiler_no_builtin_flag_GCJ \
18400 export_dynamic_flag_spec_GCJ \
18401 thread_safe_flag_spec_GCJ \
18402 whole_archive_flag_spec_GCJ \
18403 enable_shared_with_static_runtimes_GCJ \
18404 old_archive_cmds_GCJ \
18405 old_archive_from_new_cmds_GCJ \
18406 predep_objects_GCJ \
18407 postdep_objects_GCJ \
18408 predeps_GCJ \
18409 postdeps_GCJ \
18410 compiler_lib_search_path_GCJ \
18411 archive_cmds_GCJ \
18412 archive_expsym_cmds_GCJ \
18413 postinstall_cmds_GCJ \
18414 postuninstall_cmds_GCJ \
18415 old_archive_from_expsyms_cmds_GCJ \
18416 allow_undefined_flag_GCJ \
18417 no_undefined_flag_GCJ \
18418 export_symbols_cmds_GCJ \
18419 hardcode_libdir_flag_spec_GCJ \
18420 hardcode_libdir_flag_spec_ld_GCJ \
18421 hardcode_libdir_separator_GCJ \
18422 hardcode_automatic_GCJ \
18423 module_cmds_GCJ \
18424 module_expsym_cmds_GCJ \
18425 lt_cv_prog_compiler_c_o_GCJ \
18426 exclude_expsyms_GCJ \
18427 include_expsyms_GCJ; do
18428
18429 case $var in
18430 old_archive_cmds_GCJ | \
18431 old_archive_from_new_cmds_GCJ | \
18432 archive_cmds_GCJ | \
18433 archive_expsym_cmds_GCJ | \
18434 module_cmds_GCJ | \
18435 module_expsym_cmds_GCJ | \
18436 old_archive_from_expsyms_cmds_GCJ | \
18437 export_symbols_cmds_GCJ | \
18438 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18439 postinstall_cmds | postuninstall_cmds | \
18440 old_postinstall_cmds | old_postuninstall_cmds | \
18441 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18442 # Double-quote double-evaled strings.
18443 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18444 ;;
18445 *)
18446 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18447 ;;
18448 esac
18449 done
18450
18451 case $lt_echo in
18452 *'\$0 --fallback-echo"')
18453 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18454 ;;
18455 esac
18456
18457 cfgfile="$ofile"
18458
18459 cat <<__EOF__ >> "$cfgfile"
18460 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18461
18462 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18463
18464 # Shell to use when invoking shell scripts.
18465 SHELL=$lt_SHELL
18466
18467 # Whether or not to build shared libraries.
18468 build_libtool_libs=$enable_shared
18469
18470 # Whether or not to build static libraries.
18471 build_old_libs=$enable_static
18472
18473 # Whether or not to add -lc for building shared libraries.
18474 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18475
18476 # Whether or not to disallow shared libs when runtime libs are static
18477 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18478
18479 # Whether or not to optimize for fast installation.
18480 fast_install=$enable_fast_install
18481
18482 # The host system.
18483 host_alias=$host_alias
18484 host=$host
18485 host_os=$host_os
18486
18487 # The build system.
18488 build_alias=$build_alias
18489 build=$build
18490 build_os=$build_os
18491
18492 # An echo program that does not interpret backslashes.
18493 echo=$lt_echo
18494
18495 # The archiver.
18496 AR=$lt_AR
18497 AR_FLAGS=$lt_AR_FLAGS
18498
18499 # A C compiler.
18500 LTCC=$lt_LTCC
18501
18502 # LTCC compiler flags.
18503 LTCFLAGS=$lt_LTCFLAGS
18504
18505 # A language-specific compiler.
18506 CC=$lt_compiler_GCJ
18507
18508 # Is the compiler the GNU C compiler?
18509 with_gcc=$GCC_GCJ
18510
18511 # An ERE matcher.
18512 EGREP=$lt_EGREP
18513
18514 # The linker used to build libraries.
18515 LD=$lt_LD_GCJ
18516
18517 # Whether we need hard or soft links.
18518 LN_S=$lt_LN_S
18519
18520 # A BSD-compatible nm program.
18521 NM=$lt_NM
18522
18523 # A symbol stripping program
18524 STRIP=$lt_STRIP
18525
18526 # Used to examine libraries when file_magic_cmd begins "file"
18527 MAGIC_CMD=$MAGIC_CMD
18528
18529 # Used on cygwin: DLL creation program.
18530 DLLTOOL="$DLLTOOL"
18531
18532 # Used on cygwin: object dumper.
18533 OBJDUMP="$OBJDUMP"
18534
18535 # Used on cygwin: assembler.
18536 AS="$AS"
18537
18538 # The name of the directory that contains temporary libtool files.
18539 objdir=$objdir
18540
18541 # How to create reloadable object files.
18542 reload_flag=$lt_reload_flag
18543 reload_cmds=$lt_reload_cmds
18544
18545 # How to pass a linker flag through the compiler.
18546 wl=$lt_lt_prog_compiler_wl_GCJ
18547
18548 # Object file suffix (normally "o").
18549 objext="$ac_objext"
18550
18551 # Old archive suffix (normally "a").
18552 libext="$libext"
18553
18554 # Shared library suffix (normally ".so").
18555 shrext_cmds='$shrext_cmds'
18556
18557 # Executable file suffix (normally "").
18558 exeext="$exeext"
18559
18560 # Additional compiler flags for building library objects.
18561 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18562 pic_mode=$pic_mode
18563
18564 # What is the maximum length of a command?
18565 max_cmd_len=$lt_cv_sys_max_cmd_len
18566
18567 # Does compiler simultaneously support -c and -o options?
18568 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18569
18570 # Must we lock files when doing compilation?
18571 need_locks=$lt_need_locks
18572
18573 # Do we need the lib prefix for modules?
18574 need_lib_prefix=$need_lib_prefix
18575
18576 # Do we need a version for libraries?
18577 need_version=$need_version
18578
18579 # Whether dlopen is supported.
18580 dlopen_support=$enable_dlopen
18581
18582 # Whether dlopen of programs is supported.
18583 dlopen_self=$enable_dlopen_self
18584
18585 # Whether dlopen of statically linked programs is supported.
18586 dlopen_self_static=$enable_dlopen_self_static
18587
18588 # Compiler flag to prevent dynamic linking.
18589 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18590
18591 # Compiler flag to turn off builtin functions.
18592 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18593
18594 # Compiler flag to allow reflexive dlopens.
18595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18596
18597 # Compiler flag to generate shared objects directly from archives.
18598 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18599
18600 # Compiler flag to generate thread-safe objects.
18601 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18602
18603 # Library versioning type.
18604 version_type=$version_type
18605
18606 # Format of library name prefix.
18607 libname_spec=$lt_libname_spec
18608
18609 # List of archive names. First name is the real one, the rest are links.
18610 # The last name is the one that the linker finds with -lNAME.
18611 library_names_spec=$lt_library_names_spec
18612
18613 # The coded name of the library, if different from the real name.
18614 soname_spec=$lt_soname_spec
18615
18616 # Commands used to build and install an old-style archive.
18617 RANLIB=$lt_RANLIB
18618 old_archive_cmds=$lt_old_archive_cmds_GCJ
18619 old_postinstall_cmds=$lt_old_postinstall_cmds
18620 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18621
18622 # Create an old-style archive from a shared archive.
18623 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18624
18625 # Create a temporary old-style archive to link instead of a shared archive.
18626 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18627
18628 # Commands used to build and install a shared archive.
18629 archive_cmds=$lt_archive_cmds_GCJ
18630 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18631 postinstall_cmds=$lt_postinstall_cmds
18632 postuninstall_cmds=$lt_postuninstall_cmds
18633
18634 # Commands used to build a loadable module (assumed same as above if empty)
18635 module_cmds=$lt_module_cmds_GCJ
18636 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18637
18638 # Commands to strip libraries.
18639 old_striplib=$lt_old_striplib
18640 striplib=$lt_striplib
18641
18642 # Dependencies to place before the objects being linked to create a
18643 # shared library.
18644 predep_objects=$lt_predep_objects_GCJ
18645
18646 # Dependencies to place after the objects being linked to create a
18647 # shared library.
18648 postdep_objects=$lt_postdep_objects_GCJ
18649
18650 # Dependencies to place before the objects being linked to create a
18651 # shared library.
18652 predeps=$lt_predeps_GCJ
18653
18654 # Dependencies to place after the objects being linked to create a
18655 # shared library.
18656 postdeps=$lt_postdeps_GCJ
18657
18658 # The library search path used internally by the compiler when linking
18659 # a shared library.
18660 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18661
18662 # Method to check whether dependent libraries are shared objects.
18663 deplibs_check_method=$lt_deplibs_check_method
18664
18665 # Command to use when deplibs_check_method == file_magic.
18666 file_magic_cmd=$lt_file_magic_cmd
18667
18668 # Flag that allows shared libraries with undefined symbols to be built.
18669 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18670
18671 # Flag that forces no undefined symbols.
18672 no_undefined_flag=$lt_no_undefined_flag_GCJ
18673
18674 # Commands used to finish a libtool library installation in a directory.
18675 finish_cmds=$lt_finish_cmds
18676
18677 # Same as above, but a single script fragment to be evaled but not shown.
18678 finish_eval=$lt_finish_eval
18679
18680 # Take the output of nm and produce a listing of raw symbols and C names.
18681 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18682
18683 # Transform the output of nm in a proper C declaration
18684 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18685
18686 # Transform the output of nm in a C name address pair
18687 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18688
18689 # This is the shared library runtime path variable.
18690 runpath_var=$runpath_var
18691
18692 # This is the shared library path variable.
18693 shlibpath_var=$shlibpath_var
18694
18695 # Is shlibpath searched before the hard-coded library search path?
18696 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18697
18698 # How to hardcode a shared library path into an executable.
18699 hardcode_action=$hardcode_action_GCJ
18700
18701 # Whether we should hardcode library paths into libraries.
18702 hardcode_into_libs=$hardcode_into_libs
18703
18704 # Flag to hardcode \$libdir into a binary during linking.
18705 # This must work even if \$libdir does not exist.
18706 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18707
18708 # If ld is used when linking, flag to hardcode \$libdir into
18709 # a binary during linking. This must work even if \$libdir does
18710 # not exist.
18711 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18712
18713 # Whether we need a single -rpath flag with a separated argument.
18714 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18715
18716 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18717 # resulting binary.
18718 hardcode_direct=$hardcode_direct_GCJ
18719
18720 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18721 # resulting binary.
18722 hardcode_minus_L=$hardcode_minus_L_GCJ
18723
18724 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18725 # the resulting binary.
18726 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18727
18728 # Set to yes if building a shared library automatically hardcodes DIR into the library
18729 # and all subsequent libraries and executables linked against it.
18730 hardcode_automatic=$hardcode_automatic_GCJ
18731
18732 # Variables whose values should be saved in libtool wrapper scripts and
18733 # restored at relink time.
18734 variables_saved_for_relink="$variables_saved_for_relink"
18735
18736 # Whether libtool must link a program against all its dependency libraries.
18737 link_all_deplibs=$link_all_deplibs_GCJ
18738
18739 # Compile-time system search path for libraries
18740 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18741
18742 # Run-time system search path for libraries
18743 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18744
18745 # Fix the shell variable \$srcfile for the compiler.
18746 fix_srcfile_path="$fix_srcfile_path_GCJ"
18747
18748 # Set to yes if exported symbols are required.
18749 always_export_symbols=$always_export_symbols_GCJ
18750
18751 # The commands to list exported symbols.
18752 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18753
18754 # The commands to extract the exported symbol list from a shared archive.
18755 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18756
18757 # Symbols that should not be listed in the preloaded symbols.
18758 exclude_expsyms=$lt_exclude_expsyms_GCJ
18759
18760 # Symbols that must always be exported.
18761 include_expsyms=$lt_include_expsyms_GCJ
18762
18763 # ### END LIBTOOL TAG CONFIG: $tagname
18764
18765 __EOF__
18766
18767
18768 else
18769 # If there is no Makefile yet, we rely on a make rule to execute
18770 # `config.status --recheck' to rerun these tests and create the
18771 # libtool script then.
18772 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18773 if test -f "$ltmain_in"; then
18774 test -f Makefile && make "$ltmain"
18775 fi
18776 fi
18777
18778
18779 ac_ext=c
18780 ac_cpp='$CPP $CPPFLAGS'
18781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18784
18785 CC="$lt_save_CC"
18786
18787 else
18788 tagname=""
18789 fi
18790 ;;
18791
18792 RC)
18793
18794
18795 # Source file extension for RC test sources.
18796 ac_ext=rc
18797
18798 # Object file extension for compiled RC test sources.
18799 objext=o
18800 objext_RC=$objext
18801
18802 # Code to be used in simple compile tests
18803 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18804
18805 # Code to be used in simple link tests
18806 lt_simple_link_test_code="$lt_simple_compile_test_code"
18807
18808 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18809
18810 # If no C compiler was specified, use CC.
18811 LTCC=${LTCC-"$CC"}
18812
18813 # If no C compiler flags were specified, use CFLAGS.
18814 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18815
18816 # Allow CC to be a program name with arguments.
18817 compiler=$CC
18818
18819
18820 # save warnings/boilerplate of simple test code
18821 ac_outfile=conftest.$ac_objext
18822 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18823 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18824 _lt_compiler_boilerplate=`cat conftest.err`
18825 $rm conftest*
18826
18827 ac_outfile=conftest.$ac_objext
18828 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18829 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18830 _lt_linker_boilerplate=`cat conftest.err`
18831 $rm conftest*
18832
18833
18834 # Allow CC to be a program name with arguments.
18835 lt_save_CC="$CC"
18836 CC=${RC-"windres"}
18837 compiler=$CC
18838 compiler_RC=$CC
18839 for cc_temp in $compiler""; do
18840 case $cc_temp in
18841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18843 \-*) ;;
18844 *) break;;
18845 esac
18846 done
18847 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18848
18849 lt_cv_prog_compiler_c_o_RC=yes
18850
18851 # The else clause should only fire when bootstrapping the
18852 # libtool distribution, otherwise you forgot to ship ltmain.sh
18853 # with your package, and you will get complaints that there are
18854 # no rules to generate ltmain.sh.
18855 if test -f "$ltmain"; then
18856 # See if we are running on zsh, and set the options which allow our commands through
18857 # without removal of \ escapes.
18858 if test -n "${ZSH_VERSION+set}" ; then
18859 setopt NO_GLOB_SUBST
18860 fi
18861 # Now quote all the things that may contain metacharacters while being
18862 # careful not to overquote the AC_SUBSTed values. We take copies of the
18863 # variables and quote the copies for generation of the libtool script.
18864 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18865 SED SHELL STRIP \
18866 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18867 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18868 deplibs_check_method reload_flag reload_cmds need_locks \
18869 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18870 lt_cv_sys_global_symbol_to_c_name_address \
18871 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18872 old_postinstall_cmds old_postuninstall_cmds \
18873 compiler_RC \
18874 CC_RC \
18875 LD_RC \
18876 lt_prog_compiler_wl_RC \
18877 lt_prog_compiler_pic_RC \
18878 lt_prog_compiler_static_RC \
18879 lt_prog_compiler_no_builtin_flag_RC \
18880 export_dynamic_flag_spec_RC \
18881 thread_safe_flag_spec_RC \
18882 whole_archive_flag_spec_RC \
18883 enable_shared_with_static_runtimes_RC \
18884 old_archive_cmds_RC \
18885 old_archive_from_new_cmds_RC \
18886 predep_objects_RC \
18887 postdep_objects_RC \
18888 predeps_RC \
18889 postdeps_RC \
18890 compiler_lib_search_path_RC \
18891 archive_cmds_RC \
18892 archive_expsym_cmds_RC \
18893 postinstall_cmds_RC \
18894 postuninstall_cmds_RC \
18895 old_archive_from_expsyms_cmds_RC \
18896 allow_undefined_flag_RC \
18897 no_undefined_flag_RC \
18898 export_symbols_cmds_RC \
18899 hardcode_libdir_flag_spec_RC \
18900 hardcode_libdir_flag_spec_ld_RC \
18901 hardcode_libdir_separator_RC \
18902 hardcode_automatic_RC \
18903 module_cmds_RC \
18904 module_expsym_cmds_RC \
18905 lt_cv_prog_compiler_c_o_RC \
18906 exclude_expsyms_RC \
18907 include_expsyms_RC; do
18908
18909 case $var in
18910 old_archive_cmds_RC | \
18911 old_archive_from_new_cmds_RC | \
18912 archive_cmds_RC | \
18913 archive_expsym_cmds_RC | \
18914 module_cmds_RC | \
18915 module_expsym_cmds_RC | \
18916 old_archive_from_expsyms_cmds_RC | \
18917 export_symbols_cmds_RC | \
18918 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18919 postinstall_cmds | postuninstall_cmds | \
18920 old_postinstall_cmds | old_postuninstall_cmds | \
18921 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18922 # Double-quote double-evaled strings.
18923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18924 ;;
18925 *)
18926 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18927 ;;
18928 esac
18929 done
18930
18931 case $lt_echo in
18932 *'\$0 --fallback-echo"')
18933 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18934 ;;
18935 esac
18936
18937 cfgfile="$ofile"
18938
18939 cat <<__EOF__ >> "$cfgfile"
18940 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18941
18942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18943
18944 # Shell to use when invoking shell scripts.
18945 SHELL=$lt_SHELL
18946
18947 # Whether or not to build shared libraries.
18948 build_libtool_libs=$enable_shared
18949
18950 # Whether or not to build static libraries.
18951 build_old_libs=$enable_static
18952
18953 # Whether or not to add -lc for building shared libraries.
18954 build_libtool_need_lc=$archive_cmds_need_lc_RC
18955
18956 # Whether or not to disallow shared libs when runtime libs are static
18957 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18958
18959 # Whether or not to optimize for fast installation.
18960 fast_install=$enable_fast_install
18961
18962 # The host system.
18963 host_alias=$host_alias
18964 host=$host
18965 host_os=$host_os
18966
18967 # The build system.
18968 build_alias=$build_alias
18969 build=$build
18970 build_os=$build_os
18971
18972 # An echo program that does not interpret backslashes.
18973 echo=$lt_echo
18974
18975 # The archiver.
18976 AR=$lt_AR
18977 AR_FLAGS=$lt_AR_FLAGS
18978
18979 # A C compiler.
18980 LTCC=$lt_LTCC
18981
18982 # LTCC compiler flags.
18983 LTCFLAGS=$lt_LTCFLAGS
18984
18985 # A language-specific compiler.
18986 CC=$lt_compiler_RC
18987
18988 # Is the compiler the GNU C compiler?
18989 with_gcc=$GCC_RC
18990
18991 # An ERE matcher.
18992 EGREP=$lt_EGREP
18993
18994 # The linker used to build libraries.
18995 LD=$lt_LD_RC
18996
18997 # Whether we need hard or soft links.
18998 LN_S=$lt_LN_S
18999
19000 # A BSD-compatible nm program.
19001 NM=$lt_NM
19002
19003 # A symbol stripping program
19004 STRIP=$lt_STRIP
19005
19006 # Used to examine libraries when file_magic_cmd begins "file"
19007 MAGIC_CMD=$MAGIC_CMD
19008
19009 # Used on cygwin: DLL creation program.
19010 DLLTOOL="$DLLTOOL"
19011
19012 # Used on cygwin: object dumper.
19013 OBJDUMP="$OBJDUMP"
19014
19015 # Used on cygwin: assembler.
19016 AS="$AS"
19017
19018 # The name of the directory that contains temporary libtool files.
19019 objdir=$objdir
19020
19021 # How to create reloadable object files.
19022 reload_flag=$lt_reload_flag
19023 reload_cmds=$lt_reload_cmds
19024
19025 # How to pass a linker flag through the compiler.
19026 wl=$lt_lt_prog_compiler_wl_RC
19027
19028 # Object file suffix (normally "o").
19029 objext="$ac_objext"
19030
19031 # Old archive suffix (normally "a").
19032 libext="$libext"
19033
19034 # Shared library suffix (normally ".so").
19035 shrext_cmds='$shrext_cmds'
19036
19037 # Executable file suffix (normally "").
19038 exeext="$exeext"
19039
19040 # Additional compiler flags for building library objects.
19041 pic_flag=$lt_lt_prog_compiler_pic_RC
19042 pic_mode=$pic_mode
19043
19044 # What is the maximum length of a command?
19045 max_cmd_len=$lt_cv_sys_max_cmd_len
19046
19047 # Does compiler simultaneously support -c and -o options?
19048 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19049
19050 # Must we lock files when doing compilation?
19051 need_locks=$lt_need_locks
19052
19053 # Do we need the lib prefix for modules?
19054 need_lib_prefix=$need_lib_prefix
19055
19056 # Do we need a version for libraries?
19057 need_version=$need_version
19058
19059 # Whether dlopen is supported.
19060 dlopen_support=$enable_dlopen
19061
19062 # Whether dlopen of programs is supported.
19063 dlopen_self=$enable_dlopen_self
19064
19065 # Whether dlopen of statically linked programs is supported.
19066 dlopen_self_static=$enable_dlopen_self_static
19067
19068 # Compiler flag to prevent dynamic linking.
19069 link_static_flag=$lt_lt_prog_compiler_static_RC
19070
19071 # Compiler flag to turn off builtin functions.
19072 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19073
19074 # Compiler flag to allow reflexive dlopens.
19075 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19076
19077 # Compiler flag to generate shared objects directly from archives.
19078 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19079
19080 # Compiler flag to generate thread-safe objects.
19081 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19082
19083 # Library versioning type.
19084 version_type=$version_type
19085
19086 # Format of library name prefix.
19087 libname_spec=$lt_libname_spec
19088
19089 # List of archive names. First name is the real one, the rest are links.
19090 # The last name is the one that the linker finds with -lNAME.
19091 library_names_spec=$lt_library_names_spec
19092
19093 # The coded name of the library, if different from the real name.
19094 soname_spec=$lt_soname_spec
19095
19096 # Commands used to build and install an old-style archive.
19097 RANLIB=$lt_RANLIB
19098 old_archive_cmds=$lt_old_archive_cmds_RC
19099 old_postinstall_cmds=$lt_old_postinstall_cmds
19100 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19101
19102 # Create an old-style archive from a shared archive.
19103 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19104
19105 # Create a temporary old-style archive to link instead of a shared archive.
19106 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19107
19108 # Commands used to build and install a shared archive.
19109 archive_cmds=$lt_archive_cmds_RC
19110 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19111 postinstall_cmds=$lt_postinstall_cmds
19112 postuninstall_cmds=$lt_postuninstall_cmds
19113
19114 # Commands used to build a loadable module (assumed same as above if empty)
19115 module_cmds=$lt_module_cmds_RC
19116 module_expsym_cmds=$lt_module_expsym_cmds_RC
19117
19118 # Commands to strip libraries.
19119 old_striplib=$lt_old_striplib
19120 striplib=$lt_striplib
19121
19122 # Dependencies to place before the objects being linked to create a
19123 # shared library.
19124 predep_objects=$lt_predep_objects_RC
19125
19126 # Dependencies to place after the objects being linked to create a
19127 # shared library.
19128 postdep_objects=$lt_postdep_objects_RC
19129
19130 # Dependencies to place before the objects being linked to create a
19131 # shared library.
19132 predeps=$lt_predeps_RC
19133
19134 # Dependencies to place after the objects being linked to create a
19135 # shared library.
19136 postdeps=$lt_postdeps_RC
19137
19138 # The library search path used internally by the compiler when linking
19139 # a shared library.
19140 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19141
19142 # Method to check whether dependent libraries are shared objects.
19143 deplibs_check_method=$lt_deplibs_check_method
19144
19145 # Command to use when deplibs_check_method == file_magic.
19146 file_magic_cmd=$lt_file_magic_cmd
19147
19148 # Flag that allows shared libraries with undefined symbols to be built.
19149 allow_undefined_flag=$lt_allow_undefined_flag_RC
19150
19151 # Flag that forces no undefined symbols.
19152 no_undefined_flag=$lt_no_undefined_flag_RC
19153
19154 # Commands used to finish a libtool library installation in a directory.
19155 finish_cmds=$lt_finish_cmds
19156
19157 # Same as above, but a single script fragment to be evaled but not shown.
19158 finish_eval=$lt_finish_eval
19159
19160 # Take the output of nm and produce a listing of raw symbols and C names.
19161 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19162
19163 # Transform the output of nm in a proper C declaration
19164 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19165
19166 # Transform the output of nm in a C name address pair
19167 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19168
19169 # This is the shared library runtime path variable.
19170 runpath_var=$runpath_var
19171
19172 # This is the shared library path variable.
19173 shlibpath_var=$shlibpath_var
19174
19175 # Is shlibpath searched before the hard-coded library search path?
19176 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19177
19178 # How to hardcode a shared library path into an executable.
19179 hardcode_action=$hardcode_action_RC
19180
19181 # Whether we should hardcode library paths into libraries.
19182 hardcode_into_libs=$hardcode_into_libs
19183
19184 # Flag to hardcode \$libdir into a binary during linking.
19185 # This must work even if \$libdir does not exist.
19186 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19187
19188 # If ld is used when linking, flag to hardcode \$libdir into
19189 # a binary during linking. This must work even if \$libdir does
19190 # not exist.
19191 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19192
19193 # Whether we need a single -rpath flag with a separated argument.
19194 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19195
19196 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19197 # resulting binary.
19198 hardcode_direct=$hardcode_direct_RC
19199
19200 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19201 # resulting binary.
19202 hardcode_minus_L=$hardcode_minus_L_RC
19203
19204 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19205 # the resulting binary.
19206 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19207
19208 # Set to yes if building a shared library automatically hardcodes DIR into the library
19209 # and all subsequent libraries and executables linked against it.
19210 hardcode_automatic=$hardcode_automatic_RC
19211
19212 # Variables whose values should be saved in libtool wrapper scripts and
19213 # restored at relink time.
19214 variables_saved_for_relink="$variables_saved_for_relink"
19215
19216 # Whether libtool must link a program against all its dependency libraries.
19217 link_all_deplibs=$link_all_deplibs_RC
19218
19219 # Compile-time system search path for libraries
19220 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19221
19222 # Run-time system search path for libraries
19223 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19224
19225 # Fix the shell variable \$srcfile for the compiler.
19226 fix_srcfile_path="$fix_srcfile_path_RC"
19227
19228 # Set to yes if exported symbols are required.
19229 always_export_symbols=$always_export_symbols_RC
19230
19231 # The commands to list exported symbols.
19232 export_symbols_cmds=$lt_export_symbols_cmds_RC
19233
19234 # The commands to extract the exported symbol list from a shared archive.
19235 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19236
19237 # Symbols that should not be listed in the preloaded symbols.
19238 exclude_expsyms=$lt_exclude_expsyms_RC
19239
19240 # Symbols that must always be exported.
19241 include_expsyms=$lt_include_expsyms_RC
19242
19243 # ### END LIBTOOL TAG CONFIG: $tagname
19244
19245 __EOF__
19246
19247
19248 else
19249 # If there is no Makefile yet, we rely on a make rule to execute
19250 # `config.status --recheck' to rerun these tests and create the
19251 # libtool script then.
19252 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19253 if test -f "$ltmain_in"; then
19254 test -f Makefile && make "$ltmain"
19255 fi
19256 fi
19257
19258
19259 ac_ext=c
19260 ac_cpp='$CPP $CPPFLAGS'
19261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19264
19265 CC="$lt_save_CC"
19266
19267 ;;
19268
19269 *)
19270 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19271 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19272 { (exit 1); exit 1; }; }
19273 ;;
19274 esac
19275
19276 # Append the new tag name to the list of available tags.
19277 if test -n "$tagname" ; then
19278 available_tags="$available_tags $tagname"
19279 fi
19280 fi
19281 done
19282 IFS="$lt_save_ifs"
19283
19284 # Now substitute the updated list of available tags.
19285 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19286 mv "${ofile}T" "$ofile"
19287 chmod +x "$ofile"
19288 else
19289 rm -f "${ofile}T"
19290 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19291 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19292 { (exit 1); exit 1; }; }
19293 fi
19294 fi
19295
19296
19297
19298 # This can be used to rebuild libtool when needed
19299 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19300
19301 # Always use our own libtool.
19302 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19303
19304 # Prevent multiple expansion
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326 if test x$GCC = xyes
19327 then
19328 CFLAGS="-Wall $CFLAGS"
19329 fi
19330 if test x$GXX = xyes
19331 then
19332 CXXFLAGS="-Wall $CXXFLAGS"
19333 fi
19334
19335 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19336 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19337 if test "${ac_cv_c_const+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 else
19340 cat >conftest.$ac_ext <<_ACEOF
19341 /* confdefs.h. */
19342 _ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19346
19347 int
19348 main ()
19349 {
19350 /* FIXME: Include the comments suggested by Paul. */
19351 #ifndef __cplusplus
19352 /* Ultrix mips cc rejects this. */
19353 typedef int charset[2];
19354 const charset cs;
19355 /* SunOS 4.1.1 cc rejects this. */
19356 char const *const *pcpcc;
19357 char **ppc;
19358 /* NEC SVR4.0.2 mips cc rejects this. */
19359 struct point {int x, y;};
19360 static struct point const zero = {0,0};
19361 /* AIX XL C 1.02.0.0 rejects this.
19362 It does not let you subtract one const X* pointer from another in
19363 an arm of an if-expression whose if-part is not a constant
19364 expression */
19365 const char *g = "string";
19366 pcpcc = &g + (g ? g-g : 0);
19367 /* HPUX 7.0 cc rejects these. */
19368 ++pcpcc;
19369 ppc = (char**) pcpcc;
19370 pcpcc = (char const *const *) ppc;
19371 { /* SCO 3.2v4 cc rejects this. */
19372 char *t;
19373 char const *s = 0 ? (char *) 0 : (char const *) 0;
19374
19375 *t++ = 0;
19376 if (s) return 0;
19377 }
19378 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19379 int x[] = {25, 17};
19380 const int *foo = &x[0];
19381 ++foo;
19382 }
19383 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19384 typedef const int *iptr;
19385 iptr p = 0;
19386 ++p;
19387 }
19388 { /* AIX XL C 1.02.0.0 rejects this saying
19389 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19390 struct s { int j; const int *ap[3]; };
19391 struct s *b; b->j = 5;
19392 }
19393 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19394 const int foo = 10;
19395 if (!foo) return 0;
19396 }
19397 return !cs[0] && !zero.x;
19398 #endif
19399
19400 ;
19401 return 0;
19402 }
19403 _ACEOF
19404 rm -f conftest.$ac_objext
19405 if { (ac_try="$ac_compile"
19406 case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19409 esac
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_compile") 2>conftest.er1
19412 ac_status=$?
19413 grep -v '^ *+' conftest.er1 >conftest.err
19414 rm -f conftest.er1
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } && {
19418 test -z "$ac_c_werror_flag" ||
19419 test ! -s conftest.err
19420 } && test -s conftest.$ac_objext; then
19421 ac_cv_c_const=yes
19422 else
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426 ac_cv_c_const=no
19427 fi
19428
19429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19430 fi
19431 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19432 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19433 if test $ac_cv_c_const = no; then
19434
19435 cat >>confdefs.h <<\_ACEOF
19436 #define const
19437 _ACEOF
19438
19439 fi
19440
19441 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19442 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19443 if test "${ac_cv_header_stdc+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 else
19446 cat >conftest.$ac_ext <<_ACEOF
19447 /* confdefs.h. */
19448 _ACEOF
19449 cat confdefs.h >>conftest.$ac_ext
19450 cat >>conftest.$ac_ext <<_ACEOF
19451 /* end confdefs.h. */
19452 #include <stdlib.h>
19453 #include <stdarg.h>
19454 #include <string.h>
19455 #include <float.h>
19456
19457 int
19458 main ()
19459 {
19460
19461 ;
19462 return 0;
19463 }
19464 _ACEOF
19465 rm -f conftest.$ac_objext
19466 if { (ac_try="$ac_compile"
19467 case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19470 esac
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_compile") 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } && {
19479 test -z "$ac_c_werror_flag" ||
19480 test ! -s conftest.err
19481 } && test -s conftest.$ac_objext; then
19482 ac_cv_header_stdc=yes
19483 else
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487 ac_cv_header_stdc=no
19488 fi
19489
19490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491
19492 if test $ac_cv_header_stdc = yes; then
19493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19494 cat >conftest.$ac_ext <<_ACEOF
19495 /* confdefs.h. */
19496 _ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19500 #include <string.h>
19501
19502 _ACEOF
19503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19504 $EGREP "memchr" >/dev/null 2>&1; then
19505 :
19506 else
19507 ac_cv_header_stdc=no
19508 fi
19509 rm -f conftest*
19510
19511 fi
19512
19513 if test $ac_cv_header_stdc = yes; then
19514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h. */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19521 #include <stdlib.h>
19522
19523 _ACEOF
19524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19525 $EGREP "free" >/dev/null 2>&1; then
19526 :
19527 else
19528 ac_cv_header_stdc=no
19529 fi
19530 rm -f conftest*
19531
19532 fi
19533
19534 if test $ac_cv_header_stdc = yes; then
19535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19536 if test "$cross_compiling" = yes; then
19537 :
19538 else
19539 cat >conftest.$ac_ext <<_ACEOF
19540 /* confdefs.h. */
19541 _ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h. */
19545 #include <ctype.h>
19546 #include <stdlib.h>
19547 #if ((' ' & 0x0FF) == 0x020)
19548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19550 #else
19551 # define ISLOWER(c) \
19552 (('a' <= (c) && (c) <= 'i') \
19553 || ('j' <= (c) && (c) <= 'r') \
19554 || ('s' <= (c) && (c) <= 'z'))
19555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19556 #endif
19557
19558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19559 int
19560 main ()
19561 {
19562 int i;
19563 for (i = 0; i < 256; i++)
19564 if (XOR (islower (i), ISLOWER (i))
19565 || toupper (i) != TOUPPER (i))
19566 return 2;
19567 return 0;
19568 }
19569 _ACEOF
19570 rm -f conftest$ac_exeext
19571 if { (ac_try="$ac_link"
19572 case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19575 esac
19576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577 (eval "$ac_link") 2>&5
19578 ac_status=$?
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19581 { (case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19584 esac
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_try") 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; }; then
19590 :
19591 else
19592 echo "$as_me: program exited with status $ac_status" >&5
19593 echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.$ac_ext >&5
19595
19596 ( exit $ac_status )
19597 ac_cv_header_stdc=no
19598 fi
19599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19600 fi
19601
19602
19603 fi
19604 fi
19605 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19606 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19607 if test $ac_cv_header_stdc = yes; then
19608
19609 cat >>confdefs.h <<\_ACEOF
19610 #define STDC_HEADERS 1
19611 _ACEOF
19612
19613 fi
19614
19615
19616
19617
19618 for ac_header in fcntl.h string.h syslog.h
19619 do
19620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19625 echo $ECHO_N "(cached) $ECHO_C" >&6
19626 fi
19627 ac_res=`eval echo '${'$as_ac_Header'}'`
19628 { echo "$as_me:$LINENO: result: $ac_res" >&5
19629 echo "${ECHO_T}$ac_res" >&6; }
19630 else
19631 # Is the header compilable?
19632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19634 cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h. */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19640 $ac_includes_default
19641 #include <$ac_header>
19642 _ACEOF
19643 rm -f conftest.$ac_objext
19644 if { (ac_try="$ac_compile"
19645 case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19648 esac
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_compile") 2>conftest.er1
19651 ac_status=$?
19652 grep -v '^ *+' conftest.er1 >conftest.err
19653 rm -f conftest.er1
19654 cat conftest.err >&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } && {
19657 test -z "$ac_c_werror_flag" ||
19658 test ! -s conftest.err
19659 } && test -s conftest.$ac_objext; then
19660 ac_header_compiler=yes
19661 else
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665 ac_header_compiler=no
19666 fi
19667
19668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19670 echo "${ECHO_T}$ac_header_compiler" >&6; }
19671
19672 # Is the header present?
19673 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19675 cat >conftest.$ac_ext <<_ACEOF
19676 /* confdefs.h. */
19677 _ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h. */
19681 #include <$ac_header>
19682 _ACEOF
19683 if { (ac_try="$ac_cpp conftest.$ac_ext"
19684 case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } >/dev/null && {
19696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 }; then
19699 ac_header_preproc=yes
19700 else
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19703
19704 ac_header_preproc=no
19705 fi
19706
19707 rm -f conftest.err conftest.$ac_ext
19708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19709 echo "${ECHO_T}$ac_header_preproc" >&6; }
19710
19711 # So? What about this header?
19712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19713 yes:no: )
19714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19718 ac_header_preproc=yes
19719 ;;
19720 no:yes:* )
19721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19728 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19733 ( cat <<\_ASBOX
19734 ## -------------------------------------------------- ##
19735 ## Report this to courier-users@lists.sourceforge.net ##
19736 ## -------------------------------------------------- ##
19737 _ASBOX
19738 ) | sed "s/^/$as_me: WARNING: /" >&2
19739 ;;
19740 esac
19741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19745 else
19746 eval "$as_ac_Header=\$ac_header_preproc"
19747 fi
19748 ac_res=`eval echo '${'$as_ac_Header'}'`
19749 { echo "$as_me:$LINENO: result: $ac_res" >&5
19750 echo "${ECHO_T}$ac_res" >&6; }
19751
19752 fi
19753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19754 cat >>confdefs.h <<_ACEOF
19755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19756 _ACEOF
19757
19758 fi
19759
19760 done
19761
19762 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19763 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
19764 if test "${ac_cv_type_uid_t+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19766 else
19767 cat >conftest.$ac_ext <<_ACEOF
19768 /* confdefs.h. */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19773 #include <sys/types.h>
19774
19775 _ACEOF
19776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19777 $EGREP "uid_t" >/dev/null 2>&1; then
19778 ac_cv_type_uid_t=yes
19779 else
19780 ac_cv_type_uid_t=no
19781 fi
19782 rm -f conftest*
19783
19784 fi
19785 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19786 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
19787 if test $ac_cv_type_uid_t = no; then
19788
19789 cat >>confdefs.h <<\_ACEOF
19790 #define uid_t int
19791 _ACEOF
19792
19793
19794 cat >>confdefs.h <<\_ACEOF
19795 #define gid_t int
19796 _ACEOF
19797
19798 fi
19799
19800
19801 for ac_func in strchr
19802 do
19803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19807 echo $ECHO_N "(cached) $ECHO_C" >&6
19808 else
19809 cat >conftest.$ac_ext <<_ACEOF
19810 /* confdefs.h. */
19811 _ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h. */
19815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19817 #define $ac_func innocuous_$ac_func
19818
19819 /* System header to define __stub macros and hopefully few prototypes,
19820 which can conflict with char $ac_func (); below.
19821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19822 <limits.h> exists even on freestanding compilers. */
19823
19824 #ifdef __STDC__
19825 # include <limits.h>
19826 #else
19827 # include <assert.h>
19828 #endif
19829
19830 #undef $ac_func
19831
19832 /* Override any GCC internal prototype to avoid an error.
19833 Use char because int might match the return type of a GCC
19834 builtin and then its argument prototype would still apply. */
19835 #ifdef __cplusplus
19836 extern "C"
19837 #endif
19838 char $ac_func ();
19839 /* The GNU C library defines this for functions which it implements
19840 to always fail with ENOSYS. Some functions are actually named
19841 something starting with __ and the normal name is an alias. */
19842 #if defined __stub_$ac_func || defined __stub___$ac_func
19843 choke me
19844 #endif
19845
19846 int
19847 main ()
19848 {
19849 return $ac_func ();
19850 ;
19851 return 0;
19852 }
19853 _ACEOF
19854 rm -f conftest.$ac_objext conftest$ac_exeext
19855 if { (ac_try="$ac_link"
19856 case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval "$ac_link") 2>conftest.er1
19862 ac_status=$?
19863 grep -v '^ *+' conftest.er1 >conftest.err
19864 rm -f conftest.er1
19865 cat conftest.err >&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } && {
19868 test -z "$ac_c_werror_flag" ||
19869 test ! -s conftest.err
19870 } && test -s conftest$ac_exeext &&
19871 $as_test_x conftest$ac_exeext; then
19872 eval "$as_ac_var=yes"
19873 else
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877 eval "$as_ac_var=no"
19878 fi
19879
19880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19881 conftest$ac_exeext conftest.$ac_ext
19882 fi
19883 ac_res=`eval echo '${'$as_ac_var'}'`
19884 { echo "$as_me:$LINENO: result: $ac_res" >&5
19885 echo "${ECHO_T}$ac_res" >&6; }
19886 if test `eval echo '${'$as_ac_var'}'` = yes; then
19887 cat >>confdefs.h <<_ACEOF
19888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19889 _ACEOF
19890
19891 fi
19892 done
19893
19894
19895
19896 # Check whether --with-syslog was given.
19897 if test "${with_syslog+set}" = set; then
19898 withval=$with_syslog; logdest="LOG_$withval"
19899 else
19900 logdest="LOG_MAIL"
19901 fi
19902
19903
19904
19905 cat >>confdefs.h <<_ACEOF
19906 #define LOG_DEST $logdest
19907 _ACEOF
19908
19909 if test -d ${srcdir}/../docbook; then
19910 HAVE_SGML_TRUE=
19911 HAVE_SGML_FALSE='#'
19912 else
19913 HAVE_SGML_TRUE='#'
19914 HAVE_SGML_FALSE=
19915 fi
19916
19917 ac_config_files="$ac_config_files Makefile"
19918
19919 cat >confcache <<\_ACEOF
19920 # This file is a shell script that caches the results of configure
19921 # tests run on this system so they can be shared between configure
19922 # scripts and configure runs, see configure's option --config-cache.
19923 # It is not useful on other systems. If it contains results you don't
19924 # want to keep, you may remove or edit it.
19925 #
19926 # config.status only pays attention to the cache file if you give it
19927 # the --recheck option to rerun configure.
19928 #
19929 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19930 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19931 # following values.
19932
19933 _ACEOF
19934
19935 # The following way of writing the cache mishandles newlines in values,
19936 # but we know of no workaround that is simple, portable, and efficient.
19937 # So, we kill variables containing newlines.
19938 # Ultrix sh set writes to stderr and can't be redirected directly,
19939 # and sets the high bit in the cache file unless we assign to the vars.
19940 (
19941 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19942 eval ac_val=\$$ac_var
19943 case $ac_val in #(
19944 *${as_nl}*)
19945 case $ac_var in #(
19946 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19947 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19948 esac
19949 case $ac_var in #(
19950 _ | IFS | as_nl) ;; #(
19951 *) $as_unset $ac_var ;;
19952 esac ;;
19953 esac
19954 done
19955
19956 (set) 2>&1 |
19957 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19958 *${as_nl}ac_space=\ *)
19959 # `set' does not quote correctly, so add quotes (double-quote
19960 # substitution turns \\\\ into \\, and sed turns \\ into \).
19961 sed -n \
19962 "s/'/'\\\\''/g;
19963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19964 ;; #(
19965 *)
19966 # `set' quotes correctly as required by POSIX, so do not add quotes.
19967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19968 ;;
19969 esac |
19970 sort
19971 ) |
19972 sed '
19973 /^ac_cv_env_/b end
19974 t clear
19975 :clear
19976 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19977 t end
19978 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19979 :end' >>confcache
19980 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19981 if test -w "$cache_file"; then
19982 test "x$cache_file" != "x/dev/null" &&
19983 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19984 echo "$as_me: updating cache $cache_file" >&6;}
19985 cat confcache >$cache_file
19986 else
19987 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19988 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19989 fi
19990 fi
19991 rm -f confcache
19992
19993 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19994 # Let make expand exec_prefix.
19995 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19996
19997 DEFS=-DHAVE_CONFIG_H
19998
19999 ac_libobjs=
20000 ac_ltlibobjs=
20001 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20002 # 1. Remove the extension, and $U if already installed.
20003 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20004 ac_i=`echo "$ac_i" | sed "$ac_script"`
20005 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20006 # will be set to the directory where LIBOBJS objects are built.
20007 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20008 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20009 done
20010 LIBOBJS=$ac_libobjs
20011
20012 LTLIBOBJS=$ac_ltlibobjs
20013
20014
20015 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20016 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20017 Usually this means the macro was only invoked conditionally." >&5
20018 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20019 Usually this means the macro was only invoked conditionally." >&2;}
20020 { (exit 1); exit 1; }; }
20021 fi
20022 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20023 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20024 Usually this means the macro was only invoked conditionally." >&5
20025 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20026 Usually this means the macro was only invoked conditionally." >&2;}
20027 { (exit 1); exit 1; }; }
20028 fi
20029 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20030 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20031 Usually this means the macro was only invoked conditionally." >&5
20032 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20033 Usually this means the macro was only invoked conditionally." >&2;}
20034 { (exit 1); exit 1; }; }
20035 fi
20036 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
20037 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
20038 Usually this means the macro was only invoked conditionally." >&5
20039 echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
20040 Usually this means the macro was only invoked conditionally." >&2;}
20041 { (exit 1); exit 1; }; }
20042 fi
20043
20044 : ${CONFIG_STATUS=./config.status}
20045 ac_clean_files_save=$ac_clean_files
20046 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20047 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20048 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20049 cat >$CONFIG_STATUS <<_ACEOF
20050 #! $SHELL
20051 # Generated by $as_me.
20052 # Run this file to recreate the current configuration.
20053 # Compiler output produced by configure, useful for debugging
20054 # configure, is in config.log if it exists.
20055
20056 debug=false
20057 ac_cs_recheck=false
20058 ac_cs_silent=false
20059 SHELL=\${CONFIG_SHELL-$SHELL}
20060 _ACEOF
20061
20062 cat >>$CONFIG_STATUS <<\_ACEOF
20063 ## --------------------- ##
20064 ## M4sh Initialization. ##
20065 ## --------------------- ##
20066
20067 # Be more Bourne compatible
20068 DUALCASE=1; export DUALCASE # for MKS sh
20069 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20070 emulate sh
20071 NULLCMD=:
20072 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20073 # is contrary to our usage. Disable this feature.
20074 alias -g '${1+"$@"}'='"$@"'
20075 setopt NO_GLOB_SUBST
20076 else
20077 case `(set -o) 2>/dev/null` in
20078 *posix*) set -o posix ;;
20079 esac
20080
20081 fi
20082
20083
20084
20085
20086 # PATH needs CR
20087 # Avoid depending upon Character Ranges.
20088 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20089 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20090 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20091 as_cr_digits='0123456789'
20092 as_cr_alnum=$as_cr_Letters$as_cr_digits
20093
20094 # The user is always right.
20095 if test "${PATH_SEPARATOR+set}" != set; then
20096 echo "#! /bin/sh" >conf$$.sh
20097 echo "exit 0" >>conf$$.sh
20098 chmod +x conf$$.sh
20099 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20100 PATH_SEPARATOR=';'
20101 else
20102 PATH_SEPARATOR=:
20103 fi
20104 rm -f conf$$.sh
20105 fi
20106
20107 # Support unset when possible.
20108 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20109 as_unset=unset
20110 else
20111 as_unset=false
20112 fi
20113
20114
20115 # IFS
20116 # We need space, tab and new line, in precisely that order. Quoting is
20117 # there to prevent editors from complaining about space-tab.
20118 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20119 # splitting by setting IFS to empty value.)
20120 as_nl='
20121 '
20122 IFS=" "" $as_nl"
20123
20124 # Find who we are. Look in the path if we contain no directory separator.
20125 case $0 in
20126 *[\\/]* ) as_myself=$0 ;;
20127 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20128 for as_dir in $PATH
20129 do
20130 IFS=$as_save_IFS
20131 test -z "$as_dir" && as_dir=.
20132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20133 done
20134 IFS=$as_save_IFS
20135
20136 ;;
20137 esac
20138 # We did not find ourselves, most probably we were run as `sh COMMAND'
20139 # in which case we are not to be found in the path.
20140 if test "x$as_myself" = x; then
20141 as_myself=$0
20142 fi
20143 if test ! -f "$as_myself"; then
20144 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20145 { (exit 1); exit 1; }
20146 fi
20147
20148 # Work around bugs in pre-3.0 UWIN ksh.
20149 for as_var in ENV MAIL MAILPATH
20150 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20151 done
20152 PS1='$ '
20153 PS2='> '
20154 PS4='+ '
20155
20156 # NLS nuisances.
20157 for as_var in \
20158 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20159 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20160 LC_TELEPHONE LC_TIME
20161 do
20162 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20163 eval $as_var=C; export $as_var
20164 else
20165 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20166 fi
20167 done
20168
20169 # Required to use basename.
20170 if expr a : '\(a\)' >/dev/null 2>&1 &&
20171 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20172 as_expr=expr
20173 else
20174 as_expr=false
20175 fi
20176
20177 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20178 as_basename=basename
20179 else
20180 as_basename=false
20181 fi
20182
20183
20184 # Name of the executable.
20185 as_me=`$as_basename -- "$0" ||
20186 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20187 X"$0" : 'X\(//\)$' \| \
20188 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20189 echo X/"$0" |
20190 sed '/^.*\/\([^/][^/]*\)\/*$/{
20191 s//\1/
20192 q
20193 }
20194 /^X\/\(\/\/\)$/{
20195 s//\1/
20196 q
20197 }
20198 /^X\/\(\/\).*/{
20199 s//\1/
20200 q
20201 }
20202 s/.*/./; q'`
20203
20204 # CDPATH.
20205 $as_unset CDPATH
20206
20207
20208
20209 as_lineno_1=$LINENO
20210 as_lineno_2=$LINENO
20211 test "x$as_lineno_1" != "x$as_lineno_2" &&
20212 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20213
20214 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20215 # uniformly replaced by the line number. The first 'sed' inserts a
20216 # line-number line after each line using $LINENO; the second 'sed'
20217 # does the real work. The second script uses 'N' to pair each
20218 # line-number line with the line containing $LINENO, and appends
20219 # trailing '-' during substitution so that $LINENO is not a special
20220 # case at line end.
20221 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20222 # scripts with optimization help from Paolo Bonzini. Blame Lee
20223 # E. McMahon (1931-1989) for sed's syntax. :-)
20224 sed -n '
20225 p
20226 /[$]LINENO/=
20227 ' <$as_myself |
20228 sed '
20229 s/[$]LINENO.*/&-/
20230 t lineno
20231 b
20232 :lineno
20233 N
20234 :loop
20235 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20236 t loop
20237 s/-\n.*//
20238 ' >$as_me.lineno &&
20239 chmod +x "$as_me.lineno" ||
20240 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20241 { (exit 1); exit 1; }; }
20242
20243 # Don't try to exec as it changes $[0], causing all sort of problems
20244 # (the dirname of $[0] is not the place where we might find the
20245 # original and so on. Autoconf is especially sensitive to this).
20246 . "./$as_me.lineno"
20247 # Exit status is that of the last command.
20248 exit
20249 }
20250
20251
20252 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20253 as_dirname=dirname
20254 else
20255 as_dirname=false
20256 fi
20257
20258 ECHO_C= ECHO_N= ECHO_T=
20259 case `echo -n x` in
20260 -n*)
20261 case `echo 'x\c'` in
20262 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20263 *) ECHO_C='\c';;
20264 esac;;
20265 *)
20266 ECHO_N='-n';;
20267 esac
20268
20269 if expr a : '\(a\)' >/dev/null 2>&1 &&
20270 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20271 as_expr=expr
20272 else
20273 as_expr=false
20274 fi
20275
20276 rm -f conf$$ conf$$.exe conf$$.file
20277 if test -d conf$$.dir; then
20278 rm -f conf$$.dir/conf$$.file
20279 else
20280 rm -f conf$$.dir
20281 mkdir conf$$.dir
20282 fi
20283 echo >conf$$.file
20284 if ln -s conf$$.file conf$$ 2>/dev/null; then
20285 as_ln_s='ln -s'
20286 # ... but there are two gotchas:
20287 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20288 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20289 # In both cases, we have to default to `cp -p'.
20290 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20291 as_ln_s='cp -p'
20292 elif ln conf$$.file conf$$ 2>/dev/null; then
20293 as_ln_s=ln
20294 else
20295 as_ln_s='cp -p'
20296 fi
20297 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20298 rmdir conf$$.dir 2>/dev/null
20299
20300 if mkdir -p . 2>/dev/null; then
20301 as_mkdir_p=:
20302 else
20303 test -d ./-p && rmdir ./-p
20304 as_mkdir_p=false
20305 fi
20306
20307 if test -x / >/dev/null 2>&1; then
20308 as_test_x='test -x'
20309 else
20310 if ls -dL / >/dev/null 2>&1; then
20311 as_ls_L_option=L
20312 else
20313 as_ls_L_option=
20314 fi
20315 as_test_x='
20316 eval sh -c '\''
20317 if test -d "$1"; then
20318 test -d "$1/.";
20319 else
20320 case $1 in
20321 -*)set "./$1";;
20322 esac;
20323 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20324 ???[sx]*):;;*)false;;esac;fi
20325 '\'' sh
20326 '
20327 fi
20328 as_executable_p=$as_test_x
20329
20330 # Sed expression to map a string onto a valid CPP name.
20331 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20332
20333 # Sed expression to map a string onto a valid variable name.
20334 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20335
20336
20337 exec 6>&1
20338
20339 # Save the log message, to keep $[0] and so on meaningful, and to
20340 # report actual input values of CONFIG_FILES etc. instead of their
20341 # values after options handling.
20342 ac_log="
20343 This file was extended by courierlogger $as_me 0.10, which was
20344 generated by GNU Autoconf 2.61. Invocation command line was
20345
20346 CONFIG_FILES = $CONFIG_FILES
20347 CONFIG_HEADERS = $CONFIG_HEADERS
20348 CONFIG_LINKS = $CONFIG_LINKS
20349 CONFIG_COMMANDS = $CONFIG_COMMANDS
20350 $ $0 $@
20351
20352 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20353 "
20354
20355 _ACEOF
20356
20357 cat >>$CONFIG_STATUS <<_ACEOF
20358 # Files that config.status was made for.
20359 config_files="$ac_config_files"
20360 config_headers="$ac_config_headers"
20361 config_commands="$ac_config_commands"
20362
20363 _ACEOF
20364
20365 cat >>$CONFIG_STATUS <<\_ACEOF
20366 ac_cs_usage="\
20367 \`$as_me' instantiates files from templates according to the
20368 current configuration.
20369
20370 Usage: $0 [OPTIONS] [FILE]...
20371
20372 -h, --help print this help, then exit
20373 -V, --version print version number and configuration settings, then exit
20374 -q, --quiet do not print progress messages
20375 -d, --debug don't remove temporary files
20376 --recheck update $as_me by reconfiguring in the same conditions
20377 --file=FILE[:TEMPLATE]
20378 instantiate the configuration file FILE
20379 --header=FILE[:TEMPLATE]
20380 instantiate the configuration header FILE
20381
20382 Configuration files:
20383 $config_files
20384
20385 Configuration headers:
20386 $config_headers
20387
20388 Configuration commands:
20389 $config_commands
20390
20391 Report bugs to <bug-autoconf@gnu.org>."
20392
20393 _ACEOF
20394 cat >>$CONFIG_STATUS <<_ACEOF
20395 ac_cs_version="\\
20396 courierlogger config.status 0.10
20397 configured by $0, generated by GNU Autoconf 2.61,
20398 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20399
20400 Copyright (C) 2006 Free Software Foundation, Inc.
20401 This config.status script is free software; the Free Software Foundation
20402 gives unlimited permission to copy, distribute and modify it."
20403
20404 ac_pwd='$ac_pwd'
20405 srcdir='$srcdir'
20406 INSTALL='$INSTALL'
20407 MKDIR_P='$MKDIR_P'
20408 _ACEOF
20409
20410 cat >>$CONFIG_STATUS <<\_ACEOF
20411 # If no file are specified by the user, then we need to provide default
20412 # value. By we need to know if files were specified by the user.
20413 ac_need_defaults=:
20414 while test $# != 0
20415 do
20416 case $1 in
20417 --*=*)
20418 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20419 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20420 ac_shift=:
20421 ;;
20422 *)
20423 ac_option=$1
20424 ac_optarg=$2
20425 ac_shift=shift
20426 ;;
20427 esac
20428
20429 case $ac_option in
20430 # Handling of the options.
20431 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20432 ac_cs_recheck=: ;;
20433 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20434 echo "$ac_cs_version"; exit ;;
20435 --debug | --debu | --deb | --de | --d | -d )
20436 debug=: ;;
20437 --file | --fil | --fi | --f )
20438 $ac_shift
20439 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20440 ac_need_defaults=false;;
20441 --header | --heade | --head | --hea )
20442 $ac_shift
20443 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20444 ac_need_defaults=false;;
20445 --he | --h)
20446 # Conflict between --help and --header
20447 { echo "$as_me: error: ambiguous option: $1
20448 Try \`$0 --help' for more information." >&2
20449 { (exit 1); exit 1; }; };;
20450 --help | --hel | -h )
20451 echo "$ac_cs_usage"; exit ;;
20452 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20453 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20454 ac_cs_silent=: ;;
20455
20456 # This is an error.
20457 -*) { echo "$as_me: error: unrecognized option: $1
20458 Try \`$0 --help' for more information." >&2
20459 { (exit 1); exit 1; }; } ;;
20460
20461 *) ac_config_targets="$ac_config_targets $1"
20462 ac_need_defaults=false ;;
20463
20464 esac
20465 shift
20466 done
20467
20468 ac_configure_extra_args=
20469
20470 if $ac_cs_silent; then
20471 exec 6>/dev/null
20472 ac_configure_extra_args="$ac_configure_extra_args --silent"
20473 fi
20474
20475 _ACEOF
20476 cat >>$CONFIG_STATUS <<_ACEOF
20477 if \$ac_cs_recheck; then
20478 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20479 CONFIG_SHELL=$SHELL
20480 export CONFIG_SHELL
20481 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20482 fi
20483
20484 _ACEOF
20485 cat >>$CONFIG_STATUS <<\_ACEOF
20486 exec 5>>config.log
20487 {
20488 echo
20489 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20490 ## Running $as_me. ##
20491 _ASBOX
20492 echo "$ac_log"
20493 } >&5
20494
20495 _ACEOF
20496 cat >>$CONFIG_STATUS <<_ACEOF
20497 #
20498 # INIT-COMMANDS
20499 #
20500 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20501
20502 _ACEOF
20503
20504 cat >>$CONFIG_STATUS <<\_ACEOF
20505
20506 # Handling of arguments.
20507 for ac_config_target in $ac_config_targets
20508 do
20509 case $ac_config_target in
20510 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20511 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20512 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20513
20514 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20515 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20516 { (exit 1); exit 1; }; };;
20517 esac
20518 done
20519
20520
20521 # If the user did not use the arguments to specify the items to instantiate,
20522 # then the envvar interface is used. Set only those that are not.
20523 # We use the long form for the default assignment because of an extremely
20524 # bizarre bug on SunOS 4.1.3.
20525 if $ac_need_defaults; then
20526 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20527 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20528 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20529 fi
20530
20531 # Have a temporary directory for convenience. Make it in the build tree
20532 # simply because there is no reason against having it here, and in addition,
20533 # creating and moving files from /tmp can sometimes cause problems.
20534 # Hook for its removal unless debugging.
20535 # Note that there is a small window in which the directory will not be cleaned:
20536 # after its creation but before its name has been assigned to `$tmp'.
20537 $debug ||
20538 {
20539 tmp=
20540 trap 'exit_status=$?
20541 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20542 ' 0
20543 trap '{ (exit 1); exit 1; }' 1 2 13 15
20544 }
20545 # Create a (secure) tmp directory for tmp files.
20546
20547 {
20548 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20549 test -n "$tmp" && test -d "$tmp"
20550 } ||
20551 {
20552 tmp=./conf$$-$RANDOM
20553 (umask 077 && mkdir "$tmp")
20554 } ||
20555 {
20556 echo "$me: cannot create a temporary directory in ." >&2
20557 { (exit 1); exit 1; }
20558 }
20559
20560 #
20561 # Set up the sed scripts for CONFIG_FILES section.
20562 #
20563
20564 # No need to generate the scripts if there are no CONFIG_FILES.
20565 # This happens for instance when ./config.status config.h
20566 if test -n "$CONFIG_FILES"; then
20567
20568 _ACEOF
20569
20570
20571
20572 ac_delim='%!_!# '
20573 for ac_last_try in false false false false false :; do
20574 cat >conf$$subs.sed <<_ACEOF
20575 SHELL!$SHELL$ac_delim
20576 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20577 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20578 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20579 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20580 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20581 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20582 exec_prefix!$exec_prefix$ac_delim
20583 prefix!$prefix$ac_delim
20584 program_transform_name!$program_transform_name$ac_delim
20585 bindir!$bindir$ac_delim
20586 sbindir!$sbindir$ac_delim
20587 libexecdir!$libexecdir$ac_delim
20588 datarootdir!$datarootdir$ac_delim
20589 datadir!$datadir$ac_delim
20590 sysconfdir!$sysconfdir$ac_delim
20591 sharedstatedir!$sharedstatedir$ac_delim
20592 localstatedir!$localstatedir$ac_delim
20593 includedir!$includedir$ac_delim
20594 oldincludedir!$oldincludedir$ac_delim
20595 docdir!$docdir$ac_delim
20596 infodir!$infodir$ac_delim
20597 htmldir!$htmldir$ac_delim
20598 dvidir!$dvidir$ac_delim
20599 pdfdir!$pdfdir$ac_delim
20600 psdir!$psdir$ac_delim
20601 libdir!$libdir$ac_delim
20602 localedir!$localedir$ac_delim
20603 mandir!$mandir$ac_delim
20604 DEFS!$DEFS$ac_delim
20605 ECHO_C!$ECHO_C$ac_delim
20606 ECHO_N!$ECHO_N$ac_delim
20607 ECHO_T!$ECHO_T$ac_delim
20608 LIBS!$LIBS$ac_delim
20609 build_alias!$build_alias$ac_delim
20610 host_alias!$host_alias$ac_delim
20611 target_alias!$target_alias$ac_delim
20612 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20613 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20614 INSTALL_DATA!$INSTALL_DATA$ac_delim
20615 am__isrc!$am__isrc$ac_delim
20616 CYGPATH_W!$CYGPATH_W$ac_delim
20617 PACKAGE!$PACKAGE$ac_delim
20618 VERSION!$VERSION$ac_delim
20619 ACLOCAL!$ACLOCAL$ac_delim
20620 AUTOCONF!$AUTOCONF$ac_delim
20621 AUTOMAKE!$AUTOMAKE$ac_delim
20622 AUTOHEADER!$AUTOHEADER$ac_delim
20623 MAKEINFO!$MAKEINFO$ac_delim
20624 install_sh!$install_sh$ac_delim
20625 STRIP!$STRIP$ac_delim
20626 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20627 mkdir_p!$mkdir_p$ac_delim
20628 AWK!$AWK$ac_delim
20629 SET_MAKE!$SET_MAKE$ac_delim
20630 am__leading_dot!$am__leading_dot$ac_delim
20631 AMTAR!$AMTAR$ac_delim
20632 am__tar!$am__tar$ac_delim
20633 am__untar!$am__untar$ac_delim
20634 CC!$CC$ac_delim
20635 CFLAGS!$CFLAGS$ac_delim
20636 LDFLAGS!$LDFLAGS$ac_delim
20637 CPPFLAGS!$CPPFLAGS$ac_delim
20638 ac_ct_CC!$ac_ct_CC$ac_delim
20639 EXEEXT!$EXEEXT$ac_delim
20640 OBJEXT!$OBJEXT$ac_delim
20641 DEPDIR!$DEPDIR$ac_delim
20642 am__include!$am__include$ac_delim
20643 am__quote!$am__quote$ac_delim
20644 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20645 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20646 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20647 CCDEPMODE!$CCDEPMODE$ac_delim
20648 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20649 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20650 LN_S!$LN_S$ac_delim
20651 build!$build$ac_delim
20652 build_cpu!$build_cpu$ac_delim
20653 build_vendor!$build_vendor$ac_delim
20654 build_os!$build_os$ac_delim
20655 host!$host$ac_delim
20656 host_cpu!$host_cpu$ac_delim
20657 host_vendor!$host_vendor$ac_delim
20658 host_os!$host_os$ac_delim
20659 SED!$SED$ac_delim
20660 GREP!$GREP$ac_delim
20661 EGREP!$EGREP$ac_delim
20662 ECHO!$ECHO$ac_delim
20663 AR!$AR$ac_delim
20664 RANLIB!$RANLIB$ac_delim
20665 CPP!$CPP$ac_delim
20666 CXX!$CXX$ac_delim
20667 CXXFLAGS!$CXXFLAGS$ac_delim
20668 ac_ct_CXX!$ac_ct_CXX$ac_delim
20669 CXXDEPMODE!$CXXDEPMODE$ac_delim
20670 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20671 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20672 _ACEOF
20673
20674 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20675 break
20676 elif $ac_last_try; then
20677 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20678 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20679 { (exit 1); exit 1; }; }
20680 else
20681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20682 fi
20683 done
20684
20685 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20686 if test -n "$ac_eof"; then
20687 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20688 ac_eof=`expr $ac_eof + 1`
20689 fi
20690
20691 cat >>$CONFIG_STATUS <<_ACEOF
20692 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20693 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20694 _ACEOF
20695 sed '
20696 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20697 s/^/s,@/; s/!/@,|#_!!_#|/
20698 :n
20699 t n
20700 s/'"$ac_delim"'$/,g/; t
20701 s/$/\\/; p
20702 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20703 ' >>$CONFIG_STATUS <conf$$subs.sed
20704 rm -f conf$$subs.sed
20705 cat >>$CONFIG_STATUS <<_ACEOF
20706 CEOF$ac_eof
20707 _ACEOF
20708
20709
20710 ac_delim='%!_!# '
20711 for ac_last_try in false false false false false :; do
20712 cat >conf$$subs.sed <<_ACEOF
20713 CXXCPP!$CXXCPP$ac_delim
20714 F77!$F77$ac_delim
20715 FFLAGS!$FFLAGS$ac_delim
20716 ac_ct_F77!$ac_ct_F77$ac_delim
20717 LIBTOOL!$LIBTOOL$ac_delim
20718 HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
20719 HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
20720 LIBOBJS!$LIBOBJS$ac_delim
20721 LTLIBOBJS!$LTLIBOBJS$ac_delim
20722 _ACEOF
20723
20724 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
20725 break
20726 elif $ac_last_try; then
20727 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20728 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20729 { (exit 1); exit 1; }; }
20730 else
20731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20732 fi
20733 done
20734
20735 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20736 if test -n "$ac_eof"; then
20737 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20738 ac_eof=`expr $ac_eof + 1`
20739 fi
20740
20741 cat >>$CONFIG_STATUS <<_ACEOF
20742 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20744 _ACEOF
20745 sed '
20746 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20747 s/^/s,@/; s/!/@,|#_!!_#|/
20748 :n
20749 t n
20750 s/'"$ac_delim"'$/,g/; t
20751 s/$/\\/; p
20752 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20753 ' >>$CONFIG_STATUS <conf$$subs.sed
20754 rm -f conf$$subs.sed
20755 cat >>$CONFIG_STATUS <<_ACEOF
20756 :end
20757 s/|#_!!_#|//g
20758 CEOF$ac_eof
20759 _ACEOF
20760
20761
20762 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20763 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20764 # trailing colons and then remove the whole line if VPATH becomes empty
20765 # (actually we leave an empty line to preserve line numbers).
20766 if test "x$srcdir" = x.; then
20767 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20768 s/:*\$(srcdir):*/:/
20769 s/:*\${srcdir}:*/:/
20770 s/:*@srcdir@:*/:/
20771 s/^\([^=]*=[ ]*\):*/\1/
20772 s/:*$//
20773 s/^[^=]*=[ ]*$//
20774 }'
20775 fi
20776
20777 cat >>$CONFIG_STATUS <<\_ACEOF
20778 fi # test -n "$CONFIG_FILES"
20779
20780
20781 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20782 do
20783 case $ac_tag in
20784 :[FHLC]) ac_mode=$ac_tag; continue;;
20785 esac
20786 case $ac_mode$ac_tag in
20787 :[FHL]*:*);;
20788 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20789 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20790 { (exit 1); exit 1; }; };;
20791 :[FH]-) ac_tag=-:-;;
20792 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20793 esac
20794 ac_save_IFS=$IFS
20795 IFS=:
20796 set x $ac_tag
20797 IFS=$ac_save_IFS
20798 shift
20799 ac_file=$1
20800 shift
20801
20802 case $ac_mode in
20803 :L) ac_source=$1;;
20804 :[FH])
20805 ac_file_inputs=
20806 for ac_f
20807 do
20808 case $ac_f in
20809 -) ac_f="$tmp/stdin";;
20810 *) # Look for the file first in the build tree, then in the source tree
20811 # (if the path is not absolute). The absolute path cannot be DOS-style,
20812 # because $ac_f cannot contain `:'.
20813 test -f "$ac_f" ||
20814 case $ac_f in
20815 [\\/$]*) false;;
20816 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20817 esac ||
20818 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20819 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20820 { (exit 1); exit 1; }; };;
20821 esac
20822 ac_file_inputs="$ac_file_inputs $ac_f"
20823 done
20824
20825 # Let's still pretend it is `configure' which instantiates (i.e., don't
20826 # use $as_me), people would be surprised to read:
20827 # /* config.h. Generated by config.status. */
20828 configure_input="Generated from "`IFS=:
20829 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20830 if test x"$ac_file" != x-; then
20831 configure_input="$ac_file. $configure_input"
20832 { echo "$as_me:$LINENO: creating $ac_file" >&5
20833 echo "$as_me: creating $ac_file" >&6;}
20834 fi
20835
20836 case $ac_tag in
20837 *:-:* | *:-) cat >"$tmp/stdin";;
20838 esac
20839 ;;
20840 esac
20841
20842 ac_dir=`$as_dirname -- "$ac_file" ||
20843 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20844 X"$ac_file" : 'X\(//\)[^/]' \| \
20845 X"$ac_file" : 'X\(//\)$' \| \
20846 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20847 echo X"$ac_file" |
20848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20849 s//\1/
20850 q
20851 }
20852 /^X\(\/\/\)[^/].*/{
20853 s//\1/
20854 q
20855 }
20856 /^X\(\/\/\)$/{
20857 s//\1/
20858 q
20859 }
20860 /^X\(\/\).*/{
20861 s//\1/
20862 q
20863 }
20864 s/.*/./; q'`
20865 { as_dir="$ac_dir"
20866 case $as_dir in #(
20867 -*) as_dir=./$as_dir;;
20868 esac
20869 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20870 as_dirs=
20871 while :; do
20872 case $as_dir in #(
20873 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20874 *) as_qdir=$as_dir;;
20875 esac
20876 as_dirs="'$as_qdir' $as_dirs"
20877 as_dir=`$as_dirname -- "$as_dir" ||
20878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20879 X"$as_dir" : 'X\(//\)[^/]' \| \
20880 X"$as_dir" : 'X\(//\)$' \| \
20881 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20882 echo X"$as_dir" |
20883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20884 s//\1/
20885 q
20886 }
20887 /^X\(\/\/\)[^/].*/{
20888 s//\1/
20889 q
20890 }
20891 /^X\(\/\/\)$/{
20892 s//\1/
20893 q
20894 }
20895 /^X\(\/\).*/{
20896 s//\1/
20897 q
20898 }
20899 s/.*/./; q'`
20900 test -d "$as_dir" && break
20901 done
20902 test -z "$as_dirs" || eval "mkdir $as_dirs"
20903 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20904 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20905 { (exit 1); exit 1; }; }; }
20906 ac_builddir=.
20907
20908 case "$ac_dir" in
20909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20910 *)
20911 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20912 # A ".." for each directory in $ac_dir_suffix.
20913 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20914 case $ac_top_builddir_sub in
20915 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20916 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20917 esac ;;
20918 esac
20919 ac_abs_top_builddir=$ac_pwd
20920 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20921 # for backward compatibility:
20922 ac_top_builddir=$ac_top_build_prefix
20923
20924 case $srcdir in
20925 .) # We are building in place.
20926 ac_srcdir=.
20927 ac_top_srcdir=$ac_top_builddir_sub
20928 ac_abs_top_srcdir=$ac_pwd ;;
20929 [\\/]* | ?:[\\/]* ) # Absolute name.
20930 ac_srcdir=$srcdir$ac_dir_suffix;
20931 ac_top_srcdir=$srcdir
20932 ac_abs_top_srcdir=$srcdir ;;
20933 *) # Relative name.
20934 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20935 ac_top_srcdir=$ac_top_build_prefix$srcdir
20936 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20937 esac
20938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20939
20940
20941 case $ac_mode in
20942 :F)
20943 #
20944 # CONFIG_FILE
20945 #
20946
20947 case $INSTALL in
20948 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20949 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20950 esac
20951 ac_MKDIR_P=$MKDIR_P
20952 case $MKDIR_P in
20953 [\\/$]* | ?:[\\/]* ) ;;
20954 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20955 esac
20956 _ACEOF
20957
20958 cat >>$CONFIG_STATUS <<\_ACEOF
20959 # If the template does not know about datarootdir, expand it.
20960 # FIXME: This hack should be removed a few years after 2.60.
20961 ac_datarootdir_hack=; ac_datarootdir_seen=
20962
20963 case `sed -n '/datarootdir/ {
20964 p
20965 q
20966 }
20967 /@datadir@/p
20968 /@docdir@/p
20969 /@infodir@/p
20970 /@localedir@/p
20971 /@mandir@/p
20972 ' $ac_file_inputs` in
20973 *datarootdir*) ac_datarootdir_seen=yes;;
20974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20975 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20976 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20977 _ACEOF
20978 cat >>$CONFIG_STATUS <<_ACEOF
20979 ac_datarootdir_hack='
20980 s&@datadir@&$datadir&g
20981 s&@docdir@&$docdir&g
20982 s&@infodir@&$infodir&g
20983 s&@localedir@&$localedir&g
20984 s&@mandir@&$mandir&g
20985 s&\\\${datarootdir}&$datarootdir&g' ;;
20986 esac
20987 _ACEOF
20988
20989 # Neutralize VPATH when `$srcdir' = `.'.
20990 # Shell code in configure.ac might set extrasub.
20991 # FIXME: do we really want to maintain this feature?
20992 cat >>$CONFIG_STATUS <<_ACEOF
20993 sed "$ac_vpsub
20994 $extrasub
20995 _ACEOF
20996 cat >>$CONFIG_STATUS <<\_ACEOF
20997 :t
20998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20999 s&@configure_input@&$configure_input&;t t
21000 s&@top_builddir@&$ac_top_builddir_sub&;t t
21001 s&@srcdir@&$ac_srcdir&;t t
21002 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21003 s&@top_srcdir@&$ac_top_srcdir&;t t
21004 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21005 s&@builddir@&$ac_builddir&;t t
21006 s&@abs_builddir@&$ac_abs_builddir&;t t
21007 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21008 s&@INSTALL@&$ac_INSTALL&;t t
21009 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21010 $ac_datarootdir_hack
21011 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21012
21013 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21014 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21015 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21016 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21017 which seems to be undefined. Please make sure it is defined." >&5
21018 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21019 which seems to be undefined. Please make sure it is defined." >&2;}
21020
21021 rm -f "$tmp/stdin"
21022 case $ac_file in
21023 -) cat "$tmp/out"; rm -f "$tmp/out";;
21024 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21025 esac
21026 ;;
21027 :H)
21028 #
21029 # CONFIG_HEADER
21030 #
21031 _ACEOF
21032
21033 # Transform confdefs.h into a sed script `conftest.defines', that
21034 # substitutes the proper values into config.h.in to produce config.h.
21035 rm -f conftest.defines conftest.tail
21036 # First, append a space to every undef/define line, to ease matching.
21037 echo 's/$/ /' >conftest.defines
21038 # Then, protect against being on the right side of a sed subst, or in
21039 # an unquoted here document, in config.status. If some macros were
21040 # called several times there might be several #defines for the same
21041 # symbol, which is useless. But do not sort them, since the last
21042 # AC_DEFINE must be honored.
21043 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21044 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21045 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21046 # PARAMS is the parameter list in the macro definition--in most cases, it's
21047 # just an empty string.
21048 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21049 ac_dB='\\)[ (].*,\\1define\\2'
21050 ac_dC=' '
21051 ac_dD=' ,'
21052
21053 uniq confdefs.h |
21054 sed -n '
21055 t rset
21056 :rset
21057 s/^[ ]*#[ ]*define[ ][ ]*//
21058 t ok
21059 d
21060 :ok
21061 s/[\\&,]/\\&/g
21062 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21063 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21064 ' >>conftest.defines
21065
21066 # Remove the space that was appended to ease matching.
21067 # Then replace #undef with comments. This is necessary, for
21068 # example, in the case of _POSIX_SOURCE, which is predefined and required
21069 # on some systems where configure will not decide to define it.
21070 # (The regexp can be short, since the line contains either #define or #undef.)
21071 echo 's/ $//
21072 s,^[ #]*u.*,/* & */,' >>conftest.defines
21073
21074 # Break up conftest.defines:
21075 ac_max_sed_lines=50
21076
21077 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21078 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21079 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21080 # et cetera.
21081 ac_in='$ac_file_inputs'
21082 ac_out='"$tmp/out1"'
21083 ac_nxt='"$tmp/out2"'
21084
21085 while :
21086 do
21087 # Write a here document:
21088 cat >>$CONFIG_STATUS <<_ACEOF
21089 # First, check the format of the line:
21090 cat >"\$tmp/defines.sed" <<\\CEOF
21091 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21092 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21093 b
21094 :def
21095 _ACEOF
21096 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21097 echo 'CEOF
21098 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21099 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21100 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21101 grep . conftest.tail >/dev/null || break
21102 rm -f conftest.defines
21103 mv conftest.tail conftest.defines
21104 done
21105 rm -f conftest.defines conftest.tail
21106
21107 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21108 cat >>$CONFIG_STATUS <<\_ACEOF
21109 if test x"$ac_file" != x-; then
21110 echo "/* $configure_input */" >"$tmp/config.h"
21111 cat "$ac_result" >>"$tmp/config.h"
21112 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21113 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21114 echo "$as_me: $ac_file is unchanged" >&6;}
21115 else
21116 rm -f $ac_file
21117 mv "$tmp/config.h" $ac_file
21118 fi
21119 else
21120 echo "/* $configure_input */"
21121 cat "$ac_result"
21122 fi
21123 rm -f "$tmp/out12"
21124 # Compute $ac_file's index in $config_headers.
21125 _am_stamp_count=1
21126 for _am_header in $config_headers :; do
21127 case $_am_header in
21128 $ac_file | $ac_file:* )
21129 break ;;
21130 * )
21131 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21132 esac
21133 done
21134 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21135 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21136 X$ac_file : 'X\(//\)[^/]' \| \
21137 X$ac_file : 'X\(//\)$' \| \
21138 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21139 echo X$ac_file |
21140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21141 s//\1/
21142 q
21143 }
21144 /^X\(\/\/\)[^/].*/{
21145 s//\1/
21146 q
21147 }
21148 /^X\(\/\/\)$/{
21149 s//\1/
21150 q
21151 }
21152 /^X\(\/\).*/{
21153 s//\1/
21154 q
21155 }
21156 s/.*/./; q'`/stamp-h$_am_stamp_count
21157 ;;
21158
21159 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21160 echo "$as_me: executing $ac_file commands" >&6;}
21161 ;;
21162 esac
21163
21164
21165 case $ac_file$ac_mode in
21166 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21167 # Strip MF so we end up with the name of the file.
21168 mf=`echo "$mf" | sed -e 's/:.*$//'`
21169 # Check whether this is an Automake generated Makefile or not.
21170 # We used to match only the files named `Makefile.in', but
21171 # some people rename them; so instead we look at the file content.
21172 # Grep'ing the first line is not enough: some people post-process
21173 # each Makefile.in and add a new line on top of each file to say so.
21174 # Grep'ing the whole file is not good either: AIX grep has a line
21175 # limit of 2048, but all sed's we know have understand at least 4000.
21176 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21177 dirpart=`$as_dirname -- "$mf" ||
21178 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21179 X"$mf" : 'X\(//\)[^/]' \| \
21180 X"$mf" : 'X\(//\)$' \| \
21181 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21182 echo X"$mf" |
21183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21184 s//\1/
21185 q
21186 }
21187 /^X\(\/\/\)[^/].*/{
21188 s//\1/
21189 q
21190 }
21191 /^X\(\/\/\)$/{
21192 s//\1/
21193 q
21194 }
21195 /^X\(\/\).*/{
21196 s//\1/
21197 q
21198 }
21199 s/.*/./; q'`
21200 else
21201 continue
21202 fi
21203 # Extract the definition of DEPDIR, am__include, and am__quote
21204 # from the Makefile without running `make'.
21205 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21206 test -z "$DEPDIR" && continue
21207 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21208 test -z "am__include" && continue
21209 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21210 # When using ansi2knr, U may be empty or an underscore; expand it
21211 U=`sed -n 's/^U = //p' < "$mf"`
21212 # Find all dependency output files, they are included files with
21213 # $(DEPDIR) in their names. We invoke sed twice because it is the
21214 # simplest approach to changing $(DEPDIR) to its actual value in the
21215 # expansion.
21216 for file in `sed -n "
21217 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21218 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21219 # Make sure the directory exists.
21220 test -f "$dirpart/$file" && continue
21221 fdir=`$as_dirname -- "$file" ||
21222 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21223 X"$file" : 'X\(//\)[^/]' \| \
21224 X"$file" : 'X\(//\)$' \| \
21225 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21226 echo X"$file" |
21227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21228 s//\1/
21229 q
21230 }
21231 /^X\(\/\/\)[^/].*/{
21232 s//\1/
21233 q
21234 }
21235 /^X\(\/\/\)$/{
21236 s//\1/
21237 q
21238 }
21239 /^X\(\/\).*/{
21240 s//\1/
21241 q
21242 }
21243 s/.*/./; q'`
21244 { as_dir=$dirpart/$fdir
21245 case $as_dir in #(
21246 -*) as_dir=./$as_dir;;
21247 esac
21248 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21249 as_dirs=
21250 while :; do
21251 case $as_dir in #(
21252 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21253 *) as_qdir=$as_dir;;
21254 esac
21255 as_dirs="'$as_qdir' $as_dirs"
21256 as_dir=`$as_dirname -- "$as_dir" ||
21257 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21258 X"$as_dir" : 'X\(//\)[^/]' \| \
21259 X"$as_dir" : 'X\(//\)$' \| \
21260 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21261 echo X"$as_dir" |
21262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21263 s//\1/
21264 q
21265 }
21266 /^X\(\/\/\)[^/].*/{
21267 s//\1/
21268 q
21269 }
21270 /^X\(\/\/\)$/{
21271 s//\1/
21272 q
21273 }
21274 /^X\(\/\).*/{
21275 s//\1/
21276 q
21277 }
21278 s/.*/./; q'`
21279 test -d "$as_dir" && break
21280 done
21281 test -z "$as_dirs" || eval "mkdir $as_dirs"
21282 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21283 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21284 { (exit 1); exit 1; }; }; }
21285 # echo "creating $dirpart/$file"
21286 echo '# dummy' > "$dirpart/$file"
21287 done
21288 done
21289 ;;
21290
21291 esac
21292 done # for ac_tag
21293
21294
21295 { (exit 0); exit 0; }
21296 _ACEOF
21297 chmod +x $CONFIG_STATUS
21298 ac_clean_files=$ac_clean_files_save
21299
21300
21301 # configure is writing to config.log, and then calls config.status.
21302 # config.status does its own redirection, appending to config.log.
21303 # Unfortunately, on DOS this fails, as config.log is still kept open
21304 # by configure, so config.status won't be able to write to it; its
21305 # output is simply discarded. So we exec the FD to /dev/null,
21306 # effectively closing config.log, so it can be properly (re)opened and
21307 # appended to by config.status. When coming back to configure, we
21308 # need to make the FD available again.
21309 if test "$no_create" != yes; then
21310 ac_cs_success=:
21311 ac_config_status_args=
21312 test "$silent" = yes &&
21313 ac_config_status_args="$ac_config_status_args --quiet"
21314 exec 5>/dev/null
21315 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21316 exec 5>>config.log
21317 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21318 # would make configure fail if this is the last instruction.
21319 $ac_cs_success || { (exit 1); exit 1; }
21320 fi
21321