aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/sqlite/unix/sqlite-3.5.1/configure
diff options
context:
space:
mode:
authordan miller2007-10-20 02:49:29 +0000
committerdan miller2007-10-20 02:49:29 +0000
commite36d23a85ebff914d74bb541558c2b6082b78edb (patch)
tree54b58fdf162e78af64055282a6035c8d2443389d /libraries/sqlite/unix/sqlite-3.5.1/configure
parent* Fixed an issue whereby avatar chat distances were being calculated against ... (diff)
downloadopensim-SC_OLD-e36d23a85ebff914d74bb541558c2b6082b78edb.zip
opensim-SC_OLD-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.gz
opensim-SC_OLD-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.bz2
opensim-SC_OLD-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.xz
sqlite source (unix build) added to libraries
Diffstat (limited to 'libraries/sqlite/unix/sqlite-3.5.1/configure')
-rwxr-xr-xlibraries/sqlite/unix/sqlite-3.5.1/configure21144
1 files changed, 21144 insertions, 0 deletions
diff --git a/libraries/sqlite/unix/sqlite-3.5.1/configure b/libraries/sqlite/unix/sqlite-3.5.1/configure
new file mode 100755
index 0000000..c862e3f
--- /dev/null
+++ b/libraries/sqlite/unix/sqlite-3.5.1/configure
@@ -0,0 +1,21144 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
572 :
573else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
582$*
583EOF
584 exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
627 IFS="$lt_save_ifs"
628
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
699
700
701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="src/sqlite.h.in"
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748# include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753# include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_subst_vars='SHELL
771PATH_SEPARATOR
772PACKAGE_NAME
773PACKAGE_TARNAME
774PACKAGE_VERSION
775PACKAGE_STRING
776PACKAGE_BUGREPORT
777exec_prefix
778prefix
779program_transform_name
780bindir
781sbindir
782libexecdir
783datarootdir
784datadir
785sysconfdir
786sharedstatedir
787localstatedir
788includedir
789oldincludedir
790docdir
791infodir
792htmldir
793dvidir
794pdfdir
795psdir
796libdir
797localedir
798mandir
799DEFS
800ECHO_C
801ECHO_N
802ECHO_T
803LIBS
804build_alias
805host_alias
806target_alias
807build
808build_cpu
809build_vendor
810build_os
811host
812host_cpu
813host_vendor
814host_os
815CC
816CFLAGS
817LDFLAGS
818CPPFLAGS
819ac_ct_CC
820EXEEXT
821OBJEXT
822GREP
823EGREP
824LN_S
825ECHO
826AR
827RANLIB
828STRIP
829CPP
830CXX
831CXXFLAGS
832ac_ct_CXX
833CXXCPP
834F77
835FFLAGS
836ac_ct_F77
837LIBTOOL
838INSTALL_PROGRAM
839INSTALL_SCRIPT
840INSTALL_DATA
841AWK
842program_prefix
843VERSION
844RELEASE
845VERSION_NUMBER
846BUILD_CC
847BUILD_CFLAGS
848SQLITE_THREADSAFE
849TARGET_THREAD_LIB
850XTHREADCONNECT
851THREADSOVERRIDELOCKS
852ALLOWRELEASE
853TEMP_STORE
854BUILD_EXEEXT
855OS_UNIX
856OS_WIN
857OS_OS2
858TARGET_EXEEXT
859TCL_VERSION
860TCL_BIN_DIR
861TCL_SRC_DIR
862TCL_LIBS
863TCL_INCLUDE_SPEC
864TCL_LIB_FILE
865TCL_LIB_FLAG
866TCL_LIB_SPEC
867TCL_STUB_LIB_FILE
868TCL_STUB_LIB_FLAG
869TCL_STUB_LIB_SPEC
870HAVE_TCL
871TARGET_READLINE_LIBS
872TARGET_READLINE_INC
873TARGET_HAVE_READLINE
874TARGET_DEBUG
875LIBOBJS
876LTLIBOBJS'
877ac_subst_files=''
878 ac_precious_vars='build_alias
879host_alias
880target_alias
881CC
882CFLAGS
883LDFLAGS
884LIBS
885CPPFLAGS
886CPP
887CXX
888CXXFLAGS
889CCC
890CXXCPP
891F77
892FFLAGS'
893
894
895# Initialize some variables set by options.
896ac_init_help=
897ac_init_version=false
898# The variables have the same names as the options, with
899# dashes changed to underlines.
900cache_file=/dev/null
901exec_prefix=NONE
902no_create=
903no_recursion=
904prefix=NONE
905program_prefix=NONE
906program_suffix=NONE
907program_transform_name=s,x,x,
908silent=
909site=
910srcdir=
911verbose=
912x_includes=NONE
913x_libraries=NONE
914
915# Installation directory options.
916# These are left unexpanded so users can "make install exec_prefix=/foo"
917# and all the variables that are supposed to be based on exec_prefix
918# by default will actually change.
919# Use braces instead of parens because sh, perl, etc. also accept them.
920# (The list follows the same order as the GNU Coding Standards.)
921bindir='${exec_prefix}/bin'
922sbindir='${exec_prefix}/sbin'
923libexecdir='${exec_prefix}/libexec'
924datarootdir='${prefix}/share'
925datadir='${datarootdir}'
926sysconfdir='${prefix}/etc'
927sharedstatedir='${prefix}/com'
928localstatedir='${prefix}/var'
929includedir='${prefix}/include'
930oldincludedir='/usr/include'
931docdir='${datarootdir}/doc/${PACKAGE}'
932infodir='${datarootdir}/info'
933htmldir='${docdir}'
934dvidir='${docdir}'
935pdfdir='${docdir}'
936psdir='${docdir}'
937libdir='${exec_prefix}/lib'
938localedir='${datarootdir}/locale'
939mandir='${datarootdir}/man'
940
941ac_prev=
942ac_dashdash=
943for ac_option
944do
945 # If the previous option needs an argument, assign it.
946 if test -n "$ac_prev"; then
947 eval $ac_prev=\$ac_option
948 ac_prev=
949 continue
950 fi
951
952 case $ac_option in
953 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954 *) ac_optarg=yes ;;
955 esac
956
957 # Accept the important Cygnus configure options, so we can diagnose typos.
958
959 case $ac_dashdash$ac_option in
960 --)
961 ac_dashdash=yes ;;
962
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 ac_prev=bindir ;;
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 bindir=$ac_optarg ;;
967
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
972
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
979
980 --config-cache | -C)
981 cache_file=config.cache ;;
982
983 -datadir | --datadir | --datadi | --datad)
984 ac_prev=datadir ;;
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
987
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
994
995 -disable-* | --disable-*)
996 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000 { (exit 1); exit 1; }; }
1001 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002 eval enable_$ac_feature=no ;;
1003
1004 -docdir | --docdir | --docdi | --doc | --do)
1005 ac_prev=docdir ;;
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1008
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 ac_prev=dvidir ;;
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
1013
1014 -enable-* | --enable-*)
1015 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019 { (exit 1); exit 1; }; }
1020 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021 eval enable_$ac_feature=\$ac_optarg ;;
1022
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
1030 exec_prefix=$ac_optarg ;;
1031
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1034 with_gas=yes ;;
1035
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
1042
1043 -host | --host | --hos | --ho)
1044 ac_prev=host_alias ;;
1045 -host=* | --host=* | --hos=* | --ho=*)
1046 host_alias=$ac_optarg ;;
1047
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 ac_prev=htmldir ;;
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 | --ht=*)
1052 htmldir=$ac_optarg ;;
1053
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
1059 includedir=$ac_optarg ;;
1060
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 ac_prev=infodir ;;
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064 infodir=$ac_optarg ;;
1065
1066 -libdir | --libdir | --libdi | --libd)
1067 ac_prev=libdir ;;
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069 libdir=$ac_optarg ;;
1070
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
1076 libexecdir=$ac_optarg ;;
1077
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1082
1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
1084 | --localstate | --localstat | --localsta | --localst | --locals)
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088 localstatedir=$ac_optarg ;;
1089
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 ac_prev=mandir ;;
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093 mandir=$ac_optarg ;;
1094
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1097 with_fp=no ;;
1098
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100 | --no-cr | --no-c | -n)
1101 no_create=yes ;;
1102
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 no_recursion=yes ;;
1106
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114 oldincludedir=$ac_optarg ;;
1115
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 ac_prev=prefix ;;
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119 prefix=$ac_optarg ;;
1120
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126 program_prefix=$ac_optarg ;;
1127
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133 program_suffix=$ac_optarg ;;
1134
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
1150 program_transform_name=$ac_optarg ;;
1151
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 ac_prev=pdfdir ;;
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1156
1157 -psdir | --psdir | --psdi | --psd | --ps)
1158 ac_prev=psdir ;;
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 psdir=$ac_optarg ;;
1161
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1164 silent=yes ;;
1165
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
1170 sbindir=$ac_optarg ;;
1171
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
1181 sharedstatedir=$ac_optarg ;;
1182
1183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
1186 site=$ac_optarg ;;
1187
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1192
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1199
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1204
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1207
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1210
1211 -with-* | --with-*)
1212 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 { echo "$as_me: error: invalid package name: $ac_package" >&2
1216 { (exit 1); exit 1; }; }
1217 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218 eval with_$ac_package=\$ac_optarg ;;
1219
1220 -without-* | --without-*)
1221 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid package name: $ac_package" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227 eval with_$ac_package=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
1247 -*) { echo "$as_me: error: unrecognized option: $ac_option
1248Try \`$0 --help' for more information." >&2
1249 { (exit 1); exit 1; }; }
1250 ;;
1251
1252 *=*)
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257 { (exit 1); exit 1; }; }
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267 ;;
1268
1269 esac
1270done
1271
1272if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 { echo "$as_me: error: missing argument to $ac_option" >&2
1275 { (exit 1); exit 1; }; }
1276fi
1277
1278# Be sure to have absolute directory names.
1279for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1283do
1284 eval ac_val=\$$ac_var
1285 case $ac_val in
1286 [\\/$]* | ?:[\\/]* ) continue;;
1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 esac
1289 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290 { (exit 1); exit 1; }; }
1291done
1292
1293# There might be people who depend on the old broken behavior: `$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302 if test "x$build_alias" = x; then
1303 cross_compiling=maybe
1304 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305 If a cross compiler is detected then cross compile mode will be used." >&2
1306 elif test "x$build_alias" != "x$host_alias"; then
1307 cross_compiling=yes
1308 fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 { echo "$as_me: error: Working directory cannot be determined" >&2
1321 { (exit 1); exit 1; }; }
1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 { echo "$as_me: error: pwd does not report name of working directory" >&2
1324 { (exit 1); exit 1; }; }
1325
1326
1327# Find the source files, if location was not specified.
1328if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$0" ||
1332$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$0" : 'X\(//\)[^/]' \| \
1334 X"$0" : 'X\(//\)$' \| \
1335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336echo X"$0" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\).*/{
1350 s//\1/
1351 q
1352 }
1353 s/.*/./; q'`
1354 srcdir=$ac_confdir
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 srcdir=..
1357 fi
1358else
1359 ac_srcdir_defaulted=no
1360fi
1361if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364 { (exit 1); exit 1; }; }
1365fi
1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367ac_abs_confdir=`(
1368 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369 { (exit 1); exit 1; }; }
1370 pwd)`
1371# When building in place, set srcdir=.
1372if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1374fi
1375# Remove unnecessary trailing slashes from srcdir.
1376# Double slashes in file names in object file debugging info
1377# mess up M-x gdb in Emacs.
1378case $srcdir in
1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380esac
1381for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395\`configure' configures this package to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
1415Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448_ACEOF
1449
1450 cat <<\_ACEOF
1451
1452System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455_ACEOF
1456fi
1457
1458if test -n "$ac_init_help"; then
1459
1460 cat <<\_ACEOF
1461
1462Optional Features:
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-shared[=PKGS] build shared libraries [default=yes]
1466 --enable-static[=PKGS] build static libraries [default=yes]
1467 --enable-fast-install[=PKGS]
1468 optimize for fast installation [default=yes]
1469 --disable-libtool-lock avoid locking (might break parallel builds)
1470 --enable-threadsafe Support threadsafe operation
1471 --enable-cross-thread-connections
1472 Allow connection sharing across threads
1473 --enable-threads-override-locks
1474 Threads can override each others locks
1475 --enable-releasemode Support libtool link to release mode
1476 --enable-tempstore Use an in-ram database for temporary tables
1477 (never,no,yes,always)
1478 --disable-tcl do not build TCL extension
1479 --disable-readline disable readline support [default=detect]
1480 --enable-debug enable debugging & verbose explain
1481
1482Optional Packages:
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-pic try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --with-tags[=TAGS] include additional configurations [automatic]
1489 --with-hints=FILE Read configuration options from FILE
1490 --with-tcl=DIR directory containing tcl configuration
1491 (tclConfig.sh)
1492 --with-readline-lib specify readline library
1493 --with-readline-inc specify readline include paths
1494
1495Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
1503 CPP C preprocessor
1504 CXX C++ compiler command
1505 CXXFLAGS C++ compiler flags
1506 CXXCPP C++ preprocessor
1507 F77 Fortran 77 compiler command
1508 FFLAGS Fortran 77 compiler flags
1509
1510Use these variables to override the choices made by `configure' or to help
1511it to find libraries and programs with nonstandard names/locations.
1512
1513_ACEOF
1514ac_status=$?
1515fi
1516
1517if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" || continue
1521 ac_builddir=.
1522
1523case "$ac_dir" in
1524.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525*)
1526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 esac ;;
1533esac
1534ac_abs_top_builddir=$ac_pwd
1535ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536# for backward compatibility:
1537ac_top_builddir=$ac_top_build_prefix
1538
1539case $srcdir in
1540 .) # We are building in place.
1541 ac_srcdir=.
1542 ac_top_srcdir=$ac_top_builddir_sub
1543 ac_abs_top_srcdir=$ac_pwd ;;
1544 [\\/]* | ?:[\\/]* ) # Absolute name.
1545 ac_srcdir=$srcdir$ac_dir_suffix;
1546 ac_top_srcdir=$srcdir
1547 ac_abs_top_srcdir=$srcdir ;;
1548 *) # Relative name.
1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552esac
1553ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554
1555 cd "$ac_dir" || { ac_status=$?; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure" --help=recursive
1563 else
1564 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 fi || ac_status=$?
1566 cd "$ac_pwd" || { ac_status=$?; break; }
1567 done
1568fi
1569
1570test -n "$ac_init_help" && exit $ac_status
1571if $ac_init_version; then
1572 cat <<\_ACEOF
1573configure
1574generated by GNU Autoconf 2.61
1575
1576Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15772002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1578This configure script is free software; the Free Software Foundation
1579gives unlimited permission to copy, distribute and modify it.
1580_ACEOF
1581 exit
1582fi
1583cat >config.log <<_ACEOF
1584This file contains any messages produced by compilers while
1585running configure, to aid debugging if configure makes a mistake.
1586
1587It was created by $as_me, which was
1588generated by GNU Autoconf 2.61. Invocation command line was
1589
1590 $ $0 $@
1591
1592_ACEOF
1593exec 5>>config.log
1594{
1595cat <<_ASUNAME
1596## --------- ##
1597## Platform. ##
1598## --------- ##
1599
1600hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1601uname -m = `(uname -m) 2>/dev/null || echo unknown`
1602uname -r = `(uname -r) 2>/dev/null || echo unknown`
1603uname -s = `(uname -s) 2>/dev/null || echo unknown`
1604uname -v = `(uname -v) 2>/dev/null || echo unknown`
1605
1606/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1607/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1608
1609/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1610/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1611/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1612/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1613/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1614/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1615/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1616
1617_ASUNAME
1618
1619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620for as_dir in $PATH
1621do
1622 IFS=$as_save_IFS
1623 test -z "$as_dir" && as_dir=.
1624 echo "PATH: $as_dir"
1625done
1626IFS=$as_save_IFS
1627
1628} >&5
1629
1630cat >&5 <<_ACEOF
1631
1632
1633## ----------- ##
1634## Core tests. ##
1635## ----------- ##
1636
1637_ACEOF
1638
1639
1640# Keep a trace of the command line.
1641# Strip out --no-create and --no-recursion so they do not pile up.
1642# Strip out --silent because we don't want to record it for future runs.
1643# Also quote any args containing shell meta-characters.
1644# Make two passes to allow for proper duplicate-argument suppression.
1645ac_configure_args=
1646ac_configure_args0=
1647ac_configure_args1=
1648ac_must_keep_next=false
1649for ac_pass in 1 2
1650do
1651 for ac_arg
1652 do
1653 case $ac_arg in
1654 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1656 | -silent | --silent | --silen | --sile | --sil)
1657 continue ;;
1658 *\'*)
1659 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1660 esac
1661 case $ac_pass in
1662 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1663 2)
1664 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1665 if test $ac_must_keep_next = true; then
1666 ac_must_keep_next=false # Got value, back to normal.
1667 else
1668 case $ac_arg in
1669 *=* | --config-cache | -C | -disable-* | --disable-* \
1670 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1671 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1672 | -with-* | --with-* | -without-* | --without-* | --x)
1673 case "$ac_configure_args0 " in
1674 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1675 esac
1676 ;;
1677 -* ) ac_must_keep_next=true ;;
1678 esac
1679 fi
1680 ac_configure_args="$ac_configure_args '$ac_arg'"
1681 ;;
1682 esac
1683 done
1684done
1685$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1686$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1687
1688# When interrupted or exit'd, cleanup temporary files, and complete
1689# config.log. We remove comments because anyway the quotes in there
1690# would cause problems or look ugly.
1691# WARNING: Use '\'' to represent an apostrophe within the trap.
1692# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1693trap 'exit_status=$?
1694 # Save into config.log some information that might help in debugging.
1695 {
1696 echo
1697
1698 cat <<\_ASBOX
1699## ---------------- ##
1700## Cache variables. ##
1701## ---------------- ##
1702_ASBOX
1703 echo
1704 # The following way of writing the cache mishandles newlines in values,
1705(
1706 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1707 eval ac_val=\$$ac_var
1708 case $ac_val in #(
1709 *${as_nl}*)
1710 case $ac_var in #(
1711 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1712echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1713 esac
1714 case $ac_var in #(
1715 _ | IFS | as_nl) ;; #(
1716 *) $as_unset $ac_var ;;
1717 esac ;;
1718 esac
1719 done
1720 (set) 2>&1 |
1721 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1722 *${as_nl}ac_space=\ *)
1723 sed -n \
1724 "s/'\''/'\''\\\\'\'''\''/g;
1725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1726 ;; #(
1727 *)
1728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1729 ;;
1730 esac |
1731 sort
1732)
1733 echo
1734
1735 cat <<\_ASBOX
1736## ----------------- ##
1737## Output variables. ##
1738## ----------------- ##
1739_ASBOX
1740 echo
1741 for ac_var in $ac_subst_vars
1742 do
1743 eval ac_val=\$$ac_var
1744 case $ac_val in
1745 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 esac
1747 echo "$ac_var='\''$ac_val'\''"
1748 done | sort
1749 echo
1750
1751 if test -n "$ac_subst_files"; then
1752 cat <<\_ASBOX
1753## ------------------- ##
1754## File substitutions. ##
1755## ------------------- ##
1756_ASBOX
1757 echo
1758 for ac_var in $ac_subst_files
1759 do
1760 eval ac_val=\$$ac_var
1761 case $ac_val in
1762 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 esac
1764 echo "$ac_var='\''$ac_val'\''"
1765 done | sort
1766 echo
1767 fi
1768
1769 if test -s confdefs.h; then
1770 cat <<\_ASBOX
1771## ----------- ##
1772## confdefs.h. ##
1773## ----------- ##
1774_ASBOX
1775 echo
1776 cat confdefs.h
1777 echo
1778 fi
1779 test "$ac_signal" != 0 &&
1780 echo "$as_me: caught signal $ac_signal"
1781 echo "$as_me: exit $exit_status"
1782 } >&5
1783 rm -f core *.core core.conftest.* &&
1784 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1785 exit $exit_status
1786' 0
1787for ac_signal in 1 2 13 15; do
1788 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1789done
1790ac_signal=0
1791
1792# confdefs.h avoids OS command line length limits that DEFS can exceed.
1793rm -f -r conftest* confdefs.h
1794
1795# Predefined preprocessor variables.
1796
1797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_NAME "$PACKAGE_NAME"
1799_ACEOF
1800
1801
1802cat >>confdefs.h <<_ACEOF
1803#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1804_ACEOF
1805
1806
1807cat >>confdefs.h <<_ACEOF
1808#define PACKAGE_VERSION "$PACKAGE_VERSION"
1809_ACEOF
1810
1811
1812cat >>confdefs.h <<_ACEOF
1813#define PACKAGE_STRING "$PACKAGE_STRING"
1814_ACEOF
1815
1816
1817cat >>confdefs.h <<_ACEOF
1818#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1819_ACEOF
1820
1821
1822# Let the site file select an alternate cache file if it wants to.
1823# Prefer explicitly selected file to automatically selected ones.
1824if test -n "$CONFIG_SITE"; then
1825 set x "$CONFIG_SITE"
1826elif test "x$prefix" != xNONE; then
1827 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1828else
1829 set x "$ac_default_prefix/share/config.site" \
1830 "$ac_default_prefix/etc/config.site"
1831fi
1832shift
1833for ac_site_file
1834do
1835 if test -r "$ac_site_file"; then
1836 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1837echo "$as_me: loading site script $ac_site_file" >&6;}
1838 sed 's/^/| /' "$ac_site_file" >&5
1839 . "$ac_site_file"
1840 fi
1841done
1842
1843if test -r "$cache_file"; then
1844 # Some versions of bash will fail to source /dev/null (special
1845 # files actually), so we avoid doing that.
1846 if test -f "$cache_file"; then
1847 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1848echo "$as_me: loading cache $cache_file" >&6;}
1849 case $cache_file in
1850 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1851 *) . "./$cache_file";;
1852 esac
1853 fi
1854else
1855 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1856echo "$as_me: creating cache $cache_file" >&6;}
1857 >$cache_file
1858fi
1859
1860# Check that the precious variables saved in the cache have kept the same
1861# value.
1862ac_cache_corrupted=false
1863for ac_var in $ac_precious_vars; do
1864 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1865 eval ac_new_set=\$ac_env_${ac_var}_set
1866 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1867 eval ac_new_val=\$ac_env_${ac_var}_value
1868 case $ac_old_set,$ac_new_set in
1869 set,)
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1871echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1873 ,set)
1874 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1875echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1876 ac_cache_corrupted=: ;;
1877 ,);;
1878 *)
1879 if test "x$ac_old_val" != "x$ac_new_val"; then
1880 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1881echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1882 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1883echo "$as_me: former value: $ac_old_val" >&2;}
1884 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1885echo "$as_me: current value: $ac_new_val" >&2;}
1886 ac_cache_corrupted=:
1887 fi;;
1888 esac
1889 # Pass precious variables to config.status.
1890 if test "$ac_new_set" = set; then
1891 case $ac_new_val in
1892 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1893 *) ac_arg=$ac_var=$ac_new_val ;;
1894 esac
1895 case " $ac_configure_args " in
1896 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1897 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 esac
1899 fi
1900done
1901if $ac_cache_corrupted; then
1902 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1903echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1904 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1905echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1906 { (exit 1); exit 1; }; }
1907fi
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925ac_ext=c
1926ac_cpp='$CPP $CPPFLAGS'
1927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930
1931
1932
1933# The following RCS revision string applies to configure.in
1934# $Revision: 1.43 $
1935
1936#########
1937# Programs needed
1938#
1939# Check whether --enable-shared was given.
1940if test "${enable_shared+set}" = set; then
1941 enableval=$enable_shared; p=${PACKAGE-default}
1942 case $enableval in
1943 yes) enable_shared=yes ;;
1944 no) enable_shared=no ;;
1945 *)
1946 enable_shared=no
1947 # Look at the argument we got. We use all the common list separators.
1948 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1949 for pkg in $enableval; do
1950 IFS="$lt_save_ifs"
1951 if test "X$pkg" = "X$p"; then
1952 enable_shared=yes
1953 fi
1954 done
1955 IFS="$lt_save_ifs"
1956 ;;
1957 esac
1958else
1959 enable_shared=yes
1960fi
1961
1962
1963# Check whether --enable-static was given.
1964if test "${enable_static+set}" = set; then
1965 enableval=$enable_static; p=${PACKAGE-default}
1966 case $enableval in
1967 yes) enable_static=yes ;;
1968 no) enable_static=no ;;
1969 *)
1970 enable_static=no
1971 # Look at the argument we got. We use all the common list separators.
1972 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1973 for pkg in $enableval; do
1974 IFS="$lt_save_ifs"
1975 if test "X$pkg" = "X$p"; then
1976 enable_static=yes
1977 fi
1978 done
1979 IFS="$lt_save_ifs"
1980 ;;
1981 esac
1982else
1983 enable_static=yes
1984fi
1985
1986
1987# Check whether --enable-fast-install was given.
1988if test "${enable_fast_install+set}" = set; then
1989 enableval=$enable_fast_install; p=${PACKAGE-default}
1990 case $enableval in
1991 yes) enable_fast_install=yes ;;
1992 no) enable_fast_install=no ;;
1993 *)
1994 enable_fast_install=no
1995 # Look at the argument we got. We use all the common list separators.
1996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1997 for pkg in $enableval; do
1998 IFS="$lt_save_ifs"
1999 if test "X$pkg" = "X$p"; then
2000 enable_fast_install=yes
2001 fi
2002 done
2003 IFS="$lt_save_ifs"
2004 ;;
2005 esac
2006else
2007 enable_fast_install=yes
2008fi
2009
2010
2011ac_aux_dir=
2012for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2013 if test -f "$ac_dir/install-sh"; then
2014 ac_aux_dir=$ac_dir
2015 ac_install_sh="$ac_aux_dir/install-sh -c"
2016 break
2017 elif test -f "$ac_dir/install.sh"; then
2018 ac_aux_dir=$ac_dir
2019 ac_install_sh="$ac_aux_dir/install.sh -c"
2020 break
2021 elif test -f "$ac_dir/shtool"; then
2022 ac_aux_dir=$ac_dir
2023 ac_install_sh="$ac_aux_dir/shtool install -c"
2024 break
2025 fi
2026done
2027if test -z "$ac_aux_dir"; then
2028 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2029echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2030 { (exit 1); exit 1; }; }
2031fi
2032
2033# These three variables are undocumented and unsupported,
2034# and are intended to be withdrawn in a future Autoconf release.
2035# They can cause serious problems if a builder's source tree is in a directory
2036# whose full name contains unusual characters.
2037ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2038ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2039ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2040
2041
2042# Make sure we can run config.sub.
2043$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2044 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2045echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2046 { (exit 1); exit 1; }; }
2047
2048{ echo "$as_me:$LINENO: checking build system type" >&5
2049echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2050if test "${ac_cv_build+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053 ac_build_alias=$build_alias
2054test "x$ac_build_alias" = x &&
2055 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2056test "x$ac_build_alias" = x &&
2057 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2058echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2059 { (exit 1); exit 1; }; }
2060ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2061 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2062echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2063 { (exit 1); exit 1; }; }
2064
2065fi
2066{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2067echo "${ECHO_T}$ac_cv_build" >&6; }
2068case $ac_cv_build in
2069*-*-*) ;;
2070*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2071echo "$as_me: error: invalid value of canonical build" >&2;}
2072 { (exit 1); exit 1; }; };;
2073esac
2074build=$ac_cv_build
2075ac_save_IFS=$IFS; IFS='-'
2076set x $ac_cv_build
2077shift
2078build_cpu=$1
2079build_vendor=$2
2080shift; shift
2081# Remember, the first character of IFS is used to create $*,
2082# except with old shells:
2083build_os=$*
2084IFS=$ac_save_IFS
2085case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2086
2087
2088{ echo "$as_me:$LINENO: checking host system type" >&5
2089echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2090if test "${ac_cv_host+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092else
2093 if test "x$host_alias" = x; then
2094 ac_cv_host=$ac_cv_build
2095else
2096 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2097 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2098echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2099 { (exit 1); exit 1; }; }
2100fi
2101
2102fi
2103{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2104echo "${ECHO_T}$ac_cv_host" >&6; }
2105case $ac_cv_host in
2106*-*-*) ;;
2107*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2108echo "$as_me: error: invalid value of canonical host" >&2;}
2109 { (exit 1); exit 1; }; };;
2110esac
2111host=$ac_cv_host
2112ac_save_IFS=$IFS; IFS='-'
2113set x $ac_cv_host
2114shift
2115host_cpu=$1
2116host_vendor=$2
2117shift; shift
2118# Remember, the first character of IFS is used to create $*,
2119# except with old shells:
2120host_os=$*
2121IFS=$ac_save_IFS
2122case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2123
2124
2125ac_ext=c
2126ac_cpp='$CPP $CPPFLAGS'
2127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129ac_compiler_gnu=$ac_cv_c_compiler_gnu
2130if test -n "$ac_tool_prefix"; then
2131 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2132set dummy ${ac_tool_prefix}gcc; ac_word=$2
2133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2135if test "${ac_cv_prog_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137else
2138 if test -n "$CC"; then
2139 ac_cv_prog_CC="$CC" # Let the user override the test.
2140else
2141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2148 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2151 fi
2152done
2153done
2154IFS=$as_save_IFS
2155
2156fi
2157fi
2158CC=$ac_cv_prog_CC
2159if test -n "$CC"; then
2160 { echo "$as_me:$LINENO: result: $CC" >&5
2161echo "${ECHO_T}$CC" >&6; }
2162else
2163 { echo "$as_me:$LINENO: result: no" >&5
2164echo "${ECHO_T}no" >&6; }
2165fi
2166
2167
2168fi
2169if test -z "$ac_cv_prog_CC"; then
2170 ac_ct_CC=$CC
2171 # Extract the first word of "gcc", so it can be a program name with args.
2172set dummy gcc; ac_word=$2
2173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2175if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177else
2178 if test -n "$ac_ct_CC"; then
2179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2180else
2181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182for as_dir in $PATH
2183do
2184 IFS=$as_save_IFS
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188 ac_cv_prog_ac_ct_CC="gcc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2191 fi
2192done
2193done
2194IFS=$as_save_IFS
2195
2196fi
2197fi
2198ac_ct_CC=$ac_cv_prog_ac_ct_CC
2199if test -n "$ac_ct_CC"; then
2200 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2201echo "${ECHO_T}$ac_ct_CC" >&6; }
2202else
2203 { echo "$as_me:$LINENO: result: no" >&5
2204echo "${ECHO_T}no" >&6; }
2205fi
2206
2207 if test "x$ac_ct_CC" = x; then
2208 CC=""
2209 else
2210 case $cross_compiling:$ac_tool_warned in
2211yes:)
2212{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2213whose name does not start with the host triplet. If you think this
2214configuration is useful to you, please write to autoconf@gnu.org." >&5
2215echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2216whose name does not start with the host triplet. If you think this
2217configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2218ac_tool_warned=yes ;;
2219esac
2220 CC=$ac_ct_CC
2221 fi
2222else
2223 CC="$ac_cv_prog_CC"
2224fi
2225
2226if test -z "$CC"; then
2227 if test -n "$ac_tool_prefix"; then
2228 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2229set dummy ${ac_tool_prefix}cc; ac_word=$2
2230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2232if test "${ac_cv_prog_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2234else
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2237else
2238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239for as_dir in $PATH
2240do
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245 ac_cv_prog_CC="${ac_tool_prefix}cc"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 break 2
2248 fi
2249done
2250done
2251IFS=$as_save_IFS
2252
2253fi
2254fi
2255CC=$ac_cv_prog_CC
2256if test -n "$CC"; then
2257 { echo "$as_me:$LINENO: result: $CC" >&5
2258echo "${ECHO_T}$CC" >&6; }
2259else
2260 { echo "$as_me:$LINENO: result: no" >&5
2261echo "${ECHO_T}no" >&6; }
2262fi
2263
2264
2265 fi
2266fi
2267if test -z "$CC"; then
2268 # Extract the first word of "cc", so it can be a program name with args.
2269set dummy cc; ac_word=$2
2270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2272if test "${ac_cv_prog_CC+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2274else
2275 if test -n "$CC"; then
2276 ac_cv_prog_CC="$CC" # Let the user override the test.
2277else
2278 ac_prog_rejected=no
2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2286 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2287 ac_prog_rejected=yes
2288 continue
2289 fi
2290 ac_cv_prog_CC="cc"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 break 2
2293 fi
2294done
2295done
2296IFS=$as_save_IFS
2297
2298if test $ac_prog_rejected = yes; then
2299 # We found a bogon in the path, so make sure we never use it.
2300 set dummy $ac_cv_prog_CC
2301 shift
2302 if test $# != 0; then
2303 # We chose a different compiler from the bogus one.
2304 # However, it has the same basename, so the bogon will be chosen
2305 # first if we set CC to just the basename; use the full file name.
2306 shift
2307 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2308 fi
2309fi
2310fi
2311fi
2312CC=$ac_cv_prog_CC
2313if test -n "$CC"; then
2314 { echo "$as_me:$LINENO: result: $CC" >&5
2315echo "${ECHO_T}$CC" >&6; }
2316else
2317 { echo "$as_me:$LINENO: result: no" >&5
2318echo "${ECHO_T}no" >&6; }
2319fi
2320
2321
2322fi
2323if test -z "$CC"; then
2324 if test -n "$ac_tool_prefix"; then
2325 for ac_prog in cl.exe
2326 do
2327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2328set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2329{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2331if test "${ac_cv_prog_CC+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2333else
2334 if test -n "$CC"; then
2335 ac_cv_prog_CC="$CC" # Let the user override the test.
2336else
2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338for as_dir in $PATH
2339do
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 break 2
2347 fi
2348done
2349done
2350IFS=$as_save_IFS
2351
2352fi
2353fi
2354CC=$ac_cv_prog_CC
2355if test -n "$CC"; then
2356 { echo "$as_me:$LINENO: result: $CC" >&5
2357echo "${ECHO_T}$CC" >&6; }
2358else
2359 { echo "$as_me:$LINENO: result: no" >&5
2360echo "${ECHO_T}no" >&6; }
2361fi
2362
2363
2364 test -n "$CC" && break
2365 done
2366fi
2367if test -z "$CC"; then
2368 ac_ct_CC=$CC
2369 for ac_prog in cl.exe
2370do
2371 # Extract the first word of "$ac_prog", so it can be a program name with args.
2372set dummy $ac_prog; ac_word=$2
2373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2375if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377else
2378 if test -n "$ac_ct_CC"; then
2379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2380else
2381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382for as_dir in $PATH
2383do
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388 ac_cv_prog_ac_ct_CC="$ac_prog"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 break 2
2391 fi
2392done
2393done
2394IFS=$as_save_IFS
2395
2396fi
2397fi
2398ac_ct_CC=$ac_cv_prog_ac_ct_CC
2399if test -n "$ac_ct_CC"; then
2400 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2401echo "${ECHO_T}$ac_ct_CC" >&6; }
2402else
2403 { echo "$as_me:$LINENO: result: no" >&5
2404echo "${ECHO_T}no" >&6; }
2405fi
2406
2407
2408 test -n "$ac_ct_CC" && break
2409done
2410
2411 if test "x$ac_ct_CC" = x; then
2412 CC=""
2413 else
2414 case $cross_compiling:$ac_tool_warned in
2415yes:)
2416{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2417whose name does not start with the host triplet. If you think this
2418configuration is useful to you, please write to autoconf@gnu.org." >&5
2419echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2420whose name does not start with the host triplet. If you think this
2421configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2422ac_tool_warned=yes ;;
2423esac
2424 CC=$ac_ct_CC
2425 fi
2426fi
2427
2428fi
2429
2430
2431test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2432See \`config.log' for more details." >&5
2433echo "$as_me: error: no acceptable C compiler found in \$PATH
2434See \`config.log' for more details." >&2;}
2435 { (exit 1); exit 1; }; }
2436
2437# Provide some information about the compiler.
2438echo "$as_me:$LINENO: checking for C compiler version" >&5
2439ac_compiler=`set X $ac_compile; echo $2`
2440{ (ac_try="$ac_compiler --version >&5"
2441case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2444esac
2445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446 (eval "$ac_compiler --version >&5") 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }
2450{ (ac_try="$ac_compiler -v >&5"
2451case "(($ac_try" in
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2454esac
2455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_compiler -v >&5") 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }
2460{ (ac_try="$ac_compiler -V >&5"
2461case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464esac
2465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_compiler -V >&5") 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }
2470
2471cat >conftest.$ac_ext <<_ACEOF
2472/* confdefs.h. */
2473_ACEOF
2474cat confdefs.h >>conftest.$ac_ext
2475cat >>conftest.$ac_ext <<_ACEOF
2476/* end confdefs.h. */
2477
2478int
2479main ()
2480{
2481
2482 ;
2483 return 0;
2484}
2485_ACEOF
2486ac_clean_files_save=$ac_clean_files
2487ac_clean_files="$ac_clean_files a.out a.exe b.out"
2488# Try to create an executable without -o first, disregard a.out.
2489# It will help us diagnose broken compilers, and finding out an intuition
2490# of exeext.
2491{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2492echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2493ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2494#
2495# List of possible output files, starting from the most likely.
2496# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2497# only as a last resort. b.out is created by i960 compilers.
2498ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2499#
2500# The IRIX 6 linker writes into existing files which may not be
2501# executable, retaining their permissions. Remove them first so a
2502# subsequent execution test works.
2503ac_rmfiles=
2504for ac_file in $ac_files
2505do
2506 case $ac_file in
2507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2508 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2509 esac
2510done
2511rm -f $ac_rmfiles
2512
2513if { (ac_try="$ac_link_default"
2514case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2517esac
2518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_link_default") 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; then
2523 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2524# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2525# in a Makefile. We should not override ac_cv_exeext if it was cached,
2526# so that the user can short-circuit this test for compilers unknown to
2527# Autoconf.
2528for ac_file in $ac_files ''
2529do
2530 test -f "$ac_file" || continue
2531 case $ac_file in
2532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2533 ;;
2534 [ab].out )
2535 # We found the default executable, but exeext='' is most
2536 # certainly right.
2537 break;;
2538 *.* )
2539 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2540 then :; else
2541 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2542 fi
2543 # We set ac_cv_exeext here because the later test for it is not
2544 # safe: cross compilers may not add the suffix if given an `-o'
2545 # argument, so we may need to know it at that point already.
2546 # Even if this section looks crufty: it has the advantage of
2547 # actually working.
2548 break;;
2549 * )
2550 break;;
2551 esac
2552done
2553test "$ac_cv_exeext" = no && ac_cv_exeext=
2554
2555else
2556 ac_file=''
2557fi
2558
2559{ echo "$as_me:$LINENO: result: $ac_file" >&5
2560echo "${ECHO_T}$ac_file" >&6; }
2561if test -z "$ac_file"; then
2562 echo "$as_me: failed program was:" >&5
2563sed 's/^/| /' conftest.$ac_ext >&5
2564
2565{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2566See \`config.log' for more details." >&5
2567echo "$as_me: error: C compiler cannot create executables
2568See \`config.log' for more details." >&2;}
2569 { (exit 77); exit 77; }; }
2570fi
2571
2572ac_exeext=$ac_cv_exeext
2573
2574# Check that the compiler produces executables we can run. If not, either
2575# the compiler is broken, or we cross compile.
2576{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2577echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2578# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2579# If not cross compiling, check that we can run a simple program.
2580if test "$cross_compiling" != yes; then
2581 if { ac_try='./$ac_file'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585esac
2586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 cross_compiling=no
2592 else
2593 if test "$cross_compiling" = maybe; then
2594 cross_compiling=yes
2595 else
2596 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2597If you meant to cross compile, use \`--host'.
2598See \`config.log' for more details." >&5
2599echo "$as_me: error: cannot run C compiled programs.
2600If you meant to cross compile, use \`--host'.
2601See \`config.log' for more details." >&2;}
2602 { (exit 1); exit 1; }; }
2603 fi
2604 fi
2605fi
2606{ echo "$as_me:$LINENO: result: yes" >&5
2607echo "${ECHO_T}yes" >&6; }
2608
2609rm -f a.out a.exe conftest$ac_cv_exeext b.out
2610ac_clean_files=$ac_clean_files_save
2611# Check that the compiler produces executables we can run. If not, either
2612# the compiler is broken, or we cross compile.
2613{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2614echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2615{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2616echo "${ECHO_T}$cross_compiling" >&6; }
2617
2618{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2619echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2620if { (ac_try="$ac_link"
2621case "(($ac_try" in
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2624esac
2625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626 (eval "$ac_link") 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; then
2630 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2631# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2632# work properly (i.e., refer to `conftest.exe'), while it won't with
2633# `rm'.
2634for ac_file in conftest.exe conftest conftest.*; do
2635 test -f "$ac_file" || continue
2636 case $ac_file in
2637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2638 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2639 break;;
2640 * ) break;;
2641 esac
2642done
2643else
2644 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2645See \`config.log' for more details." >&5
2646echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2647See \`config.log' for more details." >&2;}
2648 { (exit 1); exit 1; }; }
2649fi
2650
2651rm -f conftest$ac_cv_exeext
2652{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2653echo "${ECHO_T}$ac_cv_exeext" >&6; }
2654
2655rm -f conftest.$ac_ext
2656EXEEXT=$ac_cv_exeext
2657ac_exeext=$EXEEXT
2658{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2659echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2660if test "${ac_cv_objext+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662else
2663 cat >conftest.$ac_ext <<_ACEOF
2664/* confdefs.h. */
2665_ACEOF
2666cat confdefs.h >>conftest.$ac_ext
2667cat >>conftest.$ac_ext <<_ACEOF
2668/* end confdefs.h. */
2669
2670int
2671main ()
2672{
2673
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678rm -f conftest.o conftest.obj
2679if { (ac_try="$ac_compile"
2680case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2683esac
2684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compile") 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; then
2689 for ac_file in conftest.o conftest.obj conftest.*; do
2690 test -f "$ac_file" || continue;
2691 case $ac_file in
2692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2693 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2694 break;;
2695 esac
2696done
2697else
2698 echo "$as_me: failed program was:" >&5
2699sed 's/^/| /' conftest.$ac_ext >&5
2700
2701{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2702See \`config.log' for more details." >&5
2703echo "$as_me: error: cannot compute suffix of object files: cannot compile
2704See \`config.log' for more details." >&2;}
2705 { (exit 1); exit 1; }; }
2706fi
2707
2708rm -f conftest.$ac_cv_objext conftest.$ac_ext
2709fi
2710{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2711echo "${ECHO_T}$ac_cv_objext" >&6; }
2712OBJEXT=$ac_cv_objext
2713ac_objext=$OBJEXT
2714{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2715echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2716if test "${ac_cv_c_compiler_gnu+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718else
2719 cat >conftest.$ac_ext <<_ACEOF
2720/* confdefs.h. */
2721_ACEOF
2722cat confdefs.h >>conftest.$ac_ext
2723cat >>conftest.$ac_ext <<_ACEOF
2724/* end confdefs.h. */
2725
2726int
2727main ()
2728{
2729#ifndef __GNUC__
2730 choke me
2731#endif
2732
2733 ;
2734 return 0;
2735}
2736_ACEOF
2737rm -f conftest.$ac_objext
2738if { (ac_try="$ac_compile"
2739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2745 ac_status=$?
2746 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } && {
2751 test -z "$ac_c_werror_flag" ||
2752 test ! -s conftest.err
2753 } && test -s conftest.$ac_objext; then
2754 ac_compiler_gnu=yes
2755else
2756 echo "$as_me: failed program was:" >&5
2757sed 's/^/| /' conftest.$ac_ext >&5
2758
2759 ac_compiler_gnu=no
2760fi
2761
2762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763ac_cv_c_compiler_gnu=$ac_compiler_gnu
2764
2765fi
2766{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2767echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2768GCC=`test $ac_compiler_gnu = yes && echo yes`
2769ac_test_CFLAGS=${CFLAGS+set}
2770ac_save_CFLAGS=$CFLAGS
2771{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2772echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2773if test "${ac_cv_prog_cc_g+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2775else
2776 ac_save_c_werror_flag=$ac_c_werror_flag
2777 ac_c_werror_flag=yes
2778 ac_cv_prog_cc_g=no
2779 CFLAGS="-g"
2780 cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h. */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
2785/* end confdefs.h. */
2786
2787int
2788main ()
2789{
2790
2791 ;
2792 return 0;
2793}
2794_ACEOF
2795rm -f conftest.$ac_objext
2796if { (ac_try="$ac_compile"
2797case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800esac
2801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_compile") 2>conftest.er1
2803 ac_status=$?
2804 grep -v '^ *+' conftest.er1 >conftest.err
2805 rm -f conftest.er1
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } && {
2809 test -z "$ac_c_werror_flag" ||
2810 test ! -s conftest.err
2811 } && test -s conftest.$ac_objext; then
2812 ac_cv_prog_cc_g=yes
2813else
2814 echo "$as_me: failed program was:" >&5
2815sed 's/^/| /' conftest.$ac_ext >&5
2816
2817 CFLAGS=""
2818 cat >conftest.$ac_ext <<_ACEOF
2819/* confdefs.h. */
2820_ACEOF
2821cat confdefs.h >>conftest.$ac_ext
2822cat >>conftest.$ac_ext <<_ACEOF
2823/* end confdefs.h. */
2824
2825int
2826main ()
2827{
2828
2829 ;
2830 return 0;
2831}
2832_ACEOF
2833rm -f conftest.$ac_objext
2834if { (ac_try="$ac_compile"
2835case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838esac
2839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_compile") 2>conftest.er1
2841 ac_status=$?
2842 grep -v '^ *+' conftest.er1 >conftest.err
2843 rm -f conftest.er1
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } && {
2847 test -z "$ac_c_werror_flag" ||
2848 test ! -s conftest.err
2849 } && test -s conftest.$ac_objext; then
2850 :
2851else
2852 echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855 ac_c_werror_flag=$ac_save_c_werror_flag
2856 CFLAGS="-g"
2857 cat >conftest.$ac_ext <<_ACEOF
2858/* confdefs.h. */
2859_ACEOF
2860cat confdefs.h >>conftest.$ac_ext
2861cat >>conftest.$ac_ext <<_ACEOF
2862/* end confdefs.h. */
2863
2864int
2865main ()
2866{
2867
2868 ;
2869 return 0;
2870}
2871_ACEOF
2872rm -f conftest.$ac_objext
2873if { (ac_try="$ac_compile"
2874case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
2878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compile") 2>conftest.er1
2880 ac_status=$?
2881 grep -v '^ *+' conftest.er1 >conftest.err
2882 rm -f conftest.er1
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } && {
2886 test -z "$ac_c_werror_flag" ||
2887 test ! -s conftest.err
2888 } && test -s conftest.$ac_objext; then
2889 ac_cv_prog_cc_g=yes
2890else
2891 echo "$as_me: failed program was:" >&5
2892sed 's/^/| /' conftest.$ac_ext >&5
2893
2894
2895fi
2896
2897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898fi
2899
2900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901fi
2902
2903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904 ac_c_werror_flag=$ac_save_c_werror_flag
2905fi
2906{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2907echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2908if test "$ac_test_CFLAGS" = set; then
2909 CFLAGS=$ac_save_CFLAGS
2910elif test $ac_cv_prog_cc_g = yes; then
2911 if test "$GCC" = yes; then
2912 CFLAGS="-g -O2"
2913 else
2914 CFLAGS="-g"
2915 fi
2916else
2917 if test "$GCC" = yes; then
2918 CFLAGS="-O2"
2919 else
2920 CFLAGS=
2921 fi
2922fi
2923{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2924echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2925if test "${ac_cv_prog_cc_c89+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928 ac_cv_prog_cc_c89=no
2929ac_save_CC=$CC
2930cat >conftest.$ac_ext <<_ACEOF
2931/* confdefs.h. */
2932_ACEOF
2933cat confdefs.h >>conftest.$ac_ext
2934cat >>conftest.$ac_ext <<_ACEOF
2935/* end confdefs.h. */
2936#include <stdarg.h>
2937#include <stdio.h>
2938#include <sys/types.h>
2939#include <sys/stat.h>
2940/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2941struct buf { int x; };
2942FILE * (*rcsopen) (struct buf *, struct stat *, int);
2943static char *e (p, i)
2944 char **p;
2945 int i;
2946{
2947 return p[i];
2948}
2949static char *f (char * (*g) (char **, int), char **p, ...)
2950{
2951 char *s;
2952 va_list v;
2953 va_start (v,p);
2954 s = g (p, va_arg (v,int));
2955 va_end (v);
2956 return s;
2957}
2958
2959/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2960 function prototypes and stuff, but not '\xHH' hex character constants.
2961 These don't provoke an error unfortunately, instead are silently treated
2962 as 'x'. The following induces an error, until -std is added to get
2963 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2964 array size at least. It's necessary to write '\x00'==0 to get something
2965 that's true only with -std. */
2966int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2967
2968/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2969 inside strings and character constants. */
2970#define FOO(x) 'x'
2971int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2972
2973int test (int i, double x);
2974struct s1 {int (*f) (int a);};
2975struct s2 {int (*f) (double a);};
2976int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2977int argc;
2978char **argv;
2979int
2980main ()
2981{
2982return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2983 ;
2984 return 0;
2985}
2986_ACEOF
2987for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2988 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2989do
2990 CC="$ac_save_CC $ac_arg"
2991 rm -f conftest.$ac_objext
2992if { (ac_try="$ac_compile"
2993case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_compile") 2>conftest.er1
2999 ac_status=$?
3000 grep -v '^ *+' conftest.er1 >conftest.err
3001 rm -f conftest.er1
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } && {
3005 test -z "$ac_c_werror_flag" ||
3006 test ! -s conftest.err
3007 } && test -s conftest.$ac_objext; then
3008 ac_cv_prog_cc_c89=$ac_arg
3009else
3010 echo "$as_me: failed program was:" >&5
3011sed 's/^/| /' conftest.$ac_ext >&5
3012
3013
3014fi
3015
3016rm -f core conftest.err conftest.$ac_objext
3017 test "x$ac_cv_prog_cc_c89" != "xno" && break
3018done
3019rm -f conftest.$ac_ext
3020CC=$ac_save_CC
3021
3022fi
3023# AC_CACHE_VAL
3024case "x$ac_cv_prog_cc_c89" in
3025 x)
3026 { echo "$as_me:$LINENO: result: none needed" >&5
3027echo "${ECHO_T}none needed" >&6; } ;;
3028 xno)
3029 { echo "$as_me:$LINENO: result: unsupported" >&5
3030echo "${ECHO_T}unsupported" >&6; } ;;
3031 *)
3032 CC="$CC $ac_cv_prog_cc_c89"
3033 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3034echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3035esac
3036
3037
3038ac_ext=c
3039ac_cpp='$CPP $CPPFLAGS'
3040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043
3044{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3045echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3046if test "${lt_cv_path_SED+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048else
3049 # Loop through the user's path and test for sed and gsed.
3050# Then use that list of sed's as ones to test for truncation.
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for lt_ac_prog in sed gsed; do
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3059 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3060 fi
3061 done
3062 done
3063done
3064lt_ac_max=0
3065lt_ac_count=0
3066# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3067# along with /bin/sed that truncates output.
3068for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3069 test ! -f $lt_ac_sed && continue
3070 cat /dev/null > conftest.in
3071 lt_ac_count=0
3072 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3073 # Check for GNU sed and select it if it is found.
3074 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3075 lt_cv_path_SED=$lt_ac_sed
3076 break
3077 fi
3078 while true; do
3079 cat conftest.in conftest.in >conftest.tmp
3080 mv conftest.tmp conftest.in
3081 cp conftest.in conftest.nl
3082 echo >>conftest.nl
3083 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3084 cmp -s conftest.out conftest.nl || break
3085 # 10000 chars as input seems more than enough
3086 test $lt_ac_count -gt 10 && break
3087 lt_ac_count=`expr $lt_ac_count + 1`
3088 if test $lt_ac_count -gt $lt_ac_max; then
3089 lt_ac_max=$lt_ac_count
3090 lt_cv_path_SED=$lt_ac_sed
3091 fi
3092 done
3093done
3094
3095fi
3096
3097SED=$lt_cv_path_SED
3098{ echo "$as_me:$LINENO: result: $SED" >&5
3099echo "${ECHO_T}$SED" >&6; }
3100
3101{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3102echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3103if test "${ac_cv_path_GREP+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105else
3106 # Extract the first word of "grep ggrep" to use in msg output
3107if test -z "$GREP"; then
3108set dummy grep ggrep; ac_prog_name=$2
3109if test "${ac_cv_path_GREP+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111else
3112 ac_path_GREP_found=false
3113# Loop through the user's path and test for each of PROGNAME-LIST
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_prog in grep ggrep; do
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3122 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3123 # Check for GNU ac_path_GREP and select it if it is found.
3124 # Check for GNU $ac_path_GREP
3125case `"$ac_path_GREP" --version 2>&1` in
3126*GNU*)
3127 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3128*)
3129 ac_count=0
3130 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3131 while :
3132 do
3133 cat "conftest.in" "conftest.in" >"conftest.tmp"
3134 mv "conftest.tmp" "conftest.in"
3135 cp "conftest.in" "conftest.nl"
3136 echo 'GREP' >> "conftest.nl"
3137 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3139 ac_count=`expr $ac_count + 1`
3140 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3141 # Best one so far, save it but keep looking for a better one
3142 ac_cv_path_GREP="$ac_path_GREP"
3143 ac_path_GREP_max=$ac_count
3144 fi
3145 # 10*(2^10) chars as input seems more than enough
3146 test $ac_count -gt 10 && break
3147 done
3148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3149esac
3150
3151
3152 $ac_path_GREP_found && break 3
3153 done
3154done
3155
3156done
3157IFS=$as_save_IFS
3158
3159
3160fi
3161
3162GREP="$ac_cv_path_GREP"
3163if test -z "$GREP"; then
3164 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3165echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3166 { (exit 1); exit 1; }; }
3167fi
3168
3169else
3170 ac_cv_path_GREP=$GREP
3171fi
3172
3173
3174fi
3175{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3176echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3177 GREP="$ac_cv_path_GREP"
3178
3179
3180{ echo "$as_me:$LINENO: checking for egrep" >&5
3181echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3182if test "${ac_cv_path_EGREP+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184else
3185 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3186 then ac_cv_path_EGREP="$GREP -E"
3187 else
3188 # Extract the first word of "egrep" to use in msg output
3189if test -z "$EGREP"; then
3190set dummy egrep; ac_prog_name=$2
3191if test "${ac_cv_path_EGREP+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193else
3194 ac_path_EGREP_found=false
3195# Loop through the user's path and test for each of PROGNAME-LIST
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3198do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_prog in egrep; do
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3204 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3205 # Check for GNU ac_path_EGREP and select it if it is found.
3206 # Check for GNU $ac_path_EGREP
3207case `"$ac_path_EGREP" --version 2>&1` in
3208*GNU*)
3209 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3210*)
3211 ac_count=0
3212 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3213 while :
3214 do
3215 cat "conftest.in" "conftest.in" >"conftest.tmp"
3216 mv "conftest.tmp" "conftest.in"
3217 cp "conftest.in" "conftest.nl"
3218 echo 'EGREP' >> "conftest.nl"
3219 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3221 ac_count=`expr $ac_count + 1`
3222 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3223 # Best one so far, save it but keep looking for a better one
3224 ac_cv_path_EGREP="$ac_path_EGREP"
3225 ac_path_EGREP_max=$ac_count
3226 fi
3227 # 10*(2^10) chars as input seems more than enough
3228 test $ac_count -gt 10 && break
3229 done
3230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3231esac
3232
3233
3234 $ac_path_EGREP_found && break 3
3235 done
3236done
3237
3238done
3239IFS=$as_save_IFS
3240
3241
3242fi
3243
3244EGREP="$ac_cv_path_EGREP"
3245if test -z "$EGREP"; then
3246 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3247echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3248 { (exit 1); exit 1; }; }
3249fi
3250
3251else
3252 ac_cv_path_EGREP=$EGREP
3253fi
3254
3255
3256 fi
3257fi
3258{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3259echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3260 EGREP="$ac_cv_path_EGREP"
3261
3262
3263
3264# Check whether --with-gnu-ld was given.
3265if test "${with_gnu_ld+set}" = set; then
3266 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3267else
3268 with_gnu_ld=no
3269fi
3270
3271ac_prog=ld
3272if test "$GCC" = yes; then
3273 # Check if gcc -print-prog-name=ld gives a path.
3274 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3275echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3276 case $host in
3277 *-*-mingw*)
3278 # gcc leaves a trailing carriage return which upsets mingw
3279 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3280 *)
3281 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3282 esac
3283 case $ac_prog in
3284 # Accept absolute paths.
3285 [\\/]* | ?:[\\/]*)
3286 re_direlt='/[^/][^/]*/\.\./'
3287 # Canonicalize the pathname of ld
3288 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3289 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3290 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3291 done
3292 test -z "$LD" && LD="$ac_prog"
3293 ;;
3294 "")
3295 # If it fails, then pretend we aren't using GCC.
3296 ac_prog=ld
3297 ;;
3298 *)
3299 # If it is relative, then search for the first ld in PATH.
3300 with_gnu_ld=unknown
3301 ;;
3302 esac
3303elif test "$with_gnu_ld" = yes; then
3304 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3305echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3306else
3307 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3308echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3309fi
3310if test "${lt_cv_path_LD+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312else
3313 if test -z "$LD"; then
3314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3315 for ac_dir in $PATH; do
3316 IFS="$lt_save_ifs"
3317 test -z "$ac_dir" && ac_dir=.
3318 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3319 lt_cv_path_LD="$ac_dir/$ac_prog"
3320 # Check to see if the program is GNU ld. I'd rather use --version,
3321 # but apparently some variants of GNU ld only accept -v.
3322 # Break only if it was the GNU/non-GNU ld that we prefer.
3323 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3324 *GNU* | *'with BFD'*)
3325 test "$with_gnu_ld" != no && break
3326 ;;
3327 *)
3328 test "$with_gnu_ld" != yes && break
3329 ;;
3330 esac
3331 fi
3332 done
3333 IFS="$lt_save_ifs"
3334else
3335 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3336fi
3337fi
3338
3339LD="$lt_cv_path_LD"
3340if test -n "$LD"; then
3341 { echo "$as_me:$LINENO: result: $LD" >&5
3342echo "${ECHO_T}$LD" >&6; }
3343else
3344 { echo "$as_me:$LINENO: result: no" >&5
3345echo "${ECHO_T}no" >&6; }
3346fi
3347test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3348echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3349 { (exit 1); exit 1; }; }
3350{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3351echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3352if test "${lt_cv_prog_gnu_ld+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354else
3355 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3356case `$LD -v 2>&1 </dev/null` in
3357*GNU* | *'with BFD'*)
3358 lt_cv_prog_gnu_ld=yes
3359 ;;
3360*)
3361 lt_cv_prog_gnu_ld=no
3362 ;;
3363esac
3364fi
3365{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3366echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3367with_gnu_ld=$lt_cv_prog_gnu_ld
3368
3369
3370{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3371echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3372if test "${lt_cv_ld_reload_flag+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
3375 lt_cv_ld_reload_flag='-r'
3376fi
3377{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3378echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3379reload_flag=$lt_cv_ld_reload_flag
3380case $reload_flag in
3381"" | " "*) ;;
3382*) reload_flag=" $reload_flag" ;;
3383esac
3384reload_cmds='$LD$reload_flag -o $output$reload_objs'
3385case $host_os in
3386 darwin*)
3387 if test "$GCC" = yes; then
3388 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3389 else
3390 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3391 fi
3392 ;;
3393esac
3394
3395{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3396echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3397if test "${lt_cv_path_NM+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400 if test -n "$NM"; then
3401 # Let the user override the test.
3402 lt_cv_path_NM="$NM"
3403else
3404 lt_nm_to_check="${ac_tool_prefix}nm"
3405 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3406 lt_nm_to_check="$lt_nm_to_check nm"
3407 fi
3408 for lt_tmp_nm in $lt_nm_to_check; do
3409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3410 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3411 IFS="$lt_save_ifs"
3412 test -z "$ac_dir" && ac_dir=.
3413 tmp_nm="$ac_dir/$lt_tmp_nm"
3414 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3415 # Check to see if the nm accepts a BSD-compat flag.
3416 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3417 # nm: unknown option "B" ignored
3418 # Tru64's nm complains that /dev/null is an invalid object file
3419 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3420 */dev/null* | *'Invalid file or object type'*)
3421 lt_cv_path_NM="$tmp_nm -B"
3422 break
3423 ;;
3424 *)
3425 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3426 */dev/null*)
3427 lt_cv_path_NM="$tmp_nm -p"
3428 break
3429 ;;
3430 *)
3431 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3432 continue # so that we can try to find one that supports BSD flags
3433 ;;
3434 esac
3435 ;;
3436 esac
3437 fi
3438 done
3439 IFS="$lt_save_ifs"
3440 done
3441 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3442fi
3443fi
3444{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3445echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3446NM="$lt_cv_path_NM"
3447
3448{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3449echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3450LN_S=$as_ln_s
3451if test "$LN_S" = "ln -s"; then
3452 { echo "$as_me:$LINENO: result: yes" >&5
3453echo "${ECHO_T}yes" >&6; }
3454else
3455 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3456echo "${ECHO_T}no, using $LN_S" >&6; }
3457fi
3458
3459{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3460echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3461if test "${lt_cv_deplibs_check_method+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463else
3464 lt_cv_file_magic_cmd='$MAGIC_CMD'
3465lt_cv_file_magic_test_file=
3466lt_cv_deplibs_check_method='unknown'
3467# Need to set the preceding variable on all platforms that support
3468# interlibrary dependencies.
3469# 'none' -- dependencies not supported.
3470# `unknown' -- same as none, but documents that we really don't know.
3471# 'pass_all' -- all dependencies passed with no checks.
3472# 'test_compile' -- check by making test program.
3473# 'file_magic [[regex]]' -- check by looking for files in library path
3474# which responds to the $file_magic_cmd with a given extended regex.
3475# If you have `file' or equivalent on your system and you're not sure
3476# whether `pass_all' will *always* work, you probably want this one.
3477
3478case $host_os in
3479aix4* | aix5*)
3480 lt_cv_deplibs_check_method=pass_all
3481 ;;
3482
3483beos*)
3484 lt_cv_deplibs_check_method=pass_all
3485 ;;
3486
3487bsdi[45]*)
3488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3489 lt_cv_file_magic_cmd='/usr/bin/file -L'
3490 lt_cv_file_magic_test_file=/shlib/libc.so
3491 ;;
3492
3493cygwin*)
3494 # func_win32_libid is a shell function defined in ltmain.sh
3495 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3496 lt_cv_file_magic_cmd='func_win32_libid'
3497 ;;
3498
3499mingw* | pw32*)
3500 # Base MSYS/MinGW do not provide the 'file' command needed by
3501 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3502 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3503 lt_cv_file_magic_cmd='$OBJDUMP -f'
3504 ;;
3505
3506darwin* | rhapsody*)
3507 lt_cv_deplibs_check_method=pass_all
3508 ;;
3509
3510freebsd* | kfreebsd*-gnu | dragonfly*)
3511 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3512 case $host_cpu in
3513 i*86 )
3514 # Not sure whether the presence of OpenBSD here was a mistake.
3515 # Let's accept both of them until this is cleared up.
3516 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3517 lt_cv_file_magic_cmd=/usr/bin/file
3518 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3519 ;;
3520 esac
3521 else
3522 lt_cv_deplibs_check_method=pass_all
3523 fi
3524 ;;
3525
3526gnu*)
3527 lt_cv_deplibs_check_method=pass_all
3528 ;;
3529
3530hpux10.20* | hpux11*)
3531 lt_cv_file_magic_cmd=/usr/bin/file
3532 case $host_cpu in
3533 ia64*)
3534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3535 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3536 ;;
3537 hppa*64*)
3538 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]'
3539 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3540 ;;
3541 *)
3542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3543 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3544 ;;
3545 esac
3546 ;;
3547
3548interix3*)
3549 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3551 ;;
3552
3553irix5* | irix6* | nonstopux*)
3554 case $LD in
3555 *-32|*"-32 ") libmagic=32-bit;;
3556 *-n32|*"-n32 ") libmagic=N32;;
3557 *-64|*"-64 ") libmagic=64-bit;;
3558 *) libmagic=never-match;;
3559 esac
3560 lt_cv_deplibs_check_method=pass_all
3561 ;;
3562
3563# This must be Linux ELF.
3564linux*)
3565 lt_cv_deplibs_check_method=pass_all
3566 ;;
3567
3568netbsd*)
3569 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3571 else
3572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3573 fi
3574 ;;
3575
3576newos6*)
3577 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3578 lt_cv_file_magic_cmd=/usr/bin/file
3579 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3580 ;;
3581
3582nto-qnx*)
3583 lt_cv_deplibs_check_method=unknown
3584 ;;
3585
3586openbsd*)
3587 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3588 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3589 else
3590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3591 fi
3592 ;;
3593
3594osf3* | osf4* | osf5*)
3595 lt_cv_deplibs_check_method=pass_all
3596 ;;
3597
3598solaris*)
3599 lt_cv_deplibs_check_method=pass_all
3600 ;;
3601
3602sysv4 | sysv4.3*)
3603 case $host_vendor in
3604 motorola)
3605 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]'
3606 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3607 ;;
3608 ncr)
3609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611 sequent)
3612 lt_cv_file_magic_cmd='/bin/file'
3613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3614 ;;
3615 sni)
3616 lt_cv_file_magic_cmd='/bin/file'
3617 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3618 lt_cv_file_magic_test_file=/lib/libc.so
3619 ;;
3620 siemens)
3621 lt_cv_deplibs_check_method=pass_all
3622 ;;
3623 pc)
3624 lt_cv_deplibs_check_method=pass_all
3625 ;;
3626 esac
3627 ;;
3628
3629sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3630 lt_cv_deplibs_check_method=pass_all
3631 ;;
3632esac
3633
3634fi
3635{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3636echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3637file_magic_cmd=$lt_cv_file_magic_cmd
3638deplibs_check_method=$lt_cv_deplibs_check_method
3639test -z "$deplibs_check_method" && deplibs_check_method=unknown
3640
3641
3642
3643
3644# If no C compiler was specified, use CC.
3645LTCC=${LTCC-"$CC"}
3646
3647# If no C compiler flags were specified, use CFLAGS.
3648LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3649
3650# Allow CC to be a program name with arguments.
3651compiler=$CC
3652
3653
3654# Check whether --enable-libtool-lock was given.
3655if test "${enable_libtool_lock+set}" = set; then
3656 enableval=$enable_libtool_lock;
3657fi
3658
3659test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3660
3661# Some flags need to be propagated to the compiler or linker for good
3662# libtool support.
3663case $host in
3664ia64-*-hpux*)
3665 # Find out which ABI we are using.
3666 echo 'int i;' > conftest.$ac_ext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; then
3672 case `/usr/bin/file conftest.$ac_objext` in
3673 *ELF-32*)
3674 HPUX_IA64_MODE="32"
3675 ;;
3676 *ELF-64*)
3677 HPUX_IA64_MODE="64"
3678 ;;
3679 esac
3680 fi
3681 rm -rf conftest*
3682 ;;
3683*-*-irix6*)
3684 # Find out which ABI we are using.
3685 echo '#line 3685 "configure"' > conftest.$ac_ext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; then
3691 if test "$lt_cv_prog_gnu_ld" = yes; then
3692 case `/usr/bin/file conftest.$ac_objext` in
3693 *32-bit*)
3694 LD="${LD-ld} -melf32bsmip"
3695 ;;
3696 *N32*)
3697 LD="${LD-ld} -melf32bmipn32"
3698 ;;
3699 *64-bit*)
3700 LD="${LD-ld} -melf64bmip"
3701 ;;
3702 esac
3703 else
3704 case `/usr/bin/file conftest.$ac_objext` in
3705 *32-bit*)
3706 LD="${LD-ld} -32"
3707 ;;
3708 *N32*)
3709 LD="${LD-ld} -n32"
3710 ;;
3711 *64-bit*)
3712 LD="${LD-ld} -64"
3713 ;;
3714 esac
3715 fi
3716 fi
3717 rm -rf conftest*
3718 ;;
3719
3720x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3721 # Find out which ABI we are using.
3722 echo 'int i;' > conftest.$ac_ext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3724 (eval $ac_compile) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; then
3728 case `/usr/bin/file conftest.o` in
3729 *32-bit*)
3730 case $host in
3731 x86_64-*linux*)
3732 LD="${LD-ld} -m elf_i386"
3733 ;;
3734 ppc64-*linux*|powerpc64-*linux*)
3735 LD="${LD-ld} -m elf32ppclinux"
3736 ;;
3737 s390x-*linux*)
3738 LD="${LD-ld} -m elf_s390"
3739 ;;
3740 sparc64-*linux*)
3741 LD="${LD-ld} -m elf32_sparc"
3742 ;;
3743 esac
3744 ;;
3745 *64-bit*)
3746 case $host in
3747 x86_64-*linux*)
3748 LD="${LD-ld} -m elf_x86_64"
3749 ;;
3750 ppc*-*linux*|powerpc*-*linux*)
3751 LD="${LD-ld} -m elf64ppc"
3752 ;;
3753 s390*-*linux*)
3754 LD="${LD-ld} -m elf64_s390"
3755 ;;
3756 sparc*-*linux*)
3757 LD="${LD-ld} -m elf64_sparc"
3758 ;;
3759 esac
3760 ;;
3761 esac
3762 fi
3763 rm -rf conftest*
3764 ;;
3765
3766*-*-sco3.2v5*)
3767 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3768 SAVE_CFLAGS="$CFLAGS"
3769 CFLAGS="$CFLAGS -belf"
3770 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3771echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3772if test "${lt_cv_cc_needs_belf+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775 ac_ext=c
3776ac_cpp='$CPP $CPPFLAGS'
3777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3779ac_compiler_gnu=$ac_cv_c_compiler_gnu
3780
3781 cat >conftest.$ac_ext <<_ACEOF
3782/* confdefs.h. */
3783_ACEOF
3784cat confdefs.h >>conftest.$ac_ext
3785cat >>conftest.$ac_ext <<_ACEOF
3786/* end confdefs.h. */
3787
3788int
3789main ()
3790{
3791
3792 ;
3793 return 0;
3794}
3795_ACEOF
3796rm -f conftest.$ac_objext conftest$ac_exeext
3797if { (ac_try="$ac_link"
3798case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801esac
3802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803 (eval "$ac_link") 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } && {
3810 test -z "$ac_c_werror_flag" ||
3811 test ! -s conftest.err
3812 } && test -s conftest$ac_exeext &&
3813 $as_test_x conftest$ac_exeext; then
3814 lt_cv_cc_needs_belf=yes
3815else
3816 echo "$as_me: failed program was:" >&5
3817sed 's/^/| /' conftest.$ac_ext >&5
3818
3819 lt_cv_cc_needs_belf=no
3820fi
3821
3822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3823 conftest$ac_exeext conftest.$ac_ext
3824 ac_ext=c
3825ac_cpp='$CPP $CPPFLAGS'
3826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829
3830fi
3831{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3832echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3833 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3834 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3835 CFLAGS="$SAVE_CFLAGS"
3836 fi
3837 ;;
3838sparc*-*solaris*)
3839 # Find out which ABI we are using.
3840 echo 'int i;' > conftest.$ac_ext
3841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3842 (eval $ac_compile) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; then
3846 case `/usr/bin/file conftest.o` in
3847 *64-bit*)
3848 case $lt_cv_prog_gnu_ld in
3849 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3850 *) LD="${LD-ld} -64" ;;
3851 esac
3852 ;;
3853 esac
3854 fi
3855 rm -rf conftest*
3856 ;;
3857
3858
3859esac
3860
3861need_locks="$enable_libtool_lock"
3862
3863
3864ac_ext=c
3865ac_cpp='$CPP $CPPFLAGS'
3866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3870echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3871# On Suns, sometimes $CPP names a directory.
3872if test -n "$CPP" && test -d "$CPP"; then
3873 CPP=
3874fi
3875if test -z "$CPP"; then
3876 if test "${ac_cv_prog_CPP+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879 # Double quotes because CPP needs to be expanded
3880 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3881 do
3882 ac_preproc_ok=false
3883for ac_c_preproc_warn_flag in '' yes
3884do
3885 # Use a header file that comes with gcc, so configuring glibc
3886 # with a fresh cross-compiler works.
3887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3888 # <limits.h> exists even on freestanding compilers.
3889 # On the NeXT, cc -E runs the code through the compiler's parser,
3890 # not just through cpp. "Syntax error" is here to catch this case.
3891 cat >conftest.$ac_ext <<_ACEOF
3892/* confdefs.h. */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h. */
3897#ifdef __STDC__
3898# include <limits.h>
3899#else
3900# include <assert.h>
3901#endif
3902 Syntax error
3903_ACEOF
3904if { (ac_try="$ac_cpp conftest.$ac_ext"
3905case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908esac
3909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3911 ac_status=$?
3912 grep -v '^ *+' conftest.er1 >conftest.err
3913 rm -f conftest.er1
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } >/dev/null && {
3917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3918 test ! -s conftest.err
3919 }; then
3920 :
3921else
3922 echo "$as_me: failed program was:" >&5
3923sed 's/^/| /' conftest.$ac_ext >&5
3924
3925 # Broken: fails on valid input.
3926continue
3927fi
3928
3929rm -f conftest.err conftest.$ac_ext
3930
3931 # OK, works on sane cases. Now check whether nonexistent headers
3932 # can be detected and how.
3933 cat >conftest.$ac_ext <<_ACEOF
3934/* confdefs.h. */
3935_ACEOF
3936cat confdefs.h >>conftest.$ac_ext
3937cat >>conftest.$ac_ext <<_ACEOF
3938/* end confdefs.h. */
3939#include <ac_nonexistent.h>
3940_ACEOF
3941if { (ac_try="$ac_cpp conftest.$ac_ext"
3942case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945esac
3946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3948 ac_status=$?
3949 grep -v '^ *+' conftest.er1 >conftest.err
3950 rm -f conftest.er1
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } >/dev/null && {
3954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3955 test ! -s conftest.err
3956 }; then
3957 # Broken: success on invalid input.
3958continue
3959else
3960 echo "$as_me: failed program was:" >&5
3961sed 's/^/| /' conftest.$ac_ext >&5
3962
3963 # Passes both tests.
3964ac_preproc_ok=:
3965break
3966fi
3967
3968rm -f conftest.err conftest.$ac_ext
3969
3970done
3971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3972rm -f conftest.err conftest.$ac_ext
3973if $ac_preproc_ok; then
3974 break
3975fi
3976
3977 done
3978 ac_cv_prog_CPP=$CPP
3979
3980fi
3981 CPP=$ac_cv_prog_CPP
3982else
3983 ac_cv_prog_CPP=$CPP
3984fi
3985{ echo "$as_me:$LINENO: result: $CPP" >&5
3986echo "${ECHO_T}$CPP" >&6; }
3987ac_preproc_ok=false
3988for ac_c_preproc_warn_flag in '' yes
3989do
3990 # Use a header file that comes with gcc, so configuring glibc
3991 # with a fresh cross-compiler works.
3992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3993 # <limits.h> exists even on freestanding compilers.
3994 # On the NeXT, cc -E runs the code through the compiler's parser,
3995 # not just through cpp. "Syntax error" is here to catch this case.
3996 cat >conftest.$ac_ext <<_ACEOF
3997/* confdefs.h. */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h. */
4002#ifdef __STDC__
4003# include <limits.h>
4004#else
4005# include <assert.h>
4006#endif
4007 Syntax error
4008_ACEOF
4009if { (ac_try="$ac_cpp conftest.$ac_ext"
4010case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013esac
4014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } >/dev/null && {
4022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4024 }; then
4025 :
4026else
4027 echo "$as_me: failed program was:" >&5
4028sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 # Broken: fails on valid input.
4031continue
4032fi
4033
4034rm -f conftest.err conftest.$ac_ext
4035
4036 # OK, works on sane cases. Now check whether nonexistent headers
4037 # can be detected and how.
4038 cat >conftest.$ac_ext <<_ACEOF
4039/* confdefs.h. */
4040_ACEOF
4041cat confdefs.h >>conftest.$ac_ext
4042cat >>conftest.$ac_ext <<_ACEOF
4043/* end confdefs.h. */
4044#include <ac_nonexistent.h>
4045_ACEOF
4046if { (ac_try="$ac_cpp conftest.$ac_ext"
4047case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050esac
4051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4053 ac_status=$?
4054 grep -v '^ *+' conftest.er1 >conftest.err
4055 rm -f conftest.er1
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } >/dev/null && {
4059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4060 test ! -s conftest.err
4061 }; then
4062 # Broken: success on invalid input.
4063continue
4064else
4065 echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 # Passes both tests.
4069ac_preproc_ok=:
4070break
4071fi
4072
4073rm -f conftest.err conftest.$ac_ext
4074
4075done
4076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4077rm -f conftest.err conftest.$ac_ext
4078if $ac_preproc_ok; then
4079 :
4080else
4081 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4082See \`config.log' for more details." >&5
4083echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4084See \`config.log' for more details." >&2;}
4085 { (exit 1); exit 1; }; }
4086fi
4087
4088ac_ext=c
4089ac_cpp='$CPP $CPPFLAGS'
4090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093
4094
4095{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4096echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4097if test "${ac_cv_header_stdc+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099else
4100 cat >conftest.$ac_ext <<_ACEOF
4101/* confdefs.h. */
4102_ACEOF
4103cat confdefs.h >>conftest.$ac_ext
4104cat >>conftest.$ac_ext <<_ACEOF
4105/* end confdefs.h. */
4106#include <stdlib.h>
4107#include <stdarg.h>
4108#include <string.h>
4109#include <float.h>
4110
4111int
4112main ()
4113{
4114
4115 ;
4116 return 0;
4117}
4118_ACEOF
4119rm -f conftest.$ac_objext
4120if { (ac_try="$ac_compile"
4121case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4124esac
4125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126 (eval "$ac_compile") 2>conftest.er1
4127 ac_status=$?
4128 grep -v '^ *+' conftest.er1 >conftest.err
4129 rm -f conftest.er1
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } && {
4133 test -z "$ac_c_werror_flag" ||
4134 test ! -s conftest.err
4135 } && test -s conftest.$ac_objext; then
4136 ac_cv_header_stdc=yes
4137else
4138 echo "$as_me: failed program was:" >&5
4139sed 's/^/| /' conftest.$ac_ext >&5
4140
4141 ac_cv_header_stdc=no
4142fi
4143
4144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145
4146if test $ac_cv_header_stdc = yes; then
4147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4148 cat >conftest.$ac_ext <<_ACEOF
4149/* confdefs.h. */
4150_ACEOF
4151cat confdefs.h >>conftest.$ac_ext
4152cat >>conftest.$ac_ext <<_ACEOF
4153/* end confdefs.h. */
4154#include <string.h>
4155
4156_ACEOF
4157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "memchr" >/dev/null 2>&1; then
4159 :
4160else
4161 ac_cv_header_stdc=no
4162fi
4163rm -f conftest*
4164
4165fi
4166
4167if test $ac_cv_header_stdc = yes; then
4168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169 cat >conftest.$ac_ext <<_ACEOF
4170/* confdefs.h. */
4171_ACEOF
4172cat confdefs.h >>conftest.$ac_ext
4173cat >>conftest.$ac_ext <<_ACEOF
4174/* end confdefs.h. */
4175#include <stdlib.h>
4176
4177_ACEOF
4178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179 $EGREP "free" >/dev/null 2>&1; then
4180 :
4181else
4182 ac_cv_header_stdc=no
4183fi
4184rm -f conftest*
4185
4186fi
4187
4188if test $ac_cv_header_stdc = yes; then
4189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4190 if test "$cross_compiling" = yes; then
4191 :
4192else
4193 cat >conftest.$ac_ext <<_ACEOF
4194/* confdefs.h. */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
4198/* end confdefs.h. */
4199#include <ctype.h>
4200#include <stdlib.h>
4201#if ((' ' & 0x0FF) == 0x020)
4202# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4203# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4204#else
4205# define ISLOWER(c) \
4206 (('a' <= (c) && (c) <= 'i') \
4207 || ('j' <= (c) && (c) <= 'r') \
4208 || ('s' <= (c) && (c) <= 'z'))
4209# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4210#endif
4211
4212#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4213int
4214main ()
4215{
4216 int i;
4217 for (i = 0; i < 256; i++)
4218 if (XOR (islower (i), ISLOWER (i))
4219 || toupper (i) != TOUPPER (i))
4220 return 2;
4221 return 0;
4222}
4223_ACEOF
4224rm -f conftest$ac_exeext
4225if { (ac_try="$ac_link"
4226case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229esac
4230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_link") 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238esac
4239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 :
4245else
4246 echo "$as_me: program exited with status $ac_status" >&5
4247echo "$as_me: failed program was:" >&5
4248sed 's/^/| /' conftest.$ac_ext >&5
4249
4250( exit $ac_status )
4251ac_cv_header_stdc=no
4252fi
4253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4254fi
4255
4256
4257fi
4258fi
4259{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4260echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4261if test $ac_cv_header_stdc = yes; then
4262
4263cat >>confdefs.h <<\_ACEOF
4264#define STDC_HEADERS 1
4265_ACEOF
4266
4267fi
4268
4269# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4280 inttypes.h stdint.h unistd.h
4281do
4282as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4283{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287else
4288 cat >conftest.$ac_ext <<_ACEOF
4289/* confdefs.h. */
4290_ACEOF
4291cat confdefs.h >>conftest.$ac_ext
4292cat >>conftest.$ac_ext <<_ACEOF
4293/* end confdefs.h. */
4294$ac_includes_default
4295
4296#include <$ac_header>
4297_ACEOF
4298rm -f conftest.$ac_objext
4299if { (ac_try="$ac_compile"
4300case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303esac
4304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_compile") 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } && {
4312 test -z "$ac_c_werror_flag" ||
4313 test ! -s conftest.err
4314 } && test -s conftest.$ac_objext; then
4315 eval "$as_ac_Header=yes"
4316else
4317 echo "$as_me: failed program was:" >&5
4318sed 's/^/| /' conftest.$ac_ext >&5
4319
4320 eval "$as_ac_Header=no"
4321fi
4322
4323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324fi
4325ac_res=`eval echo '${'$as_ac_Header'}'`
4326 { echo "$as_me:$LINENO: result: $ac_res" >&5
4327echo "${ECHO_T}$ac_res" >&6; }
4328if test `eval echo '${'$as_ac_Header'}'` = yes; then
4329 cat >>confdefs.h <<_ACEOF
4330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4331_ACEOF
4332
4333fi
4334
4335done
4336
4337
4338
4339for ac_header in dlfcn.h
4340do
4341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347fi
4348ac_res=`eval echo '${'$as_ac_Header'}'`
4349 { echo "$as_me:$LINENO: result: $ac_res" >&5
4350echo "${ECHO_T}$ac_res" >&6; }
4351else
4352 # Is the header compilable?
4353{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4355cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h. */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h. */
4361$ac_includes_default
4362#include <$ac_header>
4363_ACEOF
4364rm -f conftest.$ac_objext
4365if { (ac_try="$ac_compile"
4366case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369esac
4370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_compile") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && {
4378 test -z "$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 } && test -s conftest.$ac_objext; then
4381 ac_header_compiler=yes
4382else
4383 echo "$as_me: failed program was:" >&5
4384sed 's/^/| /' conftest.$ac_ext >&5
4385
4386 ac_header_compiler=no
4387fi
4388
4389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4391echo "${ECHO_T}$ac_header_compiler" >&6; }
4392
4393# Is the header present?
4394{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4395echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4396cat >conftest.$ac_ext <<_ACEOF
4397/* confdefs.h. */
4398_ACEOF
4399cat confdefs.h >>conftest.$ac_ext
4400cat >>conftest.$ac_ext <<_ACEOF
4401/* end confdefs.h. */
4402#include <$ac_header>
4403_ACEOF
4404if { (ac_try="$ac_cpp conftest.$ac_ext"
4405case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408esac
4409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4411 ac_status=$?
4412 grep -v '^ *+' conftest.er1 >conftest.err
4413 rm -f conftest.er1
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } >/dev/null && {
4417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4418 test ! -s conftest.err
4419 }; then
4420 ac_header_preproc=yes
4421else
4422 echo "$as_me: failed program was:" >&5
4423sed 's/^/| /' conftest.$ac_ext >&5
4424
4425 ac_header_preproc=no
4426fi
4427
4428rm -f conftest.err conftest.$ac_ext
4429{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4430echo "${ECHO_T}$ac_header_preproc" >&6; }
4431
4432# So? What about this header?
4433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4434 yes:no: )
4435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4436echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4438echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4439 ac_header_preproc=yes
4440 ;;
4441 no:yes:* )
4442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4443echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4445echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4447echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4449echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4453echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4454
4455 ;;
4456esac
4457{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462 eval "$as_ac_Header=\$ac_header_preproc"
4463fi
4464ac_res=`eval echo '${'$as_ac_Header'}'`
4465 { echo "$as_me:$LINENO: result: $ac_res" >&5
4466echo "${ECHO_T}$ac_res" >&6; }
4467
4468fi
4469if test `eval echo '${'$as_ac_Header'}'` = yes; then
4470 cat >>confdefs.h <<_ACEOF
4471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4472_ACEOF
4473
4474fi
4475
4476done
4477
4478ac_ext=cpp
4479ac_cpp='$CXXCPP $CPPFLAGS'
4480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4483if test -z "$CXX"; then
4484 if test -n "$CCC"; then
4485 CXX=$CCC
4486 else
4487 if test -n "$ac_tool_prefix"; then
4488 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4489 do
4490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4491set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4494if test "${ac_cv_prog_CXX+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496else
4497 if test -n "$CXX"; then
4498 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4499else
4500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501for as_dir in $PATH
4502do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 break 2
4510 fi
4511done
4512done
4513IFS=$as_save_IFS
4514
4515fi
4516fi
4517CXX=$ac_cv_prog_CXX
4518if test -n "$CXX"; then
4519 { echo "$as_me:$LINENO: result: $CXX" >&5
4520echo "${ECHO_T}$CXX" >&6; }
4521else
4522 { echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6; }
4524fi
4525
4526
4527 test -n "$CXX" && break
4528 done
4529fi
4530if test -z "$CXX"; then
4531 ac_ct_CXX=$CXX
4532 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4533do
4534 # Extract the first word of "$ac_prog", so it can be a program name with args.
4535set dummy $ac_prog; ac_word=$2
4536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4538if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541 if test -n "$ac_ct_CXX"; then
4542 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4543else
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_ac_ct_CXX="$ac_prog"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4554 fi
4555done
4556done
4557IFS=$as_save_IFS
4558
4559fi
4560fi
4561ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4562if test -n "$ac_ct_CXX"; then
4563 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4564echo "${ECHO_T}$ac_ct_CXX" >&6; }
4565else
4566 { echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6; }
4568fi
4569
4570
4571 test -n "$ac_ct_CXX" && break
4572done
4573
4574 if test "x$ac_ct_CXX" = x; then
4575 CXX="g++"
4576 else
4577 case $cross_compiling:$ac_tool_warned in
4578yes:)
4579{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4580whose name does not start with the host triplet. If you think this
4581configuration is useful to you, please write to autoconf@gnu.org." >&5
4582echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4583whose name does not start with the host triplet. If you think this
4584configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4585ac_tool_warned=yes ;;
4586esac
4587 CXX=$ac_ct_CXX
4588 fi
4589fi
4590
4591 fi
4592fi
4593# Provide some information about the compiler.
4594echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4595ac_compiler=`set X $ac_compile; echo $2`
4596{ (ac_try="$ac_compiler --version >&5"
4597case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600esac
4601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_compiler --version >&5") 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }
4606{ (ac_try="$ac_compiler -v >&5"
4607case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610esac
4611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_compiler -v >&5") 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }
4616{ (ac_try="$ac_compiler -V >&5"
4617case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4620esac
4621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_compiler -V >&5") 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }
4626
4627{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4628echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4629if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632 cat >conftest.$ac_ext <<_ACEOF
4633/* confdefs.h. */
4634_ACEOF
4635cat confdefs.h >>conftest.$ac_ext
4636cat >>conftest.$ac_ext <<_ACEOF
4637/* end confdefs.h. */
4638
4639int
4640main ()
4641{
4642#ifndef __GNUC__
4643 choke me
4644#endif
4645
4646 ;
4647 return 0;
4648}
4649_ACEOF
4650rm -f conftest.$ac_objext
4651if { (ac_try="$ac_compile"
4652case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655esac
4656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4657 (eval "$ac_compile") 2>conftest.er1
4658 ac_status=$?
4659 grep -v '^ *+' conftest.er1 >conftest.err
4660 rm -f conftest.er1
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } && {
4664 test -z "$ac_cxx_werror_flag" ||
4665 test ! -s conftest.err
4666 } && test -s conftest.$ac_objext; then
4667 ac_compiler_gnu=yes
4668else
4669 echo "$as_me: failed program was:" >&5
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 ac_compiler_gnu=no
4673fi
4674
4675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4677
4678fi
4679{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4680echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4681GXX=`test $ac_compiler_gnu = yes && echo yes`
4682ac_test_CXXFLAGS=${CXXFLAGS+set}
4683ac_save_CXXFLAGS=$CXXFLAGS
4684{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4685echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4686if test "${ac_cv_prog_cxx_g+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688else
4689 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4690 ac_cxx_werror_flag=yes
4691 ac_cv_prog_cxx_g=no
4692 CXXFLAGS="-g"
4693 cat >conftest.$ac_ext <<_ACEOF
4694/* confdefs.h. */
4695_ACEOF
4696cat confdefs.h >>conftest.$ac_ext
4697cat >>conftest.$ac_ext <<_ACEOF
4698/* end confdefs.h. */
4699
4700int
4701main ()
4702{
4703
4704 ;
4705 return 0;
4706}
4707_ACEOF
4708rm -f conftest.$ac_objext
4709if { (ac_try="$ac_compile"
4710case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713esac
4714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715 (eval "$ac_compile") 2>conftest.er1
4716 ac_status=$?
4717 grep -v '^ *+' conftest.er1 >conftest.err
4718 rm -f conftest.er1
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } && {
4722 test -z "$ac_cxx_werror_flag" ||
4723 test ! -s conftest.err
4724 } && test -s conftest.$ac_objext; then
4725 ac_cv_prog_cxx_g=yes
4726else
4727 echo "$as_me: failed program was:" >&5
4728sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 CXXFLAGS=""
4731 cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h. */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h. */
4737
4738int
4739main ()
4740{
4741
4742 ;
4743 return 0;
4744}
4745_ACEOF
4746rm -f conftest.$ac_objext
4747if { (ac_try="$ac_compile"
4748case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4751esac
4752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_compile") 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } && {
4760 test -z "$ac_cxx_werror_flag" ||
4761 test ! -s conftest.err
4762 } && test -s conftest.$ac_objext; then
4763 :
4764else
4765 echo "$as_me: failed program was:" >&5
4766sed 's/^/| /' conftest.$ac_ext >&5
4767
4768 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4769 CXXFLAGS="-g"
4770 cat >conftest.$ac_ext <<_ACEOF
4771/* confdefs.h. */
4772_ACEOF
4773cat confdefs.h >>conftest.$ac_ext
4774cat >>conftest.$ac_ext <<_ACEOF
4775/* end confdefs.h. */
4776
4777int
4778main ()
4779{
4780
4781 ;
4782 return 0;
4783}
4784_ACEOF
4785rm -f conftest.$ac_objext
4786if { (ac_try="$ac_compile"
4787case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790esac
4791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_compile") 2>conftest.er1
4793 ac_status=$?
4794 grep -v '^ *+' conftest.er1 >conftest.err
4795 rm -f conftest.er1
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } && {
4799 test -z "$ac_cxx_werror_flag" ||
4800 test ! -s conftest.err
4801 } && test -s conftest.$ac_objext; then
4802 ac_cv_prog_cxx_g=yes
4803else
4804 echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807
4808fi
4809
4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811fi
4812
4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814fi
4815
4816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4818fi
4819{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4820echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4821if test "$ac_test_CXXFLAGS" = set; then
4822 CXXFLAGS=$ac_save_CXXFLAGS
4823elif test $ac_cv_prog_cxx_g = yes; then
4824 if test "$GXX" = yes; then
4825 CXXFLAGS="-g -O2"
4826 else
4827 CXXFLAGS="-g"
4828 fi
4829else
4830 if test "$GXX" = yes; then
4831 CXXFLAGS="-O2"
4832 else
4833 CXXFLAGS=
4834 fi
4835fi
4836ac_ext=cpp
4837ac_cpp='$CXXCPP $CPPFLAGS'
4838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4841
4842
4843
4844if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4845 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4846 (test "X$CXX" != "Xg++"))) ; then
4847 ac_ext=cpp
4848ac_cpp='$CXXCPP $CPPFLAGS'
4849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4852{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4853echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4854if test -z "$CXXCPP"; then
4855 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857else
4858 # Double quotes because CXXCPP needs to be expanded
4859 for CXXCPP in "$CXX -E" "/lib/cpp"
4860 do
4861 ac_preproc_ok=false
4862for ac_cxx_preproc_warn_flag in '' yes
4863do
4864 # Use a header file that comes with gcc, so configuring glibc
4865 # with a fresh cross-compiler works.
4866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4867 # <limits.h> exists even on freestanding compilers.
4868 # On the NeXT, cc -E runs the code through the compiler's parser,
4869 # not just through cpp. "Syntax error" is here to catch this case.
4870 cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h. */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h. */
4876#ifdef __STDC__
4877# include <limits.h>
4878#else
4879# include <assert.h>
4880#endif
4881 Syntax error
4882_ACEOF
4883if { (ac_try="$ac_cpp conftest.$ac_ext"
4884case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887esac
4888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4890 ac_status=$?
4891 grep -v '^ *+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } >/dev/null && {
4896 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4897 test ! -s conftest.err
4898 }; then
4899 :
4900else
4901 echo "$as_me: failed program was:" >&5
4902sed 's/^/| /' conftest.$ac_ext >&5
4903
4904 # Broken: fails on valid input.
4905continue
4906fi
4907
4908rm -f conftest.err conftest.$ac_ext
4909
4910 # OK, works on sane cases. Now check whether nonexistent headers
4911 # can be detected and how.
4912 cat >conftest.$ac_ext <<_ACEOF
4913/* confdefs.h. */
4914_ACEOF
4915cat confdefs.h >>conftest.$ac_ext
4916cat >>conftest.$ac_ext <<_ACEOF
4917/* end confdefs.h. */
4918#include <ac_nonexistent.h>
4919_ACEOF
4920if { (ac_try="$ac_cpp conftest.$ac_ext"
4921case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924esac
4925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4927 ac_status=$?
4928 grep -v '^ *+' conftest.er1 >conftest.err
4929 rm -f conftest.er1
4930 cat conftest.err >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } >/dev/null && {
4933 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4934 test ! -s conftest.err
4935 }; then
4936 # Broken: success on invalid input.
4937continue
4938else
4939 echo "$as_me: failed program was:" >&5
4940sed 's/^/| /' conftest.$ac_ext >&5
4941
4942 # Passes both tests.
4943ac_preproc_ok=:
4944break
4945fi
4946
4947rm -f conftest.err conftest.$ac_ext
4948
4949done
4950# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4951rm -f conftest.err conftest.$ac_ext
4952if $ac_preproc_ok; then
4953 break
4954fi
4955
4956 done
4957 ac_cv_prog_CXXCPP=$CXXCPP
4958
4959fi
4960 CXXCPP=$ac_cv_prog_CXXCPP
4961else
4962 ac_cv_prog_CXXCPP=$CXXCPP
4963fi
4964{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4965echo "${ECHO_T}$CXXCPP" >&6; }
4966ac_preproc_ok=false
4967for ac_cxx_preproc_warn_flag in '' yes
4968do
4969 # Use a header file that comes with gcc, so configuring glibc
4970 # with a fresh cross-compiler works.
4971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4972 # <limits.h> exists even on freestanding compilers.
4973 # On the NeXT, cc -E runs the code through the compiler's parser,
4974 # not just through cpp. "Syntax error" is here to catch this case.
4975 cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
4981#ifdef __STDC__
4982# include <limits.h>
4983#else
4984# include <assert.h>
4985#endif
4986 Syntax error
4987_ACEOF
4988if { (ac_try="$ac_cpp conftest.$ac_ext"
4989case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992esac
4993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4995 ac_status=$?
4996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } >/dev/null && {
5001 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5002 test ! -s conftest.err
5003 }; then
5004 :
5005else
5006 echo "$as_me: failed program was:" >&5
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 # Broken: fails on valid input.
5010continue
5011fi
5012
5013rm -f conftest.err conftest.$ac_ext
5014
5015 # OK, works on sane cases. Now check whether nonexistent headers
5016 # can be detected and how.
5017 cat >conftest.$ac_ext <<_ACEOF
5018/* confdefs.h. */
5019_ACEOF
5020cat confdefs.h >>conftest.$ac_ext
5021cat >>conftest.$ac_ext <<_ACEOF
5022/* end confdefs.h. */
5023#include <ac_nonexistent.h>
5024_ACEOF
5025if { (ac_try="$ac_cpp conftest.$ac_ext"
5026case "(($ac_try" in
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5029esac
5030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5032 ac_status=$?
5033 grep -v '^ *+' conftest.er1 >conftest.err
5034 rm -f conftest.er1
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } >/dev/null && {
5038 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5039 test ! -s conftest.err
5040 }; then
5041 # Broken: success on invalid input.
5042continue
5043else
5044 echo "$as_me: failed program was:" >&5
5045sed 's/^/| /' conftest.$ac_ext >&5
5046
5047 # Passes both tests.
5048ac_preproc_ok=:
5049break
5050fi
5051
5052rm -f conftest.err conftest.$ac_ext
5053
5054done
5055# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5056rm -f conftest.err conftest.$ac_ext
5057if $ac_preproc_ok; then
5058 :
5059else
5060 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5061See \`config.log' for more details." >&5
5062echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5063See \`config.log' for more details." >&2;}
5064 { (exit 1); exit 1; }; }
5065fi
5066
5067ac_ext=cpp
5068ac_cpp='$CXXCPP $CPPFLAGS'
5069ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5072
5073fi
5074
5075
5076ac_ext=f
5077ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5078ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5080if test -n "$ac_tool_prefix"; then
5081 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
5082 do
5083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5087if test "${ac_cv_prog_F77+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089else
5090 if test -n "$F77"; then
5091 ac_cv_prog_F77="$F77" # Let the user override the test.
5092else
5093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104done
5105done
5106IFS=$as_save_IFS
5107
5108fi
5109fi
5110F77=$ac_cv_prog_F77
5111if test -n "$F77"; then
5112 { echo "$as_me:$LINENO: result: $F77" >&5
5113echo "${ECHO_T}$F77" >&6; }
5114else
5115 { echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6; }
5117fi
5118
5119
5120 test -n "$F77" && break
5121 done
5122fi
5123if test -z "$F77"; then
5124 ac_ct_F77=$F77
5125 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
5126do
5127 # Extract the first word of "$ac_prog", so it can be a program name with args.
5128set dummy $ac_prog; ac_word=$2
5129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5131if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133else
5134 if test -n "$ac_ct_F77"; then
5135 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5136else
5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138for as_dir in $PATH
5139do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_prog_ac_ct_F77="$ac_prog"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5147 fi
5148done
5149done
5150IFS=$as_save_IFS
5151
5152fi
5153fi
5154ac_ct_F77=$ac_cv_prog_ac_ct_F77
5155if test -n "$ac_ct_F77"; then
5156 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5157echo "${ECHO_T}$ac_ct_F77" >&6; }
5158else
5159 { echo "$as_me:$LINENO: result: no" >&5
5160echo "${ECHO_T}no" >&6; }
5161fi
5162
5163
5164 test -n "$ac_ct_F77" && break
5165done
5166
5167 if test "x$ac_ct_F77" = x; then
5168 F77=""
5169 else
5170 case $cross_compiling:$ac_tool_warned in
5171yes:)
5172{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5173whose name does not start with the host triplet. If you think this
5174configuration is useful to you, please write to autoconf@gnu.org." >&5
5175echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5176whose name does not start with the host triplet. If you think this
5177configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5178ac_tool_warned=yes ;;
5179esac
5180 F77=$ac_ct_F77
5181 fi
5182fi
5183
5184
5185# Provide some information about the compiler.
5186echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5187ac_compiler=`set X $ac_compile; echo $2`
5188{ (ac_try="$ac_compiler --version >&5"
5189case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192esac
5193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_compiler --version >&5") 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }
5198{ (ac_try="$ac_compiler -v >&5"
5199case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5202esac
5203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_compiler -v >&5") 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }
5208{ (ac_try="$ac_compiler -V >&5"
5209case "(($ac_try" in
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5212esac
5213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214 (eval "$ac_compiler -V >&5") 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }
5218rm -f a.out
5219
5220# If we don't use `.F' as extension, the preprocessor is not run on the
5221# input file. (Note that this only needs to work for GNU compilers.)
5222ac_save_ext=$ac_ext
5223ac_ext=F
5224{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5225echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5226if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228else
5229 cat >conftest.$ac_ext <<_ACEOF
5230 program main
5231#ifndef __GNUC__
5232 choke me
5233#endif
5234
5235 end
5236_ACEOF
5237rm -f conftest.$ac_objext
5238if { (ac_try="$ac_compile"
5239case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242esac
5243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_compile") 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } && {
5251 test -z "$ac_f77_werror_flag" ||
5252 test ! -s conftest.err
5253 } && test -s conftest.$ac_objext; then
5254 ac_compiler_gnu=yes
5255else
5256 echo "$as_me: failed program was:" >&5
5257sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 ac_compiler_gnu=no
5260fi
5261
5262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5264
5265fi
5266{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5267echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5268ac_ext=$ac_save_ext
5269ac_test_FFLAGS=${FFLAGS+set}
5270ac_save_FFLAGS=$FFLAGS
5271FFLAGS=
5272{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5273echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5274if test "${ac_cv_prog_f77_g+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276else
5277 FFLAGS=-g
5278cat >conftest.$ac_ext <<_ACEOF
5279 program main
5280
5281 end
5282_ACEOF
5283rm -f conftest.$ac_objext
5284if { (ac_try="$ac_compile"
5285case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288esac
5289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_compile") 2>conftest.er1
5291 ac_status=$?
5292 grep -v '^ *+' conftest.er1 >conftest.err
5293 rm -f conftest.er1
5294 cat conftest.err >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && {
5297 test -z "$ac_f77_werror_flag" ||
5298 test ! -s conftest.err
5299 } && test -s conftest.$ac_objext; then
5300 ac_cv_prog_f77_g=yes
5301else
5302 echo "$as_me: failed program was:" >&5
5303sed 's/^/| /' conftest.$ac_ext >&5
5304
5305 ac_cv_prog_f77_g=no
5306fi
5307
5308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309
5310fi
5311{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5312echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5313if test "$ac_test_FFLAGS" = set; then
5314 FFLAGS=$ac_save_FFLAGS
5315elif test $ac_cv_prog_f77_g = yes; then
5316 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5317 FFLAGS="-g -O2"
5318 else
5319 FFLAGS="-g"
5320 fi
5321else
5322 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5323 FFLAGS="-O2"
5324 else
5325 FFLAGS=
5326 fi
5327fi
5328
5329G77=`test $ac_compiler_gnu = yes && echo yes`
5330ac_ext=c
5331ac_cpp='$CPP $CPPFLAGS'
5332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334ac_compiler_gnu=$ac_cv_c_compiler_gnu
5335
5336
5337
5338# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5339
5340# find the maximum length of command line arguments
5341{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5342echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5343if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345else
5346 i=0
5347 teststring="ABCD"
5348
5349 case $build_os in
5350 msdosdjgpp*)
5351 # On DJGPP, this test can blow up pretty badly due to problems in libc
5352 # (any single argument exceeding 2000 bytes causes a buffer overrun
5353 # during glob expansion). Even if it were fixed, the result of this
5354 # check would be larger than it should be.
5355 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5356 ;;
5357
5358 gnu*)
5359 # Under GNU Hurd, this test is not required because there is
5360 # no limit to the length of command line arguments.
5361 # Libtool will interpret -1 as no limit whatsoever
5362 lt_cv_sys_max_cmd_len=-1;
5363 ;;
5364
5365 cygwin* | mingw*)
5366 # On Win9x/ME, this test blows up -- it succeeds, but takes
5367 # about 5 minutes as the teststring grows exponentially.
5368 # Worse, since 9x/ME are not pre-emptively multitasking,
5369 # you end up with a "frozen" computer, even though with patience
5370 # the test eventually succeeds (with a max line length of 256k).
5371 # Instead, let's just punt: use the minimum linelength reported by
5372 # all of the supported platforms: 8192 (on NT/2K/XP).
5373 lt_cv_sys_max_cmd_len=8192;
5374 ;;
5375
5376 amigaos*)
5377 # On AmigaOS with pdksh, this test takes hours, literally.
5378 # So we just punt and use a minimum line length of 8192.
5379 lt_cv_sys_max_cmd_len=8192;
5380 ;;
5381
5382 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5383 # This has been around since 386BSD, at least. Likely further.
5384 if test -x /sbin/sysctl; then
5385 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5386 elif test -x /usr/sbin/sysctl; then
5387 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5388 else
5389 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5390 fi
5391 # And add a safety zone
5392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5394 ;;
5395
5396 interix*)
5397 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5398 lt_cv_sys_max_cmd_len=196608
5399 ;;
5400
5401 osf*)
5402 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5403 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5404 # nice to cause kernel panics so lets avoid the loop below.
5405 # First set a reasonable default.
5406 lt_cv_sys_max_cmd_len=16384
5407 #
5408 if test -x /sbin/sysconfig; then
5409 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5410 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5411 esac
5412 fi
5413 ;;
5414 sco3.2v5*)
5415 lt_cv_sys_max_cmd_len=102400
5416 ;;
5417 sysv5* | sco5v6* | sysv4.2uw2*)
5418 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5419 if test -n "$kargmax"; then
5420 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5421 else
5422 lt_cv_sys_max_cmd_len=32768
5423 fi
5424 ;;
5425 *)
5426 # If test is not a shell built-in, we'll probably end up computing a
5427 # maximum length that is only half of the actual maximum length, but
5428 # we can't tell.
5429 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5430 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5431 = "XX$teststring") >/dev/null 2>&1 &&
5432 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5433 lt_cv_sys_max_cmd_len=$new_result &&
5434 test $i != 17 # 1/2 MB should be enough
5435 do
5436 i=`expr $i + 1`
5437 teststring=$teststring$teststring
5438 done
5439 teststring=
5440 # Add a significant safety factor because C++ compilers can tack on massive
5441 # amounts of additional arguments before passing them to the linker.
5442 # It appears as though 1/2 is a usable value.
5443 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5444 ;;
5445 esac
5446
5447fi
5448
5449if test -n $lt_cv_sys_max_cmd_len ; then
5450 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5451echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5452else
5453 { echo "$as_me:$LINENO: result: none" >&5
5454echo "${ECHO_T}none" >&6; }
5455fi
5456
5457
5458
5459
5460# Check for command to grab the raw symbol name followed by C symbol from nm.
5461{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5462echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5463if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466
5467# These are sane defaults that work on at least a few old systems.
5468# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5469
5470# Character class describing NM global symbol codes.
5471symcode='[BCDEGRST]'
5472
5473# Regexp to match symbols that can be accessed directly from C.
5474sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5475
5476# Transform an extracted symbol line into a proper C declaration
5477lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5478
5479# Transform an extracted symbol line into symbol name and symbol address
5480lt_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'"
5481
5482# Define system-specific variables.
5483case $host_os in
5484aix*)
5485 symcode='[BCDT]'
5486 ;;
5487cygwin* | mingw* | pw32*)
5488 symcode='[ABCDGISTW]'
5489 ;;
5490hpux*) # Its linker distinguishes data from code symbols
5491 if test "$host_cpu" = ia64; then
5492 symcode='[ABCDEGRST]'
5493 fi
5494 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5495 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'"
5496 ;;
5497linux*)
5498 if test "$host_cpu" = ia64; then
5499 symcode='[ABCDGIRSTW]'
5500 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5501 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'"
5502 fi
5503 ;;
5504irix* | nonstopux*)
5505 symcode='[BCDEGRST]'
5506 ;;
5507osf*)
5508 symcode='[BCDEGQRST]'
5509 ;;
5510solaris*)
5511 symcode='[BDRT]'
5512 ;;
5513sco3.2v5*)
5514 symcode='[DT]'
5515 ;;
5516sysv4.2uw2*)
5517 symcode='[DT]'
5518 ;;
5519sysv5* | sco5v6* | unixware* | OpenUNIX*)
5520 symcode='[ABDT]'
5521 ;;
5522sysv4)
5523 symcode='[DFNSTU]'
5524 ;;
5525esac
5526
5527# Handle CRLF in mingw tool chain
5528opt_cr=
5529case $build_os in
5530mingw*)
5531 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5532 ;;
5533esac
5534
5535# If we're using GNU nm, then use its standard symbol codes.
5536case `$NM -V 2>&1` in
5537*GNU* | *'with BFD'*)
5538 symcode='[ABCDGIRSTW]' ;;
5539esac
5540
5541# Try without a prefix undercore, then with it.
5542for ac_symprfx in "" "_"; do
5543
5544 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5545 symxfrm="\\1 $ac_symprfx\\2 \\2"
5546
5547 # Write the raw and C identifiers.
5548 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5549
5550 # Check to see that the pipe works correctly.
5551 pipe_works=no
5552
5553 rm -f conftest*
5554 cat > conftest.$ac_ext <<EOF
5555#ifdef __cplusplus
5556extern "C" {
5557#endif
5558char nm_test_var;
5559void nm_test_func(){}
5560#ifdef __cplusplus
5561}
5562#endif
5563int main(){nm_test_var='a';nm_test_func();return(0);}
5564EOF
5565
5566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5567 (eval $ac_compile) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; then
5571 # Now try to grab the symbols.
5572 nlist=conftest.nm
5573 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5574 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } && test -s "$nlist"; then
5578 # Try sorting and uniquifying the output.
5579 if sort "$nlist" | uniq > "$nlist"T; then
5580 mv -f "$nlist"T "$nlist"
5581 else
5582 rm -f "$nlist"T
5583 fi
5584
5585 # Make sure that we snagged all the symbols we need.
5586 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5587 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5588 cat <<EOF > conftest.$ac_ext
5589#ifdef __cplusplus
5590extern "C" {
5591#endif
5592
5593EOF
5594 # Now generate the symbol file.
5595 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5596
5597 cat <<EOF >> conftest.$ac_ext
5598#if defined (__STDC__) && __STDC__
5599# define lt_ptr_t void *
5600#else
5601# define lt_ptr_t char *
5602# define const
5603#endif
5604
5605/* The mapping between symbol names and symbols. */
5606const struct {
5607 const char *name;
5608 lt_ptr_t address;
5609}
5610lt_preloaded_symbols[] =
5611{
5612EOF
5613 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5614 cat <<\EOF >> conftest.$ac_ext
5615 {0, (lt_ptr_t) 0}
5616};
5617
5618#ifdef __cplusplus
5619}
5620#endif
5621EOF
5622 # Now try linking the two files.
5623 mv conftest.$ac_objext conftstm.$ac_objext
5624 lt_save_LIBS="$LIBS"
5625 lt_save_CFLAGS="$CFLAGS"
5626 LIBS="conftstm.$ac_objext"
5627 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5629 (eval $ac_link) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5633 pipe_works=yes
5634 fi
5635 LIBS="$lt_save_LIBS"
5636 CFLAGS="$lt_save_CFLAGS"
5637 else
5638 echo "cannot find nm_test_func in $nlist" >&5
5639 fi
5640 else
5641 echo "cannot find nm_test_var in $nlist" >&5
5642 fi
5643 else
5644 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5645 fi
5646 else
5647 echo "$progname: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5649 fi
5650 rm -f conftest* conftst*
5651
5652 # Do not use the global_symbol_pipe unless it works.
5653 if test "$pipe_works" = yes; then
5654 break
5655 else
5656 lt_cv_sys_global_symbol_pipe=
5657 fi
5658done
5659
5660fi
5661
5662if test -z "$lt_cv_sys_global_symbol_pipe"; then
5663 lt_cv_sys_global_symbol_to_cdecl=
5664fi
5665if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5666 { echo "$as_me:$LINENO: result: failed" >&5
5667echo "${ECHO_T}failed" >&6; }
5668else
5669 { echo "$as_me:$LINENO: result: ok" >&5
5670echo "${ECHO_T}ok" >&6; }
5671fi
5672
5673{ echo "$as_me:$LINENO: checking for objdir" >&5
5674echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5675if test "${lt_cv_objdir+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677else
5678 rm -f .libs 2>/dev/null
5679mkdir .libs 2>/dev/null
5680if test -d .libs; then
5681 lt_cv_objdir=.libs
5682else
5683 # MS-DOS does not allow filenames that begin with a dot.
5684 lt_cv_objdir=_libs
5685fi
5686rmdir .libs 2>/dev/null
5687fi
5688{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5689echo "${ECHO_T}$lt_cv_objdir" >&6; }
5690objdir=$lt_cv_objdir
5691
5692
5693
5694
5695
5696case $host_os in
5697aix3*)
5698 # AIX sometimes has problems with the GCC collect2 program. For some
5699 # reason, if we set the COLLECT_NAMES environment variable, the problems
5700 # vanish in a puff of smoke.
5701 if test "X${COLLECT_NAMES+set}" != Xset; then
5702 COLLECT_NAMES=
5703 export COLLECT_NAMES
5704 fi
5705 ;;
5706esac
5707
5708# Sed substitution that helps us do robust quoting. It backslashifies
5709# metacharacters that are still active within double-quoted strings.
5710Xsed='sed -e 1s/^X//'
5711sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5712
5713# Same as above, but do not quote variable references.
5714double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5715
5716# Sed substitution to delay expansion of an escaped shell variable in a
5717# double_quote_subst'ed string.
5718delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5719
5720# Sed substitution to avoid accidental globbing in evaled expressions
5721no_glob_subst='s/\*/\\\*/g'
5722
5723# Constants:
5724rm="rm -f"
5725
5726# Global variables:
5727default_ofile=libtool
5728can_build_shared=yes
5729
5730# All known linkers require a `.a' archive for static linking (except MSVC,
5731# which needs '.lib').
5732libext=a
5733ltmain="$ac_aux_dir/ltmain.sh"
5734ofile="$default_ofile"
5735with_gnu_ld="$lt_cv_prog_gnu_ld"
5736
5737if test -n "$ac_tool_prefix"; then
5738 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5739set dummy ${ac_tool_prefix}ar; ac_word=$2
5740{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5742if test "${ac_cv_prog_AR+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5744else
5745 if test -n "$AR"; then
5746 ac_cv_prog_AR="$AR" # Let the user override the test.
5747else
5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_prog_AR="${ac_tool_prefix}ar"
5756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5758 fi
5759done
5760done
5761IFS=$as_save_IFS
5762
5763fi
5764fi
5765AR=$ac_cv_prog_AR
5766if test -n "$AR"; then
5767 { echo "$as_me:$LINENO: result: $AR" >&5
5768echo "${ECHO_T}$AR" >&6; }
5769else
5770 { echo "$as_me:$LINENO: result: no" >&5
5771echo "${ECHO_T}no" >&6; }
5772fi
5773
5774
5775fi
5776if test -z "$ac_cv_prog_AR"; then
5777 ac_ct_AR=$AR
5778 # Extract the first word of "ar", so it can be a program name with args.
5779set dummy ar; ac_word=$2
5780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5782if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784else
5785 if test -n "$ac_ct_AR"; then
5786 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5787else
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5795 ac_cv_prog_ac_ct_AR="ar"
5796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799done
5800done
5801IFS=$as_save_IFS
5802
5803fi
5804fi
5805ac_ct_AR=$ac_cv_prog_ac_ct_AR
5806if test -n "$ac_ct_AR"; then
5807 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5808echo "${ECHO_T}$ac_ct_AR" >&6; }
5809else
5810 { echo "$as_me:$LINENO: result: no" >&5
5811echo "${ECHO_T}no" >&6; }
5812fi
5813
5814 if test "x$ac_ct_AR" = x; then
5815 AR="false"
5816 else
5817 case $cross_compiling:$ac_tool_warned in
5818yes:)
5819{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5820whose name does not start with the host triplet. If you think this
5821configuration is useful to you, please write to autoconf@gnu.org." >&5
5822echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5823whose name does not start with the host triplet. If you think this
5824configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5825ac_tool_warned=yes ;;
5826esac
5827 AR=$ac_ct_AR
5828 fi
5829else
5830 AR="$ac_cv_prog_AR"
5831fi
5832
5833if test -n "$ac_tool_prefix"; then
5834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5835set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5838if test "${ac_cv_prog_RANLIB+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841 if test -n "$RANLIB"; then
5842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5843else
5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845for as_dir in $PATH
5846do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5851 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855done
5856done
5857IFS=$as_save_IFS
5858
5859fi
5860fi
5861RANLIB=$ac_cv_prog_RANLIB
5862if test -n "$RANLIB"; then
5863 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5864echo "${ECHO_T}$RANLIB" >&6; }
5865else
5866 { echo "$as_me:$LINENO: result: no" >&5
5867echo "${ECHO_T}no" >&6; }
5868fi
5869
5870
5871fi
5872if test -z "$ac_cv_prog_RANLIB"; then
5873 ac_ct_RANLIB=$RANLIB
5874 # Extract the first word of "ranlib", so it can be a program name with args.
5875set dummy ranlib; ac_word=$2
5876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5880else
5881 if test -n "$ac_ct_RANLIB"; then
5882 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5883else
5884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885for as_dir in $PATH
5886do
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5891 ac_cv_prog_ac_ct_RANLIB="ranlib"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5894 fi
5895done
5896done
5897IFS=$as_save_IFS
5898
5899fi
5900fi
5901ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5902if test -n "$ac_ct_RANLIB"; then
5903 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5904echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5905else
5906 { echo "$as_me:$LINENO: result: no" >&5
5907echo "${ECHO_T}no" >&6; }
5908fi
5909
5910 if test "x$ac_ct_RANLIB" = x; then
5911 RANLIB=":"
5912 else
5913 case $cross_compiling:$ac_tool_warned in
5914yes:)
5915{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5916whose name does not start with the host triplet. If you think this
5917configuration is useful to you, please write to autoconf@gnu.org." >&5
5918echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5919whose name does not start with the host triplet. If you think this
5920configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5921ac_tool_warned=yes ;;
5922esac
5923 RANLIB=$ac_ct_RANLIB
5924 fi
5925else
5926 RANLIB="$ac_cv_prog_RANLIB"
5927fi
5928
5929if test -n "$ac_tool_prefix"; then
5930 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5931set dummy ${ac_tool_prefix}strip; ac_word=$2
5932{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5934if test "${ac_cv_prog_STRIP+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936else
5937 if test -n "$STRIP"; then
5938 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5939else
5940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941for as_dir in $PATH
5942do
5943 IFS=$as_save_IFS
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 break 2
5950 fi
5951done
5952done
5953IFS=$as_save_IFS
5954
5955fi
5956fi
5957STRIP=$ac_cv_prog_STRIP
5958if test -n "$STRIP"; then
5959 { echo "$as_me:$LINENO: result: $STRIP" >&5
5960echo "${ECHO_T}$STRIP" >&6; }
5961else
5962 { echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6; }
5964fi
5965
5966
5967fi
5968if test -z "$ac_cv_prog_STRIP"; then
5969 ac_ct_STRIP=$STRIP
5970 # Extract the first word of "strip", so it can be a program name with args.
5971set dummy strip; ac_word=$2
5972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5974if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976else
5977 if test -n "$ac_ct_STRIP"; then
5978 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5979else
5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987 ac_cv_prog_ac_ct_STRIP="strip"
5988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5990 fi
5991done
5992done
5993IFS=$as_save_IFS
5994
5995fi
5996fi
5997ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5998if test -n "$ac_ct_STRIP"; then
5999 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6000echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6001else
6002 { echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6; }
6004fi
6005
6006 if test "x$ac_ct_STRIP" = x; then
6007 STRIP=":"
6008 else
6009 case $cross_compiling:$ac_tool_warned in
6010yes:)
6011{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6012whose name does not start with the host triplet. If you think this
6013configuration is useful to you, please write to autoconf@gnu.org." >&5
6014echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6015whose name does not start with the host triplet. If you think this
6016configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6017ac_tool_warned=yes ;;
6018esac
6019 STRIP=$ac_ct_STRIP
6020 fi
6021else
6022 STRIP="$ac_cv_prog_STRIP"
6023fi
6024
6025
6026old_CC="$CC"
6027old_CFLAGS="$CFLAGS"
6028
6029# Set sane defaults for various variables
6030test -z "$AR" && AR=ar
6031test -z "$AR_FLAGS" && AR_FLAGS=cru
6032test -z "$AS" && AS=as
6033test -z "$CC" && CC=cc
6034test -z "$LTCC" && LTCC=$CC
6035test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6036test -z "$DLLTOOL" && DLLTOOL=dlltool
6037test -z "$LD" && LD=ld
6038test -z "$LN_S" && LN_S="ln -s"
6039test -z "$MAGIC_CMD" && MAGIC_CMD=file
6040test -z "$NM" && NM=nm
6041test -z "$SED" && SED=sed
6042test -z "$OBJDUMP" && OBJDUMP=objdump
6043test -z "$RANLIB" && RANLIB=:
6044test -z "$STRIP" && STRIP=:
6045test -z "$ac_objext" && ac_objext=o
6046
6047# Determine commands to create old-style static archives.
6048old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6049old_postinstall_cmds='chmod 644 $oldlib'
6050old_postuninstall_cmds=
6051
6052if test -n "$RANLIB"; then
6053 case $host_os in
6054 openbsd*)
6055 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6056 ;;
6057 *)
6058 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6059 ;;
6060 esac
6061 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6062fi
6063
6064for cc_temp in $compiler""; do
6065 case $cc_temp in
6066 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6067 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6068 \-*) ;;
6069 *) break;;
6070 esac
6071done
6072cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6073
6074
6075# Only perform the check for file, if the check method requires it
6076case $deplibs_check_method in
6077file_magic*)
6078 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6079 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6080echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6081if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083else
6084 case $MAGIC_CMD in
6085[\\/*] | ?:[\\/]*)
6086 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6087 ;;
6088*)
6089 lt_save_MAGIC_CMD="$MAGIC_CMD"
6090 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6091 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6092 for ac_dir in $ac_dummy; do
6093 IFS="$lt_save_ifs"
6094 test -z "$ac_dir" && ac_dir=.
6095 if test -f $ac_dir/${ac_tool_prefix}file; then
6096 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6097 if test -n "$file_magic_test_file"; then
6098 case $deplibs_check_method in
6099 "file_magic "*)
6100 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6101 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6102 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6103 $EGREP "$file_magic_regex" > /dev/null; then
6104 :
6105 else
6106 cat <<EOF 1>&2
6107
6108*** Warning: the command libtool uses to detect shared libraries,
6109*** $file_magic_cmd, produces output that libtool cannot recognize.
6110*** The result is that libtool may fail to recognize shared libraries
6111*** as such. This will affect the creation of libtool libraries that
6112*** depend on shared libraries, but programs linked with such libtool
6113*** libraries will work regardless of this problem. Nevertheless, you
6114*** may want to report the problem to your system manager and/or to
6115*** bug-libtool@gnu.org
6116
6117EOF
6118 fi ;;
6119 esac
6120 fi
6121 break
6122 fi
6123 done
6124 IFS="$lt_save_ifs"
6125 MAGIC_CMD="$lt_save_MAGIC_CMD"
6126 ;;
6127esac
6128fi
6129
6130MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6131if test -n "$MAGIC_CMD"; then
6132 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6133echo "${ECHO_T}$MAGIC_CMD" >&6; }
6134else
6135 { echo "$as_me:$LINENO: result: no" >&5
6136echo "${ECHO_T}no" >&6; }
6137fi
6138
6139if test -z "$lt_cv_path_MAGIC_CMD"; then
6140 if test -n "$ac_tool_prefix"; then
6141 { echo "$as_me:$LINENO: checking for file" >&5
6142echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6143if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145else
6146 case $MAGIC_CMD in
6147[\\/*] | ?:[\\/]*)
6148 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6149 ;;
6150*)
6151 lt_save_MAGIC_CMD="$MAGIC_CMD"
6152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6153 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6154 for ac_dir in $ac_dummy; do
6155 IFS="$lt_save_ifs"
6156 test -z "$ac_dir" && ac_dir=.
6157 if test -f $ac_dir/file; then
6158 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6159 if test -n "$file_magic_test_file"; then
6160 case $deplibs_check_method in
6161 "file_magic "*)
6162 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6164 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6165 $EGREP "$file_magic_regex" > /dev/null; then
6166 :
6167 else
6168 cat <<EOF 1>&2
6169
6170*** Warning: the command libtool uses to detect shared libraries,
6171*** $file_magic_cmd, produces output that libtool cannot recognize.
6172*** The result is that libtool may fail to recognize shared libraries
6173*** as such. This will affect the creation of libtool libraries that
6174*** depend on shared libraries, but programs linked with such libtool
6175*** libraries will work regardless of this problem. Nevertheless, you
6176*** may want to report the problem to your system manager and/or to
6177*** bug-libtool@gnu.org
6178
6179EOF
6180 fi ;;
6181 esac
6182 fi
6183 break
6184 fi
6185 done
6186 IFS="$lt_save_ifs"
6187 MAGIC_CMD="$lt_save_MAGIC_CMD"
6188 ;;
6189esac
6190fi
6191
6192MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6193if test -n "$MAGIC_CMD"; then
6194 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6195echo "${ECHO_T}$MAGIC_CMD" >&6; }
6196else
6197 { echo "$as_me:$LINENO: result: no" >&5
6198echo "${ECHO_T}no" >&6; }
6199fi
6200
6201 else
6202 MAGIC_CMD=:
6203 fi
6204fi
6205
6206 fi
6207 ;;
6208esac
6209
6210enable_dlopen=no
6211enable_win32_dll=no
6212
6213# Check whether --enable-libtool-lock was given.
6214if test "${enable_libtool_lock+set}" = set; then
6215 enableval=$enable_libtool_lock;
6216fi
6217
6218test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6219
6220
6221# Check whether --with-pic was given.
6222if test "${with_pic+set}" = set; then
6223 withval=$with_pic; pic_mode="$withval"
6224else
6225 pic_mode=default
6226fi
6227
6228test -z "$pic_mode" && pic_mode=default
6229
6230# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6231#
6232# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6233# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6234# calls AC_LIBTOOL_CONFIG and creates libtool.
6235#
6236{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6237echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
6238if test "x$ltmain" = "x" ; then
6239 { echo "$as_me:$LINENO: result: no" >&5
6240echo "${ECHO_T}no" >&6; }
6241 { { echo "$as_me:$LINENO: error:
6242
6243*** [Gentoo] sanity check failed! ***
6244*** \$ltmain is not defined, please check the patch for consistency! ***
6245" >&5
6246echo "$as_me: error:
6247
6248*** [Gentoo] sanity check failed! ***
6249*** \$ltmain is not defined, please check the patch for consistency! ***
6250" >&2;}
6251 { (exit 1); exit 1; }; }
6252fi
6253gentoo_lt_version="1.5.22"
6254gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
6255if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6256 { echo "$as_me:$LINENO: result: no" >&5
6257echo "${ECHO_T}no" >&6; }
6258 { { echo "$as_me:$LINENO: error:
6259
6260*** [Gentoo] sanity check failed! ***
6261*** libtool.m4 and ltmain.sh have a version mismatch! ***
6262*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6263
6264Please run:
6265
6266 libtoolize --copy --force
6267
6268if appropriate, please contact the maintainer of this
6269package (or your distribution) for help.
6270" >&5
6271echo "$as_me: error:
6272
6273*** [Gentoo] sanity check failed! ***
6274*** libtool.m4 and ltmain.sh have a version mismatch! ***
6275*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6276
6277Please run:
6278
6279 libtoolize --copy --force
6280
6281if appropriate, please contact the maintainer of this
6282package (or your distribution) for help.
6283" >&2;}
6284 { (exit 1); exit 1; }; }
6285else
6286 { echo "$as_me:$LINENO: result: yes" >&5
6287echo "${ECHO_T}yes" >&6; }
6288fi
6289
6290
6291# Use C for the default configuration in the libtool script
6292tagname=
6293lt_save_CC="$CC"
6294ac_ext=c
6295ac_cpp='$CPP $CPPFLAGS'
6296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6298ac_compiler_gnu=$ac_cv_c_compiler_gnu
6299
6300
6301# Source file extension for C test sources.
6302ac_ext=c
6303
6304# Object file extension for compiled C test sources.
6305objext=o
6306objext=$objext
6307
6308# Code to be used in simple compile tests
6309lt_simple_compile_test_code="int some_variable = 0;\n"
6310
6311# Code to be used in simple link tests
6312lt_simple_link_test_code='int main(){return(0);}\n'
6313
6314
6315# If no C compiler was specified, use CC.
6316LTCC=${LTCC-"$CC"}
6317
6318# If no C compiler flags were specified, use CFLAGS.
6319LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6320
6321# Allow CC to be a program name with arguments.
6322compiler=$CC
6323
6324
6325# save warnings/boilerplate of simple test code
6326ac_outfile=conftest.$ac_objext
6327printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6328eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6329_lt_compiler_boilerplate=`cat conftest.err`
6330$rm conftest*
6331
6332ac_outfile=conftest.$ac_objext
6333printf "$lt_simple_link_test_code" >conftest.$ac_ext
6334eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6335_lt_linker_boilerplate=`cat conftest.err`
6336$rm conftest*
6337
6338
6339
6340lt_prog_compiler_no_builtin_flag=
6341
6342if test "$GCC" = yes; then
6343 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6344
6345
6346{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6347echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6348if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350else
6351 lt_cv_prog_compiler_rtti_exceptions=no
6352 ac_outfile=conftest.$ac_objext
6353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6354 lt_compiler_flag="-fno-rtti -fno-exceptions"
6355 # Insert the option either (1) after the last *FLAGS variable, or
6356 # (2) before a word containing "conftest.", or (3) at the end.
6357 # Note that $ac_compile itself does not contain backslashes and begins
6358 # with a dollar sign (not a hyphen), so the echo should work correctly.
6359 # The option is referenced via a variable to avoid confusing sed.
6360 lt_compile=`echo "$ac_compile" | $SED \
6361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6363 -e 's:$: $lt_compiler_flag:'`
6364 (eval echo "\"\$as_me:6364: $lt_compile\"" >&5)
6365 (eval "$lt_compile" 2>conftest.err)
6366 ac_status=$?
6367 cat conftest.err >&5
6368 echo "$as_me:6368: \$? = $ac_status" >&5
6369 if (exit $ac_status) && test -s "$ac_outfile"; then
6370 # The compiler can only warn and ignore the option if not recognized
6371 # So say no if there are warnings other than the usual output.
6372 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6375 lt_cv_prog_compiler_rtti_exceptions=yes
6376 fi
6377 fi
6378 $rm conftest*
6379
6380fi
6381{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6382echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6383
6384if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6385 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6386else
6387 :
6388fi
6389
6390fi
6391
6392lt_prog_compiler_wl=
6393lt_prog_compiler_pic=
6394lt_prog_compiler_static=
6395
6396{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6397echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6398
6399 if test "$GCC" = yes; then
6400 lt_prog_compiler_wl='-Wl,'
6401 lt_prog_compiler_static='-static'
6402
6403 case $host_os in
6404 aix*)
6405 # All AIX code is PIC.
6406 if test "$host_cpu" = ia64; then
6407 # AIX 5 now supports IA64 processor
6408 lt_prog_compiler_static='-Bstatic'
6409 fi
6410 ;;
6411
6412 amigaos*)
6413 # FIXME: we need at least 68020 code to build shared libraries, but
6414 # adding the `-m68020' flag to GCC prevents building anything better,
6415 # like `-m68040'.
6416 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6417 ;;
6418
6419 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6420 # PIC is the default for these OSes.
6421 ;;
6422
6423 mingw* | pw32* | os2*)
6424 # This hack is so that the source file can tell whether it is being
6425 # built for inclusion in a dll (and should export symbols for example).
6426 lt_prog_compiler_pic='-DDLL_EXPORT'
6427 ;;
6428
6429 darwin* | rhapsody*)
6430 # PIC is the default on this platform
6431 # Common symbols not allowed in MH_DYLIB files
6432 lt_prog_compiler_pic='-fno-common'
6433 ;;
6434
6435 interix3*)
6436 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6437 # Instead, we relocate shared libraries at runtime.
6438 ;;
6439
6440 msdosdjgpp*)
6441 # Just because we use GCC doesn't mean we suddenly get shared libraries
6442 # on systems that don't support them.
6443 lt_prog_compiler_can_build_shared=no
6444 enable_shared=no
6445 ;;
6446
6447 sysv4*MP*)
6448 if test -d /usr/nec; then
6449 lt_prog_compiler_pic=-Kconform_pic
6450 fi
6451 ;;
6452
6453 hpux*)
6454 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6455 # not for PA HP-UX.
6456 case $host_cpu in
6457 hppa*64*|ia64*)
6458 # +Z the default
6459 ;;
6460 *)
6461 lt_prog_compiler_pic='-fPIC'
6462 ;;
6463 esac
6464 ;;
6465
6466 *)
6467 lt_prog_compiler_pic='-fPIC'
6468 ;;
6469 esac
6470 else
6471 # PORTME Check for flag to pass linker flags through the system compiler.
6472 case $host_os in
6473 aix*)
6474 lt_prog_compiler_wl='-Wl,'
6475 if test "$host_cpu" = ia64; then
6476 # AIX 5 now supports IA64 processor
6477 lt_prog_compiler_static='-Bstatic'
6478 else
6479 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6480 fi
6481 ;;
6482 darwin*)
6483 # PIC is the default on this platform
6484 # Common symbols not allowed in MH_DYLIB files
6485 case $cc_basename in
6486 xlc*)
6487 lt_prog_compiler_pic='-qnocommon'
6488 lt_prog_compiler_wl='-Wl,'
6489 ;;
6490 esac
6491 ;;
6492
6493 mingw* | pw32* | os2*)
6494 # This hack is so that the source file can tell whether it is being
6495 # built for inclusion in a dll (and should export symbols for example).
6496 lt_prog_compiler_pic='-DDLL_EXPORT'
6497 ;;
6498
6499 hpux9* | hpux10* | hpux11*)
6500 lt_prog_compiler_wl='-Wl,'
6501 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6502 # not for PA HP-UX.
6503 case $host_cpu in
6504 hppa*64*|ia64*)
6505 # +Z the default
6506 ;;
6507 *)
6508 lt_prog_compiler_pic='+Z'
6509 ;;
6510 esac
6511 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6512 lt_prog_compiler_static='${wl}-a ${wl}archive'
6513 ;;
6514
6515 irix5* | irix6* | nonstopux*)
6516 lt_prog_compiler_wl='-Wl,'
6517 # PIC (with -KPIC) is the default.
6518 lt_prog_compiler_static='-non_shared'
6519 ;;
6520
6521 newsos6)
6522 lt_prog_compiler_pic='-KPIC'
6523 lt_prog_compiler_static='-Bstatic'
6524 ;;
6525
6526 linux*)
6527 case $cc_basename in
6528 icc* | ecc*)
6529 lt_prog_compiler_wl='-Wl,'
6530 lt_prog_compiler_pic='-KPIC'
6531 lt_prog_compiler_static='-static'
6532 ;;
6533 pgcc* | pgf77* | pgf90* | pgf95*)
6534 # Portland Group compilers (*not* the Pentium gcc compiler,
6535 # which looks to be a dead project)
6536 lt_prog_compiler_wl='-Wl,'
6537 lt_prog_compiler_pic='-fpic'
6538 lt_prog_compiler_static='-Bstatic'
6539 ;;
6540 ccc*)
6541 lt_prog_compiler_wl='-Wl,'
6542 # All Alpha code is PIC.
6543 lt_prog_compiler_static='-non_shared'
6544 ;;
6545 esac
6546 ;;
6547
6548 osf3* | osf4* | osf5*)
6549 lt_prog_compiler_wl='-Wl,'
6550 # All OSF/1 code is PIC.
6551 lt_prog_compiler_static='-non_shared'
6552 ;;
6553
6554 solaris*)
6555 lt_prog_compiler_pic='-KPIC'
6556 lt_prog_compiler_static='-Bstatic'
6557 case $cc_basename in
6558 f77* | f90* | f95*)
6559 lt_prog_compiler_wl='-Qoption ld ';;
6560 *)
6561 lt_prog_compiler_wl='-Wl,';;
6562 esac
6563 ;;
6564
6565 sunos4*)
6566 lt_prog_compiler_wl='-Qoption ld '
6567 lt_prog_compiler_pic='-PIC'
6568 lt_prog_compiler_static='-Bstatic'
6569 ;;
6570
6571 sysv4 | sysv4.2uw2* | sysv4.3*)
6572 lt_prog_compiler_wl='-Wl,'
6573 lt_prog_compiler_pic='-KPIC'
6574 lt_prog_compiler_static='-Bstatic'
6575 ;;
6576
6577 sysv4*MP*)
6578 if test -d /usr/nec ;then
6579 lt_prog_compiler_pic='-Kconform_pic'
6580 lt_prog_compiler_static='-Bstatic'
6581 fi
6582 ;;
6583
6584 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6585 lt_prog_compiler_wl='-Wl,'
6586 lt_prog_compiler_pic='-KPIC'
6587 lt_prog_compiler_static='-Bstatic'
6588 ;;
6589
6590 unicos*)
6591 lt_prog_compiler_wl='-Wl,'
6592 lt_prog_compiler_can_build_shared=no
6593 ;;
6594
6595 uts4*)
6596 lt_prog_compiler_pic='-pic'
6597 lt_prog_compiler_static='-Bstatic'
6598 ;;
6599
6600 *)
6601 lt_prog_compiler_can_build_shared=no
6602 ;;
6603 esac
6604 fi
6605
6606{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6607echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6608
6609#
6610# Check to make sure the PIC flag actually works.
6611#
6612if test -n "$lt_prog_compiler_pic"; then
6613
6614{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6615echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6616if test "${lt_prog_compiler_pic_works+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619 lt_prog_compiler_pic_works=no
6620 ac_outfile=conftest.$ac_objext
6621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6622 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6623 # Insert the option either (1) after the last *FLAGS variable, or
6624 # (2) before a word containing "conftest.", or (3) at the end.
6625 # Note that $ac_compile itself does not contain backslashes and begins
6626 # with a dollar sign (not a hyphen), so the echo should work correctly.
6627 # The option is referenced via a variable to avoid confusing sed.
6628 lt_compile=`echo "$ac_compile" | $SED \
6629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6631 -e 's:$: $lt_compiler_flag:'`
6632 (eval echo "\"\$as_me:6632: $lt_compile\"" >&5)
6633 (eval "$lt_compile" 2>conftest.err)
6634 ac_status=$?
6635 cat conftest.err >&5
6636 echo "$as_me:6636: \$? = $ac_status" >&5
6637 if (exit $ac_status) && test -s "$ac_outfile"; then
6638 # The compiler can only warn and ignore the option if not recognized
6639 # So say no if there are warnings other than the usual output.
6640 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6643 lt_prog_compiler_pic_works=yes
6644 fi
6645 fi
6646 $rm conftest*
6647
6648fi
6649{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6650echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6651
6652if test x"$lt_prog_compiler_pic_works" = xyes; then
6653 case $lt_prog_compiler_pic in
6654 "" | " "*) ;;
6655 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6656 esac
6657else
6658 lt_prog_compiler_pic=
6659 lt_prog_compiler_can_build_shared=no
6660fi
6661
6662fi
6663case $host_os in
6664 # For platforms which do not support PIC, -DPIC is meaningless:
6665 *djgpp*)
6666 lt_prog_compiler_pic=
6667 ;;
6668 *)
6669 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6670 ;;
6671esac
6672
6673#
6674# Check to make sure the static flag actually works.
6675#
6676wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6677{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6678echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6679if test "${lt_prog_compiler_static_works+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6681else
6682 lt_prog_compiler_static_works=no
6683 save_LDFLAGS="$LDFLAGS"
6684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6685 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6687 # The linker can only warn and ignore the option if not recognized
6688 # So say no if there are warnings
6689 if test -s conftest.err; then
6690 # Append any errors to the config.log.
6691 cat conftest.err 1>&5
6692 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6694 if diff conftest.exp conftest.er2 >/dev/null; then
6695 lt_prog_compiler_static_works=yes
6696 fi
6697 else
6698 lt_prog_compiler_static_works=yes
6699 fi
6700 fi
6701 $rm conftest*
6702 LDFLAGS="$save_LDFLAGS"
6703
6704fi
6705{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6706echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6707
6708if test x"$lt_prog_compiler_static_works" = xyes; then
6709 :
6710else
6711 lt_prog_compiler_static=
6712fi
6713
6714
6715{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6716echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6717if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6719else
6720 lt_cv_prog_compiler_c_o=no
6721 $rm -r conftest 2>/dev/null
6722 mkdir conftest
6723 cd conftest
6724 mkdir out
6725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6726
6727 lt_compiler_flag="-o out/conftest2.$ac_objext"
6728 # Insert the option either (1) after the last *FLAGS variable, or
6729 # (2) before a word containing "conftest.", or (3) at the end.
6730 # Note that $ac_compile itself does not contain backslashes and begins
6731 # with a dollar sign (not a hyphen), so the echo should work correctly.
6732 lt_compile=`echo "$ac_compile" | $SED \
6733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6735 -e 's:$: $lt_compiler_flag:'`
6736 (eval echo "\"\$as_me:6736: $lt_compile\"" >&5)
6737 (eval "$lt_compile" 2>out/conftest.err)
6738 ac_status=$?
6739 cat out/conftest.err >&5
6740 echo "$as_me:6740: \$? = $ac_status" >&5
6741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6742 then
6743 # The compiler can only warn and ignore the option if not recognized
6744 # So say no if there are warnings
6745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6748 lt_cv_prog_compiler_c_o=yes
6749 fi
6750 fi
6751 chmod u+w . 2>&5
6752 $rm conftest*
6753 # SGI C++ compiler will create directory out/ii_files/ for
6754 # template instantiation
6755 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6756 $rm out/* && rmdir out
6757 cd ..
6758 rmdir conftest
6759 $rm conftest*
6760
6761fi
6762{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6763echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6764
6765
6766hard_links="nottested"
6767if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6768 # do not overwrite the value of need_locks provided by the user
6769 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6770echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6771 hard_links=yes
6772 $rm conftest*
6773 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6774 touch conftest.a
6775 ln conftest.a conftest.b 2>&5 || hard_links=no
6776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6777 { echo "$as_me:$LINENO: result: $hard_links" >&5
6778echo "${ECHO_T}$hard_links" >&6; }
6779 if test "$hard_links" = no; then
6780 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6781echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6782 need_locks=warn
6783 fi
6784else
6785 need_locks=no
6786fi
6787
6788{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6789echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6790
6791 runpath_var=
6792 allow_undefined_flag=
6793 enable_shared_with_static_runtimes=no
6794 archive_cmds=
6795 archive_expsym_cmds=
6796 old_archive_From_new_cmds=
6797 old_archive_from_expsyms_cmds=
6798 export_dynamic_flag_spec=
6799 whole_archive_flag_spec=
6800 thread_safe_flag_spec=
6801 hardcode_libdir_flag_spec=
6802 hardcode_libdir_flag_spec_ld=
6803 hardcode_libdir_separator=
6804 hardcode_direct=no
6805 hardcode_minus_L=no
6806 hardcode_shlibpath_var=unsupported
6807 link_all_deplibs=unknown
6808 hardcode_automatic=no
6809 module_cmds=
6810 module_expsym_cmds=
6811 always_export_symbols=no
6812 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6813 # include_expsyms should be a list of space-separated symbols to be *always*
6814 # included in the symbol list
6815 include_expsyms=
6816 # exclude_expsyms can be an extended regexp of symbols to exclude
6817 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6818 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6819 # as well as any symbol that contains `d'.
6820 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6821 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6822 # platforms (ab)use it in PIC code, but their linkers get confused if
6823 # the symbol is explicitly referenced. Since portable code cannot
6824 # rely on this symbol name, it's probably fine to never include it in
6825 # preloaded symbol tables.
6826 extract_expsyms_cmds=
6827 # Just being paranoid about ensuring that cc_basename is set.
6828 for cc_temp in $compiler""; do
6829 case $cc_temp in
6830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6832 \-*) ;;
6833 *) break;;
6834 esac
6835done
6836cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6837
6838 case $host_os in
6839 cygwin* | mingw* | pw32*)
6840 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6841 # When not using gcc, we currently assume that we are using
6842 # Microsoft Visual C++.
6843 if test "$GCC" != yes; then
6844 with_gnu_ld=no
6845 fi
6846 ;;
6847 interix*)
6848 # we just hope/assume this is gcc and not c89 (= MSVC++)
6849 with_gnu_ld=yes
6850 ;;
6851 openbsd*)
6852 with_gnu_ld=no
6853 ;;
6854 esac
6855
6856 ld_shlibs=yes
6857 if test "$with_gnu_ld" = yes; then
6858 # If archive_cmds runs LD, not CC, wlarc should be empty
6859 wlarc='${wl}'
6860
6861 # Set some defaults for GNU ld with shared library support. These
6862 # are reset later if shared libraries are not supported. Putting them
6863 # here allows them to be overridden if necessary.
6864 runpath_var=LD_RUN_PATH
6865 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6866 export_dynamic_flag_spec='${wl}--export-dynamic'
6867 # ancient GNU ld didn't support --whole-archive et. al.
6868 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6869 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6870 else
6871 whole_archive_flag_spec=
6872 fi
6873 supports_anon_versioning=no
6874 case `$LD -v 2>/dev/null` in
6875 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6876 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6877 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6878 *\ 2.11.*) ;; # other 2.11 versions
6879 *) supports_anon_versioning=yes ;;
6880 esac
6881
6882 # See if GNU ld supports shared libraries.
6883 case $host_os in
6884 aix3* | aix4* | aix5*)
6885 # On AIX/PPC, the GNU linker is very broken
6886 if test "$host_cpu" != ia64; then
6887 ld_shlibs=no
6888 cat <<EOF 1>&2
6889
6890*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6891*** to be unable to reliably create shared libraries on AIX.
6892*** Therefore, libtool is disabling shared libraries support. If you
6893*** really care for shared libraries, you may want to modify your PATH
6894*** so that a non-GNU linker is found, and then restart.
6895
6896EOF
6897 fi
6898 ;;
6899
6900 amigaos*)
6901 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)'
6902 hardcode_libdir_flag_spec='-L$libdir'
6903 hardcode_minus_L=yes
6904
6905 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6906 # that the semantics of dynamic libraries on AmigaOS, at least up
6907 # to version 4, is to share data among multiple programs linked
6908 # with the same dynamic library. Since this doesn't match the
6909 # behavior of shared libraries on other platforms, we can't use
6910 # them.
6911 ld_shlibs=no
6912 ;;
6913
6914 beos*)
6915 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6916 allow_undefined_flag=unsupported
6917 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6918 # support --undefined. This deserves some investigation. FIXME
6919 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6920 else
6921 ld_shlibs=no
6922 fi
6923 ;;
6924
6925 cygwin* | mingw* | pw32*)
6926 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6927 # as there is no search path for DLLs.
6928 hardcode_libdir_flag_spec='-L$libdir'
6929 allow_undefined_flag=unsupported
6930 always_export_symbols=no
6931 enable_shared_with_static_runtimes=yes
6932 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6933
6934 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6936 # If the export-symbols file already is a .def file (1st line
6937 # is EXPORTS), use it as is; otherwise, prepend...
6938 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6939 cp $export_symbols $output_objdir/$soname.def;
6940 else
6941 echo EXPORTS > $output_objdir/$soname.def;
6942 cat $export_symbols >> $output_objdir/$soname.def;
6943 fi~
6944 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6945 else
6946 ld_shlibs=no
6947 fi
6948 ;;
6949
6950 interix3*)
6951 hardcode_direct=no
6952 hardcode_shlibpath_var=no
6953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6954 export_dynamic_flag_spec='${wl}-E'
6955 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6956 # Instead, shared libraries are loaded at an image base (0x10000000 by
6957 # default) and relocated if they conflict, which is a slow very memory
6958 # consuming and fragmenting process. To avoid this, we pick a random,
6959 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6960 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6962 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'
6963 ;;
6964
6965 linux*)
6966 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6967 tmp_addflag=
6968 case $cc_basename,$host_cpu in
6969 pgcc*) # Portland Group C compiler
6970 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'
6971 tmp_addflag=' $pic_flag'
6972 ;;
6973 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6974 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'
6975 tmp_addflag=' $pic_flag -Mnomain' ;;
6976 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6977 tmp_addflag=' -i_dynamic' ;;
6978 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6979 tmp_addflag=' -i_dynamic -nofor_main' ;;
6980 ifc* | ifort*) # Intel Fortran compiler
6981 tmp_addflag=' -nofor_main' ;;
6982 esac
6983 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6984
6985 if test $supports_anon_versioning = yes; then
6986 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6988 $echo "local: *; };" >> $output_objdir/$libname.ver~
6989 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6990 fi
6991 else
6992 ld_shlibs=no
6993 fi
6994 ;;
6995
6996 netbsd*)
6997 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6998 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6999 wlarc=
7000 else
7001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7002 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7003 fi
7004 ;;
7005
7006 solaris*)
7007 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7008 ld_shlibs=no
7009 cat <<EOF 1>&2
7010
7011*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7012*** create shared libraries on Solaris systems. Therefore, libtool
7013*** is disabling shared libraries support. We urge you to upgrade GNU
7014*** binutils to release 2.9.1 or newer. Another option is to modify
7015*** your PATH or compiler configuration so that the native linker is
7016*** used, and then restart.
7017
7018EOF
7019 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7022 else
7023 ld_shlibs=no
7024 fi
7025 ;;
7026
7027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7028 case `$LD -v 2>&1` in
7029 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7030 ld_shlibs=no
7031 cat <<_LT_EOF 1>&2
7032
7033*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7034*** reliably create shared libraries on SCO systems. Therefore, libtool
7035*** is disabling shared libraries support. We urge you to upgrade GNU
7036*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7037*** your PATH or compiler configuration so that the native linker is
7038*** used, and then restart.
7039
7040_LT_EOF
7041 ;;
7042 *)
7043 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7044 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7047 else
7048 ld_shlibs=no
7049 fi
7050 ;;
7051 esac
7052 ;;
7053
7054 sunos4*)
7055 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7056 wlarc=
7057 hardcode_direct=yes
7058 hardcode_shlibpath_var=no
7059 ;;
7060
7061 *)
7062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7065 else
7066 ld_shlibs=no
7067 fi
7068 ;;
7069 esac
7070
7071 if test "$ld_shlibs" = no; then
7072 runpath_var=
7073 hardcode_libdir_flag_spec=
7074 export_dynamic_flag_spec=
7075 whole_archive_flag_spec=
7076 fi
7077 else
7078 # PORTME fill in a description of your system's linker (not GNU ld)
7079 case $host_os in
7080 aix3*)
7081 allow_undefined_flag=unsupported
7082 always_export_symbols=yes
7083 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'
7084 # Note: this linker hardcodes the directories in LIBPATH if there
7085 # are no directories specified by -L.
7086 hardcode_minus_L=yes
7087 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7088 # Neither direct hardcoding nor static linking is supported with a
7089 # broken collect2.
7090 hardcode_direct=unsupported
7091 fi
7092 ;;
7093
7094 aix4* | aix5*)
7095 if test "$host_cpu" = ia64; then
7096 # On IA64, the linker does run time linking by default, so we don't
7097 # have to do anything special.
7098 aix_use_runtimelinking=no
7099 exp_sym_flag='-Bexport'
7100 no_entry_flag=""
7101 else
7102 # If we're using GNU nm, then we don't want the "-C" option.
7103 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7104 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7105 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'
7106 else
7107 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'
7108 fi
7109 aix_use_runtimelinking=no
7110
7111 # Test if we are trying to use run time linking or normal
7112 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7113 # need to do runtime linking.
7114 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7115 for ld_flag in $LDFLAGS; do
7116 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7117 aix_use_runtimelinking=yes
7118 break
7119 fi
7120 done
7121 ;;
7122 esac
7123
7124 exp_sym_flag='-bexport'
7125 no_entry_flag='-bnoentry'
7126 fi
7127
7128 # When large executables or shared objects are built, AIX ld can
7129 # have problems creating the table of contents. If linking a library
7130 # or program results in "error TOC overflow" add -mminimal-toc to
7131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7133
7134 archive_cmds=''
7135 hardcode_direct=yes
7136 hardcode_libdir_separator=':'
7137 link_all_deplibs=yes
7138
7139 if test "$GCC" = yes; then
7140 case $host_os in aix4.[012]|aix4.[012].*)
7141 # We only want to do this on AIX 4.2 and lower, the check
7142 # below for broken collect2 doesn't work under 4.3+
7143 collect2name=`${CC} -print-prog-name=collect2`
7144 if test -f "$collect2name" && \
7145 strings "$collect2name" | grep resolve_lib_name >/dev/null
7146 then
7147 # We have reworked collect2
7148 hardcode_direct=yes
7149 else
7150 # We have old collect2
7151 hardcode_direct=unsupported
7152 # It fails to find uninstalled libraries when the uninstalled
7153 # path is not listed in the libpath. Setting hardcode_minus_L
7154 # to unsupported forces relinking
7155 hardcode_minus_L=yes
7156 hardcode_libdir_flag_spec='-L$libdir'
7157 hardcode_libdir_separator=
7158 fi
7159 ;;
7160 esac
7161 shared_flag='-shared'
7162 if test "$aix_use_runtimelinking" = yes; then
7163 shared_flag="$shared_flag "'${wl}-G'
7164 fi
7165 else
7166 # not using gcc
7167 if test "$host_cpu" = ia64; then
7168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7169 # chokes on -Wl,-G. The following line is correct:
7170 shared_flag='-G'
7171 else
7172 if test "$aix_use_runtimelinking" = yes; then
7173 shared_flag='${wl}-G'
7174 else
7175 shared_flag='${wl}-bM:SRE'
7176 fi
7177 fi
7178 fi
7179
7180 # It seems that -bexpall does not export symbols beginning with
7181 # underscore (_), so it is better to generate a list of symbols to export.
7182 always_export_symbols=yes
7183 if test "$aix_use_runtimelinking" = yes; then
7184 # Warning - without using the other runtime loading flags (-brtl),
7185 # -berok will link without error, but may produce a broken library.
7186 allow_undefined_flag='-berok'
7187 # Determine the default libpath from the value encoded in an empty executable.
7188 cat >conftest.$ac_ext <<_ACEOF
7189/* confdefs.h. */
7190_ACEOF
7191cat confdefs.h >>conftest.$ac_ext
7192cat >>conftest.$ac_ext <<_ACEOF
7193/* end confdefs.h. */
7194
7195int
7196main ()
7197{
7198
7199 ;
7200 return 0;
7201}
7202_ACEOF
7203rm -f conftest.$ac_objext conftest$ac_exeext
7204if { (ac_try="$ac_link"
7205case "(($ac_try" in
7206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207 *) ac_try_echo=$ac_try;;
7208esac
7209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210 (eval "$ac_link") 2>conftest.er1
7211 ac_status=$?
7212 grep -v '^ *+' conftest.er1 >conftest.err
7213 rm -f conftest.er1
7214 cat conftest.err >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } && {
7217 test -z "$ac_c_werror_flag" ||
7218 test ! -s conftest.err
7219 } && test -s conftest$ac_exeext &&
7220 $as_test_x conftest$ac_exeext; then
7221
7222aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7223}'`
7224# Check for a 64-bit object if we didn't find anything.
7225if 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; }
7226}'`; fi
7227else
7228 echo "$as_me: failed program was:" >&5
7229sed 's/^/| /' conftest.$ac_ext >&5
7230
7231
7232fi
7233
7234rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7235 conftest$ac_exeext conftest.$ac_ext
7236if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7237
7238 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7239 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"
7240 else
7241 if test "$host_cpu" = ia64; then
7242 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7243 allow_undefined_flag="-z nodefs"
7244 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"
7245 else
7246 # Determine the default libpath from the value encoded in an empty executable.
7247 cat >conftest.$ac_ext <<_ACEOF
7248/* confdefs.h. */
7249_ACEOF
7250cat confdefs.h >>conftest.$ac_ext
7251cat >>conftest.$ac_ext <<_ACEOF
7252/* end confdefs.h. */
7253
7254int
7255main ()
7256{
7257
7258 ;
7259 return 0;
7260}
7261_ACEOF
7262rm -f conftest.$ac_objext conftest$ac_exeext
7263if { (ac_try="$ac_link"
7264case "(($ac_try" in
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7267esac
7268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7269 (eval "$ac_link") 2>conftest.er1
7270 ac_status=$?
7271 grep -v '^ *+' conftest.er1 >conftest.err
7272 rm -f conftest.er1
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } && {
7276 test -z "$ac_c_werror_flag" ||
7277 test ! -s conftest.err
7278 } && test -s conftest$ac_exeext &&
7279 $as_test_x conftest$ac_exeext; then
7280
7281aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7282}'`
7283# Check for a 64-bit object if we didn't find anything.
7284if 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; }
7285}'`; fi
7286else
7287 echo "$as_me: failed program was:" >&5
7288sed 's/^/| /' conftest.$ac_ext >&5
7289
7290
7291fi
7292
7293rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7294 conftest$ac_exeext conftest.$ac_ext
7295if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7296
7297 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7298 # Warning - without using the other run time loading flags,
7299 # -berok will link without error, but may produce a broken library.
7300 no_undefined_flag=' ${wl}-bernotok'
7301 allow_undefined_flag=' ${wl}-berok'
7302 # Exported symbols can be pulled into shared objects from archives
7303 whole_archive_flag_spec='$convenience'
7304 archive_cmds_need_lc=yes
7305 # This is similar to how AIX traditionally builds its shared libraries.
7306 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'
7307 fi
7308 fi
7309 ;;
7310
7311 amigaos*)
7312 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)'
7313 hardcode_libdir_flag_spec='-L$libdir'
7314 hardcode_minus_L=yes
7315 # see comment about different semantics on the GNU ld section
7316 ld_shlibs=no
7317 ;;
7318
7319 bsdi[45]*)
7320 export_dynamic_flag_spec=-rdynamic
7321 ;;
7322
7323 cygwin* | mingw* | pw32*)
7324 # When not using gcc, we currently assume that we are using
7325 # Microsoft Visual C++.
7326 # hardcode_libdir_flag_spec is actually meaningless, as there is
7327 # no search path for DLLs.
7328 hardcode_libdir_flag_spec=' '
7329 allow_undefined_flag=unsupported
7330 # Tell ltmain to make .lib files, not .a files.
7331 libext=lib
7332 # Tell ltmain to make .dll files, not .so files.
7333 shrext_cmds=".dll"
7334 # FIXME: Setting linknames here is a bad hack.
7335 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7336 # The linker will automatically build a .lib file if we build a DLL.
7337 old_archive_From_new_cmds='true'
7338 # FIXME: Should let the user specify the lib program.
7339 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7340 fix_srcfile_path='`cygpath -w "$srcfile"`'
7341 enable_shared_with_static_runtimes=yes
7342 ;;
7343
7344 darwin* | rhapsody*)
7345 case $host_os in
7346 rhapsody* | darwin1.[012])
7347 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7348 ;;
7349 *) # Darwin 1.3 on
7350 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7351 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7352 else
7353 case ${MACOSX_DEPLOYMENT_TARGET} in
7354 10.[012])
7355 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7356 ;;
7357 10.*)
7358 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7359 ;;
7360 esac
7361 fi
7362 ;;
7363 esac
7364 archive_cmds_need_lc=no
7365 hardcode_direct=no
7366 hardcode_automatic=yes
7367 hardcode_shlibpath_var=unsupported
7368 whole_archive_flag_spec=''
7369 link_all_deplibs=yes
7370 if test "$GCC" = yes ; then
7371 output_verbose_link_cmd='echo'
7372 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7373 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7374 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7375 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}'
7376 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}'
7377 else
7378 case $cc_basename in
7379 xlc*)
7380 output_verbose_link_cmd='echo'
7381 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7382 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7383 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7384 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}'
7385 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}'
7386 ;;
7387 *)
7388 ld_shlibs=no
7389 ;;
7390 esac
7391 fi
7392 ;;
7393
7394 dgux*)
7395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7396 hardcode_libdir_flag_spec='-L$libdir'
7397 hardcode_shlibpath_var=no
7398 ;;
7399
7400 freebsd1*)
7401 ld_shlibs=no
7402 ;;
7403
7404 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7405 # support. Future versions do this automatically, but an explicit c++rt0.o
7406 # does not break anything, and helps significantly (at the cost of a little
7407 # extra space).
7408 freebsd2.2*)
7409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7410 hardcode_libdir_flag_spec='-R$libdir'
7411 hardcode_direct=yes
7412 hardcode_shlibpath_var=no
7413 ;;
7414
7415 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7416 freebsd2*)
7417 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7418 hardcode_direct=yes
7419 hardcode_minus_L=yes
7420 hardcode_shlibpath_var=no
7421 ;;
7422
7423 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7424 freebsd* | kfreebsd*-gnu | dragonfly*)
7425 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7426 hardcode_libdir_flag_spec='-R$libdir'
7427 hardcode_direct=yes
7428 hardcode_shlibpath_var=no
7429 ;;
7430
7431 hpux9*)
7432 if test "$GCC" = yes; then
7433 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'
7434 else
7435 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'
7436 fi
7437 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7438 hardcode_libdir_separator=:
7439 hardcode_direct=yes
7440
7441 # hardcode_minus_L: Not really in the search PATH,
7442 # but as the default location of the library.
7443 hardcode_minus_L=yes
7444 export_dynamic_flag_spec='${wl}-E'
7445 ;;
7446
7447 hpux10*)
7448 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7449 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7450 else
7451 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7452 fi
7453 if test "$with_gnu_ld" = no; then
7454 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7455 hardcode_libdir_separator=:
7456
7457 hardcode_direct=yes
7458 export_dynamic_flag_spec='${wl}-E'
7459
7460 # hardcode_minus_L: Not really in the search PATH,
7461 # but as the default location of the library.
7462 hardcode_minus_L=yes
7463 fi
7464 ;;
7465
7466 hpux11*)
7467 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7468 case $host_cpu in
7469 hppa*64*)
7470 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7471 ;;
7472 ia64*)
7473 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7474 ;;
7475 *)
7476 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7477 ;;
7478 esac
7479 else
7480 case $host_cpu in
7481 hppa*64*)
7482 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7483 ;;
7484 ia64*)
7485 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7486 ;;
7487 *)
7488 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7489 ;;
7490 esac
7491 fi
7492 if test "$with_gnu_ld" = no; then
7493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7494 hardcode_libdir_separator=:
7495
7496 case $host_cpu in
7497 hppa*64*|ia64*)
7498 hardcode_libdir_flag_spec_ld='+b $libdir'
7499 hardcode_direct=no
7500 hardcode_shlibpath_var=no
7501 ;;
7502 *)
7503 hardcode_direct=yes
7504 export_dynamic_flag_spec='${wl}-E'
7505
7506 # hardcode_minus_L: Not really in the search PATH,
7507 # but as the default location of the library.
7508 hardcode_minus_L=yes
7509 ;;
7510 esac
7511 fi
7512 ;;
7513
7514 irix5* | irix6* | nonstopux*)
7515 if test "$GCC" = yes; then
7516 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'
7517 else
7518 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'
7519 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7520 fi
7521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7522 hardcode_libdir_separator=:
7523 link_all_deplibs=yes
7524 ;;
7525
7526 netbsd*)
7527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7529 else
7530 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7531 fi
7532 hardcode_libdir_flag_spec='-R$libdir'
7533 hardcode_direct=yes
7534 hardcode_shlibpath_var=no
7535 ;;
7536
7537 newsos6)
7538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7539 hardcode_direct=yes
7540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7541 hardcode_libdir_separator=:
7542 hardcode_shlibpath_var=no
7543 ;;
7544
7545 openbsd*)
7546 hardcode_direct=yes
7547 hardcode_shlibpath_var=no
7548 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7550 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7552 export_dynamic_flag_spec='${wl}-E'
7553 else
7554 case $host_os in
7555 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7557 hardcode_libdir_flag_spec='-R$libdir'
7558 ;;
7559 *)
7560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7561 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7562 ;;
7563 esac
7564 fi
7565 ;;
7566
7567 os2*)
7568 hardcode_libdir_flag_spec='-L$libdir'
7569 hardcode_minus_L=yes
7570 allow_undefined_flag=unsupported
7571 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'
7572 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7573 ;;
7574
7575 osf3*)
7576 if test "$GCC" = yes; then
7577 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7578 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'
7579 else
7580 allow_undefined_flag=' -expect_unresolved \*'
7581 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'
7582 fi
7583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7584 hardcode_libdir_separator=:
7585 ;;
7586
7587 osf4* | osf5*) # as osf3* with the addition of -msym flag
7588 if test "$GCC" = yes; then
7589 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7590 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'
7591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7592 else
7593 allow_undefined_flag=' -expect_unresolved \*'
7594 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'
7595 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7596 $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'
7597
7598 # Both c and cxx compiler support -rpath directly
7599 hardcode_libdir_flag_spec='-rpath $libdir'
7600 fi
7601 hardcode_libdir_separator=:
7602 ;;
7603
7604 solaris*)
7605 no_undefined_flag=' -z text'
7606 if test "$GCC" = yes; then
7607 wlarc='${wl}'
7608 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7609 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7610 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7611 else
7612 wlarc=''
7613 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7614 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7615 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7616 fi
7617 hardcode_libdir_flag_spec='-R$libdir'
7618 hardcode_shlibpath_var=no
7619 case $host_os in
7620 solaris2.[0-5] | solaris2.[0-5].*) ;;
7621 *)
7622 # The compiler driver will combine linker options so we
7623 # cannot just pass the convience library names through
7624 # without $wl, iff we do not link with $LD.
7625 # Luckily, gcc supports the same syntax we need for Sun Studio.
7626 # Supported since Solaris 2.6 (maybe 2.5.1?)
7627 case $wlarc in
7628 '')
7629 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7630 *)
7631 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' ;;
7632 esac ;;
7633 esac
7634 link_all_deplibs=yes
7635 ;;
7636
7637 sunos4*)
7638 if test "x$host_vendor" = xsequent; then
7639 # Use $CC to link under sequent, because it throws in some extra .o
7640 # files that make .init and .fini sections work.
7641 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7642 else
7643 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7644 fi
7645 hardcode_libdir_flag_spec='-L$libdir'
7646 hardcode_direct=yes
7647 hardcode_minus_L=yes
7648 hardcode_shlibpath_var=no
7649 ;;
7650
7651 sysv4)
7652 case $host_vendor in
7653 sni)
7654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7655 hardcode_direct=yes # is this really true???
7656 ;;
7657 siemens)
7658 ## LD is ld it makes a PLAMLIB
7659 ## CC just makes a GrossModule.
7660 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7661 reload_cmds='$CC -r -o $output$reload_objs'
7662 hardcode_direct=no
7663 ;;
7664 motorola)
7665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7666 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7667 ;;
7668 esac
7669 runpath_var='LD_RUN_PATH'
7670 hardcode_shlibpath_var=no
7671 ;;
7672
7673 sysv4.3*)
7674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7675 hardcode_shlibpath_var=no
7676 export_dynamic_flag_spec='-Bexport'
7677 ;;
7678
7679 sysv4*MP*)
7680 if test -d /usr/nec; then
7681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7682 hardcode_shlibpath_var=no
7683 runpath_var=LD_RUN_PATH
7684 hardcode_runpath_var=yes
7685 ld_shlibs=yes
7686 fi
7687 ;;
7688
7689 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7690 no_undefined_flag='${wl}-z,text'
7691 archive_cmds_need_lc=no
7692 hardcode_shlibpath_var=no
7693 runpath_var='LD_RUN_PATH'
7694
7695 if test "$GCC" = yes; then
7696 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7697 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7698 else
7699 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7700 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7701 fi
7702 ;;
7703
7704 sysv5* | sco3.2v5* | sco5v6*)
7705 # Note: We can NOT use -z defs as we might desire, because we do not
7706 # link with -lc, and that would cause any symbols used from libc to
7707 # always be unresolved, which means just about no library would
7708 # ever link correctly. If we're not using GNU ld we use -z text
7709 # though, which does catch some bad symbols but isn't as heavy-handed
7710 # as -z defs.
7711 no_undefined_flag='${wl}-z,text'
7712 allow_undefined_flag='${wl}-z,nodefs'
7713 archive_cmds_need_lc=no
7714 hardcode_shlibpath_var=no
7715 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7716 hardcode_libdir_separator=':'
7717 link_all_deplibs=yes
7718 export_dynamic_flag_spec='${wl}-Bexport'
7719 runpath_var='LD_RUN_PATH'
7720
7721 if test "$GCC" = yes; then
7722 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7723 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7724 else
7725 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7726 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7727 fi
7728 ;;
7729
7730 uts4*)
7731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7732 hardcode_libdir_flag_spec='-L$libdir'
7733 hardcode_shlibpath_var=no
7734 ;;
7735
7736 *)
7737 ld_shlibs=no
7738 ;;
7739 esac
7740 fi
7741
7742{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7743echo "${ECHO_T}$ld_shlibs" >&6; }
7744test "$ld_shlibs" = no && can_build_shared=no
7745
7746#
7747# Do we need to explicitly link libc?
7748#
7749case "x$archive_cmds_need_lc" in
7750x|xyes)
7751 # Assume -lc should be added
7752 archive_cmds_need_lc=yes
7753
7754 if test "$enable_shared" = yes && test "$GCC" = yes; then
7755 case $archive_cmds in
7756 *'~'*)
7757 # FIXME: we may have to deal with multi-command sequences.
7758 ;;
7759 '$CC '*)
7760 # Test whether the compiler implicitly links with -lc since on some
7761 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7762 # to ld, don't add -lc before -lgcc.
7763 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7764echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7765 $rm conftest*
7766 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7767
7768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7769 (eval $ac_compile) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } 2>conftest.err; then
7773 soname=conftest
7774 lib=conftest
7775 libobjs=conftest.$ac_objext
7776 deplibs=
7777 wl=$lt_prog_compiler_wl
7778 pic_flag=$lt_prog_compiler_pic
7779 compiler_flags=-v
7780 linker_flags=-v
7781 verstring=
7782 output_objdir=.
7783 libname=conftest
7784 lt_save_allow_undefined_flag=$allow_undefined_flag
7785 allow_undefined_flag=
7786 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7787 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }
7791 then
7792 archive_cmds_need_lc=no
7793 else
7794 archive_cmds_need_lc=yes
7795 fi
7796 allow_undefined_flag=$lt_save_allow_undefined_flag
7797 else
7798 cat conftest.err 1>&5
7799 fi
7800 $rm conftest*
7801 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7802echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7803 ;;
7804 esac
7805 fi
7806 ;;
7807esac
7808
7809{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7810echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7811library_names_spec=
7812libname_spec='lib$name'
7813soname_spec=
7814shrext_cmds=".so"
7815postinstall_cmds=
7816postuninstall_cmds=
7817finish_cmds=
7818finish_eval=
7819shlibpath_var=
7820shlibpath_overrides_runpath=unknown
7821version_type=none
7822dynamic_linker="$host_os ld.so"
7823sys_lib_dlsearch_path_spec="/lib /usr/lib"
7824if test "$GCC" = yes; then
7825 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7826 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7827 # if the path contains ";" then we assume it to be the separator
7828 # otherwise default to the standard path separator (i.e. ":") - it is
7829 # assumed that no part of a normal pathname contains ";" but that should
7830 # okay in the real world where ";" in dirpaths is itself problematic.
7831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7832 else
7833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7834 fi
7835else
7836 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7837fi
7838need_lib_prefix=unknown
7839hardcode_into_libs=no
7840
7841# when you set need_version to no, make sure it does not cause -set_version
7842# flags to be left without arguments
7843need_version=unknown
7844
7845case $host_os in
7846aix3*)
7847 version_type=linux
7848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7849 shlibpath_var=LIBPATH
7850
7851 # AIX 3 has no versioning support, so we append a major version to the name.
7852 soname_spec='${libname}${release}${shared_ext}$major'
7853 ;;
7854
7855aix4* | aix5*)
7856 version_type=linux
7857 need_lib_prefix=no
7858 need_version=no
7859 hardcode_into_libs=yes
7860 if test "$host_cpu" = ia64; then
7861 # AIX 5 supports IA64
7862 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7863 shlibpath_var=LD_LIBRARY_PATH
7864 else
7865 # With GCC up to 2.95.x, collect2 would create an import file
7866 # for dependence libraries. The import file would start with
7867 # the line `#! .'. This would cause the generated library to
7868 # depend on `.', always an invalid library. This was fixed in
7869 # development snapshots of GCC prior to 3.0.
7870 case $host_os in
7871 aix4 | aix4.[01] | aix4.[01].*)
7872 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7873 echo ' yes '
7874 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7875 :
7876 else
7877 can_build_shared=no
7878 fi
7879 ;;
7880 esac
7881 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7882 # soname into executable. Probably we can add versioning support to
7883 # collect2, so additional links can be useful in future.
7884 if test "$aix_use_runtimelinking" = yes; then
7885 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7886 # instead of lib<name>.a to let people know that these are not
7887 # typical AIX shared libraries.
7888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7889 else
7890 # We preserve .a as extension for shared libraries through AIX4.2
7891 # and later when we are not doing run time linking.
7892 library_names_spec='${libname}${release}.a $libname.a'
7893 soname_spec='${libname}${release}${shared_ext}$major'
7894 fi
7895 shlibpath_var=LIBPATH
7896 fi
7897 ;;
7898
7899amigaos*)
7900 library_names_spec='$libname.ixlibrary $libname.a'
7901 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7902 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'
7903 ;;
7904
7905beos*)
7906 library_names_spec='${libname}${shared_ext}'
7907 dynamic_linker="$host_os ld.so"
7908 shlibpath_var=LIBRARY_PATH
7909 ;;
7910
7911bsdi[45]*)
7912 version_type=linux
7913 need_version=no
7914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7915 soname_spec='${libname}${release}${shared_ext}$major'
7916 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7917 shlibpath_var=LD_LIBRARY_PATH
7918 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7919 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7920 # the default ld.so.conf also contains /usr/contrib/lib and
7921 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7922 # libtool to hard-code these into programs
7923 ;;
7924
7925cygwin* | mingw* | pw32*)
7926 version_type=windows
7927 shrext_cmds=".dll"
7928 need_version=no
7929 need_lib_prefix=no
7930
7931 case $GCC,$host_os in
7932 yes,cygwin* | yes,mingw* | yes,pw32*)
7933 library_names_spec='$libname.dll.a'
7934 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7935 postinstall_cmds='base_file=`basename \${file}`~
7936 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7937 dldir=$destdir/`dirname \$dlpath`~
7938 test -d \$dldir || mkdir -p \$dldir~
7939 $install_prog $dir/$dlname \$dldir/$dlname~
7940 chmod a+x \$dldir/$dlname'
7941 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7942 dlpath=$dir/\$dldll~
7943 $rm \$dlpath'
7944 shlibpath_overrides_runpath=yes
7945
7946 case $host_os in
7947 cygwin*)
7948 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7949 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7950 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7951 ;;
7952 mingw*)
7953 # MinGW DLLs use traditional 'lib' prefix
7954 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7955 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7956 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7957 # It is most probably a Windows format PATH printed by
7958 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7959 # path with ; separators, and with drive letters. We can handle the
7960 # drive letters (cygwin fileutils understands them), so leave them,
7961 # especially as we might pass files found there to a mingw objdump,
7962 # which wouldn't understand a cygwinified path. Ahh.
7963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7964 else
7965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7966 fi
7967 ;;
7968 pw32*)
7969 # pw32 DLLs use 'pw' prefix rather than 'lib'
7970 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7971 ;;
7972 esac
7973 ;;
7974
7975 linux*)
7976 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7978 supports_anon_versioning=no
7979 case `$LD -v 2>/dev/null` in
7980 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7981 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7982 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7983 *\ 2.11.*) ;; # other 2.11 versions
7984 *) supports_anon_versioning=yes ;;
7985 esac
7986 if test $supports_anon_versioning = yes; then
7987 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7988cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7989$echo "local: *; };" >> $output_objdir/$libname.ver~
7990 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7991 else
7992 $archive_expsym_cmds="$archive_cmds"
7993 fi
7994 else
7995 ld_shlibs=no
7996 fi
7997 ;;
7998
7999 *)
8000 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8001 ;;
8002 esac
8003 dynamic_linker='Win32 ld.exe'
8004 # FIXME: first we should search . and the directory the executable is in
8005 shlibpath_var=PATH
8006 ;;
8007
8008darwin* | rhapsody*)
8009 dynamic_linker="$host_os dyld"
8010 version_type=darwin
8011 need_lib_prefix=no
8012 need_version=no
8013 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8014 soname_spec='${libname}${release}${major}$shared_ext'
8015 shlibpath_overrides_runpath=yes
8016 shlibpath_var=DYLD_LIBRARY_PATH
8017 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8018 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8019 if test "$GCC" = yes; then
8020 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"`
8021 else
8022 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8023 fi
8024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8025 ;;
8026
8027dgux*)
8028 version_type=linux
8029 need_lib_prefix=no
8030 need_version=no
8031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8032 soname_spec='${libname}${release}${shared_ext}$major'
8033 shlibpath_var=LD_LIBRARY_PATH
8034 ;;
8035
8036freebsd1*)
8037 dynamic_linker=no
8038 ;;
8039
8040kfreebsd*-gnu)
8041 version_type=linux
8042 need_lib_prefix=no
8043 need_version=no
8044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8045 soname_spec='${libname}${release}${shared_ext}$major'
8046 shlibpath_var=LD_LIBRARY_PATH
8047 shlibpath_overrides_runpath=no
8048 hardcode_into_libs=yes
8049 dynamic_linker='GNU ld.so'
8050 ;;
8051
8052freebsd* | dragonfly*)
8053 # DragonFly does not have aout. When/if they implement a new
8054 # versioning mechanism, adjust this.
8055 if test -x /usr/bin/objformat; then
8056 objformat=`/usr/bin/objformat`
8057 else
8058 case $host_os in
8059 freebsd[123]*) objformat=aout ;;
8060 *) objformat=elf ;;
8061 esac
8062 fi
8063 # Handle Gentoo/FreeBSD as it was Linux
8064 case $host_vendor in
8065 gentoo)
8066 version_type=linux ;;
8067 *)
8068 version_type=freebsd-$objformat ;;
8069 esac
8070
8071 case $version_type in
8072 freebsd-elf*)
8073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8074 need_version=no
8075 need_lib_prefix=no
8076 ;;
8077 freebsd-*)
8078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8079 need_version=yes
8080 ;;
8081 linux)
8082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8083 soname_spec='${libname}${release}${shared_ext}$major'
8084 need_lib_prefix=no
8085 need_version=no
8086 ;;
8087 esac
8088 shlibpath_var=LD_LIBRARY_PATH
8089 case $host_os in
8090 freebsd2*)
8091 shlibpath_overrides_runpath=yes
8092 ;;
8093 freebsd3.[01]* | freebsdelf3.[01]*)
8094 shlibpath_overrides_runpath=yes
8095 hardcode_into_libs=yes
8096 ;;
8097 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8098 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8099 shlibpath_overrides_runpath=no
8100 hardcode_into_libs=yes
8101 ;;
8102 freebsd*) # from 4.6 on
8103 shlibpath_overrides_runpath=yes
8104 hardcode_into_libs=yes
8105 ;;
8106 esac
8107 ;;
8108
8109gnu*)
8110 version_type=linux
8111 need_lib_prefix=no
8112 need_version=no
8113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8114 soname_spec='${libname}${release}${shared_ext}$major'
8115 shlibpath_var=LD_LIBRARY_PATH
8116 hardcode_into_libs=yes
8117 ;;
8118
8119hpux9* | hpux10* | hpux11*)
8120 # Give a soname corresponding to the major version so that dld.sl refuses to
8121 # link against other versions.
8122 version_type=sunos
8123 need_lib_prefix=no
8124 need_version=no
8125 case $host_cpu in
8126 ia64*)
8127 shrext_cmds='.so'
8128 hardcode_into_libs=yes
8129 dynamic_linker="$host_os dld.so"
8130 shlibpath_var=LD_LIBRARY_PATH
8131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8133 soname_spec='${libname}${release}${shared_ext}$major'
8134 if test "X$HPUX_IA64_MODE" = X32; then
8135 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8136 else
8137 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8138 fi
8139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8140 ;;
8141 hppa*64*)
8142 shrext_cmds='.sl'
8143 hardcode_into_libs=yes
8144 dynamic_linker="$host_os dld.sl"
8145 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8148 soname_spec='${libname}${release}${shared_ext}$major'
8149 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8151 ;;
8152 *)
8153 shrext_cmds='.sl'
8154 dynamic_linker="$host_os dld.sl"
8155 shlibpath_var=SHLIB_PATH
8156 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8158 soname_spec='${libname}${release}${shared_ext}$major'
8159 ;;
8160 esac
8161 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8162 postinstall_cmds='chmod 555 $lib'
8163 ;;
8164
8165interix3*)
8166 version_type=linux
8167 need_lib_prefix=no
8168 need_version=no
8169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8170 soname_spec='${libname}${release}${shared_ext}$major'
8171 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8172 shlibpath_var=LD_LIBRARY_PATH
8173 shlibpath_overrides_runpath=no
8174 hardcode_into_libs=yes
8175 ;;
8176
8177irix5* | irix6* | nonstopux*)
8178 case $host_os in
8179 nonstopux*) version_type=nonstopux ;;
8180 *)
8181 if test "$lt_cv_prog_gnu_ld" = yes; then
8182 version_type=linux
8183 else
8184 version_type=irix
8185 fi ;;
8186 esac
8187 need_lib_prefix=no
8188 need_version=no
8189 soname_spec='${libname}${release}${shared_ext}$major'
8190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8191 case $host_os in
8192 irix5* | nonstopux*)
8193 libsuff= shlibsuff=
8194 ;;
8195 *)
8196 case $LD in # libtool.m4 will add one of these switches to LD
8197 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8198 libsuff= shlibsuff= libmagic=32-bit;;
8199 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8200 libsuff=32 shlibsuff=N32 libmagic=N32;;
8201 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8202 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8203 *) libsuff= shlibsuff= libmagic=never-match;;
8204 esac
8205 ;;
8206 esac
8207 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8208 shlibpath_overrides_runpath=no
8209 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8210 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8211 hardcode_into_libs=yes
8212 ;;
8213
8214# No shared lib support for Linux oldld, aout, or coff.
8215linux*oldld* | linux*aout* | linux*coff*)
8216 dynamic_linker=no
8217 ;;
8218
8219# This must be Linux ELF.
8220linux*)
8221 version_type=linux
8222 need_lib_prefix=no
8223 need_version=no
8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8225 soname_spec='${libname}${release}${shared_ext}$major'
8226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8227 shlibpath_var=LD_LIBRARY_PATH
8228 shlibpath_overrides_runpath=no
8229 # This implies no fast_install, which is unacceptable.
8230 # Some rework will be needed to allow for fast_install
8231 # before this can be enabled.
8232 hardcode_into_libs=yes
8233
8234 # Append ld.so.conf contents to the search path
8235 if test -f /etc/ld.so.conf; then
8236 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8237 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8238 fi
8239
8240 # We used to test for /lib/ld.so.1 and disable shared libraries on
8241 # powerpc, because MkLinux only supported shared libraries with the
8242 # GNU dynamic linker. Since this was broken with cross compilers,
8243 # most powerpc-linux boxes support dynamic linking these days and
8244 # people can always --disable-shared, the test was removed, and we
8245 # assume the GNU/Linux dynamic linker is in use.
8246 dynamic_linker='GNU/Linux ld.so'
8247 ;;
8248
8249knetbsd*-gnu)
8250 version_type=linux
8251 need_lib_prefix=no
8252 need_version=no
8253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8254 soname_spec='${libname}${release}${shared_ext}$major'
8255 shlibpath_var=LD_LIBRARY_PATH
8256 shlibpath_overrides_runpath=no
8257 hardcode_into_libs=yes
8258 dynamic_linker='GNU ld.so'
8259 ;;
8260
8261netbsd*)
8262 version_type=sunos
8263 need_lib_prefix=no
8264 need_version=no
8265 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8268 dynamic_linker='NetBSD (a.out) ld.so'
8269 else
8270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8271 soname_spec='${libname}${release}${shared_ext}$major'
8272 dynamic_linker='NetBSD ld.elf_so'
8273 fi
8274 shlibpath_var=LD_LIBRARY_PATH
8275 shlibpath_overrides_runpath=yes
8276 hardcode_into_libs=yes
8277 ;;
8278
8279newsos6)
8280 version_type=linux
8281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8282 shlibpath_var=LD_LIBRARY_PATH
8283 shlibpath_overrides_runpath=yes
8284 ;;
8285
8286nto-qnx*)
8287 version_type=linux
8288 need_lib_prefix=no
8289 need_version=no
8290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8291 soname_spec='${libname}${release}${shared_ext}$major'
8292 shlibpath_var=LD_LIBRARY_PATH
8293 shlibpath_overrides_runpath=yes
8294 ;;
8295
8296openbsd*)
8297 version_type=sunos
8298 sys_lib_dlsearch_path_spec="/usr/lib"
8299 need_lib_prefix=no
8300 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8301 case $host_os in
8302 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8303 *) need_version=no ;;
8304 esac
8305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8307 shlibpath_var=LD_LIBRARY_PATH
8308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8309 case $host_os in
8310 openbsd2.[89] | openbsd2.[89].*)
8311 shlibpath_overrides_runpath=no
8312 ;;
8313 *)
8314 shlibpath_overrides_runpath=yes
8315 ;;
8316 esac
8317 else
8318 shlibpath_overrides_runpath=yes
8319 fi
8320 ;;
8321
8322os2*)
8323 libname_spec='$name'
8324 shrext_cmds=".dll"
8325 need_lib_prefix=no
8326 library_names_spec='$libname${shared_ext} $libname.a'
8327 dynamic_linker='OS/2 ld.exe'
8328 shlibpath_var=LIBPATH
8329 ;;
8330
8331osf3* | osf4* | osf5*)
8332 version_type=osf
8333 need_lib_prefix=no
8334 need_version=no
8335 soname_spec='${libname}${release}${shared_ext}$major'
8336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8337 shlibpath_var=LD_LIBRARY_PATH
8338 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8339 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8340 ;;
8341
8342solaris*)
8343 version_type=linux
8344 need_lib_prefix=no
8345 need_version=no
8346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8347 soname_spec='${libname}${release}${shared_ext}$major'
8348 shlibpath_var=LD_LIBRARY_PATH
8349 shlibpath_overrides_runpath=yes
8350 hardcode_into_libs=yes
8351 # ldd complains unless libraries are executable
8352 postinstall_cmds='chmod +x $lib'
8353 ;;
8354
8355sunos4*)
8356 version_type=sunos
8357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8358 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8359 shlibpath_var=LD_LIBRARY_PATH
8360 shlibpath_overrides_runpath=yes
8361 if test "$with_gnu_ld" = yes; then
8362 need_lib_prefix=no
8363 fi
8364 need_version=yes
8365 ;;
8366
8367sysv4 | sysv4.3*)
8368 version_type=linux
8369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8370 soname_spec='${libname}${release}${shared_ext}$major'
8371 shlibpath_var=LD_LIBRARY_PATH
8372 case $host_vendor in
8373 sni)
8374 shlibpath_overrides_runpath=no
8375 need_lib_prefix=no
8376 export_dynamic_flag_spec='${wl}-Blargedynsym'
8377 runpath_var=LD_RUN_PATH
8378 ;;
8379 siemens)
8380 need_lib_prefix=no
8381 ;;
8382 motorola)
8383 need_lib_prefix=no
8384 need_version=no
8385 shlibpath_overrides_runpath=no
8386 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8387 ;;
8388 esac
8389 ;;
8390
8391sysv4*MP*)
8392 if test -d /usr/nec ;then
8393 version_type=linux
8394 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8395 soname_spec='$libname${shared_ext}.$major'
8396 shlibpath_var=LD_LIBRARY_PATH
8397 fi
8398 ;;
8399
8400sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8401 version_type=freebsd-elf
8402 need_lib_prefix=no
8403 need_version=no
8404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8405 soname_spec='${libname}${release}${shared_ext}$major'
8406 shlibpath_var=LD_LIBRARY_PATH
8407 hardcode_into_libs=yes
8408 if test "$with_gnu_ld" = yes; then
8409 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8410 shlibpath_overrides_runpath=no
8411 else
8412 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8413 shlibpath_overrides_runpath=yes
8414 case $host_os in
8415 sco3.2v5*)
8416 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8417 ;;
8418 esac
8419 fi
8420 sys_lib_dlsearch_path_spec='/usr/lib'
8421 ;;
8422
8423uts4*)
8424 version_type=linux
8425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8426 soname_spec='${libname}${release}${shared_ext}$major'
8427 shlibpath_var=LD_LIBRARY_PATH
8428 ;;
8429
8430*)
8431 dynamic_linker=no
8432 ;;
8433esac
8434{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8435echo "${ECHO_T}$dynamic_linker" >&6; }
8436test "$dynamic_linker" = no && can_build_shared=no
8437
8438variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8439if test "$GCC" = yes; then
8440 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8441fi
8442
8443{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8444echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8445hardcode_action=
8446if test -n "$hardcode_libdir_flag_spec" || \
8447 test -n "$runpath_var" || \
8448 test "X$hardcode_automatic" = "Xyes" ; then
8449
8450 # We can hardcode non-existant directories.
8451 if test "$hardcode_direct" != no &&
8452 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8453 # have to relink, otherwise we might link with an installed library
8454 # when we should be linking with a yet-to-be-installed one
8455 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8456 test "$hardcode_minus_L" != no; then
8457 # Linking always hardcodes the temporary library directory.
8458 hardcode_action=relink
8459 else
8460 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8461 hardcode_action=immediate
8462 fi
8463else
8464 # We cannot hardcode anything, or else we can only hardcode existing
8465 # directories.
8466 hardcode_action=unsupported
8467fi
8468{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8469echo "${ECHO_T}$hardcode_action" >&6; }
8470
8471if test "$hardcode_action" = relink; then
8472 # Fast installation is not supported
8473 enable_fast_install=no
8474elif test "$shlibpath_overrides_runpath" = yes ||
8475 test "$enable_shared" = no; then
8476 # Fast installation is not necessary
8477 enable_fast_install=needless
8478fi
8479
8480striplib=
8481old_striplib=
8482{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8483echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8484if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8485 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8486 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8487 { echo "$as_me:$LINENO: result: yes" >&5
8488echo "${ECHO_T}yes" >&6; }
8489else
8490# FIXME - insert some real tests, host_os isn't really good enough
8491 case $host_os in
8492 darwin*)
8493 if test -n "$STRIP" ; then
8494 striplib="$STRIP -x"
8495 { echo "$as_me:$LINENO: result: yes" >&5
8496echo "${ECHO_T}yes" >&6; }
8497 else
8498 { echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6; }
8500fi
8501 ;;
8502 *)
8503 { echo "$as_me:$LINENO: result: no" >&5
8504echo "${ECHO_T}no" >&6; }
8505 ;;
8506 esac
8507fi
8508
8509if test "x$enable_dlopen" != xyes; then
8510 enable_dlopen=unknown
8511 enable_dlopen_self=unknown
8512 enable_dlopen_self_static=unknown
8513else
8514 lt_cv_dlopen=no
8515 lt_cv_dlopen_libs=
8516
8517 case $host_os in
8518 beos*)
8519 lt_cv_dlopen="load_add_on"
8520 lt_cv_dlopen_libs=
8521 lt_cv_dlopen_self=yes
8522 ;;
8523
8524 mingw* | pw32*)
8525 lt_cv_dlopen="LoadLibrary"
8526 lt_cv_dlopen_libs=
8527 ;;
8528
8529 cygwin*)
8530 lt_cv_dlopen="dlopen"
8531 lt_cv_dlopen_libs=
8532 ;;
8533
8534 darwin*)
8535 # if libdl is installed we need to link against it
8536 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8537echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8538if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540else
8541 ac_check_lib_save_LIBS=$LIBS
8542LIBS="-ldl $LIBS"
8543cat >conftest.$ac_ext <<_ACEOF
8544/* confdefs.h. */
8545_ACEOF
8546cat confdefs.h >>conftest.$ac_ext
8547cat >>conftest.$ac_ext <<_ACEOF
8548/* end confdefs.h. */
8549
8550/* Override any GCC internal prototype to avoid an error.
8551 Use char because int might match the return type of a GCC
8552 builtin and then its argument prototype would still apply. */
8553#ifdef __cplusplus
8554extern "C"
8555#endif
8556char dlopen ();
8557int
8558main ()
8559{
8560return dlopen ();
8561 ;
8562 return 0;
8563}
8564_ACEOF
8565rm -f conftest.$ac_objext conftest$ac_exeext
8566if { (ac_try="$ac_link"
8567case "(($ac_try" in
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8570esac
8571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572 (eval "$ac_link") 2>conftest.er1
8573 ac_status=$?
8574 grep -v '^ *+' conftest.er1 >conftest.err
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest$ac_exeext &&
8582 $as_test_x conftest$ac_exeext; then
8583 ac_cv_lib_dl_dlopen=yes
8584else
8585 echo "$as_me: failed program was:" >&5
8586sed 's/^/| /' conftest.$ac_ext >&5
8587
8588 ac_cv_lib_dl_dlopen=no
8589fi
8590
8591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8592 conftest$ac_exeext conftest.$ac_ext
8593LIBS=$ac_check_lib_save_LIBS
8594fi
8595{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8596echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8597if test $ac_cv_lib_dl_dlopen = yes; then
8598 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8599else
8600
8601 lt_cv_dlopen="dyld"
8602 lt_cv_dlopen_libs=
8603 lt_cv_dlopen_self=yes
8604
8605fi
8606
8607 ;;
8608
8609 *)
8610 { echo "$as_me:$LINENO: checking for shl_load" >&5
8611echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8612if test "${ac_cv_func_shl_load+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8614else
8615 cat >conftest.$ac_ext <<_ACEOF
8616/* confdefs.h. */
8617_ACEOF
8618cat confdefs.h >>conftest.$ac_ext
8619cat >>conftest.$ac_ext <<_ACEOF
8620/* end confdefs.h. */
8621/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8623#define shl_load innocuous_shl_load
8624
8625/* System header to define __stub macros and hopefully few prototypes,
8626 which can conflict with char shl_load (); below.
8627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8628 <limits.h> exists even on freestanding compilers. */
8629
8630#ifdef __STDC__
8631# include <limits.h>
8632#else
8633# include <assert.h>
8634#endif
8635
8636#undef shl_load
8637
8638/* Override any GCC internal prototype to avoid an error.
8639 Use char because int might match the return type of a GCC
8640 builtin and then its argument prototype would still apply. */
8641#ifdef __cplusplus
8642extern "C"
8643#endif
8644char shl_load ();
8645/* The GNU C library defines this for functions which it implements
8646 to always fail with ENOSYS. Some functions are actually named
8647 something starting with __ and the normal name is an alias. */
8648#if defined __stub_shl_load || defined __stub___shl_load
8649choke me
8650#endif
8651
8652int
8653main ()
8654{
8655return shl_load ();
8656 ;
8657 return 0;
8658}
8659_ACEOF
8660rm -f conftest.$ac_objext conftest$ac_exeext
8661if { (ac_try="$ac_link"
8662case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665esac
8666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_link") 2>conftest.er1
8668 ac_status=$?
8669 grep -v '^ *+' conftest.er1 >conftest.err
8670 rm -f conftest.er1
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } && {
8674 test -z "$ac_c_werror_flag" ||
8675 test ! -s conftest.err
8676 } && test -s conftest$ac_exeext &&
8677 $as_test_x conftest$ac_exeext; then
8678 ac_cv_func_shl_load=yes
8679else
8680 echo "$as_me: failed program was:" >&5
8681sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 ac_cv_func_shl_load=no
8684fi
8685
8686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8687 conftest$ac_exeext conftest.$ac_ext
8688fi
8689{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8690echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8691if test $ac_cv_func_shl_load = yes; then
8692 lt_cv_dlopen="shl_load"
8693else
8694 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8695echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8696if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698else
8699 ac_check_lib_save_LIBS=$LIBS
8700LIBS="-ldld $LIBS"
8701cat >conftest.$ac_ext <<_ACEOF
8702/* confdefs.h. */
8703_ACEOF
8704cat confdefs.h >>conftest.$ac_ext
8705cat >>conftest.$ac_ext <<_ACEOF
8706/* end confdefs.h. */
8707
8708/* Override any GCC internal prototype to avoid an error.
8709 Use char because int might match the return type of a GCC
8710 builtin and then its argument prototype would still apply. */
8711#ifdef __cplusplus
8712extern "C"
8713#endif
8714char shl_load ();
8715int
8716main ()
8717{
8718return shl_load ();
8719 ;
8720 return 0;
8721}
8722_ACEOF
8723rm -f conftest.$ac_objext conftest$ac_exeext
8724if { (ac_try="$ac_link"
8725case "(($ac_try" in
8726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727 *) ac_try_echo=$ac_try;;
8728esac
8729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730 (eval "$ac_link") 2>conftest.er1
8731 ac_status=$?
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } && {
8737 test -z "$ac_c_werror_flag" ||
8738 test ! -s conftest.err
8739 } && test -s conftest$ac_exeext &&
8740 $as_test_x conftest$ac_exeext; then
8741 ac_cv_lib_dld_shl_load=yes
8742else
8743 echo "$as_me: failed program was:" >&5
8744sed 's/^/| /' conftest.$ac_ext >&5
8745
8746 ac_cv_lib_dld_shl_load=no
8747fi
8748
8749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8750 conftest$ac_exeext conftest.$ac_ext
8751LIBS=$ac_check_lib_save_LIBS
8752fi
8753{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8754echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8755if test $ac_cv_lib_dld_shl_load = yes; then
8756 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8757else
8758 { echo "$as_me:$LINENO: checking for dlopen" >&5
8759echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8760if test "${ac_cv_func_dlopen+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762else
8763 cat >conftest.$ac_ext <<_ACEOF
8764/* confdefs.h. */
8765_ACEOF
8766cat confdefs.h >>conftest.$ac_ext
8767cat >>conftest.$ac_ext <<_ACEOF
8768/* end confdefs.h. */
8769/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8771#define dlopen innocuous_dlopen
8772
8773/* System header to define __stub macros and hopefully few prototypes,
8774 which can conflict with char dlopen (); below.
8775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8776 <limits.h> exists even on freestanding compilers. */
8777
8778#ifdef __STDC__
8779# include <limits.h>
8780#else
8781# include <assert.h>
8782#endif
8783
8784#undef dlopen
8785
8786/* Override any GCC internal prototype to avoid an error.
8787 Use char because int might match the return type of a GCC
8788 builtin and then its argument prototype would still apply. */
8789#ifdef __cplusplus
8790extern "C"
8791#endif
8792char dlopen ();
8793/* The GNU C library defines this for functions which it implements
8794 to always fail with ENOSYS. Some functions are actually named
8795 something starting with __ and the normal name is an alias. */
8796#if defined __stub_dlopen || defined __stub___dlopen
8797choke me
8798#endif
8799
8800int
8801main ()
8802{
8803return dlopen ();
8804 ;
8805 return 0;
8806}
8807_ACEOF
8808rm -f conftest.$ac_objext conftest$ac_exeext
8809if { (ac_try="$ac_link"
8810case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813esac
8814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_link") 2>conftest.er1
8816 ac_status=$?
8817 grep -v '^ *+' conftest.er1 >conftest.err
8818 rm -f conftest.er1
8819 cat conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } && {
8822 test -z "$ac_c_werror_flag" ||
8823 test ! -s conftest.err
8824 } && test -s conftest$ac_exeext &&
8825 $as_test_x conftest$ac_exeext; then
8826 ac_cv_func_dlopen=yes
8827else
8828 echo "$as_me: failed program was:" >&5
8829sed 's/^/| /' conftest.$ac_ext >&5
8830
8831 ac_cv_func_dlopen=no
8832fi
8833
8834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8835 conftest$ac_exeext conftest.$ac_ext
8836fi
8837{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8838echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8839if test $ac_cv_func_dlopen = yes; then
8840 lt_cv_dlopen="dlopen"
8841else
8842 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8843echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8844if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8846else
8847 ac_check_lib_save_LIBS=$LIBS
8848LIBS="-ldl $LIBS"
8849cat >conftest.$ac_ext <<_ACEOF
8850/* confdefs.h. */
8851_ACEOF
8852cat confdefs.h >>conftest.$ac_ext
8853cat >>conftest.$ac_ext <<_ACEOF
8854/* end confdefs.h. */
8855
8856/* Override any GCC internal prototype to avoid an error.
8857 Use char because int might match the return type of a GCC
8858 builtin and then its argument prototype would still apply. */
8859#ifdef __cplusplus
8860extern "C"
8861#endif
8862char dlopen ();
8863int
8864main ()
8865{
8866return dlopen ();
8867 ;
8868 return 0;
8869}
8870_ACEOF
8871rm -f conftest.$ac_objext conftest$ac_exeext
8872if { (ac_try="$ac_link"
8873case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8876esac
8877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878 (eval "$ac_link") 2>conftest.er1
8879 ac_status=$?
8880 grep -v '^ *+' conftest.er1 >conftest.err
8881 rm -f conftest.er1
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } && {
8885 test -z "$ac_c_werror_flag" ||
8886 test ! -s conftest.err
8887 } && test -s conftest$ac_exeext &&
8888 $as_test_x conftest$ac_exeext; then
8889 ac_cv_lib_dl_dlopen=yes
8890else
8891 echo "$as_me: failed program was:" >&5
8892sed 's/^/| /' conftest.$ac_ext >&5
8893
8894 ac_cv_lib_dl_dlopen=no
8895fi
8896
8897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8898 conftest$ac_exeext conftest.$ac_ext
8899LIBS=$ac_check_lib_save_LIBS
8900fi
8901{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8902echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8903if test $ac_cv_lib_dl_dlopen = yes; then
8904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8905else
8906 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8907echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8908if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8910else
8911 ac_check_lib_save_LIBS=$LIBS
8912LIBS="-lsvld $LIBS"
8913cat >conftest.$ac_ext <<_ACEOF
8914/* confdefs.h. */
8915_ACEOF
8916cat confdefs.h >>conftest.$ac_ext
8917cat >>conftest.$ac_ext <<_ACEOF
8918/* end confdefs.h. */
8919
8920/* Override any GCC internal prototype to avoid an error.
8921 Use char because int might match the return type of a GCC
8922 builtin and then its argument prototype would still apply. */
8923#ifdef __cplusplus
8924extern "C"
8925#endif
8926char dlopen ();
8927int
8928main ()
8929{
8930return dlopen ();
8931 ;
8932 return 0;
8933}
8934_ACEOF
8935rm -f conftest.$ac_objext conftest$ac_exeext
8936if { (ac_try="$ac_link"
8937case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8940esac
8941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942 (eval "$ac_link") 2>conftest.er1
8943 ac_status=$?
8944 grep -v '^ *+' conftest.er1 >conftest.err
8945 rm -f conftest.er1
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } && {
8949 test -z "$ac_c_werror_flag" ||
8950 test ! -s conftest.err
8951 } && test -s conftest$ac_exeext &&
8952 $as_test_x conftest$ac_exeext; then
8953 ac_cv_lib_svld_dlopen=yes
8954else
8955 echo "$as_me: failed program was:" >&5
8956sed 's/^/| /' conftest.$ac_ext >&5
8957
8958 ac_cv_lib_svld_dlopen=no
8959fi
8960
8961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8962 conftest$ac_exeext conftest.$ac_ext
8963LIBS=$ac_check_lib_save_LIBS
8964fi
8965{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8966echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8967if test $ac_cv_lib_svld_dlopen = yes; then
8968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8969else
8970 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8971echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8972if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8974else
8975 ac_check_lib_save_LIBS=$LIBS
8976LIBS="-ldld $LIBS"
8977cat >conftest.$ac_ext <<_ACEOF
8978/* confdefs.h. */
8979_ACEOF
8980cat confdefs.h >>conftest.$ac_ext
8981cat >>conftest.$ac_ext <<_ACEOF
8982/* end confdefs.h. */
8983
8984/* Override any GCC internal prototype to avoid an error.
8985 Use char because int might match the return type of a GCC
8986 builtin and then its argument prototype would still apply. */
8987#ifdef __cplusplus
8988extern "C"
8989#endif
8990char dld_link ();
8991int
8992main ()
8993{
8994return dld_link ();
8995 ;
8996 return 0;
8997}
8998_ACEOF
8999rm -f conftest.$ac_objext conftest$ac_exeext
9000if { (ac_try="$ac_link"
9001case "(($ac_try" in
9002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9004esac
9005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006 (eval "$ac_link") 2>conftest.er1
9007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && {
9013 test -z "$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest$ac_exeext &&
9016 $as_test_x conftest$ac_exeext; then
9017 ac_cv_lib_dld_dld_link=yes
9018else
9019 echo "$as_me: failed program was:" >&5
9020sed 's/^/| /' conftest.$ac_ext >&5
9021
9022 ac_cv_lib_dld_dld_link=no
9023fi
9024
9025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9026 conftest$ac_exeext conftest.$ac_ext
9027LIBS=$ac_check_lib_save_LIBS
9028fi
9029{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9030echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9031if test $ac_cv_lib_dld_dld_link = yes; then
9032 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9033fi
9034
9035
9036fi
9037
9038
9039fi
9040
9041
9042fi
9043
9044
9045fi
9046
9047
9048fi
9049
9050 ;;
9051 esac
9052
9053 if test "x$lt_cv_dlopen" != xno; then
9054 enable_dlopen=yes
9055 else
9056 enable_dlopen=no
9057 fi
9058
9059 case $lt_cv_dlopen in
9060 dlopen)
9061 save_CPPFLAGS="$CPPFLAGS"
9062 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9063
9064 save_LDFLAGS="$LDFLAGS"
9065 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9066
9067 save_LIBS="$LIBS"
9068 LIBS="$lt_cv_dlopen_libs $LIBS"
9069
9070 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9071echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9072if test "${lt_cv_dlopen_self+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9074else
9075 if test "$cross_compiling" = yes; then :
9076 lt_cv_dlopen_self=cross
9077else
9078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9079 lt_status=$lt_dlunknown
9080 cat > conftest.$ac_ext <<EOF
9081#line 9081 "configure"
9082#include "confdefs.h"
9083
9084#if HAVE_DLFCN_H
9085#include <dlfcn.h>
9086#endif
9087
9088#include <stdio.h>
9089
9090#ifdef RTLD_GLOBAL
9091# define LT_DLGLOBAL RTLD_GLOBAL
9092#else
9093# ifdef DL_GLOBAL
9094# define LT_DLGLOBAL DL_GLOBAL
9095# else
9096# define LT_DLGLOBAL 0
9097# endif
9098#endif
9099
9100/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9101 find out it does not work in some platform. */
9102#ifndef LT_DLLAZY_OR_NOW
9103# ifdef RTLD_LAZY
9104# define LT_DLLAZY_OR_NOW RTLD_LAZY
9105# else
9106# ifdef DL_LAZY
9107# define LT_DLLAZY_OR_NOW DL_LAZY
9108# else
9109# ifdef RTLD_NOW
9110# define LT_DLLAZY_OR_NOW RTLD_NOW
9111# else
9112# ifdef DL_NOW
9113# define LT_DLLAZY_OR_NOW DL_NOW
9114# else
9115# define LT_DLLAZY_OR_NOW 0
9116# endif
9117# endif
9118# endif
9119# endif
9120#endif
9121
9122#ifdef __cplusplus
9123extern "C" void exit (int);
9124#endif
9125
9126void fnord() { int i=42;}
9127int main ()
9128{
9129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9130 int status = $lt_dlunknown;
9131
9132 if (self)
9133 {
9134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9135 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9136 /* dlclose (self); */
9137 }
9138 else
9139 puts (dlerror ());
9140
9141 exit (status);
9142}
9143EOF
9144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145 (eval $ac_link) 2>&5
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9149 (./conftest; exit; ) >&5 2>/dev/null
9150 lt_status=$?
9151 case x$lt_status in
9152 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9153 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9154 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9155 esac
9156 else :
9157 # compilation failed
9158 lt_cv_dlopen_self=no
9159 fi
9160fi
9161rm -fr conftest*
9162
9163
9164fi
9165{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9166echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9167
9168 if test "x$lt_cv_dlopen_self" = xyes; then
9169 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9170 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9171echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9172if test "${lt_cv_dlopen_self_static+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9174else
9175 if test "$cross_compiling" = yes; then :
9176 lt_cv_dlopen_self_static=cross
9177else
9178 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9179 lt_status=$lt_dlunknown
9180 cat > conftest.$ac_ext <<EOF
9181#line 9181 "configure"
9182#include "confdefs.h"
9183
9184#if HAVE_DLFCN_H
9185#include <dlfcn.h>
9186#endif
9187
9188#include <stdio.h>
9189
9190#ifdef RTLD_GLOBAL
9191# define LT_DLGLOBAL RTLD_GLOBAL
9192#else
9193# ifdef DL_GLOBAL
9194# define LT_DLGLOBAL DL_GLOBAL
9195# else
9196# define LT_DLGLOBAL 0
9197# endif
9198#endif
9199
9200/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9201 find out it does not work in some platform. */
9202#ifndef LT_DLLAZY_OR_NOW
9203# ifdef RTLD_LAZY
9204# define LT_DLLAZY_OR_NOW RTLD_LAZY
9205# else
9206# ifdef DL_LAZY
9207# define LT_DLLAZY_OR_NOW DL_LAZY
9208# else
9209# ifdef RTLD_NOW
9210# define LT_DLLAZY_OR_NOW RTLD_NOW
9211# else
9212# ifdef DL_NOW
9213# define LT_DLLAZY_OR_NOW DL_NOW
9214# else
9215# define LT_DLLAZY_OR_NOW 0
9216# endif
9217# endif
9218# endif
9219# endif
9220#endif
9221
9222#ifdef __cplusplus
9223extern "C" void exit (int);
9224#endif
9225
9226void fnord() { int i=42;}
9227int main ()
9228{
9229 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9230 int status = $lt_dlunknown;
9231
9232 if (self)
9233 {
9234 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9235 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9236 /* dlclose (self); */
9237 }
9238 else
9239 puts (dlerror ());
9240
9241 exit (status);
9242}
9243EOF
9244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9245 (eval $ac_link) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9249 (./conftest; exit; ) >&5 2>/dev/null
9250 lt_status=$?
9251 case x$lt_status in
9252 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9253 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9254 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9255 esac
9256 else :
9257 # compilation failed
9258 lt_cv_dlopen_self_static=no
9259 fi
9260fi
9261rm -fr conftest*
9262
9263
9264fi
9265{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9266echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9267 fi
9268
9269 CPPFLAGS="$save_CPPFLAGS"
9270 LDFLAGS="$save_LDFLAGS"
9271 LIBS="$save_LIBS"
9272 ;;
9273 esac
9274
9275 case $lt_cv_dlopen_self in
9276 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9277 *) enable_dlopen_self=unknown ;;
9278 esac
9279
9280 case $lt_cv_dlopen_self_static in
9281 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9282 *) enable_dlopen_self_static=unknown ;;
9283 esac
9284fi
9285
9286
9287# Report which library types will actually be built
9288{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9289echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9290{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9291echo "${ECHO_T}$can_build_shared" >&6; }
9292
9293{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9294echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9295test "$can_build_shared" = "no" && enable_shared=no
9296
9297# On AIX, shared libraries and static libraries use the same namespace, and
9298# are all built from PIC.
9299case $host_os in
9300aix3*)
9301 test "$enable_shared" = yes && enable_static=no
9302 if test -n "$RANLIB"; then
9303 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9304 postinstall_cmds='$RANLIB $lib'
9305 fi
9306 ;;
9307
9308aix4* | aix5*)
9309 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9310 test "$enable_shared" = yes && enable_static=no
9311 fi
9312 ;;
9313esac
9314{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9315echo "${ECHO_T}$enable_shared" >&6; }
9316
9317{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9318echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9319# Make sure either enable_shared or enable_static is yes.
9320test "$enable_shared" = yes || enable_static=yes
9321{ echo "$as_me:$LINENO: result: $enable_static" >&5
9322echo "${ECHO_T}$enable_static" >&6; }
9323
9324# The else clause should only fire when bootstrapping the
9325# libtool distribution, otherwise you forgot to ship ltmain.sh
9326# with your package, and you will get complaints that there are
9327# no rules to generate ltmain.sh.
9328if test -f "$ltmain"; then
9329 # See if we are running on zsh, and set the options which allow our commands through
9330 # without removal of \ escapes.
9331 if test -n "${ZSH_VERSION+set}" ; then
9332 setopt NO_GLOB_SUBST
9333 fi
9334 # Now quote all the things that may contain metacharacters while being
9335 # careful not to overquote the AC_SUBSTed values. We take copies of the
9336 # variables and quote the copies for generation of the libtool script.
9337 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9338 SED SHELL STRIP \
9339 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9340 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9341 deplibs_check_method reload_flag reload_cmds need_locks \
9342 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9343 lt_cv_sys_global_symbol_to_c_name_address \
9344 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9345 old_postinstall_cmds old_postuninstall_cmds \
9346 compiler \
9347 CC \
9348 LD \
9349 lt_prog_compiler_wl \
9350 lt_prog_compiler_pic \
9351 lt_prog_compiler_static \
9352 lt_prog_compiler_no_builtin_flag \
9353 export_dynamic_flag_spec \
9354 thread_safe_flag_spec \
9355 whole_archive_flag_spec \
9356 enable_shared_with_static_runtimes \
9357 old_archive_cmds \
9358 old_archive_from_new_cmds \
9359 predep_objects \
9360 postdep_objects \
9361 predeps \
9362 postdeps \
9363 compiler_lib_search_path \
9364 archive_cmds \
9365 archive_expsym_cmds \
9366 postinstall_cmds \
9367 postuninstall_cmds \
9368 old_archive_from_expsyms_cmds \
9369 allow_undefined_flag \
9370 no_undefined_flag \
9371 export_symbols_cmds \
9372 hardcode_libdir_flag_spec \
9373 hardcode_libdir_flag_spec_ld \
9374 hardcode_libdir_separator \
9375 hardcode_automatic \
9376 module_cmds \
9377 module_expsym_cmds \
9378 lt_cv_prog_compiler_c_o \
9379 exclude_expsyms \
9380 include_expsyms; do
9381
9382 case $var in
9383 old_archive_cmds | \
9384 old_archive_from_new_cmds | \
9385 archive_cmds | \
9386 archive_expsym_cmds | \
9387 module_cmds | \
9388 module_expsym_cmds | \
9389 old_archive_from_expsyms_cmds | \
9390 export_symbols_cmds | \
9391 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9392 postinstall_cmds | postuninstall_cmds | \
9393 old_postinstall_cmds | old_postuninstall_cmds | \
9394 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9395 # Double-quote double-evaled strings.
9396 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9397 ;;
9398 *)
9399 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9400 ;;
9401 esac
9402 done
9403
9404 case $lt_echo in
9405 *'\$0 --fallback-echo"')
9406 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9407 ;;
9408 esac
9409
9410cfgfile="${ofile}T"
9411 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9412 $rm -f "$cfgfile"
9413 { echo "$as_me:$LINENO: creating $ofile" >&5
9414echo "$as_me: creating $ofile" >&6;}
9415
9416 cat <<__EOF__ >> "$cfgfile"
9417#! $SHELL
9418
9419# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9420# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9421# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9422#
9423# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9424# Free Software Foundation, Inc.
9425#
9426# This file is part of GNU Libtool:
9427# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9428#
9429# This program is free software; you can redistribute it and/or modify
9430# it under the terms of the GNU General Public License as published by
9431# the Free Software Foundation; either version 2 of the License, or
9432# (at your option) any later version.
9433#
9434# This program is distributed in the hope that it will be useful, but
9435# WITHOUT ANY WARRANTY; without even the implied warranty of
9436# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9437# General Public License for more details.
9438#
9439# You should have received a copy of the GNU General Public License
9440# along with this program; if not, write to the Free Software
9441# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9442#
9443# As a special exception to the GNU General Public License, if you
9444# distribute this file as part of a program that contains a
9445# configuration script generated by Autoconf, you may include it under
9446# the same distribution terms that you use for the rest of that program.
9447
9448# A sed program that does not truncate output.
9449SED=$lt_SED
9450
9451# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9452Xsed="$SED -e 1s/^X//"
9453
9454# The HP-UX ksh and POSIX shell print the target directory to stdout
9455# if CDPATH is set.
9456(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9457
9458# The names of the tagged configurations supported by this script.
9459available_tags=
9460
9461# ### BEGIN LIBTOOL CONFIG
9462
9463# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9464
9465# Shell to use when invoking shell scripts.
9466SHELL=$lt_SHELL
9467
9468# Whether or not to build shared libraries.
9469build_libtool_libs=$enable_shared
9470
9471# Whether or not to build static libraries.
9472build_old_libs=$enable_static
9473
9474# Whether or not to add -lc for building shared libraries.
9475build_libtool_need_lc=$archive_cmds_need_lc
9476
9477# Whether or not to disallow shared libs when runtime libs are static
9478allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9479
9480# Whether or not to optimize for fast installation.
9481fast_install=$enable_fast_install
9482
9483# The host system.
9484host_alias=$host_alias
9485host=$host
9486host_os=$host_os
9487
9488# The build system.
9489build_alias=$build_alias
9490build=$build
9491build_os=$build_os
9492
9493# An echo program that does not interpret backslashes.
9494echo=$lt_echo
9495
9496# The archiver.
9497AR=$lt_AR
9498AR_FLAGS=$lt_AR_FLAGS
9499
9500# A C compiler.
9501LTCC=$lt_LTCC
9502
9503# LTCC compiler flags.
9504LTCFLAGS=$lt_LTCFLAGS
9505
9506# A language-specific compiler.
9507CC=$lt_compiler
9508
9509# Is the compiler the GNU C compiler?
9510with_gcc=$GCC
9511
9512# An ERE matcher.
9513EGREP=$lt_EGREP
9514
9515# The linker used to build libraries.
9516LD=$lt_LD
9517
9518# Whether we need hard or soft links.
9519LN_S=$lt_LN_S
9520
9521# A BSD-compatible nm program.
9522NM=$lt_NM
9523
9524# A symbol stripping program
9525STRIP=$lt_STRIP
9526
9527# Used to examine libraries when file_magic_cmd begins "file"
9528MAGIC_CMD=$MAGIC_CMD
9529
9530# Used on cygwin: DLL creation program.
9531DLLTOOL="$DLLTOOL"
9532
9533# Used on cygwin: object dumper.
9534OBJDUMP="$OBJDUMP"
9535
9536# Used on cygwin: assembler.
9537AS="$AS"
9538
9539# The name of the directory that contains temporary libtool files.
9540objdir=$objdir
9541
9542# How to create reloadable object files.
9543reload_flag=$lt_reload_flag
9544reload_cmds=$lt_reload_cmds
9545
9546# How to pass a linker flag through the compiler.
9547wl=$lt_lt_prog_compiler_wl
9548
9549# Object file suffix (normally "o").
9550objext="$ac_objext"
9551
9552# Old archive suffix (normally "a").
9553libext="$libext"
9554
9555# Shared library suffix (normally ".so").
9556shrext_cmds='$shrext_cmds'
9557
9558# Executable file suffix (normally "").
9559exeext="$exeext"
9560
9561# Additional compiler flags for building library objects.
9562pic_flag=$lt_lt_prog_compiler_pic
9563pic_mode=$pic_mode
9564
9565# What is the maximum length of a command?
9566max_cmd_len=$lt_cv_sys_max_cmd_len
9567
9568# Does compiler simultaneously support -c and -o options?
9569compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9570
9571# Must we lock files when doing compilation?
9572need_locks=$lt_need_locks
9573
9574# Do we need the lib prefix for modules?
9575need_lib_prefix=$need_lib_prefix
9576
9577# Do we need a version for libraries?
9578need_version=$need_version
9579
9580# Whether dlopen is supported.
9581dlopen_support=$enable_dlopen
9582
9583# Whether dlopen of programs is supported.
9584dlopen_self=$enable_dlopen_self
9585
9586# Whether dlopen of statically linked programs is supported.
9587dlopen_self_static=$enable_dlopen_self_static
9588
9589# Compiler flag to prevent dynamic linking.
9590link_static_flag=$lt_lt_prog_compiler_static
9591
9592# Compiler flag to turn off builtin functions.
9593no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9594
9595# Compiler flag to allow reflexive dlopens.
9596export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9597
9598# Compiler flag to generate shared objects directly from archives.
9599whole_archive_flag_spec=$lt_whole_archive_flag_spec
9600
9601# Compiler flag to generate thread-safe objects.
9602thread_safe_flag_spec=$lt_thread_safe_flag_spec
9603
9604# Library versioning type.
9605version_type=$version_type
9606
9607# Format of library name prefix.
9608libname_spec=$lt_libname_spec
9609
9610# List of archive names. First name is the real one, the rest are links.
9611# The last name is the one that the linker finds with -lNAME.
9612library_names_spec=$lt_library_names_spec
9613
9614# The coded name of the library, if different from the real name.
9615soname_spec=$lt_soname_spec
9616
9617# Commands used to build and install an old-style archive.
9618RANLIB=$lt_RANLIB
9619old_archive_cmds=$lt_old_archive_cmds
9620old_postinstall_cmds=$lt_old_postinstall_cmds
9621old_postuninstall_cmds=$lt_old_postuninstall_cmds
9622
9623# Create an old-style archive from a shared archive.
9624old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9625
9626# Create a temporary old-style archive to link instead of a shared archive.
9627old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9628
9629# Commands used to build and install a shared archive.
9630archive_cmds=$lt_archive_cmds
9631archive_expsym_cmds=$lt_archive_expsym_cmds
9632postinstall_cmds=$lt_postinstall_cmds
9633postuninstall_cmds=$lt_postuninstall_cmds
9634
9635# Commands used to build a loadable module (assumed same as above if empty)
9636module_cmds=$lt_module_cmds
9637module_expsym_cmds=$lt_module_expsym_cmds
9638
9639# Commands to strip libraries.
9640old_striplib=$lt_old_striplib
9641striplib=$lt_striplib
9642
9643# Dependencies to place before the objects being linked to create a
9644# shared library.
9645predep_objects=$lt_predep_objects
9646
9647# Dependencies to place after the objects being linked to create a
9648# shared library.
9649postdep_objects=$lt_postdep_objects
9650
9651# Dependencies to place before the objects being linked to create a
9652# shared library.
9653predeps=$lt_predeps
9654
9655# Dependencies to place after the objects being linked to create a
9656# shared library.
9657postdeps=$lt_postdeps
9658
9659# The library search path used internally by the compiler when linking
9660# a shared library.
9661compiler_lib_search_path=$lt_compiler_lib_search_path
9662
9663# Method to check whether dependent libraries are shared objects.
9664deplibs_check_method=$lt_deplibs_check_method
9665
9666# Command to use when deplibs_check_method == file_magic.
9667file_magic_cmd=$lt_file_magic_cmd
9668
9669# Flag that allows shared libraries with undefined symbols to be built.
9670allow_undefined_flag=$lt_allow_undefined_flag
9671
9672# Flag that forces no undefined symbols.
9673no_undefined_flag=$lt_no_undefined_flag
9674
9675# Commands used to finish a libtool library installation in a directory.
9676finish_cmds=$lt_finish_cmds
9677
9678# Same as above, but a single script fragment to be evaled but not shown.
9679finish_eval=$lt_finish_eval
9680
9681# Take the output of nm and produce a listing of raw symbols and C names.
9682global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9683
9684# Transform the output of nm in a proper C declaration
9685global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9686
9687# Transform the output of nm in a C name address pair
9688global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9689
9690# This is the shared library runtime path variable.
9691runpath_var=$runpath_var
9692
9693# This is the shared library path variable.
9694shlibpath_var=$shlibpath_var
9695
9696# Is shlibpath searched before the hard-coded library search path?
9697shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9698
9699# How to hardcode a shared library path into an executable.
9700hardcode_action=$hardcode_action
9701
9702# Whether we should hardcode library paths into libraries.
9703hardcode_into_libs=$hardcode_into_libs
9704
9705# Flag to hardcode \$libdir into a binary during linking.
9706# This must work even if \$libdir does not exist.
9707hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9708
9709# If ld is used when linking, flag to hardcode \$libdir into
9710# a binary during linking. This must work even if \$libdir does
9711# not exist.
9712hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9713
9714# Whether we need a single -rpath flag with a separated argument.
9715hardcode_libdir_separator=$lt_hardcode_libdir_separator
9716
9717# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9718# resulting binary.
9719hardcode_direct=$hardcode_direct
9720
9721# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9722# resulting binary.
9723hardcode_minus_L=$hardcode_minus_L
9724
9725# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9726# the resulting binary.
9727hardcode_shlibpath_var=$hardcode_shlibpath_var
9728
9729# Set to yes if building a shared library automatically hardcodes DIR into the library
9730# and all subsequent libraries and executables linked against it.
9731hardcode_automatic=$hardcode_automatic
9732
9733# Variables whose values should be saved in libtool wrapper scripts and
9734# restored at relink time.
9735variables_saved_for_relink="$variables_saved_for_relink"
9736
9737# Whether libtool must link a program against all its dependency libraries.
9738link_all_deplibs=$link_all_deplibs
9739
9740# Compile-time system search path for libraries
9741sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9742
9743# Run-time system search path for libraries
9744sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9745
9746# Fix the shell variable \$srcfile for the compiler.
9747fix_srcfile_path="$fix_srcfile_path"
9748
9749# Set to yes if exported symbols are required.
9750always_export_symbols=$always_export_symbols
9751
9752# The commands to list exported symbols.
9753export_symbols_cmds=$lt_export_symbols_cmds
9754
9755# The commands to extract the exported symbol list from a shared archive.
9756extract_expsyms_cmds=$lt_extract_expsyms_cmds
9757
9758# Symbols that should not be listed in the preloaded symbols.
9759exclude_expsyms=$lt_exclude_expsyms
9760
9761# Symbols that must always be exported.
9762include_expsyms=$lt_include_expsyms
9763
9764# ### END LIBTOOL CONFIG
9765
9766__EOF__
9767
9768
9769 case $host_os in
9770 aix3*)
9771 cat <<\EOF >> "$cfgfile"
9772
9773# AIX sometimes has problems with the GCC collect2 program. For some
9774# reason, if we set the COLLECT_NAMES environment variable, the problems
9775# vanish in a puff of smoke.
9776if test "X${COLLECT_NAMES+set}" != Xset; then
9777 COLLECT_NAMES=
9778 export COLLECT_NAMES
9779fi
9780EOF
9781 ;;
9782 esac
9783
9784 # We use sed instead of cat because bash on DJGPP gets confused if
9785 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9786 # text mode, it properly converts lines to CR/LF. This bash problem
9787 # is reportedly fixed, but why not run on old versions too?
9788 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9789
9790 mv -f "$cfgfile" "$ofile" || \
9791 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9792 chmod +x "$ofile"
9793
9794else
9795 # If there is no Makefile yet, we rely on a make rule to execute
9796 # `config.status --recheck' to rerun these tests and create the
9797 # libtool script then.
9798 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9799 if test -f "$ltmain_in"; then
9800 test -f Makefile && make "$ltmain"
9801 fi
9802fi
9803
9804
9805ac_ext=c
9806ac_cpp='$CPP $CPPFLAGS'
9807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9809ac_compiler_gnu=$ac_cv_c_compiler_gnu
9810
9811CC="$lt_save_CC"
9812
9813
9814# Check whether --with-tags was given.
9815if test "${with_tags+set}" = set; then
9816 withval=$with_tags; tagnames="$withval"
9817fi
9818
9819
9820if test -f "$ltmain" && test -n "$tagnames"; then
9821 if test ! -f "${ofile}"; then
9822 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9823echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9824 fi
9825
9826 if test -z "$LTCC"; then
9827 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9828 if test -z "$LTCC"; then
9829 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9830echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9831 else
9832 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9833echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9834 fi
9835 fi
9836 if test -z "$LTCFLAGS"; then
9837 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9838 fi
9839
9840 # Extract list of available tagged configurations in $ofile.
9841 # Note that this assumes the entire list is on one line.
9842 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9843
9844 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9845 for tagname in $tagnames; do
9846 IFS="$lt_save_ifs"
9847 # Check whether tagname contains only valid characters
9848 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9849 "") ;;
9850 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9851echo "$as_me: error: invalid tag name: $tagname" >&2;}
9852 { (exit 1); exit 1; }; }
9853 ;;
9854 esac
9855
9856 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9857 then
9858 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9859echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9860 { (exit 1); exit 1; }; }
9861 fi
9862
9863 # Update the list of available tags.
9864 if test -n "$tagname"; then
9865 echo appending configuration tag \"$tagname\" to $ofile
9866
9867 case $tagname in
9868 CXX)
9869 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9870 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9871 (test "X$CXX" != "Xg++"))) ; then
9872 ac_ext=cpp
9873ac_cpp='$CXXCPP $CPPFLAGS'
9874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9877
9878
9879
9880
9881archive_cmds_need_lc_CXX=no
9882allow_undefined_flag_CXX=
9883always_export_symbols_CXX=no
9884archive_expsym_cmds_CXX=
9885export_dynamic_flag_spec_CXX=
9886hardcode_direct_CXX=no
9887hardcode_libdir_flag_spec_CXX=
9888hardcode_libdir_flag_spec_ld_CXX=
9889hardcode_libdir_separator_CXX=
9890hardcode_minus_L_CXX=no
9891hardcode_shlibpath_var_CXX=unsupported
9892hardcode_automatic_CXX=no
9893module_cmds_CXX=
9894module_expsym_cmds_CXX=
9895link_all_deplibs_CXX=unknown
9896old_archive_cmds_CXX=$old_archive_cmds
9897no_undefined_flag_CXX=
9898whole_archive_flag_spec_CXX=
9899enable_shared_with_static_runtimes_CXX=no
9900
9901# Dependencies to place before and after the object being linked:
9902predep_objects_CXX=
9903postdep_objects_CXX=
9904predeps_CXX=
9905postdeps_CXX=
9906compiler_lib_search_path_CXX=
9907
9908# Source file extension for C++ test sources.
9909ac_ext=cpp
9910
9911# Object file extension for compiled C++ test sources.
9912objext=o
9913objext_CXX=$objext
9914
9915# Code to be used in simple compile tests
9916lt_simple_compile_test_code="int some_variable = 0;\n"
9917
9918# Code to be used in simple link tests
9919lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9920
9921# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9922
9923# If no C compiler was specified, use CC.
9924LTCC=${LTCC-"$CC"}
9925
9926# If no C compiler flags were specified, use CFLAGS.
9927LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9928
9929# Allow CC to be a program name with arguments.
9930compiler=$CC
9931
9932
9933# save warnings/boilerplate of simple test code
9934ac_outfile=conftest.$ac_objext
9935printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9936eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9937_lt_compiler_boilerplate=`cat conftest.err`
9938$rm conftest*
9939
9940ac_outfile=conftest.$ac_objext
9941printf "$lt_simple_link_test_code" >conftest.$ac_ext
9942eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9943_lt_linker_boilerplate=`cat conftest.err`
9944$rm conftest*
9945
9946
9947# Allow CC to be a program name with arguments.
9948lt_save_CC=$CC
9949lt_save_LD=$LD
9950lt_save_GCC=$GCC
9951GCC=$GXX
9952lt_save_with_gnu_ld=$with_gnu_ld
9953lt_save_path_LD=$lt_cv_path_LD
9954if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9955 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9956else
9957 $as_unset lt_cv_prog_gnu_ld
9958fi
9959if test -n "${lt_cv_path_LDCXX+set}"; then
9960 lt_cv_path_LD=$lt_cv_path_LDCXX
9961else
9962 $as_unset lt_cv_path_LD
9963fi
9964test -z "${LDCXX+set}" || LD=$LDCXX
9965CC=${CXX-"c++"}
9966compiler=$CC
9967compiler_CXX=$CC
9968for cc_temp in $compiler""; do
9969 case $cc_temp in
9970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9972 \-*) ;;
9973 *) break;;
9974 esac
9975done
9976cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9977
9978
9979# We don't want -fno-exception wen compiling C++ code, so set the
9980# no_builtin_flag separately
9981if test "$GXX" = yes; then
9982 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9983else
9984 lt_prog_compiler_no_builtin_flag_CXX=
9985fi
9986
9987if test "$GXX" = yes; then
9988 # Set up default GNU C++ configuration
9989
9990
9991# Check whether --with-gnu-ld was given.
9992if test "${with_gnu_ld+set}" = set; then
9993 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9994else
9995 with_gnu_ld=no
9996fi
9997
9998ac_prog=ld
9999if test "$GCC" = yes; then
10000 # Check if gcc -print-prog-name=ld gives a path.
10001 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10002echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10003 case $host in
10004 *-*-mingw*)
10005 # gcc leaves a trailing carriage return which upsets mingw
10006 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10007 *)
10008 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10009 esac
10010 case $ac_prog in
10011 # Accept absolute paths.
10012 [\\/]* | ?:[\\/]*)
10013 re_direlt='/[^/][^/]*/\.\./'
10014 # Canonicalize the pathname of ld
10015 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10016 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10017 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10018 done
10019 test -z "$LD" && LD="$ac_prog"
10020 ;;
10021 "")
10022 # If it fails, then pretend we aren't using GCC.
10023 ac_prog=ld
10024 ;;
10025 *)
10026 # If it is relative, then search for the first ld in PATH.
10027 with_gnu_ld=unknown
10028 ;;
10029 esac
10030elif test "$with_gnu_ld" = yes; then
10031 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10032echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10033else
10034 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10035echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10036fi
10037if test "${lt_cv_path_LD+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10039else
10040 if test -z "$LD"; then
10041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10042 for ac_dir in $PATH; do
10043 IFS="$lt_save_ifs"
10044 test -z "$ac_dir" && ac_dir=.
10045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10046 lt_cv_path_LD="$ac_dir/$ac_prog"
10047 # Check to see if the program is GNU ld. I'd rather use --version,
10048 # but apparently some variants of GNU ld only accept -v.
10049 # Break only if it was the GNU/non-GNU ld that we prefer.
10050 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10051 *GNU* | *'with BFD'*)
10052 test "$with_gnu_ld" != no && break
10053 ;;
10054 *)
10055 test "$with_gnu_ld" != yes && break
10056 ;;
10057 esac
10058 fi
10059 done
10060 IFS="$lt_save_ifs"
10061else
10062 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10063fi
10064fi
10065
10066LD="$lt_cv_path_LD"
10067if test -n "$LD"; then
10068 { echo "$as_me:$LINENO: result: $LD" >&5
10069echo "${ECHO_T}$LD" >&6; }
10070else
10071 { echo "$as_me:$LINENO: result: no" >&5
10072echo "${ECHO_T}no" >&6; }
10073fi
10074test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10075echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10076 { (exit 1); exit 1; }; }
10077{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10078echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10079if test "${lt_cv_prog_gnu_ld+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10081else
10082 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10083case `$LD -v 2>&1 </dev/null` in
10084*GNU* | *'with BFD'*)
10085 lt_cv_prog_gnu_ld=yes
10086 ;;
10087*)
10088 lt_cv_prog_gnu_ld=no
10089 ;;
10090esac
10091fi
10092{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10093echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10094with_gnu_ld=$lt_cv_prog_gnu_ld
10095
10096
10097
10098 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10099 # archiving commands below assume that GNU ld is being used.
10100 if test "$with_gnu_ld" = yes; then
10101 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102 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'
10103
10104 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10105 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10106
10107 # If archive_cmds runs LD, not CC, wlarc should be empty
10108 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10109 # investigate it a little bit more. (MM)
10110 wlarc='${wl}'
10111
10112 # ancient GNU ld didn't support --whole-archive et. al.
10113 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10114 grep 'no-whole-archive' > /dev/null; then
10115 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10116 else
10117 whole_archive_flag_spec_CXX=
10118 fi
10119 else
10120 with_gnu_ld=no
10121 wlarc=
10122
10123 # A generic and very simple default shared library creation
10124 # command for GNU C++ for the case where it uses the native
10125 # linker, instead of GNU ld. If possible, this setting should
10126 # overridden to take advantage of the native linker features on
10127 # the platform it is being used on.
10128 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10129 fi
10130
10131 # Commands to make compiler produce verbose output that lists
10132 # what "hidden" libraries, object files and flags are used when
10133 # linking a shared library.
10134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10135
10136else
10137 GXX=no
10138 with_gnu_ld=no
10139 wlarc=
10140fi
10141
10142# PORTME: fill in a description of your system's C++ link characteristics
10143{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10144echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10145ld_shlibs_CXX=yes
10146case $host_os in
10147 aix3*)
10148 # FIXME: insert proper C++ library support
10149 ld_shlibs_CXX=no
10150 ;;
10151 aix4* | aix5*)
10152 if test "$host_cpu" = ia64; then
10153 # On IA64, the linker does run time linking by default, so we don't
10154 # have to do anything special.
10155 aix_use_runtimelinking=no
10156 exp_sym_flag='-Bexport'
10157 no_entry_flag=""
10158 else
10159 aix_use_runtimelinking=no
10160
10161 # Test if we are trying to use run time linking or normal
10162 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10163 # need to do runtime linking.
10164 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10165 for ld_flag in $LDFLAGS; do
10166 case $ld_flag in
10167 *-brtl*)
10168 aix_use_runtimelinking=yes
10169 break
10170 ;;
10171 esac
10172 done
10173 ;;
10174 esac
10175
10176 exp_sym_flag='-bexport'
10177 no_entry_flag='-bnoentry'
10178 fi
10179
10180 # When large executables or shared objects are built, AIX ld can
10181 # have problems creating the table of contents. If linking a library
10182 # or program results in "error TOC overflow" add -mminimal-toc to
10183 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10184 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10185
10186 archive_cmds_CXX=''
10187 hardcode_direct_CXX=yes
10188 hardcode_libdir_separator_CXX=':'
10189 link_all_deplibs_CXX=yes
10190
10191 if test "$GXX" = yes; then
10192 case $host_os in aix4.[012]|aix4.[012].*)
10193 # We only want to do this on AIX 4.2 and lower, the check
10194 # below for broken collect2 doesn't work under 4.3+
10195 collect2name=`${CC} -print-prog-name=collect2`
10196 if test -f "$collect2name" && \
10197 strings "$collect2name" | grep resolve_lib_name >/dev/null
10198 then
10199 # We have reworked collect2
10200 hardcode_direct_CXX=yes
10201 else
10202 # We have old collect2
10203 hardcode_direct_CXX=unsupported
10204 # It fails to find uninstalled libraries when the uninstalled
10205 # path is not listed in the libpath. Setting hardcode_minus_L
10206 # to unsupported forces relinking
10207 hardcode_minus_L_CXX=yes
10208 hardcode_libdir_flag_spec_CXX='-L$libdir'
10209 hardcode_libdir_separator_CXX=
10210 fi
10211 ;;
10212 esac
10213 shared_flag='-shared'
10214 if test "$aix_use_runtimelinking" = yes; then
10215 shared_flag="$shared_flag "'${wl}-G'
10216 fi
10217 else
10218 # not using gcc
10219 if test "$host_cpu" = ia64; then
10220 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10221 # chokes on -Wl,-G. The following line is correct:
10222 shared_flag='-G'
10223 else
10224 if test "$aix_use_runtimelinking" = yes; then
10225 shared_flag='${wl}-G'
10226 else
10227 shared_flag='${wl}-bM:SRE'
10228 fi
10229 fi
10230 fi
10231
10232 # It seems that -bexpall does not export symbols beginning with
10233 # underscore (_), so it is better to generate a list of symbols to export.
10234 always_export_symbols_CXX=yes
10235 if test "$aix_use_runtimelinking" = yes; then
10236 # Warning - without using the other runtime loading flags (-brtl),
10237 # -berok will link without error, but may produce a broken library.
10238 allow_undefined_flag_CXX='-berok'
10239 # Determine the default libpath from the value encoded in an empty executable.
10240 cat >conftest.$ac_ext <<_ACEOF
10241/* confdefs.h. */
10242_ACEOF
10243cat confdefs.h >>conftest.$ac_ext
10244cat >>conftest.$ac_ext <<_ACEOF
10245/* end confdefs.h. */
10246
10247int
10248main ()
10249{
10250
10251 ;
10252 return 0;
10253}
10254_ACEOF
10255rm -f conftest.$ac_objext conftest$ac_exeext
10256if { (ac_try="$ac_link"
10257case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260esac
10261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_link") 2>conftest.er1
10263 ac_status=$?
10264 grep -v '^ *+' conftest.er1 >conftest.err
10265 rm -f conftest.er1
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && {
10269 test -z "$ac_cxx_werror_flag" ||
10270 test ! -s conftest.err
10271 } && test -s conftest$ac_exeext &&
10272 $as_test_x conftest$ac_exeext; then
10273
10274aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10275}'`
10276# Check for a 64-bit object if we didn't find anything.
10277if 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; }
10278}'`; fi
10279else
10280 echo "$as_me: failed program was:" >&5
10281sed 's/^/| /' conftest.$ac_ext >&5
10282
10283
10284fi
10285
10286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10287 conftest$ac_exeext conftest.$ac_ext
10288if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10289
10290 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10291
10292 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"
10293 else
10294 if test "$host_cpu" = ia64; then
10295 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10296 allow_undefined_flag_CXX="-z nodefs"
10297 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"
10298 else
10299 # Determine the default libpath from the value encoded in an empty executable.
10300 cat >conftest.$ac_ext <<_ACEOF
10301/* confdefs.h. */
10302_ACEOF
10303cat confdefs.h >>conftest.$ac_ext
10304cat >>conftest.$ac_ext <<_ACEOF
10305/* end confdefs.h. */
10306
10307int
10308main ()
10309{
10310
10311 ;
10312 return 0;
10313}
10314_ACEOF
10315rm -f conftest.$ac_objext conftest$ac_exeext
10316if { (ac_try="$ac_link"
10317case "(($ac_try" in
10318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319 *) ac_try_echo=$ac_try;;
10320esac
10321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322 (eval "$ac_link") 2>conftest.er1
10323 ac_status=$?
10324 grep -v '^ *+' conftest.er1 >conftest.err
10325 rm -f conftest.er1
10326 cat conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } && {
10329 test -z "$ac_cxx_werror_flag" ||
10330 test ! -s conftest.err
10331 } && test -s conftest$ac_exeext &&
10332 $as_test_x conftest$ac_exeext; then
10333
10334aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10335}'`
10336# Check for a 64-bit object if we didn't find anything.
10337if 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; }
10338}'`; fi
10339else
10340 echo "$as_me: failed program was:" >&5
10341sed 's/^/| /' conftest.$ac_ext >&5
10342
10343
10344fi
10345
10346rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10347 conftest$ac_exeext conftest.$ac_ext
10348if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10349
10350 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10351 # Warning - without using the other run time loading flags,
10352 # -berok will link without error, but may produce a broken library.
10353 no_undefined_flag_CXX=' ${wl}-bernotok'
10354 allow_undefined_flag_CXX=' ${wl}-berok'
10355 # Exported symbols can be pulled into shared objects from archives
10356 whole_archive_flag_spec_CXX='$convenience'
10357 archive_cmds_need_lc_CXX=yes
10358 # This is similar to how AIX traditionally builds its shared libraries.
10359 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'
10360 fi
10361 fi
10362 ;;
10363
10364 beos*)
10365 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10366 allow_undefined_flag_CXX=unsupported
10367 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10368 # support --undefined. This deserves some investigation. FIXME
10369 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10370 else
10371 ld_shlibs_CXX=no
10372 fi
10373 ;;
10374
10375 chorus*)
10376 case $cc_basename in
10377 *)
10378 # FIXME: insert proper C++ library support
10379 ld_shlibs_CXX=no
10380 ;;
10381 esac
10382 ;;
10383
10384 cygwin* | mingw* | pw32*)
10385 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10386 # as there is no search path for DLLs.
10387 hardcode_libdir_flag_spec_CXX='-L$libdir'
10388 allow_undefined_flag_CXX=unsupported
10389 always_export_symbols_CXX=no
10390 enable_shared_with_static_runtimes_CXX=yes
10391
10392 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10393 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'
10394 # If the export-symbols file already is a .def file (1st line
10395 # is EXPORTS), use it as is; otherwise, prepend...
10396 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10397 cp $export_symbols $output_objdir/$soname.def;
10398 else
10399 echo EXPORTS > $output_objdir/$soname.def;
10400 cat $export_symbols >> $output_objdir/$soname.def;
10401 fi~
10402 $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'
10403 else
10404 ld_shlibs_CXX=no
10405 fi
10406 ;;
10407 darwin* | rhapsody*)
10408 case $host_os in
10409 rhapsody* | darwin1.[012])
10410 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10411 ;;
10412 *) # Darwin 1.3 on
10413 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10414 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10415 else
10416 case ${MACOSX_DEPLOYMENT_TARGET} in
10417 10.[012])
10418 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10419 ;;
10420 10.*)
10421 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10422 ;;
10423 esac
10424 fi
10425 ;;
10426 esac
10427 archive_cmds_need_lc_CXX=no
10428 hardcode_direct_CXX=no
10429 hardcode_automatic_CXX=yes
10430 hardcode_shlibpath_var_CXX=unsupported
10431 whole_archive_flag_spec_CXX=''
10432 link_all_deplibs_CXX=yes
10433
10434 if test "$GXX" = yes ; then
10435 lt_int_apple_cc_single_mod=no
10436 output_verbose_link_cmd='echo'
10437 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10438 lt_int_apple_cc_single_mod=yes
10439 fi
10440 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10441 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10442 else
10443 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'
10444 fi
10445 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10446 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10447 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10448 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}'
10449 else
10450 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}'
10451 fi
10452 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}'
10453 else
10454 case $cc_basename in
10455 xlc*)
10456 output_verbose_link_cmd='echo'
10457 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'
10458 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10460 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}'
10461 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}'
10462 ;;
10463 *)
10464 ld_shlibs_CXX=no
10465 ;;
10466 esac
10467 fi
10468 ;;
10469
10470 dgux*)
10471 case $cc_basename in
10472 ec++*)
10473 # FIXME: insert proper C++ library support
10474 ld_shlibs_CXX=no
10475 ;;
10476 ghcx*)
10477 # Green Hills C++ Compiler
10478 # FIXME: insert proper C++ library support
10479 ld_shlibs_CXX=no
10480 ;;
10481 *)
10482 # FIXME: insert proper C++ library support
10483 ld_shlibs_CXX=no
10484 ;;
10485 esac
10486 ;;
10487 freebsd[12]*)
10488 # C++ shared libraries reported to be fairly broken before switch to ELF
10489 ld_shlibs_CXX=no
10490 ;;
10491 freebsd-elf*)
10492 archive_cmds_need_lc_CXX=no
10493 ;;
10494 freebsd* | kfreebsd*-gnu | dragonfly*)
10495 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10496 # conventions
10497 ld_shlibs_CXX=yes
10498 ;;
10499 gnu*)
10500 ;;
10501 hpux9*)
10502 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10503 hardcode_libdir_separator_CXX=:
10504 export_dynamic_flag_spec_CXX='${wl}-E'
10505 hardcode_direct_CXX=yes
10506 hardcode_minus_L_CXX=yes # Not in the search PATH,
10507 # but as the default
10508 # location of the library.
10509
10510 case $cc_basename in
10511 CC*)
10512 # FIXME: insert proper C++ library support
10513 ld_shlibs_CXX=no
10514 ;;
10515 aCC*)
10516 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'
10517 # Commands to make compiler produce verbose output that lists
10518 # what "hidden" libraries, object files and flags are used when
10519 # linking a shared library.
10520 #
10521 # There doesn't appear to be a way to prevent this compiler from
10522 # explicitly linking system object files so we need to strip them
10523 # from the output so that they don't get included in the library
10524 # dependencies.
10525 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'
10526 ;;
10527 *)
10528 if test "$GXX" = yes; then
10529 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'
10530 else
10531 # FIXME: insert proper C++ library support
10532 ld_shlibs_CXX=no
10533 fi
10534 ;;
10535 esac
10536 ;;
10537 hpux10*|hpux11*)
10538 if test $with_gnu_ld = no; then
10539 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10540 hardcode_libdir_separator_CXX=:
10541
10542 case $host_cpu in
10543 hppa*64*|ia64*)
10544 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10545 ;;
10546 *)
10547 export_dynamic_flag_spec_CXX='${wl}-E'
10548 ;;
10549 esac
10550 fi
10551 case $host_cpu in
10552 hppa*64*|ia64*)
10553 hardcode_direct_CXX=no
10554 hardcode_shlibpath_var_CXX=no
10555 ;;
10556 *)
10557 hardcode_direct_CXX=yes
10558 hardcode_minus_L_CXX=yes # Not in the search PATH,
10559 # but as the default
10560 # location of the library.
10561 ;;
10562 esac
10563
10564 case $cc_basename in
10565 CC*)
10566 # FIXME: insert proper C++ library support
10567 ld_shlibs_CXX=no
10568 ;;
10569 aCC*)
10570 case $host_cpu in
10571 hppa*64*)
10572 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10573 ;;
10574 ia64*)
10575 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10576 ;;
10577 *)
10578 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10579 ;;
10580 esac
10581 # Commands to make compiler produce verbose output that lists
10582 # what "hidden" libraries, object files and flags are used when
10583 # linking a shared library.
10584 #
10585 # There doesn't appear to be a way to prevent this compiler from
10586 # explicitly linking system object files so we need to strip them
10587 # from the output so that they don't get included in the library
10588 # dependencies.
10589 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'
10590 ;;
10591 *)
10592 if test "$GXX" = yes; then
10593 if test $with_gnu_ld = no; then
10594 case $host_cpu in
10595 hppa*64*)
10596 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10597 ;;
10598 ia64*)
10599 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10600 ;;
10601 *)
10602 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'
10603 ;;
10604 esac
10605 fi
10606 else
10607 # FIXME: insert proper C++ library support
10608 ld_shlibs_CXX=no
10609 fi
10610 ;;
10611 esac
10612 ;;
10613 interix3*)
10614 hardcode_direct_CXX=no
10615 hardcode_shlibpath_var_CXX=no
10616 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10617 export_dynamic_flag_spec_CXX='${wl}-E'
10618 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10619 # Instead, shared libraries are loaded at an image base (0x10000000 by
10620 # default) and relocated if they conflict, which is a slow very memory
10621 # consuming and fragmenting process. To avoid this, we pick a random,
10622 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10623 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10624 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'
10625 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'
10626 ;;
10627 irix5* | irix6*)
10628 case $cc_basename in
10629 CC*)
10630 # SGI C++
10631 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'
10632
10633 # Archives containing C++ object files must be created using
10634 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10635 # necessary to make sure instantiated templates are included
10636 # in the archive.
10637 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10638 ;;
10639 *)
10640 if test "$GXX" = yes; then
10641 if test "$with_gnu_ld" = no; then
10642 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'
10643 else
10644 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'
10645 fi
10646 fi
10647 link_all_deplibs_CXX=yes
10648 ;;
10649 esac
10650 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10651 hardcode_libdir_separator_CXX=:
10652 ;;
10653 linux*)
10654 case $cc_basename in
10655 KCC*)
10656 # Kuck and Associates, Inc. (KAI) C++ Compiler
10657
10658 # KCC will only create a shared library if the output file
10659 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10660 # to its proper name (with version) after linking.
10661 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'
10662 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'
10663 # Commands to make compiler produce verbose output that lists
10664 # what "hidden" libraries, object files and flags are used when
10665 # linking a shared library.
10666 #
10667 # There doesn't appear to be a way to prevent this compiler from
10668 # explicitly linking system object files so we need to strip them
10669 # from the output so that they don't get included in the library
10670 # dependencies.
10671 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'
10672
10673 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10674 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10675
10676 # Archives containing C++ object files must be created using
10677 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10678 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10679 ;;
10680 icpc*)
10681 # Intel C++
10682 with_gnu_ld=yes
10683 # version 8.0 and above of icpc choke on multiply defined symbols
10684 # if we add $predep_objects and $postdep_objects, however 7.1 and
10685 # earlier do not add the objects themselves.
10686 case `$CC -V 2>&1` in
10687 *"Version 7."*)
10688 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10689 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'
10690 ;;
10691 *) # Version 8.0 or newer
10692 tmp_idyn=
10693 case $host_cpu in
10694 ia64*) tmp_idyn=' -i_dynamic';;
10695 esac
10696 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10697 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'
10698 ;;
10699 esac
10700 archive_cmds_need_lc_CXX=no
10701 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10703 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10704 ;;
10705 pgCC*)
10706 # Portland Group C++ compiler
10707 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10708 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'
10709
10710 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10711 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10712 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'
10713 ;;
10714 cxx*)
10715 # Compaq C++
10716 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10717 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'
10718
10719 runpath_var=LD_RUN_PATH
10720 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10721 hardcode_libdir_separator_CXX=:
10722
10723 # Commands to make compiler produce verbose output that lists
10724 # what "hidden" libraries, object files and flags are used when
10725 # linking a shared library.
10726 #
10727 # There doesn't appear to be a way to prevent this compiler from
10728 # explicitly linking system object files so we need to strip them
10729 # from the output so that they don't get included in the library
10730 # dependencies.
10731 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'
10732 ;;
10733 esac
10734 ;;
10735 lynxos*)
10736 # FIXME: insert proper C++ library support
10737 ld_shlibs_CXX=no
10738 ;;
10739 m88k*)
10740 # FIXME: insert proper C++ library support
10741 ld_shlibs_CXX=no
10742 ;;
10743 mvs*)
10744 case $cc_basename in
10745 cxx*)
10746 # FIXME: insert proper C++ library support
10747 ld_shlibs_CXX=no
10748 ;;
10749 *)
10750 # FIXME: insert proper C++ library support
10751 ld_shlibs_CXX=no
10752 ;;
10753 esac
10754 ;;
10755 netbsd*)
10756 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10757 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10758 wlarc=
10759 hardcode_libdir_flag_spec_CXX='-R$libdir'
10760 hardcode_direct_CXX=yes
10761 hardcode_shlibpath_var_CXX=no
10762 fi
10763 # Workaround some broken pre-1.5 toolchains
10764 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10765 ;;
10766 openbsd2*)
10767 # C++ shared libraries are fairly broken
10768 ld_shlibs_CXX=no
10769 ;;
10770 openbsd*)
10771 hardcode_direct_CXX=yes
10772 hardcode_shlibpath_var_CXX=no
10773 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10774 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10776 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10777 export_dynamic_flag_spec_CXX='${wl}-E'
10778 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10779 fi
10780 output_verbose_link_cmd='echo'
10781 ;;
10782 osf3*)
10783 case $cc_basename in
10784 KCC*)
10785 # Kuck and Associates, Inc. (KAI) C++ Compiler
10786
10787 # KCC will only create a shared library if the output file
10788 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10789 # to its proper name (with version) after linking.
10790 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'
10791
10792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10793 hardcode_libdir_separator_CXX=:
10794
10795 # Archives containing C++ object files must be created using
10796 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10797 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10798
10799 ;;
10800 RCC*)
10801 # Rational C++ 2.4.1
10802 # FIXME: insert proper C++ library support
10803 ld_shlibs_CXX=no
10804 ;;
10805 cxx*)
10806 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10807 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'
10808
10809 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10810 hardcode_libdir_separator_CXX=:
10811
10812 # Commands to make compiler produce verbose output that lists
10813 # what "hidden" libraries, object files and flags are used when
10814 # linking a shared library.
10815 #
10816 # There doesn't appear to be a way to prevent this compiler from
10817 # explicitly linking system object files so we need to strip them
10818 # from the output so that they don't get included in the library
10819 # dependencies.
10820 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'
10821 ;;
10822 *)
10823 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10824 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10825 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'
10826
10827 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10828 hardcode_libdir_separator_CXX=:
10829
10830 # Commands to make compiler produce verbose output that lists
10831 # what "hidden" libraries, object files and flags are used when
10832 # linking a shared library.
10833 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10834
10835 else
10836 # FIXME: insert proper C++ library support
10837 ld_shlibs_CXX=no
10838 fi
10839 ;;
10840 esac
10841 ;;
10842 osf4* | osf5*)
10843 case $cc_basename in
10844 KCC*)
10845 # Kuck and Associates, Inc. (KAI) C++ Compiler
10846
10847 # KCC will only create a shared library if the output file
10848 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10849 # to its proper name (with version) after linking.
10850 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'
10851
10852 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10853 hardcode_libdir_separator_CXX=:
10854
10855 # Archives containing C++ object files must be created using
10856 # the KAI C++ compiler.
10857 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10858 ;;
10859 RCC*)
10860 # Rational C++ 2.4.1
10861 # FIXME: insert proper C++ library support
10862 ld_shlibs_CXX=no
10863 ;;
10864 cxx*)
10865 allow_undefined_flag_CXX=' -expect_unresolved \*'
10866 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'
10867 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10868 echo "-hidden">> $lib.exp~
10869 $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~
10870 $rm $lib.exp'
10871
10872 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10873 hardcode_libdir_separator_CXX=:
10874
10875 # Commands to make compiler produce verbose output that lists
10876 # what "hidden" libraries, object files and flags are used when
10877 # linking a shared library.
10878 #
10879 # There doesn't appear to be a way to prevent this compiler from
10880 # explicitly linking system object files so we need to strip them
10881 # from the output so that they don't get included in the library
10882 # dependencies.
10883 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'
10884 ;;
10885 *)
10886 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10887 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10888 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'
10889
10890 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10891 hardcode_libdir_separator_CXX=:
10892
10893 # Commands to make compiler produce verbose output that lists
10894 # what "hidden" libraries, object files and flags are used when
10895 # linking a shared library.
10896 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10897
10898 else
10899 # FIXME: insert proper C++ library support
10900 ld_shlibs_CXX=no
10901 fi
10902 ;;
10903 esac
10904 ;;
10905 psos*)
10906 # FIXME: insert proper C++ library support
10907 ld_shlibs_CXX=no
10908 ;;
10909 sunos4*)
10910 case $cc_basename in
10911 CC*)
10912 # Sun C++ 4.x
10913 # FIXME: insert proper C++ library support
10914 ld_shlibs_CXX=no
10915 ;;
10916 lcc*)
10917 # Lucid
10918 # FIXME: insert proper C++ library support
10919 ld_shlibs_CXX=no
10920 ;;
10921 *)
10922 # FIXME: insert proper C++ library support
10923 ld_shlibs_CXX=no
10924 ;;
10925 esac
10926 ;;
10927 solaris*)
10928 case $cc_basename in
10929 CC*)
10930 # Sun C++ 4.2, 5.x and Centerline C++
10931 archive_cmds_need_lc_CXX=yes
10932 no_undefined_flag_CXX=' -zdefs'
10933 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10934 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10935 $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'
10936
10937 hardcode_libdir_flag_spec_CXX='-R$libdir'
10938 hardcode_shlibpath_var_CXX=no
10939 case $host_os in
10940 solaris2.[0-5] | solaris2.[0-5].*) ;;
10941 *)
10942 # The C++ compiler is used as linker so we must use $wl
10943 # flag to pass the commands to the underlying system
10944 # linker. We must also pass each convience library through
10945 # to the system linker between allextract/defaultextract.
10946 # The C++ compiler will combine linker options so we
10947 # cannot just pass the convience library names through
10948 # without $wl.
10949 # Supported since Solaris 2.6 (maybe 2.5.1?)
10950 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'
10951 ;;
10952 esac
10953 link_all_deplibs_CXX=yes
10954
10955 output_verbose_link_cmd='echo'
10956
10957 # Archives containing C++ object files must be created using
10958 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10959 # necessary to make sure instantiated templates are included
10960 # in the archive.
10961 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10962 ;;
10963 gcx*)
10964 # Green Hills C++ Compiler
10965 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10966
10967 # The C++ compiler must be used to create the archive.
10968 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10969 ;;
10970 *)
10971 # GNU C++ compiler with Solaris linker
10972 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10973 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10974 if $CC --version | grep -v '^2\.7' > /dev/null; then
10975 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10976 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10977 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10978
10979 # Commands to make compiler produce verbose output that lists
10980 # what "hidden" libraries, object files and flags are used when
10981 # linking a shared library.
10982 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10983 else
10984 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10985 # platform.
10986 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10987 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10988 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10989
10990 # Commands to make compiler produce verbose output that lists
10991 # what "hidden" libraries, object files and flags are used when
10992 # linking a shared library.
10993 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10994 fi
10995
10996 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10997 fi
10998 ;;
10999 esac
11000 ;;
11001 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11002 no_undefined_flag_CXX='${wl}-z,text'
11003 archive_cmds_need_lc_CXX=no
11004 hardcode_shlibpath_var_CXX=no
11005 runpath_var='LD_RUN_PATH'
11006
11007 case $cc_basename in
11008 CC*)
11009 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11011 ;;
11012 *)
11013 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11015 ;;
11016 esac
11017 ;;
11018 sysv5* | sco3.2v5* | sco5v6*)
11019 # Note: We can NOT use -z defs as we might desire, because we do not
11020 # link with -lc, and that would cause any symbols used from libc to
11021 # always be unresolved, which means just about no library would
11022 # ever link correctly. If we're not using GNU ld we use -z text
11023 # though, which does catch some bad symbols but isn't as heavy-handed
11024 # as -z defs.
11025 # For security reasons, it is highly recommended that you always
11026 # use absolute paths for naming shared libraries, and exclude the
11027 # DT_RUNPATH tag from executables and libraries. But doing so
11028 # requires that you compile everything twice, which is a pain.
11029 # So that behaviour is only enabled if SCOABSPATH is set to a
11030 # non-empty value in the environment. Most likely only useful for
11031 # creating official distributions of packages.
11032 # This is a hack until libtool officially supports absolute path
11033 # names for shared libraries.
11034 no_undefined_flag_CXX='${wl}-z,text'
11035 allow_undefined_flag_CXX='${wl}-z,nodefs'
11036 archive_cmds_need_lc_CXX=no
11037 hardcode_shlibpath_var_CXX=no
11038 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11039 hardcode_libdir_separator_CXX=':'
11040 link_all_deplibs_CXX=yes
11041 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11042 runpath_var='LD_RUN_PATH'
11043
11044 case $cc_basename in
11045 CC*)
11046 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11047 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11048 ;;
11049 *)
11050 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11051 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11052 ;;
11053 esac
11054 ;;
11055 tandem*)
11056 case $cc_basename in
11057 NCC*)
11058 # NonStop-UX NCC 3.20
11059 # FIXME: insert proper C++ library support
11060 ld_shlibs_CXX=no
11061 ;;
11062 *)
11063 # FIXME: insert proper C++ library support
11064 ld_shlibs_CXX=no
11065 ;;
11066 esac
11067 ;;
11068 vxworks*)
11069 # FIXME: insert proper C++ library support
11070 ld_shlibs_CXX=no
11071 ;;
11072 *)
11073 # FIXME: insert proper C++ library support
11074 ld_shlibs_CXX=no
11075 ;;
11076esac
11077{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11078echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11079test "$ld_shlibs_CXX" = no && can_build_shared=no
11080
11081GCC_CXX="$GXX"
11082LD_CXX="$LD"
11083
11084
11085cat > conftest.$ac_ext <<EOF
11086class Foo
11087{
11088public:
11089 Foo (void) { a = 0; }
11090private:
11091 int a;
11092};
11093EOF
11094
11095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096 (eval $ac_compile) 2>&5
11097 ac_status=$?
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; then
11100 # Parse the compiler output and extract the necessary
11101 # objects, libraries and library flags.
11102
11103 # Sentinel used to keep track of whether or not we are before
11104 # the conftest object file.
11105 pre_test_object_deps_done=no
11106
11107 # The `*' in the case matches for architectures that use `case' in
11108 # $output_verbose_cmd can trigger glob expansion during the loop
11109 # eval without this substitution.
11110 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11111
11112 for p in `eval $output_verbose_link_cmd`; do
11113 case $p in
11114
11115 -L* | -R* | -l*)
11116 # Some compilers place space between "-{L,R}" and the path.
11117 # Remove the space.
11118 if test $p = "-L" \
11119 || test $p = "-R"; then
11120 prev=$p
11121 continue
11122 else
11123 prev=
11124 fi
11125
11126 if test "$pre_test_object_deps_done" = no; then
11127 case $p in
11128 -L* | -R*)
11129 # Internal compiler library paths should come after those
11130 # provided the user. The postdeps already come after the
11131 # user supplied libs so there is no need to process them.
11132 if test -z "$compiler_lib_search_path_CXX"; then
11133 compiler_lib_search_path_CXX="${prev}${p}"
11134 else
11135 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11136 fi
11137 ;;
11138 # The "-l" case would never come before the object being
11139 # linked, so don't bother handling this case.
11140 esac
11141 else
11142 if test -z "$postdeps_CXX"; then
11143 postdeps_CXX="${prev}${p}"
11144 else
11145 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11146 fi
11147 fi
11148 ;;
11149
11150 *.$objext)
11151 # This assumes that the test object file only shows up
11152 # once in the compiler output.
11153 if test "$p" = "conftest.$objext"; then
11154 pre_test_object_deps_done=yes
11155 continue
11156 fi
11157
11158 if test "$pre_test_object_deps_done" = no; then
11159 if test -z "$predep_objects_CXX"; then
11160 predep_objects_CXX="$p"
11161 else
11162 predep_objects_CXX="$predep_objects_CXX $p"
11163 fi
11164 else
11165 if test -z "$postdep_objects_CXX"; then
11166 postdep_objects_CXX="$p"
11167 else
11168 postdep_objects_CXX="$postdep_objects_CXX $p"
11169 fi
11170 fi
11171 ;;
11172
11173 *) ;; # Ignore the rest.
11174
11175 esac
11176 done
11177
11178 # Clean up.
11179 rm -f a.out a.exe
11180else
11181 echo "libtool.m4: error: problem compiling CXX test program"
11182fi
11183
11184$rm -f confest.$objext
11185
11186# PORTME: override above test on systems where it is broken
11187case $host_os in
11188interix3*)
11189 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11190 # hack all around it, let's just trust "g++" to DTRT.
11191 predep_objects_CXX=
11192 postdep_objects_CXX=
11193 postdeps_CXX=
11194 ;;
11195
11196solaris*)
11197 case $cc_basename in
11198 CC*)
11199 # Adding this requires a known-good setup of shared libraries for
11200 # Sun compiler versions before 5.6, else PIC objects from an old
11201 # archive will be linked into the output, leading to subtle bugs.
11202 postdeps_CXX='-lCstd -lCrun'
11203 ;;
11204 esac
11205 ;;
11206esac
11207
11208
11209case " $postdeps_CXX " in
11210*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11211esac
11212
11213lt_prog_compiler_wl_CXX=
11214lt_prog_compiler_pic_CXX=
11215lt_prog_compiler_static_CXX=
11216
11217{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11218echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11219
11220 # C++ specific cases for pic, static, wl, etc.
11221 if test "$GXX" = yes; then
11222 lt_prog_compiler_wl_CXX='-Wl,'
11223 lt_prog_compiler_static_CXX='-static'
11224
11225 case $host_os in
11226 aix*)
11227 # All AIX code is PIC.
11228 if test "$host_cpu" = ia64; then
11229 # AIX 5 now supports IA64 processor
11230 lt_prog_compiler_static_CXX='-Bstatic'
11231 fi
11232 ;;
11233 amigaos*)
11234 # FIXME: we need at least 68020 code to build shared libraries, but
11235 # adding the `-m68020' flag to GCC prevents building anything better,
11236 # like `-m68040'.
11237 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11238 ;;
11239 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11240 # PIC is the default for these OSes.
11241 ;;
11242 mingw* | os2* | pw32*)
11243 # This hack is so that the source file can tell whether it is being
11244 # built for inclusion in a dll (and should export symbols for example).
11245 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11246 ;;
11247 darwin* | rhapsody*)
11248 # PIC is the default on this platform
11249 # Common symbols not allowed in MH_DYLIB files
11250 lt_prog_compiler_pic_CXX='-fno-common'
11251 ;;
11252 *djgpp*)
11253 # DJGPP does not support shared libraries at all
11254 lt_prog_compiler_pic_CXX=
11255 ;;
11256 interix3*)
11257 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11258 # Instead, we relocate shared libraries at runtime.
11259 ;;
11260 sysv4*MP*)
11261 if test -d /usr/nec; then
11262 lt_prog_compiler_pic_CXX=-Kconform_pic
11263 fi
11264 ;;
11265 hpux*)
11266 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11267 # not for PA HP-UX.
11268 case $host_cpu in
11269 hppa*64*|ia64*)
11270 ;;
11271 *)
11272 lt_prog_compiler_pic_CXX='-fPIC'
11273 ;;
11274 esac
11275 ;;
11276 *)
11277 lt_prog_compiler_pic_CXX='-fPIC'
11278 ;;
11279 esac
11280 else
11281 case $host_os in
11282 aix4* | aix5*)
11283 # All AIX code is PIC.
11284 if test "$host_cpu" = ia64; then
11285 # AIX 5 now supports IA64 processor
11286 lt_prog_compiler_static_CXX='-Bstatic'
11287 else
11288 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11289 fi
11290 ;;
11291 chorus*)
11292 case $cc_basename in
11293 cxch68*)
11294 # Green Hills C++ Compiler
11295 # _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"
11296 ;;
11297 esac
11298 ;;
11299 darwin*)
11300 # PIC is the default on this platform
11301 # Common symbols not allowed in MH_DYLIB files
11302 case $cc_basename in
11303 xlc*)
11304 lt_prog_compiler_pic_CXX='-qnocommon'
11305 lt_prog_compiler_wl_CXX='-Wl,'
11306 ;;
11307 esac
11308 ;;
11309 dgux*)
11310 case $cc_basename in
11311 ec++*)
11312 lt_prog_compiler_pic_CXX='-KPIC'
11313 ;;
11314 ghcx*)
11315 # Green Hills C++ Compiler
11316 lt_prog_compiler_pic_CXX='-pic'
11317 ;;
11318 *)
11319 ;;
11320 esac
11321 ;;
11322 freebsd* | kfreebsd*-gnu | dragonfly*)
11323 # FreeBSD uses GNU C++
11324 ;;
11325 hpux9* | hpux10* | hpux11*)
11326 case $cc_basename in
11327 CC*)
11328 lt_prog_compiler_wl_CXX='-Wl,'
11329 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11330 if test "$host_cpu" != ia64; then
11331 lt_prog_compiler_pic_CXX='+Z'
11332 fi
11333 ;;
11334 aCC*)
11335 lt_prog_compiler_wl_CXX='-Wl,'
11336 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11337 case $host_cpu in
11338 hppa*64*|ia64*)
11339 # +Z the default
11340 ;;
11341 *)
11342 lt_prog_compiler_pic_CXX='+Z'
11343 ;;
11344 esac
11345 ;;
11346 *)
11347 ;;
11348 esac
11349 ;;
11350 interix*)
11351 # This is c89, which is MS Visual C++ (no shared libs)
11352 # Anyone wants to do a port?
11353 ;;
11354 irix5* | irix6* | nonstopux*)
11355 case $cc_basename in
11356 CC*)
11357 lt_prog_compiler_wl_CXX='-Wl,'
11358 lt_prog_compiler_static_CXX='-non_shared'
11359 # CC pic flag -KPIC is the default.
11360 ;;
11361 *)
11362 ;;
11363 esac
11364 ;;
11365 linux*)
11366 case $cc_basename in
11367 KCC*)
11368 # KAI C++ Compiler
11369 lt_prog_compiler_wl_CXX='--backend -Wl,'
11370 lt_prog_compiler_pic_CXX='-fPIC'
11371 ;;
11372 icpc* | ecpc*)
11373 # Intel C++
11374 lt_prog_compiler_wl_CXX='-Wl,'
11375 lt_prog_compiler_pic_CXX='-KPIC'
11376 lt_prog_compiler_static_CXX='-static'
11377 ;;
11378 pgCC*)
11379 # Portland Group C++ compiler.
11380 lt_prog_compiler_wl_CXX='-Wl,'
11381 lt_prog_compiler_pic_CXX='-fpic'
11382 lt_prog_compiler_static_CXX='-Bstatic'
11383 ;;
11384 cxx*)
11385 # Compaq C++
11386 # Make sure the PIC flag is empty. It appears that all Alpha
11387 # Linux and Compaq Tru64 Unix objects are PIC.
11388 lt_prog_compiler_pic_CXX=
11389 lt_prog_compiler_static_CXX='-non_shared'
11390 ;;
11391 *)
11392 ;;
11393 esac
11394 ;;
11395 lynxos*)
11396 ;;
11397 m88k*)
11398 ;;
11399 mvs*)
11400 case $cc_basename in
11401 cxx*)
11402 lt_prog_compiler_pic_CXX='-W c,exportall'
11403 ;;
11404 *)
11405 ;;
11406 esac
11407 ;;
11408 netbsd*)
11409 ;;
11410 osf3* | osf4* | osf5*)
11411 case $cc_basename in
11412 KCC*)
11413 lt_prog_compiler_wl_CXX='--backend -Wl,'
11414 ;;
11415 RCC*)
11416 # Rational C++ 2.4.1
11417 lt_prog_compiler_pic_CXX='-pic'
11418 ;;
11419 cxx*)
11420 # Digital/Compaq C++
11421 lt_prog_compiler_wl_CXX='-Wl,'
11422 # Make sure the PIC flag is empty. It appears that all Alpha
11423 # Linux and Compaq Tru64 Unix objects are PIC.
11424 lt_prog_compiler_pic_CXX=
11425 lt_prog_compiler_static_CXX='-non_shared'
11426 ;;
11427 *)
11428 ;;
11429 esac
11430 ;;
11431 psos*)
11432 ;;
11433 solaris*)
11434 case $cc_basename in
11435 CC*)
11436 # Sun C++ 4.2, 5.x and Centerline C++
11437 lt_prog_compiler_pic_CXX='-KPIC'
11438 lt_prog_compiler_static_CXX='-Bstatic'
11439 lt_prog_compiler_wl_CXX='-Qoption ld '
11440 ;;
11441 gcx*)
11442 # Green Hills C++ Compiler
11443 lt_prog_compiler_pic_CXX='-PIC'
11444 ;;
11445 *)
11446 ;;
11447 esac
11448 ;;
11449 sunos4*)
11450 case $cc_basename in
11451 CC*)
11452 # Sun C++ 4.x
11453 lt_prog_compiler_pic_CXX='-pic'
11454 lt_prog_compiler_static_CXX='-Bstatic'
11455 ;;
11456 lcc*)
11457 # Lucid
11458 lt_prog_compiler_pic_CXX='-pic'
11459 ;;
11460 *)
11461 ;;
11462 esac
11463 ;;
11464 tandem*)
11465 case $cc_basename in
11466 NCC*)
11467 # NonStop-UX NCC 3.20
11468 lt_prog_compiler_pic_CXX='-KPIC'
11469 ;;
11470 *)
11471 ;;
11472 esac
11473 ;;
11474 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11475 case $cc_basename in
11476 CC*)
11477 lt_prog_compiler_wl_CXX='-Wl,'
11478 lt_prog_compiler_pic_CXX='-KPIC'
11479 lt_prog_compiler_static_CXX='-Bstatic'
11480 ;;
11481 esac
11482 ;;
11483 vxworks*)
11484 ;;
11485 *)
11486 lt_prog_compiler_can_build_shared_CXX=no
11487 ;;
11488 esac
11489 fi
11490
11491{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11492echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11493
11494#
11495# Check to make sure the PIC flag actually works.
11496#
11497if test -n "$lt_prog_compiler_pic_CXX"; then
11498
11499{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11500echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11501if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11503else
11504 lt_prog_compiler_pic_works_CXX=no
11505 ac_outfile=conftest.$ac_objext
11506 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11507 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11508 # Insert the option either (1) after the last *FLAGS variable, or
11509 # (2) before a word containing "conftest.", or (3) at the end.
11510 # Note that $ac_compile itself does not contain backslashes and begins
11511 # with a dollar sign (not a hyphen), so the echo should work correctly.
11512 # The option is referenced via a variable to avoid confusing sed.
11513 lt_compile=`echo "$ac_compile" | $SED \
11514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11516 -e 's:$: $lt_compiler_flag:'`
11517 (eval echo "\"\$as_me:11517: $lt_compile\"" >&5)
11518 (eval "$lt_compile" 2>conftest.err)
11519 ac_status=$?
11520 cat conftest.err >&5
11521 echo "$as_me:11521: \$? = $ac_status" >&5
11522 if (exit $ac_status) && test -s "$ac_outfile"; then
11523 # The compiler can only warn and ignore the option if not recognized
11524 # So say no if there are warnings other than the usual output.
11525 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11527 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11528 lt_prog_compiler_pic_works_CXX=yes
11529 fi
11530 fi
11531 $rm conftest*
11532
11533fi
11534{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11535echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11536
11537if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11538 case $lt_prog_compiler_pic_CXX in
11539 "" | " "*) ;;
11540 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11541 esac
11542else
11543 lt_prog_compiler_pic_CXX=
11544 lt_prog_compiler_can_build_shared_CXX=no
11545fi
11546
11547fi
11548case $host_os in
11549 # For platforms which do not support PIC, -DPIC is meaningless:
11550 *djgpp*)
11551 lt_prog_compiler_pic_CXX=
11552 ;;
11553 *)
11554 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11555 ;;
11556esac
11557
11558#
11559# Check to make sure the static flag actually works.
11560#
11561wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11562{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11563echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11564if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566else
11567 lt_prog_compiler_static_works_CXX=no
11568 save_LDFLAGS="$LDFLAGS"
11569 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11570 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11571 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11572 # The linker can only warn and ignore the option if not recognized
11573 # So say no if there are warnings
11574 if test -s conftest.err; then
11575 # Append any errors to the config.log.
11576 cat conftest.err 1>&5
11577 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11579 if diff conftest.exp conftest.er2 >/dev/null; then
11580 lt_prog_compiler_static_works_CXX=yes
11581 fi
11582 else
11583 lt_prog_compiler_static_works_CXX=yes
11584 fi
11585 fi
11586 $rm conftest*
11587 LDFLAGS="$save_LDFLAGS"
11588
11589fi
11590{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11591echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11592
11593if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11594 :
11595else
11596 lt_prog_compiler_static_CXX=
11597fi
11598
11599
11600{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11601echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11602if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604else
11605 lt_cv_prog_compiler_c_o_CXX=no
11606 $rm -r conftest 2>/dev/null
11607 mkdir conftest
11608 cd conftest
11609 mkdir out
11610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11611
11612 lt_compiler_flag="-o out/conftest2.$ac_objext"
11613 # Insert the option either (1) after the last *FLAGS variable, or
11614 # (2) before a word containing "conftest.", or (3) at the end.
11615 # Note that $ac_compile itself does not contain backslashes and begins
11616 # with a dollar sign (not a hyphen), so the echo should work correctly.
11617 lt_compile=`echo "$ac_compile" | $SED \
11618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11620 -e 's:$: $lt_compiler_flag:'`
11621 (eval echo "\"\$as_me:11621: $lt_compile\"" >&5)
11622 (eval "$lt_compile" 2>out/conftest.err)
11623 ac_status=$?
11624 cat out/conftest.err >&5
11625 echo "$as_me:11625: \$? = $ac_status" >&5
11626 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11627 then
11628 # The compiler can only warn and ignore the option if not recognized
11629 # So say no if there are warnings
11630 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11631 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11632 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11633 lt_cv_prog_compiler_c_o_CXX=yes
11634 fi
11635 fi
11636 chmod u+w . 2>&5
11637 $rm conftest*
11638 # SGI C++ compiler will create directory out/ii_files/ for
11639 # template instantiation
11640 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11641 $rm out/* && rmdir out
11642 cd ..
11643 rmdir conftest
11644 $rm conftest*
11645
11646fi
11647{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11648echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11649
11650
11651hard_links="nottested"
11652if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11653 # do not overwrite the value of need_locks provided by the user
11654 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11655echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11656 hard_links=yes
11657 $rm conftest*
11658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11659 touch conftest.a
11660 ln conftest.a conftest.b 2>&5 || hard_links=no
11661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11662 { echo "$as_me:$LINENO: result: $hard_links" >&5
11663echo "${ECHO_T}$hard_links" >&6; }
11664 if test "$hard_links" = no; then
11665 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11666echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11667 need_locks=warn
11668 fi
11669else
11670 need_locks=no
11671fi
11672
11673{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11674echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11675
11676 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11677 case $host_os in
11678 aix4* | aix5*)
11679 # If we're using GNU nm, then we don't want the "-C" option.
11680 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11681 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11682 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'
11683 else
11684 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'
11685 fi
11686 ;;
11687 pw32*)
11688 export_symbols_cmds_CXX="$ltdll_cmds"
11689 ;;
11690 cygwin* | mingw*)
11691 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'
11692 ;;
11693 *)
11694 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11695 ;;
11696 esac
11697
11698{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11699echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11700test "$ld_shlibs_CXX" = no && can_build_shared=no
11701
11702#
11703# Do we need to explicitly link libc?
11704#
11705case "x$archive_cmds_need_lc_CXX" in
11706x|xyes)
11707 # Assume -lc should be added
11708 archive_cmds_need_lc_CXX=yes
11709
11710 if test "$enable_shared" = yes && test "$GCC" = yes; then
11711 case $archive_cmds_CXX in
11712 *'~'*)
11713 # FIXME: we may have to deal with multi-command sequences.
11714 ;;
11715 '$CC '*)
11716 # Test whether the compiler implicitly links with -lc since on some
11717 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11718 # to ld, don't add -lc before -lgcc.
11719 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11720echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11721 $rm conftest*
11722 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11723
11724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725 (eval $ac_compile) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } 2>conftest.err; then
11729 soname=conftest
11730 lib=conftest
11731 libobjs=conftest.$ac_objext
11732 deplibs=
11733 wl=$lt_prog_compiler_wl_CXX
11734 pic_flag=$lt_prog_compiler_pic_CXX
11735 compiler_flags=-v
11736 linker_flags=-v
11737 verstring=
11738 output_objdir=.
11739 libname=conftest
11740 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11741 allow_undefined_flag_CXX=
11742 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11743 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }
11747 then
11748 archive_cmds_need_lc_CXX=no
11749 else
11750 archive_cmds_need_lc_CXX=yes
11751 fi
11752 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11753 else
11754 cat conftest.err 1>&5
11755 fi
11756 $rm conftest*
11757 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11758echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11759 ;;
11760 esac
11761 fi
11762 ;;
11763esac
11764
11765{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11766echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11767library_names_spec=
11768libname_spec='lib$name'
11769soname_spec=
11770shrext_cmds=".so"
11771postinstall_cmds=
11772postuninstall_cmds=
11773finish_cmds=
11774finish_eval=
11775shlibpath_var=
11776shlibpath_overrides_runpath=unknown
11777version_type=none
11778dynamic_linker="$host_os ld.so"
11779sys_lib_dlsearch_path_spec="/lib /usr/lib"
11780if test "$GCC" = yes; then
11781 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11782 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11783 # if the path contains ";" then we assume it to be the separator
11784 # otherwise default to the standard path separator (i.e. ":") - it is
11785 # assumed that no part of a normal pathname contains ";" but that should
11786 # okay in the real world where ";" in dirpaths is itself problematic.
11787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11788 else
11789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11790 fi
11791else
11792 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11793fi
11794need_lib_prefix=unknown
11795hardcode_into_libs=no
11796
11797# when you set need_version to no, make sure it does not cause -set_version
11798# flags to be left without arguments
11799need_version=unknown
11800
11801case $host_os in
11802aix3*)
11803 version_type=linux
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11805 shlibpath_var=LIBPATH
11806
11807 # AIX 3 has no versioning support, so we append a major version to the name.
11808 soname_spec='${libname}${release}${shared_ext}$major'
11809 ;;
11810
11811aix4* | aix5*)
11812 version_type=linux
11813 need_lib_prefix=no
11814 need_version=no
11815 hardcode_into_libs=yes
11816 if test "$host_cpu" = ia64; then
11817 # AIX 5 supports IA64
11818 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 else
11821 # With GCC up to 2.95.x, collect2 would create an import file
11822 # for dependence libraries. The import file would start with
11823 # the line `#! .'. This would cause the generated library to
11824 # depend on `.', always an invalid library. This was fixed in
11825 # development snapshots of GCC prior to 3.0.
11826 case $host_os in
11827 aix4 | aix4.[01] | aix4.[01].*)
11828 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11829 echo ' yes '
11830 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11831 :
11832 else
11833 can_build_shared=no
11834 fi
11835 ;;
11836 esac
11837 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11838 # soname into executable. Probably we can add versioning support to
11839 # collect2, so additional links can be useful in future.
11840 if test "$aix_use_runtimelinking" = yes; then
11841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11842 # instead of lib<name>.a to let people know that these are not
11843 # typical AIX shared libraries.
11844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11845 else
11846 # We preserve .a as extension for shared libraries through AIX4.2
11847 # and later when we are not doing run time linking.
11848 library_names_spec='${libname}${release}.a $libname.a'
11849 soname_spec='${libname}${release}${shared_ext}$major'
11850 fi
11851 shlibpath_var=LIBPATH
11852 fi
11853 ;;
11854
11855amigaos*)
11856 library_names_spec='$libname.ixlibrary $libname.a'
11857 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11858 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'
11859 ;;
11860
11861beos*)
11862 library_names_spec='${libname}${shared_ext}'
11863 dynamic_linker="$host_os ld.so"
11864 shlibpath_var=LIBRARY_PATH
11865 ;;
11866
11867bsdi[45]*)
11868 version_type=linux
11869 need_version=no
11870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11871 soname_spec='${libname}${release}${shared_ext}$major'
11872 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11873 shlibpath_var=LD_LIBRARY_PATH
11874 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11875 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11876 # the default ld.so.conf also contains /usr/contrib/lib and
11877 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11878 # libtool to hard-code these into programs
11879 ;;
11880
11881cygwin* | mingw* | pw32*)
11882 version_type=windows
11883 shrext_cmds=".dll"
11884 need_version=no
11885 need_lib_prefix=no
11886
11887 case $GCC,$host_os in
11888 yes,cygwin* | yes,mingw* | yes,pw32*)
11889 library_names_spec='$libname.dll.a'
11890 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11891 postinstall_cmds='base_file=`basename \${file}`~
11892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11893 dldir=$destdir/`dirname \$dlpath`~
11894 test -d \$dldir || mkdir -p \$dldir~
11895 $install_prog $dir/$dlname \$dldir/$dlname~
11896 chmod a+x \$dldir/$dlname'
11897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11898 dlpath=$dir/\$dldll~
11899 $rm \$dlpath'
11900 shlibpath_overrides_runpath=yes
11901
11902 case $host_os in
11903 cygwin*)
11904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11905 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11906 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11907 ;;
11908 mingw*)
11909 # MinGW DLLs use traditional 'lib' prefix
11910 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11911 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11912 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11913 # It is most probably a Windows format PATH printed by
11914 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11915 # path with ; separators, and with drive letters. We can handle the
11916 # drive letters (cygwin fileutils understands them), so leave them,
11917 # especially as we might pass files found there to a mingw objdump,
11918 # which wouldn't understand a cygwinified path. Ahh.
11919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11920 else
11921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11922 fi
11923 ;;
11924 pw32*)
11925 # pw32 DLLs use 'pw' prefix rather than 'lib'
11926 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11927 ;;
11928 esac
11929 ;;
11930
11931 linux*)
11932 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11934 supports_anon_versioning=no
11935 case `$LD -v 2>/dev/null` in
11936 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11937 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11938 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11939 *\ 2.11.*) ;; # other 2.11 versions
11940 *) supports_anon_versioning=yes ;;
11941 esac
11942 if test $supports_anon_versioning = yes; then
11943 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11944cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11945$echo "local: *; };" >> $output_objdir/$libname.ver~
11946 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11947 else
11948 $archive_expsym_cmds="$archive_cmds"
11949 fi
11950 else
11951 ld_shlibs=no
11952 fi
11953 ;;
11954
11955 *)
11956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11957 ;;
11958 esac
11959 dynamic_linker='Win32 ld.exe'
11960 # FIXME: first we should search . and the directory the executable is in
11961 shlibpath_var=PATH
11962 ;;
11963
11964darwin* | rhapsody*)
11965 dynamic_linker="$host_os dyld"
11966 version_type=darwin
11967 need_lib_prefix=no
11968 need_version=no
11969 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11970 soname_spec='${libname}${release}${major}$shared_ext'
11971 shlibpath_overrides_runpath=yes
11972 shlibpath_var=DYLD_LIBRARY_PATH
11973 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11974 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11975 if test "$GCC" = yes; then
11976 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"`
11977 else
11978 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11979 fi
11980 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11981 ;;
11982
11983dgux*)
11984 version_type=linux
11985 need_lib_prefix=no
11986 need_version=no
11987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11988 soname_spec='${libname}${release}${shared_ext}$major'
11989 shlibpath_var=LD_LIBRARY_PATH
11990 ;;
11991
11992freebsd1*)
11993 dynamic_linker=no
11994 ;;
11995
11996kfreebsd*-gnu)
11997 version_type=linux
11998 need_lib_prefix=no
11999 need_version=no
12000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12001 soname_spec='${libname}${release}${shared_ext}$major'
12002 shlibpath_var=LD_LIBRARY_PATH
12003 shlibpath_overrides_runpath=no
12004 hardcode_into_libs=yes
12005 dynamic_linker='GNU ld.so'
12006 ;;
12007
12008freebsd* | dragonfly*)
12009 # DragonFly does not have aout. When/if they implement a new
12010 # versioning mechanism, adjust this.
12011 if test -x /usr/bin/objformat; then
12012 objformat=`/usr/bin/objformat`
12013 else
12014 case $host_os in
12015 freebsd[123]*) objformat=aout ;;
12016 *) objformat=elf ;;
12017 esac
12018 fi
12019 # Handle Gentoo/FreeBSD as it was Linux
12020 case $host_vendor in
12021 gentoo)
12022 version_type=linux ;;
12023 *)
12024 version_type=freebsd-$objformat ;;
12025 esac
12026
12027 case $version_type in
12028 freebsd-elf*)
12029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12030 need_version=no
12031 need_lib_prefix=no
12032 ;;
12033 freebsd-*)
12034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12035 need_version=yes
12036 ;;
12037 linux)
12038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12039 soname_spec='${libname}${release}${shared_ext}$major'
12040 need_lib_prefix=no
12041 need_version=no
12042 ;;
12043 esac
12044 shlibpath_var=LD_LIBRARY_PATH
12045 case $host_os in
12046 freebsd2*)
12047 shlibpath_overrides_runpath=yes
12048 ;;
12049 freebsd3.[01]* | freebsdelf3.[01]*)
12050 shlibpath_overrides_runpath=yes
12051 hardcode_into_libs=yes
12052 ;;
12053 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12054 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12055 shlibpath_overrides_runpath=no
12056 hardcode_into_libs=yes
12057 ;;
12058 freebsd*) # from 4.6 on
12059 shlibpath_overrides_runpath=yes
12060 hardcode_into_libs=yes
12061 ;;
12062 esac
12063 ;;
12064
12065gnu*)
12066 version_type=linux
12067 need_lib_prefix=no
12068 need_version=no
12069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12070 soname_spec='${libname}${release}${shared_ext}$major'
12071 shlibpath_var=LD_LIBRARY_PATH
12072 hardcode_into_libs=yes
12073 ;;
12074
12075hpux9* | hpux10* | hpux11*)
12076 # Give a soname corresponding to the major version so that dld.sl refuses to
12077 # link against other versions.
12078 version_type=sunos
12079 need_lib_prefix=no
12080 need_version=no
12081 case $host_cpu in
12082 ia64*)
12083 shrext_cmds='.so'
12084 hardcode_into_libs=yes
12085 dynamic_linker="$host_os dld.so"
12086 shlibpath_var=LD_LIBRARY_PATH
12087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12089 soname_spec='${libname}${release}${shared_ext}$major'
12090 if test "X$HPUX_IA64_MODE" = X32; then
12091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12092 else
12093 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12094 fi
12095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12096 ;;
12097 hppa*64*)
12098 shrext_cmds='.sl'
12099 hardcode_into_libs=yes
12100 dynamic_linker="$host_os dld.sl"
12101 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12104 soname_spec='${libname}${release}${shared_ext}$major'
12105 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12107 ;;
12108 *)
12109 shrext_cmds='.sl'
12110 dynamic_linker="$host_os dld.sl"
12111 shlibpath_var=SHLIB_PATH
12112 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12114 soname_spec='${libname}${release}${shared_ext}$major'
12115 ;;
12116 esac
12117 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12118 postinstall_cmds='chmod 555 $lib'
12119 ;;
12120
12121interix3*)
12122 version_type=linux
12123 need_lib_prefix=no
12124 need_version=no
12125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12126 soname_spec='${libname}${release}${shared_ext}$major'
12127 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12128 shlibpath_var=LD_LIBRARY_PATH
12129 shlibpath_overrides_runpath=no
12130 hardcode_into_libs=yes
12131 ;;
12132
12133irix5* | irix6* | nonstopux*)
12134 case $host_os in
12135 nonstopux*) version_type=nonstopux ;;
12136 *)
12137 if test "$lt_cv_prog_gnu_ld" = yes; then
12138 version_type=linux
12139 else
12140 version_type=irix
12141 fi ;;
12142 esac
12143 need_lib_prefix=no
12144 need_version=no
12145 soname_spec='${libname}${release}${shared_ext}$major'
12146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12147 case $host_os in
12148 irix5* | nonstopux*)
12149 libsuff= shlibsuff=
12150 ;;
12151 *)
12152 case $LD in # libtool.m4 will add one of these switches to LD
12153 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12154 libsuff= shlibsuff= libmagic=32-bit;;
12155 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12156 libsuff=32 shlibsuff=N32 libmagic=N32;;
12157 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12158 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12159 *) libsuff= shlibsuff= libmagic=never-match;;
12160 esac
12161 ;;
12162 esac
12163 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12164 shlibpath_overrides_runpath=no
12165 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12166 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12167 hardcode_into_libs=yes
12168 ;;
12169
12170# No shared lib support for Linux oldld, aout, or coff.
12171linux*oldld* | linux*aout* | linux*coff*)
12172 dynamic_linker=no
12173 ;;
12174
12175# This must be Linux ELF.
12176linux*)
12177 version_type=linux
12178 need_lib_prefix=no
12179 need_version=no
12180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12181 soname_spec='${libname}${release}${shared_ext}$major'
12182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12183 shlibpath_var=LD_LIBRARY_PATH
12184 shlibpath_overrides_runpath=no
12185 # This implies no fast_install, which is unacceptable.
12186 # Some rework will be needed to allow for fast_install
12187 # before this can be enabled.
12188 hardcode_into_libs=yes
12189
12190 # Append ld.so.conf contents to the search path
12191 if test -f /etc/ld.so.conf; then
12192 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12193 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12194 fi
12195
12196 # We used to test for /lib/ld.so.1 and disable shared libraries on
12197 # powerpc, because MkLinux only supported shared libraries with the
12198 # GNU dynamic linker. Since this was broken with cross compilers,
12199 # most powerpc-linux boxes support dynamic linking these days and
12200 # people can always --disable-shared, the test was removed, and we
12201 # assume the GNU/Linux dynamic linker is in use.
12202 dynamic_linker='GNU/Linux ld.so'
12203 ;;
12204
12205knetbsd*-gnu)
12206 version_type=linux
12207 need_lib_prefix=no
12208 need_version=no
12209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12210 soname_spec='${libname}${release}${shared_ext}$major'
12211 shlibpath_var=LD_LIBRARY_PATH
12212 shlibpath_overrides_runpath=no
12213 hardcode_into_libs=yes
12214 dynamic_linker='GNU ld.so'
12215 ;;
12216
12217netbsd*)
12218 version_type=sunos
12219 need_lib_prefix=no
12220 need_version=no
12221 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12224 dynamic_linker='NetBSD (a.out) ld.so'
12225 else
12226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12227 soname_spec='${libname}${release}${shared_ext}$major'
12228 dynamic_linker='NetBSD ld.elf_so'
12229 fi
12230 shlibpath_var=LD_LIBRARY_PATH
12231 shlibpath_overrides_runpath=yes
12232 hardcode_into_libs=yes
12233 ;;
12234
12235newsos6)
12236 version_type=linux
12237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12238 shlibpath_var=LD_LIBRARY_PATH
12239 shlibpath_overrides_runpath=yes
12240 ;;
12241
12242nto-qnx*)
12243 version_type=linux
12244 need_lib_prefix=no
12245 need_version=no
12246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12247 soname_spec='${libname}${release}${shared_ext}$major'
12248 shlibpath_var=LD_LIBRARY_PATH
12249 shlibpath_overrides_runpath=yes
12250 ;;
12251
12252openbsd*)
12253 version_type=sunos
12254 sys_lib_dlsearch_path_spec="/usr/lib"
12255 need_lib_prefix=no
12256 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12257 case $host_os in
12258 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12259 *) need_version=no ;;
12260 esac
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12263 shlibpath_var=LD_LIBRARY_PATH
12264 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12265 case $host_os in
12266 openbsd2.[89] | openbsd2.[89].*)
12267 shlibpath_overrides_runpath=no
12268 ;;
12269 *)
12270 shlibpath_overrides_runpath=yes
12271 ;;
12272 esac
12273 else
12274 shlibpath_overrides_runpath=yes
12275 fi
12276 ;;
12277
12278os2*)
12279 libname_spec='$name'
12280 shrext_cmds=".dll"
12281 need_lib_prefix=no
12282 library_names_spec='$libname${shared_ext} $libname.a'
12283 dynamic_linker='OS/2 ld.exe'
12284 shlibpath_var=LIBPATH
12285 ;;
12286
12287osf3* | osf4* | osf5*)
12288 version_type=osf
12289 need_lib_prefix=no
12290 need_version=no
12291 soname_spec='${libname}${release}${shared_ext}$major'
12292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12293 shlibpath_var=LD_LIBRARY_PATH
12294 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12295 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12296 ;;
12297
12298solaris*)
12299 version_type=linux
12300 need_lib_prefix=no
12301 need_version=no
12302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12303 soname_spec='${libname}${release}${shared_ext}$major'
12304 shlibpath_var=LD_LIBRARY_PATH
12305 shlibpath_overrides_runpath=yes
12306 hardcode_into_libs=yes
12307 # ldd complains unless libraries are executable
12308 postinstall_cmds='chmod +x $lib'
12309 ;;
12310
12311sunos4*)
12312 version_type=sunos
12313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12315 shlibpath_var=LD_LIBRARY_PATH
12316 shlibpath_overrides_runpath=yes
12317 if test "$with_gnu_ld" = yes; then
12318 need_lib_prefix=no
12319 fi
12320 need_version=yes
12321 ;;
12322
12323sysv4 | sysv4.3*)
12324 version_type=linux
12325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12326 soname_spec='${libname}${release}${shared_ext}$major'
12327 shlibpath_var=LD_LIBRARY_PATH
12328 case $host_vendor in
12329 sni)
12330 shlibpath_overrides_runpath=no
12331 need_lib_prefix=no
12332 export_dynamic_flag_spec='${wl}-Blargedynsym'
12333 runpath_var=LD_RUN_PATH
12334 ;;
12335 siemens)
12336 need_lib_prefix=no
12337 ;;
12338 motorola)
12339 need_lib_prefix=no
12340 need_version=no
12341 shlibpath_overrides_runpath=no
12342 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12343 ;;
12344 esac
12345 ;;
12346
12347sysv4*MP*)
12348 if test -d /usr/nec ;then
12349 version_type=linux
12350 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12351 soname_spec='$libname${shared_ext}.$major'
12352 shlibpath_var=LD_LIBRARY_PATH
12353 fi
12354 ;;
12355
12356sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12357 version_type=freebsd-elf
12358 need_lib_prefix=no
12359 need_version=no
12360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12361 soname_spec='${libname}${release}${shared_ext}$major'
12362 shlibpath_var=LD_LIBRARY_PATH
12363 hardcode_into_libs=yes
12364 if test "$with_gnu_ld" = yes; then
12365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12366 shlibpath_overrides_runpath=no
12367 else
12368 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12369 shlibpath_overrides_runpath=yes
12370 case $host_os in
12371 sco3.2v5*)
12372 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12373 ;;
12374 esac
12375 fi
12376 sys_lib_dlsearch_path_spec='/usr/lib'
12377 ;;
12378
12379uts4*)
12380 version_type=linux
12381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12382 soname_spec='${libname}${release}${shared_ext}$major'
12383 shlibpath_var=LD_LIBRARY_PATH
12384 ;;
12385
12386*)
12387 dynamic_linker=no
12388 ;;
12389esac
12390{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12391echo "${ECHO_T}$dynamic_linker" >&6; }
12392test "$dynamic_linker" = no && can_build_shared=no
12393
12394variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12395if test "$GCC" = yes; then
12396 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12397fi
12398
12399{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12400echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12401hardcode_action_CXX=
12402if test -n "$hardcode_libdir_flag_spec_CXX" || \
12403 test -n "$runpath_var_CXX" || \
12404 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12405
12406 # We can hardcode non-existant directories.
12407 if test "$hardcode_direct_CXX" != no &&
12408 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12409 # have to relink, otherwise we might link with an installed library
12410 # when we should be linking with a yet-to-be-installed one
12411 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12412 test "$hardcode_minus_L_CXX" != no; then
12413 # Linking always hardcodes the temporary library directory.
12414 hardcode_action_CXX=relink
12415 else
12416 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12417 hardcode_action_CXX=immediate
12418 fi
12419else
12420 # We cannot hardcode anything, or else we can only hardcode existing
12421 # directories.
12422 hardcode_action_CXX=unsupported
12423fi
12424{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12425echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12426
12427if test "$hardcode_action_CXX" = relink; then
12428 # Fast installation is not supported
12429 enable_fast_install=no
12430elif test "$shlibpath_overrides_runpath" = yes ||
12431 test "$enable_shared" = no; then
12432 # Fast installation is not necessary
12433 enable_fast_install=needless
12434fi
12435
12436
12437# The else clause should only fire when bootstrapping the
12438# libtool distribution, otherwise you forgot to ship ltmain.sh
12439# with your package, and you will get complaints that there are
12440# no rules to generate ltmain.sh.
12441if test -f "$ltmain"; then
12442 # See if we are running on zsh, and set the options which allow our commands through
12443 # without removal of \ escapes.
12444 if test -n "${ZSH_VERSION+set}" ; then
12445 setopt NO_GLOB_SUBST
12446 fi
12447 # Now quote all the things that may contain metacharacters while being
12448 # careful not to overquote the AC_SUBSTed values. We take copies of the
12449 # variables and quote the copies for generation of the libtool script.
12450 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12451 SED SHELL STRIP \
12452 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12453 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12454 deplibs_check_method reload_flag reload_cmds need_locks \
12455 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12456 lt_cv_sys_global_symbol_to_c_name_address \
12457 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12458 old_postinstall_cmds old_postuninstall_cmds \
12459 compiler_CXX \
12460 CC_CXX \
12461 LD_CXX \
12462 lt_prog_compiler_wl_CXX \
12463 lt_prog_compiler_pic_CXX \
12464 lt_prog_compiler_static_CXX \
12465 lt_prog_compiler_no_builtin_flag_CXX \
12466 export_dynamic_flag_spec_CXX \
12467 thread_safe_flag_spec_CXX \
12468 whole_archive_flag_spec_CXX \
12469 enable_shared_with_static_runtimes_CXX \
12470 old_archive_cmds_CXX \
12471 old_archive_from_new_cmds_CXX \
12472 predep_objects_CXX \
12473 postdep_objects_CXX \
12474 predeps_CXX \
12475 postdeps_CXX \
12476 compiler_lib_search_path_CXX \
12477 archive_cmds_CXX \
12478 archive_expsym_cmds_CXX \
12479 postinstall_cmds_CXX \
12480 postuninstall_cmds_CXX \
12481 old_archive_from_expsyms_cmds_CXX \
12482 allow_undefined_flag_CXX \
12483 no_undefined_flag_CXX \
12484 export_symbols_cmds_CXX \
12485 hardcode_libdir_flag_spec_CXX \
12486 hardcode_libdir_flag_spec_ld_CXX \
12487 hardcode_libdir_separator_CXX \
12488 hardcode_automatic_CXX \
12489 module_cmds_CXX \
12490 module_expsym_cmds_CXX \
12491 lt_cv_prog_compiler_c_o_CXX \
12492 exclude_expsyms_CXX \
12493 include_expsyms_CXX; do
12494
12495 case $var in
12496 old_archive_cmds_CXX | \
12497 old_archive_from_new_cmds_CXX | \
12498 archive_cmds_CXX | \
12499 archive_expsym_cmds_CXX | \
12500 module_cmds_CXX | \
12501 module_expsym_cmds_CXX | \
12502 old_archive_from_expsyms_cmds_CXX | \
12503 export_symbols_cmds_CXX | \
12504 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12505 postinstall_cmds | postuninstall_cmds | \
12506 old_postinstall_cmds | old_postuninstall_cmds | \
12507 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12508 # Double-quote double-evaled strings.
12509 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12510 ;;
12511 *)
12512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12513 ;;
12514 esac
12515 done
12516
12517 case $lt_echo in
12518 *'\$0 --fallback-echo"')
12519 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12520 ;;
12521 esac
12522
12523cfgfile="$ofile"
12524
12525 cat <<__EOF__ >> "$cfgfile"
12526# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12527
12528# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12529
12530# Shell to use when invoking shell scripts.
12531SHELL=$lt_SHELL
12532
12533# Whether or not to build shared libraries.
12534build_libtool_libs=$enable_shared
12535
12536# Whether or not to build static libraries.
12537build_old_libs=$enable_static
12538
12539# Whether or not to add -lc for building shared libraries.
12540build_libtool_need_lc=$archive_cmds_need_lc_CXX
12541
12542# Whether or not to disallow shared libs when runtime libs are static
12543allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12544
12545# Whether or not to optimize for fast installation.
12546fast_install=$enable_fast_install
12547
12548# The host system.
12549host_alias=$host_alias
12550host=$host
12551host_os=$host_os
12552
12553# The build system.
12554build_alias=$build_alias
12555build=$build
12556build_os=$build_os
12557
12558# An echo program that does not interpret backslashes.
12559echo=$lt_echo
12560
12561# The archiver.
12562AR=$lt_AR
12563AR_FLAGS=$lt_AR_FLAGS
12564
12565# A C compiler.
12566LTCC=$lt_LTCC
12567
12568# LTCC compiler flags.
12569LTCFLAGS=$lt_LTCFLAGS
12570
12571# A language-specific compiler.
12572CC=$lt_compiler_CXX
12573
12574# Is the compiler the GNU C compiler?
12575with_gcc=$GCC_CXX
12576
12577# An ERE matcher.
12578EGREP=$lt_EGREP
12579
12580# The linker used to build libraries.
12581LD=$lt_LD_CXX
12582
12583# Whether we need hard or soft links.
12584LN_S=$lt_LN_S
12585
12586# A BSD-compatible nm program.
12587NM=$lt_NM
12588
12589# A symbol stripping program
12590STRIP=$lt_STRIP
12591
12592# Used to examine libraries when file_magic_cmd begins "file"
12593MAGIC_CMD=$MAGIC_CMD
12594
12595# Used on cygwin: DLL creation program.
12596DLLTOOL="$DLLTOOL"
12597
12598# Used on cygwin: object dumper.
12599OBJDUMP="$OBJDUMP"
12600
12601# Used on cygwin: assembler.
12602AS="$AS"
12603
12604# The name of the directory that contains temporary libtool files.
12605objdir=$objdir
12606
12607# How to create reloadable object files.
12608reload_flag=$lt_reload_flag
12609reload_cmds=$lt_reload_cmds
12610
12611# How to pass a linker flag through the compiler.
12612wl=$lt_lt_prog_compiler_wl_CXX
12613
12614# Object file suffix (normally "o").
12615objext="$ac_objext"
12616
12617# Old archive suffix (normally "a").
12618libext="$libext"
12619
12620# Shared library suffix (normally ".so").
12621shrext_cmds='$shrext_cmds'
12622
12623# Executable file suffix (normally "").
12624exeext="$exeext"
12625
12626# Additional compiler flags for building library objects.
12627pic_flag=$lt_lt_prog_compiler_pic_CXX
12628pic_mode=$pic_mode
12629
12630# What is the maximum length of a command?
12631max_cmd_len=$lt_cv_sys_max_cmd_len
12632
12633# Does compiler simultaneously support -c and -o options?
12634compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12635
12636# Must we lock files when doing compilation?
12637need_locks=$lt_need_locks
12638
12639# Do we need the lib prefix for modules?
12640need_lib_prefix=$need_lib_prefix
12641
12642# Do we need a version for libraries?
12643need_version=$need_version
12644
12645# Whether dlopen is supported.
12646dlopen_support=$enable_dlopen
12647
12648# Whether dlopen of programs is supported.
12649dlopen_self=$enable_dlopen_self
12650
12651# Whether dlopen of statically linked programs is supported.
12652dlopen_self_static=$enable_dlopen_self_static
12653
12654# Compiler flag to prevent dynamic linking.
12655link_static_flag=$lt_lt_prog_compiler_static_CXX
12656
12657# Compiler flag to turn off builtin functions.
12658no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12659
12660# Compiler flag to allow reflexive dlopens.
12661export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12662
12663# Compiler flag to generate shared objects directly from archives.
12664whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12665
12666# Compiler flag to generate thread-safe objects.
12667thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12668
12669# Library versioning type.
12670version_type=$version_type
12671
12672# Format of library name prefix.
12673libname_spec=$lt_libname_spec
12674
12675# List of archive names. First name is the real one, the rest are links.
12676# The last name is the one that the linker finds with -lNAME.
12677library_names_spec=$lt_library_names_spec
12678
12679# The coded name of the library, if different from the real name.
12680soname_spec=$lt_soname_spec
12681
12682# Commands used to build and install an old-style archive.
12683RANLIB=$lt_RANLIB
12684old_archive_cmds=$lt_old_archive_cmds_CXX
12685old_postinstall_cmds=$lt_old_postinstall_cmds
12686old_postuninstall_cmds=$lt_old_postuninstall_cmds
12687
12688# Create an old-style archive from a shared archive.
12689old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12690
12691# Create a temporary old-style archive to link instead of a shared archive.
12692old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12693
12694# Commands used to build and install a shared archive.
12695archive_cmds=$lt_archive_cmds_CXX
12696archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12697postinstall_cmds=$lt_postinstall_cmds
12698postuninstall_cmds=$lt_postuninstall_cmds
12699
12700# Commands used to build a loadable module (assumed same as above if empty)
12701module_cmds=$lt_module_cmds_CXX
12702module_expsym_cmds=$lt_module_expsym_cmds_CXX
12703
12704# Commands to strip libraries.
12705old_striplib=$lt_old_striplib
12706striplib=$lt_striplib
12707
12708# Dependencies to place before the objects being linked to create a
12709# shared library.
12710predep_objects=$lt_predep_objects_CXX
12711
12712# Dependencies to place after the objects being linked to create a
12713# shared library.
12714postdep_objects=$lt_postdep_objects_CXX
12715
12716# Dependencies to place before the objects being linked to create a
12717# shared library.
12718predeps=$lt_predeps_CXX
12719
12720# Dependencies to place after the objects being linked to create a
12721# shared library.
12722postdeps=$lt_postdeps_CXX
12723
12724# The library search path used internally by the compiler when linking
12725# a shared library.
12726compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12727
12728# Method to check whether dependent libraries are shared objects.
12729deplibs_check_method=$lt_deplibs_check_method
12730
12731# Command to use when deplibs_check_method == file_magic.
12732file_magic_cmd=$lt_file_magic_cmd
12733
12734# Flag that allows shared libraries with undefined symbols to be built.
12735allow_undefined_flag=$lt_allow_undefined_flag_CXX
12736
12737# Flag that forces no undefined symbols.
12738no_undefined_flag=$lt_no_undefined_flag_CXX
12739
12740# Commands used to finish a libtool library installation in a directory.
12741finish_cmds=$lt_finish_cmds
12742
12743# Same as above, but a single script fragment to be evaled but not shown.
12744finish_eval=$lt_finish_eval
12745
12746# Take the output of nm and produce a listing of raw symbols and C names.
12747global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12748
12749# Transform the output of nm in a proper C declaration
12750global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12751
12752# Transform the output of nm in a C name address pair
12753global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12754
12755# This is the shared library runtime path variable.
12756runpath_var=$runpath_var
12757
12758# This is the shared library path variable.
12759shlibpath_var=$shlibpath_var
12760
12761# Is shlibpath searched before the hard-coded library search path?
12762shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12763
12764# How to hardcode a shared library path into an executable.
12765hardcode_action=$hardcode_action_CXX
12766
12767# Whether we should hardcode library paths into libraries.
12768hardcode_into_libs=$hardcode_into_libs
12769
12770# Flag to hardcode \$libdir into a binary during linking.
12771# This must work even if \$libdir does not exist.
12772hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12773
12774# If ld is used when linking, flag to hardcode \$libdir into
12775# a binary during linking. This must work even if \$libdir does
12776# not exist.
12777hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12778
12779# Whether we need a single -rpath flag with a separated argument.
12780hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12781
12782# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12783# resulting binary.
12784hardcode_direct=$hardcode_direct_CXX
12785
12786# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12787# resulting binary.
12788hardcode_minus_L=$hardcode_minus_L_CXX
12789
12790# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12791# the resulting binary.
12792hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12793
12794# Set to yes if building a shared library automatically hardcodes DIR into the library
12795# and all subsequent libraries and executables linked against it.
12796hardcode_automatic=$hardcode_automatic_CXX
12797
12798# Variables whose values should be saved in libtool wrapper scripts and
12799# restored at relink time.
12800variables_saved_for_relink="$variables_saved_for_relink"
12801
12802# Whether libtool must link a program against all its dependency libraries.
12803link_all_deplibs=$link_all_deplibs_CXX
12804
12805# Compile-time system search path for libraries
12806sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12807
12808# Run-time system search path for libraries
12809sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12810
12811# Fix the shell variable \$srcfile for the compiler.
12812fix_srcfile_path="$fix_srcfile_path_CXX"
12813
12814# Set to yes if exported symbols are required.
12815always_export_symbols=$always_export_symbols_CXX
12816
12817# The commands to list exported symbols.
12818export_symbols_cmds=$lt_export_symbols_cmds_CXX
12819
12820# The commands to extract the exported symbol list from a shared archive.
12821extract_expsyms_cmds=$lt_extract_expsyms_cmds
12822
12823# Symbols that should not be listed in the preloaded symbols.
12824exclude_expsyms=$lt_exclude_expsyms_CXX
12825
12826# Symbols that must always be exported.
12827include_expsyms=$lt_include_expsyms_CXX
12828
12829# ### END LIBTOOL TAG CONFIG: $tagname
12830
12831__EOF__
12832
12833
12834else
12835 # If there is no Makefile yet, we rely on a make rule to execute
12836 # `config.status --recheck' to rerun these tests and create the
12837 # libtool script then.
12838 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12839 if test -f "$ltmain_in"; then
12840 test -f Makefile && make "$ltmain"
12841 fi
12842fi
12843
12844
12845ac_ext=c
12846ac_cpp='$CPP $CPPFLAGS'
12847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12849ac_compiler_gnu=$ac_cv_c_compiler_gnu
12850
12851CC=$lt_save_CC
12852LDCXX=$LD
12853LD=$lt_save_LD
12854GCC=$lt_save_GCC
12855with_gnu_ldcxx=$with_gnu_ld
12856with_gnu_ld=$lt_save_with_gnu_ld
12857lt_cv_path_LDCXX=$lt_cv_path_LD
12858lt_cv_path_LD=$lt_save_path_LD
12859lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12860lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12861
12862 else
12863 tagname=""
12864 fi
12865 ;;
12866
12867 F77)
12868 if test -n "$F77" && test "X$F77" != "Xno"; then
12869
12870ac_ext=f
12871ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12872ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12873ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12874
12875
12876archive_cmds_need_lc_F77=no
12877allow_undefined_flag_F77=
12878always_export_symbols_F77=no
12879archive_expsym_cmds_F77=
12880export_dynamic_flag_spec_F77=
12881hardcode_direct_F77=no
12882hardcode_libdir_flag_spec_F77=
12883hardcode_libdir_flag_spec_ld_F77=
12884hardcode_libdir_separator_F77=
12885hardcode_minus_L_F77=no
12886hardcode_automatic_F77=no
12887module_cmds_F77=
12888module_expsym_cmds_F77=
12889link_all_deplibs_F77=unknown
12890old_archive_cmds_F77=$old_archive_cmds
12891no_undefined_flag_F77=
12892whole_archive_flag_spec_F77=
12893enable_shared_with_static_runtimes_F77=no
12894
12895# Source file extension for f77 test sources.
12896ac_ext=f
12897
12898# Object file extension for compiled f77 test sources.
12899objext=o
12900objext_F77=$objext
12901
12902# Code to be used in simple compile tests
12903lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12904
12905# Code to be used in simple link tests
12906lt_simple_link_test_code=" program t\n end\n"
12907
12908# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12909
12910# If no C compiler was specified, use CC.
12911LTCC=${LTCC-"$CC"}
12912
12913# If no C compiler flags were specified, use CFLAGS.
12914LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12915
12916# Allow CC to be a program name with arguments.
12917compiler=$CC
12918
12919
12920# save warnings/boilerplate of simple test code
12921ac_outfile=conftest.$ac_objext
12922printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12923eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12924_lt_compiler_boilerplate=`cat conftest.err`
12925$rm conftest*
12926
12927ac_outfile=conftest.$ac_objext
12928printf "$lt_simple_link_test_code" >conftest.$ac_ext
12929eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12930_lt_linker_boilerplate=`cat conftest.err`
12931$rm conftest*
12932
12933
12934# Allow CC to be a program name with arguments.
12935lt_save_CC="$CC"
12936CC=${F77-"f77"}
12937compiler=$CC
12938compiler_F77=$CC
12939for cc_temp in $compiler""; do
12940 case $cc_temp in
12941 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12942 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12943 \-*) ;;
12944 *) break;;
12945 esac
12946done
12947cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12948
12949
12950{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12951echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12952{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
12953echo "${ECHO_T}$can_build_shared" >&6; }
12954
12955{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12956echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12957test "$can_build_shared" = "no" && enable_shared=no
12958
12959# On AIX, shared libraries and static libraries use the same namespace, and
12960# are all built from PIC.
12961case $host_os in
12962aix3*)
12963 test "$enable_shared" = yes && enable_static=no
12964 if test -n "$RANLIB"; then
12965 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12966 postinstall_cmds='$RANLIB $lib'
12967 fi
12968 ;;
12969aix4* | aix5*)
12970 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12971 test "$enable_shared" = yes && enable_static=no
12972 fi
12973 ;;
12974esac
12975{ echo "$as_me:$LINENO: result: $enable_shared" >&5
12976echo "${ECHO_T}$enable_shared" >&6; }
12977
12978{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12979echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12980# Make sure either enable_shared or enable_static is yes.
12981test "$enable_shared" = yes || enable_static=yes
12982{ echo "$as_me:$LINENO: result: $enable_static" >&5
12983echo "${ECHO_T}$enable_static" >&6; }
12984
12985GCC_F77="$G77"
12986LD_F77="$LD"
12987
12988lt_prog_compiler_wl_F77=
12989lt_prog_compiler_pic_F77=
12990lt_prog_compiler_static_F77=
12991
12992{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12993echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12994
12995 if test "$GCC" = yes; then
12996 lt_prog_compiler_wl_F77='-Wl,'
12997 lt_prog_compiler_static_F77='-static'
12998
12999 case $host_os in
13000 aix*)
13001 # All AIX code is PIC.
13002 if test "$host_cpu" = ia64; then
13003 # AIX 5 now supports IA64 processor
13004 lt_prog_compiler_static_F77='-Bstatic'
13005 fi
13006 ;;
13007
13008 amigaos*)
13009 # FIXME: we need at least 68020 code to build shared libraries, but
13010 # adding the `-m68020' flag to GCC prevents building anything better,
13011 # like `-m68040'.
13012 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13013 ;;
13014
13015 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13016 # PIC is the default for these OSes.
13017 ;;
13018
13019 mingw* | pw32* | os2*)
13020 # This hack is so that the source file can tell whether it is being
13021 # built for inclusion in a dll (and should export symbols for example).
13022 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13023 ;;
13024
13025 darwin* | rhapsody*)
13026 # PIC is the default on this platform
13027 # Common symbols not allowed in MH_DYLIB files
13028 lt_prog_compiler_pic_F77='-fno-common'
13029 ;;
13030
13031 interix3*)
13032 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13033 # Instead, we relocate shared libraries at runtime.
13034 ;;
13035
13036 msdosdjgpp*)
13037 # Just because we use GCC doesn't mean we suddenly get shared libraries
13038 # on systems that don't support them.
13039 lt_prog_compiler_can_build_shared_F77=no
13040 enable_shared=no
13041 ;;
13042
13043 sysv4*MP*)
13044 if test -d /usr/nec; then
13045 lt_prog_compiler_pic_F77=-Kconform_pic
13046 fi
13047 ;;
13048
13049 hpux*)
13050 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13051 # not for PA HP-UX.
13052 case $host_cpu in
13053 hppa*64*|ia64*)
13054 # +Z the default
13055 ;;
13056 *)
13057 lt_prog_compiler_pic_F77='-fPIC'
13058 ;;
13059 esac
13060 ;;
13061
13062 *)
13063 lt_prog_compiler_pic_F77='-fPIC'
13064 ;;
13065 esac
13066 else
13067 # PORTME Check for flag to pass linker flags through the system compiler.
13068 case $host_os in
13069 aix*)
13070 lt_prog_compiler_wl_F77='-Wl,'
13071 if test "$host_cpu" = ia64; then
13072 # AIX 5 now supports IA64 processor
13073 lt_prog_compiler_static_F77='-Bstatic'
13074 else
13075 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13076 fi
13077 ;;
13078 darwin*)
13079 # PIC is the default on this platform
13080 # Common symbols not allowed in MH_DYLIB files
13081 case $cc_basename in
13082 xlc*)
13083 lt_prog_compiler_pic_F77='-qnocommon'
13084 lt_prog_compiler_wl_F77='-Wl,'
13085 ;;
13086 esac
13087 ;;
13088
13089 mingw* | pw32* | os2*)
13090 # This hack is so that the source file can tell whether it is being
13091 # built for inclusion in a dll (and should export symbols for example).
13092 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13093 ;;
13094
13095 hpux9* | hpux10* | hpux11*)
13096 lt_prog_compiler_wl_F77='-Wl,'
13097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13098 # not for PA HP-UX.
13099 case $host_cpu in
13100 hppa*64*|ia64*)
13101 # +Z the default
13102 ;;
13103 *)
13104 lt_prog_compiler_pic_F77='+Z'
13105 ;;
13106 esac
13107 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13108 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13109 ;;
13110
13111 irix5* | irix6* | nonstopux*)
13112 lt_prog_compiler_wl_F77='-Wl,'
13113 # PIC (with -KPIC) is the default.
13114 lt_prog_compiler_static_F77='-non_shared'
13115 ;;
13116
13117 newsos6)
13118 lt_prog_compiler_pic_F77='-KPIC'
13119 lt_prog_compiler_static_F77='-Bstatic'
13120 ;;
13121
13122 linux*)
13123 case $cc_basename in
13124 icc* | ecc*)
13125 lt_prog_compiler_wl_F77='-Wl,'
13126 lt_prog_compiler_pic_F77='-KPIC'
13127 lt_prog_compiler_static_F77='-static'
13128 ;;
13129 pgcc* | pgf77* | pgf90* | pgf95*)
13130 # Portland Group compilers (*not* the Pentium gcc compiler,
13131 # which looks to be a dead project)
13132 lt_prog_compiler_wl_F77='-Wl,'
13133 lt_prog_compiler_pic_F77='-fpic'
13134 lt_prog_compiler_static_F77='-Bstatic'
13135 ;;
13136 ccc*)
13137 lt_prog_compiler_wl_F77='-Wl,'
13138 # All Alpha code is PIC.
13139 lt_prog_compiler_static_F77='-non_shared'
13140 ;;
13141 esac
13142 ;;
13143
13144 osf3* | osf4* | osf5*)
13145 lt_prog_compiler_wl_F77='-Wl,'
13146 # All OSF/1 code is PIC.
13147 lt_prog_compiler_static_F77='-non_shared'
13148 ;;
13149
13150 solaris*)
13151 lt_prog_compiler_pic_F77='-KPIC'
13152 lt_prog_compiler_static_F77='-Bstatic'
13153 case $cc_basename in
13154 f77* | f90* | f95*)
13155 lt_prog_compiler_wl_F77='-Qoption ld ';;
13156 *)
13157 lt_prog_compiler_wl_F77='-Wl,';;
13158 esac
13159 ;;
13160
13161 sunos4*)
13162 lt_prog_compiler_wl_F77='-Qoption ld '
13163 lt_prog_compiler_pic_F77='-PIC'
13164 lt_prog_compiler_static_F77='-Bstatic'
13165 ;;
13166
13167 sysv4 | sysv4.2uw2* | sysv4.3*)
13168 lt_prog_compiler_wl_F77='-Wl,'
13169 lt_prog_compiler_pic_F77='-KPIC'
13170 lt_prog_compiler_static_F77='-Bstatic'
13171 ;;
13172
13173 sysv4*MP*)
13174 if test -d /usr/nec ;then
13175 lt_prog_compiler_pic_F77='-Kconform_pic'
13176 lt_prog_compiler_static_F77='-Bstatic'
13177 fi
13178 ;;
13179
13180 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13181 lt_prog_compiler_wl_F77='-Wl,'
13182 lt_prog_compiler_pic_F77='-KPIC'
13183 lt_prog_compiler_static_F77='-Bstatic'
13184 ;;
13185
13186 unicos*)
13187 lt_prog_compiler_wl_F77='-Wl,'
13188 lt_prog_compiler_can_build_shared_F77=no
13189 ;;
13190
13191 uts4*)
13192 lt_prog_compiler_pic_F77='-pic'
13193 lt_prog_compiler_static_F77='-Bstatic'
13194 ;;
13195
13196 *)
13197 lt_prog_compiler_can_build_shared_F77=no
13198 ;;
13199 esac
13200 fi
13201
13202{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13203echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13204
13205#
13206# Check to make sure the PIC flag actually works.
13207#
13208if test -n "$lt_prog_compiler_pic_F77"; then
13209
13210{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13211echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13212if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13214else
13215 lt_prog_compiler_pic_works_F77=no
13216 ac_outfile=conftest.$ac_objext
13217 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13218 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13219 # Insert the option either (1) after the last *FLAGS variable, or
13220 # (2) before a word containing "conftest.", or (3) at the end.
13221 # Note that $ac_compile itself does not contain backslashes and begins
13222 # with a dollar sign (not a hyphen), so the echo should work correctly.
13223 # The option is referenced via a variable to avoid confusing sed.
13224 lt_compile=`echo "$ac_compile" | $SED \
13225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13227 -e 's:$: $lt_compiler_flag:'`
13228 (eval echo "\"\$as_me:13228: $lt_compile\"" >&5)
13229 (eval "$lt_compile" 2>conftest.err)
13230 ac_status=$?
13231 cat conftest.err >&5
13232 echo "$as_me:13232: \$? = $ac_status" >&5
13233 if (exit $ac_status) && test -s "$ac_outfile"; then
13234 # The compiler can only warn and ignore the option if not recognized
13235 # So say no if there are warnings other than the usual output.
13236 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13238 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13239 lt_prog_compiler_pic_works_F77=yes
13240 fi
13241 fi
13242 $rm conftest*
13243
13244fi
13245{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13246echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13247
13248if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13249 case $lt_prog_compiler_pic_F77 in
13250 "" | " "*) ;;
13251 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13252 esac
13253else
13254 lt_prog_compiler_pic_F77=
13255 lt_prog_compiler_can_build_shared_F77=no
13256fi
13257
13258fi
13259case $host_os in
13260 # For platforms which do not support PIC, -DPIC is meaningless:
13261 *djgpp*)
13262 lt_prog_compiler_pic_F77=
13263 ;;
13264 *)
13265 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13266 ;;
13267esac
13268
13269#
13270# Check to make sure the static flag actually works.
13271#
13272wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13273{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13274echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13275if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13276 echo $ECHO_N "(cached) $ECHO_C" >&6
13277else
13278 lt_prog_compiler_static_works_F77=no
13279 save_LDFLAGS="$LDFLAGS"
13280 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13281 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13282 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13283 # The linker can only warn and ignore the option if not recognized
13284 # So say no if there are warnings
13285 if test -s conftest.err; then
13286 # Append any errors to the config.log.
13287 cat conftest.err 1>&5
13288 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13290 if diff conftest.exp conftest.er2 >/dev/null; then
13291 lt_prog_compiler_static_works_F77=yes
13292 fi
13293 else
13294 lt_prog_compiler_static_works_F77=yes
13295 fi
13296 fi
13297 $rm conftest*
13298 LDFLAGS="$save_LDFLAGS"
13299
13300fi
13301{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13302echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13303
13304if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13305 :
13306else
13307 lt_prog_compiler_static_F77=
13308fi
13309
13310
13311{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13312echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13313if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315else
13316 lt_cv_prog_compiler_c_o_F77=no
13317 $rm -r conftest 2>/dev/null
13318 mkdir conftest
13319 cd conftest
13320 mkdir out
13321 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13322
13323 lt_compiler_flag="-o out/conftest2.$ac_objext"
13324 # Insert the option either (1) after the last *FLAGS variable, or
13325 # (2) before a word containing "conftest.", or (3) at the end.
13326 # Note that $ac_compile itself does not contain backslashes and begins
13327 # with a dollar sign (not a hyphen), so the echo should work correctly.
13328 lt_compile=`echo "$ac_compile" | $SED \
13329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13331 -e 's:$: $lt_compiler_flag:'`
13332 (eval echo "\"\$as_me:13332: $lt_compile\"" >&5)
13333 (eval "$lt_compile" 2>out/conftest.err)
13334 ac_status=$?
13335 cat out/conftest.err >&5
13336 echo "$as_me:13336: \$? = $ac_status" >&5
13337 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13338 then
13339 # The compiler can only warn and ignore the option if not recognized
13340 # So say no if there are warnings
13341 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13342 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13343 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13344 lt_cv_prog_compiler_c_o_F77=yes
13345 fi
13346 fi
13347 chmod u+w . 2>&5
13348 $rm conftest*
13349 # SGI C++ compiler will create directory out/ii_files/ for
13350 # template instantiation
13351 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13352 $rm out/* && rmdir out
13353 cd ..
13354 rmdir conftest
13355 $rm conftest*
13356
13357fi
13358{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13359echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13360
13361
13362hard_links="nottested"
13363if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13364 # do not overwrite the value of need_locks provided by the user
13365 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13366echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13367 hard_links=yes
13368 $rm conftest*
13369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13370 touch conftest.a
13371 ln conftest.a conftest.b 2>&5 || hard_links=no
13372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13373 { echo "$as_me:$LINENO: result: $hard_links" >&5
13374echo "${ECHO_T}$hard_links" >&6; }
13375 if test "$hard_links" = no; then
13376 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13377echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13378 need_locks=warn
13379 fi
13380else
13381 need_locks=no
13382fi
13383
13384{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13385echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13386
13387 runpath_var=
13388 allow_undefined_flag_F77=
13389 enable_shared_with_static_runtimes_F77=no
13390 archive_cmds_F77=
13391 archive_expsym_cmds_F77=
13392 old_archive_From_new_cmds_F77=
13393 old_archive_from_expsyms_cmds_F77=
13394 export_dynamic_flag_spec_F77=
13395 whole_archive_flag_spec_F77=
13396 thread_safe_flag_spec_F77=
13397 hardcode_libdir_flag_spec_F77=
13398 hardcode_libdir_flag_spec_ld_F77=
13399 hardcode_libdir_separator_F77=
13400 hardcode_direct_F77=no
13401 hardcode_minus_L_F77=no
13402 hardcode_shlibpath_var_F77=unsupported
13403 link_all_deplibs_F77=unknown
13404 hardcode_automatic_F77=no
13405 module_cmds_F77=
13406 module_expsym_cmds_F77=
13407 always_export_symbols_F77=no
13408 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13409 # include_expsyms should be a list of space-separated symbols to be *always*
13410 # included in the symbol list
13411 include_expsyms_F77=
13412 # exclude_expsyms can be an extended regexp of symbols to exclude
13413 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13414 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13415 # as well as any symbol that contains `d'.
13416 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13417 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13418 # platforms (ab)use it in PIC code, but their linkers get confused if
13419 # the symbol is explicitly referenced. Since portable code cannot
13420 # rely on this symbol name, it's probably fine to never include it in
13421 # preloaded symbol tables.
13422 extract_expsyms_cmds=
13423 # Just being paranoid about ensuring that cc_basename is set.
13424 for cc_temp in $compiler""; do
13425 case $cc_temp in
13426 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13427 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13428 \-*) ;;
13429 *) break;;
13430 esac
13431done
13432cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13433
13434 case $host_os in
13435 cygwin* | mingw* | pw32*)
13436 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13437 # When not using gcc, we currently assume that we are using
13438 # Microsoft Visual C++.
13439 if test "$GCC" != yes; then
13440 with_gnu_ld=no
13441 fi
13442 ;;
13443 interix*)
13444 # we just hope/assume this is gcc and not c89 (= MSVC++)
13445 with_gnu_ld=yes
13446 ;;
13447 openbsd*)
13448 with_gnu_ld=no
13449 ;;
13450 esac
13451
13452 ld_shlibs_F77=yes
13453 if test "$with_gnu_ld" = yes; then
13454 # If archive_cmds runs LD, not CC, wlarc should be empty
13455 wlarc='${wl}'
13456
13457 # Set some defaults for GNU ld with shared library support. These
13458 # are reset later if shared libraries are not supported. Putting them
13459 # here allows them to be overridden if necessary.
13460 runpath_var=LD_RUN_PATH
13461 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13462 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13463 # ancient GNU ld didn't support --whole-archive et. al.
13464 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13465 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13466 else
13467 whole_archive_flag_spec_F77=
13468 fi
13469 supports_anon_versioning=no
13470 case `$LD -v 2>/dev/null` in
13471 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13472 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13473 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13474 *\ 2.11.*) ;; # other 2.11 versions
13475 *) supports_anon_versioning=yes ;;
13476 esac
13477
13478 # See if GNU ld supports shared libraries.
13479 case $host_os in
13480 aix3* | aix4* | aix5*)
13481 # On AIX/PPC, the GNU linker is very broken
13482 if test "$host_cpu" != ia64; then
13483 ld_shlibs_F77=no
13484 cat <<EOF 1>&2
13485
13486*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13487*** to be unable to reliably create shared libraries on AIX.
13488*** Therefore, libtool is disabling shared libraries support. If you
13489*** really care for shared libraries, you may want to modify your PATH
13490*** so that a non-GNU linker is found, and then restart.
13491
13492EOF
13493 fi
13494 ;;
13495
13496 amigaos*)
13497 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)'
13498 hardcode_libdir_flag_spec_F77='-L$libdir'
13499 hardcode_minus_L_F77=yes
13500
13501 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13502 # that the semantics of dynamic libraries on AmigaOS, at least up
13503 # to version 4, is to share data among multiple programs linked
13504 # with the same dynamic library. Since this doesn't match the
13505 # behavior of shared libraries on other platforms, we can't use
13506 # them.
13507 ld_shlibs_F77=no
13508 ;;
13509
13510 beos*)
13511 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13512 allow_undefined_flag_F77=unsupported
13513 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13514 # support --undefined. This deserves some investigation. FIXME
13515 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13516 else
13517 ld_shlibs_F77=no
13518 fi
13519 ;;
13520
13521 cygwin* | mingw* | pw32*)
13522 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13523 # as there is no search path for DLLs.
13524 hardcode_libdir_flag_spec_F77='-L$libdir'
13525 allow_undefined_flag_F77=unsupported
13526 always_export_symbols_F77=no
13527 enable_shared_with_static_runtimes_F77=yes
13528 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13529
13530 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13531 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13532 # If the export-symbols file already is a .def file (1st line
13533 # is EXPORTS), use it as is; otherwise, prepend...
13534 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13535 cp $export_symbols $output_objdir/$soname.def;
13536 else
13537 echo EXPORTS > $output_objdir/$soname.def;
13538 cat $export_symbols >> $output_objdir/$soname.def;
13539 fi~
13540 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13541 else
13542 ld_shlibs_F77=no
13543 fi
13544 ;;
13545
13546 interix3*)
13547 hardcode_direct_F77=no
13548 hardcode_shlibpath_var_F77=no
13549 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13550 export_dynamic_flag_spec_F77='${wl}-E'
13551 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13552 # Instead, shared libraries are loaded at an image base (0x10000000 by
13553 # default) and relocated if they conflict, which is a slow very memory
13554 # consuming and fragmenting process. To avoid this, we pick a random,
13555 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13556 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13557 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'
13558 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'
13559 ;;
13560
13561 linux*)
13562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13563 tmp_addflag=
13564 case $cc_basename,$host_cpu in
13565 pgcc*) # Portland Group C compiler
13566 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'
13567 tmp_addflag=' $pic_flag'
13568 ;;
13569 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13570 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'
13571 tmp_addflag=' $pic_flag -Mnomain' ;;
13572 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13573 tmp_addflag=' -i_dynamic' ;;
13574 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13575 tmp_addflag=' -i_dynamic -nofor_main' ;;
13576 ifc* | ifort*) # Intel Fortran compiler
13577 tmp_addflag=' -nofor_main' ;;
13578 esac
13579 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13580
13581 if test $supports_anon_versioning = yes; then
13582 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13583 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13584 $echo "local: *; };" >> $output_objdir/$libname.ver~
13585 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13586 fi
13587 else
13588 ld_shlibs_F77=no
13589 fi
13590 ;;
13591
13592 netbsd*)
13593 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13594 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13595 wlarc=
13596 else
13597 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13598 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13599 fi
13600 ;;
13601
13602 solaris*)
13603 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13604 ld_shlibs_F77=no
13605 cat <<EOF 1>&2
13606
13607*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13608*** create shared libraries on Solaris systems. Therefore, libtool
13609*** is disabling shared libraries support. We urge you to upgrade GNU
13610*** binutils to release 2.9.1 or newer. Another option is to modify
13611*** your PATH or compiler configuration so that the native linker is
13612*** used, and then restart.
13613
13614EOF
13615 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13616 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13617 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13618 else
13619 ld_shlibs_F77=no
13620 fi
13621 ;;
13622
13623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13624 case `$LD -v 2>&1` in
13625 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13626 ld_shlibs_F77=no
13627 cat <<_LT_EOF 1>&2
13628
13629*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13630*** reliably create shared libraries on SCO systems. Therefore, libtool
13631*** is disabling shared libraries support. We urge you to upgrade GNU
13632*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13633*** your PATH or compiler configuration so that the native linker is
13634*** used, and then restart.
13635
13636_LT_EOF
13637 ;;
13638 *)
13639 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13640 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13641 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13642 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13643 else
13644 ld_shlibs_F77=no
13645 fi
13646 ;;
13647 esac
13648 ;;
13649
13650 sunos4*)
13651 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13652 wlarc=
13653 hardcode_direct_F77=yes
13654 hardcode_shlibpath_var_F77=no
13655 ;;
13656
13657 *)
13658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13659 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13660 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13661 else
13662 ld_shlibs_F77=no
13663 fi
13664 ;;
13665 esac
13666
13667 if test "$ld_shlibs_F77" = no; then
13668 runpath_var=
13669 hardcode_libdir_flag_spec_F77=
13670 export_dynamic_flag_spec_F77=
13671 whole_archive_flag_spec_F77=
13672 fi
13673 else
13674 # PORTME fill in a description of your system's linker (not GNU ld)
13675 case $host_os in
13676 aix3*)
13677 allow_undefined_flag_F77=unsupported
13678 always_export_symbols_F77=yes
13679 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'
13680 # Note: this linker hardcodes the directories in LIBPATH if there
13681 # are no directories specified by -L.
13682 hardcode_minus_L_F77=yes
13683 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13684 # Neither direct hardcoding nor static linking is supported with a
13685 # broken collect2.
13686 hardcode_direct_F77=unsupported
13687 fi
13688 ;;
13689
13690 aix4* | aix5*)
13691 if test "$host_cpu" = ia64; then
13692 # On IA64, the linker does run time linking by default, so we don't
13693 # have to do anything special.
13694 aix_use_runtimelinking=no
13695 exp_sym_flag='-Bexport'
13696 no_entry_flag=""
13697 else
13698 # If we're using GNU nm, then we don't want the "-C" option.
13699 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13700 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13701 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'
13702 else
13703 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'
13704 fi
13705 aix_use_runtimelinking=no
13706
13707 # Test if we are trying to use run time linking or normal
13708 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13709 # need to do runtime linking.
13710 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13711 for ld_flag in $LDFLAGS; do
13712 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13713 aix_use_runtimelinking=yes
13714 break
13715 fi
13716 done
13717 ;;
13718 esac
13719
13720 exp_sym_flag='-bexport'
13721 no_entry_flag='-bnoentry'
13722 fi
13723
13724 # When large executables or shared objects are built, AIX ld can
13725 # have problems creating the table of contents. If linking a library
13726 # or program results in "error TOC overflow" add -mminimal-toc to
13727 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13728 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13729
13730 archive_cmds_F77=''
13731 hardcode_direct_F77=yes
13732 hardcode_libdir_separator_F77=':'
13733 link_all_deplibs_F77=yes
13734
13735 if test "$GCC" = yes; then
13736 case $host_os in aix4.[012]|aix4.[012].*)
13737 # We only want to do this on AIX 4.2 and lower, the check
13738 # below for broken collect2 doesn't work under 4.3+
13739 collect2name=`${CC} -print-prog-name=collect2`
13740 if test -f "$collect2name" && \
13741 strings "$collect2name" | grep resolve_lib_name >/dev/null
13742 then
13743 # We have reworked collect2
13744 hardcode_direct_F77=yes
13745 else
13746 # We have old collect2
13747 hardcode_direct_F77=unsupported
13748 # It fails to find uninstalled libraries when the uninstalled
13749 # path is not listed in the libpath. Setting hardcode_minus_L
13750 # to unsupported forces relinking
13751 hardcode_minus_L_F77=yes
13752 hardcode_libdir_flag_spec_F77='-L$libdir'
13753 hardcode_libdir_separator_F77=
13754 fi
13755 ;;
13756 esac
13757 shared_flag='-shared'
13758 if test "$aix_use_runtimelinking" = yes; then
13759 shared_flag="$shared_flag "'${wl}-G'
13760 fi
13761 else
13762 # not using gcc
13763 if test "$host_cpu" = ia64; then
13764 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13765 # chokes on -Wl,-G. The following line is correct:
13766 shared_flag='-G'
13767 else
13768 if test "$aix_use_runtimelinking" = yes; then
13769 shared_flag='${wl}-G'
13770 else
13771 shared_flag='${wl}-bM:SRE'
13772 fi
13773 fi
13774 fi
13775
13776 # It seems that -bexpall does not export symbols beginning with
13777 # underscore (_), so it is better to generate a list of symbols to export.
13778 always_export_symbols_F77=yes
13779 if test "$aix_use_runtimelinking" = yes; then
13780 # Warning - without using the other runtime loading flags (-brtl),
13781 # -berok will link without error, but may produce a broken library.
13782 allow_undefined_flag_F77='-berok'
13783 # Determine the default libpath from the value encoded in an empty executable.
13784 cat >conftest.$ac_ext <<_ACEOF
13785 program main
13786
13787 end
13788_ACEOF
13789rm -f conftest.$ac_objext conftest$ac_exeext
13790if { (ac_try="$ac_link"
13791case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13794esac
13795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796 (eval "$ac_link") 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && {
13803 test -z "$ac_f77_werror_flag" ||
13804 test ! -s conftest.err
13805 } && test -s conftest$ac_exeext &&
13806 $as_test_x conftest$ac_exeext; then
13807
13808aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13809}'`
13810# Check for a 64-bit object if we didn't find anything.
13811if 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; }
13812}'`; fi
13813else
13814 echo "$as_me: failed program was:" >&5
13815sed 's/^/| /' conftest.$ac_ext >&5
13816
13817
13818fi
13819
13820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13821 conftest$ac_exeext conftest.$ac_ext
13822if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13823
13824 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13825 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"
13826 else
13827 if test "$host_cpu" = ia64; then
13828 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13829 allow_undefined_flag_F77="-z nodefs"
13830 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"
13831 else
13832 # Determine the default libpath from the value encoded in an empty executable.
13833 cat >conftest.$ac_ext <<_ACEOF
13834 program main
13835
13836 end
13837_ACEOF
13838rm -f conftest.$ac_objext conftest$ac_exeext
13839if { (ac_try="$ac_link"
13840case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13843esac
13844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_link") 2>conftest.er1
13846 ac_status=$?
13847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } && {
13852 test -z "$ac_f77_werror_flag" ||
13853 test ! -s conftest.err
13854 } && test -s conftest$ac_exeext &&
13855 $as_test_x conftest$ac_exeext; then
13856
13857aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13858}'`
13859# Check for a 64-bit object if we didn't find anything.
13860if 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; }
13861}'`; fi
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
13866
13867fi
13868
13869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13870 conftest$ac_exeext conftest.$ac_ext
13871if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13872
13873 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13874 # Warning - without using the other run time loading flags,
13875 # -berok will link without error, but may produce a broken library.
13876 no_undefined_flag_F77=' ${wl}-bernotok'
13877 allow_undefined_flag_F77=' ${wl}-berok'
13878 # Exported symbols can be pulled into shared objects from archives
13879 whole_archive_flag_spec_F77='$convenience'
13880 archive_cmds_need_lc_F77=yes
13881 # This is similar to how AIX traditionally builds its shared libraries.
13882 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'
13883 fi
13884 fi
13885 ;;
13886
13887 amigaos*)
13888 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)'
13889 hardcode_libdir_flag_spec_F77='-L$libdir'
13890 hardcode_minus_L_F77=yes
13891 # see comment about different semantics on the GNU ld section
13892 ld_shlibs_F77=no
13893 ;;
13894
13895 bsdi[45]*)
13896 export_dynamic_flag_spec_F77=-rdynamic
13897 ;;
13898
13899 cygwin* | mingw* | pw32*)
13900 # When not using gcc, we currently assume that we are using
13901 # Microsoft Visual C++.
13902 # hardcode_libdir_flag_spec is actually meaningless, as there is
13903 # no search path for DLLs.
13904 hardcode_libdir_flag_spec_F77=' '
13905 allow_undefined_flag_F77=unsupported
13906 # Tell ltmain to make .lib files, not .a files.
13907 libext=lib
13908 # Tell ltmain to make .dll files, not .so files.
13909 shrext_cmds=".dll"
13910 # FIXME: Setting linknames here is a bad hack.
13911 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13912 # The linker will automatically build a .lib file if we build a DLL.
13913 old_archive_From_new_cmds_F77='true'
13914 # FIXME: Should let the user specify the lib program.
13915 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13916 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13917 enable_shared_with_static_runtimes_F77=yes
13918 ;;
13919
13920 darwin* | rhapsody*)
13921 case $host_os in
13922 rhapsody* | darwin1.[012])
13923 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13924 ;;
13925 *) # Darwin 1.3 on
13926 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13927 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13928 else
13929 case ${MACOSX_DEPLOYMENT_TARGET} in
13930 10.[012])
13931 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13932 ;;
13933 10.*)
13934 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13935 ;;
13936 esac
13937 fi
13938 ;;
13939 esac
13940 archive_cmds_need_lc_F77=no
13941 hardcode_direct_F77=no
13942 hardcode_automatic_F77=yes
13943 hardcode_shlibpath_var_F77=unsupported
13944 whole_archive_flag_spec_F77=''
13945 link_all_deplibs_F77=yes
13946 if test "$GCC" = yes ; then
13947 output_verbose_link_cmd='echo'
13948 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13949 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13950 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13951 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}'
13952 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}'
13953 else
13954 case $cc_basename in
13955 xlc*)
13956 output_verbose_link_cmd='echo'
13957 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13958 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13959 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13960 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}'
13961 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}'
13962 ;;
13963 *)
13964 ld_shlibs_F77=no
13965 ;;
13966 esac
13967 fi
13968 ;;
13969
13970 dgux*)
13971 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13972 hardcode_libdir_flag_spec_F77='-L$libdir'
13973 hardcode_shlibpath_var_F77=no
13974 ;;
13975
13976 freebsd1*)
13977 ld_shlibs_F77=no
13978 ;;
13979
13980 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13981 # support. Future versions do this automatically, but an explicit c++rt0.o
13982 # does not break anything, and helps significantly (at the cost of a little
13983 # extra space).
13984 freebsd2.2*)
13985 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13986 hardcode_libdir_flag_spec_F77='-R$libdir'
13987 hardcode_direct_F77=yes
13988 hardcode_shlibpath_var_F77=no
13989 ;;
13990
13991 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13992 freebsd2*)
13993 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13994 hardcode_direct_F77=yes
13995 hardcode_minus_L_F77=yes
13996 hardcode_shlibpath_var_F77=no
13997 ;;
13998
13999 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14000 freebsd* | kfreebsd*-gnu | dragonfly*)
14001 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14002 hardcode_libdir_flag_spec_F77='-R$libdir'
14003 hardcode_direct_F77=yes
14004 hardcode_shlibpath_var_F77=no
14005 ;;
14006
14007 hpux9*)
14008 if test "$GCC" = yes; then
14009 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'
14010 else
14011 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'
14012 fi
14013 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14014 hardcode_libdir_separator_F77=:
14015 hardcode_direct_F77=yes
14016
14017 # hardcode_minus_L: Not really in the search PATH,
14018 # but as the default location of the library.
14019 hardcode_minus_L_F77=yes
14020 export_dynamic_flag_spec_F77='${wl}-E'
14021 ;;
14022
14023 hpux10*)
14024 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14025 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14026 else
14027 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14028 fi
14029 if test "$with_gnu_ld" = no; then
14030 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14031 hardcode_libdir_separator_F77=:
14032
14033 hardcode_direct_F77=yes
14034 export_dynamic_flag_spec_F77='${wl}-E'
14035
14036 # hardcode_minus_L: Not really in the search PATH,
14037 # but as the default location of the library.
14038 hardcode_minus_L_F77=yes
14039 fi
14040 ;;
14041
14042 hpux11*)
14043 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14044 case $host_cpu in
14045 hppa*64*)
14046 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14047 ;;
14048 ia64*)
14049 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14050 ;;
14051 *)
14052 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14053 ;;
14054 esac
14055 else
14056 case $host_cpu in
14057 hppa*64*)
14058 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14059 ;;
14060 ia64*)
14061 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14062 ;;
14063 *)
14064 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14065 ;;
14066 esac
14067 fi
14068 if test "$with_gnu_ld" = no; then
14069 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14070 hardcode_libdir_separator_F77=:
14071
14072 case $host_cpu in
14073 hppa*64*|ia64*)
14074 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14075 hardcode_direct_F77=no
14076 hardcode_shlibpath_var_F77=no
14077 ;;
14078 *)
14079 hardcode_direct_F77=yes
14080 export_dynamic_flag_spec_F77='${wl}-E'
14081
14082 # hardcode_minus_L: Not really in the search PATH,
14083 # but as the default location of the library.
14084 hardcode_minus_L_F77=yes
14085 ;;
14086 esac
14087 fi
14088 ;;
14089
14090 irix5* | irix6* | nonstopux*)
14091 if test "$GCC" = yes; then
14092 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'
14093 else
14094 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'
14095 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14096 fi
14097 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14098 hardcode_libdir_separator_F77=:
14099 link_all_deplibs_F77=yes
14100 ;;
14101
14102 netbsd*)
14103 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14104 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14105 else
14106 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14107 fi
14108 hardcode_libdir_flag_spec_F77='-R$libdir'
14109 hardcode_direct_F77=yes
14110 hardcode_shlibpath_var_F77=no
14111 ;;
14112
14113 newsos6)
14114 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14115 hardcode_direct_F77=yes
14116 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14117 hardcode_libdir_separator_F77=:
14118 hardcode_shlibpath_var_F77=no
14119 ;;
14120
14121 openbsd*)
14122 hardcode_direct_F77=yes
14123 hardcode_shlibpath_var_F77=no
14124 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14125 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14126 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14127 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14128 export_dynamic_flag_spec_F77='${wl}-E'
14129 else
14130 case $host_os in
14131 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14132 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14133 hardcode_libdir_flag_spec_F77='-R$libdir'
14134 ;;
14135 *)
14136 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14137 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14138 ;;
14139 esac
14140 fi
14141 ;;
14142
14143 os2*)
14144 hardcode_libdir_flag_spec_F77='-L$libdir'
14145 hardcode_minus_L_F77=yes
14146 allow_undefined_flag_F77=unsupported
14147 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'
14148 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14149 ;;
14150
14151 osf3*)
14152 if test "$GCC" = yes; then
14153 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14154 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'
14155 else
14156 allow_undefined_flag_F77=' -expect_unresolved \*'
14157 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'
14158 fi
14159 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14160 hardcode_libdir_separator_F77=:
14161 ;;
14162
14163 osf4* | osf5*) # as osf3* with the addition of -msym flag
14164 if test "$GCC" = yes; then
14165 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14166 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'
14167 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14168 else
14169 allow_undefined_flag_F77=' -expect_unresolved \*'
14170 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'
14171 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~
14172 $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'
14173
14174 # Both c and cxx compiler support -rpath directly
14175 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14176 fi
14177 hardcode_libdir_separator_F77=:
14178 ;;
14179
14180 solaris*)
14181 no_undefined_flag_F77=' -z text'
14182 if test "$GCC" = yes; then
14183 wlarc='${wl}'
14184 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14185 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14186 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14187 else
14188 wlarc=''
14189 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14190 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14191 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14192 fi
14193 hardcode_libdir_flag_spec_F77='-R$libdir'
14194 hardcode_shlibpath_var_F77=no
14195 case $host_os in
14196 solaris2.[0-5] | solaris2.[0-5].*) ;;
14197 *)
14198 # The compiler driver will combine linker options so we
14199 # cannot just pass the convience library names through
14200 # without $wl, iff we do not link with $LD.
14201 # Luckily, gcc supports the same syntax we need for Sun Studio.
14202 # Supported since Solaris 2.6 (maybe 2.5.1?)
14203 case $wlarc in
14204 '')
14205 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14206 *)
14207 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' ;;
14208 esac ;;
14209 esac
14210 link_all_deplibs_F77=yes
14211 ;;
14212
14213 sunos4*)
14214 if test "x$host_vendor" = xsequent; then
14215 # Use $CC to link under sequent, because it throws in some extra .o
14216 # files that make .init and .fini sections work.
14217 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14218 else
14219 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14220 fi
14221 hardcode_libdir_flag_spec_F77='-L$libdir'
14222 hardcode_direct_F77=yes
14223 hardcode_minus_L_F77=yes
14224 hardcode_shlibpath_var_F77=no
14225 ;;
14226
14227 sysv4)
14228 case $host_vendor in
14229 sni)
14230 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14231 hardcode_direct_F77=yes # is this really true???
14232 ;;
14233 siemens)
14234 ## LD is ld it makes a PLAMLIB
14235 ## CC just makes a GrossModule.
14236 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14237 reload_cmds_F77='$CC -r -o $output$reload_objs'
14238 hardcode_direct_F77=no
14239 ;;
14240 motorola)
14241 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14242 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14243 ;;
14244 esac
14245 runpath_var='LD_RUN_PATH'
14246 hardcode_shlibpath_var_F77=no
14247 ;;
14248
14249 sysv4.3*)
14250 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14251 hardcode_shlibpath_var_F77=no
14252 export_dynamic_flag_spec_F77='-Bexport'
14253 ;;
14254
14255 sysv4*MP*)
14256 if test -d /usr/nec; then
14257 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14258 hardcode_shlibpath_var_F77=no
14259 runpath_var=LD_RUN_PATH
14260 hardcode_runpath_var=yes
14261 ld_shlibs_F77=yes
14262 fi
14263 ;;
14264
14265 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14266 no_undefined_flag_F77='${wl}-z,text'
14267 archive_cmds_need_lc_F77=no
14268 hardcode_shlibpath_var_F77=no
14269 runpath_var='LD_RUN_PATH'
14270
14271 if test "$GCC" = yes; then
14272 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14273 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14274 else
14275 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14276 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14277 fi
14278 ;;
14279
14280 sysv5* | sco3.2v5* | sco5v6*)
14281 # Note: We can NOT use -z defs as we might desire, because we do not
14282 # link with -lc, and that would cause any symbols used from libc to
14283 # always be unresolved, which means just about no library would
14284 # ever link correctly. If we're not using GNU ld we use -z text
14285 # though, which does catch some bad symbols but isn't as heavy-handed
14286 # as -z defs.
14287 no_undefined_flag_F77='${wl}-z,text'
14288 allow_undefined_flag_F77='${wl}-z,nodefs'
14289 archive_cmds_need_lc_F77=no
14290 hardcode_shlibpath_var_F77=no
14291 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14292 hardcode_libdir_separator_F77=':'
14293 link_all_deplibs_F77=yes
14294 export_dynamic_flag_spec_F77='${wl}-Bexport'
14295 runpath_var='LD_RUN_PATH'
14296
14297 if test "$GCC" = yes; then
14298 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14299 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14300 else
14301 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14302 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14303 fi
14304 ;;
14305
14306 uts4*)
14307 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14308 hardcode_libdir_flag_spec_F77='-L$libdir'
14309 hardcode_shlibpath_var_F77=no
14310 ;;
14311
14312 *)
14313 ld_shlibs_F77=no
14314 ;;
14315 esac
14316 fi
14317
14318{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14319echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14320test "$ld_shlibs_F77" = no && can_build_shared=no
14321
14322#
14323# Do we need to explicitly link libc?
14324#
14325case "x$archive_cmds_need_lc_F77" in
14326x|xyes)
14327 # Assume -lc should be added
14328 archive_cmds_need_lc_F77=yes
14329
14330 if test "$enable_shared" = yes && test "$GCC" = yes; then
14331 case $archive_cmds_F77 in
14332 *'~'*)
14333 # FIXME: we may have to deal with multi-command sequences.
14334 ;;
14335 '$CC '*)
14336 # Test whether the compiler implicitly links with -lc since on some
14337 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14338 # to ld, don't add -lc before -lgcc.
14339 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14340echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14341 $rm conftest*
14342 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14343
14344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14345 (eval $ac_compile) 2>&5
14346 ac_status=$?
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } 2>conftest.err; then
14349 soname=conftest
14350 lib=conftest
14351 libobjs=conftest.$ac_objext
14352 deplibs=
14353 wl=$lt_prog_compiler_wl_F77
14354 pic_flag=$lt_prog_compiler_pic_F77
14355 compiler_flags=-v
14356 linker_flags=-v
14357 verstring=
14358 output_objdir=.
14359 libname=conftest
14360 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14361 allow_undefined_flag_F77=
14362 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14363 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14364 ac_status=$?
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }
14367 then
14368 archive_cmds_need_lc_F77=no
14369 else
14370 archive_cmds_need_lc_F77=yes
14371 fi
14372 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14373 else
14374 cat conftest.err 1>&5
14375 fi
14376 $rm conftest*
14377 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14378echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14379 ;;
14380 esac
14381 fi
14382 ;;
14383esac
14384
14385{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14386echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14387library_names_spec=
14388libname_spec='lib$name'
14389soname_spec=
14390shrext_cmds=".so"
14391postinstall_cmds=
14392postuninstall_cmds=
14393finish_cmds=
14394finish_eval=
14395shlibpath_var=
14396shlibpath_overrides_runpath=unknown
14397version_type=none
14398dynamic_linker="$host_os ld.so"
14399sys_lib_dlsearch_path_spec="/lib /usr/lib"
14400if test "$GCC" = yes; then
14401 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14402 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14403 # if the path contains ";" then we assume it to be the separator
14404 # otherwise default to the standard path separator (i.e. ":") - it is
14405 # assumed that no part of a normal pathname contains ";" but that should
14406 # okay in the real world where ";" in dirpaths is itself problematic.
14407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14408 else
14409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14410 fi
14411else
14412 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14413fi
14414need_lib_prefix=unknown
14415hardcode_into_libs=no
14416
14417# when you set need_version to no, make sure it does not cause -set_version
14418# flags to be left without arguments
14419need_version=unknown
14420
14421case $host_os in
14422aix3*)
14423 version_type=linux
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14425 shlibpath_var=LIBPATH
14426
14427 # AIX 3 has no versioning support, so we append a major version to the name.
14428 soname_spec='${libname}${release}${shared_ext}$major'
14429 ;;
14430
14431aix4* | aix5*)
14432 version_type=linux
14433 need_lib_prefix=no
14434 need_version=no
14435 hardcode_into_libs=yes
14436 if test "$host_cpu" = ia64; then
14437 # AIX 5 supports IA64
14438 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14439 shlibpath_var=LD_LIBRARY_PATH
14440 else
14441 # With GCC up to 2.95.x, collect2 would create an import file
14442 # for dependence libraries. The import file would start with
14443 # the line `#! .'. This would cause the generated library to
14444 # depend on `.', always an invalid library. This was fixed in
14445 # development snapshots of GCC prior to 3.0.
14446 case $host_os in
14447 aix4 | aix4.[01] | aix4.[01].*)
14448 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14449 echo ' yes '
14450 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14451 :
14452 else
14453 can_build_shared=no
14454 fi
14455 ;;
14456 esac
14457 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14458 # soname into executable. Probably we can add versioning support to
14459 # collect2, so additional links can be useful in future.
14460 if test "$aix_use_runtimelinking" = yes; then
14461 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14462 # instead of lib<name>.a to let people know that these are not
14463 # typical AIX shared libraries.
14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14465 else
14466 # We preserve .a as extension for shared libraries through AIX4.2
14467 # and later when we are not doing run time linking.
14468 library_names_spec='${libname}${release}.a $libname.a'
14469 soname_spec='${libname}${release}${shared_ext}$major'
14470 fi
14471 shlibpath_var=LIBPATH
14472 fi
14473 ;;
14474
14475amigaos*)
14476 library_names_spec='$libname.ixlibrary $libname.a'
14477 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14478 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'
14479 ;;
14480
14481beos*)
14482 library_names_spec='${libname}${shared_ext}'
14483 dynamic_linker="$host_os ld.so"
14484 shlibpath_var=LIBRARY_PATH
14485 ;;
14486
14487bsdi[45]*)
14488 version_type=linux
14489 need_version=no
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 soname_spec='${libname}${release}${shared_ext}$major'
14492 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14493 shlibpath_var=LD_LIBRARY_PATH
14494 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14495 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14496 # the default ld.so.conf also contains /usr/contrib/lib and
14497 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14498 # libtool to hard-code these into programs
14499 ;;
14500
14501cygwin* | mingw* | pw32*)
14502 version_type=windows
14503 shrext_cmds=".dll"
14504 need_version=no
14505 need_lib_prefix=no
14506
14507 case $GCC,$host_os in
14508 yes,cygwin* | yes,mingw* | yes,pw32*)
14509 library_names_spec='$libname.dll.a'
14510 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14511 postinstall_cmds='base_file=`basename \${file}`~
14512 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14513 dldir=$destdir/`dirname \$dlpath`~
14514 test -d \$dldir || mkdir -p \$dldir~
14515 $install_prog $dir/$dlname \$dldir/$dlname~
14516 chmod a+x \$dldir/$dlname'
14517 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14518 dlpath=$dir/\$dldll~
14519 $rm \$dlpath'
14520 shlibpath_overrides_runpath=yes
14521
14522 case $host_os in
14523 cygwin*)
14524 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14525 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14526 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14527 ;;
14528 mingw*)
14529 # MinGW DLLs use traditional 'lib' prefix
14530 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14531 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14532 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14533 # It is most probably a Windows format PATH printed by
14534 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14535 # path with ; separators, and with drive letters. We can handle the
14536 # drive letters (cygwin fileutils understands them), so leave them,
14537 # especially as we might pass files found there to a mingw objdump,
14538 # which wouldn't understand a cygwinified path. Ahh.
14539 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14540 else
14541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14542 fi
14543 ;;
14544 pw32*)
14545 # pw32 DLLs use 'pw' prefix rather than 'lib'
14546 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14547 ;;
14548 esac
14549 ;;
14550
14551 linux*)
14552 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14554 supports_anon_versioning=no
14555 case `$LD -v 2>/dev/null` in
14556 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14557 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14558 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14559 *\ 2.11.*) ;; # other 2.11 versions
14560 *) supports_anon_versioning=yes ;;
14561 esac
14562 if test $supports_anon_versioning = yes; then
14563 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14564cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14565$echo "local: *; };" >> $output_objdir/$libname.ver~
14566 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14567 else
14568 $archive_expsym_cmds="$archive_cmds"
14569 fi
14570 else
14571 ld_shlibs=no
14572 fi
14573 ;;
14574
14575 *)
14576 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14577 ;;
14578 esac
14579 dynamic_linker='Win32 ld.exe'
14580 # FIXME: first we should search . and the directory the executable is in
14581 shlibpath_var=PATH
14582 ;;
14583
14584darwin* | rhapsody*)
14585 dynamic_linker="$host_os dyld"
14586 version_type=darwin
14587 need_lib_prefix=no
14588 need_version=no
14589 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14590 soname_spec='${libname}${release}${major}$shared_ext'
14591 shlibpath_overrides_runpath=yes
14592 shlibpath_var=DYLD_LIBRARY_PATH
14593 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14594 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14595 if test "$GCC" = yes; then
14596 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"`
14597 else
14598 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14599 fi
14600 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14601 ;;
14602
14603dgux*)
14604 version_type=linux
14605 need_lib_prefix=no
14606 need_version=no
14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14608 soname_spec='${libname}${release}${shared_ext}$major'
14609 shlibpath_var=LD_LIBRARY_PATH
14610 ;;
14611
14612freebsd1*)
14613 dynamic_linker=no
14614 ;;
14615
14616kfreebsd*-gnu)
14617 version_type=linux
14618 need_lib_prefix=no
14619 need_version=no
14620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14621 soname_spec='${libname}${release}${shared_ext}$major'
14622 shlibpath_var=LD_LIBRARY_PATH
14623 shlibpath_overrides_runpath=no
14624 hardcode_into_libs=yes
14625 dynamic_linker='GNU ld.so'
14626 ;;
14627
14628freebsd* | dragonfly*)
14629 # DragonFly does not have aout. When/if they implement a new
14630 # versioning mechanism, adjust this.
14631 if test -x /usr/bin/objformat; then
14632 objformat=`/usr/bin/objformat`
14633 else
14634 case $host_os in
14635 freebsd[123]*) objformat=aout ;;
14636 *) objformat=elf ;;
14637 esac
14638 fi
14639 # Handle Gentoo/FreeBSD as it was Linux
14640 case $host_vendor in
14641 gentoo)
14642 version_type=linux ;;
14643 *)
14644 version_type=freebsd-$objformat ;;
14645 esac
14646
14647 case $version_type in
14648 freebsd-elf*)
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14650 need_version=no
14651 need_lib_prefix=no
14652 ;;
14653 freebsd-*)
14654 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14655 need_version=yes
14656 ;;
14657 linux)
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 need_lib_prefix=no
14661 need_version=no
14662 ;;
14663 esac
14664 shlibpath_var=LD_LIBRARY_PATH
14665 case $host_os in
14666 freebsd2*)
14667 shlibpath_overrides_runpath=yes
14668 ;;
14669 freebsd3.[01]* | freebsdelf3.[01]*)
14670 shlibpath_overrides_runpath=yes
14671 hardcode_into_libs=yes
14672 ;;
14673 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14674 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14675 shlibpath_overrides_runpath=no
14676 hardcode_into_libs=yes
14677 ;;
14678 freebsd*) # from 4.6 on
14679 shlibpath_overrides_runpath=yes
14680 hardcode_into_libs=yes
14681 ;;
14682 esac
14683 ;;
14684
14685gnu*)
14686 version_type=linux
14687 need_lib_prefix=no
14688 need_version=no
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 shlibpath_var=LD_LIBRARY_PATH
14692 hardcode_into_libs=yes
14693 ;;
14694
14695hpux9* | hpux10* | hpux11*)
14696 # Give a soname corresponding to the major version so that dld.sl refuses to
14697 # link against other versions.
14698 version_type=sunos
14699 need_lib_prefix=no
14700 need_version=no
14701 case $host_cpu in
14702 ia64*)
14703 shrext_cmds='.so'
14704 hardcode_into_libs=yes
14705 dynamic_linker="$host_os dld.so"
14706 shlibpath_var=LD_LIBRARY_PATH
14707 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14709 soname_spec='${libname}${release}${shared_ext}$major'
14710 if test "X$HPUX_IA64_MODE" = X32; then
14711 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14712 else
14713 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14714 fi
14715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14716 ;;
14717 hppa*64*)
14718 shrext_cmds='.sl'
14719 hardcode_into_libs=yes
14720 dynamic_linker="$host_os dld.sl"
14721 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724 soname_spec='${libname}${release}${shared_ext}$major'
14725 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14727 ;;
14728 *)
14729 shrext_cmds='.sl'
14730 dynamic_linker="$host_os dld.sl"
14731 shlibpath_var=SHLIB_PATH
14732 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 ;;
14736 esac
14737 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14738 postinstall_cmds='chmod 555 $lib'
14739 ;;
14740
14741interix3*)
14742 version_type=linux
14743 need_lib_prefix=no
14744 need_version=no
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14746 soname_spec='${libname}${release}${shared_ext}$major'
14747 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14748 shlibpath_var=LD_LIBRARY_PATH
14749 shlibpath_overrides_runpath=no
14750 hardcode_into_libs=yes
14751 ;;
14752
14753irix5* | irix6* | nonstopux*)
14754 case $host_os in
14755 nonstopux*) version_type=nonstopux ;;
14756 *)
14757 if test "$lt_cv_prog_gnu_ld" = yes; then
14758 version_type=linux
14759 else
14760 version_type=irix
14761 fi ;;
14762 esac
14763 need_lib_prefix=no
14764 need_version=no
14765 soname_spec='${libname}${release}${shared_ext}$major'
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14767 case $host_os in
14768 irix5* | nonstopux*)
14769 libsuff= shlibsuff=
14770 ;;
14771 *)
14772 case $LD in # libtool.m4 will add one of these switches to LD
14773 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14774 libsuff= shlibsuff= libmagic=32-bit;;
14775 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14776 libsuff=32 shlibsuff=N32 libmagic=N32;;
14777 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14778 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14779 *) libsuff= shlibsuff= libmagic=never-match;;
14780 esac
14781 ;;
14782 esac
14783 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14784 shlibpath_overrides_runpath=no
14785 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14786 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14787 hardcode_into_libs=yes
14788 ;;
14789
14790# No shared lib support for Linux oldld, aout, or coff.
14791linux*oldld* | linux*aout* | linux*coff*)
14792 dynamic_linker=no
14793 ;;
14794
14795# This must be Linux ELF.
14796linux*)
14797 version_type=linux
14798 need_lib_prefix=no
14799 need_version=no
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14801 soname_spec='${libname}${release}${shared_ext}$major'
14802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14803 shlibpath_var=LD_LIBRARY_PATH
14804 shlibpath_overrides_runpath=no
14805 # This implies no fast_install, which is unacceptable.
14806 # Some rework will be needed to allow for fast_install
14807 # before this can be enabled.
14808 hardcode_into_libs=yes
14809
14810 # Append ld.so.conf contents to the search path
14811 if test -f /etc/ld.so.conf; then
14812 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14813 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14814 fi
14815
14816 # We used to test for /lib/ld.so.1 and disable shared libraries on
14817 # powerpc, because MkLinux only supported shared libraries with the
14818 # GNU dynamic linker. Since this was broken with cross compilers,
14819 # most powerpc-linux boxes support dynamic linking these days and
14820 # people can always --disable-shared, the test was removed, and we
14821 # assume the GNU/Linux dynamic linker is in use.
14822 dynamic_linker='GNU/Linux ld.so'
14823 ;;
14824
14825knetbsd*-gnu)
14826 version_type=linux
14827 need_lib_prefix=no
14828 need_version=no
14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14830 soname_spec='${libname}${release}${shared_ext}$major'
14831 shlibpath_var=LD_LIBRARY_PATH
14832 shlibpath_overrides_runpath=no
14833 hardcode_into_libs=yes
14834 dynamic_linker='GNU ld.so'
14835 ;;
14836
14837netbsd*)
14838 version_type=sunos
14839 need_lib_prefix=no
14840 need_version=no
14841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14844 dynamic_linker='NetBSD (a.out) ld.so'
14845 else
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 dynamic_linker='NetBSD ld.elf_so'
14849 fi
14850 shlibpath_var=LD_LIBRARY_PATH
14851 shlibpath_overrides_runpath=yes
14852 hardcode_into_libs=yes
14853 ;;
14854
14855newsos6)
14856 version_type=linux
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 shlibpath_overrides_runpath=yes
14860 ;;
14861
14862nto-qnx*)
14863 version_type=linux
14864 need_lib_prefix=no
14865 need_version=no
14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867 soname_spec='${libname}${release}${shared_ext}$major'
14868 shlibpath_var=LD_LIBRARY_PATH
14869 shlibpath_overrides_runpath=yes
14870 ;;
14871
14872openbsd*)
14873 version_type=sunos
14874 sys_lib_dlsearch_path_spec="/usr/lib"
14875 need_lib_prefix=no
14876 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14877 case $host_os in
14878 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14879 *) need_version=no ;;
14880 esac
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14883 shlibpath_var=LD_LIBRARY_PATH
14884 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14885 case $host_os in
14886 openbsd2.[89] | openbsd2.[89].*)
14887 shlibpath_overrides_runpath=no
14888 ;;
14889 *)
14890 shlibpath_overrides_runpath=yes
14891 ;;
14892 esac
14893 else
14894 shlibpath_overrides_runpath=yes
14895 fi
14896 ;;
14897
14898os2*)
14899 libname_spec='$name'
14900 shrext_cmds=".dll"
14901 need_lib_prefix=no
14902 library_names_spec='$libname${shared_ext} $libname.a'
14903 dynamic_linker='OS/2 ld.exe'
14904 shlibpath_var=LIBPATH
14905 ;;
14906
14907osf3* | osf4* | osf5*)
14908 version_type=osf
14909 need_lib_prefix=no
14910 need_version=no
14911 soname_spec='${libname}${release}${shared_ext}$major'
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913 shlibpath_var=LD_LIBRARY_PATH
14914 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14915 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14916 ;;
14917
14918solaris*)
14919 version_type=linux
14920 need_lib_prefix=no
14921 need_version=no
14922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14923 soname_spec='${libname}${release}${shared_ext}$major'
14924 shlibpath_var=LD_LIBRARY_PATH
14925 shlibpath_overrides_runpath=yes
14926 hardcode_into_libs=yes
14927 # ldd complains unless libraries are executable
14928 postinstall_cmds='chmod +x $lib'
14929 ;;
14930
14931sunos4*)
14932 version_type=sunos
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14934 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14935 shlibpath_var=LD_LIBRARY_PATH
14936 shlibpath_overrides_runpath=yes
14937 if test "$with_gnu_ld" = yes; then
14938 need_lib_prefix=no
14939 fi
14940 need_version=yes
14941 ;;
14942
14943sysv4 | sysv4.3*)
14944 version_type=linux
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946 soname_spec='${libname}${release}${shared_ext}$major'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 case $host_vendor in
14949 sni)
14950 shlibpath_overrides_runpath=no
14951 need_lib_prefix=no
14952 export_dynamic_flag_spec='${wl}-Blargedynsym'
14953 runpath_var=LD_RUN_PATH
14954 ;;
14955 siemens)
14956 need_lib_prefix=no
14957 ;;
14958 motorola)
14959 need_lib_prefix=no
14960 need_version=no
14961 shlibpath_overrides_runpath=no
14962 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14963 ;;
14964 esac
14965 ;;
14966
14967sysv4*MP*)
14968 if test -d /usr/nec ;then
14969 version_type=linux
14970 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14971 soname_spec='$libname${shared_ext}.$major'
14972 shlibpath_var=LD_LIBRARY_PATH
14973 fi
14974 ;;
14975
14976sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14977 version_type=freebsd-elf
14978 need_lib_prefix=no
14979 need_version=no
14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14981 soname_spec='${libname}${release}${shared_ext}$major'
14982 shlibpath_var=LD_LIBRARY_PATH
14983 hardcode_into_libs=yes
14984 if test "$with_gnu_ld" = yes; then
14985 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14986 shlibpath_overrides_runpath=no
14987 else
14988 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14989 shlibpath_overrides_runpath=yes
14990 case $host_os in
14991 sco3.2v5*)
14992 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14993 ;;
14994 esac
14995 fi
14996 sys_lib_dlsearch_path_spec='/usr/lib'
14997 ;;
14998
14999uts4*)
15000 version_type=linux
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 ;;
15005
15006*)
15007 dynamic_linker=no
15008 ;;
15009esac
15010{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15011echo "${ECHO_T}$dynamic_linker" >&6; }
15012test "$dynamic_linker" = no && can_build_shared=no
15013
15014variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15015if test "$GCC" = yes; then
15016 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15017fi
15018
15019{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15020echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15021hardcode_action_F77=
15022if test -n "$hardcode_libdir_flag_spec_F77" || \
15023 test -n "$runpath_var_F77" || \
15024 test "X$hardcode_automatic_F77" = "Xyes" ; then
15025
15026 # We can hardcode non-existant directories.
15027 if test "$hardcode_direct_F77" != no &&
15028 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15029 # have to relink, otherwise we might link with an installed library
15030 # when we should be linking with a yet-to-be-installed one
15031 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15032 test "$hardcode_minus_L_F77" != no; then
15033 # Linking always hardcodes the temporary library directory.
15034 hardcode_action_F77=relink
15035 else
15036 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15037 hardcode_action_F77=immediate
15038 fi
15039else
15040 # We cannot hardcode anything, or else we can only hardcode existing
15041 # directories.
15042 hardcode_action_F77=unsupported
15043fi
15044{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15045echo "${ECHO_T}$hardcode_action_F77" >&6; }
15046
15047if test "$hardcode_action_F77" = relink; then
15048 # Fast installation is not supported
15049 enable_fast_install=no
15050elif test "$shlibpath_overrides_runpath" = yes ||
15051 test "$enable_shared" = no; then
15052 # Fast installation is not necessary
15053 enable_fast_install=needless
15054fi
15055
15056
15057# The else clause should only fire when bootstrapping the
15058# libtool distribution, otherwise you forgot to ship ltmain.sh
15059# with your package, and you will get complaints that there are
15060# no rules to generate ltmain.sh.
15061if test -f "$ltmain"; then
15062 # See if we are running on zsh, and set the options which allow our commands through
15063 # without removal of \ escapes.
15064 if test -n "${ZSH_VERSION+set}" ; then
15065 setopt NO_GLOB_SUBST
15066 fi
15067 # Now quote all the things that may contain metacharacters while being
15068 # careful not to overquote the AC_SUBSTed values. We take copies of the
15069 # variables and quote the copies for generation of the libtool script.
15070 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15071 SED SHELL STRIP \
15072 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15073 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15074 deplibs_check_method reload_flag reload_cmds need_locks \
15075 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15076 lt_cv_sys_global_symbol_to_c_name_address \
15077 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15078 old_postinstall_cmds old_postuninstall_cmds \
15079 compiler_F77 \
15080 CC_F77 \
15081 LD_F77 \
15082 lt_prog_compiler_wl_F77 \
15083 lt_prog_compiler_pic_F77 \
15084 lt_prog_compiler_static_F77 \
15085 lt_prog_compiler_no_builtin_flag_F77 \
15086 export_dynamic_flag_spec_F77 \
15087 thread_safe_flag_spec_F77 \
15088 whole_archive_flag_spec_F77 \
15089 enable_shared_with_static_runtimes_F77 \
15090 old_archive_cmds_F77 \
15091 old_archive_from_new_cmds_F77 \
15092 predep_objects_F77 \
15093 postdep_objects_F77 \
15094 predeps_F77 \
15095 postdeps_F77 \
15096 compiler_lib_search_path_F77 \
15097 archive_cmds_F77 \
15098 archive_expsym_cmds_F77 \
15099 postinstall_cmds_F77 \
15100 postuninstall_cmds_F77 \
15101 old_archive_from_expsyms_cmds_F77 \
15102 allow_undefined_flag_F77 \
15103 no_undefined_flag_F77 \
15104 export_symbols_cmds_F77 \
15105 hardcode_libdir_flag_spec_F77 \
15106 hardcode_libdir_flag_spec_ld_F77 \
15107 hardcode_libdir_separator_F77 \
15108 hardcode_automatic_F77 \
15109 module_cmds_F77 \
15110 module_expsym_cmds_F77 \
15111 lt_cv_prog_compiler_c_o_F77 \
15112 exclude_expsyms_F77 \
15113 include_expsyms_F77; do
15114
15115 case $var in
15116 old_archive_cmds_F77 | \
15117 old_archive_from_new_cmds_F77 | \
15118 archive_cmds_F77 | \
15119 archive_expsym_cmds_F77 | \
15120 module_cmds_F77 | \
15121 module_expsym_cmds_F77 | \
15122 old_archive_from_expsyms_cmds_F77 | \
15123 export_symbols_cmds_F77 | \
15124 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15125 postinstall_cmds | postuninstall_cmds | \
15126 old_postinstall_cmds | old_postuninstall_cmds | \
15127 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15128 # Double-quote double-evaled strings.
15129 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15130 ;;
15131 *)
15132 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15133 ;;
15134 esac
15135 done
15136
15137 case $lt_echo in
15138 *'\$0 --fallback-echo"')
15139 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15140 ;;
15141 esac
15142
15143cfgfile="$ofile"
15144
15145 cat <<__EOF__ >> "$cfgfile"
15146# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15147
15148# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15149
15150# Shell to use when invoking shell scripts.
15151SHELL=$lt_SHELL
15152
15153# Whether or not to build shared libraries.
15154build_libtool_libs=$enable_shared
15155
15156# Whether or not to build static libraries.
15157build_old_libs=$enable_static
15158
15159# Whether or not to add -lc for building shared libraries.
15160build_libtool_need_lc=$archive_cmds_need_lc_F77
15161
15162# Whether or not to disallow shared libs when runtime libs are static
15163allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15164
15165# Whether or not to optimize for fast installation.
15166fast_install=$enable_fast_install
15167
15168# The host system.
15169host_alias=$host_alias
15170host=$host
15171host_os=$host_os
15172
15173# The build system.
15174build_alias=$build_alias
15175build=$build
15176build_os=$build_os
15177
15178# An echo program that does not interpret backslashes.
15179echo=$lt_echo
15180
15181# The archiver.
15182AR=$lt_AR
15183AR_FLAGS=$lt_AR_FLAGS
15184
15185# A C compiler.
15186LTCC=$lt_LTCC
15187
15188# LTCC compiler flags.
15189LTCFLAGS=$lt_LTCFLAGS
15190
15191# A language-specific compiler.
15192CC=$lt_compiler_F77
15193
15194# Is the compiler the GNU C compiler?
15195with_gcc=$GCC_F77
15196
15197# An ERE matcher.
15198EGREP=$lt_EGREP
15199
15200# The linker used to build libraries.
15201LD=$lt_LD_F77
15202
15203# Whether we need hard or soft links.
15204LN_S=$lt_LN_S
15205
15206# A BSD-compatible nm program.
15207NM=$lt_NM
15208
15209# A symbol stripping program
15210STRIP=$lt_STRIP
15211
15212# Used to examine libraries when file_magic_cmd begins "file"
15213MAGIC_CMD=$MAGIC_CMD
15214
15215# Used on cygwin: DLL creation program.
15216DLLTOOL="$DLLTOOL"
15217
15218# Used on cygwin: object dumper.
15219OBJDUMP="$OBJDUMP"
15220
15221# Used on cygwin: assembler.
15222AS="$AS"
15223
15224# The name of the directory that contains temporary libtool files.
15225objdir=$objdir
15226
15227# How to create reloadable object files.
15228reload_flag=$lt_reload_flag
15229reload_cmds=$lt_reload_cmds
15230
15231# How to pass a linker flag through the compiler.
15232wl=$lt_lt_prog_compiler_wl_F77
15233
15234# Object file suffix (normally "o").
15235objext="$ac_objext"
15236
15237# Old archive suffix (normally "a").
15238libext="$libext"
15239
15240# Shared library suffix (normally ".so").
15241shrext_cmds='$shrext_cmds'
15242
15243# Executable file suffix (normally "").
15244exeext="$exeext"
15245
15246# Additional compiler flags for building library objects.
15247pic_flag=$lt_lt_prog_compiler_pic_F77
15248pic_mode=$pic_mode
15249
15250# What is the maximum length of a command?
15251max_cmd_len=$lt_cv_sys_max_cmd_len
15252
15253# Does compiler simultaneously support -c and -o options?
15254compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15255
15256# Must we lock files when doing compilation?
15257need_locks=$lt_need_locks
15258
15259# Do we need the lib prefix for modules?
15260need_lib_prefix=$need_lib_prefix
15261
15262# Do we need a version for libraries?
15263need_version=$need_version
15264
15265# Whether dlopen is supported.
15266dlopen_support=$enable_dlopen
15267
15268# Whether dlopen of programs is supported.
15269dlopen_self=$enable_dlopen_self
15270
15271# Whether dlopen of statically linked programs is supported.
15272dlopen_self_static=$enable_dlopen_self_static
15273
15274# Compiler flag to prevent dynamic linking.
15275link_static_flag=$lt_lt_prog_compiler_static_F77
15276
15277# Compiler flag to turn off builtin functions.
15278no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15279
15280# Compiler flag to allow reflexive dlopens.
15281export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15282
15283# Compiler flag to generate shared objects directly from archives.
15284whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15285
15286# Compiler flag to generate thread-safe objects.
15287thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15288
15289# Library versioning type.
15290version_type=$version_type
15291
15292# Format of library name prefix.
15293libname_spec=$lt_libname_spec
15294
15295# List of archive names. First name is the real one, the rest are links.
15296# The last name is the one that the linker finds with -lNAME.
15297library_names_spec=$lt_library_names_spec
15298
15299# The coded name of the library, if different from the real name.
15300soname_spec=$lt_soname_spec
15301
15302# Commands used to build and install an old-style archive.
15303RANLIB=$lt_RANLIB
15304old_archive_cmds=$lt_old_archive_cmds_F77
15305old_postinstall_cmds=$lt_old_postinstall_cmds
15306old_postuninstall_cmds=$lt_old_postuninstall_cmds
15307
15308# Create an old-style archive from a shared archive.
15309old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15310
15311# Create a temporary old-style archive to link instead of a shared archive.
15312old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15313
15314# Commands used to build and install a shared archive.
15315archive_cmds=$lt_archive_cmds_F77
15316archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15317postinstall_cmds=$lt_postinstall_cmds
15318postuninstall_cmds=$lt_postuninstall_cmds
15319
15320# Commands used to build a loadable module (assumed same as above if empty)
15321module_cmds=$lt_module_cmds_F77
15322module_expsym_cmds=$lt_module_expsym_cmds_F77
15323
15324# Commands to strip libraries.
15325old_striplib=$lt_old_striplib
15326striplib=$lt_striplib
15327
15328# Dependencies to place before the objects being linked to create a
15329# shared library.
15330predep_objects=$lt_predep_objects_F77
15331
15332# Dependencies to place after the objects being linked to create a
15333# shared library.
15334postdep_objects=$lt_postdep_objects_F77
15335
15336# Dependencies to place before the objects being linked to create a
15337# shared library.
15338predeps=$lt_predeps_F77
15339
15340# Dependencies to place after the objects being linked to create a
15341# shared library.
15342postdeps=$lt_postdeps_F77
15343
15344# The library search path used internally by the compiler when linking
15345# a shared library.
15346compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15347
15348# Method to check whether dependent libraries are shared objects.
15349deplibs_check_method=$lt_deplibs_check_method
15350
15351# Command to use when deplibs_check_method == file_magic.
15352file_magic_cmd=$lt_file_magic_cmd
15353
15354# Flag that allows shared libraries with undefined symbols to be built.
15355allow_undefined_flag=$lt_allow_undefined_flag_F77
15356
15357# Flag that forces no undefined symbols.
15358no_undefined_flag=$lt_no_undefined_flag_F77
15359
15360# Commands used to finish a libtool library installation in a directory.
15361finish_cmds=$lt_finish_cmds
15362
15363# Same as above, but a single script fragment to be evaled but not shown.
15364finish_eval=$lt_finish_eval
15365
15366# Take the output of nm and produce a listing of raw symbols and C names.
15367global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15368
15369# Transform the output of nm in a proper C declaration
15370global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15371
15372# Transform the output of nm in a C name address pair
15373global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15374
15375# This is the shared library runtime path variable.
15376runpath_var=$runpath_var
15377
15378# This is the shared library path variable.
15379shlibpath_var=$shlibpath_var
15380
15381# Is shlibpath searched before the hard-coded library search path?
15382shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15383
15384# How to hardcode a shared library path into an executable.
15385hardcode_action=$hardcode_action_F77
15386
15387# Whether we should hardcode library paths into libraries.
15388hardcode_into_libs=$hardcode_into_libs
15389
15390# Flag to hardcode \$libdir into a binary during linking.
15391# This must work even if \$libdir does not exist.
15392hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15393
15394# If ld is used when linking, flag to hardcode \$libdir into
15395# a binary during linking. This must work even if \$libdir does
15396# not exist.
15397hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15398
15399# Whether we need a single -rpath flag with a separated argument.
15400hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15401
15402# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15403# resulting binary.
15404hardcode_direct=$hardcode_direct_F77
15405
15406# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15407# resulting binary.
15408hardcode_minus_L=$hardcode_minus_L_F77
15409
15410# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15411# the resulting binary.
15412hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15413
15414# Set to yes if building a shared library automatically hardcodes DIR into the library
15415# and all subsequent libraries and executables linked against it.
15416hardcode_automatic=$hardcode_automatic_F77
15417
15418# Variables whose values should be saved in libtool wrapper scripts and
15419# restored at relink time.
15420variables_saved_for_relink="$variables_saved_for_relink"
15421
15422# Whether libtool must link a program against all its dependency libraries.
15423link_all_deplibs=$link_all_deplibs_F77
15424
15425# Compile-time system search path for libraries
15426sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15427
15428# Run-time system search path for libraries
15429sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15430
15431# Fix the shell variable \$srcfile for the compiler.
15432fix_srcfile_path="$fix_srcfile_path_F77"
15433
15434# Set to yes if exported symbols are required.
15435always_export_symbols=$always_export_symbols_F77
15436
15437# The commands to list exported symbols.
15438export_symbols_cmds=$lt_export_symbols_cmds_F77
15439
15440# The commands to extract the exported symbol list from a shared archive.
15441extract_expsyms_cmds=$lt_extract_expsyms_cmds
15442
15443# Symbols that should not be listed in the preloaded symbols.
15444exclude_expsyms=$lt_exclude_expsyms_F77
15445
15446# Symbols that must always be exported.
15447include_expsyms=$lt_include_expsyms_F77
15448
15449# ### END LIBTOOL TAG CONFIG: $tagname
15450
15451__EOF__
15452
15453
15454else
15455 # If there is no Makefile yet, we rely on a make rule to execute
15456 # `config.status --recheck' to rerun these tests and create the
15457 # libtool script then.
15458 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15459 if test -f "$ltmain_in"; then
15460 test -f Makefile && make "$ltmain"
15461 fi
15462fi
15463
15464
15465ac_ext=c
15466ac_cpp='$CPP $CPPFLAGS'
15467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15469ac_compiler_gnu=$ac_cv_c_compiler_gnu
15470
15471CC="$lt_save_CC"
15472
15473 else
15474 tagname=""
15475 fi
15476 ;;
15477
15478 GCJ)
15479 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15480
15481
15482# Source file extension for Java test sources.
15483ac_ext=java
15484
15485# Object file extension for compiled Java test sources.
15486objext=o
15487objext_GCJ=$objext
15488
15489# Code to be used in simple compile tests
15490lt_simple_compile_test_code="class foo {}\n"
15491
15492# Code to be used in simple link tests
15493lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15494
15495# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15496
15497# If no C compiler was specified, use CC.
15498LTCC=${LTCC-"$CC"}
15499
15500# If no C compiler flags were specified, use CFLAGS.
15501LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15502
15503# Allow CC to be a program name with arguments.
15504compiler=$CC
15505
15506
15507# save warnings/boilerplate of simple test code
15508ac_outfile=conftest.$ac_objext
15509printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15510eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15511_lt_compiler_boilerplate=`cat conftest.err`
15512$rm conftest*
15513
15514ac_outfile=conftest.$ac_objext
15515printf "$lt_simple_link_test_code" >conftest.$ac_ext
15516eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15517_lt_linker_boilerplate=`cat conftest.err`
15518$rm conftest*
15519
15520
15521# Allow CC to be a program name with arguments.
15522lt_save_CC="$CC"
15523CC=${GCJ-"gcj"}
15524compiler=$CC
15525compiler_GCJ=$CC
15526for cc_temp in $compiler""; do
15527 case $cc_temp in
15528 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15529 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15530 \-*) ;;
15531 *) break;;
15532 esac
15533done
15534cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15535
15536
15537# GCJ did not exist at the time GCC didn't implicitly link libc in.
15538archive_cmds_need_lc_GCJ=no
15539
15540old_archive_cmds_GCJ=$old_archive_cmds
15541
15542
15543lt_prog_compiler_no_builtin_flag_GCJ=
15544
15545if test "$GCC" = yes; then
15546 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15547
15548
15549{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15550echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15551if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15553else
15554 lt_cv_prog_compiler_rtti_exceptions=no
15555 ac_outfile=conftest.$ac_objext
15556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15557 lt_compiler_flag="-fno-rtti -fno-exceptions"
15558 # Insert the option either (1) after the last *FLAGS variable, or
15559 # (2) before a word containing "conftest.", or (3) at the end.
15560 # Note that $ac_compile itself does not contain backslashes and begins
15561 # with a dollar sign (not a hyphen), so the echo should work correctly.
15562 # The option is referenced via a variable to avoid confusing sed.
15563 lt_compile=`echo "$ac_compile" | $SED \
15564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15566 -e 's:$: $lt_compiler_flag:'`
15567 (eval echo "\"\$as_me:15567: $lt_compile\"" >&5)
15568 (eval "$lt_compile" 2>conftest.err)
15569 ac_status=$?
15570 cat conftest.err >&5
15571 echo "$as_me:15571: \$? = $ac_status" >&5
15572 if (exit $ac_status) && test -s "$ac_outfile"; then
15573 # The compiler can only warn and ignore the option if not recognized
15574 # So say no if there are warnings other than the usual output.
15575 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15577 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15578 lt_cv_prog_compiler_rtti_exceptions=yes
15579 fi
15580 fi
15581 $rm conftest*
15582
15583fi
15584{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15585echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15586
15587if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15588 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15589else
15590 :
15591fi
15592
15593fi
15594
15595lt_prog_compiler_wl_GCJ=
15596lt_prog_compiler_pic_GCJ=
15597lt_prog_compiler_static_GCJ=
15598
15599{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15600echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15601
15602 if test "$GCC" = yes; then
15603 lt_prog_compiler_wl_GCJ='-Wl,'
15604 lt_prog_compiler_static_GCJ='-static'
15605
15606 case $host_os in
15607 aix*)
15608 # All AIX code is PIC.
15609 if test "$host_cpu" = ia64; then
15610 # AIX 5 now supports IA64 processor
15611 lt_prog_compiler_static_GCJ='-Bstatic'
15612 fi
15613 ;;
15614
15615 amigaos*)
15616 # FIXME: we need at least 68020 code to build shared libraries, but
15617 # adding the `-m68020' flag to GCC prevents building anything better,
15618 # like `-m68040'.
15619 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15620 ;;
15621
15622 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15623 # PIC is the default for these OSes.
15624 ;;
15625
15626 mingw* | pw32* | os2*)
15627 # This hack is so that the source file can tell whether it is being
15628 # built for inclusion in a dll (and should export symbols for example).
15629 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15630 ;;
15631
15632 darwin* | rhapsody*)
15633 # PIC is the default on this platform
15634 # Common symbols not allowed in MH_DYLIB files
15635 lt_prog_compiler_pic_GCJ='-fno-common'
15636 ;;
15637
15638 interix3*)
15639 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15640 # Instead, we relocate shared libraries at runtime.
15641 ;;
15642
15643 msdosdjgpp*)
15644 # Just because we use GCC doesn't mean we suddenly get shared libraries
15645 # on systems that don't support them.
15646 lt_prog_compiler_can_build_shared_GCJ=no
15647 enable_shared=no
15648 ;;
15649
15650 sysv4*MP*)
15651 if test -d /usr/nec; then
15652 lt_prog_compiler_pic_GCJ=-Kconform_pic
15653 fi
15654 ;;
15655
15656 hpux*)
15657 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15658 # not for PA HP-UX.
15659 case $host_cpu in
15660 hppa*64*|ia64*)
15661 # +Z the default
15662 ;;
15663 *)
15664 lt_prog_compiler_pic_GCJ='-fPIC'
15665 ;;
15666 esac
15667 ;;
15668
15669 *)
15670 lt_prog_compiler_pic_GCJ='-fPIC'
15671 ;;
15672 esac
15673 else
15674 # PORTME Check for flag to pass linker flags through the system compiler.
15675 case $host_os in
15676 aix*)
15677 lt_prog_compiler_wl_GCJ='-Wl,'
15678 if test "$host_cpu" = ia64; then
15679 # AIX 5 now supports IA64 processor
15680 lt_prog_compiler_static_GCJ='-Bstatic'
15681 else
15682 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15683 fi
15684 ;;
15685 darwin*)
15686 # PIC is the default on this platform
15687 # Common symbols not allowed in MH_DYLIB files
15688 case $cc_basename in
15689 xlc*)
15690 lt_prog_compiler_pic_GCJ='-qnocommon'
15691 lt_prog_compiler_wl_GCJ='-Wl,'
15692 ;;
15693 esac
15694 ;;
15695
15696 mingw* | pw32* | os2*)
15697 # This hack is so that the source file can tell whether it is being
15698 # built for inclusion in a dll (and should export symbols for example).
15699 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15700 ;;
15701
15702 hpux9* | hpux10* | hpux11*)
15703 lt_prog_compiler_wl_GCJ='-Wl,'
15704 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15705 # not for PA HP-UX.
15706 case $host_cpu in
15707 hppa*64*|ia64*)
15708 # +Z the default
15709 ;;
15710 *)
15711 lt_prog_compiler_pic_GCJ='+Z'
15712 ;;
15713 esac
15714 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15715 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15716 ;;
15717
15718 irix5* | irix6* | nonstopux*)
15719 lt_prog_compiler_wl_GCJ='-Wl,'
15720 # PIC (with -KPIC) is the default.
15721 lt_prog_compiler_static_GCJ='-non_shared'
15722 ;;
15723
15724 newsos6)
15725 lt_prog_compiler_pic_GCJ='-KPIC'
15726 lt_prog_compiler_static_GCJ='-Bstatic'
15727 ;;
15728
15729 linux*)
15730 case $cc_basename in
15731 icc* | ecc*)
15732 lt_prog_compiler_wl_GCJ='-Wl,'
15733 lt_prog_compiler_pic_GCJ='-KPIC'
15734 lt_prog_compiler_static_GCJ='-static'
15735 ;;
15736 pgcc* | pgf77* | pgf90* | pgf95*)
15737 # Portland Group compilers (*not* the Pentium gcc compiler,
15738 # which looks to be a dead project)
15739 lt_prog_compiler_wl_GCJ='-Wl,'
15740 lt_prog_compiler_pic_GCJ='-fpic'
15741 lt_prog_compiler_static_GCJ='-Bstatic'
15742 ;;
15743 ccc*)
15744 lt_prog_compiler_wl_GCJ='-Wl,'
15745 # All Alpha code is PIC.
15746 lt_prog_compiler_static_GCJ='-non_shared'
15747 ;;
15748 esac
15749 ;;
15750
15751 osf3* | osf4* | osf5*)
15752 lt_prog_compiler_wl_GCJ='-Wl,'
15753 # All OSF/1 code is PIC.
15754 lt_prog_compiler_static_GCJ='-non_shared'
15755 ;;
15756
15757 solaris*)
15758 lt_prog_compiler_pic_GCJ='-KPIC'
15759 lt_prog_compiler_static_GCJ='-Bstatic'
15760 case $cc_basename in
15761 f77* | f90* | f95*)
15762 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15763 *)
15764 lt_prog_compiler_wl_GCJ='-Wl,';;
15765 esac
15766 ;;
15767
15768 sunos4*)
15769 lt_prog_compiler_wl_GCJ='-Qoption ld '
15770 lt_prog_compiler_pic_GCJ='-PIC'
15771 lt_prog_compiler_static_GCJ='-Bstatic'
15772 ;;
15773
15774 sysv4 | sysv4.2uw2* | sysv4.3*)
15775 lt_prog_compiler_wl_GCJ='-Wl,'
15776 lt_prog_compiler_pic_GCJ='-KPIC'
15777 lt_prog_compiler_static_GCJ='-Bstatic'
15778 ;;
15779
15780 sysv4*MP*)
15781 if test -d /usr/nec ;then
15782 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15783 lt_prog_compiler_static_GCJ='-Bstatic'
15784 fi
15785 ;;
15786
15787 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15788 lt_prog_compiler_wl_GCJ='-Wl,'
15789 lt_prog_compiler_pic_GCJ='-KPIC'
15790 lt_prog_compiler_static_GCJ='-Bstatic'
15791 ;;
15792
15793 unicos*)
15794 lt_prog_compiler_wl_GCJ='-Wl,'
15795 lt_prog_compiler_can_build_shared_GCJ=no
15796 ;;
15797
15798 uts4*)
15799 lt_prog_compiler_pic_GCJ='-pic'
15800 lt_prog_compiler_static_GCJ='-Bstatic'
15801 ;;
15802
15803 *)
15804 lt_prog_compiler_can_build_shared_GCJ=no
15805 ;;
15806 esac
15807 fi
15808
15809{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15810echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15811
15812#
15813# Check to make sure the PIC flag actually works.
15814#
15815if test -n "$lt_prog_compiler_pic_GCJ"; then
15816
15817{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15818echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15819if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15821else
15822 lt_prog_compiler_pic_works_GCJ=no
15823 ac_outfile=conftest.$ac_objext
15824 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15825 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15826 # Insert the option either (1) after the last *FLAGS variable, or
15827 # (2) before a word containing "conftest.", or (3) at the end.
15828 # Note that $ac_compile itself does not contain backslashes and begins
15829 # with a dollar sign (not a hyphen), so the echo should work correctly.
15830 # The option is referenced via a variable to avoid confusing sed.
15831 lt_compile=`echo "$ac_compile" | $SED \
15832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15834 -e 's:$: $lt_compiler_flag:'`
15835 (eval echo "\"\$as_me:15835: $lt_compile\"" >&5)
15836 (eval "$lt_compile" 2>conftest.err)
15837 ac_status=$?
15838 cat conftest.err >&5
15839 echo "$as_me:15839: \$? = $ac_status" >&5
15840 if (exit $ac_status) && test -s "$ac_outfile"; then
15841 # The compiler can only warn and ignore the option if not recognized
15842 # So say no if there are warnings other than the usual output.
15843 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15845 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15846 lt_prog_compiler_pic_works_GCJ=yes
15847 fi
15848 fi
15849 $rm conftest*
15850
15851fi
15852{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15853echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15854
15855if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15856 case $lt_prog_compiler_pic_GCJ in
15857 "" | " "*) ;;
15858 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15859 esac
15860else
15861 lt_prog_compiler_pic_GCJ=
15862 lt_prog_compiler_can_build_shared_GCJ=no
15863fi
15864
15865fi
15866case $host_os in
15867 # For platforms which do not support PIC, -DPIC is meaningless:
15868 *djgpp*)
15869 lt_prog_compiler_pic_GCJ=
15870 ;;
15871 *)
15872 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15873 ;;
15874esac
15875
15876#
15877# Check to make sure the static flag actually works.
15878#
15879wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15880{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15881echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15882if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15884else
15885 lt_prog_compiler_static_works_GCJ=no
15886 save_LDFLAGS="$LDFLAGS"
15887 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15888 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15889 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15890 # The linker can only warn and ignore the option if not recognized
15891 # So say no if there are warnings
15892 if test -s conftest.err; then
15893 # Append any errors to the config.log.
15894 cat conftest.err 1>&5
15895 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15897 if diff conftest.exp conftest.er2 >/dev/null; then
15898 lt_prog_compiler_static_works_GCJ=yes
15899 fi
15900 else
15901 lt_prog_compiler_static_works_GCJ=yes
15902 fi
15903 fi
15904 $rm conftest*
15905 LDFLAGS="$save_LDFLAGS"
15906
15907fi
15908{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15909echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
15910
15911if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15912 :
15913else
15914 lt_prog_compiler_static_GCJ=
15915fi
15916
15917
15918{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15919echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15920if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15921 echo $ECHO_N "(cached) $ECHO_C" >&6
15922else
15923 lt_cv_prog_compiler_c_o_GCJ=no
15924 $rm -r conftest 2>/dev/null
15925 mkdir conftest
15926 cd conftest
15927 mkdir out
15928 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15929
15930 lt_compiler_flag="-o out/conftest2.$ac_objext"
15931 # Insert the option either (1) after the last *FLAGS variable, or
15932 # (2) before a word containing "conftest.", or (3) at the end.
15933 # Note that $ac_compile itself does not contain backslashes and begins
15934 # with a dollar sign (not a hyphen), so the echo should work correctly.
15935 lt_compile=`echo "$ac_compile" | $SED \
15936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15938 -e 's:$: $lt_compiler_flag:'`
15939 (eval echo "\"\$as_me:15939: $lt_compile\"" >&5)
15940 (eval "$lt_compile" 2>out/conftest.err)
15941 ac_status=$?
15942 cat out/conftest.err >&5
15943 echo "$as_me:15943: \$? = $ac_status" >&5
15944 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15945 then
15946 # The compiler can only warn and ignore the option if not recognized
15947 # So say no if there are warnings
15948 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15949 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15950 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15951 lt_cv_prog_compiler_c_o_GCJ=yes
15952 fi
15953 fi
15954 chmod u+w . 2>&5
15955 $rm conftest*
15956 # SGI C++ compiler will create directory out/ii_files/ for
15957 # template instantiation
15958 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15959 $rm out/* && rmdir out
15960 cd ..
15961 rmdir conftest
15962 $rm conftest*
15963
15964fi
15965{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15966echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15967
15968
15969hard_links="nottested"
15970if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15971 # do not overwrite the value of need_locks provided by the user
15972 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15973echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15974 hard_links=yes
15975 $rm conftest*
15976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15977 touch conftest.a
15978 ln conftest.a conftest.b 2>&5 || hard_links=no
15979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15980 { echo "$as_me:$LINENO: result: $hard_links" >&5
15981echo "${ECHO_T}$hard_links" >&6; }
15982 if test "$hard_links" = no; then
15983 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15984echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15985 need_locks=warn
15986 fi
15987else
15988 need_locks=no
15989fi
15990
15991{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15992echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15993
15994 runpath_var=
15995 allow_undefined_flag_GCJ=
15996 enable_shared_with_static_runtimes_GCJ=no
15997 archive_cmds_GCJ=
15998 archive_expsym_cmds_GCJ=
15999 old_archive_From_new_cmds_GCJ=
16000 old_archive_from_expsyms_cmds_GCJ=
16001 export_dynamic_flag_spec_GCJ=
16002 whole_archive_flag_spec_GCJ=
16003 thread_safe_flag_spec_GCJ=
16004 hardcode_libdir_flag_spec_GCJ=
16005 hardcode_libdir_flag_spec_ld_GCJ=
16006 hardcode_libdir_separator_GCJ=
16007 hardcode_direct_GCJ=no
16008 hardcode_minus_L_GCJ=no
16009 hardcode_shlibpath_var_GCJ=unsupported
16010 link_all_deplibs_GCJ=unknown
16011 hardcode_automatic_GCJ=no
16012 module_cmds_GCJ=
16013 module_expsym_cmds_GCJ=
16014 always_export_symbols_GCJ=no
16015 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16016 # include_expsyms should be a list of space-separated symbols to be *always*
16017 # included in the symbol list
16018 include_expsyms_GCJ=
16019 # exclude_expsyms can be an extended regexp of symbols to exclude
16020 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16021 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16022 # as well as any symbol that contains `d'.
16023 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16024 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16025 # platforms (ab)use it in PIC code, but their linkers get confused if
16026 # the symbol is explicitly referenced. Since portable code cannot
16027 # rely on this symbol name, it's probably fine to never include it in
16028 # preloaded symbol tables.
16029 extract_expsyms_cmds=
16030 # Just being paranoid about ensuring that cc_basename is set.
16031 for cc_temp in $compiler""; do
16032 case $cc_temp in
16033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16035 \-*) ;;
16036 *) break;;
16037 esac
16038done
16039cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16040
16041 case $host_os in
16042 cygwin* | mingw* | pw32*)
16043 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16044 # When not using gcc, we currently assume that we are using
16045 # Microsoft Visual C++.
16046 if test "$GCC" != yes; then
16047 with_gnu_ld=no
16048 fi
16049 ;;
16050 interix*)
16051 # we just hope/assume this is gcc and not c89 (= MSVC++)
16052 with_gnu_ld=yes
16053 ;;
16054 openbsd*)
16055 with_gnu_ld=no
16056 ;;
16057 esac
16058
16059 ld_shlibs_GCJ=yes
16060 if test "$with_gnu_ld" = yes; then
16061 # If archive_cmds runs LD, not CC, wlarc should be empty
16062 wlarc='${wl}'
16063
16064 # Set some defaults for GNU ld with shared library support. These
16065 # are reset later if shared libraries are not supported. Putting them
16066 # here allows them to be overridden if necessary.
16067 runpath_var=LD_RUN_PATH
16068 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16069 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16070 # ancient GNU ld didn't support --whole-archive et. al.
16071 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16072 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16073 else
16074 whole_archive_flag_spec_GCJ=
16075 fi
16076 supports_anon_versioning=no
16077 case `$LD -v 2>/dev/null` in
16078 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16079 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16080 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16081 *\ 2.11.*) ;; # other 2.11 versions
16082 *) supports_anon_versioning=yes ;;
16083 esac
16084
16085 # See if GNU ld supports shared libraries.
16086 case $host_os in
16087 aix3* | aix4* | aix5*)
16088 # On AIX/PPC, the GNU linker is very broken
16089 if test "$host_cpu" != ia64; then
16090 ld_shlibs_GCJ=no
16091 cat <<EOF 1>&2
16092
16093*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16094*** to be unable to reliably create shared libraries on AIX.
16095*** Therefore, libtool is disabling shared libraries support. If you
16096*** really care for shared libraries, you may want to modify your PATH
16097*** so that a non-GNU linker is found, and then restart.
16098
16099EOF
16100 fi
16101 ;;
16102
16103 amigaos*)
16104 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)'
16105 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16106 hardcode_minus_L_GCJ=yes
16107
16108 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16109 # that the semantics of dynamic libraries on AmigaOS, at least up
16110 # to version 4, is to share data among multiple programs linked
16111 # with the same dynamic library. Since this doesn't match the
16112 # behavior of shared libraries on other platforms, we can't use
16113 # them.
16114 ld_shlibs_GCJ=no
16115 ;;
16116
16117 beos*)
16118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16119 allow_undefined_flag_GCJ=unsupported
16120 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16121 # support --undefined. This deserves some investigation. FIXME
16122 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16123 else
16124 ld_shlibs_GCJ=no
16125 fi
16126 ;;
16127
16128 cygwin* | mingw* | pw32*)
16129 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16130 # as there is no search path for DLLs.
16131 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16132 allow_undefined_flag_GCJ=unsupported
16133 always_export_symbols_GCJ=no
16134 enable_shared_with_static_runtimes_GCJ=yes
16135 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16136
16137 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16138 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16139 # If the export-symbols file already is a .def file (1st line
16140 # is EXPORTS), use it as is; otherwise, prepend...
16141 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16142 cp $export_symbols $output_objdir/$soname.def;
16143 else
16144 echo EXPORTS > $output_objdir/$soname.def;
16145 cat $export_symbols >> $output_objdir/$soname.def;
16146 fi~
16147 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16148 else
16149 ld_shlibs_GCJ=no
16150 fi
16151 ;;
16152
16153 interix3*)
16154 hardcode_direct_GCJ=no
16155 hardcode_shlibpath_var_GCJ=no
16156 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16157 export_dynamic_flag_spec_GCJ='${wl}-E'
16158 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16159 # Instead, shared libraries are loaded at an image base (0x10000000 by
16160 # default) and relocated if they conflict, which is a slow very memory
16161 # consuming and fragmenting process. To avoid this, we pick a random,
16162 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16163 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16164 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'
16165 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'
16166 ;;
16167
16168 linux*)
16169 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16170 tmp_addflag=
16171 case $cc_basename,$host_cpu in
16172 pgcc*) # Portland Group C compiler
16173 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'
16174 tmp_addflag=' $pic_flag'
16175 ;;
16176 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16177 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'
16178 tmp_addflag=' $pic_flag -Mnomain' ;;
16179 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16180 tmp_addflag=' -i_dynamic' ;;
16181 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16182 tmp_addflag=' -i_dynamic -nofor_main' ;;
16183 ifc* | ifort*) # Intel Fortran compiler
16184 tmp_addflag=' -nofor_main' ;;
16185 esac
16186 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16187
16188 if test $supports_anon_versioning = yes; then
16189 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16190 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16191 $echo "local: *; };" >> $output_objdir/$libname.ver~
16192 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16193 fi
16194 else
16195 ld_shlibs_GCJ=no
16196 fi
16197 ;;
16198
16199 netbsd*)
16200 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16201 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16202 wlarc=
16203 else
16204 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16205 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16206 fi
16207 ;;
16208
16209 solaris*)
16210 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16211 ld_shlibs_GCJ=no
16212 cat <<EOF 1>&2
16213
16214*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16215*** create shared libraries on Solaris systems. Therefore, libtool
16216*** is disabling shared libraries support. We urge you to upgrade GNU
16217*** binutils to release 2.9.1 or newer. Another option is to modify
16218*** your PATH or compiler configuration so that the native linker is
16219*** used, and then restart.
16220
16221EOF
16222 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16223 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16224 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16225 else
16226 ld_shlibs_GCJ=no
16227 fi
16228 ;;
16229
16230 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16231 case `$LD -v 2>&1` in
16232 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16233 ld_shlibs_GCJ=no
16234 cat <<_LT_EOF 1>&2
16235
16236*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16237*** reliably create shared libraries on SCO systems. Therefore, libtool
16238*** is disabling shared libraries support. We urge you to upgrade GNU
16239*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16240*** your PATH or compiler configuration so that the native linker is
16241*** used, and then restart.
16242
16243_LT_EOF
16244 ;;
16245 *)
16246 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16247 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16248 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16249 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16250 else
16251 ld_shlibs_GCJ=no
16252 fi
16253 ;;
16254 esac
16255 ;;
16256
16257 sunos4*)
16258 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16259 wlarc=
16260 hardcode_direct_GCJ=yes
16261 hardcode_shlibpath_var_GCJ=no
16262 ;;
16263
16264 *)
16265 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16266 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16267 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16268 else
16269 ld_shlibs_GCJ=no
16270 fi
16271 ;;
16272 esac
16273
16274 if test "$ld_shlibs_GCJ" = no; then
16275 runpath_var=
16276 hardcode_libdir_flag_spec_GCJ=
16277 export_dynamic_flag_spec_GCJ=
16278 whole_archive_flag_spec_GCJ=
16279 fi
16280 else
16281 # PORTME fill in a description of your system's linker (not GNU ld)
16282 case $host_os in
16283 aix3*)
16284 allow_undefined_flag_GCJ=unsupported
16285 always_export_symbols_GCJ=yes
16286 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'
16287 # Note: this linker hardcodes the directories in LIBPATH if there
16288 # are no directories specified by -L.
16289 hardcode_minus_L_GCJ=yes
16290 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16291 # Neither direct hardcoding nor static linking is supported with a
16292 # broken collect2.
16293 hardcode_direct_GCJ=unsupported
16294 fi
16295 ;;
16296
16297 aix4* | aix5*)
16298 if test "$host_cpu" = ia64; then
16299 # On IA64, the linker does run time linking by default, so we don't
16300 # have to do anything special.
16301 aix_use_runtimelinking=no
16302 exp_sym_flag='-Bexport'
16303 no_entry_flag=""
16304 else
16305 # If we're using GNU nm, then we don't want the "-C" option.
16306 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16307 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16308 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'
16309 else
16310 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'
16311 fi
16312 aix_use_runtimelinking=no
16313
16314 # Test if we are trying to use run time linking or normal
16315 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16316 # need to do runtime linking.
16317 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16318 for ld_flag in $LDFLAGS; do
16319 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16320 aix_use_runtimelinking=yes
16321 break
16322 fi
16323 done
16324 ;;
16325 esac
16326
16327 exp_sym_flag='-bexport'
16328 no_entry_flag='-bnoentry'
16329 fi
16330
16331 # When large executables or shared objects are built, AIX ld can
16332 # have problems creating the table of contents. If linking a library
16333 # or program results in "error TOC overflow" add -mminimal-toc to
16334 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16335 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16336
16337 archive_cmds_GCJ=''
16338 hardcode_direct_GCJ=yes
16339 hardcode_libdir_separator_GCJ=':'
16340 link_all_deplibs_GCJ=yes
16341
16342 if test "$GCC" = yes; then
16343 case $host_os in aix4.[012]|aix4.[012].*)
16344 # We only want to do this on AIX 4.2 and lower, the check
16345 # below for broken collect2 doesn't work under 4.3+
16346 collect2name=`${CC} -print-prog-name=collect2`
16347 if test -f "$collect2name" && \
16348 strings "$collect2name" | grep resolve_lib_name >/dev/null
16349 then
16350 # We have reworked collect2
16351 hardcode_direct_GCJ=yes
16352 else
16353 # We have old collect2
16354 hardcode_direct_GCJ=unsupported
16355 # It fails to find uninstalled libraries when the uninstalled
16356 # path is not listed in the libpath. Setting hardcode_minus_L
16357 # to unsupported forces relinking
16358 hardcode_minus_L_GCJ=yes
16359 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16360 hardcode_libdir_separator_GCJ=
16361 fi
16362 ;;
16363 esac
16364 shared_flag='-shared'
16365 if test "$aix_use_runtimelinking" = yes; then
16366 shared_flag="$shared_flag "'${wl}-G'
16367 fi
16368 else
16369 # not using gcc
16370 if test "$host_cpu" = ia64; then
16371 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16372 # chokes on -Wl,-G. The following line is correct:
16373 shared_flag='-G'
16374 else
16375 if test "$aix_use_runtimelinking" = yes; then
16376 shared_flag='${wl}-G'
16377 else
16378 shared_flag='${wl}-bM:SRE'
16379 fi
16380 fi
16381 fi
16382
16383 # It seems that -bexpall does not export symbols beginning with
16384 # underscore (_), so it is better to generate a list of symbols to export.
16385 always_export_symbols_GCJ=yes
16386 if test "$aix_use_runtimelinking" = yes; then
16387 # Warning - without using the other runtime loading flags (-brtl),
16388 # -berok will link without error, but may produce a broken library.
16389 allow_undefined_flag_GCJ='-berok'
16390 # Determine the default libpath from the value encoded in an empty executable.
16391 cat >conftest.$ac_ext <<_ACEOF
16392/* confdefs.h. */
16393_ACEOF
16394cat confdefs.h >>conftest.$ac_ext
16395cat >>conftest.$ac_ext <<_ACEOF
16396/* end confdefs.h. */
16397
16398int
16399main ()
16400{
16401
16402 ;
16403 return 0;
16404}
16405_ACEOF
16406rm -f conftest.$ac_objext conftest$ac_exeext
16407if { (ac_try="$ac_link"
16408case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16411esac
16412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_link") 2>conftest.er1
16414 ac_status=$?
16415 grep -v '^ *+' conftest.er1 >conftest.err
16416 rm -f conftest.er1
16417 cat conftest.err >&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } && {
16420 test -z "$ac_c_werror_flag" ||
16421 test ! -s conftest.err
16422 } && test -s conftest$ac_exeext &&
16423 $as_test_x conftest$ac_exeext; then
16424
16425aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16426}'`
16427# Check for a 64-bit object if we didn't find anything.
16428if 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; }
16429}'`; fi
16430else
16431 echo "$as_me: failed program was:" >&5
16432sed 's/^/| /' conftest.$ac_ext >&5
16433
16434
16435fi
16436
16437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16438 conftest$ac_exeext conftest.$ac_ext
16439if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16440
16441 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16442 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"
16443 else
16444 if test "$host_cpu" = ia64; then
16445 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16446 allow_undefined_flag_GCJ="-z nodefs"
16447 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"
16448 else
16449 # Determine the default libpath from the value encoded in an empty executable.
16450 cat >conftest.$ac_ext <<_ACEOF
16451/* confdefs.h. */
16452_ACEOF
16453cat confdefs.h >>conftest.$ac_ext
16454cat >>conftest.$ac_ext <<_ACEOF
16455/* end confdefs.h. */
16456
16457int
16458main ()
16459{
16460
16461 ;
16462 return 0;
16463}
16464_ACEOF
16465rm -f conftest.$ac_objext conftest$ac_exeext
16466if { (ac_try="$ac_link"
16467case "(($ac_try" in
16468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469 *) ac_try_echo=$ac_try;;
16470esac
16471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16472 (eval "$ac_link") 2>conftest.er1
16473 ac_status=$?
16474 grep -v '^ *+' conftest.er1 >conftest.err
16475 rm -f conftest.er1
16476 cat conftest.err >&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } && {
16479 test -z "$ac_c_werror_flag" ||
16480 test ! -s conftest.err
16481 } && test -s conftest$ac_exeext &&
16482 $as_test_x conftest$ac_exeext; then
16483
16484aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16485}'`
16486# Check for a 64-bit object if we didn't find anything.
16487if 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; }
16488}'`; fi
16489else
16490 echo "$as_me: failed program was:" >&5
16491sed 's/^/| /' conftest.$ac_ext >&5
16492
16493
16494fi
16495
16496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16497 conftest$ac_exeext conftest.$ac_ext
16498if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16499
16500 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16501 # Warning - without using the other run time loading flags,
16502 # -berok will link without error, but may produce a broken library.
16503 no_undefined_flag_GCJ=' ${wl}-bernotok'
16504 allow_undefined_flag_GCJ=' ${wl}-berok'
16505 # Exported symbols can be pulled into shared objects from archives
16506 whole_archive_flag_spec_GCJ='$convenience'
16507 archive_cmds_need_lc_GCJ=yes
16508 # This is similar to how AIX traditionally builds its shared libraries.
16509 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'
16510 fi
16511 fi
16512 ;;
16513
16514 amigaos*)
16515 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)'
16516 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16517 hardcode_minus_L_GCJ=yes
16518 # see comment about different semantics on the GNU ld section
16519 ld_shlibs_GCJ=no
16520 ;;
16521
16522 bsdi[45]*)
16523 export_dynamic_flag_spec_GCJ=-rdynamic
16524 ;;
16525
16526 cygwin* | mingw* | pw32*)
16527 # When not using gcc, we currently assume that we are using
16528 # Microsoft Visual C++.
16529 # hardcode_libdir_flag_spec is actually meaningless, as there is
16530 # no search path for DLLs.
16531 hardcode_libdir_flag_spec_GCJ=' '
16532 allow_undefined_flag_GCJ=unsupported
16533 # Tell ltmain to make .lib files, not .a files.
16534 libext=lib
16535 # Tell ltmain to make .dll files, not .so files.
16536 shrext_cmds=".dll"
16537 # FIXME: Setting linknames here is a bad hack.
16538 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16539 # The linker will automatically build a .lib file if we build a DLL.
16540 old_archive_From_new_cmds_GCJ='true'
16541 # FIXME: Should let the user specify the lib program.
16542 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16543 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16544 enable_shared_with_static_runtimes_GCJ=yes
16545 ;;
16546
16547 darwin* | rhapsody*)
16548 case $host_os in
16549 rhapsody* | darwin1.[012])
16550 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16551 ;;
16552 *) # Darwin 1.3 on
16553 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16554 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16555 else
16556 case ${MACOSX_DEPLOYMENT_TARGET} in
16557 10.[012])
16558 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16559 ;;
16560 10.*)
16561 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16562 ;;
16563 esac
16564 fi
16565 ;;
16566 esac
16567 archive_cmds_need_lc_GCJ=no
16568 hardcode_direct_GCJ=no
16569 hardcode_automatic_GCJ=yes
16570 hardcode_shlibpath_var_GCJ=unsupported
16571 whole_archive_flag_spec_GCJ=''
16572 link_all_deplibs_GCJ=yes
16573 if test "$GCC" = yes ; then
16574 output_verbose_link_cmd='echo'
16575 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16576 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16577 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16578 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}'
16579 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}'
16580 else
16581 case $cc_basename in
16582 xlc*)
16583 output_verbose_link_cmd='echo'
16584 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16585 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16586 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16587 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}'
16588 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}'
16589 ;;
16590 *)
16591 ld_shlibs_GCJ=no
16592 ;;
16593 esac
16594 fi
16595 ;;
16596
16597 dgux*)
16598 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16600 hardcode_shlibpath_var_GCJ=no
16601 ;;
16602
16603 freebsd1*)
16604 ld_shlibs_GCJ=no
16605 ;;
16606
16607 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16608 # support. Future versions do this automatically, but an explicit c++rt0.o
16609 # does not break anything, and helps significantly (at the cost of a little
16610 # extra space).
16611 freebsd2.2*)
16612 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16613 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16614 hardcode_direct_GCJ=yes
16615 hardcode_shlibpath_var_GCJ=no
16616 ;;
16617
16618 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16619 freebsd2*)
16620 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16621 hardcode_direct_GCJ=yes
16622 hardcode_minus_L_GCJ=yes
16623 hardcode_shlibpath_var_GCJ=no
16624 ;;
16625
16626 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16627 freebsd* | kfreebsd*-gnu | dragonfly*)
16628 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16629 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16630 hardcode_direct_GCJ=yes
16631 hardcode_shlibpath_var_GCJ=no
16632 ;;
16633
16634 hpux9*)
16635 if test "$GCC" = yes; then
16636 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'
16637 else
16638 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'
16639 fi
16640 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16641 hardcode_libdir_separator_GCJ=:
16642 hardcode_direct_GCJ=yes
16643
16644 # hardcode_minus_L: Not really in the search PATH,
16645 # but as the default location of the library.
16646 hardcode_minus_L_GCJ=yes
16647 export_dynamic_flag_spec_GCJ='${wl}-E'
16648 ;;
16649
16650 hpux10*)
16651 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16652 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16653 else
16654 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16655 fi
16656 if test "$with_gnu_ld" = no; then
16657 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16658 hardcode_libdir_separator_GCJ=:
16659
16660 hardcode_direct_GCJ=yes
16661 export_dynamic_flag_spec_GCJ='${wl}-E'
16662
16663 # hardcode_minus_L: Not really in the search PATH,
16664 # but as the default location of the library.
16665 hardcode_minus_L_GCJ=yes
16666 fi
16667 ;;
16668
16669 hpux11*)
16670 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16671 case $host_cpu in
16672 hppa*64*)
16673 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16674 ;;
16675 ia64*)
16676 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16677 ;;
16678 *)
16679 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16680 ;;
16681 esac
16682 else
16683 case $host_cpu in
16684 hppa*64*)
16685 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16686 ;;
16687 ia64*)
16688 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16689 ;;
16690 *)
16691 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16692 ;;
16693 esac
16694 fi
16695 if test "$with_gnu_ld" = no; then
16696 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16697 hardcode_libdir_separator_GCJ=:
16698
16699 case $host_cpu in
16700 hppa*64*|ia64*)
16701 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16702 hardcode_direct_GCJ=no
16703 hardcode_shlibpath_var_GCJ=no
16704 ;;
16705 *)
16706 hardcode_direct_GCJ=yes
16707 export_dynamic_flag_spec_GCJ='${wl}-E'
16708
16709 # hardcode_minus_L: Not really in the search PATH,
16710 # but as the default location of the library.
16711 hardcode_minus_L_GCJ=yes
16712 ;;
16713 esac
16714 fi
16715 ;;
16716
16717 irix5* | irix6* | nonstopux*)
16718 if test "$GCC" = yes; then
16719 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'
16720 else
16721 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'
16722 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16723 fi
16724 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16725 hardcode_libdir_separator_GCJ=:
16726 link_all_deplibs_GCJ=yes
16727 ;;
16728
16729 netbsd*)
16730 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16731 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16732 else
16733 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16734 fi
16735 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16736 hardcode_direct_GCJ=yes
16737 hardcode_shlibpath_var_GCJ=no
16738 ;;
16739
16740 newsos6)
16741 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16742 hardcode_direct_GCJ=yes
16743 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16744 hardcode_libdir_separator_GCJ=:
16745 hardcode_shlibpath_var_GCJ=no
16746 ;;
16747
16748 openbsd*)
16749 hardcode_direct_GCJ=yes
16750 hardcode_shlibpath_var_GCJ=no
16751 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16752 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16753 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16754 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16755 export_dynamic_flag_spec_GCJ='${wl}-E'
16756 else
16757 case $host_os in
16758 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16759 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16760 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16761 ;;
16762 *)
16763 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16764 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16765 ;;
16766 esac
16767 fi
16768 ;;
16769
16770 os2*)
16771 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16772 hardcode_minus_L_GCJ=yes
16773 allow_undefined_flag_GCJ=unsupported
16774 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'
16775 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16776 ;;
16777
16778 osf3*)
16779 if test "$GCC" = yes; then
16780 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16781 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'
16782 else
16783 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16784 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'
16785 fi
16786 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16787 hardcode_libdir_separator_GCJ=:
16788 ;;
16789
16790 osf4* | osf5*) # as osf3* with the addition of -msym flag
16791 if test "$GCC" = yes; then
16792 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16793 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'
16794 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16795 else
16796 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16797 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'
16798 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~
16799 $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'
16800
16801 # Both c and cxx compiler support -rpath directly
16802 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16803 fi
16804 hardcode_libdir_separator_GCJ=:
16805 ;;
16806
16807 solaris*)
16808 no_undefined_flag_GCJ=' -z text'
16809 if test "$GCC" = yes; then
16810 wlarc='${wl}'
16811 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16812 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16813 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16814 else
16815 wlarc=''
16816 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16817 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16818 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16819 fi
16820 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16821 hardcode_shlibpath_var_GCJ=no
16822 case $host_os in
16823 solaris2.[0-5] | solaris2.[0-5].*) ;;
16824 *)
16825 # The compiler driver will combine linker options so we
16826 # cannot just pass the convience library names through
16827 # without $wl, iff we do not link with $LD.
16828 # Luckily, gcc supports the same syntax we need for Sun Studio.
16829 # Supported since Solaris 2.6 (maybe 2.5.1?)
16830 case $wlarc in
16831 '')
16832 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16833 *)
16834 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' ;;
16835 esac ;;
16836 esac
16837 link_all_deplibs_GCJ=yes
16838 ;;
16839
16840 sunos4*)
16841 if test "x$host_vendor" = xsequent; then
16842 # Use $CC to link under sequent, because it throws in some extra .o
16843 # files that make .init and .fini sections work.
16844 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16845 else
16846 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16847 fi
16848 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16849 hardcode_direct_GCJ=yes
16850 hardcode_minus_L_GCJ=yes
16851 hardcode_shlibpath_var_GCJ=no
16852 ;;
16853
16854 sysv4)
16855 case $host_vendor in
16856 sni)
16857 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16858 hardcode_direct_GCJ=yes # is this really true???
16859 ;;
16860 siemens)
16861 ## LD is ld it makes a PLAMLIB
16862 ## CC just makes a GrossModule.
16863 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16864 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16865 hardcode_direct_GCJ=no
16866 ;;
16867 motorola)
16868 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16869 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16870 ;;
16871 esac
16872 runpath_var='LD_RUN_PATH'
16873 hardcode_shlibpath_var_GCJ=no
16874 ;;
16875
16876 sysv4.3*)
16877 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16878 hardcode_shlibpath_var_GCJ=no
16879 export_dynamic_flag_spec_GCJ='-Bexport'
16880 ;;
16881
16882 sysv4*MP*)
16883 if test -d /usr/nec; then
16884 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16885 hardcode_shlibpath_var_GCJ=no
16886 runpath_var=LD_RUN_PATH
16887 hardcode_runpath_var=yes
16888 ld_shlibs_GCJ=yes
16889 fi
16890 ;;
16891
16892 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16893 no_undefined_flag_GCJ='${wl}-z,text'
16894 archive_cmds_need_lc_GCJ=no
16895 hardcode_shlibpath_var_GCJ=no
16896 runpath_var='LD_RUN_PATH'
16897
16898 if test "$GCC" = yes; then
16899 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16900 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16901 else
16902 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16903 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16904 fi
16905 ;;
16906
16907 sysv5* | sco3.2v5* | sco5v6*)
16908 # Note: We can NOT use -z defs as we might desire, because we do not
16909 # link with -lc, and that would cause any symbols used from libc to
16910 # always be unresolved, which means just about no library would
16911 # ever link correctly. If we're not using GNU ld we use -z text
16912 # though, which does catch some bad symbols but isn't as heavy-handed
16913 # as -z defs.
16914 no_undefined_flag_GCJ='${wl}-z,text'
16915 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16916 archive_cmds_need_lc_GCJ=no
16917 hardcode_shlibpath_var_GCJ=no
16918 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16919 hardcode_libdir_separator_GCJ=':'
16920 link_all_deplibs_GCJ=yes
16921 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16922 runpath_var='LD_RUN_PATH'
16923
16924 if test "$GCC" = yes; then
16925 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16926 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16927 else
16928 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16929 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16930 fi
16931 ;;
16932
16933 uts4*)
16934 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16935 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16936 hardcode_shlibpath_var_GCJ=no
16937 ;;
16938
16939 *)
16940 ld_shlibs_GCJ=no
16941 ;;
16942 esac
16943 fi
16944
16945{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16946echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16947test "$ld_shlibs_GCJ" = no && can_build_shared=no
16948
16949#
16950# Do we need to explicitly link libc?
16951#
16952case "x$archive_cmds_need_lc_GCJ" in
16953x|xyes)
16954 # Assume -lc should be added
16955 archive_cmds_need_lc_GCJ=yes
16956
16957 if test "$enable_shared" = yes && test "$GCC" = yes; then
16958 case $archive_cmds_GCJ in
16959 *'~'*)
16960 # FIXME: we may have to deal with multi-command sequences.
16961 ;;
16962 '$CC '*)
16963 # Test whether the compiler implicitly links with -lc since on some
16964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16965 # to ld, don't add -lc before -lgcc.
16966 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16967echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16968 $rm conftest*
16969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16970
16971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16972 (eval $ac_compile) 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } 2>conftest.err; then
16976 soname=conftest
16977 lib=conftest
16978 libobjs=conftest.$ac_objext
16979 deplibs=
16980 wl=$lt_prog_compiler_wl_GCJ
16981 pic_flag=$lt_prog_compiler_pic_GCJ
16982 compiler_flags=-v
16983 linker_flags=-v
16984 verstring=
16985 output_objdir=.
16986 libname=conftest
16987 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16988 allow_undefined_flag_GCJ=
16989 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16990 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }
16994 then
16995 archive_cmds_need_lc_GCJ=no
16996 else
16997 archive_cmds_need_lc_GCJ=yes
16998 fi
16999 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17000 else
17001 cat conftest.err 1>&5
17002 fi
17003 $rm conftest*
17004 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17005echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17006 ;;
17007 esac
17008 fi
17009 ;;
17010esac
17011
17012{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17013echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17014library_names_spec=
17015libname_spec='lib$name'
17016soname_spec=
17017shrext_cmds=".so"
17018postinstall_cmds=
17019postuninstall_cmds=
17020finish_cmds=
17021finish_eval=
17022shlibpath_var=
17023shlibpath_overrides_runpath=unknown
17024version_type=none
17025dynamic_linker="$host_os ld.so"
17026sys_lib_dlsearch_path_spec="/lib /usr/lib"
17027if test "$GCC" = yes; then
17028 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17029 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17030 # if the path contains ";" then we assume it to be the separator
17031 # otherwise default to the standard path separator (i.e. ":") - it is
17032 # assumed that no part of a normal pathname contains ";" but that should
17033 # okay in the real world where ";" in dirpaths is itself problematic.
17034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17035 else
17036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17037 fi
17038else
17039 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17040fi
17041need_lib_prefix=unknown
17042hardcode_into_libs=no
17043
17044# when you set need_version to no, make sure it does not cause -set_version
17045# flags to be left without arguments
17046need_version=unknown
17047
17048case $host_os in
17049aix3*)
17050 version_type=linux
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17052 shlibpath_var=LIBPATH
17053
17054 # AIX 3 has no versioning support, so we append a major version to the name.
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 ;;
17057
17058aix4* | aix5*)
17059 version_type=linux
17060 need_lib_prefix=no
17061 need_version=no
17062 hardcode_into_libs=yes
17063 if test "$host_cpu" = ia64; then
17064 # AIX 5 supports IA64
17065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17066 shlibpath_var=LD_LIBRARY_PATH
17067 else
17068 # With GCC up to 2.95.x, collect2 would create an import file
17069 # for dependence libraries. The import file would start with
17070 # the line `#! .'. This would cause the generated library to
17071 # depend on `.', always an invalid library. This was fixed in
17072 # development snapshots of GCC prior to 3.0.
17073 case $host_os in
17074 aix4 | aix4.[01] | aix4.[01].*)
17075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17076 echo ' yes '
17077 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17078 :
17079 else
17080 can_build_shared=no
17081 fi
17082 ;;
17083 esac
17084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17085 # soname into executable. Probably we can add versioning support to
17086 # collect2, so additional links can be useful in future.
17087 if test "$aix_use_runtimelinking" = yes; then
17088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17089 # instead of lib<name>.a to let people know that these are not
17090 # typical AIX shared libraries.
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 else
17093 # We preserve .a as extension for shared libraries through AIX4.2
17094 # and later when we are not doing run time linking.
17095 library_names_spec='${libname}${release}.a $libname.a'
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 fi
17098 shlibpath_var=LIBPATH
17099 fi
17100 ;;
17101
17102amigaos*)
17103 library_names_spec='$libname.ixlibrary $libname.a'
17104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17105 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'
17106 ;;
17107
17108beos*)
17109 library_names_spec='${libname}${shared_ext}'
17110 dynamic_linker="$host_os ld.so"
17111 shlibpath_var=LIBRARY_PATH
17112 ;;
17113
17114bsdi[45]*)
17115 version_type=linux
17116 need_version=no
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118 soname_spec='${libname}${release}${shared_ext}$major'
17119 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17120 shlibpath_var=LD_LIBRARY_PATH
17121 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17122 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17123 # the default ld.so.conf also contains /usr/contrib/lib and
17124 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17125 # libtool to hard-code these into programs
17126 ;;
17127
17128cygwin* | mingw* | pw32*)
17129 version_type=windows
17130 shrext_cmds=".dll"
17131 need_version=no
17132 need_lib_prefix=no
17133
17134 case $GCC,$host_os in
17135 yes,cygwin* | yes,mingw* | yes,pw32*)
17136 library_names_spec='$libname.dll.a'
17137 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17138 postinstall_cmds='base_file=`basename \${file}`~
17139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17140 dldir=$destdir/`dirname \$dlpath`~
17141 test -d \$dldir || mkdir -p \$dldir~
17142 $install_prog $dir/$dlname \$dldir/$dlname~
17143 chmod a+x \$dldir/$dlname'
17144 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17145 dlpath=$dir/\$dldll~
17146 $rm \$dlpath'
17147 shlibpath_overrides_runpath=yes
17148
17149 case $host_os in
17150 cygwin*)
17151 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17152 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17153 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17154 ;;
17155 mingw*)
17156 # MinGW DLLs use traditional 'lib' prefix
17157 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17158 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17159 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17160 # It is most probably a Windows format PATH printed by
17161 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17162 # path with ; separators, and with drive letters. We can handle the
17163 # drive letters (cygwin fileutils understands them), so leave them,
17164 # especially as we might pass files found there to a mingw objdump,
17165 # which wouldn't understand a cygwinified path. Ahh.
17166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17167 else
17168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17169 fi
17170 ;;
17171 pw32*)
17172 # pw32 DLLs use 'pw' prefix rather than 'lib'
17173 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17174 ;;
17175 esac
17176 ;;
17177
17178 linux*)
17179 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17181 supports_anon_versioning=no
17182 case `$LD -v 2>/dev/null` in
17183 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17184 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17185 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17186 *\ 2.11.*) ;; # other 2.11 versions
17187 *) supports_anon_versioning=yes ;;
17188 esac
17189 if test $supports_anon_versioning = yes; then
17190 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17191cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17192$echo "local: *; };" >> $output_objdir/$libname.ver~
17193 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17194 else
17195 $archive_expsym_cmds="$archive_cmds"
17196 fi
17197 else
17198 ld_shlibs=no
17199 fi
17200 ;;
17201
17202 *)
17203 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17204 ;;
17205 esac
17206 dynamic_linker='Win32 ld.exe'
17207 # FIXME: first we should search . and the directory the executable is in
17208 shlibpath_var=PATH
17209 ;;
17210
17211darwin* | rhapsody*)
17212 dynamic_linker="$host_os dyld"
17213 version_type=darwin
17214 need_lib_prefix=no
17215 need_version=no
17216 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17217 soname_spec='${libname}${release}${major}$shared_ext'
17218 shlibpath_overrides_runpath=yes
17219 shlibpath_var=DYLD_LIBRARY_PATH
17220 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17221 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17222 if test "$GCC" = yes; then
17223 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"`
17224 else
17225 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17226 fi
17227 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17228 ;;
17229
17230dgux*)
17231 version_type=linux
17232 need_lib_prefix=no
17233 need_version=no
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17235 soname_spec='${libname}${release}${shared_ext}$major'
17236 shlibpath_var=LD_LIBRARY_PATH
17237 ;;
17238
17239freebsd1*)
17240 dynamic_linker=no
17241 ;;
17242
17243kfreebsd*-gnu)
17244 version_type=linux
17245 need_lib_prefix=no
17246 need_version=no
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17248 soname_spec='${libname}${release}${shared_ext}$major'
17249 shlibpath_var=LD_LIBRARY_PATH
17250 shlibpath_overrides_runpath=no
17251 hardcode_into_libs=yes
17252 dynamic_linker='GNU ld.so'
17253 ;;
17254
17255freebsd* | dragonfly*)
17256 # DragonFly does not have aout. When/if they implement a new
17257 # versioning mechanism, adjust this.
17258 if test -x /usr/bin/objformat; then
17259 objformat=`/usr/bin/objformat`
17260 else
17261 case $host_os in
17262 freebsd[123]*) objformat=aout ;;
17263 *) objformat=elf ;;
17264 esac
17265 fi
17266 # Handle Gentoo/FreeBSD as it was Linux
17267 case $host_vendor in
17268 gentoo)
17269 version_type=linux ;;
17270 *)
17271 version_type=freebsd-$objformat ;;
17272 esac
17273
17274 case $version_type in
17275 freebsd-elf*)
17276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17277 need_version=no
17278 need_lib_prefix=no
17279 ;;
17280 freebsd-*)
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17282 need_version=yes
17283 ;;
17284 linux)
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17286 soname_spec='${libname}${release}${shared_ext}$major'
17287 need_lib_prefix=no
17288 need_version=no
17289 ;;
17290 esac
17291 shlibpath_var=LD_LIBRARY_PATH
17292 case $host_os in
17293 freebsd2*)
17294 shlibpath_overrides_runpath=yes
17295 ;;
17296 freebsd3.[01]* | freebsdelf3.[01]*)
17297 shlibpath_overrides_runpath=yes
17298 hardcode_into_libs=yes
17299 ;;
17300 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17301 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17302 shlibpath_overrides_runpath=no
17303 hardcode_into_libs=yes
17304 ;;
17305 freebsd*) # from 4.6 on
17306 shlibpath_overrides_runpath=yes
17307 hardcode_into_libs=yes
17308 ;;
17309 esac
17310 ;;
17311
17312gnu*)
17313 version_type=linux
17314 need_lib_prefix=no
17315 need_version=no
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17317 soname_spec='${libname}${release}${shared_ext}$major'
17318 shlibpath_var=LD_LIBRARY_PATH
17319 hardcode_into_libs=yes
17320 ;;
17321
17322hpux9* | hpux10* | hpux11*)
17323 # Give a soname corresponding to the major version so that dld.sl refuses to
17324 # link against other versions.
17325 version_type=sunos
17326 need_lib_prefix=no
17327 need_version=no
17328 case $host_cpu in
17329 ia64*)
17330 shrext_cmds='.so'
17331 hardcode_into_libs=yes
17332 dynamic_linker="$host_os dld.so"
17333 shlibpath_var=LD_LIBRARY_PATH
17334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336 soname_spec='${libname}${release}${shared_ext}$major'
17337 if test "X$HPUX_IA64_MODE" = X32; then
17338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17339 else
17340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17341 fi
17342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17343 ;;
17344 hppa*64*)
17345 shrext_cmds='.sl'
17346 hardcode_into_libs=yes
17347 dynamic_linker="$host_os dld.sl"
17348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17354 ;;
17355 *)
17356 shrext_cmds='.sl'
17357 dynamic_linker="$host_os dld.sl"
17358 shlibpath_var=SHLIB_PATH
17359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17361 soname_spec='${libname}${release}${shared_ext}$major'
17362 ;;
17363 esac
17364 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17365 postinstall_cmds='chmod 555 $lib'
17366 ;;
17367
17368interix3*)
17369 version_type=linux
17370 need_lib_prefix=no
17371 need_version=no
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17373 soname_spec='${libname}${release}${shared_ext}$major'
17374 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17375 shlibpath_var=LD_LIBRARY_PATH
17376 shlibpath_overrides_runpath=no
17377 hardcode_into_libs=yes
17378 ;;
17379
17380irix5* | irix6* | nonstopux*)
17381 case $host_os in
17382 nonstopux*) version_type=nonstopux ;;
17383 *)
17384 if test "$lt_cv_prog_gnu_ld" = yes; then
17385 version_type=linux
17386 else
17387 version_type=irix
17388 fi ;;
17389 esac
17390 need_lib_prefix=no
17391 need_version=no
17392 soname_spec='${libname}${release}${shared_ext}$major'
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17394 case $host_os in
17395 irix5* | nonstopux*)
17396 libsuff= shlibsuff=
17397 ;;
17398 *)
17399 case $LD in # libtool.m4 will add one of these switches to LD
17400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17401 libsuff= shlibsuff= libmagic=32-bit;;
17402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17403 libsuff=32 shlibsuff=N32 libmagic=N32;;
17404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17405 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17406 *) libsuff= shlibsuff= libmagic=never-match;;
17407 esac
17408 ;;
17409 esac
17410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17411 shlibpath_overrides_runpath=no
17412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17414 hardcode_into_libs=yes
17415 ;;
17416
17417# No shared lib support for Linux oldld, aout, or coff.
17418linux*oldld* | linux*aout* | linux*coff*)
17419 dynamic_linker=no
17420 ;;
17421
17422# This must be Linux ELF.
17423linux*)
17424 version_type=linux
17425 need_lib_prefix=no
17426 need_version=no
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428 soname_spec='${libname}${release}${shared_ext}$major'
17429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17430 shlibpath_var=LD_LIBRARY_PATH
17431 shlibpath_overrides_runpath=no
17432 # This implies no fast_install, which is unacceptable.
17433 # Some rework will be needed to allow for fast_install
17434 # before this can be enabled.
17435 hardcode_into_libs=yes
17436
17437 # Append ld.so.conf contents to the search path
17438 if test -f /etc/ld.so.conf; then
17439 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17440 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17441 fi
17442
17443 # We used to test for /lib/ld.so.1 and disable shared libraries on
17444 # powerpc, because MkLinux only supported shared libraries with the
17445 # GNU dynamic linker. Since this was broken with cross compilers,
17446 # most powerpc-linux boxes support dynamic linking these days and
17447 # people can always --disable-shared, the test was removed, and we
17448 # assume the GNU/Linux dynamic linker is in use.
17449 dynamic_linker='GNU/Linux ld.so'
17450 ;;
17451
17452knetbsd*-gnu)
17453 version_type=linux
17454 need_lib_prefix=no
17455 need_version=no
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17457 soname_spec='${libname}${release}${shared_ext}$major'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath=no
17460 hardcode_into_libs=yes
17461 dynamic_linker='GNU ld.so'
17462 ;;
17463
17464netbsd*)
17465 version_type=sunos
17466 need_lib_prefix=no
17467 need_version=no
17468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471 dynamic_linker='NetBSD (a.out) ld.so'
17472 else
17473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17474 soname_spec='${libname}${release}${shared_ext}$major'
17475 dynamic_linker='NetBSD ld.elf_so'
17476 fi
17477 shlibpath_var=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath=yes
17479 hardcode_into_libs=yes
17480 ;;
17481
17482newsos6)
17483 version_type=linux
17484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 shlibpath_overrides_runpath=yes
17487 ;;
17488
17489nto-qnx*)
17490 version_type=linux
17491 need_lib_prefix=no
17492 need_version=no
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494 soname_spec='${libname}${release}${shared_ext}$major'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 shlibpath_overrides_runpath=yes
17497 ;;
17498
17499openbsd*)
17500 version_type=sunos
17501 sys_lib_dlsearch_path_spec="/usr/lib"
17502 need_lib_prefix=no
17503 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17504 case $host_os in
17505 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17506 *) need_version=no ;;
17507 esac
17508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17510 shlibpath_var=LD_LIBRARY_PATH
17511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17512 case $host_os in
17513 openbsd2.[89] | openbsd2.[89].*)
17514 shlibpath_overrides_runpath=no
17515 ;;
17516 *)
17517 shlibpath_overrides_runpath=yes
17518 ;;
17519 esac
17520 else
17521 shlibpath_overrides_runpath=yes
17522 fi
17523 ;;
17524
17525os2*)
17526 libname_spec='$name'
17527 shrext_cmds=".dll"
17528 need_lib_prefix=no
17529 library_names_spec='$libname${shared_ext} $libname.a'
17530 dynamic_linker='OS/2 ld.exe'
17531 shlibpath_var=LIBPATH
17532 ;;
17533
17534osf3* | osf4* | osf5*)
17535 version_type=osf
17536 need_lib_prefix=no
17537 need_version=no
17538 soname_spec='${libname}${release}${shared_ext}$major'
17539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17540 shlibpath_var=LD_LIBRARY_PATH
17541 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17542 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17543 ;;
17544
17545solaris*)
17546 version_type=linux
17547 need_lib_prefix=no
17548 need_version=no
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550 soname_spec='${libname}${release}${shared_ext}$major'
17551 shlibpath_var=LD_LIBRARY_PATH
17552 shlibpath_overrides_runpath=yes
17553 hardcode_into_libs=yes
17554 # ldd complains unless libraries are executable
17555 postinstall_cmds='chmod +x $lib'
17556 ;;
17557
17558sunos4*)
17559 version_type=sunos
17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17562 shlibpath_var=LD_LIBRARY_PATH
17563 shlibpath_overrides_runpath=yes
17564 if test "$with_gnu_ld" = yes; then
17565 need_lib_prefix=no
17566 fi
17567 need_version=yes
17568 ;;
17569
17570sysv4 | sysv4.3*)
17571 version_type=linux
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17573 soname_spec='${libname}${release}${shared_ext}$major'
17574 shlibpath_var=LD_LIBRARY_PATH
17575 case $host_vendor in
17576 sni)
17577 shlibpath_overrides_runpath=no
17578 need_lib_prefix=no
17579 export_dynamic_flag_spec='${wl}-Blargedynsym'
17580 runpath_var=LD_RUN_PATH
17581 ;;
17582 siemens)
17583 need_lib_prefix=no
17584 ;;
17585 motorola)
17586 need_lib_prefix=no
17587 need_version=no
17588 shlibpath_overrides_runpath=no
17589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17590 ;;
17591 esac
17592 ;;
17593
17594sysv4*MP*)
17595 if test -d /usr/nec ;then
17596 version_type=linux
17597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17598 soname_spec='$libname${shared_ext}.$major'
17599 shlibpath_var=LD_LIBRARY_PATH
17600 fi
17601 ;;
17602
17603sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17604 version_type=freebsd-elf
17605 need_lib_prefix=no
17606 need_version=no
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17608 soname_spec='${libname}${release}${shared_ext}$major'
17609 shlibpath_var=LD_LIBRARY_PATH
17610 hardcode_into_libs=yes
17611 if test "$with_gnu_ld" = yes; then
17612 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17613 shlibpath_overrides_runpath=no
17614 else
17615 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17616 shlibpath_overrides_runpath=yes
17617 case $host_os in
17618 sco3.2v5*)
17619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17620 ;;
17621 esac
17622 fi
17623 sys_lib_dlsearch_path_spec='/usr/lib'
17624 ;;
17625
17626uts4*)
17627 version_type=linux
17628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17629 soname_spec='${libname}${release}${shared_ext}$major'
17630 shlibpath_var=LD_LIBRARY_PATH
17631 ;;
17632
17633*)
17634 dynamic_linker=no
17635 ;;
17636esac
17637{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17638echo "${ECHO_T}$dynamic_linker" >&6; }
17639test "$dynamic_linker" = no && can_build_shared=no
17640
17641variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17642if test "$GCC" = yes; then
17643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17644fi
17645
17646{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17647echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17648hardcode_action_GCJ=
17649if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17650 test -n "$runpath_var_GCJ" || \
17651 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17652
17653 # We can hardcode non-existant directories.
17654 if test "$hardcode_direct_GCJ" != no &&
17655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17656 # have to relink, otherwise we might link with an installed library
17657 # when we should be linking with a yet-to-be-installed one
17658 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17659 test "$hardcode_minus_L_GCJ" != no; then
17660 # Linking always hardcodes the temporary library directory.
17661 hardcode_action_GCJ=relink
17662 else
17663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17664 hardcode_action_GCJ=immediate
17665 fi
17666else
17667 # We cannot hardcode anything, or else we can only hardcode existing
17668 # directories.
17669 hardcode_action_GCJ=unsupported
17670fi
17671{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17672echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17673
17674if test "$hardcode_action_GCJ" = relink; then
17675 # Fast installation is not supported
17676 enable_fast_install=no
17677elif test "$shlibpath_overrides_runpath" = yes ||
17678 test "$enable_shared" = no; then
17679 # Fast installation is not necessary
17680 enable_fast_install=needless
17681fi
17682
17683
17684# The else clause should only fire when bootstrapping the
17685# libtool distribution, otherwise you forgot to ship ltmain.sh
17686# with your package, and you will get complaints that there are
17687# no rules to generate ltmain.sh.
17688if test -f "$ltmain"; then
17689 # See if we are running on zsh, and set the options which allow our commands through
17690 # without removal of \ escapes.
17691 if test -n "${ZSH_VERSION+set}" ; then
17692 setopt NO_GLOB_SUBST
17693 fi
17694 # Now quote all the things that may contain metacharacters while being
17695 # careful not to overquote the AC_SUBSTed values. We take copies of the
17696 # variables and quote the copies for generation of the libtool script.
17697 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17698 SED SHELL STRIP \
17699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17701 deplibs_check_method reload_flag reload_cmds need_locks \
17702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17703 lt_cv_sys_global_symbol_to_c_name_address \
17704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17705 old_postinstall_cmds old_postuninstall_cmds \
17706 compiler_GCJ \
17707 CC_GCJ \
17708 LD_GCJ \
17709 lt_prog_compiler_wl_GCJ \
17710 lt_prog_compiler_pic_GCJ \
17711 lt_prog_compiler_static_GCJ \
17712 lt_prog_compiler_no_builtin_flag_GCJ \
17713 export_dynamic_flag_spec_GCJ \
17714 thread_safe_flag_spec_GCJ \
17715 whole_archive_flag_spec_GCJ \
17716 enable_shared_with_static_runtimes_GCJ \
17717 old_archive_cmds_GCJ \
17718 old_archive_from_new_cmds_GCJ \
17719 predep_objects_GCJ \
17720 postdep_objects_GCJ \
17721 predeps_GCJ \
17722 postdeps_GCJ \
17723 compiler_lib_search_path_GCJ \
17724 archive_cmds_GCJ \
17725 archive_expsym_cmds_GCJ \
17726 postinstall_cmds_GCJ \
17727 postuninstall_cmds_GCJ \
17728 old_archive_from_expsyms_cmds_GCJ \
17729 allow_undefined_flag_GCJ \
17730 no_undefined_flag_GCJ \
17731 export_symbols_cmds_GCJ \
17732 hardcode_libdir_flag_spec_GCJ \
17733 hardcode_libdir_flag_spec_ld_GCJ \
17734 hardcode_libdir_separator_GCJ \
17735 hardcode_automatic_GCJ \
17736 module_cmds_GCJ \
17737 module_expsym_cmds_GCJ \
17738 lt_cv_prog_compiler_c_o_GCJ \
17739 exclude_expsyms_GCJ \
17740 include_expsyms_GCJ; do
17741
17742 case $var in
17743 old_archive_cmds_GCJ | \
17744 old_archive_from_new_cmds_GCJ | \
17745 archive_cmds_GCJ | \
17746 archive_expsym_cmds_GCJ | \
17747 module_cmds_GCJ | \
17748 module_expsym_cmds_GCJ | \
17749 old_archive_from_expsyms_cmds_GCJ | \
17750 export_symbols_cmds_GCJ | \
17751 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17752 postinstall_cmds | postuninstall_cmds | \
17753 old_postinstall_cmds | old_postuninstall_cmds | \
17754 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17755 # Double-quote double-evaled strings.
17756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17757 ;;
17758 *)
17759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17760 ;;
17761 esac
17762 done
17763
17764 case $lt_echo in
17765 *'\$0 --fallback-echo"')
17766 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17767 ;;
17768 esac
17769
17770cfgfile="$ofile"
17771
17772 cat <<__EOF__ >> "$cfgfile"
17773# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17774
17775# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17776
17777# Shell to use when invoking shell scripts.
17778SHELL=$lt_SHELL
17779
17780# Whether or not to build shared libraries.
17781build_libtool_libs=$enable_shared
17782
17783# Whether or not to build static libraries.
17784build_old_libs=$enable_static
17785
17786# Whether or not to add -lc for building shared libraries.
17787build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17788
17789# Whether or not to disallow shared libs when runtime libs are static
17790allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17791
17792# Whether or not to optimize for fast installation.
17793fast_install=$enable_fast_install
17794
17795# The host system.
17796host_alias=$host_alias
17797host=$host
17798host_os=$host_os
17799
17800# The build system.
17801build_alias=$build_alias
17802build=$build
17803build_os=$build_os
17804
17805# An echo program that does not interpret backslashes.
17806echo=$lt_echo
17807
17808# The archiver.
17809AR=$lt_AR
17810AR_FLAGS=$lt_AR_FLAGS
17811
17812# A C compiler.
17813LTCC=$lt_LTCC
17814
17815# LTCC compiler flags.
17816LTCFLAGS=$lt_LTCFLAGS
17817
17818# A language-specific compiler.
17819CC=$lt_compiler_GCJ
17820
17821# Is the compiler the GNU C compiler?
17822with_gcc=$GCC_GCJ
17823
17824# An ERE matcher.
17825EGREP=$lt_EGREP
17826
17827# The linker used to build libraries.
17828LD=$lt_LD_GCJ
17829
17830# Whether we need hard or soft links.
17831LN_S=$lt_LN_S
17832
17833# A BSD-compatible nm program.
17834NM=$lt_NM
17835
17836# A symbol stripping program
17837STRIP=$lt_STRIP
17838
17839# Used to examine libraries when file_magic_cmd begins "file"
17840MAGIC_CMD=$MAGIC_CMD
17841
17842# Used on cygwin: DLL creation program.
17843DLLTOOL="$DLLTOOL"
17844
17845# Used on cygwin: object dumper.
17846OBJDUMP="$OBJDUMP"
17847
17848# Used on cygwin: assembler.
17849AS="$AS"
17850
17851# The name of the directory that contains temporary libtool files.
17852objdir=$objdir
17853
17854# How to create reloadable object files.
17855reload_flag=$lt_reload_flag
17856reload_cmds=$lt_reload_cmds
17857
17858# How to pass a linker flag through the compiler.
17859wl=$lt_lt_prog_compiler_wl_GCJ
17860
17861# Object file suffix (normally "o").
17862objext="$ac_objext"
17863
17864# Old archive suffix (normally "a").
17865libext="$libext"
17866
17867# Shared library suffix (normally ".so").
17868shrext_cmds='$shrext_cmds'
17869
17870# Executable file suffix (normally "").
17871exeext="$exeext"
17872
17873# Additional compiler flags for building library objects.
17874pic_flag=$lt_lt_prog_compiler_pic_GCJ
17875pic_mode=$pic_mode
17876
17877# What is the maximum length of a command?
17878max_cmd_len=$lt_cv_sys_max_cmd_len
17879
17880# Does compiler simultaneously support -c and -o options?
17881compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17882
17883# Must we lock files when doing compilation?
17884need_locks=$lt_need_locks
17885
17886# Do we need the lib prefix for modules?
17887need_lib_prefix=$need_lib_prefix
17888
17889# Do we need a version for libraries?
17890need_version=$need_version
17891
17892# Whether dlopen is supported.
17893dlopen_support=$enable_dlopen
17894
17895# Whether dlopen of programs is supported.
17896dlopen_self=$enable_dlopen_self
17897
17898# Whether dlopen of statically linked programs is supported.
17899dlopen_self_static=$enable_dlopen_self_static
17900
17901# Compiler flag to prevent dynamic linking.
17902link_static_flag=$lt_lt_prog_compiler_static_GCJ
17903
17904# Compiler flag to turn off builtin functions.
17905no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17906
17907# Compiler flag to allow reflexive dlopens.
17908export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17909
17910# Compiler flag to generate shared objects directly from archives.
17911whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17912
17913# Compiler flag to generate thread-safe objects.
17914thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17915
17916# Library versioning type.
17917version_type=$version_type
17918
17919# Format of library name prefix.
17920libname_spec=$lt_libname_spec
17921
17922# List of archive names. First name is the real one, the rest are links.
17923# The last name is the one that the linker finds with -lNAME.
17924library_names_spec=$lt_library_names_spec
17925
17926# The coded name of the library, if different from the real name.
17927soname_spec=$lt_soname_spec
17928
17929# Commands used to build and install an old-style archive.
17930RANLIB=$lt_RANLIB
17931old_archive_cmds=$lt_old_archive_cmds_GCJ
17932old_postinstall_cmds=$lt_old_postinstall_cmds
17933old_postuninstall_cmds=$lt_old_postuninstall_cmds
17934
17935# Create an old-style archive from a shared archive.
17936old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17937
17938# Create a temporary old-style archive to link instead of a shared archive.
17939old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17940
17941# Commands used to build and install a shared archive.
17942archive_cmds=$lt_archive_cmds_GCJ
17943archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17944postinstall_cmds=$lt_postinstall_cmds
17945postuninstall_cmds=$lt_postuninstall_cmds
17946
17947# Commands used to build a loadable module (assumed same as above if empty)
17948module_cmds=$lt_module_cmds_GCJ
17949module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17950
17951# Commands to strip libraries.
17952old_striplib=$lt_old_striplib
17953striplib=$lt_striplib
17954
17955# Dependencies to place before the objects being linked to create a
17956# shared library.
17957predep_objects=$lt_predep_objects_GCJ
17958
17959# Dependencies to place after the objects being linked to create a
17960# shared library.
17961postdep_objects=$lt_postdep_objects_GCJ
17962
17963# Dependencies to place before the objects being linked to create a
17964# shared library.
17965predeps=$lt_predeps_GCJ
17966
17967# Dependencies to place after the objects being linked to create a
17968# shared library.
17969postdeps=$lt_postdeps_GCJ
17970
17971# The library search path used internally by the compiler when linking
17972# a shared library.
17973compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17974
17975# Method to check whether dependent libraries are shared objects.
17976deplibs_check_method=$lt_deplibs_check_method
17977
17978# Command to use when deplibs_check_method == file_magic.
17979file_magic_cmd=$lt_file_magic_cmd
17980
17981# Flag that allows shared libraries with undefined symbols to be built.
17982allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17983
17984# Flag that forces no undefined symbols.
17985no_undefined_flag=$lt_no_undefined_flag_GCJ
17986
17987# Commands used to finish a libtool library installation in a directory.
17988finish_cmds=$lt_finish_cmds
17989
17990# Same as above, but a single script fragment to be evaled but not shown.
17991finish_eval=$lt_finish_eval
17992
17993# Take the output of nm and produce a listing of raw symbols and C names.
17994global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17995
17996# Transform the output of nm in a proper C declaration
17997global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17998
17999# Transform the output of nm in a C name address pair
18000global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18001
18002# This is the shared library runtime path variable.
18003runpath_var=$runpath_var
18004
18005# This is the shared library path variable.
18006shlibpath_var=$shlibpath_var
18007
18008# Is shlibpath searched before the hard-coded library search path?
18009shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18010
18011# How to hardcode a shared library path into an executable.
18012hardcode_action=$hardcode_action_GCJ
18013
18014# Whether we should hardcode library paths into libraries.
18015hardcode_into_libs=$hardcode_into_libs
18016
18017# Flag to hardcode \$libdir into a binary during linking.
18018# This must work even if \$libdir does not exist.
18019hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18020
18021# If ld is used when linking, flag to hardcode \$libdir into
18022# a binary during linking. This must work even if \$libdir does
18023# not exist.
18024hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18025
18026# Whether we need a single -rpath flag with a separated argument.
18027hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18028
18029# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18030# resulting binary.
18031hardcode_direct=$hardcode_direct_GCJ
18032
18033# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18034# resulting binary.
18035hardcode_minus_L=$hardcode_minus_L_GCJ
18036
18037# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18038# the resulting binary.
18039hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18040
18041# Set to yes if building a shared library automatically hardcodes DIR into the library
18042# and all subsequent libraries and executables linked against it.
18043hardcode_automatic=$hardcode_automatic_GCJ
18044
18045# Variables whose values should be saved in libtool wrapper scripts and
18046# restored at relink time.
18047variables_saved_for_relink="$variables_saved_for_relink"
18048
18049# Whether libtool must link a program against all its dependency libraries.
18050link_all_deplibs=$link_all_deplibs_GCJ
18051
18052# Compile-time system search path for libraries
18053sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18054
18055# Run-time system search path for libraries
18056sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18057
18058# Fix the shell variable \$srcfile for the compiler.
18059fix_srcfile_path="$fix_srcfile_path_GCJ"
18060
18061# Set to yes if exported symbols are required.
18062always_export_symbols=$always_export_symbols_GCJ
18063
18064# The commands to list exported symbols.
18065export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18066
18067# The commands to extract the exported symbol list from a shared archive.
18068extract_expsyms_cmds=$lt_extract_expsyms_cmds
18069
18070# Symbols that should not be listed in the preloaded symbols.
18071exclude_expsyms=$lt_exclude_expsyms_GCJ
18072
18073# Symbols that must always be exported.
18074include_expsyms=$lt_include_expsyms_GCJ
18075
18076# ### END LIBTOOL TAG CONFIG: $tagname
18077
18078__EOF__
18079
18080
18081else
18082 # If there is no Makefile yet, we rely on a make rule to execute
18083 # `config.status --recheck' to rerun these tests and create the
18084 # libtool script then.
18085 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18086 if test -f "$ltmain_in"; then
18087 test -f Makefile && make "$ltmain"
18088 fi
18089fi
18090
18091
18092ac_ext=c
18093ac_cpp='$CPP $CPPFLAGS'
18094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18096ac_compiler_gnu=$ac_cv_c_compiler_gnu
18097
18098CC="$lt_save_CC"
18099
18100 else
18101 tagname=""
18102 fi
18103 ;;
18104
18105 RC)
18106
18107
18108# Source file extension for RC test sources.
18109ac_ext=rc
18110
18111# Object file extension for compiled RC test sources.
18112objext=o
18113objext_RC=$objext
18114
18115# Code to be used in simple compile tests
18116lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18117
18118# Code to be used in simple link tests
18119lt_simple_link_test_code="$lt_simple_compile_test_code"
18120
18121# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18122
18123# If no C compiler was specified, use CC.
18124LTCC=${LTCC-"$CC"}
18125
18126# If no C compiler flags were specified, use CFLAGS.
18127LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18128
18129# Allow CC to be a program name with arguments.
18130compiler=$CC
18131
18132
18133# save warnings/boilerplate of simple test code
18134ac_outfile=conftest.$ac_objext
18135printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18136eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18137_lt_compiler_boilerplate=`cat conftest.err`
18138$rm conftest*
18139
18140ac_outfile=conftest.$ac_objext
18141printf "$lt_simple_link_test_code" >conftest.$ac_ext
18142eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18143_lt_linker_boilerplate=`cat conftest.err`
18144$rm conftest*
18145
18146
18147# Allow CC to be a program name with arguments.
18148lt_save_CC="$CC"
18149CC=${RC-"windres"}
18150compiler=$CC
18151compiler_RC=$CC
18152for cc_temp in $compiler""; do
18153 case $cc_temp in
18154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18156 \-*) ;;
18157 *) break;;
18158 esac
18159done
18160cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18161
18162lt_cv_prog_compiler_c_o_RC=yes
18163
18164# The else clause should only fire when bootstrapping the
18165# libtool distribution, otherwise you forgot to ship ltmain.sh
18166# with your package, and you will get complaints that there are
18167# no rules to generate ltmain.sh.
18168if test -f "$ltmain"; then
18169 # See if we are running on zsh, and set the options which allow our commands through
18170 # without removal of \ escapes.
18171 if test -n "${ZSH_VERSION+set}" ; then
18172 setopt NO_GLOB_SUBST
18173 fi
18174 # Now quote all the things that may contain metacharacters while being
18175 # careful not to overquote the AC_SUBSTed values. We take copies of the
18176 # variables and quote the copies for generation of the libtool script.
18177 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18178 SED SHELL STRIP \
18179 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18180 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18181 deplibs_check_method reload_flag reload_cmds need_locks \
18182 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18183 lt_cv_sys_global_symbol_to_c_name_address \
18184 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18185 old_postinstall_cmds old_postuninstall_cmds \
18186 compiler_RC \
18187 CC_RC \
18188 LD_RC \
18189 lt_prog_compiler_wl_RC \
18190 lt_prog_compiler_pic_RC \
18191 lt_prog_compiler_static_RC \
18192 lt_prog_compiler_no_builtin_flag_RC \
18193 export_dynamic_flag_spec_RC \
18194 thread_safe_flag_spec_RC \
18195 whole_archive_flag_spec_RC \
18196 enable_shared_with_static_runtimes_RC \
18197 old_archive_cmds_RC \
18198 old_archive_from_new_cmds_RC \
18199 predep_objects_RC \
18200 postdep_objects_RC \
18201 predeps_RC \
18202 postdeps_RC \
18203 compiler_lib_search_path_RC \
18204 archive_cmds_RC \
18205 archive_expsym_cmds_RC \
18206 postinstall_cmds_RC \
18207 postuninstall_cmds_RC \
18208 old_archive_from_expsyms_cmds_RC \
18209 allow_undefined_flag_RC \
18210 no_undefined_flag_RC \
18211 export_symbols_cmds_RC \
18212 hardcode_libdir_flag_spec_RC \
18213 hardcode_libdir_flag_spec_ld_RC \
18214 hardcode_libdir_separator_RC \
18215 hardcode_automatic_RC \
18216 module_cmds_RC \
18217 module_expsym_cmds_RC \
18218 lt_cv_prog_compiler_c_o_RC \
18219 exclude_expsyms_RC \
18220 include_expsyms_RC; do
18221
18222 case $var in
18223 old_archive_cmds_RC | \
18224 old_archive_from_new_cmds_RC | \
18225 archive_cmds_RC | \
18226 archive_expsym_cmds_RC | \
18227 module_cmds_RC | \
18228 module_expsym_cmds_RC | \
18229 old_archive_from_expsyms_cmds_RC | \
18230 export_symbols_cmds_RC | \
18231 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18232 postinstall_cmds | postuninstall_cmds | \
18233 old_postinstall_cmds | old_postuninstall_cmds | \
18234 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18235 # Double-quote double-evaled strings.
18236 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18237 ;;
18238 *)
18239 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18240 ;;
18241 esac
18242 done
18243
18244 case $lt_echo in
18245 *'\$0 --fallback-echo"')
18246 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18247 ;;
18248 esac
18249
18250cfgfile="$ofile"
18251
18252 cat <<__EOF__ >> "$cfgfile"
18253# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18254
18255# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18256
18257# Shell to use when invoking shell scripts.
18258SHELL=$lt_SHELL
18259
18260# Whether or not to build shared libraries.
18261build_libtool_libs=$enable_shared
18262
18263# Whether or not to build static libraries.
18264build_old_libs=$enable_static
18265
18266# Whether or not to add -lc for building shared libraries.
18267build_libtool_need_lc=$archive_cmds_need_lc_RC
18268
18269# Whether or not to disallow shared libs when runtime libs are static
18270allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18271
18272# Whether or not to optimize for fast installation.
18273fast_install=$enable_fast_install
18274
18275# The host system.
18276host_alias=$host_alias
18277host=$host
18278host_os=$host_os
18279
18280# The build system.
18281build_alias=$build_alias
18282build=$build
18283build_os=$build_os
18284
18285# An echo program that does not interpret backslashes.
18286echo=$lt_echo
18287
18288# The archiver.
18289AR=$lt_AR
18290AR_FLAGS=$lt_AR_FLAGS
18291
18292# A C compiler.
18293LTCC=$lt_LTCC
18294
18295# LTCC compiler flags.
18296LTCFLAGS=$lt_LTCFLAGS
18297
18298# A language-specific compiler.
18299CC=$lt_compiler_RC
18300
18301# Is the compiler the GNU C compiler?
18302with_gcc=$GCC_RC
18303
18304# An ERE matcher.
18305EGREP=$lt_EGREP
18306
18307# The linker used to build libraries.
18308LD=$lt_LD_RC
18309
18310# Whether we need hard or soft links.
18311LN_S=$lt_LN_S
18312
18313# A BSD-compatible nm program.
18314NM=$lt_NM
18315
18316# A symbol stripping program
18317STRIP=$lt_STRIP
18318
18319# Used to examine libraries when file_magic_cmd begins "file"
18320MAGIC_CMD=$MAGIC_CMD
18321
18322# Used on cygwin: DLL creation program.
18323DLLTOOL="$DLLTOOL"
18324
18325# Used on cygwin: object dumper.
18326OBJDUMP="$OBJDUMP"
18327
18328# Used on cygwin: assembler.
18329AS="$AS"
18330
18331# The name of the directory that contains temporary libtool files.
18332objdir=$objdir
18333
18334# How to create reloadable object files.
18335reload_flag=$lt_reload_flag
18336reload_cmds=$lt_reload_cmds
18337
18338# How to pass a linker flag through the compiler.
18339wl=$lt_lt_prog_compiler_wl_RC
18340
18341# Object file suffix (normally "o").
18342objext="$ac_objext"
18343
18344# Old archive suffix (normally "a").
18345libext="$libext"
18346
18347# Shared library suffix (normally ".so").
18348shrext_cmds='$shrext_cmds'
18349
18350# Executable file suffix (normally "").
18351exeext="$exeext"
18352
18353# Additional compiler flags for building library objects.
18354pic_flag=$lt_lt_prog_compiler_pic_RC
18355pic_mode=$pic_mode
18356
18357# What is the maximum length of a command?
18358max_cmd_len=$lt_cv_sys_max_cmd_len
18359
18360# Does compiler simultaneously support -c and -o options?
18361compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18362
18363# Must we lock files when doing compilation?
18364need_locks=$lt_need_locks
18365
18366# Do we need the lib prefix for modules?
18367need_lib_prefix=$need_lib_prefix
18368
18369# Do we need a version for libraries?
18370need_version=$need_version
18371
18372# Whether dlopen is supported.
18373dlopen_support=$enable_dlopen
18374
18375# Whether dlopen of programs is supported.
18376dlopen_self=$enable_dlopen_self
18377
18378# Whether dlopen of statically linked programs is supported.
18379dlopen_self_static=$enable_dlopen_self_static
18380
18381# Compiler flag to prevent dynamic linking.
18382link_static_flag=$lt_lt_prog_compiler_static_RC
18383
18384# Compiler flag to turn off builtin functions.
18385no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18386
18387# Compiler flag to allow reflexive dlopens.
18388export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18389
18390# Compiler flag to generate shared objects directly from archives.
18391whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18392
18393# Compiler flag to generate thread-safe objects.
18394thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18395
18396# Library versioning type.
18397version_type=$version_type
18398
18399# Format of library name prefix.
18400libname_spec=$lt_libname_spec
18401
18402# List of archive names. First name is the real one, the rest are links.
18403# The last name is the one that the linker finds with -lNAME.
18404library_names_spec=$lt_library_names_spec
18405
18406# The coded name of the library, if different from the real name.
18407soname_spec=$lt_soname_spec
18408
18409# Commands used to build and install an old-style archive.
18410RANLIB=$lt_RANLIB
18411old_archive_cmds=$lt_old_archive_cmds_RC
18412old_postinstall_cmds=$lt_old_postinstall_cmds
18413old_postuninstall_cmds=$lt_old_postuninstall_cmds
18414
18415# Create an old-style archive from a shared archive.
18416old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18417
18418# Create a temporary old-style archive to link instead of a shared archive.
18419old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18420
18421# Commands used to build and install a shared archive.
18422archive_cmds=$lt_archive_cmds_RC
18423archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18424postinstall_cmds=$lt_postinstall_cmds
18425postuninstall_cmds=$lt_postuninstall_cmds
18426
18427# Commands used to build a loadable module (assumed same as above if empty)
18428module_cmds=$lt_module_cmds_RC
18429module_expsym_cmds=$lt_module_expsym_cmds_RC
18430
18431# Commands to strip libraries.
18432old_striplib=$lt_old_striplib
18433striplib=$lt_striplib
18434
18435# Dependencies to place before the objects being linked to create a
18436# shared library.
18437predep_objects=$lt_predep_objects_RC
18438
18439# Dependencies to place after the objects being linked to create a
18440# shared library.
18441postdep_objects=$lt_postdep_objects_RC
18442
18443# Dependencies to place before the objects being linked to create a
18444# shared library.
18445predeps=$lt_predeps_RC
18446
18447# Dependencies to place after the objects being linked to create a
18448# shared library.
18449postdeps=$lt_postdeps_RC
18450
18451# The library search path used internally by the compiler when linking
18452# a shared library.
18453compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18454
18455# Method to check whether dependent libraries are shared objects.
18456deplibs_check_method=$lt_deplibs_check_method
18457
18458# Command to use when deplibs_check_method == file_magic.
18459file_magic_cmd=$lt_file_magic_cmd
18460
18461# Flag that allows shared libraries with undefined symbols to be built.
18462allow_undefined_flag=$lt_allow_undefined_flag_RC
18463
18464# Flag that forces no undefined symbols.
18465no_undefined_flag=$lt_no_undefined_flag_RC
18466
18467# Commands used to finish a libtool library installation in a directory.
18468finish_cmds=$lt_finish_cmds
18469
18470# Same as above, but a single script fragment to be evaled but not shown.
18471finish_eval=$lt_finish_eval
18472
18473# Take the output of nm and produce a listing of raw symbols and C names.
18474global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18475
18476# Transform the output of nm in a proper C declaration
18477global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18478
18479# Transform the output of nm in a C name address pair
18480global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18481
18482# This is the shared library runtime path variable.
18483runpath_var=$runpath_var
18484
18485# This is the shared library path variable.
18486shlibpath_var=$shlibpath_var
18487
18488# Is shlibpath searched before the hard-coded library search path?
18489shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18490
18491# How to hardcode a shared library path into an executable.
18492hardcode_action=$hardcode_action_RC
18493
18494# Whether we should hardcode library paths into libraries.
18495hardcode_into_libs=$hardcode_into_libs
18496
18497# Flag to hardcode \$libdir into a binary during linking.
18498# This must work even if \$libdir does not exist.
18499hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18500
18501# If ld is used when linking, flag to hardcode \$libdir into
18502# a binary during linking. This must work even if \$libdir does
18503# not exist.
18504hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18505
18506# Whether we need a single -rpath flag with a separated argument.
18507hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18508
18509# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18510# resulting binary.
18511hardcode_direct=$hardcode_direct_RC
18512
18513# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18514# resulting binary.
18515hardcode_minus_L=$hardcode_minus_L_RC
18516
18517# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18518# the resulting binary.
18519hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18520
18521# Set to yes if building a shared library automatically hardcodes DIR into the library
18522# and all subsequent libraries and executables linked against it.
18523hardcode_automatic=$hardcode_automatic_RC
18524
18525# Variables whose values should be saved in libtool wrapper scripts and
18526# restored at relink time.
18527variables_saved_for_relink="$variables_saved_for_relink"
18528
18529# Whether libtool must link a program against all its dependency libraries.
18530link_all_deplibs=$link_all_deplibs_RC
18531
18532# Compile-time system search path for libraries
18533sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18534
18535# Run-time system search path for libraries
18536sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18537
18538# Fix the shell variable \$srcfile for the compiler.
18539fix_srcfile_path="$fix_srcfile_path_RC"
18540
18541# Set to yes if exported symbols are required.
18542always_export_symbols=$always_export_symbols_RC
18543
18544# The commands to list exported symbols.
18545export_symbols_cmds=$lt_export_symbols_cmds_RC
18546
18547# The commands to extract the exported symbol list from a shared archive.
18548extract_expsyms_cmds=$lt_extract_expsyms_cmds
18549
18550# Symbols that should not be listed in the preloaded symbols.
18551exclude_expsyms=$lt_exclude_expsyms_RC
18552
18553# Symbols that must always be exported.
18554include_expsyms=$lt_include_expsyms_RC
18555
18556# ### END LIBTOOL TAG CONFIG: $tagname
18557
18558__EOF__
18559
18560
18561else
18562 # If there is no Makefile yet, we rely on a make rule to execute
18563 # `config.status --recheck' to rerun these tests and create the
18564 # libtool script then.
18565 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18566 if test -f "$ltmain_in"; then
18567 test -f Makefile && make "$ltmain"
18568 fi
18569fi
18570
18571
18572ac_ext=c
18573ac_cpp='$CPP $CPPFLAGS'
18574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576ac_compiler_gnu=$ac_cv_c_compiler_gnu
18577
18578CC="$lt_save_CC"
18579
18580 ;;
18581
18582 *)
18583 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18584echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18585 { (exit 1); exit 1; }; }
18586 ;;
18587 esac
18588
18589 # Append the new tag name to the list of available tags.
18590 if test -n "$tagname" ; then
18591 available_tags="$available_tags $tagname"
18592 fi
18593 fi
18594 done
18595 IFS="$lt_save_ifs"
18596
18597 # Now substitute the updated list of available tags.
18598 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18599 mv "${ofile}T" "$ofile"
18600 chmod +x "$ofile"
18601 else
18602 rm -f "${ofile}T"
18603 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18604echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18605 { (exit 1); exit 1; }; }
18606 fi
18607fi
18608
18609
18610
18611# This can be used to rebuild libtool when needed
18612LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18613
18614# Always use our own libtool.
18615LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18616
18617# Prevent multiple expansion
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638# Find a good install program. We prefer a C program (faster),
18639# so one script is as good as another. But avoid the broken or
18640# incompatible versions:
18641# SysV /etc/install, /usr/sbin/install
18642# SunOS /usr/etc/install
18643# IRIX /sbin/install
18644# AIX /bin/install
18645# AmigaOS /C/install, which installs bootblocks on floppy discs
18646# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18647# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18648# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18649# OS/2's system install, which has a completely different semantic
18650# ./install, which can be erroneously created by make from ./install.sh.
18651{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18652echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
18653if test -z "$INSTALL"; then
18654if test "${ac_cv_path_install+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18656else
18657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18658for as_dir in $PATH
18659do
18660 IFS=$as_save_IFS
18661 test -z "$as_dir" && as_dir=.
18662 # Account for people who put trailing slashes in PATH elements.
18663case $as_dir/ in
18664 ./ | .// | /cC/* | \
18665 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18666 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18667 /usr/ucb/* ) ;;
18668 *)
18669 # OSF1 and SCO ODT 3.0 have their own names for install.
18670 # Don't use installbsd from OSF since it installs stuff as root
18671 # by default.
18672 for ac_prog in ginstall scoinst install; do
18673 for ac_exec_ext in '' $ac_executable_extensions; do
18674 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18675 if test $ac_prog = install &&
18676 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18677 # AIX install. It has an incompatible calling convention.
18678 :
18679 elif test $ac_prog = install &&
18680 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18681 # program-specific install script used by HP pwplus--don't use.
18682 :
18683 else
18684 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18685 break 3
18686 fi
18687 fi
18688 done
18689 done
18690 ;;
18691esac
18692done
18693IFS=$as_save_IFS
18694
18695
18696fi
18697 if test "${ac_cv_path_install+set}" = set; then
18698 INSTALL=$ac_cv_path_install
18699 else
18700 # As a last resort, use the slow shell script. Don't cache a
18701 # value for INSTALL within a source directory, because that will
18702 # break other packages using the cache if that directory is
18703 # removed, or if the value is a relative name.
18704 INSTALL=$ac_install_sh
18705 fi
18706fi
18707{ echo "$as_me:$LINENO: result: $INSTALL" >&5
18708echo "${ECHO_T}$INSTALL" >&6; }
18709
18710# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18711# It thinks the first close brace ends the variable substitution.
18712test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18713
18714test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18715
18716test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18717
18718for ac_prog in gawk mawk nawk awk
18719do
18720 # Extract the first word of "$ac_prog", so it can be a program name with args.
18721set dummy $ac_prog; ac_word=$2
18722{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18724if test "${ac_cv_prog_AWK+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18726else
18727 if test -n "$AWK"; then
18728 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18729else
18730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18731for as_dir in $PATH
18732do
18733 IFS=$as_save_IFS
18734 test -z "$as_dir" && as_dir=.
18735 for ac_exec_ext in '' $ac_executable_extensions; do
18736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18737 ac_cv_prog_AWK="$ac_prog"
18738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18739 break 2
18740 fi
18741done
18742done
18743IFS=$as_save_IFS
18744
18745fi
18746fi
18747AWK=$ac_cv_prog_AWK
18748if test -n "$AWK"; then
18749 { echo "$as_me:$LINENO: result: $AWK" >&5
18750echo "${ECHO_T}$AWK" >&6; }
18751else
18752 { echo "$as_me:$LINENO: result: no" >&5
18753echo "${ECHO_T}no" >&6; }
18754fi
18755
18756
18757 test -n "$AWK" && break
18758done
18759
18760
18761#########
18762# Set up an appropriate program prefix
18763#
18764if test "$program_prefix" = "NONE"; then
18765 program_prefix=""
18766fi
18767
18768
18769VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
18770echo "Version set to $VERSION"
18771
18772RELEASE=`cat $srcdir/VERSION`
18773echo "Release set to $RELEASE"
18774
18775VERSION_NUMBER=`cat $srcdir/VERSION \
18776 | sed 's/[^0-9]/ /g' \
18777 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
18778echo "Version number set to $VERSION_NUMBER"
18779
18780
18781#########
18782# Check to see if the --with-hints=FILE option is used. If there is none,
18783# then check for a files named "$host.hints" and ../$hosts.hints where
18784# $host is the hostname of the build system. If still no hints are
18785# found, try looking in $system.hints and ../$system.hints where
18786# $system is the result of uname -s.
18787#
18788
18789# Check whether --with-hints was given.
18790if test "${with_hints+set}" = set; then
18791 withval=$with_hints; hints=$withval
18792fi
18793
18794if test "$hints" = ""; then
18795 host=`hostname | sed 's/\..*//'`
18796 if test -r $host.hints; then
18797 hints=$host.hints
18798 else
18799 if test -r ../$host.hints; then
18800 hints=../$host.hints
18801 fi
18802 fi
18803fi
18804if test "$hints" = ""; then
18805 sys=`uname -s`
18806 if test -r $sys.hints; then
18807 hints=$sys.hints
18808 else
18809 if test -r ../$sys.hints; then
18810 hints=../$sys.hints
18811 fi
18812 fi
18813fi
18814if test "$hints" != ""; then
18815 { echo "$as_me:$LINENO: result: reading hints from $hints" >&5
18816echo "${ECHO_T}reading hints from $hints" >&6; }
18817 . $hints
18818fi
18819
18820#########
18821# Locate a compiler for the build machine. This compiler should
18822# generate command-line programs that run on the build machine.
18823#
18824if test x"$cross_compiling" = xno; then
18825 BUILD_CC=$CC
18826 BUILD_CFLAGS=$CFLAGS
18827else
18828 if test "${BUILD_CC+set}" != set; then
18829 for ac_prog in gcc cc cl
18830do
18831 # Extract the first word of "$ac_prog", so it can be a program name with args.
18832set dummy $ac_prog; ac_word=$2
18833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18835if test "${ac_cv_prog_BUILD_CC+set}" = set; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
18837else
18838 if test -n "$BUILD_CC"; then
18839 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
18840else
18841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18842for as_dir in $PATH
18843do
18844 IFS=$as_save_IFS
18845 test -z "$as_dir" && as_dir=.
18846 for ac_exec_ext in '' $ac_executable_extensions; do
18847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18848 ac_cv_prog_BUILD_CC="$ac_prog"
18849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18850 break 2
18851 fi
18852done
18853done
18854IFS=$as_save_IFS
18855
18856fi
18857fi
18858BUILD_CC=$ac_cv_prog_BUILD_CC
18859if test -n "$BUILD_CC"; then
18860 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
18861echo "${ECHO_T}$BUILD_CC" >&6; }
18862else
18863 { echo "$as_me:$LINENO: result: no" >&5
18864echo "${ECHO_T}no" >&6; }
18865fi
18866
18867
18868 test -n "$BUILD_CC" && break
18869done
18870
18871 fi
18872 if test "${BUILD_CFLAGS+set}" != set; then
18873 BUILD_CFLAGS="-g"
18874 fi
18875fi
18876
18877
18878
18879##########
18880# Do we want to support multithreaded use of sqlite
18881#
18882# Check whether --enable-threadsafe was given.
18883if test "${enable_threadsafe+set}" = set; then
18884 enableval=$enable_threadsafe;
18885else
18886 enable_threadsafe=yes
18887fi
18888
18889{ echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
18890echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6; }
18891if test "$enable_threadsafe" = "no"; then
18892 SQLITE_THREADSAFE=0
18893 { echo "$as_me:$LINENO: result: no" >&5
18894echo "${ECHO_T}no" >&6; }
18895else
18896 SQLITE_THREADSAFE=1
18897 { echo "$as_me:$LINENO: result: yes" >&5
18898echo "${ECHO_T}yes" >&6; }
18899fi
18900
18901
18902if test "$SQLITE_THREADSAFE" = "1"; then
18903 LIBS=""
18904
18905{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18906echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
18907if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18909else
18910 ac_check_lib_save_LIBS=$LIBS
18911LIBS="-lpthread $LIBS"
18912cat >conftest.$ac_ext <<_ACEOF
18913/* confdefs.h. */
18914_ACEOF
18915cat confdefs.h >>conftest.$ac_ext
18916cat >>conftest.$ac_ext <<_ACEOF
18917/* end confdefs.h. */
18918
18919/* Override any GCC internal prototype to avoid an error.
18920 Use char because int might match the return type of a GCC
18921 builtin and then its argument prototype would still apply. */
18922#ifdef __cplusplus
18923extern "C"
18924#endif
18925char pthread_create ();
18926int
18927main ()
18928{
18929return pthread_create ();
18930 ;
18931 return 0;
18932}
18933_ACEOF
18934rm -f conftest.$ac_objext conftest$ac_exeext
18935if { (ac_try="$ac_link"
18936case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18939esac
18940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_link") 2>conftest.er1
18942 ac_status=$?
18943 grep -v '^ *+' conftest.er1 >conftest.err
18944 rm -f conftest.er1
18945 cat conftest.err >&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } && {
18948 test -z "$ac_c_werror_flag" ||
18949 test ! -s conftest.err
18950 } && test -s conftest$ac_exeext &&
18951 $as_test_x conftest$ac_exeext; then
18952 ac_cv_lib_pthread_pthread_create=yes
18953else
18954 echo "$as_me: failed program was:" >&5
18955sed 's/^/| /' conftest.$ac_ext >&5
18956
18957 ac_cv_lib_pthread_pthread_create=no
18958fi
18959
18960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18961 conftest$ac_exeext conftest.$ac_ext
18962LIBS=$ac_check_lib_save_LIBS
18963fi
18964{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18965echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
18966if test $ac_cv_lib_pthread_pthread_create = yes; then
18967 cat >>confdefs.h <<_ACEOF
18968#define HAVE_LIBPTHREAD 1
18969_ACEOF
18970
18971 LIBS="-lpthread $LIBS"
18972
18973fi
18974
18975 TARGET_THREAD_LIB="$LIBS"
18976 LIBS=""
18977else
18978 TARGET_THREAD_LIB=""
18979fi
18980
18981
18982##########
18983# Do we want to allow a connection created in one thread to be used
18984# in another thread. This does not work on many Linux systems (ex: RedHat 9)
18985# due to bugs in the threading implementations. This is thus off by default.
18986#
18987# Check whether --enable-cross-thread-connections was given.
18988if test "${enable_cross_thread_connections+set}" = set; then
18989 enableval=$enable_cross_thread_connections;
18990else
18991 enable_xthreadconnect=no
18992fi
18993
18994{ echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
18995echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6; }
18996if test "$enable_xthreadconnect" = "no"; then
18997 XTHREADCONNECT=''
18998 { echo "$as_me:$LINENO: result: no" >&5
18999echo "${ECHO_T}no" >&6; }
19000else
19001 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
19002 { echo "$as_me:$LINENO: result: yes" >&5
19003echo "${ECHO_T}yes" >&6; }
19004fi
19005
19006
19007##########
19008# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
19009# default. Normally, a test at runtime is performed to determine the
19010# appropriate value of this variable. Use this option only if you're sure that
19011# threads can safely override each others locks in all runtime situations.
19012#
19013# Check whether --enable-threads-override-locks was given.
19014if test "${enable_threads_override_locks+set}" = set; then
19015 enableval=$enable_threads_override_locks;
19016else
19017 enable_threads_override_locks=no
19018fi
19019
19020{ echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
19021echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6; }
19022if test "$enable_threads_override_locks" = "no"; then
19023 THREADSOVERRIDELOCKS='-1'
19024 { echo "$as_me:$LINENO: result: no" >&5
19025echo "${ECHO_T}no" >&6; }
19026else
19027 THREADSOVERRIDELOCKS='1'
19028 { echo "$as_me:$LINENO: result: yes" >&5
19029echo "${ECHO_T}yes" >&6; }
19030fi
19031
19032
19033##########
19034# Do we want to support release
19035#
19036# Check whether --enable-releasemode was given.
19037if test "${enable_releasemode+set}" = set; then
19038 enableval=$enable_releasemode;
19039else
19040 enable_releasemode=no
19041fi
19042
19043{ echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
19044echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6; }
19045if test "$enable_releasemode" = "no"; then
19046 ALLOWRELEASE=""
19047 { echo "$as_me:$LINENO: result: no" >&5
19048echo "${ECHO_T}no" >&6; }
19049else
19050 ALLOWRELEASE="-release `cat VERSION`"
19051 { echo "$as_me:$LINENO: result: yes" >&5
19052echo "${ECHO_T}yes" >&6; }
19053fi
19054
19055
19056##########
19057# Do we want temporary databases in memory
19058#
19059# Check whether --enable-tempstore was given.
19060if test "${enable_tempstore+set}" = set; then
19061 enableval=$enable_tempstore;
19062else
19063 enable_tempstore=no
19064fi
19065
19066{ echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
19067echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6; }
19068case "$enable_tempstore" in
19069 never )
19070 TEMP_STORE=0
19071 { echo "$as_me:$LINENO: result: never" >&5
19072echo "${ECHO_T}never" >&6; }
19073 ;;
19074 no )
19075 TEMP_STORE=1
19076 { echo "$as_me:$LINENO: result: no" >&5
19077echo "${ECHO_T}no" >&6; }
19078 ;;
19079 always )
19080 TEMP_STORE=3
19081 { echo "$as_me:$LINENO: result: always" >&5
19082echo "${ECHO_T}always" >&6; }
19083 ;;
19084 yes )
19085 TEMP_STORE=3
19086 { echo "$as_me:$LINENO: result: always" >&5
19087echo "${ECHO_T}always" >&6; }
19088 ;;
19089 * )
19090 TEMP_STORE=1
19091 { echo "$as_me:$LINENO: result: yes" >&5
19092echo "${ECHO_T}yes" >&6; }
19093 ;;
19094esac
19095
19096
19097
19098###########
19099# Lots of things are different if we are compiling for Windows using
19100# the CYGWIN environment. So check for that special case and handle
19101# things accordingly.
19102#
19103{ echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
19104echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6; }
19105if test "$config_BUILD_EXEEXT" = ".exe"; then
19106 CYGWIN=yes
19107 { echo "$as_me:$LINENO: result: yes" >&5
19108echo "${ECHO_T}yes" >&6; }
19109else
19110 { echo "$as_me:$LINENO: result: unknown" >&5
19111echo "${ECHO_T}unknown" >&6; }
19112fi
19113if test "$CYGWIN" != "yes"; then
19114 { echo "$as_me:$LINENO: checking host system type" >&5
19115echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19116if test "${ac_cv_host+set}" = set; then
19117 echo $ECHO_N "(cached) $ECHO_C" >&6
19118else
19119 if test "x$host_alias" = x; then
19120 ac_cv_host=$ac_cv_build
19121else
19122 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19123 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19124echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19125 { (exit 1); exit 1; }; }
19126fi
19127
19128fi
19129{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19130echo "${ECHO_T}$ac_cv_host" >&6; }
19131case $ac_cv_host in
19132*-*-*) ;;
19133*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19134echo "$as_me: error: invalid value of canonical host" >&2;}
19135 { (exit 1); exit 1; }; };;
19136esac
19137host=$ac_cv_host
19138ac_save_IFS=$IFS; IFS='-'
19139set x $ac_cv_host
19140shift
19141host_cpu=$1
19142host_vendor=$2
19143shift; shift
19144# Remember, the first character of IFS is used to create $*,
19145# except with old shells:
19146host_os=$*
19147IFS=$ac_save_IFS
19148case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
19149
19150
19151case $host_os in
19152 *cygwin* ) CYGWIN=yes;;
19153 * ) CYGWIN=no;;
19154esac
19155
19156fi
19157if test "$CYGWIN" = "yes"; then
19158 BUILD_EXEEXT=.exe
19159else
19160 BUILD_EXEEXT=$EXEEXT
19161fi
19162if test x"$cross_compiling" = xno; then
19163 TARGET_EXEEXT=$BUILD_EXEEXT
19164else
19165 TARGET_EXEEXT=$config_TARGET_EXEEXT
19166fi
19167if test "$TARGET_EXEEXT" = ".exe"; then
19168 if test $OS2_SHELL ; then
19169 OS_UNIX=0
19170 OS_WIN=0
19171 OS_OS2=1
19172 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1"
19173 if test "$ac_compiler_gnu" == "yes" ; then
19174 TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap"
19175 BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
19176 fi
19177 else
19178 OS_UNIX=0
19179 OS_WIN=1
19180 OS_OS2=0
19181 tclsubdir=win
19182 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1"
19183 fi
19184else
19185 OS_UNIX=1
19186 OS_WIN=0
19187 OS_OS2=0
19188 tclsubdir=unix
19189 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1"
19190fi
19191
19192
19193
19194
19195
19196
19197
19198##########
19199# Figure out all the parameters needed to compile against Tcl.
19200#
19201# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
19202# macros in the in the tcl.m4 file of the standard TCL distribution.
19203# Those macros could not be used directly since we have to make some
19204# minor changes to accomodate systems that do not have TCL installed.
19205#
19206# Check whether --enable-tcl was given.
19207if test "${enable_tcl+set}" = set; then
19208 enableval=$enable_tcl; use_tcl=$enableval
19209else
19210 use_tcl=yes
19211fi
19212
19213if test "${use_tcl}" = "yes" ; then
19214
19215# Check whether --with-tcl was given.
19216if test "${with_tcl+set}" = set; then
19217 withval=$with_tcl; with_tclconfig=${withval}
19218fi
19219
19220 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19221echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
19222 if test "${ac_cv_c_tclconfig+set}" = set; then
19223 echo $ECHO_N "(cached) $ECHO_C" >&6
19224else
19225
19226 # First check to see if --with-tcl was specified.
19227 if test x"${with_tclconfig}" != x ; then
19228 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19229 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19230 else
19231 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19232echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19233 { (exit 1); exit 1; }; }
19234 fi
19235 fi
19236 # then check for a private Tcl installation
19237 if test x"${ac_cv_c_tclconfig}" = x ; then
19238 for i in \
19239 ../tcl \
19240 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19241 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
19242 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
19243 ../../tcl \
19244 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19245 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
19246 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
19247 ../../../tcl \
19248 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19249 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
19250 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
19251 do
19252 if test -f "$i/unix/tclConfig.sh" ; then
19253 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19254 break
19255 fi
19256 done
19257 fi
19258
19259 # check in a few common install locations
19260 if test x"${ac_cv_c_tclconfig}" = x ; then
19261 for i in \
19262 `ls -d ${libdir} 2>/dev/null` \
19263 `ls -d /usr/local/lib 2>/dev/null` \
19264 `ls -d /usr/contrib/lib 2>/dev/null` \
19265 `ls -d /usr/lib 2>/dev/null`
19266 do
19267 if test -f "$i/tclConfig.sh" ; then
19268 ac_cv_c_tclconfig=`(cd $i; pwd)`
19269 break
19270 fi
19271 done
19272 fi
19273
19274 # check in a few other private locations
19275 if test x"${ac_cv_c_tclconfig}" = x ; then
19276 for i in \
19277 ${srcdir}/../tcl \
19278 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19279 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
19280 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
19281 do
19282 if test -f "$i/unix/tclConfig.sh" ; then
19283 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19284 break
19285 fi
19286 done
19287 fi
19288
19289fi
19290
19291
19292 if test x"${ac_cv_c_tclconfig}" = x ; then
19293 use_tcl=no
19294 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19295echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19296 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
19297echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
19299echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
19300 else
19301 TCL_BIN_DIR=${ac_cv_c_tclconfig}
19302 { echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
19303echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6; }
19304
19305 { echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
19306echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6; }
19307 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
19308 { echo "$as_me:$LINENO: result: loading" >&5
19309echo "${ECHO_T}loading" >&6; }
19310 . $TCL_BIN_DIR/tclConfig.sh
19311 else
19312 { echo "$as_me:$LINENO: result: file not found" >&5
19313echo "${ECHO_T}file not found" >&6; }
19314 fi
19315
19316 #
19317 # If the TCL_BIN_DIR is the build directory (not the install directory),
19318 # then set the common variable name to the value of the build variables.
19319 # For example, the variable TCL_LIB_SPEC will be set to the value
19320 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
19321 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
19322 # installed and uninstalled version of Tcl.
19323 #
19324
19325 if test -f $TCL_BIN_DIR/Makefile ; then
19326 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
19327 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
19328 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
19329 fi
19330
19331 #
19332 # eval is required to do the TCL_DBGX substitution
19333 #
19334
19335 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
19336 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
19337 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
19338
19339 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
19340 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
19341 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356 fi
19357fi
19358if test "${use_tcl}" = "no" ; then
19359 HAVE_TCL=""
19360else
19361 HAVE_TCL=1
19362fi
19363
19364
19365##########
19366# Figure out what C libraries are required to compile programs
19367# that use "readline()" library.
19368#
19369TARGET_READLINE_LIBS=""
19370TARGET_READLINE_INC=""
19371TARGET_HAVE_READLINE=0
19372# Check whether --enable-readline was given.
19373if test "${enable_readline+set}" = set; then
19374 enableval=$enable_readline; with_readline=$enableval
19375else
19376 with_readline=auto
19377fi
19378
19379
19380if test x"$with_readline" != xno; then
19381 found="yes"
19382
19383
19384# Check whether --with-readline-lib was given.
19385if test "${with_readline_lib+set}" = set; then
19386 withval=$with_readline_lib; with_readline_lib=$withval
19387else
19388 with_readline_lib="auto"
19389fi
19390
19391 if test "x$with_readline_lib" = xauto; then
19392 save_LIBS="$LIBS"
19393 LIBS=""
19394 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
19395echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
19396if test "${ac_cv_search_tgetent+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19398else
19399 ac_func_search_save_LIBS=$LIBS
19400cat >conftest.$ac_ext <<_ACEOF
19401/* confdefs.h. */
19402_ACEOF
19403cat confdefs.h >>conftest.$ac_ext
19404cat >>conftest.$ac_ext <<_ACEOF
19405/* end confdefs.h. */
19406
19407/* Override any GCC internal prototype to avoid an error.
19408 Use char because int might match the return type of a GCC
19409 builtin and then its argument prototype would still apply. */
19410#ifdef __cplusplus
19411extern "C"
19412#endif
19413char tgetent ();
19414int
19415main ()
19416{
19417return tgetent ();
19418 ;
19419 return 0;
19420}
19421_ACEOF
19422for ac_lib in '' readline ncurses curses termcap; do
19423 if test -z "$ac_lib"; then
19424 ac_res="none required"
19425 else
19426 ac_res=-l$ac_lib
19427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19428 fi
19429 rm -f conftest.$ac_objext conftest$ac_exeext
19430if { (ac_try="$ac_link"
19431case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19434esac
19435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_link") 2>conftest.er1
19437 ac_status=$?
19438 grep -v '^ *+' conftest.er1 >conftest.err
19439 rm -f conftest.er1
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } && {
19443 test -z "$ac_c_werror_flag" ||
19444 test ! -s conftest.err
19445 } && test -s conftest$ac_exeext &&
19446 $as_test_x conftest$ac_exeext; then
19447 ac_cv_search_tgetent=$ac_res
19448else
19449 echo "$as_me: failed program was:" >&5
19450sed 's/^/| /' conftest.$ac_ext >&5
19451
19452
19453fi
19454
19455rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19456 conftest$ac_exeext
19457 if test "${ac_cv_search_tgetent+set}" = set; then
19458 break
19459fi
19460done
19461if test "${ac_cv_search_tgetent+set}" = set; then
19462 :
19463else
19464 ac_cv_search_tgetent=no
19465fi
19466rm conftest.$ac_ext
19467LIBS=$ac_func_search_save_LIBS
19468fi
19469{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
19470echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
19471ac_res=$ac_cv_search_tgetent
19472if test "$ac_res" != no; then
19473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19474 term_LIBS="$LIBS"
19475else
19476 term_LIBS=""
19477fi
19478
19479 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
19480echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
19481if test "${ac_cv_lib_readline_readline+set}" = set; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19483else
19484 ac_check_lib_save_LIBS=$LIBS
19485LIBS="-lreadline $LIBS"
19486cat >conftest.$ac_ext <<_ACEOF
19487/* confdefs.h. */
19488_ACEOF
19489cat confdefs.h >>conftest.$ac_ext
19490cat >>conftest.$ac_ext <<_ACEOF
19491/* end confdefs.h. */
19492
19493/* Override any GCC internal prototype to avoid an error.
19494 Use char because int might match the return type of a GCC
19495 builtin and then its argument prototype would still apply. */
19496#ifdef __cplusplus
19497extern "C"
19498#endif
19499char readline ();
19500int
19501main ()
19502{
19503return readline ();
19504 ;
19505 return 0;
19506}
19507_ACEOF
19508rm -f conftest.$ac_objext conftest$ac_exeext
19509if { (ac_try="$ac_link"
19510case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19513esac
19514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515 (eval "$ac_link") 2>conftest.er1
19516 ac_status=$?
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } && {
19522 test -z "$ac_c_werror_flag" ||
19523 test ! -s conftest.err
19524 } && test -s conftest$ac_exeext &&
19525 $as_test_x conftest$ac_exeext; then
19526 ac_cv_lib_readline_readline=yes
19527else
19528 echo "$as_me: failed program was:" >&5
19529sed 's/^/| /' conftest.$ac_ext >&5
19530
19531 ac_cv_lib_readline_readline=no
19532fi
19533
19534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19535 conftest$ac_exeext conftest.$ac_ext
19536LIBS=$ac_check_lib_save_LIBS
19537fi
19538{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
19539echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
19540if test $ac_cv_lib_readline_readline = yes; then
19541 TARGET_READLINE_LIBS="-lreadline"
19542else
19543 found="no"
19544fi
19545
19546 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
19547 LIBS="$save_LIBS"
19548 else
19549 TARGET_READLINE_LIBS="$with_readline_lib"
19550 fi
19551
19552
19553# Check whether --with-readline-inc was given.
19554if test "${with_readline_inc+set}" = set; then
19555 withval=$with_readline_inc; with_readline_inc=$withval
19556else
19557 with_readline_inc="auto"
19558fi
19559
19560 if test "x$with_readline_inc" = xauto; then
19561 if test "${ac_cv_header_readline_h+set}" = set; then
19562 { echo "$as_me:$LINENO: checking for readline.h" >&5
19563echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; }
19564if test "${ac_cv_header_readline_h+set}" = set; then
19565 echo $ECHO_N "(cached) $ECHO_C" >&6
19566fi
19567{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
19568echo "${ECHO_T}$ac_cv_header_readline_h" >&6; }
19569else
19570 # Is the header compilable?
19571{ echo "$as_me:$LINENO: checking readline.h usability" >&5
19572echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6; }
19573cat >conftest.$ac_ext <<_ACEOF
19574/* confdefs.h. */
19575_ACEOF
19576cat confdefs.h >>conftest.$ac_ext
19577cat >>conftest.$ac_ext <<_ACEOF
19578/* end confdefs.h. */
19579$ac_includes_default
19580#include <readline.h>
19581_ACEOF
19582rm -f conftest.$ac_objext
19583if { (ac_try="$ac_compile"
19584case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19587esac
19588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_compile") 2>conftest.er1
19590 ac_status=$?
19591 grep -v '^ *+' conftest.er1 >conftest.err
19592 rm -f conftest.er1
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } && {
19596 test -z "$ac_c_werror_flag" ||
19597 test ! -s conftest.err
19598 } && test -s conftest.$ac_objext; then
19599 ac_header_compiler=yes
19600else
19601 echo "$as_me: failed program was:" >&5
19602sed 's/^/| /' conftest.$ac_ext >&5
19603
19604 ac_header_compiler=no
19605fi
19606
19607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19608{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19609echo "${ECHO_T}$ac_header_compiler" >&6; }
19610
19611# Is the header present?
19612{ echo "$as_me:$LINENO: checking readline.h presence" >&5
19613echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6; }
19614cat >conftest.$ac_ext <<_ACEOF
19615/* confdefs.h. */
19616_ACEOF
19617cat confdefs.h >>conftest.$ac_ext
19618cat >>conftest.$ac_ext <<_ACEOF
19619/* end confdefs.h. */
19620#include <readline.h>
19621_ACEOF
19622if { (ac_try="$ac_cpp conftest.$ac_ext"
19623case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19626esac
19627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19629 ac_status=$?
19630 grep -v '^ *+' conftest.er1 >conftest.err
19631 rm -f conftest.er1
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } >/dev/null && {
19635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19636 test ! -s conftest.err
19637 }; then
19638 ac_header_preproc=yes
19639else
19640 echo "$as_me: failed program was:" >&5
19641sed 's/^/| /' conftest.$ac_ext >&5
19642
19643 ac_header_preproc=no
19644fi
19645
19646rm -f conftest.err conftest.$ac_ext
19647{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19648echo "${ECHO_T}$ac_header_preproc" >&6; }
19649
19650# So? What about this header?
19651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19652 yes:no: )
19653 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
19654echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19655 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
19656echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
19657 ac_header_preproc=yes
19658 ;;
19659 no:yes:* )
19660 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
19661echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
19662 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
19663echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
19664 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
19665echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
19666 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
19667echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
19668 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
19669echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
19670 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
19671echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
19672
19673 ;;
19674esac
19675{ echo "$as_me:$LINENO: checking for readline.h" >&5
19676echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; }
19677if test "${ac_cv_header_readline_h+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19679else
19680 ac_cv_header_readline_h=$ac_header_preproc
19681fi
19682{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
19683echo "${ECHO_T}$ac_cv_header_readline_h" >&6; }
19684
19685fi
19686if test $ac_cv_header_readline_h = yes; then
19687 found="yes"
19688else
19689
19690 found="no"
19691 if test "$cross_compiling" != yes; then
19692 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
19693 for subdir in include include/readline; do
19694 as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
19695{ echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
19696echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6; }
19697if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
19699else
19700 test "$cross_compiling" = yes &&
19701 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
19702echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
19703 { (exit 1); exit 1; }; }
19704if test -r "$dir/$subdir/readline.h"; then
19705 eval "$as_ac_File=yes"
19706else
19707 eval "$as_ac_File=no"
19708fi
19709fi
19710ac_res=`eval echo '${'$as_ac_File'}'`
19711 { echo "$as_me:$LINENO: result: $ac_res" >&5
19712echo "${ECHO_T}$ac_res" >&6; }
19713if test `eval echo '${'$as_ac_File'}'` = yes; then
19714 found=yes
19715fi
19716
19717 if test "$found" = "yes"; then
19718 TARGET_READLINE_INC="-I$dir/$subdir"
19719 break
19720 fi
19721 done
19722 test "$found" = "yes" && break
19723 done
19724 fi
19725
19726fi
19727
19728
19729 else
19730 TARGET_READLINE_INC="$with_readline_inc"
19731 fi
19732
19733 if test x"$found" = xno; then
19734 TARGET_READLINE_LIBS=""
19735 TARGET_READLINE_INC=""
19736 TARGET_HAVE_READLINE=0
19737 else
19738 TARGET_HAVE_READLINE=1
19739 fi
19740fi
19741
19742
19743
19744
19745
19746##########
19747# Figure out what C libraries are required to compile programs
19748# that use "fdatasync()" function.
19749#
19750{ echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
19751echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
19752if test "${ac_cv_search_fdatasync+set}" = set; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19754else
19755 ac_func_search_save_LIBS=$LIBS
19756cat >conftest.$ac_ext <<_ACEOF
19757/* confdefs.h. */
19758_ACEOF
19759cat confdefs.h >>conftest.$ac_ext
19760cat >>conftest.$ac_ext <<_ACEOF
19761/* end confdefs.h. */
19762
19763/* Override any GCC internal prototype to avoid an error.
19764 Use char because int might match the return type of a GCC
19765 builtin and then its argument prototype would still apply. */
19766#ifdef __cplusplus
19767extern "C"
19768#endif
19769char fdatasync ();
19770int
19771main ()
19772{
19773return fdatasync ();
19774 ;
19775 return 0;
19776}
19777_ACEOF
19778for ac_lib in '' rt; do
19779 if test -z "$ac_lib"; then
19780 ac_res="none required"
19781 else
19782 ac_res=-l$ac_lib
19783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19784 fi
19785 rm -f conftest.$ac_objext conftest$ac_exeext
19786if { (ac_try="$ac_link"
19787case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19790esac
19791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_link") 2>conftest.er1
19793 ac_status=$?
19794 grep -v '^ *+' conftest.er1 >conftest.err
19795 rm -f conftest.er1
19796 cat conftest.err >&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); } && {
19799 test -z "$ac_c_werror_flag" ||
19800 test ! -s conftest.err
19801 } && test -s conftest$ac_exeext &&
19802 $as_test_x conftest$ac_exeext; then
19803 ac_cv_search_fdatasync=$ac_res
19804else
19805 echo "$as_me: failed program was:" >&5
19806sed 's/^/| /' conftest.$ac_ext >&5
19807
19808
19809fi
19810
19811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19812 conftest$ac_exeext
19813 if test "${ac_cv_search_fdatasync+set}" = set; then
19814 break
19815fi
19816done
19817if test "${ac_cv_search_fdatasync+set}" = set; then
19818 :
19819else
19820 ac_cv_search_fdatasync=no
19821fi
19822rm conftest.$ac_ext
19823LIBS=$ac_func_search_save_LIBS
19824fi
19825{ echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
19826echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
19827ac_res=$ac_cv_search_fdatasync
19828if test "$ac_res" != no; then
19829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19830
19831fi
19832
19833
19834#########
19835# check for debug enabled
19836# Check whether --enable-debug was given.
19837if test "${enable_debug+set}" = set; then
19838 enableval=$enable_debug; use_debug=$enableval
19839else
19840 use_debug=no
19841fi
19842
19843if test "${use_debug}" = "yes" ; then
19844 TARGET_DEBUG="-DSQLITE_DEBUG=1"
19845else
19846 TARGET_DEBUG="-DNDEBUG"
19847fi
19848
19849
19850#########
19851# Figure out whether or not we have a "usleep()" function.
19852#
19853{ echo "$as_me:$LINENO: checking for usleep" >&5
19854echo $ECHO_N "checking for usleep... $ECHO_C" >&6; }
19855if test "${ac_cv_func_usleep+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19857else
19858 cat >conftest.$ac_ext <<_ACEOF
19859/* confdefs.h. */
19860_ACEOF
19861cat confdefs.h >>conftest.$ac_ext
19862cat >>conftest.$ac_ext <<_ACEOF
19863/* end confdefs.h. */
19864/* Define usleep to an innocuous variant, in case <limits.h> declares usleep.
19865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19866#define usleep innocuous_usleep
19867
19868/* System header to define __stub macros and hopefully few prototypes,
19869 which can conflict with char usleep (); below.
19870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19871 <limits.h> exists even on freestanding compilers. */
19872
19873#ifdef __STDC__
19874# include <limits.h>
19875#else
19876# include <assert.h>
19877#endif
19878
19879#undef usleep
19880
19881/* Override any GCC internal prototype to avoid an error.
19882 Use char because int might match the return type of a GCC
19883 builtin and then its argument prototype would still apply. */
19884#ifdef __cplusplus
19885extern "C"
19886#endif
19887char usleep ();
19888/* The GNU C library defines this for functions which it implements
19889 to always fail with ENOSYS. Some functions are actually named
19890 something starting with __ and the normal name is an alias. */
19891#if defined __stub_usleep || defined __stub___usleep
19892choke me
19893#endif
19894
19895int
19896main ()
19897{
19898return usleep ();
19899 ;
19900 return 0;
19901}
19902_ACEOF
19903rm -f conftest.$ac_objext conftest$ac_exeext
19904if { (ac_try="$ac_link"
19905case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19908esac
19909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_link") 2>conftest.er1
19911 ac_status=$?
19912 grep -v '^ *+' conftest.er1 >conftest.err
19913 rm -f conftest.er1
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } && {
19917 test -z "$ac_c_werror_flag" ||
19918 test ! -s conftest.err
19919 } && test -s conftest$ac_exeext &&
19920 $as_test_x conftest$ac_exeext; then
19921 ac_cv_func_usleep=yes
19922else
19923 echo "$as_me: failed program was:" >&5
19924sed 's/^/| /' conftest.$ac_ext >&5
19925
19926 ac_cv_func_usleep=no
19927fi
19928
19929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19930 conftest$ac_exeext conftest.$ac_ext
19931fi
19932{ echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
19933echo "${ECHO_T}$ac_cv_func_usleep" >&6; }
19934if test $ac_cv_func_usleep = yes; then
19935 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
19936fi
19937
19938
19939#--------------------------------------------------------------------
19940# Redefine fdatasync as fsync on systems that lack fdatasync
19941#--------------------------------------------------------------------
19942
19943{ echo "$as_me:$LINENO: checking for fdatasync" >&5
19944echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
19945if test "${ac_cv_func_fdatasync+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19947else
19948 cat >conftest.$ac_ext <<_ACEOF
19949/* confdefs.h. */
19950_ACEOF
19951cat confdefs.h >>conftest.$ac_ext
19952cat >>conftest.$ac_ext <<_ACEOF
19953/* end confdefs.h. */
19954/* Define fdatasync to an innocuous variant, in case <limits.h> declares fdatasync.
19955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19956#define fdatasync innocuous_fdatasync
19957
19958/* System header to define __stub macros and hopefully few prototypes,
19959 which can conflict with char fdatasync (); below.
19960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19961 <limits.h> exists even on freestanding compilers. */
19962
19963#ifdef __STDC__
19964# include <limits.h>
19965#else
19966# include <assert.h>
19967#endif
19968
19969#undef fdatasync
19970
19971/* Override any GCC internal prototype to avoid an error.
19972 Use char because int might match the return type of a GCC
19973 builtin and then its argument prototype would still apply. */
19974#ifdef __cplusplus
19975extern "C"
19976#endif
19977char fdatasync ();
19978/* The GNU C library defines this for functions which it implements
19979 to always fail with ENOSYS. Some functions are actually named
19980 something starting with __ and the normal name is an alias. */
19981#if defined __stub_fdatasync || defined __stub___fdatasync
19982choke me
19983#endif
19984
19985int
19986main ()
19987{
19988return fdatasync ();
19989 ;
19990 return 0;
19991}
19992_ACEOF
19993rm -f conftest.$ac_objext conftest$ac_exeext
19994if { (ac_try="$ac_link"
19995case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19998esac
19999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_link") 2>conftest.er1
20001 ac_status=$?
20002 grep -v '^ *+' conftest.er1 >conftest.err
20003 rm -f conftest.er1
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } && {
20007 test -z "$ac_c_werror_flag" ||
20008 test ! -s conftest.err
20009 } && test -s conftest$ac_exeext &&
20010 $as_test_x conftest$ac_exeext; then
20011 ac_cv_func_fdatasync=yes
20012else
20013 echo "$as_me: failed program was:" >&5
20014sed 's/^/| /' conftest.$ac_ext >&5
20015
20016 ac_cv_func_fdatasync=no
20017fi
20018
20019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20020 conftest$ac_exeext conftest.$ac_ext
20021fi
20022{ echo "$as_me:$LINENO: result: $ac_cv_func_fdatasync" >&5
20023echo "${ECHO_T}$ac_cv_func_fdatasync" >&6; }
20024if test $ac_cv_func_fdatasync = yes; then
20025 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_FDATASYNC=1"
20026fi
20027
20028
20029#########
20030# Generate the output files.
20031#
20032ac_config_files="$ac_config_files Makefile sqlite3.pc"
20033
20034cat >confcache <<\_ACEOF
20035# This file is a shell script that caches the results of configure
20036# tests run on this system so they can be shared between configure
20037# scripts and configure runs, see configure's option --config-cache.
20038# It is not useful on other systems. If it contains results you don't
20039# want to keep, you may remove or edit it.
20040#
20041# config.status only pays attention to the cache file if you give it
20042# the --recheck option to rerun configure.
20043#
20044# `ac_cv_env_foo' variables (set or unset) will be overridden when
20045# loading this file, other *unset* `ac_cv_foo' will be assigned the
20046# following values.
20047
20048_ACEOF
20049
20050# The following way of writing the cache mishandles newlines in values,
20051# but we know of no workaround that is simple, portable, and efficient.
20052# So, we kill variables containing newlines.
20053# Ultrix sh set writes to stderr and can't be redirected directly,
20054# and sets the high bit in the cache file unless we assign to the vars.
20055(
20056 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20057 eval ac_val=\$$ac_var
20058 case $ac_val in #(
20059 *${as_nl}*)
20060 case $ac_var in #(
20061 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20062echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20063 esac
20064 case $ac_var in #(
20065 _ | IFS | as_nl) ;; #(
20066 *) $as_unset $ac_var ;;
20067 esac ;;
20068 esac
20069 done
20070
20071 (set) 2>&1 |
20072 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20073 *${as_nl}ac_space=\ *)
20074 # `set' does not quote correctly, so add quotes (double-quote
20075 # substitution turns \\\\ into \\, and sed turns \\ into \).
20076 sed -n \
20077 "s/'/'\\\\''/g;
20078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20079 ;; #(
20080 *)
20081 # `set' quotes correctly as required by POSIX, so do not add quotes.
20082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20083 ;;
20084 esac |
20085 sort
20086) |
20087 sed '
20088 /^ac_cv_env_/b end
20089 t clear
20090 :clear
20091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20092 t end
20093 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20094 :end' >>confcache
20095if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20096 if test -w "$cache_file"; then
20097 test "x$cache_file" != "x/dev/null" &&
20098 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20099echo "$as_me: updating cache $cache_file" >&6;}
20100 cat confcache >$cache_file
20101 else
20102 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20103echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20104 fi
20105fi
20106rm -f confcache
20107
20108test "x$prefix" = xNONE && prefix=$ac_default_prefix
20109# Let make expand exec_prefix.
20110test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20111
20112# Transform confdefs.h into DEFS.
20113# Protect against shell expansion while executing Makefile rules.
20114# Protect against Makefile macro expansion.
20115#
20116# If the first sed substitution is executed (which looks for macros that
20117# take arguments), then branch to the quote section. Otherwise,
20118# look for a macro that doesn't take arguments.
20119ac_script='
20120t clear
20121:clear
20122s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20123t quote
20124s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20125t quote
20126b any
20127:quote
20128s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20129s/\[/\\&/g
20130s/\]/\\&/g
20131s/\$/$$/g
20132H
20133:any
20134${
20135 g
20136 s/^\n//
20137 s/\n/ /g
20138 p
20139}
20140'
20141DEFS=`sed -n "$ac_script" confdefs.h`
20142
20143
20144ac_libobjs=
20145ac_ltlibobjs=
20146for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20147 # 1. Remove the extension, and $U if already installed.
20148 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20149 ac_i=`echo "$ac_i" | sed "$ac_script"`
20150 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20151 # will be set to the directory where LIBOBJS objects are built.
20152 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20153 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20154done
20155LIBOBJS=$ac_libobjs
20156
20157LTLIBOBJS=$ac_ltlibobjs
20158
20159
20160
20161: ${CONFIG_STATUS=./config.status}
20162ac_clean_files_save=$ac_clean_files
20163ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20164{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20165echo "$as_me: creating $CONFIG_STATUS" >&6;}
20166cat >$CONFIG_STATUS <<_ACEOF
20167#! $SHELL
20168# Generated by $as_me.
20169# Run this file to recreate the current configuration.
20170# Compiler output produced by configure, useful for debugging
20171# configure, is in config.log if it exists.
20172
20173debug=false
20174ac_cs_recheck=false
20175ac_cs_silent=false
20176SHELL=\${CONFIG_SHELL-$SHELL}
20177_ACEOF
20178
20179cat >>$CONFIG_STATUS <<\_ACEOF
20180## --------------------- ##
20181## M4sh Initialization. ##
20182## --------------------- ##
20183
20184# Be more Bourne compatible
20185DUALCASE=1; export DUALCASE # for MKS sh
20186if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20187 emulate sh
20188 NULLCMD=:
20189 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20190 # is contrary to our usage. Disable this feature.
20191 alias -g '${1+"$@"}'='"$@"'
20192 setopt NO_GLOB_SUBST
20193else
20194 case `(set -o) 2>/dev/null` in
20195 *posix*) set -o posix ;;
20196esac
20197
20198fi
20199
20200
20201
20202
20203# PATH needs CR
20204# Avoid depending upon Character Ranges.
20205as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20206as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20207as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20208as_cr_digits='0123456789'
20209as_cr_alnum=$as_cr_Letters$as_cr_digits
20210
20211# The user is always right.
20212if test "${PATH_SEPARATOR+set}" != set; then
20213 echo "#! /bin/sh" >conf$$.sh
20214 echo "exit 0" >>conf$$.sh
20215 chmod +x conf$$.sh
20216 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20217 PATH_SEPARATOR=';'
20218 else
20219 PATH_SEPARATOR=:
20220 fi
20221 rm -f conf$$.sh
20222fi
20223
20224# Support unset when possible.
20225if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20226 as_unset=unset
20227else
20228 as_unset=false
20229fi
20230
20231
20232# IFS
20233# We need space, tab and new line, in precisely that order. Quoting is
20234# there to prevent editors from complaining about space-tab.
20235# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20236# splitting by setting IFS to empty value.)
20237as_nl='
20238'
20239IFS=" "" $as_nl"
20240
20241# Find who we are. Look in the path if we contain no directory separator.
20242case $0 in
20243 *[\\/]* ) as_myself=$0 ;;
20244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20245for as_dir in $PATH
20246do
20247 IFS=$as_save_IFS
20248 test -z "$as_dir" && as_dir=.
20249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20250done
20251IFS=$as_save_IFS
20252
20253 ;;
20254esac
20255# We did not find ourselves, most probably we were run as `sh COMMAND'
20256# in which case we are not to be found in the path.
20257if test "x$as_myself" = x; then
20258 as_myself=$0
20259fi
20260if test ! -f "$as_myself"; then
20261 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20262 { (exit 1); exit 1; }
20263fi
20264
20265# Work around bugs in pre-3.0 UWIN ksh.
20266for as_var in ENV MAIL MAILPATH
20267do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20268done
20269PS1='$ '
20270PS2='> '
20271PS4='+ '
20272
20273# NLS nuisances.
20274for as_var in \
20275 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20276 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20277 LC_TELEPHONE LC_TIME
20278do
20279 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20280 eval $as_var=C; export $as_var
20281 else
20282 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20283 fi
20284done
20285
20286# Required to use basename.
20287if expr a : '\(a\)' >/dev/null 2>&1 &&
20288 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20289 as_expr=expr
20290else
20291 as_expr=false
20292fi
20293
20294if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20295 as_basename=basename
20296else
20297 as_basename=false
20298fi
20299
20300
20301# Name of the executable.
20302as_me=`$as_basename -- "$0" ||
20303$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20304 X"$0" : 'X\(//\)$' \| \
20305 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20306echo X/"$0" |
20307 sed '/^.*\/\([^/][^/]*\)\/*$/{
20308 s//\1/
20309 q
20310 }
20311 /^X\/\(\/\/\)$/{
20312 s//\1/
20313 q
20314 }
20315 /^X\/\(\/\).*/{
20316 s//\1/
20317 q
20318 }
20319 s/.*/./; q'`
20320
20321# CDPATH.
20322$as_unset CDPATH
20323
20324
20325
20326 as_lineno_1=$LINENO
20327 as_lineno_2=$LINENO
20328 test "x$as_lineno_1" != "x$as_lineno_2" &&
20329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20330
20331 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20332 # uniformly replaced by the line number. The first 'sed' inserts a
20333 # line-number line after each line using $LINENO; the second 'sed'
20334 # does the real work. The second script uses 'N' to pair each
20335 # line-number line with the line containing $LINENO, and appends
20336 # trailing '-' during substitution so that $LINENO is not a special
20337 # case at line end.
20338 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20339 # scripts with optimization help from Paolo Bonzini. Blame Lee
20340 # E. McMahon (1931-1989) for sed's syntax. :-)
20341 sed -n '
20342 p
20343 /[$]LINENO/=
20344 ' <$as_myself |
20345 sed '
20346 s/[$]LINENO.*/&-/
20347 t lineno
20348 b
20349 :lineno
20350 N
20351 :loop
20352 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20353 t loop
20354 s/-\n.*//
20355 ' >$as_me.lineno &&
20356 chmod +x "$as_me.lineno" ||
20357 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20358 { (exit 1); exit 1; }; }
20359
20360 # Don't try to exec as it changes $[0], causing all sort of problems
20361 # (the dirname of $[0] is not the place where we might find the
20362 # original and so on. Autoconf is especially sensitive to this).
20363 . "./$as_me.lineno"
20364 # Exit status is that of the last command.
20365 exit
20366}
20367
20368
20369if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20370 as_dirname=dirname
20371else
20372 as_dirname=false
20373fi
20374
20375ECHO_C= ECHO_N= ECHO_T=
20376case `echo -n x` in
20377-n*)
20378 case `echo 'x\c'` in
20379 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20380 *) ECHO_C='\c';;
20381 esac;;
20382*)
20383 ECHO_N='-n';;
20384esac
20385
20386if expr a : '\(a\)' >/dev/null 2>&1 &&
20387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20388 as_expr=expr
20389else
20390 as_expr=false
20391fi
20392
20393rm -f conf$$ conf$$.exe conf$$.file
20394if test -d conf$$.dir; then
20395 rm -f conf$$.dir/conf$$.file
20396else
20397 rm -f conf$$.dir
20398 mkdir conf$$.dir
20399fi
20400echo >conf$$.file
20401if ln -s conf$$.file conf$$ 2>/dev/null; then
20402 as_ln_s='ln -s'
20403 # ... but there are two gotchas:
20404 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20405 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20406 # In both cases, we have to default to `cp -p'.
20407 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20408 as_ln_s='cp -p'
20409elif ln conf$$.file conf$$ 2>/dev/null; then
20410 as_ln_s=ln
20411else
20412 as_ln_s='cp -p'
20413fi
20414rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20415rmdir conf$$.dir 2>/dev/null
20416
20417if mkdir -p . 2>/dev/null; then
20418 as_mkdir_p=:
20419else
20420 test -d ./-p && rmdir ./-p
20421 as_mkdir_p=false
20422fi
20423
20424if test -x / >/dev/null 2>&1; then
20425 as_test_x='test -x'
20426else
20427 if ls -dL / >/dev/null 2>&1; then
20428 as_ls_L_option=L
20429 else
20430 as_ls_L_option=
20431 fi
20432 as_test_x='
20433 eval sh -c '\''
20434 if test -d "$1"; then
20435 test -d "$1/.";
20436 else
20437 case $1 in
20438 -*)set "./$1";;
20439 esac;
20440 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20441 ???[sx]*):;;*)false;;esac;fi
20442 '\'' sh
20443 '
20444fi
20445as_executable_p=$as_test_x
20446
20447# Sed expression to map a string onto a valid CPP name.
20448as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20449
20450# Sed expression to map a string onto a valid variable name.
20451as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20452
20453
20454exec 6>&1
20455
20456# Save the log message, to keep $[0] and so on meaningful, and to
20457# report actual input values of CONFIG_FILES etc. instead of their
20458# values after options handling.
20459ac_log="
20460This file was extended by $as_me, which was
20461generated by GNU Autoconf 2.61. Invocation command line was
20462
20463 CONFIG_FILES = $CONFIG_FILES
20464 CONFIG_HEADERS = $CONFIG_HEADERS
20465 CONFIG_LINKS = $CONFIG_LINKS
20466 CONFIG_COMMANDS = $CONFIG_COMMANDS
20467 $ $0 $@
20468
20469on `(hostname || uname -n) 2>/dev/null | sed 1q`
20470"
20471
20472_ACEOF
20473
20474cat >>$CONFIG_STATUS <<_ACEOF
20475# Files that config.status was made for.
20476config_files="$ac_config_files"
20477
20478_ACEOF
20479
20480cat >>$CONFIG_STATUS <<\_ACEOF
20481ac_cs_usage="\
20482\`$as_me' instantiates files from templates according to the
20483current configuration.
20484
20485Usage: $0 [OPTIONS] [FILE]...
20486
20487 -h, --help print this help, then exit
20488 -V, --version print version number and configuration settings, then exit
20489 -q, --quiet do not print progress messages
20490 -d, --debug don't remove temporary files
20491 --recheck update $as_me by reconfiguring in the same conditions
20492 --file=FILE[:TEMPLATE]
20493 instantiate the configuration file FILE
20494
20495Configuration files:
20496$config_files
20497
20498Report bugs to <bug-autoconf@gnu.org>."
20499
20500_ACEOF
20501cat >>$CONFIG_STATUS <<_ACEOF
20502ac_cs_version="\\
20503config.status
20504configured by $0, generated by GNU Autoconf 2.61,
20505 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20506
20507Copyright (C) 2006 Free Software Foundation, Inc.
20508This config.status script is free software; the Free Software Foundation
20509gives unlimited permission to copy, distribute and modify it."
20510
20511ac_pwd='$ac_pwd'
20512srcdir='$srcdir'
20513INSTALL='$INSTALL'
20514_ACEOF
20515
20516cat >>$CONFIG_STATUS <<\_ACEOF
20517# If no file are specified by the user, then we need to provide default
20518# value. By we need to know if files were specified by the user.
20519ac_need_defaults=:
20520while test $# != 0
20521do
20522 case $1 in
20523 --*=*)
20524 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20525 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20526 ac_shift=:
20527 ;;
20528 *)
20529 ac_option=$1
20530 ac_optarg=$2
20531 ac_shift=shift
20532 ;;
20533 esac
20534
20535 case $ac_option in
20536 # Handling of the options.
20537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20538 ac_cs_recheck=: ;;
20539 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20540 echo "$ac_cs_version"; exit ;;
20541 --debug | --debu | --deb | --de | --d | -d )
20542 debug=: ;;
20543 --file | --fil | --fi | --f )
20544 $ac_shift
20545 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20546 ac_need_defaults=false;;
20547 --he | --h | --help | --hel | -h )
20548 echo "$ac_cs_usage"; exit ;;
20549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20550 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20551 ac_cs_silent=: ;;
20552
20553 # This is an error.
20554 -*) { echo "$as_me: error: unrecognized option: $1
20555Try \`$0 --help' for more information." >&2
20556 { (exit 1); exit 1; }; } ;;
20557
20558 *) ac_config_targets="$ac_config_targets $1"
20559 ac_need_defaults=false ;;
20560
20561 esac
20562 shift
20563done
20564
20565ac_configure_extra_args=
20566
20567if $ac_cs_silent; then
20568 exec 6>/dev/null
20569 ac_configure_extra_args="$ac_configure_extra_args --silent"
20570fi
20571
20572_ACEOF
20573cat >>$CONFIG_STATUS <<_ACEOF
20574if \$ac_cs_recheck; then
20575 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20576 CONFIG_SHELL=$SHELL
20577 export CONFIG_SHELL
20578 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20579fi
20580
20581_ACEOF
20582cat >>$CONFIG_STATUS <<\_ACEOF
20583exec 5>>config.log
20584{
20585 echo
20586 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20587## Running $as_me. ##
20588_ASBOX
20589 echo "$ac_log"
20590} >&5
20591
20592_ACEOF
20593cat >>$CONFIG_STATUS <<_ACEOF
20594_ACEOF
20595
20596cat >>$CONFIG_STATUS <<\_ACEOF
20597
20598# Handling of arguments.
20599for ac_config_target in $ac_config_targets
20600do
20601 case $ac_config_target in
20602 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20603 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
20604
20605 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20606echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20607 { (exit 1); exit 1; }; };;
20608 esac
20609done
20610
20611
20612# If the user did not use the arguments to specify the items to instantiate,
20613# then the envvar interface is used. Set only those that are not.
20614# We use the long form for the default assignment because of an extremely
20615# bizarre bug on SunOS 4.1.3.
20616if $ac_need_defaults; then
20617 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20618fi
20619
20620# Have a temporary directory for convenience. Make it in the build tree
20621# simply because there is no reason against having it here, and in addition,
20622# creating and moving files from /tmp can sometimes cause problems.
20623# Hook for its removal unless debugging.
20624# Note that there is a small window in which the directory will not be cleaned:
20625# after its creation but before its name has been assigned to `$tmp'.
20626$debug ||
20627{
20628 tmp=
20629 trap 'exit_status=$?
20630 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20631' 0
20632 trap '{ (exit 1); exit 1; }' 1 2 13 15
20633}
20634# Create a (secure) tmp directory for tmp files.
20635
20636{
20637 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20638 test -n "$tmp" && test -d "$tmp"
20639} ||
20640{
20641 tmp=./conf$$-$RANDOM
20642 (umask 077 && mkdir "$tmp")
20643} ||
20644{
20645 echo "$me: cannot create a temporary directory in ." >&2
20646 { (exit 1); exit 1; }
20647}
20648
20649#
20650# Set up the sed scripts for CONFIG_FILES section.
20651#
20652
20653# No need to generate the scripts if there are no CONFIG_FILES.
20654# This happens for instance when ./config.status config.h
20655if test -n "$CONFIG_FILES"; then
20656
20657_ACEOF
20658
20659
20660
20661ac_delim='%!_!# '
20662for ac_last_try in false false false false false :; do
20663 cat >conf$$subs.sed <<_ACEOF
20664SHELL!$SHELL$ac_delim
20665PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20666PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20667PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20668PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20669PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20670PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20671exec_prefix!$exec_prefix$ac_delim
20672prefix!$prefix$ac_delim
20673program_transform_name!$program_transform_name$ac_delim
20674bindir!$bindir$ac_delim
20675sbindir!$sbindir$ac_delim
20676libexecdir!$libexecdir$ac_delim
20677datarootdir!$datarootdir$ac_delim
20678datadir!$datadir$ac_delim
20679sysconfdir!$sysconfdir$ac_delim
20680sharedstatedir!$sharedstatedir$ac_delim
20681localstatedir!$localstatedir$ac_delim
20682includedir!$includedir$ac_delim
20683oldincludedir!$oldincludedir$ac_delim
20684docdir!$docdir$ac_delim
20685infodir!$infodir$ac_delim
20686htmldir!$htmldir$ac_delim
20687dvidir!$dvidir$ac_delim
20688pdfdir!$pdfdir$ac_delim
20689psdir!$psdir$ac_delim
20690libdir!$libdir$ac_delim
20691localedir!$localedir$ac_delim
20692mandir!$mandir$ac_delim
20693DEFS!$DEFS$ac_delim
20694ECHO_C!$ECHO_C$ac_delim
20695ECHO_N!$ECHO_N$ac_delim
20696ECHO_T!$ECHO_T$ac_delim
20697LIBS!$LIBS$ac_delim
20698build_alias!$build_alias$ac_delim
20699host_alias!$host_alias$ac_delim
20700target_alias!$target_alias$ac_delim
20701build!$build$ac_delim
20702build_cpu!$build_cpu$ac_delim
20703build_vendor!$build_vendor$ac_delim
20704build_os!$build_os$ac_delim
20705host!$host$ac_delim
20706host_cpu!$host_cpu$ac_delim
20707host_vendor!$host_vendor$ac_delim
20708host_os!$host_os$ac_delim
20709CC!$CC$ac_delim
20710CFLAGS!$CFLAGS$ac_delim
20711LDFLAGS!$LDFLAGS$ac_delim
20712CPPFLAGS!$CPPFLAGS$ac_delim
20713ac_ct_CC!$ac_ct_CC$ac_delim
20714EXEEXT!$EXEEXT$ac_delim
20715OBJEXT!$OBJEXT$ac_delim
20716GREP!$GREP$ac_delim
20717EGREP!$EGREP$ac_delim
20718LN_S!$LN_S$ac_delim
20719ECHO!$ECHO$ac_delim
20720AR!$AR$ac_delim
20721RANLIB!$RANLIB$ac_delim
20722STRIP!$STRIP$ac_delim
20723CPP!$CPP$ac_delim
20724CXX!$CXX$ac_delim
20725CXXFLAGS!$CXXFLAGS$ac_delim
20726ac_ct_CXX!$ac_ct_CXX$ac_delim
20727CXXCPP!$CXXCPP$ac_delim
20728F77!$F77$ac_delim
20729FFLAGS!$FFLAGS$ac_delim
20730ac_ct_F77!$ac_ct_F77$ac_delim
20731LIBTOOL!$LIBTOOL$ac_delim
20732INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20733INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20734INSTALL_DATA!$INSTALL_DATA$ac_delim
20735AWK!$AWK$ac_delim
20736program_prefix!$program_prefix$ac_delim
20737VERSION!$VERSION$ac_delim
20738RELEASE!$RELEASE$ac_delim
20739VERSION_NUMBER!$VERSION_NUMBER$ac_delim
20740BUILD_CC!$BUILD_CC$ac_delim
20741BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
20742SQLITE_THREADSAFE!$SQLITE_THREADSAFE$ac_delim
20743TARGET_THREAD_LIB!$TARGET_THREAD_LIB$ac_delim
20744XTHREADCONNECT!$XTHREADCONNECT$ac_delim
20745THREADSOVERRIDELOCKS!$THREADSOVERRIDELOCKS$ac_delim
20746ALLOWRELEASE!$ALLOWRELEASE$ac_delim
20747TEMP_STORE!$TEMP_STORE$ac_delim
20748BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20749OS_UNIX!$OS_UNIX$ac_delim
20750OS_WIN!$OS_WIN$ac_delim
20751OS_OS2!$OS_OS2$ac_delim
20752TARGET_EXEEXT!$TARGET_EXEEXT$ac_delim
20753TCL_VERSION!$TCL_VERSION$ac_delim
20754TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
20755TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
20756TCL_LIBS!$TCL_LIBS$ac_delim
20757TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
20758TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
20759TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim
20760TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
20761_ACEOF
20762
20763 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20764 break
20765 elif $ac_last_try; then
20766 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20767echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20768 { (exit 1); exit 1; }; }
20769 else
20770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20771 fi
20772done
20773
20774ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20775if test -n "$ac_eof"; then
20776 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20777 ac_eof=`expr $ac_eof + 1`
20778fi
20779
20780cat >>$CONFIG_STATUS <<_ACEOF
20781cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20782/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20783_ACEOF
20784sed '
20785s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20786s/^/s,@/; s/!/@,|#_!!_#|/
20787:n
20788t n
20789s/'"$ac_delim"'$/,g/; t
20790s/$/\\/; p
20791N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20792' >>$CONFIG_STATUS <conf$$subs.sed
20793rm -f conf$$subs.sed
20794cat >>$CONFIG_STATUS <<_ACEOF
20795CEOF$ac_eof
20796_ACEOF
20797
20798
20799ac_delim='%!_!# '
20800for ac_last_try in false false false false false :; do
20801 cat >conf$$subs.sed <<_ACEOF
20802TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim
20803TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim
20804TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
20805HAVE_TCL!$HAVE_TCL$ac_delim
20806TARGET_READLINE_LIBS!$TARGET_READLINE_LIBS$ac_delim
20807TARGET_READLINE_INC!$TARGET_READLINE_INC$ac_delim
20808TARGET_HAVE_READLINE!$TARGET_HAVE_READLINE$ac_delim
20809TARGET_DEBUG!$TARGET_DEBUG$ac_delim
20810LIBOBJS!$LIBOBJS$ac_delim
20811LTLIBOBJS!$LTLIBOBJS$ac_delim
20812_ACEOF
20813
20814 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
20815 break
20816 elif $ac_last_try; then
20817 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20818echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20819 { (exit 1); exit 1; }; }
20820 else
20821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20822 fi
20823done
20824
20825ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20826if test -n "$ac_eof"; then
20827 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20828 ac_eof=`expr $ac_eof + 1`
20829fi
20830
20831cat >>$CONFIG_STATUS <<_ACEOF
20832cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20833/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20834_ACEOF
20835sed '
20836s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20837s/^/s,@/; s/!/@,|#_!!_#|/
20838:n
20839t n
20840s/'"$ac_delim"'$/,g/; t
20841s/$/\\/; p
20842N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20843' >>$CONFIG_STATUS <conf$$subs.sed
20844rm -f conf$$subs.sed
20845cat >>$CONFIG_STATUS <<_ACEOF
20846:end
20847s/|#_!!_#|//g
20848CEOF$ac_eof
20849_ACEOF
20850
20851
20852# VPATH may cause trouble with some makes, so we remove $(srcdir),
20853# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20854# trailing colons and then remove the whole line if VPATH becomes empty
20855# (actually we leave an empty line to preserve line numbers).
20856if test "x$srcdir" = x.; then
20857 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20858s/:*\$(srcdir):*/:/
20859s/:*\${srcdir}:*/:/
20860s/:*@srcdir@:*/:/
20861s/^\([^=]*=[ ]*\):*/\1/
20862s/:*$//
20863s/^[^=]*=[ ]*$//
20864}'
20865fi
20866
20867cat >>$CONFIG_STATUS <<\_ACEOF
20868fi # test -n "$CONFIG_FILES"
20869
20870
20871for ac_tag in :F $CONFIG_FILES
20872do
20873 case $ac_tag in
20874 :[FHLC]) ac_mode=$ac_tag; continue;;
20875 esac
20876 case $ac_mode$ac_tag in
20877 :[FHL]*:*);;
20878 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20879echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20880 { (exit 1); exit 1; }; };;
20881 :[FH]-) ac_tag=-:-;;
20882 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20883 esac
20884 ac_save_IFS=$IFS
20885 IFS=:
20886 set x $ac_tag
20887 IFS=$ac_save_IFS
20888 shift
20889 ac_file=$1
20890 shift
20891
20892 case $ac_mode in
20893 :L) ac_source=$1;;
20894 :[FH])
20895 ac_file_inputs=
20896 for ac_f
20897 do
20898 case $ac_f in
20899 -) ac_f="$tmp/stdin";;
20900 *) # Look for the file first in the build tree, then in the source tree
20901 # (if the path is not absolute). The absolute path cannot be DOS-style,
20902 # because $ac_f cannot contain `:'.
20903 test -f "$ac_f" ||
20904 case $ac_f in
20905 [\\/$]*) false;;
20906 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20907 esac ||
20908 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20909echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20910 { (exit 1); exit 1; }; };;
20911 esac
20912 ac_file_inputs="$ac_file_inputs $ac_f"
20913 done
20914
20915 # Let's still pretend it is `configure' which instantiates (i.e., don't
20916 # use $as_me), people would be surprised to read:
20917 # /* config.h. Generated by config.status. */
20918 configure_input="Generated from "`IFS=:
20919 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20920 if test x"$ac_file" != x-; then
20921 configure_input="$ac_file. $configure_input"
20922 { echo "$as_me:$LINENO: creating $ac_file" >&5
20923echo "$as_me: creating $ac_file" >&6;}
20924 fi
20925
20926 case $ac_tag in
20927 *:-:* | *:-) cat >"$tmp/stdin";;
20928 esac
20929 ;;
20930 esac
20931
20932 ac_dir=`$as_dirname -- "$ac_file" ||
20933$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20934 X"$ac_file" : 'X\(//\)[^/]' \| \
20935 X"$ac_file" : 'X\(//\)$' \| \
20936 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20937echo X"$ac_file" |
20938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20939 s//\1/
20940 q
20941 }
20942 /^X\(\/\/\)[^/].*/{
20943 s//\1/
20944 q
20945 }
20946 /^X\(\/\/\)$/{
20947 s//\1/
20948 q
20949 }
20950 /^X\(\/\).*/{
20951 s//\1/
20952 q
20953 }
20954 s/.*/./; q'`
20955 { as_dir="$ac_dir"
20956 case $as_dir in #(
20957 -*) as_dir=./$as_dir;;
20958 esac
20959 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20960 as_dirs=
20961 while :; do
20962 case $as_dir in #(
20963 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20964 *) as_qdir=$as_dir;;
20965 esac
20966 as_dirs="'$as_qdir' $as_dirs"
20967 as_dir=`$as_dirname -- "$as_dir" ||
20968$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20969 X"$as_dir" : 'X\(//\)[^/]' \| \
20970 X"$as_dir" : 'X\(//\)$' \| \
20971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20972echo X"$as_dir" |
20973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20974 s//\1/
20975 q
20976 }
20977 /^X\(\/\/\)[^/].*/{
20978 s//\1/
20979 q
20980 }
20981 /^X\(\/\/\)$/{
20982 s//\1/
20983 q
20984 }
20985 /^X\(\/\).*/{
20986 s//\1/
20987 q
20988 }
20989 s/.*/./; q'`
20990 test -d "$as_dir" && break
20991 done
20992 test -z "$as_dirs" || eval "mkdir $as_dirs"
20993 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20994echo "$as_me: error: cannot create directory $as_dir" >&2;}
20995 { (exit 1); exit 1; }; }; }
20996 ac_builddir=.
20997
20998case "$ac_dir" in
20999.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21000*)
21001 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21002 # A ".." for each directory in $ac_dir_suffix.
21003 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21004 case $ac_top_builddir_sub in
21005 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21006 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21007 esac ;;
21008esac
21009ac_abs_top_builddir=$ac_pwd
21010ac_abs_builddir=$ac_pwd$ac_dir_suffix
21011# for backward compatibility:
21012ac_top_builddir=$ac_top_build_prefix
21013
21014case $srcdir in
21015 .) # We are building in place.
21016 ac_srcdir=.
21017 ac_top_srcdir=$ac_top_builddir_sub
21018 ac_abs_top_srcdir=$ac_pwd ;;
21019 [\\/]* | ?:[\\/]* ) # Absolute name.
21020 ac_srcdir=$srcdir$ac_dir_suffix;
21021 ac_top_srcdir=$srcdir
21022 ac_abs_top_srcdir=$srcdir ;;
21023 *) # Relative name.
21024 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21025 ac_top_srcdir=$ac_top_build_prefix$srcdir
21026 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21027esac
21028ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21029
21030
21031 case $ac_mode in
21032 :F)
21033 #
21034 # CONFIG_FILE
21035 #
21036
21037 case $INSTALL in
21038 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21039 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21040 esac
21041_ACEOF
21042
21043cat >>$CONFIG_STATUS <<\_ACEOF
21044# If the template does not know about datarootdir, expand it.
21045# FIXME: This hack should be removed a few years after 2.60.
21046ac_datarootdir_hack=; ac_datarootdir_seen=
21047
21048case `sed -n '/datarootdir/ {
21049 p
21050 q
21051}
21052/@datadir@/p
21053/@docdir@/p
21054/@infodir@/p
21055/@localedir@/p
21056/@mandir@/p
21057' $ac_file_inputs` in
21058*datarootdir*) ac_datarootdir_seen=yes;;
21059*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21060 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21061echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21062_ACEOF
21063cat >>$CONFIG_STATUS <<_ACEOF
21064 ac_datarootdir_hack='
21065 s&@datadir@&$datadir&g
21066 s&@docdir@&$docdir&g
21067 s&@infodir@&$infodir&g
21068 s&@localedir@&$localedir&g
21069 s&@mandir@&$mandir&g
21070 s&\\\${datarootdir}&$datarootdir&g' ;;
21071esac
21072_ACEOF
21073
21074# Neutralize VPATH when `$srcdir' = `.'.
21075# Shell code in configure.ac might set extrasub.
21076# FIXME: do we really want to maintain this feature?
21077cat >>$CONFIG_STATUS <<_ACEOF
21078 sed "$ac_vpsub
21079$extrasub
21080_ACEOF
21081cat >>$CONFIG_STATUS <<\_ACEOF
21082:t
21083/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21084s&@configure_input@&$configure_input&;t t
21085s&@top_builddir@&$ac_top_builddir_sub&;t t
21086s&@srcdir@&$ac_srcdir&;t t
21087s&@abs_srcdir@&$ac_abs_srcdir&;t t
21088s&@top_srcdir@&$ac_top_srcdir&;t t
21089s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21090s&@builddir@&$ac_builddir&;t t
21091s&@abs_builddir@&$ac_abs_builddir&;t t
21092s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21093s&@INSTALL@&$ac_INSTALL&;t t
21094$ac_datarootdir_hack
21095" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21096
21097test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21098 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21100 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21101which seems to be undefined. Please make sure it is defined." >&5
21102echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21103which seems to be undefined. Please make sure it is defined." >&2;}
21104
21105 rm -f "$tmp/stdin"
21106 case $ac_file in
21107 -) cat "$tmp/out"; rm -f "$tmp/out";;
21108 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21109 esac
21110 ;;
21111
21112
21113
21114 esac
21115
21116done # for ac_tag
21117
21118
21119{ (exit 0); exit 0; }
21120_ACEOF
21121chmod +x $CONFIG_STATUS
21122ac_clean_files=$ac_clean_files_save
21123
21124
21125# configure is writing to config.log, and then calls config.status.
21126# config.status does its own redirection, appending to config.log.
21127# Unfortunately, on DOS this fails, as config.log is still kept open
21128# by configure, so config.status won't be able to write to it; its
21129# output is simply discarded. So we exec the FD to /dev/null,
21130# effectively closing config.log, so it can be properly (re)opened and
21131# appended to by config.status. When coming back to configure, we
21132# need to make the FD available again.
21133if test "$no_create" != yes; then
21134 ac_cs_success=:
21135 ac_config_status_args=
21136 test "$silent" = yes &&
21137 ac_config_status_args="$ac_config_status_args --quiet"
21138 exec 5>/dev/null
21139 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21140 exec 5>>config.log
21141 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21142 # would make configure fail if this is the last instruction.
21143 $ac_cs_success || { (exit 1); exit 1; }
21144fi