aboutsummaryrefslogtreecommitdiff
path: root/libltdl/configure
diff options
context:
space:
mode:
Diffstat (limited to 'libltdl/configure')
-rwxr-xr-xlibltdl/configure24532
1 files changed, 0 insertions, 24532 deletions
diff --git a/libltdl/configure b/libltdl/configure
deleted file mode 100755
index 7e32fbe0..00000000
--- a/libltdl/configure
+++ /dev/null
@@ -1,24532 +0,0 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60a for libltdl 1.2.
4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25fi
26BIN_SH=xpg4; export BIN_SH # for Tru64
27DUALCASE=1; export DUALCASE # for MKS sh
28
29
30# PATH needs CR
31# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
51# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
57
58
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
78IFS=$as_save_IFS
79
80 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110 fi
111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
225 /*)
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
459}
460
461
462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
477esac
478
479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 as_ln_s='cp -p'
502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
515fi
516
517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539
540# Check that we are running under the correct shell.
541SHELL=${CONFIG_SHELL-/bin/sh}
542
543case X$ECHO in
544X*--fallback-echo)
545 # Remove one level of quotation (which was required for Make).
546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547 ;;
548esac
549
550echo=${ECHO-echo}
551if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
553 shift
554elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
556 :
557elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $echo works!
559 :
560else
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
563fi
564
565if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
567 shift
568 cat <<EOF
569$*
570EOF
571 exit 0
572fi
573
574# The HP-UX ksh and POSIX shell print the target directory to stdout
575# if CDPATH is set.
576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
578if test -z "$ECHO"; then
579if test "X${echo_test_string+set}" != Xset; then
580# find a string as large as possible, as long as the shell can cope with it
581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584 echo_test_string=`eval $cmd` &&
585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586 then
587 break
588 fi
589 done
590fi
591
592if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
595 :
596else
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
600 #
601 # So, first we look for a working echo in the user's PATH.
602
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
605 IFS="$lt_save_ifs"
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 echo="$dir/echo"
611 break
612 fi
613 done
614 IFS="$lt_save_ifs"
615
616 if test "X$echo" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
622 echo='print -r'
623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
629 export CONFIG_SHELL
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631 else
632 # Try using printf.
633 echo='printf %s\n'
634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # Cool, printf works
638 :
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644 export CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
646 export SHELL
647 echo="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 echo="$CONFIG_SHELL $0 --fallback-echo"
653 else
654 # maybe with a smaller string...
655 prev=:
656
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659 then
660 break
661 fi
662 prev="$cmd"
663 done
664
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669 else
670 # Oops. We lost completely, so just stick with echo.
671 echo=echo
672 fi
673 fi
674 fi
675 fi
676fi
677fi
678
679# Copy echo and quote the copy suitably for passing to libtool from
680# the Makefile, instead of quoting the original, which is used later.
681ECHO=$echo
682if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684fi
685
686
687
688
689tagnames=${tagnames+${tagnames},}CXX
690
691tagnames=${tagnames+${tagnames},}F77
692
693exec 7<&0 </dev/null 6>&1
694
695# Name of the host.
696# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697# so uname gets run too.
698ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
700#
701# Initializations.
702#
703ac_default_prefix=/usr/local
704ac_clean_files=
705ac_config_libobj_dir=.
706LIBOBJS=
707cross_compiling=no
708subdirs=
709MFLAGS=
710MAKEFLAGS=
711SHELL=${CONFIG_SHELL-/bin/sh}
712
713# Identity of this package.
714PACKAGE_NAME='libltdl'
715PACKAGE_TARNAME='libltdl'
716PACKAGE_VERSION='1.2'
717PACKAGE_STRING='libltdl 1.2'
718PACKAGE_BUGREPORT='bug-libtool@gnu.org'
719
720ac_unique_file="ltdl.c"
721# Factoring default headers for most tests.
722ac_includes_default="\
723#include <stdio.h>
724#ifdef HAVE_SYS_TYPES_H
725# include <sys/types.h>
726#endif
727#ifdef HAVE_SYS_STAT_H
728# include <sys/stat.h>
729#endif
730#ifdef STDC_HEADERS
731# include <stdlib.h>
732# include <stddef.h>
733#else
734# ifdef HAVE_STDLIB_H
735# include <stdlib.h>
736# endif
737#endif
738#ifdef HAVE_STRING_H
739# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
740# include <memory.h>
741# endif
742# include <string.h>
743#endif
744#ifdef HAVE_STRINGS_H
745# include <strings.h>
746#endif
747#ifdef HAVE_INTTYPES_H
748# include <inttypes.h>
749#endif
750#ifdef HAVE_STDINT_H
751# include <stdint.h>
752#endif
753#ifdef HAVE_UNISTD_H
754# include <unistd.h>
755#endif"
756
757ac_subst_vars='SHELL
758PATH_SEPARATOR
759PACKAGE_NAME
760PACKAGE_TARNAME
761PACKAGE_VERSION
762PACKAGE_STRING
763PACKAGE_BUGREPORT
764exec_prefix
765prefix
766program_transform_name
767bindir
768sbindir
769libexecdir
770datarootdir
771datadir
772sysconfdir
773sharedstatedir
774localstatedir
775includedir
776oldincludedir
777docdir
778infodir
779htmldir
780dvidir
781pdfdir
782psdir
783libdir
784localedir
785mandir
786DEFS
787ECHO_C
788ECHO_N
789ECHO_T
790LIBS
791build_alias
792host_alias
793target_alias
794INSTALL_PROGRAM
795INSTALL_SCRIPT
796INSTALL_DATA
797CYGPATH_W
798PACKAGE
799VERSION
800ACLOCAL
801AUTOCONF
802AUTOMAKE
803AUTOHEADER
804MAKEINFO
805AMTAR
806install_sh
807STRIP
808INSTALL_STRIP_PROGRAM
809mkdir_p
810AWK
811SET_MAKE
812am__leading_dot
813MAINTAINER_MODE_TRUE
814MAINTAINER_MODE_FALSE
815MAINT
816CC
817CFLAGS
818LDFLAGS
819CPPFLAGS
820ac_ct_CC
821EXEEXT
822OBJEXT
823DEPDIR
824am__include
825am__quote
826AMDEP_TRUE
827AMDEP_FALSE
828AMDEPBACKSLASH
829CCDEPMODE
830am__fastdepCC_TRUE
831am__fastdepCC_FALSE
832build
833build_cpu
834build_vendor
835build_os
836host
837host_cpu
838host_vendor
839host_os
840GREP
841EGREP
842LN_S
843ECHO
844AR
845RANLIB
846DLLTOOL
847AS
848OBJDUMP
849CPP
850CXX
851CXXFLAGS
852ac_ct_CXX
853CXXDEPMODE
854am__fastdepCXX_TRUE
855am__fastdepCXX_FALSE
856CXXCPP
857F77
858FFLAGS
859ac_ct_F77
860LIBTOOL
861LIBTOOL_DEPS
862INSTALL_LTDL_TRUE
863INSTALL_LTDL_FALSE
864CONVENIENCE_LTDL_TRUE
865CONVENIENCE_LTDL_FALSE
866LIBADD_DL
867LIBOBJS
868LTLIBOBJS'
869ac_subst_files=''
870 ac_precious_vars='build_alias
871host_alias
872target_alias
873CC
874CFLAGS
875LDFLAGS
876CPPFLAGS
877CPP
878CXX
879CXXFLAGS
880CCC
881CXXCPP
882F77
883FFLAGS'
884
885
886# Initialize some variables set by options.
887ac_init_help=
888ac_init_version=false
889# The variables have the same names as the options, with
890# dashes changed to underlines.
891cache_file=/dev/null
892exec_prefix=NONE
893no_create=
894no_recursion=
895prefix=NONE
896program_prefix=NONE
897program_suffix=NONE
898program_transform_name=s,x,x,
899silent=
900site=
901srcdir=
902verbose=
903x_includes=NONE
904x_libraries=NONE
905
906# Installation directory options.
907# These are left unexpanded so users can "make install exec_prefix=/foo"
908# and all the variables that are supposed to be based on exec_prefix
909# by default will actually change.
910# Use braces instead of parens because sh, perl, etc. also accept them.
911# (The list follows the same order as the GNU Coding Standards.)
912bindir='${exec_prefix}/bin'
913sbindir='${exec_prefix}/sbin'
914libexecdir='${exec_prefix}/libexec'
915datarootdir='${prefix}/share'
916datadir='${datarootdir}'
917sysconfdir='${prefix}/etc'
918sharedstatedir='${prefix}/com'
919localstatedir='${prefix}/var'
920includedir='${prefix}/include'
921oldincludedir='/usr/include'
922docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
923infodir='${datarootdir}/info'
924htmldir='${docdir}'
925dvidir='${docdir}'
926pdfdir='${docdir}'
927psdir='${docdir}'
928libdir='${exec_prefix}/lib'
929localedir='${datarootdir}/locale'
930mandir='${datarootdir}/man'
931
932ac_prev=
933ac_dashdash=
934for ac_option
935do
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
938 eval $ac_prev=\$ac_option
939 ac_prev=
940 continue
941 fi
942
943 case $ac_option in
944 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 *) ac_optarg=yes ;;
946 esac
947
948 # Accept the important Cygnus configure options, so we can diagnose typos.
949
950 case $ac_dashdash$ac_option in
951 --)
952 ac_dashdash=yes ;;
953
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 ac_prev=bindir ;;
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957 bindir=$ac_optarg ;;
958
959 -build | --build | --buil | --bui | --bu)
960 ac_prev=build_alias ;;
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962 build_alias=$ac_optarg ;;
963
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969 cache_file=$ac_optarg ;;
970
971 --config-cache | -C)
972 cache_file=config.cache ;;
973
974 -datadir | --datadir | --datadi | --datad)
975 ac_prev=datadir ;;
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
977 datadir=$ac_optarg ;;
978
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
985
986 -disable-* | --disable-*)
987 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
990 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
991 { (exit 1); exit 1; }; }
992 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
993 eval enable_$ac_feature=no ;;
994
995 -docdir | --docdir | --docdi | --doc | --do)
996 ac_prev=docdir ;;
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 docdir=$ac_optarg ;;
999
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001 ac_prev=dvidir ;;
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003 dvidir=$ac_optarg ;;
1004
1005 -enable-* | --enable-*)
1006 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1009 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1010 { (exit 1); exit 1; }; }
1011 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1012 eval enable_$ac_feature=\$ac_optarg ;;
1013
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1022
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1025 with_gas=yes ;;
1026
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1033
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1038
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 ac_prev=htmldir ;;
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 | --ht=*)
1043 htmldir=$ac_optarg ;;
1044
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1051
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1053 ac_prev=infodir ;;
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1056
1057 -libdir | --libdir | --libdi | --libd)
1058 ac_prev=libdir ;;
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1061
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1068
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1073
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1080
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082 ac_prev=mandir ;;
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1085
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1088 with_fp=no ;;
1089
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1092 no_create=yes ;;
1093
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 no_recursion=yes ;;
1097
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1106
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108 ac_prev=prefix ;;
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1111
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1118
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1125
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1142
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 ac_prev=pdfdir ;;
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1147
1148 -psdir | --psdir | --psdi | --psd | --ps)
1149 ac_prev=psdir ;;
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 psdir=$ac_optarg ;;
1152
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1155 silent=yes ;;
1156
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158 ac_prev=sbindir ;;
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160 | --sbi=* | --sb=*)
1161 sbindir=$ac_optarg ;;
1162
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1166 | --sha | --sh)
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171 | --sha=* | --sh=*)
1172 sharedstatedir=$ac_optarg ;;
1173
1174 -site | --site | --sit)
1175 ac_prev=site ;;
1176 -site=* | --site=* | --sit=*)
1177 site=$ac_optarg ;;
1178
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180 ac_prev=srcdir ;;
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1183
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1190
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1195
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 verbose=yes ;;
1198
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1201
1202 -with-* | --with-*)
1203 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1206 { echo "$as_me: error: invalid package name: $ac_package" >&2
1207 { (exit 1); exit 1; }; }
1208 ac_package=`echo $ac_package| sed 's/-/_/g'`
1209 eval with_$ac_package=\$ac_optarg ;;
1210
1211 -without-* | --without-*)
1212 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1219
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1223
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1230
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1237
1238 -*) { echo "$as_me: error: unrecognized option: $ac_option
1239Try \`$0 --help' for more information." >&2
1240 { (exit 1); exit 1; }; }
1241 ;;
1242
1243 *=*)
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1247 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1248 { (exit 1); exit 1; }; }
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1251
1252 *)
1253 # FIXME: should be removed in autoconf 3.0.
1254 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1258 ;;
1259
1260 esac
1261done
1262
1263if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 { echo "$as_me: error: missing argument to $ac_option" >&2
1266 { (exit 1); exit 1; }; }
1267fi
1268
1269# Be sure to have absolute directory names.
1270for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
1274do
1275 eval ac_val=\$$ac_var
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1281 { (exit 1); exit 1; }; }
1282done
1283
1284# There might be people who depend on the old broken behavior: `$host'
1285# used to hold the argument of --host etc.
1286# FIXME: To remove some day.
1287build=$build_alias
1288host=$host_alias
1289target=$target_alias
1290
1291# FIXME: To remove some day.
1292if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
1306
1307
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 { echo "$as_me: error: Working directory cannot be determined" >&2
1312 { (exit 1); exit 1; }; }
1313test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 { echo "$as_me: error: pwd does not report name of working directory" >&2
1315 { (exit 1); exit 1; }; }
1316
1317
1318# Find the source files, if location was not specified.
1319if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$0" ||
1323$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$0" : 'X\(//\)[^/]' \| \
1325 X"$0" : 'X\(//\)$' \| \
1326 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1327echo X"$0" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)[^/].*/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\).*/{
1341 s//\1/
1342 q
1343 }
1344 s/.*/./; q'`
1345 srcdir=$ac_confdir
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 srcdir=..
1348 fi
1349else
1350 ac_srcdir_defaulted=no
1351fi
1352if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1355 { (exit 1); exit 1; }; }
1356fi
1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1360 { (exit 1); exit 1; }; }
1361 pwd)`
1362# When building in place, set srcdir=.
1363if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365fi
1366# Remove unnecessary trailing slashes from srcdir.
1367# Double slashes in file names in object file debugging info
1368# mess up M-x gdb in Emacs.
1369case $srcdir in
1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371esac
1372for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377done
1378
1379#
1380# Report the --help message.
1381#
1382if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386\`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1387
1388Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393Defaults for the options are specified in brackets.
1394
1395Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
1406Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1411
1412By default, \`make install' will install all the files in
1413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415for instance \`--prefix=\$HOME'.
1416
1417For better control, use the options below.
1418
1419Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439_ACEOF
1440
1441 cat <<\_ACEOF
1442
1443Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451_ACEOF
1452fi
1453
1454if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive ) echo "Configuration of libltdl 1.2:";;
1457 esac
1458 cat <<\_ACEOF
1459
1460Optional Features:
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-maintainer-mode enable make rules and dependencies not useful
1464 (and sometimes confusing) to the casual installer
1465 --disable-dependency-tracking speeds up one-time build
1466 --enable-dependency-tracking do not reject slow dependency extractors
1467 --enable-shared[=PKGS] build shared libraries [default=yes]
1468 --enable-static[=PKGS] build static libraries [default=yes]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1472 --enable-ltdl-install install libltdl
1473
1474Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1478 --with-pic try to use only PIC/non-PIC objects [default=use
1479 both]
1480 --with-tags[=TAGS] include additional configurations [automatic]
1481
1482Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 CPP C preprocessor
1490 CXX C++ compiler command
1491 CXXFLAGS C++ compiler flags
1492 CXXCPP C++ preprocessor
1493 F77 Fortran 77 compiler command
1494 FFLAGS Fortran 77 compiler flags
1495
1496Use these variables to override the choices made by `configure' or to help
1497it to find libraries and programs with nonstandard names/locations.
1498
1499Report bugs to <bug-libtool@gnu.org>.
1500_ACEOF
1501ac_status=$?
1502fi
1503
1504if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" || continue
1508 ac_builddir=.
1509
1510case "$ac_dir" in
1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512*)
1513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520esac
1521ac_abs_top_builddir=$ac_pwd
1522ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523# for backward compatibility:
1524ac_top_builddir=$ac_top_build_prefix
1525
1526case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539esac
1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1555fi
1556
1557test -n "$ac_init_help" && exit $ac_status
1558if $ac_init_version; then
1559 cat <<\_ACEOF
1560libltdl configure 1.2
1561generated by GNU Autoconf 2.60a
1562
1563Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15642002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1565This configure script is free software; the Free Software Foundation
1566gives unlimited permission to copy, distribute and modify it.
1567_ACEOF
1568 exit
1569fi
1570cat >config.log <<_ACEOF
1571This file contains any messages produced by compilers while
1572running configure, to aid debugging if configure makes a mistake.
1573
1574It was created by libltdl $as_me 1.2, which was
1575generated by GNU Autoconf 2.60a. Invocation command line was
1576
1577 $ $0 $@
1578
1579_ACEOF
1580exec 5>>config.log
1581{
1582cat <<_ASUNAME
1583## --------- ##
1584## Platform. ##
1585## --------- ##
1586
1587hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592
1593/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1595
1596/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1600/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1603
1604_ASUNAME
1605
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 echo "PATH: $as_dir"
1612done
1613IFS=$as_save_IFS
1614
1615} >&5
1616
1617cat >&5 <<_ACEOF
1618
1619
1620## ----------- ##
1621## Core tests. ##
1622## ----------- ##
1623
1624_ACEOF
1625
1626
1627# Keep a trace of the command line.
1628# Strip out --no-create and --no-recursion so they do not pile up.
1629# Strip out --silent because we don't want to record it for future runs.
1630# Also quote any args containing shell meta-characters.
1631# Make two passes to allow for proper duplicate-argument suppression.
1632ac_configure_args=
1633ac_configure_args0=
1634ac_configure_args1=
1635ac_must_keep_next=false
1636for ac_pass in 1 2
1637do
1638 for ac_arg
1639 do
1640 case $ac_arg in
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1644 continue ;;
1645 *\'*)
1646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 esac
1648 case $ac_pass in
1649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1650 2)
1651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652 if test $ac_must_keep_next = true; then
1653 ac_must_keep_next=false # Got value, back to normal.
1654 else
1655 case $ac_arg in
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 esac
1663 ;;
1664 -* ) ac_must_keep_next=true ;;
1665 esac
1666 fi
1667 ac_configure_args="$ac_configure_args '$ac_arg'"
1668 ;;
1669 esac
1670 done
1671done
1672$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1674
1675# When interrupted or exit'd, cleanup temporary files, and complete
1676# config.log. We remove comments because anyway the quotes in there
1677# would cause problems or look ugly.
1678# WARNING: Use '\'' to represent an apostrophe within the trap.
1679# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1682 {
1683 echo
1684
1685 cat <<\_ASBOX
1686## ---------------- ##
1687## Cache variables. ##
1688## ---------------- ##
1689_ASBOX
1690 echo
1691 # The following way of writing the cache mishandles newlines in values,
1692(
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1695 case $ac_val in #(
1696 *${as_nl}*)
1697 case $ac_var in #(
1698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700 esac
1701 case $ac_var in #(
1702 _ | IFS | as_nl) ;; #(
1703 *) $as_unset $ac_var ;;
1704 esac ;;
1705 esac
1706 done
1707 (set) 2>&1 |
1708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
1710 sed -n \
1711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 ;; #(
1714 *)
1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1716 ;;
1717 esac |
1718 sort
1719)
1720 echo
1721
1722 cat <<\_ASBOX
1723## ----------------- ##
1724## Output variables. ##
1725## ----------------- ##
1726_ASBOX
1727 echo
1728 for ac_var in $ac_subst_vars
1729 do
1730 eval ac_val=\$$ac_var
1731 case $ac_val in
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733 esac
1734 echo "$ac_var='\''$ac_val'\''"
1735 done | sort
1736 echo
1737
1738 if test -n "$ac_subst_files"; then
1739 cat <<\_ASBOX
1740## ------------------- ##
1741## File substitutions. ##
1742## ------------------- ##
1743_ASBOX
1744 echo
1745 for ac_var in $ac_subst_files
1746 do
1747 eval ac_val=\$$ac_var
1748 case $ac_val in
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 esac
1751 echo "$ac_var='\''$ac_val'\''"
1752 done | sort
1753 echo
1754 fi
1755
1756 if test -s confdefs.h; then
1757 cat <<\_ASBOX
1758## ----------- ##
1759## confdefs.h. ##
1760## ----------- ##
1761_ASBOX
1762 echo
1763 cat confdefs.h
1764 echo
1765 fi
1766 test "$ac_signal" != 0 &&
1767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
1769 } >&5
1770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772 exit $exit_status
1773' 0
1774for ac_signal in 1 2 13 15; do
1775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1776done
1777ac_signal=0
1778
1779# confdefs.h avoids OS command line length limits that DEFS can exceed.
1780rm -f -r conftest* confdefs.h
1781
1782# Predefined preprocessor variables.
1783
1784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_NAME "$PACKAGE_NAME"
1786_ACEOF
1787
1788
1789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791_ACEOF
1792
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_VERSION "$PACKAGE_VERSION"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_STRING "$PACKAGE_STRING"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806_ACEOF
1807
1808
1809# Let the site file select an alternate cache file if it wants to.
1810# Prefer explicitly selected file to automatically selected ones.
1811if test -n "$CONFIG_SITE"; then
1812 set x "$CONFIG_SITE"
1813elif test "x$prefix" != xNONE; then
1814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1815else
1816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
1818fi
1819shift
1820for ac_site_file
1821do
1822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824echo "$as_me: loading site script $ac_site_file" >&6;}
1825 sed 's/^/| /' "$ac_site_file" >&5
1826 . "$ac_site_file"
1827 fi
1828done
1829
1830if test -r "$cache_file"; then
1831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835echo "$as_me: loading cache $cache_file" >&6;}
1836 case $cache_file in
1837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
1839 esac
1840 fi
1841else
1842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843echo "$as_me: creating cache $cache_file" >&6;}
1844 >$cache_file
1845fi
1846
1847# Check that the precious variables saved in the cache have kept the same
1848# value.
1849ac_cache_corrupted=false
1850for ac_var in $ac_precious_vars; do
1851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
1853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
1855 case $ac_old_set,$ac_new_set in
1856 set,)
1857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859 ac_cache_corrupted=: ;;
1860 ,set)
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1864 ,);;
1865 *)
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
1867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
1874 fi;;
1875 esac
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1878 case $ac_new_val in
1879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880 *) ac_arg=$ac_var=$ac_new_val ;;
1881 esac
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1885 esac
1886 fi
1887done
1888if $ac_cache_corrupted; then
1889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
1894fi
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920ac_ext=c
1921ac_cpp='$CPP $CPPFLAGS'
1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
1927
1928
1929
1930## ------------------------------- ##
1931## Libltdl specific configuration. ##
1932## ------------------------------- ##
1933
1934ac_aux_dir=
1935for ac_dir in . "$srcdir"/.; do
1936 if test -f "$ac_dir/install-sh"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 break
1940 elif test -f "$ac_dir/install.sh"; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 break
1944 elif test -f "$ac_dir/shtool"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 break
1948 fi
1949done
1950if test -z "$ac_aux_dir"; then
1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1952echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1953 { (exit 1); exit 1; }; }
1954fi
1955
1956# These three variables are undocumented and unsupported,
1957# and are intended to be withdrawn in a future Autoconf release.
1958# They can cause serious problems if a builder's source tree is in a directory
1959# whose full name contains unusual characters.
1960ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1963
1964
1965
1966if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1967 if test -f ${srcdir}/ltmain.sh; then
1968 # if libltdl is libtoolized, it is assumed to be stand-alone and
1969 # installed unless the command line overrides it (tested above)
1970 enable_ltdl_install=yes
1971 else
1972 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1973echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1974 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1975echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1976 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1977echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1978 { (exit 1); exit 1; }; }
1979 fi
1980fi
1981
1982
1983## ------------------------ ##
1984## Automake Initialisation. ##
1985## ------------------------ ##
1986am__api_version="1.8"
1987# Find a good install program. We prefer a C program (faster),
1988# so one script is as good as another. But avoid the broken or
1989# incompatible versions:
1990# SysV /etc/install, /usr/sbin/install
1991# SunOS /usr/etc/install
1992# IRIX /sbin/install
1993# AIX /bin/install
1994# AmigaOS /C/install, which installs bootblocks on floppy discs
1995# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1996# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1998# OS/2's system install, which has a completely different semantic
1999# ./install, which can be erroneously created by make from ./install.sh.
2000{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2001echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2002if test -z "$INSTALL"; then
2003if test "${ac_cv_path_install+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 # Account for people who put trailing slashes in PATH elements.
2012case $as_dir/ in
2013 ./ | .// | /cC/* | \
2014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2015 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2016 /usr/ucb/* ) ;;
2017 *)
2018 # OSF1 and SCO ODT 3.0 have their own names for install.
2019 # Don't use installbsd from OSF since it installs stuff as root
2020 # by default.
2021 for ac_prog in ginstall scoinst install; do
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2024 if test $ac_prog = install &&
2025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2026 # AIX install. It has an incompatible calling convention.
2027 :
2028 elif test $ac_prog = install &&
2029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2030 # program-specific install script used by HP pwplus--don't use.
2031 :
2032 else
2033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2034 break 3
2035 fi
2036 fi
2037 done
2038 done
2039 ;;
2040esac
2041done
2042IFS=$as_save_IFS
2043
2044
2045fi
2046 if test "${ac_cv_path_install+set}" = set; then
2047 INSTALL=$ac_cv_path_install
2048 else
2049 # As a last resort, use the slow shell script. Don't cache a
2050 # value for INSTALL within a source directory, because that will
2051 # break other packages using the cache if that directory is
2052 # removed, or if the value is a relative name.
2053 INSTALL=$ac_install_sh
2054 fi
2055fi
2056{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2057echo "${ECHO_T}$INSTALL" >&6; }
2058
2059# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2060# It thinks the first close brace ends the variable substitution.
2061test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2062
2063test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2064
2065test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2066
2067{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2068echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2069# Just in case
2070sleep 1
2071echo timestamp > conftest.file
2072# Do `set' in a subshell so we don't clobber the current shell's
2073# arguments. Must try -L first in case configure is actually a
2074# symlink; some systems play weird games with the mod time of symlinks
2075# (eg FreeBSD returns the mod time of the symlink's containing
2076# directory).
2077if (
2078 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2079 if test "$*" = "X"; then
2080 # -L didn't work.
2081 set X `ls -t $srcdir/configure conftest.file`
2082 fi
2083 rm -f conftest.file
2084 if test "$*" != "X $srcdir/configure conftest.file" \
2085 && test "$*" != "X conftest.file $srcdir/configure"; then
2086
2087 # If neither matched, then we have a broken ls. This can happen
2088 # if, for instance, CONFIG_SHELL is bash and it inherits a
2089 # broken ls alias from the environment. This has actually
2090 # happened. Such a system could not be considered "sane".
2091 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2092alias in your environment" >&5
2093echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2094alias in your environment" >&2;}
2095 { (exit 1); exit 1; }; }
2096 fi
2097
2098 test "$2" = conftest.file
2099 )
2100then
2101 # Ok.
2102 :
2103else
2104 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2105Check your system clock" >&5
2106echo "$as_me: error: newly created file is older than distributed files!
2107Check your system clock" >&2;}
2108 { (exit 1); exit 1; }; }
2109fi
2110{ echo "$as_me:$LINENO: result: yes" >&5
2111echo "${ECHO_T}yes" >&6; }
2112test "$program_prefix" != NONE &&
2113 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2114# Use a double $ so make ignores it.
2115test "$program_suffix" != NONE &&
2116 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2117# Double any \ or $. echo might interpret backslashes.
2118# By default was `s,x,x', remove it if useless.
2119cat <<\_ACEOF >conftest.sed
2120s/[\\$]/&&/g;s/;s,x,x,$//
2121_ACEOF
2122program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2123rm -f conftest.sed
2124
2125# expand $ac_aux_dir to an absolute path
2126am_aux_dir=`cd $ac_aux_dir && pwd`
2127
2128test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2129# Use eval to expand $SHELL
2130if eval "$MISSING --run true"; then
2131 am_missing_run="$MISSING --run "
2132else
2133 am_missing_run=
2134 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2135echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2136fi
2137
2138if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2139 # Keeping the `.' argument allows $(mkdir_p) to be used without
2140 # argument. Indeed, we sometimes output rules like
2141 # $(mkdir_p) $(somedir)
2142 # where $(somedir) is conditionally defined.
2143 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2144 # expensive solution, as it forces Make to start a sub-shell.)
2145 mkdir_p='mkdir -p -- .'
2146else
2147 # On NextStep and OpenStep, the `mkdir' command does not
2148 # recognize any option. It will interpret all options as
2149 # directories to create, and then abort because `.' already
2150 # exists.
2151 for d in ./-p ./--version;
2152 do
2153 test -d $d && rmdir $d
2154 done
2155 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2156 if test -f "$ac_aux_dir/mkinstalldirs"; then
2157 mkdir_p='$(mkinstalldirs)'
2158 else
2159 mkdir_p='$(install_sh) -d'
2160 fi
2161fi
2162
2163for ac_prog in gawk mawk nawk awk
2164do
2165 # Extract the first word of "$ac_prog", so it can be a program name with args.
2166set dummy $ac_prog; ac_word=$2
2167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169if test "${ac_cv_prog_AWK+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171else
2172 if test -n "$AWK"; then
2173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2174else
2175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176for as_dir in $PATH
2177do
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 ac_cv_prog_AWK="$ac_prog"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 break 2
2185 fi
2186done
2187done
2188IFS=$as_save_IFS
2189
2190fi
2191fi
2192AWK=$ac_cv_prog_AWK
2193if test -n "$AWK"; then
2194 { echo "$as_me:$LINENO: result: $AWK" >&5
2195echo "${ECHO_T}$AWK" >&6; }
2196else
2197 { echo "$as_me:$LINENO: result: no" >&5
2198echo "${ECHO_T}no" >&6; }
2199fi
2200
2201
2202 test -n "$AWK" && break
2203done
2204
2205{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2206echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2207set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2208if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210else
2211 cat >conftest.make <<\_ACEOF
2212SHELL = /bin/sh
2213all:
2214 @echo '@@@%%%=$(MAKE)=@@@%%%'
2215_ACEOF
2216# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2217case `${MAKE-make} -f conftest.make 2>/dev/null` in
2218 *@@@%%%=?*=@@@%%%*)
2219 eval ac_cv_prog_make_${ac_make}_set=yes;;
2220 *)
2221 eval ac_cv_prog_make_${ac_make}_set=no;;
2222esac
2223rm -f conftest.make
2224fi
2225if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2226 { echo "$as_me:$LINENO: result: yes" >&5
2227echo "${ECHO_T}yes" >&6; }
2228 SET_MAKE=
2229else
2230 { echo "$as_me:$LINENO: result: no" >&5
2231echo "${ECHO_T}no" >&6; }
2232 SET_MAKE="MAKE=${MAKE-make}"
2233fi
2234
2235rm -rf .tst 2>/dev/null
2236mkdir .tst 2>/dev/null
2237if test -d .tst; then
2238 am__leading_dot=.
2239else
2240 am__leading_dot=_
2241fi
2242rmdir .tst 2>/dev/null
2243
2244# test to see if srcdir already configured
2245if test "`cd $srcdir && pwd`" != "`pwd`" &&
2246 test -f $srcdir/config.status; then
2247 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2248echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2249 { (exit 1); exit 1; }; }
2250fi
2251
2252# test whether we have cygpath
2253if test -z "$CYGPATH_W"; then
2254 if (cygpath --version) >/dev/null 2>/dev/null; then
2255 CYGPATH_W='cygpath -w'
2256 else
2257 CYGPATH_W=echo
2258 fi
2259fi
2260
2261
2262# Define the identity of the package.
2263 PACKAGE=libltdl
2264 VERSION=1.2
2265
2266
2267# Some tools Automake needs.
2268
2269ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2270
2271
2272AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2273
2274
2275AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2276
2277
2278AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2279
2280
2281MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2282
2283
2284AMTAR=${AMTAR-"${am_missing_run}tar"}
2285
2286install_sh=${install_sh-"$am_aux_dir/install-sh"}
2287
2288# Installed binaries are usually stripped using `strip' when the user
2289# run `make install-strip'. However `strip' might not be the right
2290# tool to use in cross-compilation environments, therefore Automake
2291# will honor the `STRIP' environment variable to overrule this program.
2292if test "$cross_compiling" != no; then
2293 if test -n "$ac_tool_prefix"; then
2294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2295set dummy ${ac_tool_prefix}strip; ac_word=$2
2296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2298if test "${ac_cv_prog_STRIP+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300else
2301 if test -n "$STRIP"; then
2302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2303else
2304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305for as_dir in $PATH
2306do
2307 IFS=$as_save_IFS
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2311 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 break 2
2314 fi
2315done
2316done
2317IFS=$as_save_IFS
2318
2319fi
2320fi
2321STRIP=$ac_cv_prog_STRIP
2322if test -n "$STRIP"; then
2323 { echo "$as_me:$LINENO: result: $STRIP" >&5
2324echo "${ECHO_T}$STRIP" >&6; }
2325else
2326 { echo "$as_me:$LINENO: result: no" >&5
2327echo "${ECHO_T}no" >&6; }
2328fi
2329
2330
2331fi
2332if test -z "$ac_cv_prog_STRIP"; then
2333 ac_ct_STRIP=$STRIP
2334 # Extract the first word of "strip", so it can be a program name with args.
2335set dummy strip; ac_word=$2
2336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2338if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340else
2341 if test -n "$ac_ct_STRIP"; then
2342 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2343else
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2351 ac_cv_prog_ac_ct_STRIP="strip"
2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2354 fi
2355done
2356done
2357IFS=$as_save_IFS
2358
2359fi
2360fi
2361ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2362if test -n "$ac_ct_STRIP"; then
2363 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2364echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2365else
2366 { echo "$as_me:$LINENO: result: no" >&5
2367echo "${ECHO_T}no" >&6; }
2368fi
2369
2370 if test "x$ac_ct_STRIP" = x; then
2371 STRIP=":"
2372 else
2373 case $cross_compiling:$ac_tool_warned in
2374yes:)
2375{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2376whose name does not start with the host triplet. If you think this
2377configuration is useful to you, please write to autoconf@gnu.org." >&5
2378echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2379whose name does not start with the host triplet. If you think this
2380configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2381ac_tool_warned=yes ;;
2382esac
2383 STRIP=$ac_ct_STRIP
2384 fi
2385else
2386 STRIP="$ac_cv_prog_STRIP"
2387fi
2388
2389fi
2390INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2391
2392# We need awk for the "check" target. The system "awk" is bad on
2393# some platforms.
2394
2395
2396
2397ac_config_headers="$ac_config_headers config.h:config-h.in"
2398
2399{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2400echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2401 # Check whether --enable-maintainer-mode was given.
2402if test "${enable_maintainer_mode+set}" = set; then
2403 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2404else
2405 USE_MAINTAINER_MODE=no
2406fi
2407
2408 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2409echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2410
2411
2412if test $USE_MAINTAINER_MODE = yes; then
2413 MAINTAINER_MODE_TRUE=
2414 MAINTAINER_MODE_FALSE='#'
2415else
2416 MAINTAINER_MODE_TRUE='#'
2417 MAINTAINER_MODE_FALSE=
2418fi
2419
2420 MAINT=$MAINTAINER_MODE_TRUE
2421
2422
2423
2424
2425## ------------------ ##
2426## C compiler checks. ##
2427## ------------------ ##
2428ac_ext=c
2429ac_cpp='$CPP $CPPFLAGS'
2430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2435set dummy ${ac_tool_prefix}gcc; ac_word=$2
2436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2438if test "${ac_cv_prog_CC+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441 if test -n "$CC"; then
2442 ac_cv_prog_CC="$CC" # Let the user override the test.
2443else
2444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445for as_dir in $PATH
2446do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2454 fi
2455done
2456done
2457IFS=$as_save_IFS
2458
2459fi
2460fi
2461CC=$ac_cv_prog_CC
2462if test -n "$CC"; then
2463 { echo "$as_me:$LINENO: result: $CC" >&5
2464echo "${ECHO_T}$CC" >&6; }
2465else
2466 { echo "$as_me:$LINENO: result: no" >&5
2467echo "${ECHO_T}no" >&6; }
2468fi
2469
2470
2471fi
2472if test -z "$ac_cv_prog_CC"; then
2473 ac_ct_CC=$CC
2474 # Extract the first word of "gcc", so it can be a program name with args.
2475set dummy gcc; ac_word=$2
2476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481 if test -n "$ac_ct_CC"; then
2482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2483else
2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2491 ac_cv_prog_ac_ct_CC="gcc"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2494 fi
2495done
2496done
2497IFS=$as_save_IFS
2498
2499fi
2500fi
2501ac_ct_CC=$ac_cv_prog_ac_ct_CC
2502if test -n "$ac_ct_CC"; then
2503 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2504echo "${ECHO_T}$ac_ct_CC" >&6; }
2505else
2506 { echo "$as_me:$LINENO: result: no" >&5
2507echo "${ECHO_T}no" >&6; }
2508fi
2509
2510 if test "x$ac_ct_CC" = x; then
2511 CC=""
2512 else
2513 case $cross_compiling:$ac_tool_warned in
2514yes:)
2515{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2516whose name does not start with the host triplet. If you think this
2517configuration is useful to you, please write to autoconf@gnu.org." >&5
2518echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2519whose name does not start with the host triplet. If you think this
2520configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2521ac_tool_warned=yes ;;
2522esac
2523 CC=$ac_ct_CC
2524 fi
2525else
2526 CC="$ac_cv_prog_CC"
2527fi
2528
2529if test -z "$CC"; then
2530 if test -n "$ac_tool_prefix"; then
2531 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2532set dummy ${ac_tool_prefix}cc; ac_word=$2
2533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2535if test "${ac_cv_prog_CC+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2540else
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 ac_cv_prog_CC="${ac_tool_prefix}cc"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2551 fi
2552done
2553done
2554IFS=$as_save_IFS
2555
2556fi
2557fi
2558CC=$ac_cv_prog_CC
2559if test -n "$CC"; then
2560 { echo "$as_me:$LINENO: result: $CC" >&5
2561echo "${ECHO_T}$CC" >&6; }
2562else
2563 { echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6; }
2565fi
2566
2567
2568 fi
2569fi
2570if test -z "$CC"; then
2571 # Extract the first word of "cc", so it can be a program name with args.
2572set dummy cc; ac_word=$2
2573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2575if test "${ac_cv_prog_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577else
2578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2580else
2581 ac_prog_rejected=no
2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2589 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2590 ac_prog_rejected=yes
2591 continue
2592 fi
2593 ac_cv_prog_CC="cc"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2596 fi
2597done
2598done
2599IFS=$as_save_IFS
2600
2601if test $ac_prog_rejected = yes; then
2602 # We found a bogon in the path, so make sure we never use it.
2603 set dummy $ac_cv_prog_CC
2604 shift
2605 if test $# != 0; then
2606 # We chose a different compiler from the bogus one.
2607 # However, it has the same basename, so the bogon will be chosen
2608 # first if we set CC to just the basename; use the full file name.
2609 shift
2610 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2611 fi
2612fi
2613fi
2614fi
2615CC=$ac_cv_prog_CC
2616if test -n "$CC"; then
2617 { echo "$as_me:$LINENO: result: $CC" >&5
2618echo "${ECHO_T}$CC" >&6; }
2619else
2620 { echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6; }
2622fi
2623
2624
2625fi
2626if test -z "$CC"; then
2627 if test -n "$ac_tool_prefix"; then
2628 for ac_prog in cl.exe
2629 do
2630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2631set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634if test "${ac_cv_prog_CC+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651done
2652done
2653IFS=$as_save_IFS
2654
2655fi
2656fi
2657CC=$ac_cv_prog_CC
2658if test -n "$CC"; then
2659 { echo "$as_me:$LINENO: result: $CC" >&5
2660echo "${ECHO_T}$CC" >&6; }
2661else
2662 { echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6; }
2664fi
2665
2666
2667 test -n "$CC" && break
2668 done
2669fi
2670if test -z "$CC"; then
2671 ac_ct_CC=$CC
2672 for ac_prog in cl.exe
2673do
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675set dummy $ac_prog; ac_word=$2
2676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2678if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681 if test -n "$ac_ct_CC"; then
2682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_ac_ct_CC="$ac_prog"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696done
2697IFS=$as_save_IFS
2698
2699fi
2700fi
2701ac_ct_CC=$ac_cv_prog_ac_ct_CC
2702if test -n "$ac_ct_CC"; then
2703 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2704echo "${ECHO_T}$ac_ct_CC" >&6; }
2705else
2706 { echo "$as_me:$LINENO: result: no" >&5
2707echo "${ECHO_T}no" >&6; }
2708fi
2709
2710
2711 test -n "$ac_ct_CC" && break
2712done
2713
2714 if test "x$ac_ct_CC" = x; then
2715 CC=""
2716 else
2717 case $cross_compiling:$ac_tool_warned in
2718yes:)
2719{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2720whose name does not start with the host triplet. If you think this
2721configuration is useful to you, please write to autoconf@gnu.org." >&5
2722echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2723whose name does not start with the host triplet. If you think this
2724configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2725ac_tool_warned=yes ;;
2726esac
2727 CC=$ac_ct_CC
2728 fi
2729fi
2730
2731fi
2732
2733
2734test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2735See \`config.log' for more details." >&5
2736echo "$as_me: error: no acceptable C compiler found in \$PATH
2737See \`config.log' for more details." >&2;}
2738 { (exit 1); exit 1; }; }
2739
2740# Provide some information about the compiler.
2741echo "$as_me:$LINENO: checking for C compiler version" >&5
2742ac_compiler=`set X $ac_compile; echo $2`
2743{ (ac_try="$ac_compiler --version >&5"
2744case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747esac
2748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_compiler --version >&5") 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }
2753{ (ac_try="$ac_compiler -v >&5"
2754case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757esac
2758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compiler -v >&5") 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }
2763{ (ac_try="$ac_compiler -V >&5"
2764case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767esac
2768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_compiler -V >&5") 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }
2773
2774cat >conftest.$ac_ext <<_ACEOF
2775/* confdefs.h. */
2776_ACEOF
2777cat confdefs.h >>conftest.$ac_ext
2778cat >>conftest.$ac_ext <<_ACEOF
2779/* end confdefs.h. */
2780
2781int
2782main ()
2783{
2784
2785 ;
2786 return 0;
2787}
2788_ACEOF
2789ac_clean_files_save=$ac_clean_files
2790ac_clean_files="$ac_clean_files a.out a.exe b.out"
2791# Try to create an executable without -o first, disregard a.out.
2792# It will help us diagnose broken compilers, and finding out an intuition
2793# of exeext.
2794{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2795echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2796ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2797#
2798# List of possible output files, starting from the most likely.
2799# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2800# only as a last resort. b.out is created by i960 compilers.
2801ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2802#
2803# The IRIX 6 linker writes into existing files which may not be
2804# executable, retaining their permissions. Remove them first so a
2805# subsequent execution test works.
2806ac_rmfiles=
2807for ac_file in $ac_files
2808do
2809 case $ac_file in
2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2811 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2812 esac
2813done
2814rm -f $ac_rmfiles
2815
2816if { (ac_try="$ac_link_default"
2817case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820esac
2821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822 (eval "$ac_link_default") 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; then
2826 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2827# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2828# in a Makefile. We should not override ac_cv_exeext if it was cached,
2829# so that the user can short-circuit this test for compilers unknown to
2830# Autoconf.
2831for ac_file in $ac_files ''
2832do
2833 test -f "$ac_file" || continue
2834 case $ac_file in
2835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2836 ;;
2837 [ab].out )
2838 # We found the default executable, but exeext='' is most
2839 # certainly right.
2840 break;;
2841 *.* )
2842 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2843 then :; else
2844 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2845 fi
2846 # We set ac_cv_exeext here because the later test for it is not
2847 # safe: cross compilers may not add the suffix if given an `-o'
2848 # argument, so we may need to know it at that point already.
2849 # Even if this section looks crufty: it has the advantage of
2850 # actually working.
2851 break;;
2852 * )
2853 break;;
2854 esac
2855done
2856test "$ac_cv_exeext" = no && ac_cv_exeext=
2857
2858else
2859 ac_file=''
2860fi
2861
2862{ echo "$as_me:$LINENO: result: $ac_file" >&5
2863echo "${ECHO_T}$ac_file" >&6; }
2864if test -z "$ac_file"; then
2865 echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2869See \`config.log' for more details." >&5
2870echo "$as_me: error: C compiler cannot create executables
2871See \`config.log' for more details." >&2;}
2872 { (exit 77); exit 77; }; }
2873fi
2874
2875ac_exeext=$ac_cv_exeext
2876
2877# Check that the compiler produces executables we can run. If not, either
2878# the compiler is broken, or we cross compile.
2879{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2880echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2881# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2882# If not cross compiling, check that we can run a simple program.
2883if test "$cross_compiling" != yes; then
2884 if { ac_try='./$ac_file'
2885 { (case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_try") 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 cross_compiling=no
2895 else
2896 if test "$cross_compiling" = maybe; then
2897 cross_compiling=yes
2898 else
2899 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2900If you meant to cross compile, use \`--host'.
2901See \`config.log' for more details." >&5
2902echo "$as_me: error: cannot run C compiled programs.
2903If you meant to cross compile, use \`--host'.
2904See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2906 fi
2907 fi
2908fi
2909{ echo "$as_me:$LINENO: result: yes" >&5
2910echo "${ECHO_T}yes" >&6; }
2911
2912rm -f a.out a.exe conftest$ac_cv_exeext b.out
2913ac_clean_files=$ac_clean_files_save
2914# Check that the compiler produces executables we can run. If not, either
2915# the compiler is broken, or we cross compile.
2916{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2917echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2918{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2919echo "${ECHO_T}$cross_compiling" >&6; }
2920
2921{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2922echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2923if { (ac_try="$ac_link"
2924case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927esac
2928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_link") 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; then
2933 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2934# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2935# work properly (i.e., refer to `conftest.exe'), while it won't with
2936# `rm'.
2937for ac_file in conftest.exe conftest conftest.*; do
2938 test -f "$ac_file" || continue
2939 case $ac_file in
2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942 break;;
2943 * ) break;;
2944 esac
2945done
2946else
2947 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2948See \`config.log' for more details." >&5
2949echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2950See \`config.log' for more details." >&2;}
2951 { (exit 1); exit 1; }; }
2952fi
2953
2954rm -f conftest$ac_cv_exeext
2955{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2956echo "${ECHO_T}$ac_cv_exeext" >&6; }
2957
2958rm -f conftest.$ac_ext
2959EXEEXT=$ac_cv_exeext
2960ac_exeext=$EXEEXT
2961{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2962echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2963if test "${ac_cv_objext+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965else
2966 cat >conftest.$ac_ext <<_ACEOF
2967/* confdefs.h. */
2968_ACEOF
2969cat confdefs.h >>conftest.$ac_ext
2970cat >>conftest.$ac_ext <<_ACEOF
2971/* end confdefs.h. */
2972
2973int
2974main ()
2975{
2976
2977 ;
2978 return 0;
2979}
2980_ACEOF
2981rm -f conftest.o conftest.obj
2982if { (ac_try="$ac_compile"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
2992 for ac_file in conftest.o conftest.obj conftest.*; do
2993 test -f "$ac_file" || continue;
2994 case $ac_file in
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2996 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2997 break;;
2998 esac
2999done
3000else
3001 echo "$as_me: failed program was:" >&5
3002sed 's/^/| /' conftest.$ac_ext >&5
3003
3004{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3005See \`config.log' for more details." >&5
3006echo "$as_me: error: cannot compute suffix of object files: cannot compile
3007See \`config.log' for more details." >&2;}
3008 { (exit 1); exit 1; }; }
3009fi
3010
3011rm -f conftest.$ac_cv_objext conftest.$ac_ext
3012fi
3013{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3014echo "${ECHO_T}$ac_cv_objext" >&6; }
3015OBJEXT=$ac_cv_objext
3016ac_objext=$OBJEXT
3017{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3018echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3019if test "${ac_cv_c_compiler_gnu+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021else
3022 cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h. */
3028
3029int
3030main ()
3031{
3032#ifndef __GNUC__
3033 choke me
3034#endif
3035
3036 ;
3037 return 0;
3038}
3039_ACEOF
3040rm -f conftest.$ac_objext
3041if { (ac_try="$ac_compile"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
3048 ac_status=$?
3049 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -f conftest.er1
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
3054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; } &&
3064 { ac_try='test -s conftest.$ac_objext'
3065 { (case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068esac
3069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3074 ac_compiler_gnu=yes
3075else
3076 echo "$as_me: failed program was:" >&5
3077sed 's/^/| /' conftest.$ac_ext >&5
3078
3079 ac_compiler_gnu=no
3080fi
3081
3082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083ac_cv_c_compiler_gnu=$ac_compiler_gnu
3084
3085fi
3086{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3087echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3088GCC=`test $ac_compiler_gnu = yes && echo yes`
3089ac_test_CFLAGS=${CFLAGS+set}
3090ac_save_CFLAGS=$CFLAGS
3091{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3092echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3093if test "${ac_cv_prog_cc_g+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095else
3096 ac_save_c_werror_flag=$ac_c_werror_flag
3097 ac_c_werror_flag=yes
3098 ac_cv_prog_cc_g=no
3099 CFLAGS="-g"
3100 cat >conftest.$ac_ext <<_ACEOF
3101/* confdefs.h. */
3102_ACEOF
3103cat confdefs.h >>conftest.$ac_ext
3104cat >>conftest.$ac_ext <<_ACEOF
3105/* end confdefs.h. */
3106
3107int
3108main ()
3109{
3110
3111 ;
3112 return 0;
3113}
3114_ACEOF
3115rm -f conftest.$ac_objext
3116if { (ac_try="$ac_compile"
3117case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120esac
3121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_compile") 2>conftest.er1
3123 ac_status=$?
3124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3130 { (case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_try") 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_cv_prog_cc_g=yes
3150else
3151 echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 CFLAGS=""
3155 cat >conftest.$ac_ext <<_ACEOF
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
3161
3162int
3163main ()
3164{
3165
3166 ;
3167 return 0;
3168}
3169_ACEOF
3170rm -f conftest.$ac_objext
3171if { (ac_try="$ac_compile"
3172case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
3184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3185 { (case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_try") 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3204 :
3205else
3206 echo "$as_me: failed program was:" >&5
3207sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 ac_c_werror_flag=$ac_save_c_werror_flag
3210 CFLAGS="-g"
3211 cat >conftest.$ac_ext <<_ACEOF
3212/* confdefs.h. */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
3216/* end confdefs.h. */
3217
3218int
3219main ()
3220{
3221
3222 ;
3223 return 0;
3224}
3225_ACEOF
3226rm -f conftest.$ac_objext
3227if { (ac_try="$ac_compile"
3228case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231esac
3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3241 { (case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244esac
3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_try") 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_prog_cc_g=yes
3261else
3262 echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265
3266fi
3267
3268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269fi
3270
3271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272fi
3273
3274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_c_werror_flag=$ac_save_c_werror_flag
3276fi
3277{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3278echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3279if test "$ac_test_CFLAGS" = set; then
3280 CFLAGS=$ac_save_CFLAGS
3281elif test $ac_cv_prog_cc_g = yes; then
3282 if test "$GCC" = yes; then
3283 CFLAGS="-g -O2"
3284 else
3285 CFLAGS="-g"
3286 fi
3287else
3288 if test "$GCC" = yes; then
3289 CFLAGS="-O2"
3290 else
3291 CFLAGS=
3292 fi
3293fi
3294{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3295echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3296if test "${ac_cv_prog_cc_c89+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299 ac_cv_prog_cc_c89=no
3300ac_save_CC=$CC
3301cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h. */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
3306/* end confdefs.h. */
3307#include <stdarg.h>
3308#include <stdio.h>
3309#include <sys/types.h>
3310#include <sys/stat.h>
3311/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3312struct buf { int x; };
3313FILE * (*rcsopen) (struct buf *, struct stat *, int);
3314static char *e (p, i)
3315 char **p;
3316 int i;
3317{
3318 return p[i];
3319}
3320static char *f (char * (*g) (char **, int), char **p, ...)
3321{
3322 char *s;
3323 va_list v;
3324 va_start (v,p);
3325 s = g (p, va_arg (v,int));
3326 va_end (v);
3327 return s;
3328}
3329
3330/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3331 function prototypes and stuff, but not '\xHH' hex character constants.
3332 These don't provoke an error unfortunately, instead are silently treated
3333 as 'x'. The following induces an error, until -std is added to get
3334 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3335 array size at least. It's necessary to write '\x00'==0 to get something
3336 that's true only with -std. */
3337int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3338
3339/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3340 inside strings and character constants. */
3341#define FOO(x) 'x'
3342int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3343
3344int test (int i, double x);
3345struct s1 {int (*f) (int a);};
3346struct s2 {int (*f) (double a);};
3347int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3348int argc;
3349char **argv;
3350int
3351main ()
3352{
3353return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3354 ;
3355 return 0;
3356}
3357_ACEOF
3358for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3359 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3360do
3361 CC="$ac_save_CC $ac_arg"
3362 rm -f conftest.$ac_objext
3363if { (ac_try="$ac_compile"
3364case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367esac
3368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_compile") 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3377 { (case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_try") 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_try") 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 ac_cv_prog_cc_c89=$ac_arg
3397else
3398 echo "$as_me: failed program was:" >&5
3399sed 's/^/| /' conftest.$ac_ext >&5
3400
3401
3402fi
3403
3404rm -f core conftest.err conftest.$ac_objext
3405 test "x$ac_cv_prog_cc_c89" != "xno" && break
3406done
3407rm -f conftest.$ac_ext
3408CC=$ac_save_CC
3409
3410fi
3411# AC_CACHE_VAL
3412case "x$ac_cv_prog_cc_c89" in
3413 x)
3414 { echo "$as_me:$LINENO: result: none needed" >&5
3415echo "${ECHO_T}none needed" >&6; } ;;
3416 xno)
3417 { echo "$as_me:$LINENO: result: unsupported" >&5
3418echo "${ECHO_T}unsupported" >&6; } ;;
3419 *)
3420 CC="$CC $ac_cv_prog_cc_c89"
3421 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3422echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3423esac
3424
3425
3426ac_ext=c
3427ac_cpp='$CPP $CPPFLAGS'
3428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431DEPDIR="${am__leading_dot}deps"
3432
3433ac_config_commands="$ac_config_commands depfiles"
3434
3435
3436am_make=${MAKE-make}
3437cat > confinc << 'END'
3438am__doit:
3439 @echo done
3440.PHONY: am__doit
3441END
3442# If we don't find an include directive, just comment out the code.
3443{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3444echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3445am__include="#"
3446am__quote=
3447_am_result=none
3448# First try GNU make style include.
3449echo "include confinc" > confmf
3450# We grep out `Entering directory' and `Leaving directory'
3451# messages which can occur if `w' ends up in MAKEFLAGS.
3452# In particular we don't look at `^make:' because GNU make might
3453# be invoked under some other name (usually "gmake"), in which
3454# case it prints its new name instead of `make'.
3455if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3456 am__include=include
3457 am__quote=
3458 _am_result=GNU
3459fi
3460# Now try BSD make style include.
3461if test "$am__include" = "#"; then
3462 echo '.include "confinc"' > confmf
3463 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3464 am__include=.include
3465 am__quote="\""
3466 _am_result=BSD
3467 fi
3468fi
3469
3470
3471{ echo "$as_me:$LINENO: result: $_am_result" >&5
3472echo "${ECHO_T}$_am_result" >&6; }
3473rm -f confinc confmf
3474
3475# Check whether --enable-dependency-tracking was given.
3476if test "${enable_dependency_tracking+set}" = set; then
3477 enableval=$enable_dependency_tracking;
3478fi
3479
3480if test "x$enable_dependency_tracking" != xno; then
3481 am_depcomp="$ac_aux_dir/depcomp"
3482 AMDEPBACKSLASH='\'
3483fi
3484
3485
3486if test "x$enable_dependency_tracking" != xno; then
3487 AMDEP_TRUE=
3488 AMDEP_FALSE='#'
3489else
3490 AMDEP_TRUE='#'
3491 AMDEP_FALSE=
3492fi
3493
3494
3495
3496
3497depcc="$CC" am_compiler_list=
3498
3499{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3500echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3501if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503else
3504 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3505 # We make a subdir and do the tests there. Otherwise we can end up
3506 # making bogus files that we don't know about and never remove. For
3507 # instance it was reported that on HP-UX the gcc test will end up
3508 # making a dummy file named `D' -- because `-MD' means `put the output
3509 # in D'.
3510 mkdir conftest.dir
3511 # Copy depcomp to subdir because otherwise we won't find it if we're
3512 # using a relative directory.
3513 cp "$am_depcomp" conftest.dir
3514 cd conftest.dir
3515 # We will build objects and dependencies in a subdirectory because
3516 # it helps to detect inapplicable dependency modes. For instance
3517 # both Tru64's cc and ICC support -MD to output dependencies as a
3518 # side effect of compilation, but ICC will put the dependencies in
3519 # the current directory while Tru64 will put them in the object
3520 # directory.
3521 mkdir sub
3522
3523 am_cv_CC_dependencies_compiler_type=none
3524 if test "$am_compiler_list" = ""; then
3525 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3526 fi
3527 for depmode in $am_compiler_list; do
3528 # Setup a source with many dependencies, because some compilers
3529 # like to wrap large dependency lists on column 80 (with \), and
3530 # we should not choose a depcomp mode which is confused by this.
3531 #
3532 # We need to recreate these files for each test, as the compiler may
3533 # overwrite some of them when testing with obscure command lines.
3534 # This happens at least with the AIX C compiler.
3535 : > sub/conftest.c
3536 for i in 1 2 3 4 5 6; do
3537 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3538 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3539 # Solaris 8's {/usr,}/bin/sh.
3540 touch sub/conftst$i.h
3541 done
3542 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3543
3544 case $depmode in
3545 nosideeffect)
3546 # after this tag, mechanisms are not by side-effect, so they'll
3547 # only be used when explicitly requested
3548 if test "x$enable_dependency_tracking" = xyes; then
3549 continue
3550 else
3551 break
3552 fi
3553 ;;
3554 none) break ;;
3555 esac
3556 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3557 # mode. It turns out that the SunPro C++ compiler does not properly
3558 # handle `-M -o', and we need to detect this.
3559 if depmode=$depmode \
3560 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3561 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3562 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3563 >/dev/null 2>conftest.err &&
3564 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3565 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3566 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3567 # icc doesn't choke on unknown options, it will just issue warnings
3568 # or remarks (even with -Werror). So we grep stderr for any message
3569 # that says an option was ignored or not supported.
3570 # When given -MP, icc 7.0 and 7.1 complain thusly:
3571 # icc: Command line warning: ignoring option '-M'; no argument required
3572 # The diagnosis changed in icc 8.0:
3573 # icc: Command line remark: option '-MP' not supported
3574 if (grep 'ignoring option' conftest.err ||
3575 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3576 am_cv_CC_dependencies_compiler_type=$depmode
3577 break
3578 fi
3579 fi
3580 done
3581
3582 cd ..
3583 rm -rf conftest.dir
3584else
3585 am_cv_CC_dependencies_compiler_type=none
3586fi
3587
3588fi
3589{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3590echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3591CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3592
3593
3594
3595if
3596 test "x$enable_dependency_tracking" != xno \
3597 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3598 am__fastdepCC_TRUE=
3599 am__fastdepCC_FALSE='#'
3600else
3601 am__fastdepCC_TRUE='#'
3602 am__fastdepCC_FALSE=
3603fi
3604
3605
3606
3607{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3608echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3609if test "${ac_cv_c_const+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611else
3612 cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h. */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h. */
3618
3619int
3620main ()
3621{
3622/* FIXME: Include the comments suggested by Paul. */
3623#ifndef __cplusplus
3624 /* Ultrix mips cc rejects this. */
3625 typedef int charset[2];
3626 const charset cs;
3627 /* SunOS 4.1.1 cc rejects this. */
3628 char const *const *pcpcc;
3629 char **ppc;
3630 /* NEC SVR4.0.2 mips cc rejects this. */
3631 struct point {int x, y;};
3632 static struct point const zero = {0,0};
3633 /* AIX XL C 1.02.0.0 rejects this.
3634 It does not let you subtract one const X* pointer from another in
3635 an arm of an if-expression whose if-part is not a constant
3636 expression */
3637 const char *g = "string";
3638 pcpcc = &g + (g ? g-g : 0);
3639 /* HPUX 7.0 cc rejects these. */
3640 ++pcpcc;
3641 ppc = (char**) pcpcc;
3642 pcpcc = (char const *const *) ppc;
3643 { /* SCO 3.2v4 cc rejects this. */
3644 char *t;
3645 char const *s = 0 ? (char *) 0 : (char const *) 0;
3646
3647 *t++ = 0;
3648 if (s) return 0;
3649 }
3650 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3651 int x[] = {25, 17};
3652 const int *foo = &x[0];
3653 ++foo;
3654 }
3655 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3656 typedef const int *iptr;
3657 iptr p = 0;
3658 ++p;
3659 }
3660 { /* AIX XL C 1.02.0.0 rejects this saying
3661 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3662 struct s { int j; const int *ap[3]; };
3663 struct s *b; b->j = 5;
3664 }
3665 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3666 const int foo = 10;
3667 if (!foo) return 0;
3668 }
3669 return !cs[0] && !zero.x;
3670#endif
3671
3672 ;
3673 return 0;
3674}
3675_ACEOF
3676rm -f conftest.$ac_objext
3677if { (ac_try="$ac_compile"
3678case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681esac
3682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683 (eval "$ac_compile") 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3691 { (case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694esac
3695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; } &&
3700 { ac_try='test -s conftest.$ac_objext'
3701 { (case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704esac
3705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_try") 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_c_const=yes
3711else
3712 echo "$as_me: failed program was:" >&5
3713sed 's/^/| /' conftest.$ac_ext >&5
3714
3715 ac_cv_c_const=no
3716fi
3717
3718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719fi
3720{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3721echo "${ECHO_T}$ac_cv_c_const" >&6; }
3722if test $ac_cv_c_const = no; then
3723
3724cat >>confdefs.h <<\_ACEOF
3725#define const
3726_ACEOF
3727
3728fi
3729
3730{ echo "$as_me:$LINENO: checking for inline" >&5
3731echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3732if test "${ac_cv_c_inline+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735 ac_cv_c_inline=no
3736for ac_kw in inline __inline__ __inline; do
3737 cat >conftest.$ac_ext <<_ACEOF
3738/* confdefs.h. */
3739_ACEOF
3740cat confdefs.h >>conftest.$ac_ext
3741cat >>conftest.$ac_ext <<_ACEOF
3742/* end confdefs.h. */
3743#ifndef __cplusplus
3744typedef int foo_t;
3745static $ac_kw foo_t static_foo () {return 0; }
3746$ac_kw foo_t foo () {return 0; }
3747#endif
3748
3749_ACEOF
3750rm -f conftest.$ac_objext
3751if { (ac_try="$ac_compile"
3752case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755esac
3756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757 (eval "$ac_compile") 2>conftest.er1
3758 ac_status=$?
3759 grep -v '^ *+' conftest.er1 >conftest.err
3760 rm -f conftest.er1
3761 cat conftest.err >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } &&
3764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3765 { (case "(($ac_try" in
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3768esac
3769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3770 (eval "$ac_try") 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; } &&
3774 { ac_try='test -s conftest.$ac_objext'
3775 { (case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778esac
3779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780 (eval "$ac_try") 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_cv_c_inline=$ac_kw
3785else
3786 echo "$as_me: failed program was:" >&5
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3789
3790fi
3791
3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 test "$ac_cv_c_inline" != no && break
3794done
3795
3796fi
3797{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3798echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3799
3800
3801case $ac_cv_c_inline in
3802 inline | yes) ;;
3803 *)
3804 case $ac_cv_c_inline in
3805 no) ac_val=;;
3806 *) ac_val=$ac_cv_c_inline;;
3807 esac
3808 cat >>confdefs.h <<_ACEOF
3809#ifndef __cplusplus
3810#define inline $ac_val
3811#endif
3812_ACEOF
3813 ;;
3814esac
3815
3816
3817
3818## ----------------------- ##
3819## Libtool initialisation. ##
3820## ----------------------- ##
3821
3822
3823# Check whether --enable-shared was given.
3824if test "${enable_shared+set}" = set; then
3825 enableval=$enable_shared; p=${PACKAGE-default}
3826 case $enableval in
3827 yes) enable_shared=yes ;;
3828 no) enable_shared=no ;;
3829 *)
3830 enable_shared=no
3831 # Look at the argument we got. We use all the common list separators.
3832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3833 for pkg in $enableval; do
3834 IFS="$lt_save_ifs"
3835 if test "X$pkg" = "X$p"; then
3836 enable_shared=yes
3837 fi
3838 done
3839 IFS="$lt_save_ifs"
3840 ;;
3841 esac
3842else
3843 enable_shared=yes
3844fi
3845
3846
3847# Check whether --enable-static was given.
3848if test "${enable_static+set}" = set; then
3849 enableval=$enable_static; p=${PACKAGE-default}
3850 case $enableval in
3851 yes) enable_static=yes ;;
3852 no) enable_static=no ;;
3853 *)
3854 enable_static=no
3855 # Look at the argument we got. We use all the common list separators.
3856 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3857 for pkg in $enableval; do
3858 IFS="$lt_save_ifs"
3859 if test "X$pkg" = "X$p"; then
3860 enable_static=yes
3861 fi
3862 done
3863 IFS="$lt_save_ifs"
3864 ;;
3865 esac
3866else
3867 enable_static=yes
3868fi
3869
3870
3871# Check whether --enable-fast-install was given.
3872if test "${enable_fast_install+set}" = set; then
3873 enableval=$enable_fast_install; p=${PACKAGE-default}
3874 case $enableval in
3875 yes) enable_fast_install=yes ;;
3876 no) enable_fast_install=no ;;
3877 *)
3878 enable_fast_install=no
3879 # Look at the argument we got. We use all the common list separators.
3880 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3881 for pkg in $enableval; do
3882 IFS="$lt_save_ifs"
3883 if test "X$pkg" = "X$p"; then
3884 enable_fast_install=yes
3885 fi
3886 done
3887 IFS="$lt_save_ifs"
3888 ;;
3889 esac
3890else
3891 enable_fast_install=yes
3892fi
3893
3894
3895# Make sure we can run config.sub.
3896$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3897 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3898echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3899 { (exit 1); exit 1; }; }
3900
3901{ echo "$as_me:$LINENO: checking build system type" >&5
3902echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3903if test "${ac_cv_build+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905else
3906 ac_build_alias=$build_alias
3907test "x$ac_build_alias" = x &&
3908 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3909test "x$ac_build_alias" = x &&
3910 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3911echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3912 { (exit 1); exit 1; }; }
3913ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3914 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3915echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3916 { (exit 1); exit 1; }; }
3917
3918fi
3919{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3920echo "${ECHO_T}$ac_cv_build" >&6; }
3921case $ac_cv_build in
3922*-*-*) ;;
3923*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3924echo "$as_me: error: invalid value of canonical build" >&2;}
3925 { (exit 1); exit 1; }; };;
3926esac
3927build=$ac_cv_build
3928ac_save_IFS=$IFS; IFS='-'
3929set x $ac_cv_build
3930shift
3931build_cpu=$1
3932build_vendor=$2
3933shift; shift
3934# Remember, the first character of IFS is used to create $*,
3935# except with old shells:
3936build_os=$*
3937IFS=$ac_save_IFS
3938case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3939
3940
3941{ echo "$as_me:$LINENO: checking host system type" >&5
3942echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3943if test "${ac_cv_host+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946 if test "x$host_alias" = x; then
3947 ac_cv_host=$ac_cv_build
3948else
3949 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3950 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3951echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3952 { (exit 1); exit 1; }; }
3953fi
3954
3955fi
3956{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3957echo "${ECHO_T}$ac_cv_host" >&6; }
3958case $ac_cv_host in
3959*-*-*) ;;
3960*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3961echo "$as_me: error: invalid value of canonical host" >&2;}
3962 { (exit 1); exit 1; }; };;
3963esac
3964host=$ac_cv_host
3965ac_save_IFS=$IFS; IFS='-'
3966set x $ac_cv_host
3967shift
3968host_cpu=$1
3969host_vendor=$2
3970shift; shift
3971# Remember, the first character of IFS is used to create $*,
3972# except with old shells:
3973host_os=$*
3974IFS=$ac_save_IFS
3975case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3976
3977
3978{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3979echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3980if test "${lt_cv_path_SED+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982else
3983 # Loop through the user's path and test for sed and gsed.
3984# Then use that list of sed's as ones to test for truncation.
3985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH
3987do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for lt_ac_prog in sed gsed; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3993 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3994 fi
3995 done
3996 done
3997done
3998lt_ac_max=0
3999lt_ac_count=0
4000# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4001# along with /bin/sed that truncates output.
4002for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4003 test ! -f $lt_ac_sed && continue
4004 cat /dev/null > conftest.in
4005 lt_ac_count=0
4006 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4007 # Check for GNU sed and select it if it is found.
4008 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4009 lt_cv_path_SED=$lt_ac_sed
4010 break
4011 fi
4012 while true; do
4013 cat conftest.in conftest.in >conftest.tmp
4014 mv conftest.tmp conftest.in
4015 cp conftest.in conftest.nl
4016 echo >>conftest.nl
4017 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4018 cmp -s conftest.out conftest.nl || break
4019 # 10000 chars as input seems more than enough
4020 test $lt_ac_count -gt 10 && break
4021 lt_ac_count=`expr $lt_ac_count + 1`
4022 if test $lt_ac_count -gt $lt_ac_max; then
4023 lt_ac_max=$lt_ac_count
4024 lt_cv_path_SED=$lt_ac_sed
4025 fi
4026 done
4027done
4028
4029fi
4030
4031SED=$lt_cv_path_SED
4032{ echo "$as_me:$LINENO: result: $SED" >&5
4033echo "${ECHO_T}$SED" >&6; }
4034
4035{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4036echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4037if test "${ac_cv_path_GREP+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039else
4040 # Extract the first word of "grep ggrep" to use in msg output
4041if test -z "$GREP"; then
4042set dummy grep ggrep; ac_prog_name=$2
4043if test "${ac_cv_path_GREP+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046 ac_path_GREP_found=false
4047# Loop through the user's path and test for each of PROGNAME-LIST
4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4050do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_prog in grep ggrep; do
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4056 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4057 # Check for GNU ac_path_GREP and select it if it is found.
4058 # Check for GNU $ac_path_GREP
4059case `"$ac_path_GREP" --version 2>&1` in
4060*GNU*)
4061 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4062*)
4063 ac_count=0
4064 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4065 while :
4066 do
4067 cat "conftest.in" "conftest.in" >"conftest.tmp"
4068 mv "conftest.tmp" "conftest.in"
4069 cp "conftest.in" "conftest.nl"
4070 echo 'GREP' >> "conftest.nl"
4071 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4073 ac_count=`expr $ac_count + 1`
4074 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4075 # Best one so far, save it but keep looking for a better one
4076 ac_cv_path_GREP="$ac_path_GREP"
4077 ac_path_GREP_max=$ac_count
4078 fi
4079 # 10*(2^10) chars as input seems more than enough
4080 test $ac_count -gt 10 && break
4081 done
4082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4083esac
4084
4085
4086 $ac_path_GREP_found && break 3
4087 done
4088done
4089
4090done
4091IFS=$as_save_IFS
4092
4093
4094fi
4095
4096GREP="$ac_cv_path_GREP"
4097if test -z "$GREP"; then
4098 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4099echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4100 { (exit 1); exit 1; }; }
4101fi
4102
4103else
4104 ac_cv_path_GREP=$GREP
4105fi
4106
4107
4108fi
4109{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4110echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4111 GREP="$ac_cv_path_GREP"
4112
4113
4114{ echo "$as_me:$LINENO: checking for egrep" >&5
4115echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4116if test "${ac_cv_path_EGREP+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118else
4119 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4120 then ac_cv_path_EGREP="$GREP -E"
4121 else
4122 # Extract the first word of "egrep" to use in msg output
4123if test -z "$EGREP"; then
4124set dummy egrep; ac_prog_name=$2
4125if test "${ac_cv_path_EGREP+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 ac_path_EGREP_found=false
4129# Loop through the user's path and test for each of PROGNAME-LIST
4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4132do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_prog in egrep; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4138 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4139 # Check for GNU ac_path_EGREP and select it if it is found.
4140 # Check for GNU $ac_path_EGREP
4141case `"$ac_path_EGREP" --version 2>&1` in
4142*GNU*)
4143 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4144*)
4145 ac_count=0
4146 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4147 while :
4148 do
4149 cat "conftest.in" "conftest.in" >"conftest.tmp"
4150 mv "conftest.tmp" "conftest.in"
4151 cp "conftest.in" "conftest.nl"
4152 echo 'EGREP' >> "conftest.nl"
4153 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155 ac_count=`expr $ac_count + 1`
4156 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4157 # Best one so far, save it but keep looking for a better one
4158 ac_cv_path_EGREP="$ac_path_EGREP"
4159 ac_path_EGREP_max=$ac_count
4160 fi
4161 # 10*(2^10) chars as input seems more than enough
4162 test $ac_count -gt 10 && break
4163 done
4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165esac
4166
4167
4168 $ac_path_EGREP_found && break 3
4169 done
4170done
4171
4172done
4173IFS=$as_save_IFS
4174
4175
4176fi
4177
4178EGREP="$ac_cv_path_EGREP"
4179if test -z "$EGREP"; then
4180 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4181echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4182 { (exit 1); exit 1; }; }
4183fi
4184
4185else
4186 ac_cv_path_EGREP=$EGREP
4187fi
4188
4189
4190 fi
4191fi
4192{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4193echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4194 EGREP="$ac_cv_path_EGREP"
4195
4196
4197
4198# Check whether --with-gnu-ld was given.
4199if test "${with_gnu_ld+set}" = set; then
4200 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4201else
4202 with_gnu_ld=no
4203fi
4204
4205ac_prog=ld
4206if test "$GCC" = yes; then
4207 # Check if gcc -print-prog-name=ld gives a path.
4208 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4209echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4210 case $host in
4211 *-*-mingw*)
4212 # gcc leaves a trailing carriage return which upsets mingw
4213 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4214 *)
4215 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4216 esac
4217 case $ac_prog in
4218 # Accept absolute paths.
4219 [\\/]* | ?:[\\/]*)
4220 re_direlt='/[^/][^/]*/\.\./'
4221 # Canonicalize the pathname of ld
4222 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4223 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4224 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4225 done
4226 test -z "$LD" && LD="$ac_prog"
4227 ;;
4228 "")
4229 # If it fails, then pretend we aren't using GCC.
4230 ac_prog=ld
4231 ;;
4232 *)
4233 # If it is relative, then search for the first ld in PATH.
4234 with_gnu_ld=unknown
4235 ;;
4236 esac
4237elif test "$with_gnu_ld" = yes; then
4238 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4239echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4240else
4241 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4242echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4243fi
4244if test "${lt_cv_path_LD+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247 if test -z "$LD"; then
4248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4249 for ac_dir in $PATH; do
4250 IFS="$lt_save_ifs"
4251 test -z "$ac_dir" && ac_dir=.
4252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4253 lt_cv_path_LD="$ac_dir/$ac_prog"
4254 # Check to see if the program is GNU ld. I'd rather use --version,
4255 # but apparently some variants of GNU ld only accept -v.
4256 # Break only if it was the GNU/non-GNU ld that we prefer.
4257 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4258 *GNU* | *'with BFD'*)
4259 test "$with_gnu_ld" != no && break
4260 ;;
4261 *)
4262 test "$with_gnu_ld" != yes && break
4263 ;;
4264 esac
4265 fi
4266 done
4267 IFS="$lt_save_ifs"
4268else
4269 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4270fi
4271fi
4272
4273LD="$lt_cv_path_LD"
4274if test -n "$LD"; then
4275 { echo "$as_me:$LINENO: result: $LD" >&5
4276echo "${ECHO_T}$LD" >&6; }
4277else
4278 { echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6; }
4280fi
4281test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4282echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4283 { (exit 1); exit 1; }; }
4284{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4285echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4286if test "${lt_cv_prog_gnu_ld+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288else
4289 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4290case `$LD -v 2>&1 </dev/null` in
4291*GNU* | *'with BFD'*)
4292 lt_cv_prog_gnu_ld=yes
4293 ;;
4294*)
4295 lt_cv_prog_gnu_ld=no
4296 ;;
4297esac
4298fi
4299{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4300echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4301with_gnu_ld=$lt_cv_prog_gnu_ld
4302
4303
4304{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4305echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4306if test "${lt_cv_ld_reload_flag+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
4309 lt_cv_ld_reload_flag='-r'
4310fi
4311{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4312echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4313reload_flag=$lt_cv_ld_reload_flag
4314case $reload_flag in
4315"" | " "*) ;;
4316*) reload_flag=" $reload_flag" ;;
4317esac
4318reload_cmds='$LD$reload_flag -o $output$reload_objs'
4319case $host_os in
4320 darwin*)
4321 if test "$GCC" = yes; then
4322 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4323 else
4324 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4325 fi
4326 ;;
4327esac
4328
4329{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4330echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4331if test "${lt_cv_path_NM+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333else
4334 if test -n "$NM"; then
4335 # Let the user override the test.
4336 lt_cv_path_NM="$NM"
4337else
4338 lt_nm_to_check="${ac_tool_prefix}nm"
4339 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4340 lt_nm_to_check="$lt_nm_to_check nm"
4341 fi
4342 for lt_tmp_nm in $lt_nm_to_check; do
4343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4344 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4345 IFS="$lt_save_ifs"
4346 test -z "$ac_dir" && ac_dir=.
4347 tmp_nm="$ac_dir/$lt_tmp_nm"
4348 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4349 # Check to see if the nm accepts a BSD-compat flag.
4350 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4351 # nm: unknown option "B" ignored
4352 # Tru64's nm complains that /dev/null is an invalid object file
4353 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4354 */dev/null* | *'Invalid file or object type'*)
4355 lt_cv_path_NM="$tmp_nm -B"
4356 break
4357 ;;
4358 *)
4359 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4360 */dev/null*)
4361 lt_cv_path_NM="$tmp_nm -p"
4362 break
4363 ;;
4364 *)
4365 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4366 continue # so that we can try to find one that supports BSD flags
4367 ;;
4368 esac
4369 ;;
4370 esac
4371 fi
4372 done
4373 IFS="$lt_save_ifs"
4374 done
4375 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4376fi
4377fi
4378{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4379echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4380NM="$lt_cv_path_NM"
4381
4382{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4383echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4384LN_S=$as_ln_s
4385if test "$LN_S" = "ln -s"; then
4386 { echo "$as_me:$LINENO: result: yes" >&5
4387echo "${ECHO_T}yes" >&6; }
4388else
4389 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4390echo "${ECHO_T}no, using $LN_S" >&6; }
4391fi
4392
4393{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4394echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4395if test "${lt_cv_deplibs_check_method+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397else
4398 lt_cv_file_magic_cmd='$MAGIC_CMD'
4399lt_cv_file_magic_test_file=
4400lt_cv_deplibs_check_method='unknown'
4401# Need to set the preceding variable on all platforms that support
4402# interlibrary dependencies.
4403# 'none' -- dependencies not supported.
4404# `unknown' -- same as none, but documents that we really don't know.
4405# 'pass_all' -- all dependencies passed with no checks.
4406# 'test_compile' -- check by making test program.
4407# 'file_magic [[regex]]' -- check by looking for files in library path
4408# which responds to the $file_magic_cmd with a given extended regex.
4409# If you have `file' or equivalent on your system and you're not sure
4410# whether `pass_all' will *always* work, you probably want this one.
4411
4412case $host_os in
4413aix4* | aix5*)
4414 lt_cv_deplibs_check_method=pass_all
4415 ;;
4416
4417beos*)
4418 lt_cv_deplibs_check_method=pass_all
4419 ;;
4420
4421bsdi[45]*)
4422 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4423 lt_cv_file_magic_cmd='/usr/bin/file -L'
4424 lt_cv_file_magic_test_file=/shlib/libc.so
4425 ;;
4426
4427cygwin*)
4428 # func_win32_libid is a shell function defined in ltmain.sh
4429 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4430 lt_cv_file_magic_cmd='func_win32_libid'
4431 ;;
4432
4433mingw* | pw32*)
4434 # Base MSYS/MinGW do not provide the 'file' command needed by
4435 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4436 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4437 lt_cv_file_magic_cmd='$OBJDUMP -f'
4438 ;;
4439
4440darwin* | rhapsody*)
4441 lt_cv_deplibs_check_method=pass_all
4442 ;;
4443
4444freebsd* | dragonfly*)
4445 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4446 case $host_cpu in
4447 i*86 )
4448 # Not sure whether the presence of OpenBSD here was a mistake.
4449 # Let's accept both of them until this is cleared up.
4450 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4451 lt_cv_file_magic_cmd=/usr/bin/file
4452 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4453 ;;
4454 esac
4455 else
4456 lt_cv_deplibs_check_method=pass_all
4457 fi
4458 ;;
4459
4460gnu*)
4461 lt_cv_deplibs_check_method=pass_all
4462 ;;
4463
4464hpux10.20* | hpux11*)
4465 lt_cv_file_magic_cmd=/usr/bin/file
4466 case $host_cpu in
4467 ia64*)
4468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4469 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4470 ;;
4471 hppa*64*)
4472 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]'
4473 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4474 ;;
4475 *)
4476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4477 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4478 ;;
4479 esac
4480 ;;
4481
4482interix3*)
4483 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4485 ;;
4486
4487irix5* | irix6* | nonstopux*)
4488 case $LD in
4489 *-32|*"-32 ") libmagic=32-bit;;
4490 *-n32|*"-n32 ") libmagic=N32;;
4491 *-64|*"-64 ") libmagic=64-bit;;
4492 *) libmagic=never-match;;
4493 esac
4494 lt_cv_deplibs_check_method=pass_all
4495 ;;
4496
4497# This must be Linux ELF.
4498linux* | k*bsd*-gnu)
4499 lt_cv_deplibs_check_method=pass_all
4500 ;;
4501
4502netbsd* | netbsdelf*-gnu)
4503 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4505 else
4506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4507 fi
4508 ;;
4509
4510newos6*)
4511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4512 lt_cv_file_magic_cmd=/usr/bin/file
4513 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4514 ;;
4515
4516nto-qnx*)
4517 lt_cv_deplibs_check_method=unknown
4518 ;;
4519
4520openbsd*)
4521 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4523 else
4524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4525 fi
4526 ;;
4527
4528osf3* | osf4* | osf5*)
4529 lt_cv_deplibs_check_method=pass_all
4530 ;;
4531
4532solaris*)
4533 lt_cv_deplibs_check_method=pass_all
4534 ;;
4535
4536sysv4 | sysv4.3*)
4537 case $host_vendor in
4538 motorola)
4539 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]'
4540 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4541 ;;
4542 ncr)
4543 lt_cv_deplibs_check_method=pass_all
4544 ;;
4545 sequent)
4546 lt_cv_file_magic_cmd='/bin/file'
4547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4548 ;;
4549 sni)
4550 lt_cv_file_magic_cmd='/bin/file'
4551 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4552 lt_cv_file_magic_test_file=/lib/libc.so
4553 ;;
4554 siemens)
4555 lt_cv_deplibs_check_method=pass_all
4556 ;;
4557 pc)
4558 lt_cv_deplibs_check_method=pass_all
4559 ;;
4560 esac
4561 ;;
4562
4563sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4564 lt_cv_deplibs_check_method=pass_all
4565 ;;
4566esac
4567
4568fi
4569{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4570echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4571file_magic_cmd=$lt_cv_file_magic_cmd
4572deplibs_check_method=$lt_cv_deplibs_check_method
4573test -z "$deplibs_check_method" && deplibs_check_method=unknown
4574
4575
4576
4577
4578# If no C compiler was specified, use CC.
4579LTCC=${LTCC-"$CC"}
4580
4581# If no C compiler flags were specified, use CFLAGS.
4582LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4583
4584# Allow CC to be a program name with arguments.
4585compiler=$CC
4586
4587# Check whether --enable-libtool-lock was given.
4588if test "${enable_libtool_lock+set}" = set; then
4589 enableval=$enable_libtool_lock;
4590fi
4591
4592test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4593
4594# Some flags need to be propagated to the compiler or linker for good
4595# libtool support.
4596case $host in
4597ia64-*-hpux*)
4598 # Find out which ABI we are using.
4599 echo 'int i;' > conftest.$ac_ext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; then
4605 case `/usr/bin/file conftest.$ac_objext` in
4606 *ELF-32*)
4607 HPUX_IA64_MODE="32"
4608 ;;
4609 *ELF-64*)
4610 HPUX_IA64_MODE="64"
4611 ;;
4612 esac
4613 fi
4614 rm -rf conftest*
4615 ;;
4616*-*-irix6*)
4617 # Find out which ABI we are using.
4618 echo '#line 4618 "configure"' > conftest.$ac_ext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620 (eval $ac_compile) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; then
4624 if test "$lt_cv_prog_gnu_ld" = yes; then
4625 case `/usr/bin/file conftest.$ac_objext` in
4626 *32-bit*)
4627 LD="${LD-ld} -melf32bsmip"
4628 ;;
4629 *N32*)
4630 LD="${LD-ld} -melf32bmipn32"
4631 ;;
4632 *64-bit*)
4633 LD="${LD-ld} -melf64bmip"
4634 ;;
4635 esac
4636 else
4637 case `/usr/bin/file conftest.$ac_objext` in
4638 *32-bit*)
4639 LD="${LD-ld} -32"
4640 ;;
4641 *N32*)
4642 LD="${LD-ld} -n32"
4643 ;;
4644 *64-bit*)
4645 LD="${LD-ld} -64"
4646 ;;
4647 esac
4648 fi
4649 fi
4650 rm -rf conftest*
4651 ;;
4652
4653x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4654 # Find out which ABI we are using.
4655 echo 'int i;' > conftest.$ac_ext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657 (eval $ac_compile) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; then
4661 case `/usr/bin/file conftest.o` in
4662 *32-bit*)
4663 case $host in
4664 x86_64-*linux*)
4665 LD="${LD-ld} -m elf_i386"
4666 ;;
4667 ppc64-*linux*|powerpc64-*linux*)
4668 LD="${LD-ld} -m elf32ppclinux"
4669 ;;
4670 s390x-*linux*)
4671 LD="${LD-ld} -m elf_s390"
4672 ;;
4673 sparc64-*linux*)
4674 LD="${LD-ld} -m elf32_sparc"
4675 ;;
4676 esac
4677 ;;
4678 *64-bit*)
4679 case $host in
4680 x86_64-*linux*)
4681 LD="${LD-ld} -m elf_x86_64"
4682 ;;
4683 ppc*-*linux*|powerpc*-*linux*)
4684 LD="${LD-ld} -m elf64ppc"
4685 ;;
4686 s390*-*linux*)
4687 LD="${LD-ld} -m elf64_s390"
4688 ;;
4689 sparc*-*linux*)
4690 LD="${LD-ld} -m elf64_sparc"
4691 ;;
4692 esac
4693 ;;
4694 esac
4695 fi
4696 rm -rf conftest*
4697 ;;
4698
4699*-*-sco3.2v5*)
4700 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4701 SAVE_CFLAGS="$CFLAGS"
4702 CFLAGS="$CFLAGS -belf"
4703 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4704echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4705if test "${lt_cv_cc_needs_belf+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4707else
4708 ac_ext=c
4709ac_cpp='$CPP $CPPFLAGS'
4710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712ac_compiler_gnu=$ac_cv_c_compiler_gnu
4713
4714 cat >conftest.$ac_ext <<_ACEOF
4715/* confdefs.h. */
4716_ACEOF
4717cat confdefs.h >>conftest.$ac_ext
4718cat >>conftest.$ac_ext <<_ACEOF
4719/* end confdefs.h. */
4720
4721int
4722main ()
4723{
4724
4725 ;
4726 return 0;
4727}
4728_ACEOF
4729rm -f conftest.$ac_objext conftest$ac_exeext
4730if { (ac_try="$ac_link"
4731case "(($ac_try" in
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4734esac
4735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_link") 2>conftest.er1
4737 ac_status=$?
4738 grep -v '^ *+' conftest.er1 >conftest.err
4739 rm -f conftest.er1
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } &&
4743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4744 { (case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747esac
4748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749 (eval "$ac_try") 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest$ac_exeext'
4754 { (case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757esac
4758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_try") 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4763 lt_cv_cc_needs_belf=yes
4764else
4765 echo "$as_me: failed program was:" >&5
4766sed 's/^/| /' conftest.$ac_ext >&5
4767
4768 lt_cv_cc_needs_belf=no
4769fi
4770
4771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4772 conftest$ac_exeext conftest.$ac_ext
4773 ac_ext=c
4774ac_cpp='$CPP $CPPFLAGS'
4775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778
4779fi
4780{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4781echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4782 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4783 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4784 CFLAGS="$SAVE_CFLAGS"
4785 fi
4786 ;;
4787sparc*-*solaris*)
4788 # Find out which ABI we are using.
4789 echo 'int i;' > conftest.$ac_ext
4790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4791 (eval $ac_compile) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; then
4795 case `/usr/bin/file conftest.o` in
4796 *64-bit*)
4797 case $lt_cv_prog_gnu_ld in
4798 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4799 *) LD="${LD-ld} -64" ;;
4800 esac
4801 ;;
4802 esac
4803 fi
4804 rm -rf conftest*
4805 ;;
4806
4807*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4808 if test -n "$ac_tool_prefix"; then
4809 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4810set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816 if test -n "$DLLTOOL"; then
4817 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4818else
4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820for as_dir in $PATH
4821do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830done
4831done
4832IFS=$as_save_IFS
4833
4834fi
4835fi
4836DLLTOOL=$ac_cv_prog_DLLTOOL
4837if test -n "$DLLTOOL"; then
4838 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4839echo "${ECHO_T}$DLLTOOL" >&6; }
4840else
4841 { echo "$as_me:$LINENO: result: no" >&5
4842echo "${ECHO_T}no" >&6; }
4843fi
4844
4845
4846fi
4847if test -z "$ac_cv_prog_DLLTOOL"; then
4848 ac_ct_DLLTOOL=$DLLTOOL
4849 # Extract the first word of "dlltool", so it can be a program name with args.
4850set dummy dlltool; ac_word=$2
4851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856 if test -n "$ac_ct_DLLTOOL"; then
4857 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870done
4871done
4872IFS=$as_save_IFS
4873
4874fi
4875fi
4876ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4877if test -n "$ac_ct_DLLTOOL"; then
4878 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4879echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4880else
4881 { echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6; }
4883fi
4884
4885 if test "x$ac_ct_DLLTOOL" = x; then
4886 DLLTOOL="false"
4887 else
4888 case $cross_compiling:$ac_tool_warned in
4889yes:)
4890{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4891whose name does not start with the host triplet. If you think this
4892configuration is useful to you, please write to autoconf@gnu.org." >&5
4893echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4894whose name does not start with the host triplet. If you think this
4895configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4896ac_tool_warned=yes ;;
4897esac
4898 DLLTOOL=$ac_ct_DLLTOOL
4899 fi
4900else
4901 DLLTOOL="$ac_cv_prog_DLLTOOL"
4902fi
4903
4904 if test -n "$ac_tool_prefix"; then
4905 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4906set dummy ${ac_tool_prefix}as; ac_word=$2
4907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909if test "${ac_cv_prog_AS+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912 if test -n "$AS"; then
4913 ac_cv_prog_AS="$AS" # Let the user override the test.
4914else
4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_AS="${ac_tool_prefix}as"
4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4925 fi
4926done
4927done
4928IFS=$as_save_IFS
4929
4930fi
4931fi
4932AS=$ac_cv_prog_AS
4933if test -n "$AS"; then
4934 { echo "$as_me:$LINENO: result: $AS" >&5
4935echo "${ECHO_T}$AS" >&6; }
4936else
4937 { echo "$as_me:$LINENO: result: no" >&5
4938echo "${ECHO_T}no" >&6; }
4939fi
4940
4941
4942fi
4943if test -z "$ac_cv_prog_AS"; then
4944 ac_ct_AS=$AS
4945 # Extract the first word of "as", so it can be a program name with args.
4946set dummy as; ac_word=$2
4947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4949if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951else
4952 if test -n "$ac_ct_AS"; then
4953 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4954else
4955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH
4957do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_ac_ct_AS="as"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966done
4967done
4968IFS=$as_save_IFS
4969
4970fi
4971fi
4972ac_ct_AS=$ac_cv_prog_ac_ct_AS
4973if test -n "$ac_ct_AS"; then
4974 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4975echo "${ECHO_T}$ac_ct_AS" >&6; }
4976else
4977 { echo "$as_me:$LINENO: result: no" >&5
4978echo "${ECHO_T}no" >&6; }
4979fi
4980
4981 if test "x$ac_ct_AS" = x; then
4982 AS="false"
4983 else
4984 case $cross_compiling:$ac_tool_warned in
4985yes:)
4986{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4987whose name does not start with the host triplet. If you think this
4988configuration is useful to you, please write to autoconf@gnu.org." >&5
4989echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4990whose name does not start with the host triplet. If you think this
4991configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4992ac_tool_warned=yes ;;
4993esac
4994 AS=$ac_ct_AS
4995 fi
4996else
4997 AS="$ac_cv_prog_AS"
4998fi
4999
5000 if test -n "$ac_tool_prefix"; then
5001 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5002set dummy ${ac_tool_prefix}objdump; ac_word=$2
5003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5005if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007else
5008 if test -n "$OBJDUMP"; then
5009 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5010else
5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH
5013do
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5021 fi
5022done
5023done
5024IFS=$as_save_IFS
5025
5026fi
5027fi
5028OBJDUMP=$ac_cv_prog_OBJDUMP
5029if test -n "$OBJDUMP"; then
5030 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5031echo "${ECHO_T}$OBJDUMP" >&6; }
5032else
5033 { echo "$as_me:$LINENO: result: no" >&5
5034echo "${ECHO_T}no" >&6; }
5035fi
5036
5037
5038fi
5039if test -z "$ac_cv_prog_OBJDUMP"; then
5040 ac_ct_OBJDUMP=$OBJDUMP
5041 # Extract the first word of "objdump", so it can be a program name with args.
5042set dummy objdump; ac_word=$2
5043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5045if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048 if test -n "$ac_ct_OBJDUMP"; then
5049 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5050else
5051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052for as_dir in $PATH
5053do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5061 fi
5062done
5063done
5064IFS=$as_save_IFS
5065
5066fi
5067fi
5068ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5069if test -n "$ac_ct_OBJDUMP"; then
5070 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5071echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5072else
5073 { echo "$as_me:$LINENO: result: no" >&5
5074echo "${ECHO_T}no" >&6; }
5075fi
5076
5077 if test "x$ac_ct_OBJDUMP" = x; then
5078 OBJDUMP="false"
5079 else
5080 case $cross_compiling:$ac_tool_warned in
5081yes:)
5082{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5083whose name does not start with the host triplet. If you think this
5084configuration is useful to you, please write to autoconf@gnu.org." >&5
5085echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5086whose name does not start with the host triplet. If you think this
5087configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5088ac_tool_warned=yes ;;
5089esac
5090 OBJDUMP=$ac_ct_OBJDUMP
5091 fi
5092else
5093 OBJDUMP="$ac_cv_prog_OBJDUMP"
5094fi
5095
5096 ;;
5097
5098esac
5099
5100need_locks="$enable_libtool_lock"
5101
5102
5103ac_ext=c
5104ac_cpp='$CPP $CPPFLAGS'
5105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5109echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5110# On Suns, sometimes $CPP names a directory.
5111if test -n "$CPP" && test -d "$CPP"; then
5112 CPP=
5113fi
5114if test -z "$CPP"; then
5115 if test "${ac_cv_prog_CPP+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117else
5118 # Double quotes because CPP needs to be expanded
5119 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5120 do
5121 ac_preproc_ok=false
5122for ac_c_preproc_warn_flag in '' yes
5123do
5124 # Use a header file that comes with gcc, so configuring glibc
5125 # with a fresh cross-compiler works.
5126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5127 # <limits.h> exists even on freestanding compilers.
5128 # On the NeXT, cc -E runs the code through the compiler's parser,
5129 # not just through cpp. "Syntax error" is here to catch this case.
5130 cat >conftest.$ac_ext <<_ACEOF
5131/* confdefs.h. */
5132_ACEOF
5133cat confdefs.h >>conftest.$ac_ext
5134cat >>conftest.$ac_ext <<_ACEOF
5135/* end confdefs.h. */
5136#ifdef __STDC__
5137# include <limits.h>
5138#else
5139# include <assert.h>
5140#endif
5141 Syntax error
5142_ACEOF
5143if { (ac_try="$ac_cpp conftest.$ac_ext"
5144case "(($ac_try" in
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5147esac
5148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5150 ac_status=$?
5151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } >/dev/null; then
5156 if test -s conftest.err; then
5157 ac_cpp_err=$ac_c_preproc_warn_flag
5158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5159 else
5160 ac_cpp_err=
5161 fi
5162else
5163 ac_cpp_err=yes
5164fi
5165if test -z "$ac_cpp_err"; then
5166 :
5167else
5168 echo "$as_me: failed program was:" >&5
5169sed 's/^/| /' conftest.$ac_ext >&5
5170
5171 # Broken: fails on valid input.
5172continue
5173fi
5174
5175rm -f conftest.err conftest.$ac_ext
5176
5177 # OK, works on sane cases. Now check whether nonexistent headers
5178 # can be detected and how.
5179 cat >conftest.$ac_ext <<_ACEOF
5180/* confdefs.h. */
5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h. */
5185#include <ac_nonexistent.h>
5186_ACEOF
5187if { (ac_try="$ac_cpp conftest.$ac_ext"
5188case "(($ac_try" in
5189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190 *) ac_try_echo=$ac_try;;
5191esac
5192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5194 ac_status=$?
5195 grep -v '^ *+' conftest.er1 >conftest.err
5196 rm -f conftest.er1
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } >/dev/null; then
5200 if test -s conftest.err; then
5201 ac_cpp_err=$ac_c_preproc_warn_flag
5202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5203 else
5204 ac_cpp_err=
5205 fi
5206else
5207 ac_cpp_err=yes
5208fi
5209if test -z "$ac_cpp_err"; then
5210 # Broken: success on invalid input.
5211continue
5212else
5213 echo "$as_me: failed program was:" >&5
5214sed 's/^/| /' conftest.$ac_ext >&5
5215
5216 # Passes both tests.
5217ac_preproc_ok=:
5218break
5219fi
5220
5221rm -f conftest.err conftest.$ac_ext
5222
5223done
5224# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5225rm -f conftest.err conftest.$ac_ext
5226if $ac_preproc_ok; then
5227 break
5228fi
5229
5230 done
5231 ac_cv_prog_CPP=$CPP
5232
5233fi
5234 CPP=$ac_cv_prog_CPP
5235else
5236 ac_cv_prog_CPP=$CPP
5237fi
5238{ echo "$as_me:$LINENO: result: $CPP" >&5
5239echo "${ECHO_T}$CPP" >&6; }
5240ac_preproc_ok=false
5241for ac_c_preproc_warn_flag in '' yes
5242do
5243 # Use a header file that comes with gcc, so configuring glibc
5244 # with a fresh cross-compiler works.
5245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5246 # <limits.h> exists even on freestanding compilers.
5247 # On the NeXT, cc -E runs the code through the compiler's parser,
5248 # not just through cpp. "Syntax error" is here to catch this case.
5249 cat >conftest.$ac_ext <<_ACEOF
5250/* confdefs.h. */
5251_ACEOF
5252cat confdefs.h >>conftest.$ac_ext
5253cat >>conftest.$ac_ext <<_ACEOF
5254/* end confdefs.h. */
5255#ifdef __STDC__
5256# include <limits.h>
5257#else
5258# include <assert.h>
5259#endif
5260 Syntax error
5261_ACEOF
5262if { (ac_try="$ac_cpp conftest.$ac_ext"
5263case "(($ac_try" in
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5266esac
5267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5269 ac_status=$?
5270 grep -v '^ *+' conftest.er1 >conftest.err
5271 rm -f conftest.er1
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } >/dev/null; then
5275 if test -s conftest.err; then
5276 ac_cpp_err=$ac_c_preproc_warn_flag
5277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5278 else
5279 ac_cpp_err=
5280 fi
5281else
5282 ac_cpp_err=yes
5283fi
5284if test -z "$ac_cpp_err"; then
5285 :
5286else
5287 echo "$as_me: failed program was:" >&5
5288sed 's/^/| /' conftest.$ac_ext >&5
5289
5290 # Broken: fails on valid input.
5291continue
5292fi
5293
5294rm -f conftest.err conftest.$ac_ext
5295
5296 # OK, works on sane cases. Now check whether nonexistent headers
5297 # can be detected and how.
5298 cat >conftest.$ac_ext <<_ACEOF
5299/* confdefs.h. */
5300_ACEOF
5301cat confdefs.h >>conftest.$ac_ext
5302cat >>conftest.$ac_ext <<_ACEOF
5303/* end confdefs.h. */
5304#include <ac_nonexistent.h>
5305_ACEOF
5306if { (ac_try="$ac_cpp conftest.$ac_ext"
5307case "(($ac_try" in
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5310esac
5311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } >/dev/null; then
5319 if test -s conftest.err; then
5320 ac_cpp_err=$ac_c_preproc_warn_flag
5321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5322 else
5323 ac_cpp_err=
5324 fi
5325else
5326 ac_cpp_err=yes
5327fi
5328if test -z "$ac_cpp_err"; then
5329 # Broken: success on invalid input.
5330continue
5331else
5332 echo "$as_me: failed program was:" >&5
5333sed 's/^/| /' conftest.$ac_ext >&5
5334
5335 # Passes both tests.
5336ac_preproc_ok=:
5337break
5338fi
5339
5340rm -f conftest.err conftest.$ac_ext
5341
5342done
5343# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5344rm -f conftest.err conftest.$ac_ext
5345if $ac_preproc_ok; then
5346 :
5347else
5348 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5349See \`config.log' for more details." >&5
5350echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5351See \`config.log' for more details." >&2;}
5352 { (exit 1); exit 1; }; }
5353fi
5354
5355ac_ext=c
5356ac_cpp='$CPP $CPPFLAGS'
5357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360
5361
5362{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5363echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5364if test "${ac_cv_header_stdc+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367 cat >conftest.$ac_ext <<_ACEOF
5368/* confdefs.h. */
5369_ACEOF
5370cat confdefs.h >>conftest.$ac_ext
5371cat >>conftest.$ac_ext <<_ACEOF
5372/* end confdefs.h. */
5373#include <stdlib.h>
5374#include <stdarg.h>
5375#include <string.h>
5376#include <float.h>
5377
5378int
5379main ()
5380{
5381
5382 ;
5383 return 0;
5384}
5385_ACEOF
5386rm -f conftest.$ac_objext
5387if { (ac_try="$ac_compile"
5388case "(($ac_try" in
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5391esac
5392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_compile") 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5401 { (case "(($ac_try" in
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5404esac
5405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5406 (eval "$ac_try") 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; } &&
5410 { ac_try='test -s conftest.$ac_objext'
5411 { (case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414esac
5415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_try") 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_header_stdc=yes
5421else
5422 echo "$as_me: failed program was:" >&5
5423sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 ac_cv_header_stdc=no
5426fi
5427
5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429
5430if test $ac_cv_header_stdc = yes; then
5431 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5432 cat >conftest.$ac_ext <<_ACEOF
5433/* confdefs.h. */
5434_ACEOF
5435cat confdefs.h >>conftest.$ac_ext
5436cat >>conftest.$ac_ext <<_ACEOF
5437/* end confdefs.h. */
5438#include <string.h>
5439
5440_ACEOF
5441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5442 $EGREP "memchr" >/dev/null 2>&1; then
5443 :
5444else
5445 ac_cv_header_stdc=no
5446fi
5447rm -f conftest*
5448
5449fi
5450
5451if test $ac_cv_header_stdc = yes; then
5452 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5453 cat >conftest.$ac_ext <<_ACEOF
5454/* confdefs.h. */
5455_ACEOF
5456cat confdefs.h >>conftest.$ac_ext
5457cat >>conftest.$ac_ext <<_ACEOF
5458/* end confdefs.h. */
5459#include <stdlib.h>
5460
5461_ACEOF
5462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5463 $EGREP "free" >/dev/null 2>&1; then
5464 :
5465else
5466 ac_cv_header_stdc=no
5467fi
5468rm -f conftest*
5469
5470fi
5471
5472if test $ac_cv_header_stdc = yes; then
5473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5474 if test "$cross_compiling" = yes; then
5475 :
5476else
5477 cat >conftest.$ac_ext <<_ACEOF
5478/* confdefs.h. */
5479_ACEOF
5480cat confdefs.h >>conftest.$ac_ext
5481cat >>conftest.$ac_ext <<_ACEOF
5482/* end confdefs.h. */
5483#include <ctype.h>
5484#include <stdlib.h>
5485#if ((' ' & 0x0FF) == 0x020)
5486# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5487# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5488#else
5489# define ISLOWER(c) \
5490 (('a' <= (c) && (c) <= 'i') \
5491 || ('j' <= (c) && (c) <= 'r') \
5492 || ('s' <= (c) && (c) <= 'z'))
5493# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5494#endif
5495
5496#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5497int
5498main ()
5499{
5500 int i;
5501 for (i = 0; i < 256; i++)
5502 if (XOR (islower (i), ISLOWER (i))
5503 || toupper (i) != TOUPPER (i))
5504 return 2;
5505 return 0;
5506}
5507_ACEOF
5508rm -f conftest$ac_exeext
5509if { (ac_try="$ac_link"
5510case "(($ac_try" in
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5513esac
5514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_link") 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5519 { (case "(($ac_try" in
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5522esac
5523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_try") 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; }; then
5528 :
5529else
5530 echo "$as_me: program exited with status $ac_status" >&5
5531echo "$as_me: failed program was:" >&5
5532sed 's/^/| /' conftest.$ac_ext >&5
5533
5534( exit $ac_status )
5535ac_cv_header_stdc=no
5536fi
5537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5538fi
5539
5540
5541fi
5542fi
5543{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5544echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5545if test $ac_cv_header_stdc = yes; then
5546
5547cat >>confdefs.h <<\_ACEOF
5548#define STDC_HEADERS 1
5549_ACEOF
5550
5551fi
5552
5553# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5564 inttypes.h stdint.h unistd.h
5565do
5566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5567{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571else
5572 cat >conftest.$ac_ext <<_ACEOF
5573/* confdefs.h. */
5574_ACEOF
5575cat confdefs.h >>conftest.$ac_ext
5576cat >>conftest.$ac_ext <<_ACEOF
5577/* end confdefs.h. */
5578$ac_includes_default
5579
5580#include <$ac_header>
5581_ACEOF
5582rm -f conftest.$ac_objext
5583if { (ac_try="$ac_compile"
5584case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587esac
5588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_compile") 2>conftest.er1
5590 ac_status=$?
5591 grep -v '^ *+' conftest.er1 >conftest.err
5592 rm -f conftest.er1
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5597 { (case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600esac
5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_try") 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest.$ac_objext'
5607 { (case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610esac
5611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_try") 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 eval "$as_ac_Header=yes"
5617else
5618 echo "$as_me: failed program was:" >&5
5619sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 eval "$as_ac_Header=no"
5622fi
5623
5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625fi
5626ac_res=`eval echo '${'$as_ac_Header'}'`
5627 { echo "$as_me:$LINENO: result: $ac_res" >&5
5628echo "${ECHO_T}$ac_res" >&6; }
5629if test `eval echo '${'$as_ac_Header'}'` = yes; then
5630 cat >>confdefs.h <<_ACEOF
5631#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5632_ACEOF
5633
5634fi
5635
5636done
5637
5638
5639
5640for ac_header in dlfcn.h
5641do
5642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648fi
5649ac_res=`eval echo '${'$as_ac_Header'}'`
5650 { echo "$as_me:$LINENO: result: $ac_res" >&5
5651echo "${ECHO_T}$ac_res" >&6; }
5652else
5653 # Is the header compilable?
5654{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5656cat >conftest.$ac_ext <<_ACEOF
5657/* confdefs.h. */
5658_ACEOF
5659cat confdefs.h >>conftest.$ac_ext
5660cat >>conftest.$ac_ext <<_ACEOF
5661/* end confdefs.h. */
5662$ac_includes_default
5663#include <$ac_header>
5664_ACEOF
5665rm -f conftest.$ac_objext
5666if { (ac_try="$ac_compile"
5667case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670esac
5671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5680 { (case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683esac
5684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_try") 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; } &&
5689 { ac_try='test -s conftest.$ac_objext'
5690 { (case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693esac
5694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_try") 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 ac_header_compiler=yes
5700else
5701 echo "$as_me: failed program was:" >&5
5702sed 's/^/| /' conftest.$ac_ext >&5
5703
5704 ac_header_compiler=no
5705fi
5706
5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5709echo "${ECHO_T}$ac_header_compiler" >&6; }
5710
5711# Is the header present?
5712{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5713echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5714cat >conftest.$ac_ext <<_ACEOF
5715/* confdefs.h. */
5716_ACEOF
5717cat confdefs.h >>conftest.$ac_ext
5718cat >>conftest.$ac_ext <<_ACEOF
5719/* end confdefs.h. */
5720#include <$ac_header>
5721_ACEOF
5722if { (ac_try="$ac_cpp conftest.$ac_ext"
5723case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726esac
5727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } >/dev/null; then
5735 if test -s conftest.err; then
5736 ac_cpp_err=$ac_c_preproc_warn_flag
5737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5738 else
5739 ac_cpp_err=
5740 fi
5741else
5742 ac_cpp_err=yes
5743fi
5744if test -z "$ac_cpp_err"; then
5745 ac_header_preproc=yes
5746else
5747 echo "$as_me: failed program was:" >&5
5748sed 's/^/| /' conftest.$ac_ext >&5
5749
5750 ac_header_preproc=no
5751fi
5752
5753rm -f conftest.err conftest.$ac_ext
5754{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5755echo "${ECHO_T}$ac_header_preproc" >&6; }
5756
5757# So? What about this header?
5758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5759 yes:no: )
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5764 ac_header_preproc=yes
5765 ;;
5766 no:yes:* )
5767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5770echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5774echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5779 ( cat <<\_ASBOX
5780## ---------------------------------- ##
5781## Report this to bug-libtool@gnu.org ##
5782## ---------------------------------- ##
5783_ASBOX
5784 ) | sed "s/^/$as_me: WARNING: /" >&2
5785 ;;
5786esac
5787{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791else
5792 eval "$as_ac_Header=\$ac_header_preproc"
5793fi
5794ac_res=`eval echo '${'$as_ac_Header'}'`
5795 { echo "$as_me:$LINENO: result: $ac_res" >&5
5796echo "${ECHO_T}$ac_res" >&6; }
5797
5798fi
5799if test `eval echo '${'$as_ac_Header'}'` = yes; then
5800 cat >>confdefs.h <<_ACEOF
5801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5802_ACEOF
5803
5804fi
5805
5806done
5807
5808ac_ext=cpp
5809ac_cpp='$CXXCPP $CPPFLAGS'
5810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5813if test -z "$CXX"; then
5814 if test -n "$CCC"; then
5815 CXX=$CCC
5816 else
5817 if test -n "$ac_tool_prefix"; then
5818 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5819 do
5820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5821set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824if test "${ac_cv_prog_CXX+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
5827 if test -n "$CXX"; then
5828 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5829else
5830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5837 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 break 2
5840 fi
5841done
5842done
5843IFS=$as_save_IFS
5844
5845fi
5846fi
5847CXX=$ac_cv_prog_CXX
5848if test -n "$CXX"; then
5849 { echo "$as_me:$LINENO: result: $CXX" >&5
5850echo "${ECHO_T}$CXX" >&6; }
5851else
5852 { echo "$as_me:$LINENO: result: no" >&5
5853echo "${ECHO_T}no" >&6; }
5854fi
5855
5856
5857 test -n "$CXX" && break
5858 done
5859fi
5860if test -z "$CXX"; then
5861 ac_ct_CXX=$CXX
5862 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5863do
5864 # Extract the first word of "$ac_prog", so it can be a program name with args.
5865set dummy $ac_prog; ac_word=$2
5866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5868if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870else
5871 if test -n "$ac_ct_CXX"; then
5872 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5873else
5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_prog_ac_ct_CXX="$ac_prog"
5882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885done
5886done
5887IFS=$as_save_IFS
5888
5889fi
5890fi
5891ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5892if test -n "$ac_ct_CXX"; then
5893 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5894echo "${ECHO_T}$ac_ct_CXX" >&6; }
5895else
5896 { echo "$as_me:$LINENO: result: no" >&5
5897echo "${ECHO_T}no" >&6; }
5898fi
5899
5900
5901 test -n "$ac_ct_CXX" && break
5902done
5903
5904 if test "x$ac_ct_CXX" = x; then
5905 CXX="g++"
5906 else
5907 case $cross_compiling:$ac_tool_warned in
5908yes:)
5909{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5910whose name does not start with the host triplet. If you think this
5911configuration is useful to you, please write to autoconf@gnu.org." >&5
5912echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5913whose name does not start with the host triplet. If you think this
5914configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5915ac_tool_warned=yes ;;
5916esac
5917 CXX=$ac_ct_CXX
5918 fi
5919fi
5920
5921 fi
5922fi
5923# Provide some information about the compiler.
5924echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5925ac_compiler=`set X $ac_compile; echo $2`
5926{ (ac_try="$ac_compiler --version >&5"
5927case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930esac
5931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_compiler --version >&5") 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }
5936{ (ac_try="$ac_compiler -v >&5"
5937case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940esac
5941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_compiler -v >&5") 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }
5946{ (ac_try="$ac_compiler -V >&5"
5947case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950esac
5951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_compiler -V >&5") 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }
5956
5957{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5958echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5959if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962 cat >conftest.$ac_ext <<_ACEOF
5963/* confdefs.h. */
5964_ACEOF
5965cat confdefs.h >>conftest.$ac_ext
5966cat >>conftest.$ac_ext <<_ACEOF
5967/* end confdefs.h. */
5968
5969int
5970main ()
5971{
5972#ifndef __GNUC__
5973 choke me
5974#endif
5975
5976 ;
5977 return 0;
5978}
5979_ACEOF
5980rm -f conftest.$ac_objext
5981if { (ac_try="$ac_compile"
5982case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985esac
5986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_compile") 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5995 { (case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998esac
5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_try") 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; } &&
6004 { ac_try='test -s conftest.$ac_objext'
6005 { (case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008esac
6009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_try") 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 ac_compiler_gnu=yes
6015else
6016 echo "$as_me: failed program was:" >&5
6017sed 's/^/| /' conftest.$ac_ext >&5
6018
6019 ac_compiler_gnu=no
6020fi
6021
6022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6024
6025fi
6026{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6027echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6028GXX=`test $ac_compiler_gnu = yes && echo yes`
6029ac_test_CXXFLAGS=${CXXFLAGS+set}
6030ac_save_CXXFLAGS=$CXXFLAGS
6031{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6032echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6033if test "${ac_cv_prog_cxx_g+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035else
6036 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6037 ac_cxx_werror_flag=yes
6038 ac_cv_prog_cxx_g=no
6039 CXXFLAGS="-g"
6040 cat >conftest.$ac_ext <<_ACEOF
6041/* confdefs.h. */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h. */
6046
6047int
6048main ()
6049{
6050
6051 ;
6052 return 0;
6053}
6054_ACEOF
6055rm -f conftest.$ac_objext
6056if { (ac_try="$ac_compile"
6057case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6060esac
6061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_compile") 2>conftest.er1
6063 ac_status=$?
6064 grep -v '^ *+' conftest.er1 >conftest.err
6065 rm -f conftest.er1
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } &&
6069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6070 { (case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073esac
6074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_try") 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try='test -s conftest.$ac_objext'
6080 { (case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083esac
6084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_try") 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
6089 ac_cv_prog_cxx_g=yes
6090else
6091 echo "$as_me: failed program was:" >&5
6092sed 's/^/| /' conftest.$ac_ext >&5
6093
6094 CXXFLAGS=""
6095 cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h. */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h. */
6101
6102int
6103main ()
6104{
6105
6106 ;
6107 return 0;
6108}
6109_ACEOF
6110rm -f conftest.$ac_objext
6111if { (ac_try="$ac_compile"
6112case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115esac
6116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_compile") 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6125 { (case "(($ac_try" in
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6128esac
6129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130 (eval "$ac_try") 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; } &&
6134 { ac_try='test -s conftest.$ac_objext'
6135 { (case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138esac
6139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_try") 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 :
6145else
6146 echo "$as_me: failed program was:" >&5
6147sed 's/^/| /' conftest.$ac_ext >&5
6148
6149 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6150 CXXFLAGS="-g"
6151 cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h. */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h. */
6157
6158int
6159main ()
6160{
6161
6162 ;
6163 return 0;
6164}
6165_ACEOF
6166rm -f conftest.$ac_objext
6167if { (ac_try="$ac_compile"
6168case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171esac
6172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_compile") 2>conftest.er1
6174 ac_status=$?
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6181 { (case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184esac
6185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_try") 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest.$ac_objext'
6191 { (case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194esac
6195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_try") 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_prog_cxx_g=yes
6201else
6202 echo "$as_me: failed program was:" >&5
6203sed 's/^/| /' conftest.$ac_ext >&5
6204
6205
6206fi
6207
6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209fi
6210
6211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212fi
6213
6214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6216fi
6217{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6218echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6219if test "$ac_test_CXXFLAGS" = set; then
6220 CXXFLAGS=$ac_save_CXXFLAGS
6221elif test $ac_cv_prog_cxx_g = yes; then
6222 if test "$GXX" = yes; then
6223 CXXFLAGS="-g -O2"
6224 else
6225 CXXFLAGS="-g"
6226 fi
6227else
6228 if test "$GXX" = yes; then
6229 CXXFLAGS="-O2"
6230 else
6231 CXXFLAGS=
6232 fi
6233fi
6234ac_ext=cpp
6235ac_cpp='$CXXCPP $CPPFLAGS'
6236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6239
6240depcc="$CXX" am_compiler_list=
6241
6242{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6243echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6244if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246else
6247 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6248 # We make a subdir and do the tests there. Otherwise we can end up
6249 # making bogus files that we don't know about and never remove. For
6250 # instance it was reported that on HP-UX the gcc test will end up
6251 # making a dummy file named `D' -- because `-MD' means `put the output
6252 # in D'.
6253 mkdir conftest.dir
6254 # Copy depcomp to subdir because otherwise we won't find it if we're
6255 # using a relative directory.
6256 cp "$am_depcomp" conftest.dir
6257 cd conftest.dir
6258 # We will build objects and dependencies in a subdirectory because
6259 # it helps to detect inapplicable dependency modes. For instance
6260 # both Tru64's cc and ICC support -MD to output dependencies as a
6261 # side effect of compilation, but ICC will put the dependencies in
6262 # the current directory while Tru64 will put them in the object
6263 # directory.
6264 mkdir sub
6265
6266 am_cv_CXX_dependencies_compiler_type=none
6267 if test "$am_compiler_list" = ""; then
6268 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6269 fi
6270 for depmode in $am_compiler_list; do
6271 # Setup a source with many dependencies, because some compilers
6272 # like to wrap large dependency lists on column 80 (with \), and
6273 # we should not choose a depcomp mode which is confused by this.
6274 #
6275 # We need to recreate these files for each test, as the compiler may
6276 # overwrite some of them when testing with obscure command lines.
6277 # This happens at least with the AIX C compiler.
6278 : > sub/conftest.c
6279 for i in 1 2 3 4 5 6; do
6280 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6281 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6282 # Solaris 8's {/usr,}/bin/sh.
6283 touch sub/conftst$i.h
6284 done
6285 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6286
6287 case $depmode in
6288 nosideeffect)
6289 # after this tag, mechanisms are not by side-effect, so they'll
6290 # only be used when explicitly requested
6291 if test "x$enable_dependency_tracking" = xyes; then
6292 continue
6293 else
6294 break
6295 fi
6296 ;;
6297 none) break ;;
6298 esac
6299 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6300 # mode. It turns out that the SunPro C++ compiler does not properly
6301 # handle `-M -o', and we need to detect this.
6302 if depmode=$depmode \
6303 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6304 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6305 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6306 >/dev/null 2>conftest.err &&
6307 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6308 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6309 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6310 # icc doesn't choke on unknown options, it will just issue warnings
6311 # or remarks (even with -Werror). So we grep stderr for any message
6312 # that says an option was ignored or not supported.
6313 # When given -MP, icc 7.0 and 7.1 complain thusly:
6314 # icc: Command line warning: ignoring option '-M'; no argument required
6315 # The diagnosis changed in icc 8.0:
6316 # icc: Command line remark: option '-MP' not supported
6317 if (grep 'ignoring option' conftest.err ||
6318 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6319 am_cv_CXX_dependencies_compiler_type=$depmode
6320 break
6321 fi
6322 fi
6323 done
6324
6325 cd ..
6326 rm -rf conftest.dir
6327else
6328 am_cv_CXX_dependencies_compiler_type=none
6329fi
6330
6331fi
6332{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6333echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6334CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6335
6336
6337
6338if
6339 test "x$enable_dependency_tracking" != xno \
6340 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6341 am__fastdepCXX_TRUE=
6342 am__fastdepCXX_FALSE='#'
6343else
6344 am__fastdepCXX_TRUE='#'
6345 am__fastdepCXX_FALSE=
6346fi
6347
6348
6349
6350
6351if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6352 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6353 (test "X$CXX" != "Xg++"))) ; then
6354 ac_ext=cpp
6355ac_cpp='$CXXCPP $CPPFLAGS'
6356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6359{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6360echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6361if test -z "$CXXCPP"; then
6362 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364else
6365 # Double quotes because CXXCPP needs to be expanded
6366 for CXXCPP in "$CXX -E" "/lib/cpp"
6367 do
6368 ac_preproc_ok=false
6369for ac_cxx_preproc_warn_flag in '' yes
6370do
6371 # Use a header file that comes with gcc, so configuring glibc
6372 # with a fresh cross-compiler works.
6373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6374 # <limits.h> exists even on freestanding compilers.
6375 # On the NeXT, cc -E runs the code through the compiler's parser,
6376 # not just through cpp. "Syntax error" is here to catch this case.
6377 cat >conftest.$ac_ext <<_ACEOF
6378/* confdefs.h. */
6379_ACEOF
6380cat confdefs.h >>conftest.$ac_ext
6381cat >>conftest.$ac_ext <<_ACEOF
6382/* end confdefs.h. */
6383#ifdef __STDC__
6384# include <limits.h>
6385#else
6386# include <assert.h>
6387#endif
6388 Syntax error
6389_ACEOF
6390if { (ac_try="$ac_cpp conftest.$ac_ext"
6391case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6394esac
6395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6397 ac_status=$?
6398 grep -v '^ *+' conftest.er1 >conftest.err
6399 rm -f conftest.er1
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } >/dev/null; then
6403 if test -s conftest.err; then
6404 ac_cpp_err=$ac_cxx_preproc_warn_flag
6405 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6406 else
6407 ac_cpp_err=
6408 fi
6409else
6410 ac_cpp_err=yes
6411fi
6412if test -z "$ac_cpp_err"; then
6413 :
6414else
6415 echo "$as_me: failed program was:" >&5
6416sed 's/^/| /' conftest.$ac_ext >&5
6417
6418 # Broken: fails on valid input.
6419continue
6420fi
6421
6422rm -f conftest.err conftest.$ac_ext
6423
6424 # OK, works on sane cases. Now check whether nonexistent headers
6425 # can be detected and how.
6426 cat >conftest.$ac_ext <<_ACEOF
6427/* confdefs.h. */
6428_ACEOF
6429cat confdefs.h >>conftest.$ac_ext
6430cat >>conftest.$ac_ext <<_ACEOF
6431/* end confdefs.h. */
6432#include <ac_nonexistent.h>
6433_ACEOF
6434if { (ac_try="$ac_cpp conftest.$ac_ext"
6435case "(($ac_try" in
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6438esac
6439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } >/dev/null; then
6447 if test -s conftest.err; then
6448 ac_cpp_err=$ac_cxx_preproc_warn_flag
6449 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6450 else
6451 ac_cpp_err=
6452 fi
6453else
6454 ac_cpp_err=yes
6455fi
6456if test -z "$ac_cpp_err"; then
6457 # Broken: success on invalid input.
6458continue
6459else
6460 echo "$as_me: failed program was:" >&5
6461sed 's/^/| /' conftest.$ac_ext >&5
6462
6463 # Passes both tests.
6464ac_preproc_ok=:
6465break
6466fi
6467
6468rm -f conftest.err conftest.$ac_ext
6469
6470done
6471# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6472rm -f conftest.err conftest.$ac_ext
6473if $ac_preproc_ok; then
6474 break
6475fi
6476
6477 done
6478 ac_cv_prog_CXXCPP=$CXXCPP
6479
6480fi
6481 CXXCPP=$ac_cv_prog_CXXCPP
6482else
6483 ac_cv_prog_CXXCPP=$CXXCPP
6484fi
6485{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6486echo "${ECHO_T}$CXXCPP" >&6; }
6487ac_preproc_ok=false
6488for ac_cxx_preproc_warn_flag in '' yes
6489do
6490 # Use a header file that comes with gcc, so configuring glibc
6491 # with a fresh cross-compiler works.
6492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6493 # <limits.h> exists even on freestanding compilers.
6494 # On the NeXT, cc -E runs the code through the compiler's parser,
6495 # not just through cpp. "Syntax error" is here to catch this case.
6496 cat >conftest.$ac_ext <<_ACEOF
6497/* confdefs.h. */
6498_ACEOF
6499cat confdefs.h >>conftest.$ac_ext
6500cat >>conftest.$ac_ext <<_ACEOF
6501/* end confdefs.h. */
6502#ifdef __STDC__
6503# include <limits.h>
6504#else
6505# include <assert.h>
6506#endif
6507 Syntax error
6508_ACEOF
6509if { (ac_try="$ac_cpp conftest.$ac_ext"
6510case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513esac
6514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } >/dev/null; then
6522 if test -s conftest.err; then
6523 ac_cpp_err=$ac_cxx_preproc_warn_flag
6524 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6525 else
6526 ac_cpp_err=
6527 fi
6528else
6529 ac_cpp_err=yes
6530fi
6531if test -z "$ac_cpp_err"; then
6532 :
6533else
6534 echo "$as_me: failed program was:" >&5
6535sed 's/^/| /' conftest.$ac_ext >&5
6536
6537 # Broken: fails on valid input.
6538continue
6539fi
6540
6541rm -f conftest.err conftest.$ac_ext
6542
6543 # OK, works on sane cases. Now check whether nonexistent headers
6544 # can be detected and how.
6545 cat >conftest.$ac_ext <<_ACEOF
6546/* confdefs.h. */
6547_ACEOF
6548cat confdefs.h >>conftest.$ac_ext
6549cat >>conftest.$ac_ext <<_ACEOF
6550/* end confdefs.h. */
6551#include <ac_nonexistent.h>
6552_ACEOF
6553if { (ac_try="$ac_cpp conftest.$ac_ext"
6554case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557esac
6558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } >/dev/null; then
6566 if test -s conftest.err; then
6567 ac_cpp_err=$ac_cxx_preproc_warn_flag
6568 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6569 else
6570 ac_cpp_err=
6571 fi
6572else
6573 ac_cpp_err=yes
6574fi
6575if test -z "$ac_cpp_err"; then
6576 # Broken: success on invalid input.
6577continue
6578else
6579 echo "$as_me: failed program was:" >&5
6580sed 's/^/| /' conftest.$ac_ext >&5
6581
6582 # Passes both tests.
6583ac_preproc_ok=:
6584break
6585fi
6586
6587rm -f conftest.err conftest.$ac_ext
6588
6589done
6590# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6591rm -f conftest.err conftest.$ac_ext
6592if $ac_preproc_ok; then
6593 :
6594else
6595 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6596See \`config.log' for more details." >&5
6597echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6598See \`config.log' for more details." >&2;}
6599 { (exit 1); exit 1; }; }
6600fi
6601
6602ac_ext=cpp
6603ac_cpp='$CXXCPP $CPPFLAGS'
6604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6607
6608fi
6609
6610
6611ac_ext=f
6612ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6613ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6614ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6615if test -n "$ac_tool_prefix"; then
6616 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6617 do
6618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6622if test "${ac_cv_prog_F77+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6624else
6625 if test -n "$F77"; then
6626 ac_cv_prog_F77="$F77" # Let the user override the test.
6627else
6628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629for as_dir in $PATH
6630do
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6635 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 break 2
6638 fi
6639done
6640done
6641IFS=$as_save_IFS
6642
6643fi
6644fi
6645F77=$ac_cv_prog_F77
6646if test -n "$F77"; then
6647 { echo "$as_me:$LINENO: result: $F77" >&5
6648echo "${ECHO_T}$F77" >&6; }
6649else
6650 { echo "$as_me:$LINENO: result: no" >&5
6651echo "${ECHO_T}no" >&6; }
6652fi
6653
6654
6655 test -n "$F77" && break
6656 done
6657fi
6658if test -z "$F77"; then
6659 ac_ct_F77=$F77
6660 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6661do
6662 # Extract the first word of "$ac_prog", so it can be a program name with args.
6663set dummy $ac_prog; ac_word=$2
6664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668else
6669 if test -n "$ac_ct_F77"; then
6670 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6671else
6672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_prog_ac_ct_F77="$ac_prog"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6682 fi
6683done
6684done
6685IFS=$as_save_IFS
6686
6687fi
6688fi
6689ac_ct_F77=$ac_cv_prog_ac_ct_F77
6690if test -n "$ac_ct_F77"; then
6691 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6692echo "${ECHO_T}$ac_ct_F77" >&6; }
6693else
6694 { echo "$as_me:$LINENO: result: no" >&5
6695echo "${ECHO_T}no" >&6; }
6696fi
6697
6698
6699 test -n "$ac_ct_F77" && break
6700done
6701
6702 if test "x$ac_ct_F77" = x; then
6703 F77=""
6704 else
6705 case $cross_compiling:$ac_tool_warned in
6706yes:)
6707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6708whose name does not start with the host triplet. If you think this
6709configuration is useful to you, please write to autoconf@gnu.org." >&5
6710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6711whose name does not start with the host triplet. If you think this
6712configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6713ac_tool_warned=yes ;;
6714esac
6715 F77=$ac_ct_F77
6716 fi
6717fi
6718
6719
6720# Provide some information about the compiler.
6721echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6722ac_compiler=`set X $ac_compile; echo $2`
6723{ (ac_try="$ac_compiler --version >&5"
6724case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6727esac
6728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_compiler --version >&5") 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }
6733{ (ac_try="$ac_compiler -v >&5"
6734case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6737esac
6738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_compiler -v >&5") 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }
6743{ (ac_try="$ac_compiler -V >&5"
6744case "(($ac_try" in
6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6747esac
6748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_compiler -V >&5") 2>&5
6750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }
6753rm -f a.out
6754
6755# If we don't use `.F' as extension, the preprocessor is not run on the
6756# input file. (Note that this only needs to work for GNU compilers.)
6757ac_save_ext=$ac_ext
6758ac_ext=F
6759{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6760echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6761if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763else
6764 cat >conftest.$ac_ext <<_ACEOF
6765 program main
6766#ifndef __GNUC__
6767 choke me
6768#endif
6769
6770 end
6771_ACEOF
6772rm -f conftest.$ac_objext
6773if { (ac_try="$ac_compile"
6774case "(($ac_try" in
6775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6777esac
6778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779 (eval "$ac_compile") 2>conftest.er1
6780 ac_status=$?
6781 grep -v '^ *+' conftest.er1 >conftest.err
6782 rm -f conftest.er1
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } &&
6786 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6787 { (case "(($ac_try" in
6788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6790esac
6791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6792 (eval "$ac_try") 2>&5
6793 ac_status=$?
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; } &&
6796 { ac_try='test -s conftest.$ac_objext'
6797 { (case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800esac
6801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_try") 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; }; then
6806 ac_compiler_gnu=yes
6807else
6808 echo "$as_me: failed program was:" >&5
6809sed 's/^/| /' conftest.$ac_ext >&5
6810
6811 ac_compiler_gnu=no
6812fi
6813
6814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6816
6817fi
6818{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6819echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6820ac_ext=$ac_save_ext
6821ac_test_FFLAGS=${FFLAGS+set}
6822ac_save_FFLAGS=$FFLAGS
6823FFLAGS=
6824{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6825echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6826if test "${ac_cv_prog_f77_g+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828else
6829 FFLAGS=-g
6830cat >conftest.$ac_ext <<_ACEOF
6831 program main
6832
6833 end
6834_ACEOF
6835rm -f conftest.$ac_objext
6836if { (ac_try="$ac_compile"
6837case "(($ac_try" in
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6840esac
6841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842 (eval "$ac_compile") 2>conftest.er1
6843 ac_status=$?
6844 grep -v '^ *+' conftest.er1 >conftest.err
6845 rm -f conftest.er1
6846 cat conftest.err >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } &&
6849 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6850 { (case "(($ac_try" in
6851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6852 *) ac_try_echo=$ac_try;;
6853esac
6854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6855 (eval "$ac_try") 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; } &&
6859 { ac_try='test -s conftest.$ac_objext'
6860 { (case "(($ac_try" in
6861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6862 *) ac_try_echo=$ac_try;;
6863esac
6864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6865 (eval "$ac_try") 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; }; then
6869 ac_cv_prog_f77_g=yes
6870else
6871 echo "$as_me: failed program was:" >&5
6872sed 's/^/| /' conftest.$ac_ext >&5
6873
6874 ac_cv_prog_f77_g=no
6875fi
6876
6877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878
6879fi
6880{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6881echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6882if test "$ac_test_FFLAGS" = set; then
6883 FFLAGS=$ac_save_FFLAGS
6884elif test $ac_cv_prog_f77_g = yes; then
6885 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6886 FFLAGS="-g -O2"
6887 else
6888 FFLAGS="-g"
6889 fi
6890else
6891 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6892 FFLAGS="-O2"
6893 else
6894 FFLAGS=
6895 fi
6896fi
6897
6898G77=`test $ac_compiler_gnu = yes && echo yes`
6899ac_ext=c
6900ac_cpp='$CPP $CPPFLAGS'
6901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903ac_compiler_gnu=$ac_cv_c_compiler_gnu
6904
6905
6906
6907# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6908
6909# find the maximum length of command line arguments
6910{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6911echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6912if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6914else
6915 i=0
6916 teststring="ABCD"
6917
6918 case $build_os in
6919 msdosdjgpp*)
6920 # On DJGPP, this test can blow up pretty badly due to problems in libc
6921 # (any single argument exceeding 2000 bytes causes a buffer overrun
6922 # during glob expansion). Even if it were fixed, the result of this
6923 # check would be larger than it should be.
6924 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6925 ;;
6926
6927 gnu*)
6928 # Under GNU Hurd, this test is not required because there is
6929 # no limit to the length of command line arguments.
6930 # Libtool will interpret -1 as no limit whatsoever
6931 lt_cv_sys_max_cmd_len=-1;
6932 ;;
6933
6934 cygwin* | mingw*)
6935 # On Win9x/ME, this test blows up -- it succeeds, but takes
6936 # about 5 minutes as the teststring grows exponentially.
6937 # Worse, since 9x/ME are not pre-emptively multitasking,
6938 # you end up with a "frozen" computer, even though with patience
6939 # the test eventually succeeds (with a max line length of 256k).
6940 # Instead, let's just punt: use the minimum linelength reported by
6941 # all of the supported platforms: 8192 (on NT/2K/XP).
6942 lt_cv_sys_max_cmd_len=8192;
6943 ;;
6944
6945 amigaos*)
6946 # On AmigaOS with pdksh, this test takes hours, literally.
6947 # So we just punt and use a minimum line length of 8192.
6948 lt_cv_sys_max_cmd_len=8192;
6949 ;;
6950
6951 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6952 # This has been around since 386BSD, at least. Likely further.
6953 if test -x /sbin/sysctl; then
6954 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6955 elif test -x /usr/sbin/sysctl; then
6956 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6957 else
6958 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6959 fi
6960 # And add a safety zone
6961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6963 ;;
6964
6965 interix*)
6966 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6967 lt_cv_sys_max_cmd_len=196608
6968 ;;
6969
6970 osf*)
6971 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6972 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6973 # nice to cause kernel panics so lets avoid the loop below.
6974 # First set a reasonable default.
6975 lt_cv_sys_max_cmd_len=16384
6976 #
6977 if test -x /sbin/sysconfig; then
6978 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6979 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6980 esac
6981 fi
6982 ;;
6983 sco3.2v5*)
6984 lt_cv_sys_max_cmd_len=102400
6985 ;;
6986 sysv5* | sco5v6* | sysv4.2uw2*)
6987 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6988 if test -n "$kargmax"; then
6989 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6990 else
6991 lt_cv_sys_max_cmd_len=32768
6992 fi
6993 ;;
6994 *)
6995 # If test is not a shell built-in, we'll probably end up computing a
6996 # maximum length that is only half of the actual maximum length, but
6997 # we can't tell.
6998 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6999 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7000 = "XX$teststring") >/dev/null 2>&1 &&
7001 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7002 lt_cv_sys_max_cmd_len=$new_result &&
7003 test $i != 17 # 1/2 MB should be enough
7004 do
7005 i=`expr $i + 1`
7006 teststring=$teststring$teststring
7007 done
7008 teststring=
7009 # Add a significant safety factor because C++ compilers can tack on massive
7010 # amounts of additional arguments before passing them to the linker.
7011 # It appears as though 1/2 is a usable value.
7012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7013 ;;
7014 esac
7015
7016fi
7017
7018if test -n $lt_cv_sys_max_cmd_len ; then
7019 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7020echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7021else
7022 { echo "$as_me:$LINENO: result: none" >&5
7023echo "${ECHO_T}none" >&6; }
7024fi
7025
7026
7027
7028
7029# Check for command to grab the raw symbol name followed by C symbol from nm.
7030{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7031echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7032if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034else
7035
7036# These are sane defaults that work on at least a few old systems.
7037# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7038
7039# Character class describing NM global symbol codes.
7040symcode='[BCDEGRST]'
7041
7042# Regexp to match symbols that can be accessed directly from C.
7043sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7044
7045# Transform an extracted symbol line into a proper C declaration
7046lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7047
7048# Transform an extracted symbol line into symbol name and symbol address
7049lt_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'"
7050
7051# Define system-specific variables.
7052case $host_os in
7053aix*)
7054 symcode='[BCDT]'
7055 ;;
7056cygwin* | mingw* | pw32*)
7057 symcode='[ABCDGISTW]'
7058 ;;
7059hpux*) # Its linker distinguishes data from code symbols
7060 if test "$host_cpu" = ia64; then
7061 symcode='[ABCDEGRST]'
7062 fi
7063 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7064 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'"
7065 ;;
7066linux* | k*bsd*-gnu)
7067 if test "$host_cpu" = ia64; then
7068 symcode='[ABCDGIRSTW]'
7069 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7070 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'"
7071 fi
7072 ;;
7073irix* | nonstopux*)
7074 symcode='[BCDEGRST]'
7075 ;;
7076osf*)
7077 symcode='[BCDEGQRST]'
7078 ;;
7079solaris*)
7080 symcode='[BDRT]'
7081 ;;
7082sco3.2v5*)
7083 symcode='[DT]'
7084 ;;
7085sysv4.2uw2*)
7086 symcode='[DT]'
7087 ;;
7088sysv5* | sco5v6* | unixware* | OpenUNIX*)
7089 symcode='[ABDT]'
7090 ;;
7091sysv4)
7092 symcode='[DFNSTU]'
7093 ;;
7094esac
7095
7096# Handle CRLF in mingw tool chain
7097opt_cr=
7098case $build_os in
7099mingw*)
7100 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7101 ;;
7102esac
7103
7104# If we're using GNU nm, then use its standard symbol codes.
7105case `$NM -V 2>&1` in
7106*GNU* | *'with BFD'*)
7107 symcode='[ABCDGIRSTW]' ;;
7108esac
7109
7110# Try without a prefix undercore, then with it.
7111for ac_symprfx in "" "_"; do
7112
7113 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7114 symxfrm="\\1 $ac_symprfx\\2 \\2"
7115
7116 # Write the raw and C identifiers.
7117 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7118
7119 # Check to see that the pipe works correctly.
7120 pipe_works=no
7121
7122 rm -f conftest*
7123 cat > conftest.$ac_ext <<EOF
7124#ifdef __cplusplus
7125extern "C" {
7126#endif
7127char nm_test_var;
7128void nm_test_func(){}
7129#ifdef __cplusplus
7130}
7131#endif
7132int main(){nm_test_var='a';nm_test_func();return(0);}
7133EOF
7134
7135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7136 (eval $ac_compile) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; then
7140 # Now try to grab the symbols.
7141 nlist=conftest.nm
7142 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7143 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && test -s "$nlist"; then
7147 # Try sorting and uniquifying the output.
7148 if sort "$nlist" | uniq > "$nlist"T; then
7149 mv -f "$nlist"T "$nlist"
7150 else
7151 rm -f "$nlist"T
7152 fi
7153
7154 # Make sure that we snagged all the symbols we need.
7155 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7156 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7157 cat <<EOF > conftest.$ac_ext
7158#ifdef __cplusplus
7159extern "C" {
7160#endif
7161
7162EOF
7163 # Now generate the symbol file.
7164 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7165
7166 cat <<EOF >> conftest.$ac_ext
7167#if defined (__STDC__) && __STDC__
7168# define lt_ptr_t void *
7169#else
7170# define lt_ptr_t char *
7171# define const
7172#endif
7173
7174/* The mapping between symbol names and symbols. */
7175const struct {
7176 const char *name;
7177 lt_ptr_t address;
7178}
7179lt_preloaded_symbols[] =
7180{
7181EOF
7182 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7183 cat <<\EOF >> conftest.$ac_ext
7184 {0, (lt_ptr_t) 0}
7185};
7186
7187#ifdef __cplusplus
7188}
7189#endif
7190EOF
7191 # Now try linking the two files.
7192 mv conftest.$ac_objext conftstm.$ac_objext
7193 lt_save_LIBS="$LIBS"
7194 lt_save_CFLAGS="$CFLAGS"
7195 LIBS="conftstm.$ac_objext"
7196 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7198 (eval $ac_link) 2>&5
7199 ac_status=$?
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7202 pipe_works=yes
7203 fi
7204 LIBS="$lt_save_LIBS"
7205 CFLAGS="$lt_save_CFLAGS"
7206 else
7207 echo "cannot find nm_test_func in $nlist" >&5
7208 fi
7209 else
7210 echo "cannot find nm_test_var in $nlist" >&5
7211 fi
7212 else
7213 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7214 fi
7215 else
7216 echo "$progname: failed program was:" >&5
7217 cat conftest.$ac_ext >&5
7218 fi
7219 rm -f conftest* conftst*
7220
7221 # Do not use the global_symbol_pipe unless it works.
7222 if test "$pipe_works" = yes; then
7223 break
7224 else
7225 lt_cv_sys_global_symbol_pipe=
7226 fi
7227done
7228
7229fi
7230
7231if test -z "$lt_cv_sys_global_symbol_pipe"; then
7232 lt_cv_sys_global_symbol_to_cdecl=
7233fi
7234if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7235 { echo "$as_me:$LINENO: result: failed" >&5
7236echo "${ECHO_T}failed" >&6; }
7237else
7238 { echo "$as_me:$LINENO: result: ok" >&5
7239echo "${ECHO_T}ok" >&6; }
7240fi
7241
7242{ echo "$as_me:$LINENO: checking for objdir" >&5
7243echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7244if test "${lt_cv_objdir+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247 rm -f .libs 2>/dev/null
7248mkdir .libs 2>/dev/null
7249if test -d .libs; then
7250 lt_cv_objdir=.libs
7251else
7252 # MS-DOS does not allow filenames that begin with a dot.
7253 lt_cv_objdir=_libs
7254fi
7255rmdir .libs 2>/dev/null
7256fi
7257{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7258echo "${ECHO_T}$lt_cv_objdir" >&6; }
7259objdir=$lt_cv_objdir
7260
7261
7262
7263
7264
7265case $host_os in
7266aix3*)
7267 # AIX sometimes has problems with the GCC collect2 program. For some
7268 # reason, if we set the COLLECT_NAMES environment variable, the problems
7269 # vanish in a puff of smoke.
7270 if test "X${COLLECT_NAMES+set}" != Xset; then
7271 COLLECT_NAMES=
7272 export COLLECT_NAMES
7273 fi
7274 ;;
7275esac
7276
7277# Sed substitution that helps us do robust quoting. It backslashifies
7278# metacharacters that are still active within double-quoted strings.
7279Xsed='sed -e 1s/^X//'
7280sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7281
7282# Same as above, but do not quote variable references.
7283double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7284
7285# Sed substitution to delay expansion of an escaped shell variable in a
7286# double_quote_subst'ed string.
7287delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7288
7289# Sed substitution to avoid accidental globbing in evaled expressions
7290no_glob_subst='s/\*/\\\*/g'
7291
7292# Constants:
7293rm="rm -f"
7294
7295# Global variables:
7296default_ofile=libtool
7297can_build_shared=yes
7298
7299# All known linkers require a `.a' archive for static linking (except MSVC,
7300# which needs '.lib').
7301libext=a
7302ltmain="$ac_aux_dir/ltmain.sh"
7303ofile="$default_ofile"
7304with_gnu_ld="$lt_cv_prog_gnu_ld"
7305
7306if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7308set dummy ${ac_tool_prefix}ar; ac_word=$2
7309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7311if test "${ac_cv_prog_AR+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314 if test -n "$AR"; then
7315 ac_cv_prog_AR="$AR" # Let the user override the test.
7316else
7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7324 ac_cv_prog_AR="${ac_tool_prefix}ar"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7327 fi
7328done
7329done
7330IFS=$as_save_IFS
7331
7332fi
7333fi
7334AR=$ac_cv_prog_AR
7335if test -n "$AR"; then
7336 { echo "$as_me:$LINENO: result: $AR" >&5
7337echo "${ECHO_T}$AR" >&6; }
7338else
7339 { echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6; }
7341fi
7342
7343
7344fi
7345if test -z "$ac_cv_prog_AR"; then
7346 ac_ct_AR=$AR
7347 # Extract the first word of "ar", so it can be a program name with args.
7348set dummy ar; ac_word=$2
7349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7351if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353else
7354 if test -n "$ac_ct_AR"; then
7355 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7356else
7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7364 ac_cv_prog_ac_ct_AR="ar"
7365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7367 fi
7368done
7369done
7370IFS=$as_save_IFS
7371
7372fi
7373fi
7374ac_ct_AR=$ac_cv_prog_ac_ct_AR
7375if test -n "$ac_ct_AR"; then
7376 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7377echo "${ECHO_T}$ac_ct_AR" >&6; }
7378else
7379 { echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6; }
7381fi
7382
7383 if test "x$ac_ct_AR" = x; then
7384 AR="false"
7385 else
7386 case $cross_compiling:$ac_tool_warned in
7387yes:)
7388{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7389whose name does not start with the host triplet. If you think this
7390configuration is useful to you, please write to autoconf@gnu.org." >&5
7391echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7392whose name does not start with the host triplet. If you think this
7393configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7394ac_tool_warned=yes ;;
7395esac
7396 AR=$ac_ct_AR
7397 fi
7398else
7399 AR="$ac_cv_prog_AR"
7400fi
7401
7402if test -n "$ac_tool_prefix"; then
7403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7404set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7407if test "${ac_cv_prog_RANLIB+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7409else
7410 if test -n "$RANLIB"; then
7411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7412else
7413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7420 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7423 fi
7424done
7425done
7426IFS=$as_save_IFS
7427
7428fi
7429fi
7430RANLIB=$ac_cv_prog_RANLIB
7431if test -n "$RANLIB"; then
7432 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7433echo "${ECHO_T}$RANLIB" >&6; }
7434else
7435 { echo "$as_me:$LINENO: result: no" >&5
7436echo "${ECHO_T}no" >&6; }
7437fi
7438
7439
7440fi
7441if test -z "$ac_cv_prog_RANLIB"; then
7442 ac_ct_RANLIB=$RANLIB
7443 # Extract the first word of "ranlib", so it can be a program name with args.
7444set dummy ranlib; ac_word=$2
7445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7447if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449else
7450 if test -n "$ac_ct_RANLIB"; then
7451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7452else
7453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454for as_dir in $PATH
7455do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_prog_ac_ct_RANLIB="ranlib"
7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7463 fi
7464done
7465done
7466IFS=$as_save_IFS
7467
7468fi
7469fi
7470ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7471if test -n "$ac_ct_RANLIB"; then
7472 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7473echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7474else
7475 { echo "$as_me:$LINENO: result: no" >&5
7476echo "${ECHO_T}no" >&6; }
7477fi
7478
7479 if test "x$ac_ct_RANLIB" = x; then
7480 RANLIB=":"
7481 else
7482 case $cross_compiling:$ac_tool_warned in
7483yes:)
7484{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7485whose name does not start with the host triplet. If you think this
7486configuration is useful to you, please write to autoconf@gnu.org." >&5
7487echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7488whose name does not start with the host triplet. If you think this
7489configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7490ac_tool_warned=yes ;;
7491esac
7492 RANLIB=$ac_ct_RANLIB
7493 fi
7494else
7495 RANLIB="$ac_cv_prog_RANLIB"
7496fi
7497
7498if test -n "$ac_tool_prefix"; then
7499 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7500set dummy ${ac_tool_prefix}strip; ac_word=$2
7501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503if test "${ac_cv_prog_STRIP+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505else
7506 if test -n "$STRIP"; then
7507 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7508else
7509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510for as_dir in $PATH
7511do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7516 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7519 fi
7520done
7521done
7522IFS=$as_save_IFS
7523
7524fi
7525fi
7526STRIP=$ac_cv_prog_STRIP
7527if test -n "$STRIP"; then
7528 { echo "$as_me:$LINENO: result: $STRIP" >&5
7529echo "${ECHO_T}$STRIP" >&6; }
7530else
7531 { echo "$as_me:$LINENO: result: no" >&5
7532echo "${ECHO_T}no" >&6; }
7533fi
7534
7535
7536fi
7537if test -z "$ac_cv_prog_STRIP"; then
7538 ac_ct_STRIP=$STRIP
7539 # Extract the first word of "strip", so it can be a program name with args.
7540set dummy strip; ac_word=$2
7541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7543if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545else
7546 if test -n "$ac_ct_STRIP"; then
7547 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7548else
7549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550for as_dir in $PATH
7551do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7556 ac_cv_prog_ac_ct_STRIP="strip"
7557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7559 fi
7560done
7561done
7562IFS=$as_save_IFS
7563
7564fi
7565fi
7566ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7567if test -n "$ac_ct_STRIP"; then
7568 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7569echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7570else
7571 { echo "$as_me:$LINENO: result: no" >&5
7572echo "${ECHO_T}no" >&6; }
7573fi
7574
7575 if test "x$ac_ct_STRIP" = x; then
7576 STRIP=":"
7577 else
7578 case $cross_compiling:$ac_tool_warned in
7579yes:)
7580{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7581whose name does not start with the host triplet. If you think this
7582configuration is useful to you, please write to autoconf@gnu.org." >&5
7583echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7584whose name does not start with the host triplet. If you think this
7585configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7586ac_tool_warned=yes ;;
7587esac
7588 STRIP=$ac_ct_STRIP
7589 fi
7590else
7591 STRIP="$ac_cv_prog_STRIP"
7592fi
7593
7594
7595old_CC="$CC"
7596old_CFLAGS="$CFLAGS"
7597
7598# Set sane defaults for various variables
7599test -z "$AR" && AR=ar
7600test -z "$AR_FLAGS" && AR_FLAGS=cru
7601test -z "$AS" && AS=as
7602test -z "$CC" && CC=cc
7603test -z "$LTCC" && LTCC=$CC
7604test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7605test -z "$DLLTOOL" && DLLTOOL=dlltool
7606test -z "$LD" && LD=ld
7607test -z "$LN_S" && LN_S="ln -s"
7608test -z "$MAGIC_CMD" && MAGIC_CMD=file
7609test -z "$NM" && NM=nm
7610test -z "$SED" && SED=sed
7611test -z "$OBJDUMP" && OBJDUMP=objdump
7612test -z "$RANLIB" && RANLIB=:
7613test -z "$STRIP" && STRIP=:
7614test -z "$ac_objext" && ac_objext=o
7615
7616# Determine commands to create old-style static archives.
7617old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7618old_postinstall_cmds='chmod 644 $oldlib'
7619old_postuninstall_cmds=
7620
7621if test -n "$RANLIB"; then
7622 case $host_os in
7623 openbsd*)
7624 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7625 ;;
7626 *)
7627 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7628 ;;
7629 esac
7630 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7631fi
7632
7633for cc_temp in $compiler""; do
7634 case $cc_temp in
7635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7637 \-*) ;;
7638 *) break;;
7639 esac
7640done
7641cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7642
7643
7644# Only perform the check for file, if the check method requires it
7645case $deplibs_check_method in
7646file_magic*)
7647 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7648 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7649echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7650if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652else
7653 case $MAGIC_CMD in
7654[\\/*] | ?:[\\/]*)
7655 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7656 ;;
7657*)
7658 lt_save_MAGIC_CMD="$MAGIC_CMD"
7659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7660 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7661 for ac_dir in $ac_dummy; do
7662 IFS="$lt_save_ifs"
7663 test -z "$ac_dir" && ac_dir=.
7664 if test -f $ac_dir/${ac_tool_prefix}file; then
7665 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7666 if test -n "$file_magic_test_file"; then
7667 case $deplibs_check_method in
7668 "file_magic "*)
7669 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7672 $EGREP "$file_magic_regex" > /dev/null; then
7673 :
7674 else
7675 cat <<EOF 1>&2
7676
7677*** Warning: the command libtool uses to detect shared libraries,
7678*** $file_magic_cmd, produces output that libtool cannot recognize.
7679*** The result is that libtool may fail to recognize shared libraries
7680*** as such. This will affect the creation of libtool libraries that
7681*** depend on shared libraries, but programs linked with such libtool
7682*** libraries will work regardless of this problem. Nevertheless, you
7683*** may want to report the problem to your system manager and/or to
7684*** bug-libtool@gnu.org
7685
7686EOF
7687 fi ;;
7688 esac
7689 fi
7690 break
7691 fi
7692 done
7693 IFS="$lt_save_ifs"
7694 MAGIC_CMD="$lt_save_MAGIC_CMD"
7695 ;;
7696esac
7697fi
7698
7699MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7700if test -n "$MAGIC_CMD"; then
7701 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7702echo "${ECHO_T}$MAGIC_CMD" >&6; }
7703else
7704 { echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6; }
7706fi
7707
7708if test -z "$lt_cv_path_MAGIC_CMD"; then
7709 if test -n "$ac_tool_prefix"; then
7710 { echo "$as_me:$LINENO: checking for file" >&5
7711echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7712if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714else
7715 case $MAGIC_CMD in
7716[\\/*] | ?:[\\/]*)
7717 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7718 ;;
7719*)
7720 lt_save_MAGIC_CMD="$MAGIC_CMD"
7721 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7722 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7723 for ac_dir in $ac_dummy; do
7724 IFS="$lt_save_ifs"
7725 test -z "$ac_dir" && ac_dir=.
7726 if test -f $ac_dir/file; then
7727 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7728 if test -n "$file_magic_test_file"; then
7729 case $deplibs_check_method in
7730 "file_magic "*)
7731 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7733 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7734 $EGREP "$file_magic_regex" > /dev/null; then
7735 :
7736 else
7737 cat <<EOF 1>&2
7738
7739*** Warning: the command libtool uses to detect shared libraries,
7740*** $file_magic_cmd, produces output that libtool cannot recognize.
7741*** The result is that libtool may fail to recognize shared libraries
7742*** as such. This will affect the creation of libtool libraries that
7743*** depend on shared libraries, but programs linked with such libtool
7744*** libraries will work regardless of this problem. Nevertheless, you
7745*** may want to report the problem to your system manager and/or to
7746*** bug-libtool@gnu.org
7747
7748EOF
7749 fi ;;
7750 esac
7751 fi
7752 break
7753 fi
7754 done
7755 IFS="$lt_save_ifs"
7756 MAGIC_CMD="$lt_save_MAGIC_CMD"
7757 ;;
7758esac
7759fi
7760
7761MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7762if test -n "$MAGIC_CMD"; then
7763 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7764echo "${ECHO_T}$MAGIC_CMD" >&6; }
7765else
7766 { echo "$as_me:$LINENO: result: no" >&5
7767echo "${ECHO_T}no" >&6; }
7768fi
7769
7770 else
7771 MAGIC_CMD=:
7772 fi
7773fi
7774
7775 fi
7776 ;;
7777esac
7778
7779enable_dlopen=no
7780enable_win32_dll=yes
7781
7782# Check whether --enable-libtool-lock was given.
7783if test "${enable_libtool_lock+set}" = set; then
7784 enableval=$enable_libtool_lock;
7785fi
7786
7787test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7788
7789
7790# Check whether --with-pic was given.
7791if test "${with_pic+set}" = set; then
7792 withval=$with_pic; pic_mode="$withval"
7793else
7794 pic_mode=default
7795fi
7796
7797test -z "$pic_mode" && pic_mode=default
7798
7799# Use C for the default configuration in the libtool script
7800tagname=
7801lt_save_CC="$CC"
7802ac_ext=c
7803ac_cpp='$CPP $CPPFLAGS'
7804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
7808
7809# Source file extension for C test sources.
7810ac_ext=c
7811
7812# Object file extension for compiled C test sources.
7813objext=o
7814objext=$objext
7815
7816# Code to be used in simple compile tests
7817lt_simple_compile_test_code="int some_variable = 0;\n"
7818
7819# Code to be used in simple link tests
7820lt_simple_link_test_code='int main(){return(0);}\n'
7821
7822
7823# If no C compiler was specified, use CC.
7824LTCC=${LTCC-"$CC"}
7825
7826# If no C compiler flags were specified, use CFLAGS.
7827LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7828
7829# Allow CC to be a program name with arguments.
7830compiler=$CC
7831
7832
7833# save warnings/boilerplate of simple test code
7834ac_outfile=conftest.$ac_objext
7835printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7836eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7837_lt_compiler_boilerplate=`cat conftest.err`
7838$rm conftest*
7839
7840ac_outfile=conftest.$ac_objext
7841printf "$lt_simple_link_test_code" >conftest.$ac_ext
7842eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7843_lt_linker_boilerplate=`cat conftest.err`
7844$rm conftest*
7845
7846
7847
7848lt_prog_compiler_no_builtin_flag=
7849
7850if test "$GCC" = yes; then
7851 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7852
7853
7854{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7855echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7856if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7858else
7859 lt_cv_prog_compiler_rtti_exceptions=no
7860 ac_outfile=conftest.$ac_objext
7861 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7862 lt_compiler_flag="-fno-rtti -fno-exceptions"
7863 # Insert the option either (1) after the last *FLAGS variable, or
7864 # (2) before a word containing "conftest.", or (3) at the end.
7865 # Note that $ac_compile itself does not contain backslashes and begins
7866 # with a dollar sign (not a hyphen), so the echo should work correctly.
7867 # The option is referenced via a variable to avoid confusing sed.
7868 lt_compile=`echo "$ac_compile" | $SED \
7869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7871 -e 's:$: $lt_compiler_flag:'`
7872 (eval echo "\"\$as_me:7872: $lt_compile\"" >&5)
7873 (eval "$lt_compile" 2>conftest.err)
7874 ac_status=$?
7875 cat conftest.err >&5
7876 echo "$as_me:7876: \$? = $ac_status" >&5
7877 if (exit $ac_status) && test -s "$ac_outfile"; then
7878 # The compiler can only warn and ignore the option if not recognized
7879 # So say no if there are warnings other than the usual output.
7880 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7882 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7883 lt_cv_prog_compiler_rtti_exceptions=yes
7884 fi
7885 fi
7886 $rm conftest*
7887
7888fi
7889{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7890echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7891
7892if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7893 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7894else
7895 :
7896fi
7897
7898fi
7899
7900lt_prog_compiler_wl=
7901lt_prog_compiler_pic=
7902lt_prog_compiler_static=
7903
7904{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7905echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7906
7907 if test "$GCC" = yes; then
7908 lt_prog_compiler_wl='-Wl,'
7909 lt_prog_compiler_static='-static'
7910
7911 case $host_os in
7912 aix*)
7913 # All AIX code is PIC.
7914 if test "$host_cpu" = ia64; then
7915 # AIX 5 now supports IA64 processor
7916 lt_prog_compiler_static='-Bstatic'
7917 fi
7918 ;;
7919
7920 amigaos*)
7921 # FIXME: we need at least 68020 code to build shared libraries, but
7922 # adding the `-m68020' flag to GCC prevents building anything better,
7923 # like `-m68040'.
7924 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7925 ;;
7926
7927 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7928 # PIC is the default for these OSes.
7929 ;;
7930
7931 mingw* | pw32* | os2*)
7932 # This hack is so that the source file can tell whether it is being
7933 # built for inclusion in a dll (and should export symbols for example).
7934 lt_prog_compiler_pic='-DDLL_EXPORT'
7935 ;;
7936
7937 darwin* | rhapsody*)
7938 # PIC is the default on this platform
7939 # Common symbols not allowed in MH_DYLIB files
7940 lt_prog_compiler_pic='-fno-common'
7941 ;;
7942
7943 interix3*)
7944 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7945 # Instead, we relocate shared libraries at runtime.
7946 ;;
7947
7948 msdosdjgpp*)
7949 # Just because we use GCC doesn't mean we suddenly get shared libraries
7950 # on systems that don't support them.
7951 lt_prog_compiler_can_build_shared=no
7952 enable_shared=no
7953 ;;
7954
7955 sysv4*MP*)
7956 if test -d /usr/nec; then
7957 lt_prog_compiler_pic=-Kconform_pic
7958 fi
7959 ;;
7960
7961 hpux*)
7962 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7963 # not for PA HP-UX.
7964 case $host_cpu in
7965 hppa*64*|ia64*)
7966 # +Z the default
7967 ;;
7968 *)
7969 lt_prog_compiler_pic='-fPIC'
7970 ;;
7971 esac
7972 ;;
7973
7974 *)
7975 lt_prog_compiler_pic='-fPIC'
7976 ;;
7977 esac
7978 else
7979 # PORTME Check for flag to pass linker flags through the system compiler.
7980 case $host_os in
7981 aix*)
7982 lt_prog_compiler_wl='-Wl,'
7983 if test "$host_cpu" = ia64; then
7984 # AIX 5 now supports IA64 processor
7985 lt_prog_compiler_static='-Bstatic'
7986 else
7987 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7988 fi
7989 ;;
7990 darwin*)
7991 # PIC is the default on this platform
7992 # Common symbols not allowed in MH_DYLIB files
7993 case $cc_basename in
7994 xlc*)
7995 lt_prog_compiler_pic='-qnocommon'
7996 lt_prog_compiler_wl='-Wl,'
7997 ;;
7998 esac
7999 ;;
8000
8001 mingw* | pw32* | os2*)
8002 # This hack is so that the source file can tell whether it is being
8003 # built for inclusion in a dll (and should export symbols for example).
8004 lt_prog_compiler_pic='-DDLL_EXPORT'
8005 ;;
8006
8007 hpux9* | hpux10* | hpux11*)
8008 lt_prog_compiler_wl='-Wl,'
8009 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8010 # not for PA HP-UX.
8011 case $host_cpu in
8012 hppa*64*|ia64*)
8013 # +Z the default
8014 ;;
8015 *)
8016 lt_prog_compiler_pic='+Z'
8017 ;;
8018 esac
8019 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8020 lt_prog_compiler_static='${wl}-a ${wl}archive'
8021 ;;
8022
8023 irix5* | irix6* | nonstopux*)
8024 lt_prog_compiler_wl='-Wl,'
8025 # PIC (with -KPIC) is the default.
8026 lt_prog_compiler_static='-non_shared'
8027 ;;
8028
8029 newsos6)
8030 lt_prog_compiler_pic='-KPIC'
8031 lt_prog_compiler_static='-Bstatic'
8032 ;;
8033
8034 linux* | k*bsd*-gnu)
8035 case $cc_basename in
8036 icc* | ecc*)
8037 lt_prog_compiler_wl='-Wl,'
8038 lt_prog_compiler_pic='-KPIC'
8039 lt_prog_compiler_static='-static'
8040 ;;
8041 pgcc* | pgf77* | pgf90* | pgf95*)
8042 # Portland Group compilers (*not* the Pentium gcc compiler,
8043 # which looks to be a dead project)
8044 lt_prog_compiler_wl='-Wl,'
8045 lt_prog_compiler_pic='-fpic'
8046 lt_prog_compiler_static='-Bstatic'
8047 ;;
8048 ccc*)
8049 lt_prog_compiler_wl='-Wl,'
8050 # All Alpha code is PIC.
8051 lt_prog_compiler_static='-non_shared'
8052 ;;
8053 esac
8054 ;;
8055
8056 osf3* | osf4* | osf5*)
8057 lt_prog_compiler_wl='-Wl,'
8058 # All OSF/1 code is PIC.
8059 lt_prog_compiler_static='-non_shared'
8060 ;;
8061
8062 solaris*)
8063 lt_prog_compiler_pic='-KPIC'
8064 lt_prog_compiler_static='-Bstatic'
8065 case $cc_basename in
8066 f77* | f90* | f95*)
8067 lt_prog_compiler_wl='-Qoption ld ';;
8068 *)
8069 lt_prog_compiler_wl='-Wl,';;
8070 esac
8071 ;;
8072
8073 sunos4*)
8074 lt_prog_compiler_wl='-Qoption ld '
8075 lt_prog_compiler_pic='-PIC'
8076 lt_prog_compiler_static='-Bstatic'
8077 ;;
8078
8079 sysv4 | sysv4.2uw2* | sysv4.3*)
8080 lt_prog_compiler_wl='-Wl,'
8081 lt_prog_compiler_pic='-KPIC'
8082 lt_prog_compiler_static='-Bstatic'
8083 ;;
8084
8085 sysv4*MP*)
8086 if test -d /usr/nec ;then
8087 lt_prog_compiler_pic='-Kconform_pic'
8088 lt_prog_compiler_static='-Bstatic'
8089 fi
8090 ;;
8091
8092 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8093 lt_prog_compiler_wl='-Wl,'
8094 lt_prog_compiler_pic='-KPIC'
8095 lt_prog_compiler_static='-Bstatic'
8096 ;;
8097
8098 unicos*)
8099 lt_prog_compiler_wl='-Wl,'
8100 lt_prog_compiler_can_build_shared=no
8101 ;;
8102
8103 uts4*)
8104 lt_prog_compiler_pic='-pic'
8105 lt_prog_compiler_static='-Bstatic'
8106 ;;
8107
8108 *)
8109 lt_prog_compiler_can_build_shared=no
8110 ;;
8111 esac
8112 fi
8113
8114{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8115echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8116
8117#
8118# Check to make sure the PIC flag actually works.
8119#
8120if test -n "$lt_prog_compiler_pic"; then
8121
8122{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8123echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8124if test "${lt_prog_compiler_pic_works+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8126else
8127 lt_prog_compiler_pic_works=no
8128 ac_outfile=conftest.$ac_objext
8129 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8130 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8131 # Insert the option either (1) after the last *FLAGS variable, or
8132 # (2) before a word containing "conftest.", or (3) at the end.
8133 # Note that $ac_compile itself does not contain backslashes and begins
8134 # with a dollar sign (not a hyphen), so the echo should work correctly.
8135 # The option is referenced via a variable to avoid confusing sed.
8136 lt_compile=`echo "$ac_compile" | $SED \
8137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8139 -e 's:$: $lt_compiler_flag:'`
8140 (eval echo "\"\$as_me:8140: $lt_compile\"" >&5)
8141 (eval "$lt_compile" 2>conftest.err)
8142 ac_status=$?
8143 cat conftest.err >&5
8144 echo "$as_me:8144: \$? = $ac_status" >&5
8145 if (exit $ac_status) && test -s "$ac_outfile"; then
8146 # The compiler can only warn and ignore the option if not recognized
8147 # So say no if there are warnings other than the usual output.
8148 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8150 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8151 lt_prog_compiler_pic_works=yes
8152 fi
8153 fi
8154 $rm conftest*
8155
8156fi
8157{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8158echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8159
8160if test x"$lt_prog_compiler_pic_works" = xyes; then
8161 case $lt_prog_compiler_pic in
8162 "" | " "*) ;;
8163 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8164 esac
8165else
8166 lt_prog_compiler_pic=
8167 lt_prog_compiler_can_build_shared=no
8168fi
8169
8170fi
8171case $host_os in
8172 # For platforms which do not support PIC, -DPIC is meaningless:
8173 *djgpp*)
8174 lt_prog_compiler_pic=
8175 ;;
8176 *)
8177 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8178 ;;
8179esac
8180
8181#
8182# Check to make sure the static flag actually works.
8183#
8184wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8185{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8186echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8187if test "${lt_prog_compiler_static_works+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189else
8190 lt_prog_compiler_static_works=no
8191 save_LDFLAGS="$LDFLAGS"
8192 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8193 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8195 # The linker can only warn and ignore the option if not recognized
8196 # So say no if there are warnings
8197 if test -s conftest.err; then
8198 # Append any errors to the config.log.
8199 cat conftest.err 1>&5
8200 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8202 if diff conftest.exp conftest.er2 >/dev/null; then
8203 lt_prog_compiler_static_works=yes
8204 fi
8205 else
8206 lt_prog_compiler_static_works=yes
8207 fi
8208 fi
8209 $rm conftest*
8210 LDFLAGS="$save_LDFLAGS"
8211
8212fi
8213{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8214echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8215
8216if test x"$lt_prog_compiler_static_works" = xyes; then
8217 :
8218else
8219 lt_prog_compiler_static=
8220fi
8221
8222
8223{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8224echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8225if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227else
8228 lt_cv_prog_compiler_c_o=no
8229 $rm -r conftest 2>/dev/null
8230 mkdir conftest
8231 cd conftest
8232 mkdir out
8233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8234
8235 lt_compiler_flag="-o out/conftest2.$ac_objext"
8236 # Insert the option either (1) after the last *FLAGS variable, or
8237 # (2) before a word containing "conftest.", or (3) at the end.
8238 # Note that $ac_compile itself does not contain backslashes and begins
8239 # with a dollar sign (not a hyphen), so the echo should work correctly.
8240 lt_compile=`echo "$ac_compile" | $SED \
8241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8243 -e 's:$: $lt_compiler_flag:'`
8244 (eval echo "\"\$as_me:8244: $lt_compile\"" >&5)
8245 (eval "$lt_compile" 2>out/conftest.err)
8246 ac_status=$?
8247 cat out/conftest.err >&5
8248 echo "$as_me:8248: \$? = $ac_status" >&5
8249 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8250 then
8251 # The compiler can only warn and ignore the option if not recognized
8252 # So say no if there are warnings
8253 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8254 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8255 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8256 lt_cv_prog_compiler_c_o=yes
8257 fi
8258 fi
8259 chmod u+w . 2>&5
8260 $rm conftest*
8261 # SGI C++ compiler will create directory out/ii_files/ for
8262 # template instantiation
8263 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8264 $rm out/* && rmdir out
8265 cd ..
8266 rmdir conftest
8267 $rm conftest*
8268
8269fi
8270{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8271echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8272
8273
8274hard_links="nottested"
8275if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8276 # do not overwrite the value of need_locks provided by the user
8277 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8278echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8279 hard_links=yes
8280 $rm conftest*
8281 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8282 touch conftest.a
8283 ln conftest.a conftest.b 2>&5 || hard_links=no
8284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8285 { echo "$as_me:$LINENO: result: $hard_links" >&5
8286echo "${ECHO_T}$hard_links" >&6; }
8287 if test "$hard_links" = no; then
8288 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8289echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8290 need_locks=warn
8291 fi
8292else
8293 need_locks=no
8294fi
8295
8296{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8297echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8298
8299 runpath_var=
8300 allow_undefined_flag=
8301 enable_shared_with_static_runtimes=no
8302 archive_cmds=
8303 archive_expsym_cmds=
8304 old_archive_From_new_cmds=
8305 old_archive_from_expsyms_cmds=
8306 export_dynamic_flag_spec=
8307 whole_archive_flag_spec=
8308 thread_safe_flag_spec=
8309 hardcode_libdir_flag_spec=
8310 hardcode_libdir_flag_spec_ld=
8311 hardcode_libdir_separator=
8312 hardcode_direct=no
8313 hardcode_minus_L=no
8314 hardcode_shlibpath_var=unsupported
8315 link_all_deplibs=unknown
8316 hardcode_automatic=no
8317 module_cmds=
8318 module_expsym_cmds=
8319 always_export_symbols=no
8320 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8321 # include_expsyms should be a list of space-separated symbols to be *always*
8322 # included in the symbol list
8323 include_expsyms=
8324 # exclude_expsyms can be an extended regexp of symbols to exclude
8325 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8326 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8327 # as well as any symbol that contains `d'.
8328 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8329 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8330 # platforms (ab)use it in PIC code, but their linkers get confused if
8331 # the symbol is explicitly referenced. Since portable code cannot
8332 # rely on this symbol name, it's probably fine to never include it in
8333 # preloaded symbol tables.
8334 extract_expsyms_cmds=
8335 # Just being paranoid about ensuring that cc_basename is set.
8336 for cc_temp in $compiler""; do
8337 case $cc_temp in
8338 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8339 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8340 \-*) ;;
8341 *) break;;
8342 esac
8343done
8344cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8345
8346 case $host_os in
8347 cygwin* | mingw* | pw32*)
8348 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8349 # When not using gcc, we currently assume that we are using
8350 # Microsoft Visual C++.
8351 if test "$GCC" != yes; then
8352 with_gnu_ld=no
8353 fi
8354 ;;
8355 interix*)
8356 # we just hope/assume this is gcc and not c89 (= MSVC++)
8357 with_gnu_ld=yes
8358 ;;
8359 openbsd*)
8360 with_gnu_ld=no
8361 ;;
8362 esac
8363
8364 ld_shlibs=yes
8365 if test "$with_gnu_ld" = yes; then
8366 # If archive_cmds runs LD, not CC, wlarc should be empty
8367 wlarc='${wl}'
8368
8369 # Set some defaults for GNU ld with shared library support. These
8370 # are reset later if shared libraries are not supported. Putting them
8371 # here allows them to be overridden if necessary.
8372 runpath_var=LD_RUN_PATH
8373 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8374 export_dynamic_flag_spec='${wl}--export-dynamic'
8375 # ancient GNU ld didn't support --whole-archive et. al.
8376 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8377 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8378 else
8379 whole_archive_flag_spec=
8380 fi
8381 supports_anon_versioning=no
8382 case `$LD -v 2>/dev/null` in
8383 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8384 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8385 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8386 *\ 2.11.*) ;; # other 2.11 versions
8387 *) supports_anon_versioning=yes ;;
8388 esac
8389
8390 # See if GNU ld supports shared libraries.
8391 case $host_os in
8392 aix3* | aix4* | aix5*)
8393 # On AIX/PPC, the GNU linker is very broken
8394 if test "$host_cpu" != ia64; then
8395 ld_shlibs=no
8396 cat <<EOF 1>&2
8397
8398*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8399*** to be unable to reliably create shared libraries on AIX.
8400*** Therefore, libtool is disabling shared libraries support. If you
8401*** really care for shared libraries, you may want to modify your PATH
8402*** so that a non-GNU linker is found, and then restart.
8403
8404EOF
8405 fi
8406 ;;
8407
8408 amigaos*)
8409 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)'
8410 hardcode_libdir_flag_spec='-L$libdir'
8411 hardcode_minus_L=yes
8412
8413 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8414 # that the semantics of dynamic libraries on AmigaOS, at least up
8415 # to version 4, is to share data among multiple programs linked
8416 # with the same dynamic library. Since this doesn't match the
8417 # behavior of shared libraries on other platforms, we can't use
8418 # them.
8419 ld_shlibs=no
8420 ;;
8421
8422 beos*)
8423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8424 allow_undefined_flag=unsupported
8425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8426 # support --undefined. This deserves some investigation. FIXME
8427 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8428 else
8429 ld_shlibs=no
8430 fi
8431 ;;
8432
8433 cygwin* | mingw* | pw32*)
8434 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8435 # as there is no search path for DLLs.
8436 hardcode_libdir_flag_spec='-L$libdir'
8437 allow_undefined_flag=unsupported
8438 always_export_symbols=no
8439 enable_shared_with_static_runtimes=yes
8440 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8441
8442 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8444 # If the export-symbols file already is a .def file (1st line
8445 # is EXPORTS), use it as is; otherwise, prepend...
8446 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8447 cp $export_symbols $output_objdir/$soname.def;
8448 else
8449 echo EXPORTS > $output_objdir/$soname.def;
8450 cat $export_symbols >> $output_objdir/$soname.def;
8451 fi~
8452 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8453 else
8454 ld_shlibs=no
8455 fi
8456 ;;
8457
8458 interix3*)
8459 hardcode_direct=no
8460 hardcode_shlibpath_var=no
8461 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8462 export_dynamic_flag_spec='${wl}-E'
8463 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8464 # Instead, shared libraries are loaded at an image base (0x10000000 by
8465 # default) and relocated if they conflict, which is a slow very memory
8466 # consuming and fragmenting process. To avoid this, we pick a random,
8467 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8468 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8469 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8470 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'
8471 ;;
8472
8473 linux* | k*bsd*-gnu)
8474 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8475 tmp_addflag=
8476 case $cc_basename,$host_cpu in
8477 pgcc*) # Portland Group C compiler
8478 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'
8479 tmp_addflag=' $pic_flag'
8480 ;;
8481 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8482 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'
8483 tmp_addflag=' $pic_flag -Mnomain' ;;
8484 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8485 tmp_addflag=' -i_dynamic' ;;
8486 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8487 tmp_addflag=' -i_dynamic -nofor_main' ;;
8488 ifc* | ifort*) # Intel Fortran compiler
8489 tmp_addflag=' -nofor_main' ;;
8490 esac
8491 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8492
8493 if test $supports_anon_versioning = yes; then
8494 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8495 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8496 $echo "local: *; };" >> $output_objdir/$libname.ver~
8497 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8498 fi
8499 link_all_deplibs=no
8500 else
8501 ld_shlibs=no
8502 fi
8503 ;;
8504
8505 netbsd* | netbsdelf*-gnu)
8506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8507 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8508 wlarc=
8509 else
8510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8512 fi
8513 ;;
8514
8515 solaris*)
8516 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8517 ld_shlibs=no
8518 cat <<EOF 1>&2
8519
8520*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8521*** create shared libraries on Solaris systems. Therefore, libtool
8522*** is disabling shared libraries support. We urge you to upgrade GNU
8523*** binutils to release 2.9.1 or newer. Another option is to modify
8524*** your PATH or compiler configuration so that the native linker is
8525*** used, and then restart.
8526
8527EOF
8528 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8530 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8531 else
8532 ld_shlibs=no
8533 fi
8534 ;;
8535
8536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8537 case `$LD -v 2>&1` in
8538 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8539 ld_shlibs=no
8540 cat <<_LT_EOF 1>&2
8541
8542*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8543*** reliably create shared libraries on SCO systems. Therefore, libtool
8544*** is disabling shared libraries support. We urge you to upgrade GNU
8545*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8546*** your PATH or compiler configuration so that the native linker is
8547*** used, and then restart.
8548
8549_LT_EOF
8550 ;;
8551 *)
8552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8553 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8555 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8556 else
8557 ld_shlibs=no
8558 fi
8559 ;;
8560 esac
8561 ;;
8562
8563 sunos4*)
8564 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8565 wlarc=
8566 hardcode_direct=yes
8567 hardcode_shlibpath_var=no
8568 ;;
8569
8570 *)
8571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8573 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8574 else
8575 ld_shlibs=no
8576 fi
8577 ;;
8578 esac
8579
8580 if test "$ld_shlibs" = no; then
8581 runpath_var=
8582 hardcode_libdir_flag_spec=
8583 export_dynamic_flag_spec=
8584 whole_archive_flag_spec=
8585 fi
8586 else
8587 # PORTME fill in a description of your system's linker (not GNU ld)
8588 case $host_os in
8589 aix3*)
8590 allow_undefined_flag=unsupported
8591 always_export_symbols=yes
8592 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'
8593 # Note: this linker hardcodes the directories in LIBPATH if there
8594 # are no directories specified by -L.
8595 hardcode_minus_L=yes
8596 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8597 # Neither direct hardcoding nor static linking is supported with a
8598 # broken collect2.
8599 hardcode_direct=unsupported
8600 fi
8601 ;;
8602
8603 aix4* | aix5*)
8604 if test "$host_cpu" = ia64; then
8605 # On IA64, the linker does run time linking by default, so we don't
8606 # have to do anything special.
8607 aix_use_runtimelinking=no
8608 exp_sym_flag='-Bexport'
8609 no_entry_flag=""
8610 else
8611 # If we're using GNU nm, then we don't want the "-C" option.
8612 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8613 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8614 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'
8615 else
8616 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'
8617 fi
8618 aix_use_runtimelinking=no
8619
8620 # Test if we are trying to use run time linking or normal
8621 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8622 # need to do runtime linking.
8623 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8624 for ld_flag in $LDFLAGS; do
8625 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8626 aix_use_runtimelinking=yes
8627 break
8628 fi
8629 done
8630 ;;
8631 esac
8632
8633 exp_sym_flag='-bexport'
8634 no_entry_flag='-bnoentry'
8635 fi
8636
8637 # When large executables or shared objects are built, AIX ld can
8638 # have problems creating the table of contents. If linking a library
8639 # or program results in "error TOC overflow" add -mminimal-toc to
8640 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8641 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8642
8643 archive_cmds=''
8644 hardcode_direct=yes
8645 hardcode_libdir_separator=':'
8646 link_all_deplibs=yes
8647
8648 if test "$GCC" = yes; then
8649 case $host_os in aix4.[012]|aix4.[012].*)
8650 # We only want to do this on AIX 4.2 and lower, the check
8651 # below for broken collect2 doesn't work under 4.3+
8652 collect2name=`${CC} -print-prog-name=collect2`
8653 if test -f "$collect2name" && \
8654 strings "$collect2name" | grep resolve_lib_name >/dev/null
8655 then
8656 # We have reworked collect2
8657 hardcode_direct=yes
8658 else
8659 # We have old collect2
8660 hardcode_direct=unsupported
8661 # It fails to find uninstalled libraries when the uninstalled
8662 # path is not listed in the libpath. Setting hardcode_minus_L
8663 # to unsupported forces relinking
8664 hardcode_minus_L=yes
8665 hardcode_libdir_flag_spec='-L$libdir'
8666 hardcode_libdir_separator=
8667 fi
8668 ;;
8669 esac
8670 shared_flag='-shared'
8671 if test "$aix_use_runtimelinking" = yes; then
8672 shared_flag="$shared_flag "'${wl}-G'
8673 fi
8674 else
8675 # not using gcc
8676 if test "$host_cpu" = ia64; then
8677 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8678 # chokes on -Wl,-G. The following line is correct:
8679 shared_flag='-G'
8680 else
8681 if test "$aix_use_runtimelinking" = yes; then
8682 shared_flag='${wl}-G'
8683 else
8684 shared_flag='${wl}-bM:SRE'
8685 fi
8686 fi
8687 fi
8688
8689 # It seems that -bexpall does not export symbols beginning with
8690 # underscore (_), so it is better to generate a list of symbols to export.
8691 always_export_symbols=yes
8692 if test "$aix_use_runtimelinking" = yes; then
8693 # Warning - without using the other runtime loading flags (-brtl),
8694 # -berok will link without error, but may produce a broken library.
8695 allow_undefined_flag='-berok'
8696 # Determine the default libpath from the value encoded in an empty executable.
8697 cat >conftest.$ac_ext <<_ACEOF
8698/* confdefs.h. */
8699_ACEOF
8700cat confdefs.h >>conftest.$ac_ext
8701cat >>conftest.$ac_ext <<_ACEOF
8702/* end confdefs.h. */
8703
8704int
8705main ()
8706{
8707
8708 ;
8709 return 0;
8710}
8711_ACEOF
8712rm -f conftest.$ac_objext conftest$ac_exeext
8713if { (ac_try="$ac_link"
8714case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8717esac
8718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719 (eval "$ac_link") 2>conftest.er1
8720 ac_status=$?
8721 grep -v '^ *+' conftest.er1 >conftest.err
8722 rm -f conftest.er1
8723 cat conftest.err >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } &&
8726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8727 { (case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8730esac
8731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_try") 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; } &&
8736 { ac_try='test -s conftest$ac_exeext'
8737 { (case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740esac
8741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_try") 2>&5
8743 ac_status=$?
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746
8747aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8748}'`
8749# Check for a 64-bit object if we didn't find anything.
8750if 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; }
8751}'`; fi
8752else
8753 echo "$as_me: failed program was:" >&5
8754sed 's/^/| /' conftest.$ac_ext >&5
8755
8756
8757fi
8758
8759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8760 conftest$ac_exeext conftest.$ac_ext
8761if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8762
8763 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8764 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"
8765 else
8766 if test "$host_cpu" = ia64; then
8767 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8768 allow_undefined_flag="-z nodefs"
8769 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"
8770 else
8771 # Determine the default libpath from the value encoded in an empty executable.
8772 cat >conftest.$ac_ext <<_ACEOF
8773/* confdefs.h. */
8774_ACEOF
8775cat confdefs.h >>conftest.$ac_ext
8776cat >>conftest.$ac_ext <<_ACEOF
8777/* end confdefs.h. */
8778
8779int
8780main ()
8781{
8782
8783 ;
8784 return 0;
8785}
8786_ACEOF
8787rm -f conftest.$ac_objext conftest$ac_exeext
8788if { (ac_try="$ac_link"
8789case "(($ac_try" in
8790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791 *) ac_try_echo=$ac_try;;
8792esac
8793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8794 (eval "$ac_link") 2>conftest.er1
8795 ac_status=$?
8796 grep -v '^ *+' conftest.er1 >conftest.err
8797 rm -f conftest.er1
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8802 { (case "(($ac_try" in
8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8805esac
8806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807 (eval "$ac_try") 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; } &&
8811 { ac_try='test -s conftest$ac_exeext'
8812 { (case "(($ac_try" in
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8815esac
8816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817 (eval "$ac_try") 2>&5
8818 ac_status=$?
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821
8822aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8823}'`
8824# Check for a 64-bit object if we didn't find anything.
8825if 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; }
8826}'`; fi
8827else
8828 echo "$as_me: failed program was:" >&5
8829sed 's/^/| /' conftest.$ac_ext >&5
8830
8831
8832fi
8833
8834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8835 conftest$ac_exeext conftest.$ac_ext
8836if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8837
8838 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8839 # Warning - without using the other run time loading flags,
8840 # -berok will link without error, but may produce a broken library.
8841 no_undefined_flag=' ${wl}-bernotok'
8842 allow_undefined_flag=' ${wl}-berok'
8843 # Exported symbols can be pulled into shared objects from archives
8844 whole_archive_flag_spec='$convenience'
8845 archive_cmds_need_lc=yes
8846 # This is similar to how AIX traditionally builds its shared libraries.
8847 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'
8848 fi
8849 fi
8850 ;;
8851
8852 amigaos*)
8853 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)'
8854 hardcode_libdir_flag_spec='-L$libdir'
8855 hardcode_minus_L=yes
8856 # see comment about different semantics on the GNU ld section
8857 ld_shlibs=no
8858 ;;
8859
8860 bsdi[45]*)
8861 export_dynamic_flag_spec=-rdynamic
8862 ;;
8863
8864 cygwin* | mingw* | pw32*)
8865 # When not using gcc, we currently assume that we are using
8866 # Microsoft Visual C++.
8867 # hardcode_libdir_flag_spec is actually meaningless, as there is
8868 # no search path for DLLs.
8869 hardcode_libdir_flag_spec=' '
8870 allow_undefined_flag=unsupported
8871 # Tell ltmain to make .lib files, not .a files.
8872 libext=lib
8873 # Tell ltmain to make .dll files, not .so files.
8874 shrext_cmds=".dll"
8875 # FIXME: Setting linknames here is a bad hack.
8876 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8877 # The linker will automatically build a .lib file if we build a DLL.
8878 old_archive_From_new_cmds='true'
8879 # FIXME: Should let the user specify the lib program.
8880 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8881 fix_srcfile_path='`cygpath -w "$srcfile"`'
8882 enable_shared_with_static_runtimes=yes
8883 ;;
8884
8885 darwin* | rhapsody*)
8886 case $host_os in
8887 rhapsody* | darwin1.[012])
8888 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8889 ;;
8890 *) # Darwin 1.3 on
8891 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8892 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8893 else
8894 case ${MACOSX_DEPLOYMENT_TARGET} in
8895 10.[012])
8896 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8897 ;;
8898 10.*)
8899 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8900 ;;
8901 esac
8902 fi
8903 ;;
8904 esac
8905 archive_cmds_need_lc=no
8906 hardcode_direct=no
8907 hardcode_automatic=yes
8908 hardcode_shlibpath_var=unsupported
8909 whole_archive_flag_spec=''
8910 link_all_deplibs=yes
8911 if test "$GCC" = yes ; then
8912 output_verbose_link_cmd='echo'
8913 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8914 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8915 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8916 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}'
8917 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}'
8918 else
8919 case $cc_basename in
8920 xlc*)
8921 output_verbose_link_cmd='echo'
8922 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8923 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8924 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8925 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}'
8926 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}'
8927 ;;
8928 *)
8929 ld_shlibs=no
8930 ;;
8931 esac
8932 fi
8933 ;;
8934
8935 dgux*)
8936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8937 hardcode_libdir_flag_spec='-L$libdir'
8938 hardcode_shlibpath_var=no
8939 ;;
8940
8941 freebsd1*)
8942 ld_shlibs=no
8943 ;;
8944
8945 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8946 # support. Future versions do this automatically, but an explicit c++rt0.o
8947 # does not break anything, and helps significantly (at the cost of a little
8948 # extra space).
8949 freebsd2.2*)
8950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8951 hardcode_libdir_flag_spec='-R$libdir'
8952 hardcode_direct=yes
8953 hardcode_shlibpath_var=no
8954 ;;
8955
8956 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8957 freebsd2*)
8958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8959 hardcode_direct=yes
8960 hardcode_minus_L=yes
8961 hardcode_shlibpath_var=no
8962 ;;
8963
8964 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8965 freebsd* | dragonfly*)
8966 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8967 hardcode_libdir_flag_spec='-R$libdir'
8968 hardcode_direct=yes
8969 hardcode_shlibpath_var=no
8970 ;;
8971
8972 hpux9*)
8973 if test "$GCC" = yes; then
8974 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'
8975 else
8976 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'
8977 fi
8978 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8979 hardcode_libdir_separator=:
8980 hardcode_direct=yes
8981
8982 # hardcode_minus_L: Not really in the search PATH,
8983 # but as the default location of the library.
8984 hardcode_minus_L=yes
8985 export_dynamic_flag_spec='${wl}-E'
8986 ;;
8987
8988 hpux10*)
8989 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8990 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8991 else
8992 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8993 fi
8994 if test "$with_gnu_ld" = no; then
8995 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8996 hardcode_libdir_separator=:
8997
8998 hardcode_direct=yes
8999 export_dynamic_flag_spec='${wl}-E'
9000
9001 # hardcode_minus_L: Not really in the search PATH,
9002 # but as the default location of the library.
9003 hardcode_minus_L=yes
9004 fi
9005 ;;
9006
9007 hpux11*)
9008 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9009 case $host_cpu in
9010 hppa*64*)
9011 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9012 ;;
9013 ia64*)
9014 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9015 ;;
9016 *)
9017 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9018 ;;
9019 esac
9020 else
9021 case $host_cpu in
9022 hppa*64*)
9023 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9024 ;;
9025 ia64*)
9026 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9027 ;;
9028 *)
9029 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9030 ;;
9031 esac
9032 fi
9033 if test "$with_gnu_ld" = no; then
9034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9035 hardcode_libdir_separator=:
9036
9037 case $host_cpu in
9038 hppa*64*|ia64*)
9039 hardcode_libdir_flag_spec_ld='+b $libdir'
9040 hardcode_direct=no
9041 hardcode_shlibpath_var=no
9042 ;;
9043 *)
9044 hardcode_direct=yes
9045 export_dynamic_flag_spec='${wl}-E'
9046
9047 # hardcode_minus_L: Not really in the search PATH,
9048 # but as the default location of the library.
9049 hardcode_minus_L=yes
9050 ;;
9051 esac
9052 fi
9053 ;;
9054
9055 irix5* | irix6* | nonstopux*)
9056 if test "$GCC" = yes; then
9057 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'
9058 else
9059 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'
9060 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9061 fi
9062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9063 hardcode_libdir_separator=:
9064 link_all_deplibs=yes
9065 ;;
9066
9067 netbsd* | netbsdelf*-gnu)
9068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9070 else
9071 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9072 fi
9073 hardcode_libdir_flag_spec='-R$libdir'
9074 hardcode_direct=yes
9075 hardcode_shlibpath_var=no
9076 ;;
9077
9078 newsos6)
9079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9080 hardcode_direct=yes
9081 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9082 hardcode_libdir_separator=:
9083 hardcode_shlibpath_var=no
9084 ;;
9085
9086 openbsd*)
9087 hardcode_direct=yes
9088 hardcode_shlibpath_var=no
9089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9091 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9092 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9093 export_dynamic_flag_spec='${wl}-E'
9094 else
9095 case $host_os in
9096 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9098 hardcode_libdir_flag_spec='-R$libdir'
9099 ;;
9100 *)
9101 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9103 ;;
9104 esac
9105 fi
9106 ;;
9107
9108 os2*)
9109 hardcode_libdir_flag_spec='-L$libdir'
9110 hardcode_minus_L=yes
9111 allow_undefined_flag=unsupported
9112 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'
9113 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9114 ;;
9115
9116 osf3*)
9117 if test "$GCC" = yes; then
9118 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9119 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'
9120 else
9121 allow_undefined_flag=' -expect_unresolved \*'
9122 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'
9123 fi
9124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9125 hardcode_libdir_separator=:
9126 ;;
9127
9128 osf4* | osf5*) # as osf3* with the addition of -msym flag
9129 if test "$GCC" = yes; then
9130 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9131 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'
9132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9133 else
9134 allow_undefined_flag=' -expect_unresolved \*'
9135 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'
9136 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9137 $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'
9138
9139 # Both c and cxx compiler support -rpath directly
9140 hardcode_libdir_flag_spec='-rpath $libdir'
9141 fi
9142 hardcode_libdir_separator=:
9143 ;;
9144
9145 solaris*)
9146 no_undefined_flag=' -z text'
9147 if test "$GCC" = yes; then
9148 wlarc='${wl}'
9149 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9150 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9151 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9152 else
9153 wlarc=''
9154 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9155 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9156 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9157 fi
9158 hardcode_libdir_flag_spec='-R$libdir'
9159 hardcode_shlibpath_var=no
9160 case $host_os in
9161 solaris2.[0-5] | solaris2.[0-5].*) ;;
9162 *)
9163 # The compiler driver will combine linker options so we
9164 # cannot just pass the convience library names through
9165 # without $wl, iff we do not link with $LD.
9166 # Luckily, gcc supports the same syntax we need for Sun Studio.
9167 # Supported since Solaris 2.6 (maybe 2.5.1?)
9168 case $wlarc in
9169 '')
9170 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9171 *)
9172 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' ;;
9173 esac ;;
9174 esac
9175 link_all_deplibs=yes
9176 ;;
9177
9178 sunos4*)
9179 if test "x$host_vendor" = xsequent; then
9180 # Use $CC to link under sequent, because it throws in some extra .o
9181 # files that make .init and .fini sections work.
9182 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9183 else
9184 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9185 fi
9186 hardcode_libdir_flag_spec='-L$libdir'
9187 hardcode_direct=yes
9188 hardcode_minus_L=yes
9189 hardcode_shlibpath_var=no
9190 ;;
9191
9192 sysv4)
9193 case $host_vendor in
9194 sni)
9195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9196 hardcode_direct=yes # is this really true???
9197 ;;
9198 siemens)
9199 ## LD is ld it makes a PLAMLIB
9200 ## CC just makes a GrossModule.
9201 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9202 reload_cmds='$CC -r -o $output$reload_objs'
9203 hardcode_direct=no
9204 ;;
9205 motorola)
9206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9207 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9208 ;;
9209 esac
9210 runpath_var='LD_RUN_PATH'
9211 hardcode_shlibpath_var=no
9212 ;;
9213
9214 sysv4.3*)
9215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9216 hardcode_shlibpath_var=no
9217 export_dynamic_flag_spec='-Bexport'
9218 ;;
9219
9220 sysv4*MP*)
9221 if test -d /usr/nec; then
9222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9223 hardcode_shlibpath_var=no
9224 runpath_var=LD_RUN_PATH
9225 hardcode_runpath_var=yes
9226 ld_shlibs=yes
9227 fi
9228 ;;
9229
9230 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9231 no_undefined_flag='${wl}-z,text'
9232 archive_cmds_need_lc=no
9233 hardcode_shlibpath_var=no
9234 runpath_var='LD_RUN_PATH'
9235
9236 if test "$GCC" = yes; then
9237 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9238 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9239 else
9240 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9241 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9242 fi
9243 ;;
9244
9245 sysv5* | sco3.2v5* | sco5v6*)
9246 # Note: We can NOT use -z defs as we might desire, because we do not
9247 # link with -lc, and that would cause any symbols used from libc to
9248 # always be unresolved, which means just about no library would
9249 # ever link correctly. If we're not using GNU ld we use -z text
9250 # though, which does catch some bad symbols but isn't as heavy-handed
9251 # as -z defs.
9252 no_undefined_flag='${wl}-z,text'
9253 allow_undefined_flag='${wl}-z,nodefs'
9254 archive_cmds_need_lc=no
9255 hardcode_shlibpath_var=no
9256 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9257 hardcode_libdir_separator=':'
9258 link_all_deplibs=yes
9259 export_dynamic_flag_spec='${wl}-Bexport'
9260 runpath_var='LD_RUN_PATH'
9261
9262 if test "$GCC" = yes; then
9263 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9264 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9265 else
9266 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9267 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9268 fi
9269 ;;
9270
9271 uts4*)
9272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9273 hardcode_libdir_flag_spec='-L$libdir'
9274 hardcode_shlibpath_var=no
9275 ;;
9276
9277 *)
9278 ld_shlibs=no
9279 ;;
9280 esac
9281 fi
9282
9283{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9284echo "${ECHO_T}$ld_shlibs" >&6; }
9285test "$ld_shlibs" = no && can_build_shared=no
9286
9287#
9288# Do we need to explicitly link libc?
9289#
9290case "x$archive_cmds_need_lc" in
9291x|xyes)
9292 # Assume -lc should be added
9293 archive_cmds_need_lc=yes
9294
9295 if test "$enable_shared" = yes && test "$GCC" = yes; then
9296 case $archive_cmds in
9297 *'~'*)
9298 # FIXME: we may have to deal with multi-command sequences.
9299 ;;
9300 '$CC '*)
9301 # Test whether the compiler implicitly links with -lc since on some
9302 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9303 # to ld, don't add -lc before -lgcc.
9304 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9305echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9306 $rm conftest*
9307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9308
9309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9310 (eval $ac_compile) 2>&5
9311 ac_status=$?
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } 2>conftest.err; then
9314 soname=conftest
9315 lib=conftest
9316 libobjs=conftest.$ac_objext
9317 deplibs=
9318 wl=$lt_prog_compiler_wl
9319 pic_flag=$lt_prog_compiler_pic
9320 compiler_flags=-v
9321 linker_flags=-v
9322 verstring=
9323 output_objdir=.
9324 libname=conftest
9325 lt_save_allow_undefined_flag=$allow_undefined_flag
9326 allow_undefined_flag=
9327 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9328 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }
9332 then
9333 archive_cmds_need_lc=no
9334 else
9335 archive_cmds_need_lc=yes
9336 fi
9337 allow_undefined_flag=$lt_save_allow_undefined_flag
9338 else
9339 cat conftest.err 1>&5
9340 fi
9341 $rm conftest*
9342 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9343echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9344 ;;
9345 esac
9346 fi
9347 ;;
9348esac
9349
9350{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9351echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9352library_names_spec=
9353libname_spec='lib$name'
9354soname_spec=
9355shrext_cmds=".so"
9356postinstall_cmds=
9357postuninstall_cmds=
9358finish_cmds=
9359finish_eval=
9360shlibpath_var=
9361shlibpath_overrides_runpath=unknown
9362version_type=none
9363dynamic_linker="$host_os ld.so"
9364sys_lib_dlsearch_path_spec="/lib /usr/lib"
9365if test "$GCC" = yes; then
9366 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9367 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9368 # if the path contains ";" then we assume it to be the separator
9369 # otherwise default to the standard path separator (i.e. ":") - it is
9370 # assumed that no part of a normal pathname contains ";" but that should
9371 # okay in the real world where ";" in dirpaths is itself problematic.
9372 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9373 else
9374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9375 fi
9376else
9377 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9378fi
9379need_lib_prefix=unknown
9380hardcode_into_libs=no
9381
9382# when you set need_version to no, make sure it does not cause -set_version
9383# flags to be left without arguments
9384need_version=unknown
9385
9386case $host_os in
9387aix3*)
9388 version_type=linux
9389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9390 shlibpath_var=LIBPATH
9391
9392 # AIX 3 has no versioning support, so we append a major version to the name.
9393 soname_spec='${libname}${release}${shared_ext}$major'
9394 ;;
9395
9396aix4* | aix5*)
9397 version_type=linux
9398 need_lib_prefix=no
9399 need_version=no
9400 hardcode_into_libs=yes
9401 if test "$host_cpu" = ia64; then
9402 # AIX 5 supports IA64
9403 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9404 shlibpath_var=LD_LIBRARY_PATH
9405 else
9406 # With GCC up to 2.95.x, collect2 would create an import file
9407 # for dependence libraries. The import file would start with
9408 # the line `#! .'. This would cause the generated library to
9409 # depend on `.', always an invalid library. This was fixed in
9410 # development snapshots of GCC prior to 3.0.
9411 case $host_os in
9412 aix4 | aix4.[01] | aix4.[01].*)
9413 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9414 echo ' yes '
9415 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9416 :
9417 else
9418 can_build_shared=no
9419 fi
9420 ;;
9421 esac
9422 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9423 # soname into executable. Probably we can add versioning support to
9424 # collect2, so additional links can be useful in future.
9425 if test "$aix_use_runtimelinking" = yes; then
9426 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9427 # instead of lib<name>.a to let people know that these are not
9428 # typical AIX shared libraries.
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430 else
9431 # We preserve .a as extension for shared libraries through AIX4.2
9432 # and later when we are not doing run time linking.
9433 library_names_spec='${libname}${release}.a $libname.a'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 fi
9436 shlibpath_var=LIBPATH
9437 fi
9438 ;;
9439
9440amigaos*)
9441 library_names_spec='$libname.ixlibrary $libname.a'
9442 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9443 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'
9444 ;;
9445
9446beos*)
9447 library_names_spec='${libname}${shared_ext}'
9448 dynamic_linker="$host_os ld.so"
9449 shlibpath_var=LIBRARY_PATH
9450 ;;
9451
9452bsdi[45]*)
9453 version_type=linux
9454 need_version=no
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9460 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9461 # the default ld.so.conf also contains /usr/contrib/lib and
9462 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9463 # libtool to hard-code these into programs
9464 ;;
9465
9466cygwin* | mingw* | pw32*)
9467 version_type=windows
9468 shrext_cmds=".dll"
9469 need_version=no
9470 need_lib_prefix=no
9471
9472 case $GCC,$host_os in
9473 yes,cygwin* | yes,mingw* | yes,pw32*)
9474 library_names_spec='$libname.dll.a'
9475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9476 postinstall_cmds='base_file=`basename \${file}`~
9477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9478 dldir=$destdir/`dirname \$dlpath`~
9479 test -d \$dldir || mkdir -p \$dldir~
9480 $install_prog $dir/$dlname \$dldir/$dlname~
9481 chmod a+x \$dldir/$dlname'
9482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9483 dlpath=$dir/\$dldll~
9484 $rm \$dlpath'
9485 shlibpath_overrides_runpath=yes
9486
9487 case $host_os in
9488 cygwin*)
9489 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9490 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9491 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9492 ;;
9493 mingw*)
9494 # MinGW DLLs use traditional 'lib' prefix
9495 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9496 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9497 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9498 # It is most probably a Windows format PATH printed by
9499 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9500 # path with ; separators, and with drive letters. We can handle the
9501 # drive letters (cygwin fileutils understands them), so leave them,
9502 # especially as we might pass files found there to a mingw objdump,
9503 # which wouldn't understand a cygwinified path. Ahh.
9504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9505 else
9506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9507 fi
9508 ;;
9509 pw32*)
9510 # pw32 DLLs use 'pw' prefix rather than 'lib'
9511 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9512 ;;
9513 esac
9514 ;;
9515
9516 *)
9517 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9518 ;;
9519 esac
9520 dynamic_linker='Win32 ld.exe'
9521 # FIXME: first we should search . and the directory the executable is in
9522 shlibpath_var=PATH
9523 ;;
9524
9525darwin* | rhapsody*)
9526 dynamic_linker="$host_os dyld"
9527 version_type=darwin
9528 need_lib_prefix=no
9529 need_version=no
9530 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9531 soname_spec='${libname}${release}${major}$shared_ext'
9532 shlibpath_overrides_runpath=yes
9533 shlibpath_var=DYLD_LIBRARY_PATH
9534 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9535 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9536 if test "$GCC" = yes; then
9537 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"`
9538 else
9539 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9540 fi
9541 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9542 ;;
9543
9544dgux*)
9545 version_type=linux
9546 need_lib_prefix=no
9547 need_version=no
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 shlibpath_var=LD_LIBRARY_PATH
9551 ;;
9552
9553freebsd1*)
9554 dynamic_linker=no
9555 ;;
9556
9557freebsd* | dragonfly*)
9558 # DragonFly does not have aout. When/if they implement a new
9559 # versioning mechanism, adjust this.
9560 if test -x /usr/bin/objformat; then
9561 objformat=`/usr/bin/objformat`
9562 else
9563 case $host_os in
9564 freebsd[123]*) objformat=aout ;;
9565 *) objformat=elf ;;
9566 esac
9567 fi
9568 version_type=freebsd-$objformat
9569 case $version_type in
9570 freebsd-elf*)
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9572 need_version=no
9573 need_lib_prefix=no
9574 ;;
9575 freebsd-*)
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9577 need_version=yes
9578 ;;
9579 esac
9580 shlibpath_var=LD_LIBRARY_PATH
9581 case $host_os in
9582 freebsd2*)
9583 shlibpath_overrides_runpath=yes
9584 ;;
9585 freebsd3.[01]* | freebsdelf3.[01]*)
9586 shlibpath_overrides_runpath=yes
9587 hardcode_into_libs=yes
9588 ;;
9589 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9590 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9591 shlibpath_overrides_runpath=no
9592 hardcode_into_libs=yes
9593 ;;
9594 freebsd*) # from 4.6 on
9595 shlibpath_overrides_runpath=yes
9596 hardcode_into_libs=yes
9597 ;;
9598 esac
9599 ;;
9600
9601gnu*)
9602 version_type=linux
9603 need_lib_prefix=no
9604 need_version=no
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9606 soname_spec='${libname}${release}${shared_ext}$major'
9607 shlibpath_var=LD_LIBRARY_PATH
9608 hardcode_into_libs=yes
9609 ;;
9610
9611hpux9* | hpux10* | hpux11*)
9612 # Give a soname corresponding to the major version so that dld.sl refuses to
9613 # link against other versions.
9614 version_type=sunos
9615 need_lib_prefix=no
9616 need_version=no
9617 case $host_cpu in
9618 ia64*)
9619 shrext_cmds='.so'
9620 hardcode_into_libs=yes
9621 dynamic_linker="$host_os dld.so"
9622 shlibpath_var=LD_LIBRARY_PATH
9623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 if test "X$HPUX_IA64_MODE" = X32; then
9627 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9628 else
9629 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9630 fi
9631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9632 ;;
9633 hppa*64*)
9634 shrext_cmds='.sl'
9635 hardcode_into_libs=yes
9636 dynamic_linker="$host_os dld.sl"
9637 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640 soname_spec='${libname}${release}${shared_ext}$major'
9641 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9643 ;;
9644 *)
9645 shrext_cmds='.sl'
9646 dynamic_linker="$host_os dld.sl"
9647 shlibpath_var=SHLIB_PATH
9648 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9650 soname_spec='${libname}${release}${shared_ext}$major'
9651 ;;
9652 esac
9653 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9654 postinstall_cmds='chmod 555 $lib'
9655 ;;
9656
9657interix3*)
9658 version_type=linux
9659 need_lib_prefix=no
9660 need_version=no
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9664 shlibpath_var=LD_LIBRARY_PATH
9665 shlibpath_overrides_runpath=no
9666 hardcode_into_libs=yes
9667 ;;
9668
9669irix5* | irix6* | nonstopux*)
9670 case $host_os in
9671 nonstopux*) version_type=nonstopux ;;
9672 *)
9673 if test "$lt_cv_prog_gnu_ld" = yes; then
9674 version_type=linux
9675 else
9676 version_type=irix
9677 fi ;;
9678 esac
9679 need_lib_prefix=no
9680 need_version=no
9681 soname_spec='${libname}${release}${shared_ext}$major'
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9683 case $host_os in
9684 irix5* | nonstopux*)
9685 libsuff= shlibsuff=
9686 ;;
9687 *)
9688 case $LD in # libtool.m4 will add one of these switches to LD
9689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9690 libsuff= shlibsuff= libmagic=32-bit;;
9691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9692 libsuff=32 shlibsuff=N32 libmagic=N32;;
9693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9695 *) libsuff= shlibsuff= libmagic=never-match;;
9696 esac
9697 ;;
9698 esac
9699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9700 shlibpath_overrides_runpath=no
9701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9703 hardcode_into_libs=yes
9704 ;;
9705
9706# No shared lib support for Linux oldld, aout, or coff.
9707linux*oldld* | linux*aout* | linux*coff*)
9708 dynamic_linker=no
9709 ;;
9710
9711# This must be Linux ELF.
9712linux* | k*bsd*-gnu)
9713 version_type=linux
9714 need_lib_prefix=no
9715 need_version=no
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9719 shlibpath_var=LD_LIBRARY_PATH
9720 shlibpath_overrides_runpath=no
9721 # This implies no fast_install, which is unacceptable.
9722 # Some rework will be needed to allow for fast_install
9723 # before this can be enabled.
9724 hardcode_into_libs=yes
9725
9726 # Append ld.so.conf contents to the search path
9727 if test -f /etc/ld.so.conf; then
9728 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' ' '`
9729 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9730 fi
9731
9732 # We used to test for /lib/ld.so.1 and disable shared libraries on
9733 # powerpc, because MkLinux only supported shared libraries with the
9734 # GNU dynamic linker. Since this was broken with cross compilers,
9735 # most powerpc-linux boxes support dynamic linking these days and
9736 # people can always --disable-shared, the test was removed, and we
9737 # assume the GNU/Linux dynamic linker is in use.
9738 dynamic_linker='GNU/Linux ld.so'
9739 ;;
9740
9741netbsdelf*-gnu)
9742 version_type=linux
9743 need_lib_prefix=no
9744 need_version=no
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9746 soname_spec='${libname}${release}${shared_ext}$major'
9747 shlibpath_var=LD_LIBRARY_PATH
9748 shlibpath_overrides_runpath=no
9749 hardcode_into_libs=yes
9750 dynamic_linker='NetBSD ld.elf_so'
9751 ;;
9752
9753netbsd*)
9754 version_type=sunos
9755 need_lib_prefix=no
9756 need_version=no
9757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9760 dynamic_linker='NetBSD (a.out) ld.so'
9761 else
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 dynamic_linker='NetBSD ld.elf_so'
9765 fi
9766 shlibpath_var=LD_LIBRARY_PATH
9767 shlibpath_overrides_runpath=yes
9768 hardcode_into_libs=yes
9769 ;;
9770
9771newsos6)
9772 version_type=linux
9773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9774 shlibpath_var=LD_LIBRARY_PATH
9775 shlibpath_overrides_runpath=yes
9776 ;;
9777
9778nto-qnx*)
9779 version_type=linux
9780 need_lib_prefix=no
9781 need_version=no
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 shlibpath_var=LD_LIBRARY_PATH
9785 shlibpath_overrides_runpath=yes
9786 ;;
9787
9788openbsd*)
9789 version_type=sunos
9790 sys_lib_dlsearch_path_spec="/usr/lib"
9791 need_lib_prefix=no
9792 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9793 case $host_os in
9794 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9795 *) need_version=no ;;
9796 esac
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9799 shlibpath_var=LD_LIBRARY_PATH
9800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9801 case $host_os in
9802 openbsd2.[89] | openbsd2.[89].*)
9803 shlibpath_overrides_runpath=no
9804 ;;
9805 *)
9806 shlibpath_overrides_runpath=yes
9807 ;;
9808 esac
9809 else
9810 shlibpath_overrides_runpath=yes
9811 fi
9812 ;;
9813
9814os2*)
9815 libname_spec='$name'
9816 shrext_cmds=".dll"
9817 need_lib_prefix=no
9818 library_names_spec='$libname${shared_ext} $libname.a'
9819 dynamic_linker='OS/2 ld.exe'
9820 shlibpath_var=LIBPATH
9821 ;;
9822
9823osf3* | osf4* | osf5*)
9824 version_type=osf
9825 need_lib_prefix=no
9826 need_version=no
9827 soname_spec='${libname}${release}${shared_ext}$major'
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829 shlibpath_var=LD_LIBRARY_PATH
9830 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9831 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9832 ;;
9833
9834solaris*)
9835 version_type=linux
9836 need_lib_prefix=no
9837 need_version=no
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9839 soname_spec='${libname}${release}${shared_ext}$major'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 shlibpath_overrides_runpath=yes
9842 hardcode_into_libs=yes
9843 # ldd complains unless libraries are executable
9844 postinstall_cmds='chmod +x $lib'
9845 ;;
9846
9847sunos4*)
9848 version_type=sunos
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9850 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9851 shlibpath_var=LD_LIBRARY_PATH
9852 shlibpath_overrides_runpath=yes
9853 if test "$with_gnu_ld" = yes; then
9854 need_lib_prefix=no
9855 fi
9856 need_version=yes
9857 ;;
9858
9859sysv4 | sysv4.3*)
9860 version_type=linux
9861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9862 soname_spec='${libname}${release}${shared_ext}$major'
9863 shlibpath_var=LD_LIBRARY_PATH
9864 case $host_vendor in
9865 sni)
9866 shlibpath_overrides_runpath=no
9867 need_lib_prefix=no
9868 export_dynamic_flag_spec='${wl}-Blargedynsym'
9869 runpath_var=LD_RUN_PATH
9870 ;;
9871 siemens)
9872 need_lib_prefix=no
9873 ;;
9874 motorola)
9875 need_lib_prefix=no
9876 need_version=no
9877 shlibpath_overrides_runpath=no
9878 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9879 ;;
9880 esac
9881 ;;
9882
9883sysv4*MP*)
9884 if test -d /usr/nec ;then
9885 version_type=linux
9886 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9887 soname_spec='$libname${shared_ext}.$major'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 fi
9890 ;;
9891
9892sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9893 version_type=freebsd-elf
9894 need_lib_prefix=no
9895 need_version=no
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 shlibpath_var=LD_LIBRARY_PATH
9899 hardcode_into_libs=yes
9900 if test "$with_gnu_ld" = yes; then
9901 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9902 shlibpath_overrides_runpath=no
9903 else
9904 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9905 shlibpath_overrides_runpath=yes
9906 case $host_os in
9907 sco3.2v5*)
9908 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9909 ;;
9910 esac
9911 fi
9912 sys_lib_dlsearch_path_spec='/usr/lib'
9913 ;;
9914
9915uts4*)
9916 version_type=linux
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 ;;
9921
9922*)
9923 dynamic_linker=no
9924 ;;
9925esac
9926{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9927echo "${ECHO_T}$dynamic_linker" >&6; }
9928test "$dynamic_linker" = no && can_build_shared=no
9929
9930variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9931if test "$GCC" = yes; then
9932 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9933fi
9934
9935{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9936echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9937hardcode_action=
9938if test -n "$hardcode_libdir_flag_spec" || \
9939 test -n "$runpath_var" || \
9940 test "X$hardcode_automatic" = "Xyes" ; then
9941
9942 # We can hardcode non-existant directories.
9943 if test "$hardcode_direct" != no &&
9944 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9945 # have to relink, otherwise we might link with an installed library
9946 # when we should be linking with a yet-to-be-installed one
9947 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9948 test "$hardcode_minus_L" != no; then
9949 # Linking always hardcodes the temporary library directory.
9950 hardcode_action=relink
9951 else
9952 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9953 hardcode_action=immediate
9954 fi
9955else
9956 # We cannot hardcode anything, or else we can only hardcode existing
9957 # directories.
9958 hardcode_action=unsupported
9959fi
9960{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9961echo "${ECHO_T}$hardcode_action" >&6; }
9962
9963if test "$hardcode_action" = relink; then
9964 # Fast installation is not supported
9965 enable_fast_install=no
9966elif test "$shlibpath_overrides_runpath" = yes ||
9967 test "$enable_shared" = no; then
9968 # Fast installation is not necessary
9969 enable_fast_install=needless
9970fi
9971
9972striplib=
9973old_striplib=
9974{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9975echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9976if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9977 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9978 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9979 { echo "$as_me:$LINENO: result: yes" >&5
9980echo "${ECHO_T}yes" >&6; }
9981else
9982# FIXME - insert some real tests, host_os isn't really good enough
9983 case $host_os in
9984 darwin*)
9985 if test -n "$STRIP" ; then
9986 striplib="$STRIP -x"
9987 { echo "$as_me:$LINENO: result: yes" >&5
9988echo "${ECHO_T}yes" >&6; }
9989 else
9990 { echo "$as_me:$LINENO: result: no" >&5
9991echo "${ECHO_T}no" >&6; }
9992fi
9993 ;;
9994 *)
9995 { echo "$as_me:$LINENO: result: no" >&5
9996echo "${ECHO_T}no" >&6; }
9997 ;;
9998 esac
9999fi
10000
10001if test "x$enable_dlopen" != xyes; then
10002 enable_dlopen=unknown
10003 enable_dlopen_self=unknown
10004 enable_dlopen_self_static=unknown
10005else
10006 lt_cv_dlopen=no
10007 lt_cv_dlopen_libs=
10008
10009 case $host_os in
10010 beos*)
10011 lt_cv_dlopen="load_add_on"
10012 lt_cv_dlopen_libs=
10013 lt_cv_dlopen_self=yes
10014 ;;
10015
10016 mingw* | pw32*)
10017 lt_cv_dlopen="LoadLibrary"
10018 lt_cv_dlopen_libs=
10019 ;;
10020
10021 cygwin*)
10022 lt_cv_dlopen="dlopen"
10023 lt_cv_dlopen_libs=
10024 ;;
10025
10026 darwin*)
10027 # if libdl is installed we need to link against it
10028 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10029echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10030if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10032else
10033 ac_check_lib_save_LIBS=$LIBS
10034LIBS="-ldl $LIBS"
10035cat >conftest.$ac_ext <<_ACEOF
10036/* confdefs.h. */
10037_ACEOF
10038cat confdefs.h >>conftest.$ac_ext
10039cat >>conftest.$ac_ext <<_ACEOF
10040/* end confdefs.h. */
10041
10042/* Override any GCC internal prototype to avoid an error.
10043 Use char because int might match the return type of a GCC
10044 builtin and then its argument prototype would still apply. */
10045#ifdef __cplusplus
10046extern "C"
10047#endif
10048char dlopen ();
10049int
10050main ()
10051{
10052return dlopen ();
10053 ;
10054 return 0;
10055}
10056_ACEOF
10057rm -f conftest.$ac_objext conftest$ac_exeext
10058if { (ac_try="$ac_link"
10059case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10062esac
10063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_link") 2>conftest.er1
10065 ac_status=$?
10066 grep -v '^ *+' conftest.er1 >conftest.err
10067 rm -f conftest.er1
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10072 { (case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10075esac
10076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_try") 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; } &&
10081 { ac_try='test -s conftest$ac_exeext'
10082 { (case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10085esac
10086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_try") 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10091 ac_cv_lib_dl_dlopen=yes
10092else
10093 echo "$as_me: failed program was:" >&5
10094sed 's/^/| /' conftest.$ac_ext >&5
10095
10096 ac_cv_lib_dl_dlopen=no
10097fi
10098
10099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10100 conftest$ac_exeext conftest.$ac_ext
10101LIBS=$ac_check_lib_save_LIBS
10102fi
10103{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10104echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10105if test $ac_cv_lib_dl_dlopen = yes; then
10106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10107else
10108
10109 lt_cv_dlopen="dyld"
10110 lt_cv_dlopen_libs=
10111 lt_cv_dlopen_self=yes
10112
10113fi
10114
10115 ;;
10116
10117 *)
10118 { echo "$as_me:$LINENO: checking for shl_load" >&5
10119echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10120if test "${ac_cv_func_shl_load+set}" = set; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10122else
10123 cat >conftest.$ac_ext <<_ACEOF
10124/* confdefs.h. */
10125_ACEOF
10126cat confdefs.h >>conftest.$ac_ext
10127cat >>conftest.$ac_ext <<_ACEOF
10128/* end confdefs.h. */
10129/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10131#define shl_load innocuous_shl_load
10132
10133/* System header to define __stub macros and hopefully few prototypes,
10134 which can conflict with char shl_load (); below.
10135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10136 <limits.h> exists even on freestanding compilers. */
10137
10138#ifdef __STDC__
10139# include <limits.h>
10140#else
10141# include <assert.h>
10142#endif
10143
10144#undef shl_load
10145
10146/* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
10149#ifdef __cplusplus
10150extern "C"
10151#endif
10152char shl_load ();
10153/* The GNU C library defines this for functions which it implements
10154 to always fail with ENOSYS. Some functions are actually named
10155 something starting with __ and the normal name is an alias. */
10156#if defined __stub_shl_load || defined __stub___shl_load
10157choke me
10158#endif
10159
10160int
10161main ()
10162{
10163return shl_load ();
10164 ;
10165 return 0;
10166}
10167_ACEOF
10168rm -f conftest.$ac_objext conftest$ac_exeext
10169if { (ac_try="$ac_link"
10170case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173esac
10174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_link") 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } &&
10182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10183 { (case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10186esac
10187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_try") 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; } &&
10192 { ac_try='test -s conftest$ac_exeext'
10193 { (case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10196esac
10197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_try") 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; }; then
10202 ac_cv_func_shl_load=yes
10203else
10204 echo "$as_me: failed program was:" >&5
10205sed 's/^/| /' conftest.$ac_ext >&5
10206
10207 ac_cv_func_shl_load=no
10208fi
10209
10210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10211 conftest$ac_exeext conftest.$ac_ext
10212fi
10213{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10214echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10215if test $ac_cv_func_shl_load = yes; then
10216 lt_cv_dlopen="shl_load"
10217else
10218 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10219echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10220if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10222else
10223 ac_check_lib_save_LIBS=$LIBS
10224LIBS="-ldld $LIBS"
10225cat >conftest.$ac_ext <<_ACEOF
10226/* confdefs.h. */
10227_ACEOF
10228cat confdefs.h >>conftest.$ac_ext
10229cat >>conftest.$ac_ext <<_ACEOF
10230/* end confdefs.h. */
10231
10232/* Override any GCC internal prototype to avoid an error.
10233 Use char because int might match the return type of a GCC
10234 builtin and then its argument prototype would still apply. */
10235#ifdef __cplusplus
10236extern "C"
10237#endif
10238char shl_load ();
10239int
10240main ()
10241{
10242return shl_load ();
10243 ;
10244 return 0;
10245}
10246_ACEOF
10247rm -f conftest.$ac_objext conftest$ac_exeext
10248if { (ac_try="$ac_link"
10249case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10252esac
10253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_link") 2>conftest.er1
10255 ac_status=$?
10256 grep -v '^ *+' conftest.er1 >conftest.err
10257 rm -f conftest.er1
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10262 { (case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265esac
10266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_try") 2>&5
10268 ac_status=$?
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; } &&
10271 { ac_try='test -s conftest$ac_exeext'
10272 { (case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10275esac
10276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_try") 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
10281 ac_cv_lib_dld_shl_load=yes
10282else
10283 echo "$as_me: failed program was:" >&5
10284sed 's/^/| /' conftest.$ac_ext >&5
10285
10286 ac_cv_lib_dld_shl_load=no
10287fi
10288
10289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10290 conftest$ac_exeext conftest.$ac_ext
10291LIBS=$ac_check_lib_save_LIBS
10292fi
10293{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10294echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10295if test $ac_cv_lib_dld_shl_load = yes; then
10296 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10297else
10298 { echo "$as_me:$LINENO: checking for dlopen" >&5
10299echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10300if test "${ac_cv_func_dlopen+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302else
10303 cat >conftest.$ac_ext <<_ACEOF
10304/* confdefs.h. */
10305_ACEOF
10306cat confdefs.h >>conftest.$ac_ext
10307cat >>conftest.$ac_ext <<_ACEOF
10308/* end confdefs.h. */
10309/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10311#define dlopen innocuous_dlopen
10312
10313/* System header to define __stub macros and hopefully few prototypes,
10314 which can conflict with char dlopen (); below.
10315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10316 <limits.h> exists even on freestanding compilers. */
10317
10318#ifdef __STDC__
10319# include <limits.h>
10320#else
10321# include <assert.h>
10322#endif
10323
10324#undef dlopen
10325
10326/* Override any GCC internal prototype to avoid an error.
10327 Use char because int might match the return type of a GCC
10328 builtin and then its argument prototype would still apply. */
10329#ifdef __cplusplus
10330extern "C"
10331#endif
10332char dlopen ();
10333/* The GNU C library defines this for functions which it implements
10334 to always fail with ENOSYS. Some functions are actually named
10335 something starting with __ and the normal name is an alias. */
10336#if defined __stub_dlopen || defined __stub___dlopen
10337choke me
10338#endif
10339
10340int
10341main ()
10342{
10343return dlopen ();
10344 ;
10345 return 0;
10346}
10347_ACEOF
10348rm -f conftest.$ac_objext conftest$ac_exeext
10349if { (ac_try="$ac_link"
10350case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10353esac
10354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_link") 2>conftest.er1
10356 ac_status=$?
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -f conftest.er1
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } &&
10362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10363 { (case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10366esac
10367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_try") 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; } &&
10372 { ac_try='test -s conftest$ac_exeext'
10373 { (case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10376esac
10377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_try") 2>&5
10379 ac_status=$?
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }; }; then
10382 ac_cv_func_dlopen=yes
10383else
10384 echo "$as_me: failed program was:" >&5
10385sed 's/^/| /' conftest.$ac_ext >&5
10386
10387 ac_cv_func_dlopen=no
10388fi
10389
10390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10391 conftest$ac_exeext conftest.$ac_ext
10392fi
10393{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10394echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10395if test $ac_cv_func_dlopen = yes; then
10396 lt_cv_dlopen="dlopen"
10397else
10398 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10399echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10400if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10402else
10403 ac_check_lib_save_LIBS=$LIBS
10404LIBS="-ldl $LIBS"
10405cat >conftest.$ac_ext <<_ACEOF
10406/* confdefs.h. */
10407_ACEOF
10408cat confdefs.h >>conftest.$ac_ext
10409cat >>conftest.$ac_ext <<_ACEOF
10410/* end confdefs.h. */
10411
10412/* Override any GCC internal prototype to avoid an error.
10413 Use char because int might match the return type of a GCC
10414 builtin and then its argument prototype would still apply. */
10415#ifdef __cplusplus
10416extern "C"
10417#endif
10418char dlopen ();
10419int
10420main ()
10421{
10422return dlopen ();
10423 ;
10424 return 0;
10425}
10426_ACEOF
10427rm -f conftest.$ac_objext conftest$ac_exeext
10428if { (ac_try="$ac_link"
10429case "(($ac_try" in
10430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431 *) ac_try_echo=$ac_try;;
10432esac
10433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434 (eval "$ac_link") 2>conftest.er1
10435 ac_status=$?
10436 grep -v '^ *+' conftest.er1 >conftest.err
10437 rm -f conftest.er1
10438 cat conftest.err >&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } &&
10441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10442 { (case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10445esac
10446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_try") 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; } &&
10451 { ac_try='test -s conftest$ac_exeext'
10452 { (case "(($ac_try" in
10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10455esac
10456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_try") 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; }; then
10461 ac_cv_lib_dl_dlopen=yes
10462else
10463 echo "$as_me: failed program was:" >&5
10464sed 's/^/| /' conftest.$ac_ext >&5
10465
10466 ac_cv_lib_dl_dlopen=no
10467fi
10468
10469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10470 conftest$ac_exeext conftest.$ac_ext
10471LIBS=$ac_check_lib_save_LIBS
10472fi
10473{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10474echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10475if test $ac_cv_lib_dl_dlopen = yes; then
10476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10477else
10478 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10479echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10480if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482else
10483 ac_check_lib_save_LIBS=$LIBS
10484LIBS="-lsvld $LIBS"
10485cat >conftest.$ac_ext <<_ACEOF
10486/* confdefs.h. */
10487_ACEOF
10488cat confdefs.h >>conftest.$ac_ext
10489cat >>conftest.$ac_ext <<_ACEOF
10490/* end confdefs.h. */
10491
10492/* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply. */
10495#ifdef __cplusplus
10496extern "C"
10497#endif
10498char dlopen ();
10499int
10500main ()
10501{
10502return dlopen ();
10503 ;
10504 return 0;
10505}
10506_ACEOF
10507rm -f conftest.$ac_objext conftest$ac_exeext
10508if { (ac_try="$ac_link"
10509case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10512esac
10513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_link") 2>conftest.er1
10515 ac_status=$?
10516 grep -v '^ *+' conftest.er1 >conftest.err
10517 rm -f conftest.er1
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10522 { (case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525esac
10526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_try") 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; } &&
10531 { ac_try='test -s conftest$ac_exeext'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541 ac_cv_lib_svld_dlopen=yes
10542else
10543 echo "$as_me: failed program was:" >&5
10544sed 's/^/| /' conftest.$ac_ext >&5
10545
10546 ac_cv_lib_svld_dlopen=no
10547fi
10548
10549rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10550 conftest$ac_exeext conftest.$ac_ext
10551LIBS=$ac_check_lib_save_LIBS
10552fi
10553{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10554echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10555if test $ac_cv_lib_svld_dlopen = yes; then
10556 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10557else
10558 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10559echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10560if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10562else
10563 ac_check_lib_save_LIBS=$LIBS
10564LIBS="-ldld $LIBS"
10565cat >conftest.$ac_ext <<_ACEOF
10566/* confdefs.h. */
10567_ACEOF
10568cat confdefs.h >>conftest.$ac_ext
10569cat >>conftest.$ac_ext <<_ACEOF
10570/* end confdefs.h. */
10571
10572/* Override any GCC internal prototype to avoid an error.
10573 Use char because int might match the return type of a GCC
10574 builtin and then its argument prototype would still apply. */
10575#ifdef __cplusplus
10576extern "C"
10577#endif
10578char dld_link ();
10579int
10580main ()
10581{
10582return dld_link ();
10583 ;
10584 return 0;
10585}
10586_ACEOF
10587rm -f conftest.$ac_objext conftest$ac_exeext
10588if { (ac_try="$ac_link"
10589case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592esac
10593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_link") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } &&
10601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10602 { (case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605esac
10606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_try") 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; } &&
10611 { ac_try='test -s conftest$ac_exeext'
10612 { (case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615esac
10616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_try") 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_cv_lib_dld_dld_link=yes
10622else
10623 echo "$as_me: failed program was:" >&5
10624sed 's/^/| /' conftest.$ac_ext >&5
10625
10626 ac_cv_lib_dld_dld_link=no
10627fi
10628
10629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10630 conftest$ac_exeext conftest.$ac_ext
10631LIBS=$ac_check_lib_save_LIBS
10632fi
10633{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10634echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10635if test $ac_cv_lib_dld_dld_link = yes; then
10636 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10637fi
10638
10639
10640fi
10641
10642
10643fi
10644
10645
10646fi
10647
10648
10649fi
10650
10651
10652fi
10653
10654 ;;
10655 esac
10656
10657 if test "x$lt_cv_dlopen" != xno; then
10658 enable_dlopen=yes
10659 else
10660 enable_dlopen=no
10661 fi
10662
10663 case $lt_cv_dlopen in
10664 dlopen)
10665 save_CPPFLAGS="$CPPFLAGS"
10666 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10667
10668 save_LDFLAGS="$LDFLAGS"
10669 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10670
10671 save_LIBS="$LIBS"
10672 LIBS="$lt_cv_dlopen_libs $LIBS"
10673
10674 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10675echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10676if test "${lt_cv_dlopen_self+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10678else
10679 if test "$cross_compiling" = yes; then :
10680 lt_cv_dlopen_self=cross
10681else
10682 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10683 lt_status=$lt_dlunknown
10684 cat > conftest.$ac_ext <<EOF
10685#line 10685 "configure"
10686#include "confdefs.h"
10687
10688#if HAVE_DLFCN_H
10689#include <dlfcn.h>
10690#endif
10691
10692#include <stdio.h>
10693
10694#ifdef RTLD_GLOBAL
10695# define LT_DLGLOBAL RTLD_GLOBAL
10696#else
10697# ifdef DL_GLOBAL
10698# define LT_DLGLOBAL DL_GLOBAL
10699# else
10700# define LT_DLGLOBAL 0
10701# endif
10702#endif
10703
10704/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10705 find out it does not work in some platform. */
10706#ifndef LT_DLLAZY_OR_NOW
10707# ifdef RTLD_LAZY
10708# define LT_DLLAZY_OR_NOW RTLD_LAZY
10709# else
10710# ifdef DL_LAZY
10711# define LT_DLLAZY_OR_NOW DL_LAZY
10712# else
10713# ifdef RTLD_NOW
10714# define LT_DLLAZY_OR_NOW RTLD_NOW
10715# else
10716# ifdef DL_NOW
10717# define LT_DLLAZY_OR_NOW DL_NOW
10718# else
10719# define LT_DLLAZY_OR_NOW 0
10720# endif
10721# endif
10722# endif
10723# endif
10724#endif
10725
10726#ifdef __cplusplus
10727extern "C" void exit (int);
10728#endif
10729
10730void fnord() { int i=42;}
10731int main ()
10732{
10733 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10734 int status = $lt_dlunknown;
10735
10736 if (self)
10737 {
10738 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10739 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10740 /* dlclose (self); */
10741 }
10742 else
10743 puts (dlerror ());
10744
10745 exit (status);
10746}
10747EOF
10748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10749 (eval $ac_link) 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10753 (./conftest; exit; ) >&5 2>/dev/null
10754 lt_status=$?
10755 case x$lt_status in
10756 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10757 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10758 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10759 esac
10760 else :
10761 # compilation failed
10762 lt_cv_dlopen_self=no
10763 fi
10764fi
10765rm -fr conftest*
10766
10767
10768fi
10769{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10770echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10771
10772 if test "x$lt_cv_dlopen_self" = xyes; then
10773 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10774 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10775echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10776if test "${lt_cv_dlopen_self_static+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778else
10779 if test "$cross_compiling" = yes; then :
10780 lt_cv_dlopen_self_static=cross
10781else
10782 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10783 lt_status=$lt_dlunknown
10784 cat > conftest.$ac_ext <<EOF
10785#line 10785 "configure"
10786#include "confdefs.h"
10787
10788#if HAVE_DLFCN_H
10789#include <dlfcn.h>
10790#endif
10791
10792#include <stdio.h>
10793
10794#ifdef RTLD_GLOBAL
10795# define LT_DLGLOBAL RTLD_GLOBAL
10796#else
10797# ifdef DL_GLOBAL
10798# define LT_DLGLOBAL DL_GLOBAL
10799# else
10800# define LT_DLGLOBAL 0
10801# endif
10802#endif
10803
10804/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10805 find out it does not work in some platform. */
10806#ifndef LT_DLLAZY_OR_NOW
10807# ifdef RTLD_LAZY
10808# define LT_DLLAZY_OR_NOW RTLD_LAZY
10809# else
10810# ifdef DL_LAZY
10811# define LT_DLLAZY_OR_NOW DL_LAZY
10812# else
10813# ifdef RTLD_NOW
10814# define LT_DLLAZY_OR_NOW RTLD_NOW
10815# else
10816# ifdef DL_NOW
10817# define LT_DLLAZY_OR_NOW DL_NOW
10818# else
10819# define LT_DLLAZY_OR_NOW 0
10820# endif
10821# endif
10822# endif
10823# endif
10824#endif
10825
10826#ifdef __cplusplus
10827extern "C" void exit (int);
10828#endif
10829
10830void fnord() { int i=42;}
10831int main ()
10832{
10833 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10834 int status = $lt_dlunknown;
10835
10836 if (self)
10837 {
10838 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10839 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10840 /* dlclose (self); */
10841 }
10842 else
10843 puts (dlerror ());
10844
10845 exit (status);
10846}
10847EOF
10848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10849 (eval $ac_link) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10853 (./conftest; exit; ) >&5 2>/dev/null
10854 lt_status=$?
10855 case x$lt_status in
10856 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10857 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10858 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10859 esac
10860 else :
10861 # compilation failed
10862 lt_cv_dlopen_self_static=no
10863 fi
10864fi
10865rm -fr conftest*
10866
10867
10868fi
10869{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10870echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10871 fi
10872
10873 CPPFLAGS="$save_CPPFLAGS"
10874 LDFLAGS="$save_LDFLAGS"
10875 LIBS="$save_LIBS"
10876 ;;
10877 esac
10878
10879 case $lt_cv_dlopen_self in
10880 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10881 *) enable_dlopen_self=unknown ;;
10882 esac
10883
10884 case $lt_cv_dlopen_self_static in
10885 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10886 *) enable_dlopen_self_static=unknown ;;
10887 esac
10888fi
10889
10890
10891# Report which library types will actually be built
10892{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10893echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10894{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10895echo "${ECHO_T}$can_build_shared" >&6; }
10896
10897{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10898echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10899test "$can_build_shared" = "no" && enable_shared=no
10900
10901# On AIX, shared libraries and static libraries use the same namespace, and
10902# are all built from PIC.
10903case $host_os in
10904aix3*)
10905 test "$enable_shared" = yes && enable_static=no
10906 if test -n "$RANLIB"; then
10907 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10908 postinstall_cmds='$RANLIB $lib'
10909 fi
10910 ;;
10911
10912aix4* | aix5*)
10913 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10914 test "$enable_shared" = yes && enable_static=no
10915 fi
10916 ;;
10917esac
10918{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10919echo "${ECHO_T}$enable_shared" >&6; }
10920
10921{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10922echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10923# Make sure either enable_shared or enable_static is yes.
10924test "$enable_shared" = yes || enable_static=yes
10925{ echo "$as_me:$LINENO: result: $enable_static" >&5
10926echo "${ECHO_T}$enable_static" >&6; }
10927
10928# The else clause should only fire when bootstrapping the
10929# libtool distribution, otherwise you forgot to ship ltmain.sh
10930# with your package, and you will get complaints that there are
10931# no rules to generate ltmain.sh.
10932if test -f "$ltmain"; then
10933 # See if we are running on zsh, and set the options which allow our commands through
10934 # without removal of \ escapes.
10935 if test -n "${ZSH_VERSION+set}" ; then
10936 setopt NO_GLOB_SUBST
10937 fi
10938 # Now quote all the things that may contain metacharacters while being
10939 # careful not to overquote the AC_SUBSTed values. We take copies of the
10940 # variables and quote the copies for generation of the libtool script.
10941 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10942 SED SHELL STRIP \
10943 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10944 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10945 deplibs_check_method reload_flag reload_cmds need_locks \
10946 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10947 lt_cv_sys_global_symbol_to_c_name_address \
10948 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10949 old_postinstall_cmds old_postuninstall_cmds \
10950 compiler \
10951 CC \
10952 LD \
10953 lt_prog_compiler_wl \
10954 lt_prog_compiler_pic \
10955 lt_prog_compiler_static \
10956 lt_prog_compiler_no_builtin_flag \
10957 export_dynamic_flag_spec \
10958 thread_safe_flag_spec \
10959 whole_archive_flag_spec \
10960 enable_shared_with_static_runtimes \
10961 old_archive_cmds \
10962 old_archive_from_new_cmds \
10963 predep_objects \
10964 postdep_objects \
10965 predeps \
10966 postdeps \
10967 compiler_lib_search_path \
10968 archive_cmds \
10969 archive_expsym_cmds \
10970 postinstall_cmds \
10971 postuninstall_cmds \
10972 old_archive_from_expsyms_cmds \
10973 allow_undefined_flag \
10974 no_undefined_flag \
10975 export_symbols_cmds \
10976 hardcode_libdir_flag_spec \
10977 hardcode_libdir_flag_spec_ld \
10978 hardcode_libdir_separator \
10979 hardcode_automatic \
10980 module_cmds \
10981 module_expsym_cmds \
10982 lt_cv_prog_compiler_c_o \
10983 exclude_expsyms \
10984 include_expsyms; do
10985
10986 case $var in
10987 old_archive_cmds | \
10988 old_archive_from_new_cmds | \
10989 archive_cmds | \
10990 archive_expsym_cmds | \
10991 module_cmds | \
10992 module_expsym_cmds | \
10993 old_archive_from_expsyms_cmds | \
10994 export_symbols_cmds | \
10995 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10996 postinstall_cmds | postuninstall_cmds | \
10997 old_postinstall_cmds | old_postuninstall_cmds | \
10998 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10999 # Double-quote double-evaled strings.
11000 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11001 ;;
11002 *)
11003 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11004 ;;
11005 esac
11006 done
11007
11008 case $lt_echo in
11009 *'\$0 --fallback-echo"')
11010 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11011 ;;
11012 esac
11013
11014cfgfile="${ofile}T"
11015 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11016 $rm -f "$cfgfile"
11017 { echo "$as_me:$LINENO: creating $ofile" >&5
11018echo "$as_me: creating $ofile" >&6;}
11019
11020 cat <<__EOF__ >> "$cfgfile"
11021#! $SHELL
11022
11023# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11024# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11025# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11026#
11027# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11028# Free Software Foundation, Inc.
11029#
11030# This file is part of GNU Libtool:
11031# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11032#
11033# This program is free software; you can redistribute it and/or modify
11034# it under the terms of the GNU General Public License as published by
11035# the Free Software Foundation; either version 2 of the License, or
11036# (at your option) any later version.
11037#
11038# This program is distributed in the hope that it will be useful, but
11039# WITHOUT ANY WARRANTY; without even the implied warranty of
11040# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11041# General Public License for more details.
11042#
11043# You should have received a copy of the GNU General Public License
11044# along with this program; if not, write to the Free Software
11045# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11046#
11047# As a special exception to the GNU General Public License, if you
11048# distribute this file as part of a program that contains a
11049# configuration script generated by Autoconf, you may include it under
11050# the same distribution terms that you use for the rest of that program.
11051
11052# A sed program that does not truncate output.
11053SED=$lt_SED
11054
11055# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11056Xsed="$SED -e 1s/^X//"
11057
11058# The HP-UX ksh and POSIX shell print the target directory to stdout
11059# if CDPATH is set.
11060(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11061
11062# The names of the tagged configurations supported by this script.
11063available_tags=
11064
11065# ### BEGIN LIBTOOL CONFIG
11066
11067# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11068
11069# Shell to use when invoking shell scripts.
11070SHELL=$lt_SHELL
11071
11072# Whether or not to build shared libraries.
11073build_libtool_libs=$enable_shared
11074
11075# Whether or not to build static libraries.
11076build_old_libs=$enable_static
11077
11078# Whether or not to add -lc for building shared libraries.
11079build_libtool_need_lc=$archive_cmds_need_lc
11080
11081# Whether or not to disallow shared libs when runtime libs are static
11082allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11083
11084# Whether or not to optimize for fast installation.
11085fast_install=$enable_fast_install
11086
11087# The host system.
11088host_alias=$host_alias
11089host=$host
11090host_os=$host_os
11091
11092# The build system.
11093build_alias=$build_alias
11094build=$build
11095build_os=$build_os
11096
11097# An echo program that does not interpret backslashes.
11098echo=$lt_echo
11099
11100# The archiver.
11101AR=$lt_AR
11102AR_FLAGS=$lt_AR_FLAGS
11103
11104# A C compiler.
11105LTCC=$lt_LTCC
11106
11107# LTCC compiler flags.
11108LTCFLAGS=$lt_LTCFLAGS
11109
11110# A language-specific compiler.
11111CC=$lt_compiler
11112
11113# Is the compiler the GNU C compiler?
11114with_gcc=$GCC
11115
11116# An ERE matcher.
11117EGREP=$lt_EGREP
11118
11119# The linker used to build libraries.
11120LD=$lt_LD
11121
11122# Whether we need hard or soft links.
11123LN_S=$lt_LN_S
11124
11125# A BSD-compatible nm program.
11126NM=$lt_NM
11127
11128# A symbol stripping program
11129STRIP=$lt_STRIP
11130
11131# Used to examine libraries when file_magic_cmd begins "file"
11132MAGIC_CMD=$MAGIC_CMD
11133
11134# Used on cygwin: DLL creation program.
11135DLLTOOL="$DLLTOOL"
11136
11137# Used on cygwin: object dumper.
11138OBJDUMP="$OBJDUMP"
11139
11140# Used on cygwin: assembler.
11141AS="$AS"
11142
11143# The name of the directory that contains temporary libtool files.
11144objdir=$objdir
11145
11146# How to create reloadable object files.
11147reload_flag=$lt_reload_flag
11148reload_cmds=$lt_reload_cmds
11149
11150# How to pass a linker flag through the compiler.
11151wl=$lt_lt_prog_compiler_wl
11152
11153# Object file suffix (normally "o").
11154objext="$ac_objext"
11155
11156# Old archive suffix (normally "a").
11157libext="$libext"
11158
11159# Shared library suffix (normally ".so").
11160shrext_cmds='$shrext_cmds'
11161
11162# Executable file suffix (normally "").
11163exeext="$exeext"
11164
11165# Additional compiler flags for building library objects.
11166pic_flag=$lt_lt_prog_compiler_pic
11167pic_mode=$pic_mode
11168
11169# What is the maximum length of a command?
11170max_cmd_len=$lt_cv_sys_max_cmd_len
11171
11172# Does compiler simultaneously support -c and -o options?
11173compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11174
11175# Must we lock files when doing compilation?
11176need_locks=$lt_need_locks
11177
11178# Do we need the lib prefix for modules?
11179need_lib_prefix=$need_lib_prefix
11180
11181# Do we need a version for libraries?
11182need_version=$need_version
11183
11184# Whether dlopen is supported.
11185dlopen_support=$enable_dlopen
11186
11187# Whether dlopen of programs is supported.
11188dlopen_self=$enable_dlopen_self
11189
11190# Whether dlopen of statically linked programs is supported.
11191dlopen_self_static=$enable_dlopen_self_static
11192
11193# Compiler flag to prevent dynamic linking.
11194link_static_flag=$lt_lt_prog_compiler_static
11195
11196# Compiler flag to turn off builtin functions.
11197no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11198
11199# Compiler flag to allow reflexive dlopens.
11200export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11201
11202# Compiler flag to generate shared objects directly from archives.
11203whole_archive_flag_spec=$lt_whole_archive_flag_spec
11204
11205# Compiler flag to generate thread-safe objects.
11206thread_safe_flag_spec=$lt_thread_safe_flag_spec
11207
11208# Library versioning type.
11209version_type=$version_type
11210
11211# Format of library name prefix.
11212libname_spec=$lt_libname_spec
11213
11214# List of archive names. First name is the real one, the rest are links.
11215# The last name is the one that the linker finds with -lNAME.
11216library_names_spec=$lt_library_names_spec
11217
11218# The coded name of the library, if different from the real name.
11219soname_spec=$lt_soname_spec
11220
11221# Commands used to build and install an old-style archive.
11222RANLIB=$lt_RANLIB
11223old_archive_cmds=$lt_old_archive_cmds
11224old_postinstall_cmds=$lt_old_postinstall_cmds
11225old_postuninstall_cmds=$lt_old_postuninstall_cmds
11226
11227# Create an old-style archive from a shared archive.
11228old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11229
11230# Create a temporary old-style archive to link instead of a shared archive.
11231old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11232
11233# Commands used to build and install a shared archive.
11234archive_cmds=$lt_archive_cmds
11235archive_expsym_cmds=$lt_archive_expsym_cmds
11236postinstall_cmds=$lt_postinstall_cmds
11237postuninstall_cmds=$lt_postuninstall_cmds
11238
11239# Commands used to build a loadable module (assumed same as above if empty)
11240module_cmds=$lt_module_cmds
11241module_expsym_cmds=$lt_module_expsym_cmds
11242
11243# Commands to strip libraries.
11244old_striplib=$lt_old_striplib
11245striplib=$lt_striplib
11246
11247# Dependencies to place before the objects being linked to create a
11248# shared library.
11249predep_objects=$lt_predep_objects
11250
11251# Dependencies to place after the objects being linked to create a
11252# shared library.
11253postdep_objects=$lt_postdep_objects
11254
11255# Dependencies to place before the objects being linked to create a
11256# shared library.
11257predeps=$lt_predeps
11258
11259# Dependencies to place after the objects being linked to create a
11260# shared library.
11261postdeps=$lt_postdeps
11262
11263# The library search path used internally by the compiler when linking
11264# a shared library.
11265compiler_lib_search_path=$lt_compiler_lib_search_path
11266
11267# Method to check whether dependent libraries are shared objects.
11268deplibs_check_method=$lt_deplibs_check_method
11269
11270# Command to use when deplibs_check_method == file_magic.
11271file_magic_cmd=$lt_file_magic_cmd
11272
11273# Flag that allows shared libraries with undefined symbols to be built.
11274allow_undefined_flag=$lt_allow_undefined_flag
11275
11276# Flag that forces no undefined symbols.
11277no_undefined_flag=$lt_no_undefined_flag
11278
11279# Commands used to finish a libtool library installation in a directory.
11280finish_cmds=$lt_finish_cmds
11281
11282# Same as above, but a single script fragment to be evaled but not shown.
11283finish_eval=$lt_finish_eval
11284
11285# Take the output of nm and produce a listing of raw symbols and C names.
11286global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11287
11288# Transform the output of nm in a proper C declaration
11289global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11290
11291# Transform the output of nm in a C name address pair
11292global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11293
11294# This is the shared library runtime path variable.
11295runpath_var=$runpath_var
11296
11297# This is the shared library path variable.
11298shlibpath_var=$shlibpath_var
11299
11300# Is shlibpath searched before the hard-coded library search path?
11301shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11302
11303# How to hardcode a shared library path into an executable.
11304hardcode_action=$hardcode_action
11305
11306# Whether we should hardcode library paths into libraries.
11307hardcode_into_libs=$hardcode_into_libs
11308
11309# Flag to hardcode \$libdir into a binary during linking.
11310# This must work even if \$libdir does not exist.
11311hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11312
11313# If ld is used when linking, flag to hardcode \$libdir into
11314# a binary during linking. This must work even if \$libdir does
11315# not exist.
11316hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11317
11318# Whether we need a single -rpath flag with a separated argument.
11319hardcode_libdir_separator=$lt_hardcode_libdir_separator
11320
11321# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11322# resulting binary.
11323hardcode_direct=$hardcode_direct
11324
11325# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11326# resulting binary.
11327hardcode_minus_L=$hardcode_minus_L
11328
11329# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11330# the resulting binary.
11331hardcode_shlibpath_var=$hardcode_shlibpath_var
11332
11333# Set to yes if building a shared library automatically hardcodes DIR into the library
11334# and all subsequent libraries and executables linked against it.
11335hardcode_automatic=$hardcode_automatic
11336
11337# Variables whose values should be saved in libtool wrapper scripts and
11338# restored at relink time.
11339variables_saved_for_relink="$variables_saved_for_relink"
11340
11341# Whether libtool must link a program against all its dependency libraries.
11342link_all_deplibs=$link_all_deplibs
11343
11344# Compile-time system search path for libraries
11345sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11346
11347# Run-time system search path for libraries
11348sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11349
11350# Fix the shell variable \$srcfile for the compiler.
11351fix_srcfile_path="$fix_srcfile_path"
11352
11353# Set to yes if exported symbols are required.
11354always_export_symbols=$always_export_symbols
11355
11356# The commands to list exported symbols.
11357export_symbols_cmds=$lt_export_symbols_cmds
11358
11359# The commands to extract the exported symbol list from a shared archive.
11360extract_expsyms_cmds=$lt_extract_expsyms_cmds
11361
11362# Symbols that should not be listed in the preloaded symbols.
11363exclude_expsyms=$lt_exclude_expsyms
11364
11365# Symbols that must always be exported.
11366include_expsyms=$lt_include_expsyms
11367
11368# ### END LIBTOOL CONFIG
11369
11370__EOF__
11371
11372
11373 case $host_os in
11374 aix3*)
11375 cat <<\EOF >> "$cfgfile"
11376
11377# AIX sometimes has problems with the GCC collect2 program. For some
11378# reason, if we set the COLLECT_NAMES environment variable, the problems
11379# vanish in a puff of smoke.
11380if test "X${COLLECT_NAMES+set}" != Xset; then
11381 COLLECT_NAMES=
11382 export COLLECT_NAMES
11383fi
11384EOF
11385 ;;
11386 esac
11387
11388 # We use sed instead of cat because bash on DJGPP gets confused if
11389 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11390 # text mode, it properly converts lines to CR/LF. This bash problem
11391 # is reportedly fixed, but why not run on old versions too?
11392 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11393
11394 mv -f "$cfgfile" "$ofile" || \
11395 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11396 chmod +x "$ofile"
11397
11398else
11399 # If there is no Makefile yet, we rely on a make rule to execute
11400 # `config.status --recheck' to rerun these tests and create the
11401 # libtool script then.
11402 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11403 if test -f "$ltmain_in"; then
11404 test -f Makefile && make "$ltmain"
11405 fi
11406fi
11407
11408
11409ac_ext=c
11410ac_cpp='$CPP $CPPFLAGS'
11411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11413ac_compiler_gnu=$ac_cv_c_compiler_gnu
11414
11415CC="$lt_save_CC"
11416
11417
11418# Check whether --with-tags was given.
11419if test "${with_tags+set}" = set; then
11420 withval=$with_tags; tagnames="$withval"
11421fi
11422
11423
11424if test -f "$ltmain" && test -n "$tagnames"; then
11425 if test ! -f "${ofile}"; then
11426 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11427echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11428 fi
11429
11430 if test -z "$LTCC"; then
11431 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11432 if test -z "$LTCC"; then
11433 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11434echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11435 else
11436 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11437echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11438 fi
11439 fi
11440 if test -z "$LTCFLAGS"; then
11441 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11442 fi
11443
11444 # Extract list of available tagged configurations in $ofile.
11445 # Note that this assumes the entire list is on one line.
11446 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11447
11448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11449 for tagname in $tagnames; do
11450 IFS="$lt_save_ifs"
11451 # Check whether tagname contains only valid characters
11452 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11453 "") ;;
11454 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11455echo "$as_me: error: invalid tag name: $tagname" >&2;}
11456 { (exit 1); exit 1; }; }
11457 ;;
11458 esac
11459
11460 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11461 then
11462 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11463echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11464 { (exit 1); exit 1; }; }
11465 fi
11466
11467 # Update the list of available tags.
11468 if test -n "$tagname"; then
11469 echo appending configuration tag \"$tagname\" to $ofile
11470
11471 case $tagname in
11472 CXX)
11473 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11474 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11475 (test "X$CXX" != "Xg++"))) ; then
11476 ac_ext=cpp
11477ac_cpp='$CXXCPP $CPPFLAGS'
11478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11481
11482
11483
11484
11485archive_cmds_need_lc_CXX=no
11486allow_undefined_flag_CXX=
11487always_export_symbols_CXX=no
11488archive_expsym_cmds_CXX=
11489export_dynamic_flag_spec_CXX=
11490hardcode_direct_CXX=no
11491hardcode_libdir_flag_spec_CXX=
11492hardcode_libdir_flag_spec_ld_CXX=
11493hardcode_libdir_separator_CXX=
11494hardcode_minus_L_CXX=no
11495hardcode_shlibpath_var_CXX=unsupported
11496hardcode_automatic_CXX=no
11497module_cmds_CXX=
11498module_expsym_cmds_CXX=
11499link_all_deplibs_CXX=unknown
11500old_archive_cmds_CXX=$old_archive_cmds
11501no_undefined_flag_CXX=
11502whole_archive_flag_spec_CXX=
11503enable_shared_with_static_runtimes_CXX=no
11504
11505# Dependencies to place before and after the object being linked:
11506predep_objects_CXX=
11507postdep_objects_CXX=
11508predeps_CXX=
11509postdeps_CXX=
11510compiler_lib_search_path_CXX=
11511
11512# Source file extension for C++ test sources.
11513ac_ext=cpp
11514
11515# Object file extension for compiled C++ test sources.
11516objext=o
11517objext_CXX=$objext
11518
11519# Code to be used in simple compile tests
11520lt_simple_compile_test_code="int some_variable = 0;\n"
11521
11522# Code to be used in simple link tests
11523lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11524
11525# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11526
11527# If no C compiler was specified, use CC.
11528LTCC=${LTCC-"$CC"}
11529
11530# If no C compiler flags were specified, use CFLAGS.
11531LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11532
11533# Allow CC to be a program name with arguments.
11534compiler=$CC
11535
11536
11537# save warnings/boilerplate of simple test code
11538ac_outfile=conftest.$ac_objext
11539printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11540eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11541_lt_compiler_boilerplate=`cat conftest.err`
11542$rm conftest*
11543
11544ac_outfile=conftest.$ac_objext
11545printf "$lt_simple_link_test_code" >conftest.$ac_ext
11546eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11547_lt_linker_boilerplate=`cat conftest.err`
11548$rm conftest*
11549
11550
11551# Allow CC to be a program name with arguments.
11552lt_save_CC=$CC
11553lt_save_LD=$LD
11554lt_save_GCC=$GCC
11555GCC=$GXX
11556lt_save_with_gnu_ld=$with_gnu_ld
11557lt_save_path_LD=$lt_cv_path_LD
11558if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11559 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11560else
11561 $as_unset lt_cv_prog_gnu_ld
11562fi
11563if test -n "${lt_cv_path_LDCXX+set}"; then
11564 lt_cv_path_LD=$lt_cv_path_LDCXX
11565else
11566 $as_unset lt_cv_path_LD
11567fi
11568test -z "${LDCXX+set}" || LD=$LDCXX
11569CC=${CXX-"c++"}
11570compiler=$CC
11571compiler_CXX=$CC
11572for cc_temp in $compiler""; do
11573 case $cc_temp in
11574 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11575 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11576 \-*) ;;
11577 *) break;;
11578 esac
11579done
11580cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11581
11582
11583# We don't want -fno-exception wen compiling C++ code, so set the
11584# no_builtin_flag separately
11585if test "$GXX" = yes; then
11586 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11587else
11588 lt_prog_compiler_no_builtin_flag_CXX=
11589fi
11590
11591if test "$GXX" = yes; then
11592 # Set up default GNU C++ configuration
11593
11594
11595# Check whether --with-gnu-ld was given.
11596if test "${with_gnu_ld+set}" = set; then
11597 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11598else
11599 with_gnu_ld=no
11600fi
11601
11602ac_prog=ld
11603if test "$GCC" = yes; then
11604 # Check if gcc -print-prog-name=ld gives a path.
11605 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11606echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11607 case $host in
11608 *-*-mingw*)
11609 # gcc leaves a trailing carriage return which upsets mingw
11610 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11611 *)
11612 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11613 esac
11614 case $ac_prog in
11615 # Accept absolute paths.
11616 [\\/]* | ?:[\\/]*)
11617 re_direlt='/[^/][^/]*/\.\./'
11618 # Canonicalize the pathname of ld
11619 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11620 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11621 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11622 done
11623 test -z "$LD" && LD="$ac_prog"
11624 ;;
11625 "")
11626 # If it fails, then pretend we aren't using GCC.
11627 ac_prog=ld
11628 ;;
11629 *)
11630 # If it is relative, then search for the first ld in PATH.
11631 with_gnu_ld=unknown
11632 ;;
11633 esac
11634elif test "$with_gnu_ld" = yes; then
11635 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11636echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11637else
11638 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11639echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11640fi
11641if test "${lt_cv_path_LD+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11643else
11644 if test -z "$LD"; then
11645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11646 for ac_dir in $PATH; do
11647 IFS="$lt_save_ifs"
11648 test -z "$ac_dir" && ac_dir=.
11649 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11650 lt_cv_path_LD="$ac_dir/$ac_prog"
11651 # Check to see if the program is GNU ld. I'd rather use --version,
11652 # but apparently some variants of GNU ld only accept -v.
11653 # Break only if it was the GNU/non-GNU ld that we prefer.
11654 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11655 *GNU* | *'with BFD'*)
11656 test "$with_gnu_ld" != no && break
11657 ;;
11658 *)
11659 test "$with_gnu_ld" != yes && break
11660 ;;
11661 esac
11662 fi
11663 done
11664 IFS="$lt_save_ifs"
11665else
11666 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11667fi
11668fi
11669
11670LD="$lt_cv_path_LD"
11671if test -n "$LD"; then
11672 { echo "$as_me:$LINENO: result: $LD" >&5
11673echo "${ECHO_T}$LD" >&6; }
11674else
11675 { echo "$as_me:$LINENO: result: no" >&5
11676echo "${ECHO_T}no" >&6; }
11677fi
11678test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11679echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11680 { (exit 1); exit 1; }; }
11681{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11682echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11683if test "${lt_cv_prog_gnu_ld+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11685else
11686 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11687case `$LD -v 2>&1 </dev/null` in
11688*GNU* | *'with BFD'*)
11689 lt_cv_prog_gnu_ld=yes
11690 ;;
11691*)
11692 lt_cv_prog_gnu_ld=no
11693 ;;
11694esac
11695fi
11696{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11697echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11698with_gnu_ld=$lt_cv_prog_gnu_ld
11699
11700
11701
11702 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11703 # archiving commands below assume that GNU ld is being used.
11704 if test "$with_gnu_ld" = yes; then
11705 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11706 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'
11707
11708 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11709 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11710
11711 # If archive_cmds runs LD, not CC, wlarc should be empty
11712 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11713 # investigate it a little bit more. (MM)
11714 wlarc='${wl}'
11715
11716 # ancient GNU ld didn't support --whole-archive et. al.
11717 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11718 grep 'no-whole-archive' > /dev/null; then
11719 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11720 else
11721 whole_archive_flag_spec_CXX=
11722 fi
11723 else
11724 with_gnu_ld=no
11725 wlarc=
11726
11727 # A generic and very simple default shared library creation
11728 # command for GNU C++ for the case where it uses the native
11729 # linker, instead of GNU ld. If possible, this setting should
11730 # overridden to take advantage of the native linker features on
11731 # the platform it is being used on.
11732 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11733 fi
11734
11735 # Commands to make compiler produce verbose output that lists
11736 # what "hidden" libraries, object files and flags are used when
11737 # linking a shared library.
11738 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11739
11740else
11741 GXX=no
11742 with_gnu_ld=no
11743 wlarc=
11744fi
11745
11746# PORTME: fill in a description of your system's C++ link characteristics
11747{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11748echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11749ld_shlibs_CXX=yes
11750case $host_os in
11751 aix3*)
11752 # FIXME: insert proper C++ library support
11753 ld_shlibs_CXX=no
11754 ;;
11755 aix4* | aix5*)
11756 if test "$host_cpu" = ia64; then
11757 # On IA64, the linker does run time linking by default, so we don't
11758 # have to do anything special.
11759 aix_use_runtimelinking=no
11760 exp_sym_flag='-Bexport'
11761 no_entry_flag=""
11762 else
11763 aix_use_runtimelinking=no
11764
11765 # Test if we are trying to use run time linking or normal
11766 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11767 # need to do runtime linking.
11768 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11769 for ld_flag in $LDFLAGS; do
11770 case $ld_flag in
11771 *-brtl*)
11772 aix_use_runtimelinking=yes
11773 break
11774 ;;
11775 esac
11776 done
11777 ;;
11778 esac
11779
11780 exp_sym_flag='-bexport'
11781 no_entry_flag='-bnoentry'
11782 fi
11783
11784 # When large executables or shared objects are built, AIX ld can
11785 # have problems creating the table of contents. If linking a library
11786 # or program results in "error TOC overflow" add -mminimal-toc to
11787 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11788 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11789
11790 archive_cmds_CXX=''
11791 hardcode_direct_CXX=yes
11792 hardcode_libdir_separator_CXX=':'
11793 link_all_deplibs_CXX=yes
11794
11795 if test "$GXX" = yes; then
11796 case $host_os in aix4.[012]|aix4.[012].*)
11797 # We only want to do this on AIX 4.2 and lower, the check
11798 # below for broken collect2 doesn't work under 4.3+
11799 collect2name=`${CC} -print-prog-name=collect2`
11800 if test -f "$collect2name" && \
11801 strings "$collect2name" | grep resolve_lib_name >/dev/null
11802 then
11803 # We have reworked collect2
11804 hardcode_direct_CXX=yes
11805 else
11806 # We have old collect2
11807 hardcode_direct_CXX=unsupported
11808 # It fails to find uninstalled libraries when the uninstalled
11809 # path is not listed in the libpath. Setting hardcode_minus_L
11810 # to unsupported forces relinking
11811 hardcode_minus_L_CXX=yes
11812 hardcode_libdir_flag_spec_CXX='-L$libdir'
11813 hardcode_libdir_separator_CXX=
11814 fi
11815 ;;
11816 esac
11817 shared_flag='-shared'
11818 if test "$aix_use_runtimelinking" = yes; then
11819 shared_flag="$shared_flag "'${wl}-G'
11820 fi
11821 else
11822 # not using gcc
11823 if test "$host_cpu" = ia64; then
11824 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11825 # chokes on -Wl,-G. The following line is correct:
11826 shared_flag='-G'
11827 else
11828 if test "$aix_use_runtimelinking" = yes; then
11829 shared_flag='${wl}-G'
11830 else
11831 shared_flag='${wl}-bM:SRE'
11832 fi
11833 fi
11834 fi
11835
11836 # It seems that -bexpall does not export symbols beginning with
11837 # underscore (_), so it is better to generate a list of symbols to export.
11838 always_export_symbols_CXX=yes
11839 if test "$aix_use_runtimelinking" = yes; then
11840 # Warning - without using the other runtime loading flags (-brtl),
11841 # -berok will link without error, but may produce a broken library.
11842 allow_undefined_flag_CXX='-berok'
11843 # Determine the default libpath from the value encoded in an empty executable.
11844 cat >conftest.$ac_ext <<_ACEOF
11845/* confdefs.h. */
11846_ACEOF
11847cat confdefs.h >>conftest.$ac_ext
11848cat >>conftest.$ac_ext <<_ACEOF
11849/* end confdefs.h. */
11850
11851int
11852main ()
11853{
11854
11855 ;
11856 return 0;
11857}
11858_ACEOF
11859rm -f conftest.$ac_objext conftest$ac_exeext
11860if { (ac_try="$ac_link"
11861case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864esac
11865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_link") 2>conftest.er1
11867 ac_status=$?
11868 grep -v '^ *+' conftest.er1 >conftest.err
11869 rm -f conftest.er1
11870 cat conftest.err >&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
11873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11874 { (case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11877esac
11878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879 (eval "$ac_try") 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest$ac_exeext'
11884 { (case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11887esac
11888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_try") 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; }; then
11893
11894aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11895}'`
11896# Check for a 64-bit object if we didn't find anything.
11897if 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; }
11898}'`; fi
11899else
11900 echo "$as_me: failed program was:" >&5
11901sed 's/^/| /' conftest.$ac_ext >&5
11902
11903
11904fi
11905
11906rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11907 conftest$ac_exeext conftest.$ac_ext
11908if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11909
11910 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11911
11912 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"
11913 else
11914 if test "$host_cpu" = ia64; then
11915 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11916 allow_undefined_flag_CXX="-z nodefs"
11917 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"
11918 else
11919 # Determine the default libpath from the value encoded in an empty executable.
11920 cat >conftest.$ac_ext <<_ACEOF
11921/* confdefs.h. */
11922_ACEOF
11923cat confdefs.h >>conftest.$ac_ext
11924cat >>conftest.$ac_ext <<_ACEOF
11925/* end confdefs.h. */
11926
11927int
11928main ()
11929{
11930
11931 ;
11932 return 0;
11933}
11934_ACEOF
11935rm -f conftest.$ac_objext conftest$ac_exeext
11936if { (ac_try="$ac_link"
11937case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940esac
11941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_link") 2>conftest.er1
11943 ac_status=$?
11944 grep -v '^ *+' conftest.er1 >conftest.err
11945 rm -f conftest.er1
11946 cat conftest.err >&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } &&
11949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11950 { (case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11953esac
11954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_try") 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; } &&
11959 { ac_try='test -s conftest$ac_exeext'
11960 { (case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963esac
11964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_try") 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; }; then
11969
11970aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11971}'`
11972# Check for a 64-bit object if we didn't find anything.
11973if 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; }
11974}'`; fi
11975else
11976 echo "$as_me: failed program was:" >&5
11977sed 's/^/| /' conftest.$ac_ext >&5
11978
11979
11980fi
11981
11982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11983 conftest$ac_exeext conftest.$ac_ext
11984if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11985
11986 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11987 # Warning - without using the other run time loading flags,
11988 # -berok will link without error, but may produce a broken library.
11989 no_undefined_flag_CXX=' ${wl}-bernotok'
11990 allow_undefined_flag_CXX=' ${wl}-berok'
11991 # Exported symbols can be pulled into shared objects from archives
11992 whole_archive_flag_spec_CXX='$convenience'
11993 archive_cmds_need_lc_CXX=yes
11994 # This is similar to how AIX traditionally builds its shared libraries.
11995 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'
11996 fi
11997 fi
11998 ;;
11999
12000 beos*)
12001 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12002 allow_undefined_flag_CXX=unsupported
12003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12004 # support --undefined. This deserves some investigation. FIXME
12005 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12006 else
12007 ld_shlibs_CXX=no
12008 fi
12009 ;;
12010
12011 chorus*)
12012 case $cc_basename in
12013 *)
12014 # FIXME: insert proper C++ library support
12015 ld_shlibs_CXX=no
12016 ;;
12017 esac
12018 ;;
12019
12020 cygwin* | mingw* | pw32*)
12021 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12022 # as there is no search path for DLLs.
12023 hardcode_libdir_flag_spec_CXX='-L$libdir'
12024 allow_undefined_flag_CXX=unsupported
12025 always_export_symbols_CXX=no
12026 enable_shared_with_static_runtimes_CXX=yes
12027
12028 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12029 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'
12030 # If the export-symbols file already is a .def file (1st line
12031 # is EXPORTS), use it as is; otherwise, prepend...
12032 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12033 cp $export_symbols $output_objdir/$soname.def;
12034 else
12035 echo EXPORTS > $output_objdir/$soname.def;
12036 cat $export_symbols >> $output_objdir/$soname.def;
12037 fi~
12038 $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'
12039 else
12040 ld_shlibs_CXX=no
12041 fi
12042 ;;
12043 darwin* | rhapsody*)
12044 case $host_os in
12045 rhapsody* | darwin1.[012])
12046 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12047 ;;
12048 *) # Darwin 1.3 on
12049 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12050 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12051 else
12052 case ${MACOSX_DEPLOYMENT_TARGET} in
12053 10.[012])
12054 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12055 ;;
12056 10.*)
12057 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12058 ;;
12059 esac
12060 fi
12061 ;;
12062 esac
12063 archive_cmds_need_lc_CXX=no
12064 hardcode_direct_CXX=no
12065 hardcode_automatic_CXX=yes
12066 hardcode_shlibpath_var_CXX=unsupported
12067 whole_archive_flag_spec_CXX=''
12068 link_all_deplibs_CXX=yes
12069
12070 if test "$GXX" = yes ; then
12071 lt_int_apple_cc_single_mod=no
12072 output_verbose_link_cmd='echo'
12073 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12074 lt_int_apple_cc_single_mod=yes
12075 fi
12076 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12077 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12078 else
12079 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'
12080 fi
12081 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12082 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12083 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12084 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}'
12085 else
12086 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}'
12087 fi
12088 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}'
12089 else
12090 case $cc_basename in
12091 xlc*)
12092 output_verbose_link_cmd='echo'
12093 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'
12094 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12095 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12096 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}'
12097 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}'
12098 ;;
12099 *)
12100 ld_shlibs_CXX=no
12101 ;;
12102 esac
12103 fi
12104 ;;
12105
12106 dgux*)
12107 case $cc_basename in
12108 ec++*)
12109 # FIXME: insert proper C++ library support
12110 ld_shlibs_CXX=no
12111 ;;
12112 ghcx*)
12113 # Green Hills C++ Compiler
12114 # FIXME: insert proper C++ library support
12115 ld_shlibs_CXX=no
12116 ;;
12117 *)
12118 # FIXME: insert proper C++ library support
12119 ld_shlibs_CXX=no
12120 ;;
12121 esac
12122 ;;
12123 freebsd[12]*)
12124 # C++ shared libraries reported to be fairly broken before switch to ELF
12125 ld_shlibs_CXX=no
12126 ;;
12127 freebsd-elf*)
12128 archive_cmds_need_lc_CXX=no
12129 ;;
12130 freebsd* | dragonfly*)
12131 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12132 # conventions
12133 ld_shlibs_CXX=yes
12134 ;;
12135 gnu*)
12136 ;;
12137 hpux9*)
12138 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12139 hardcode_libdir_separator_CXX=:
12140 export_dynamic_flag_spec_CXX='${wl}-E'
12141 hardcode_direct_CXX=yes
12142 hardcode_minus_L_CXX=yes # Not in the search PATH,
12143 # but as the default
12144 # location of the library.
12145
12146 case $cc_basename in
12147 CC*)
12148 # FIXME: insert proper C++ library support
12149 ld_shlibs_CXX=no
12150 ;;
12151 aCC*)
12152 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'
12153 # Commands to make compiler produce verbose output that lists
12154 # what "hidden" libraries, object files and flags are used when
12155 # linking a shared library.
12156 #
12157 # There doesn't appear to be a way to prevent this compiler from
12158 # explicitly linking system object files so we need to strip them
12159 # from the output so that they don't get included in the library
12160 # dependencies.
12161 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'
12162 ;;
12163 *)
12164 if test "$GXX" = yes; then
12165 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'
12166 else
12167 # FIXME: insert proper C++ library support
12168 ld_shlibs_CXX=no
12169 fi
12170 ;;
12171 esac
12172 ;;
12173 hpux10*|hpux11*)
12174 if test $with_gnu_ld = no; then
12175 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12176 hardcode_libdir_separator_CXX=:
12177
12178 case $host_cpu in
12179 hppa*64*|ia64*)
12180 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12181 ;;
12182 *)
12183 export_dynamic_flag_spec_CXX='${wl}-E'
12184 ;;
12185 esac
12186 fi
12187 case $host_cpu in
12188 hppa*64*|ia64*)
12189 hardcode_direct_CXX=no
12190 hardcode_shlibpath_var_CXX=no
12191 ;;
12192 *)
12193 hardcode_direct_CXX=yes
12194 hardcode_minus_L_CXX=yes # Not in the search PATH,
12195 # but as the default
12196 # location of the library.
12197 ;;
12198 esac
12199
12200 case $cc_basename in
12201 CC*)
12202 # FIXME: insert proper C++ library support
12203 ld_shlibs_CXX=no
12204 ;;
12205 aCC*)
12206 case $host_cpu in
12207 hppa*64*)
12208 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12209 ;;
12210 ia64*)
12211 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12212 ;;
12213 *)
12214 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12215 ;;
12216 esac
12217 # Commands to make compiler produce verbose output that lists
12218 # what "hidden" libraries, object files and flags are used when
12219 # linking a shared library.
12220 #
12221 # There doesn't appear to be a way to prevent this compiler from
12222 # explicitly linking system object files so we need to strip them
12223 # from the output so that they don't get included in the library
12224 # dependencies.
12225 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'
12226 ;;
12227 *)
12228 if test "$GXX" = yes; then
12229 if test $with_gnu_ld = no; then
12230 case $host_cpu in
12231 hppa*64*)
12232 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12233 ;;
12234 ia64*)
12235 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12236 ;;
12237 *)
12238 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'
12239 ;;
12240 esac
12241 fi
12242 else
12243 # FIXME: insert proper C++ library support
12244 ld_shlibs_CXX=no
12245 fi
12246 ;;
12247 esac
12248 ;;
12249 interix3*)
12250 hardcode_direct_CXX=no
12251 hardcode_shlibpath_var_CXX=no
12252 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12253 export_dynamic_flag_spec_CXX='${wl}-E'
12254 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12255 # Instead, shared libraries are loaded at an image base (0x10000000 by
12256 # default) and relocated if they conflict, which is a slow very memory
12257 # consuming and fragmenting process. To avoid this, we pick a random,
12258 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12259 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12260 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'
12261 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'
12262 ;;
12263 irix5* | irix6*)
12264 case $cc_basename in
12265 CC*)
12266 # SGI C++
12267 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'
12268
12269 # Archives containing C++ object files must be created using
12270 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12271 # necessary to make sure instantiated templates are included
12272 # in the archive.
12273 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12274 ;;
12275 *)
12276 if test "$GXX" = yes; then
12277 if test "$with_gnu_ld" = no; then
12278 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'
12279 else
12280 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'
12281 fi
12282 fi
12283 link_all_deplibs_CXX=yes
12284 ;;
12285 esac
12286 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12287 hardcode_libdir_separator_CXX=:
12288 ;;
12289 linux* | k*bsd*-gnu)
12290 case $cc_basename in
12291 KCC*)
12292 # Kuck and Associates, Inc. (KAI) C++ Compiler
12293
12294 # KCC will only create a shared library if the output file
12295 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12296 # to its proper name (with version) after linking.
12297 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'
12298 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'
12299 # Commands to make compiler produce verbose output that lists
12300 # what "hidden" libraries, object files and flags are used when
12301 # linking a shared library.
12302 #
12303 # There doesn't appear to be a way to prevent this compiler from
12304 # explicitly linking system object files so we need to strip them
12305 # from the output so that they don't get included in the library
12306 # dependencies.
12307 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'
12308
12309 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12310 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12311
12312 # Archives containing C++ object files must be created using
12313 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12314 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12315 ;;
12316 icpc*)
12317 # Intel C++
12318 with_gnu_ld=yes
12319 # version 8.0 and above of icpc choke on multiply defined symbols
12320 # if we add $predep_objects and $postdep_objects, however 7.1 and
12321 # earlier do not add the objects themselves.
12322 case `$CC -V 2>&1` in
12323 *"Version 7."*)
12324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12325 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'
12326 ;;
12327 *) # Version 8.0 or newer
12328 tmp_idyn=
12329 case $host_cpu in
12330 ia64*) tmp_idyn=' -i_dynamic';;
12331 esac
12332 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12333 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'
12334 ;;
12335 esac
12336 archive_cmds_need_lc_CXX=no
12337 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12339 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12340 ;;
12341 pgCC*)
12342 # Portland Group C++ compiler
12343 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12344 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'
12345
12346 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12347 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12348 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'
12349 ;;
12350 cxx*)
12351 # Compaq C++
12352 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12353 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'
12354
12355 runpath_var=LD_RUN_PATH
12356 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12357 hardcode_libdir_separator_CXX=:
12358
12359 # Commands to make compiler produce verbose output that lists
12360 # what "hidden" libraries, object files and flags are used when
12361 # linking a shared library.
12362 #
12363 # There doesn't appear to be a way to prevent this compiler from
12364 # explicitly linking system object files so we need to strip them
12365 # from the output so that they don't get included in the library
12366 # dependencies.
12367 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'
12368 ;;
12369 esac
12370 ;;
12371 lynxos*)
12372 # FIXME: insert proper C++ library support
12373 ld_shlibs_CXX=no
12374 ;;
12375 m88k*)
12376 # FIXME: insert proper C++ library support
12377 ld_shlibs_CXX=no
12378 ;;
12379 mvs*)
12380 case $cc_basename in
12381 cxx*)
12382 # FIXME: insert proper C++ library support
12383 ld_shlibs_CXX=no
12384 ;;
12385 *)
12386 # FIXME: insert proper C++ library support
12387 ld_shlibs_CXX=no
12388 ;;
12389 esac
12390 ;;
12391 netbsd* | netbsdelf*-gnu)
12392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12393 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12394 wlarc=
12395 hardcode_libdir_flag_spec_CXX='-R$libdir'
12396 hardcode_direct_CXX=yes
12397 hardcode_shlibpath_var_CXX=no
12398 fi
12399 # Workaround some broken pre-1.5 toolchains
12400 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12401 ;;
12402 openbsd2*)
12403 # C++ shared libraries are fairly broken
12404 ld_shlibs_CXX=no
12405 ;;
12406 openbsd*)
12407 hardcode_direct_CXX=yes
12408 hardcode_shlibpath_var_CXX=no
12409 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12410 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12412 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12413 export_dynamic_flag_spec_CXX='${wl}-E'
12414 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12415 fi
12416 output_verbose_link_cmd='echo'
12417 ;;
12418 osf3*)
12419 case $cc_basename in
12420 KCC*)
12421 # Kuck and Associates, Inc. (KAI) C++ Compiler
12422
12423 # KCC will only create a shared library if the output file
12424 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12425 # to its proper name (with version) after linking.
12426 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'
12427
12428 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12429 hardcode_libdir_separator_CXX=:
12430
12431 # Archives containing C++ object files must be created using
12432 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12433 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12434
12435 ;;
12436 RCC*)
12437 # Rational C++ 2.4.1
12438 # FIXME: insert proper C++ library support
12439 ld_shlibs_CXX=no
12440 ;;
12441 cxx*)
12442 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12443 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'
12444
12445 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12446 hardcode_libdir_separator_CXX=:
12447
12448 # Commands to make compiler produce verbose output that lists
12449 # what "hidden" libraries, object files and flags are used when
12450 # linking a shared library.
12451 #
12452 # There doesn't appear to be a way to prevent this compiler from
12453 # explicitly linking system object files so we need to strip them
12454 # from the output so that they don't get included in the library
12455 # dependencies.
12456 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'
12457 ;;
12458 *)
12459 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12460 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12461 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'
12462
12463 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12464 hardcode_libdir_separator_CXX=:
12465
12466 # Commands to make compiler produce verbose output that lists
12467 # what "hidden" libraries, object files and flags are used when
12468 # linking a shared library.
12469 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12470
12471 else
12472 # FIXME: insert proper C++ library support
12473 ld_shlibs_CXX=no
12474 fi
12475 ;;
12476 esac
12477 ;;
12478 osf4* | osf5*)
12479 case $cc_basename in
12480 KCC*)
12481 # Kuck and Associates, Inc. (KAI) C++ Compiler
12482
12483 # KCC will only create a shared library if the output file
12484 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12485 # to its proper name (with version) after linking.
12486 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'
12487
12488 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12489 hardcode_libdir_separator_CXX=:
12490
12491 # Archives containing C++ object files must be created using
12492 # the KAI C++ compiler.
12493 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12494 ;;
12495 RCC*)
12496 # Rational C++ 2.4.1
12497 # FIXME: insert proper C++ library support
12498 ld_shlibs_CXX=no
12499 ;;
12500 cxx*)
12501 allow_undefined_flag_CXX=' -expect_unresolved \*'
12502 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'
12503 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12504 echo "-hidden">> $lib.exp~
12505 $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~
12506 $rm $lib.exp'
12507
12508 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12509 hardcode_libdir_separator_CXX=:
12510
12511 # Commands to make compiler produce verbose output that lists
12512 # what "hidden" libraries, object files and flags are used when
12513 # linking a shared library.
12514 #
12515 # There doesn't appear to be a way to prevent this compiler from
12516 # explicitly linking system object files so we need to strip them
12517 # from the output so that they don't get included in the library
12518 # dependencies.
12519 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'
12520 ;;
12521 *)
12522 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12523 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12524 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'
12525
12526 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12527 hardcode_libdir_separator_CXX=:
12528
12529 # Commands to make compiler produce verbose output that lists
12530 # what "hidden" libraries, object files and flags are used when
12531 # linking a shared library.
12532 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12533
12534 else
12535 # FIXME: insert proper C++ library support
12536 ld_shlibs_CXX=no
12537 fi
12538 ;;
12539 esac
12540 ;;
12541 psos*)
12542 # FIXME: insert proper C++ library support
12543 ld_shlibs_CXX=no
12544 ;;
12545 sunos4*)
12546 case $cc_basename in
12547 CC*)
12548 # Sun C++ 4.x
12549 # FIXME: insert proper C++ library support
12550 ld_shlibs_CXX=no
12551 ;;
12552 lcc*)
12553 # Lucid
12554 # FIXME: insert proper C++ library support
12555 ld_shlibs_CXX=no
12556 ;;
12557 *)
12558 # FIXME: insert proper C++ library support
12559 ld_shlibs_CXX=no
12560 ;;
12561 esac
12562 ;;
12563 solaris*)
12564 case $cc_basename in
12565 CC*)
12566 # Sun C++ 4.2, 5.x and Centerline C++
12567 archive_cmds_need_lc_CXX=yes
12568 no_undefined_flag_CXX=' -zdefs'
12569 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12570 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12571 $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'
12572
12573 hardcode_libdir_flag_spec_CXX='-R$libdir'
12574 hardcode_shlibpath_var_CXX=no
12575 case $host_os in
12576 solaris2.[0-5] | solaris2.[0-5].*) ;;
12577 *)
12578 # The C++ compiler is used as linker so we must use $wl
12579 # flag to pass the commands to the underlying system
12580 # linker. We must also pass each convience library through
12581 # to the system linker between allextract/defaultextract.
12582 # The C++ compiler will combine linker options so we
12583 # cannot just pass the convience library names through
12584 # without $wl.
12585 # Supported since Solaris 2.6 (maybe 2.5.1?)
12586 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'
12587 ;;
12588 esac
12589 link_all_deplibs_CXX=yes
12590
12591 output_verbose_link_cmd='echo'
12592
12593 # Archives containing C++ object files must be created using
12594 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12595 # necessary to make sure instantiated templates are included
12596 # in the archive.
12597 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12598 ;;
12599 gcx*)
12600 # Green Hills C++ Compiler
12601 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12602
12603 # The C++ compiler must be used to create the archive.
12604 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12605 ;;
12606 *)
12607 # GNU C++ compiler with Solaris linker
12608 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12609 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12610 if $CC --version | grep -v '^2\.7' > /dev/null; then
12611 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12612 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12613 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12614
12615 # Commands to make compiler produce verbose output that lists
12616 # what "hidden" libraries, object files and flags are used when
12617 # linking a shared library.
12618 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12619 else
12620 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12621 # platform.
12622 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12623 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12624 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12625
12626 # Commands to make compiler produce verbose output that lists
12627 # what "hidden" libraries, object files and flags are used when
12628 # linking a shared library.
12629 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12630 fi
12631
12632 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12633 fi
12634 ;;
12635 esac
12636 ;;
12637 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12638 no_undefined_flag_CXX='${wl}-z,text'
12639 archive_cmds_need_lc_CXX=no
12640 hardcode_shlibpath_var_CXX=no
12641 runpath_var='LD_RUN_PATH'
12642
12643 case $cc_basename in
12644 CC*)
12645 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12646 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12647 ;;
12648 *)
12649 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12650 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12651 ;;
12652 esac
12653 ;;
12654 sysv5* | sco3.2v5* | sco5v6*)
12655 # Note: We can NOT use -z defs as we might desire, because we do not
12656 # link with -lc, and that would cause any symbols used from libc to
12657 # always be unresolved, which means just about no library would
12658 # ever link correctly. If we're not using GNU ld we use -z text
12659 # though, which does catch some bad symbols but isn't as heavy-handed
12660 # as -z defs.
12661 # For security reasons, it is highly recommended that you always
12662 # use absolute paths for naming shared libraries, and exclude the
12663 # DT_RUNPATH tag from executables and libraries. But doing so
12664 # requires that you compile everything twice, which is a pain.
12665 # So that behaviour is only enabled if SCOABSPATH is set to a
12666 # non-empty value in the environment. Most likely only useful for
12667 # creating official distributions of packages.
12668 # This is a hack until libtool officially supports absolute path
12669 # names for shared libraries.
12670 no_undefined_flag_CXX='${wl}-z,text'
12671 allow_undefined_flag_CXX='${wl}-z,nodefs'
12672 archive_cmds_need_lc_CXX=no
12673 hardcode_shlibpath_var_CXX=no
12674 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12675 hardcode_libdir_separator_CXX=':'
12676 link_all_deplibs_CXX=yes
12677 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12678 runpath_var='LD_RUN_PATH'
12679
12680 case $cc_basename in
12681 CC*)
12682 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12683 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12684 ;;
12685 *)
12686 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12687 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12688 ;;
12689 esac
12690 ;;
12691 tandem*)
12692 case $cc_basename in
12693 NCC*)
12694 # NonStop-UX NCC 3.20
12695 # FIXME: insert proper C++ library support
12696 ld_shlibs_CXX=no
12697 ;;
12698 *)
12699 # FIXME: insert proper C++ library support
12700 ld_shlibs_CXX=no
12701 ;;
12702 esac
12703 ;;
12704 vxworks*)
12705 # FIXME: insert proper C++ library support
12706 ld_shlibs_CXX=no
12707 ;;
12708 *)
12709 # FIXME: insert proper C++ library support
12710 ld_shlibs_CXX=no
12711 ;;
12712esac
12713{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12714echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12715test "$ld_shlibs_CXX" = no && can_build_shared=no
12716
12717GCC_CXX="$GXX"
12718LD_CXX="$LD"
12719
12720
12721cat > conftest.$ac_ext <<EOF
12722class Foo
12723{
12724public:
12725 Foo (void) { a = 0; }
12726private:
12727 int a;
12728};
12729EOF
12730
12731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732 (eval $ac_compile) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; then
12736 # Parse the compiler output and extract the necessary
12737 # objects, libraries and library flags.
12738
12739 # Sentinel used to keep track of whether or not we are before
12740 # the conftest object file.
12741 pre_test_object_deps_done=no
12742
12743 # The `*' in the case matches for architectures that use `case' in
12744 # $output_verbose_cmd can trigger glob expansion during the loop
12745 # eval without this substitution.
12746 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12747
12748 for p in `eval $output_verbose_link_cmd`; do
12749 case $p in
12750
12751 -L* | -R* | -l*)
12752 # Some compilers place space between "-{L,R}" and the path.
12753 # Remove the space.
12754 if test $p = "-L" \
12755 || test $p = "-R"; then
12756 prev=$p
12757 continue
12758 else
12759 prev=
12760 fi
12761
12762 if test "$pre_test_object_deps_done" = no; then
12763 case $p in
12764 -L* | -R*)
12765 # Internal compiler library paths should come after those
12766 # provided the user. The postdeps already come after the
12767 # user supplied libs so there is no need to process them.
12768 if test -z "$compiler_lib_search_path_CXX"; then
12769 compiler_lib_search_path_CXX="${prev}${p}"
12770 else
12771 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12772 fi
12773 ;;
12774 # The "-l" case would never come before the object being
12775 # linked, so don't bother handling this case.
12776 esac
12777 else
12778 if test -z "$postdeps_CXX"; then
12779 postdeps_CXX="${prev}${p}"
12780 else
12781 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12782 fi
12783 fi
12784 ;;
12785
12786 *.$objext)
12787 # This assumes that the test object file only shows up
12788 # once in the compiler output.
12789 if test "$p" = "conftest.$objext"; then
12790 pre_test_object_deps_done=yes
12791 continue
12792 fi
12793
12794 if test "$pre_test_object_deps_done" = no; then
12795 if test -z "$predep_objects_CXX"; then
12796 predep_objects_CXX="$p"
12797 else
12798 predep_objects_CXX="$predep_objects_CXX $p"
12799 fi
12800 else
12801 if test -z "$postdep_objects_CXX"; then
12802 postdep_objects_CXX="$p"
12803 else
12804 postdep_objects_CXX="$postdep_objects_CXX $p"
12805 fi
12806 fi
12807 ;;
12808
12809 *) ;; # Ignore the rest.
12810
12811 esac
12812 done
12813
12814 # Clean up.
12815 rm -f a.out a.exe
12816else
12817 echo "libtool.m4: error: problem compiling CXX test program"
12818fi
12819
12820$rm -f confest.$objext
12821
12822# PORTME: override above test on systems where it is broken
12823case $host_os in
12824interix3*)
12825 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12826 # hack all around it, let's just trust "g++" to DTRT.
12827 predep_objects_CXX=
12828 postdep_objects_CXX=
12829 postdeps_CXX=
12830 ;;
12831
12832solaris*)
12833 case $cc_basename in
12834 CC*)
12835 # Adding this requires a known-good setup of shared libraries for
12836 # Sun compiler versions before 5.6, else PIC objects from an old
12837 # archive will be linked into the output, leading to subtle bugs.
12838 postdeps_CXX='-lCstd -lCrun'
12839 ;;
12840 esac
12841 ;;
12842esac
12843
12844
12845case " $postdeps_CXX " in
12846*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12847esac
12848
12849lt_prog_compiler_wl_CXX=
12850lt_prog_compiler_pic_CXX=
12851lt_prog_compiler_static_CXX=
12852
12853{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12854echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12855
12856 # C++ specific cases for pic, static, wl, etc.
12857 if test "$GXX" = yes; then
12858 lt_prog_compiler_wl_CXX='-Wl,'
12859 lt_prog_compiler_static_CXX='-static'
12860
12861 case $host_os in
12862 aix*)
12863 # All AIX code is PIC.
12864 if test "$host_cpu" = ia64; then
12865 # AIX 5 now supports IA64 processor
12866 lt_prog_compiler_static_CXX='-Bstatic'
12867 fi
12868 ;;
12869 amigaos*)
12870 # FIXME: we need at least 68020 code to build shared libraries, but
12871 # adding the `-m68020' flag to GCC prevents building anything better,
12872 # like `-m68040'.
12873 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12874 ;;
12875 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12876 # PIC is the default for these OSes.
12877 ;;
12878 mingw* | os2* | pw32*)
12879 # This hack is so that the source file can tell whether it is being
12880 # built for inclusion in a dll (and should export symbols for example).
12881 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12882 ;;
12883 darwin* | rhapsody*)
12884 # PIC is the default on this platform
12885 # Common symbols not allowed in MH_DYLIB files
12886 lt_prog_compiler_pic_CXX='-fno-common'
12887 ;;
12888 *djgpp*)
12889 # DJGPP does not support shared libraries at all
12890 lt_prog_compiler_pic_CXX=
12891 ;;
12892 interix3*)
12893 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12894 # Instead, we relocate shared libraries at runtime.
12895 ;;
12896 sysv4*MP*)
12897 if test -d /usr/nec; then
12898 lt_prog_compiler_pic_CXX=-Kconform_pic
12899 fi
12900 ;;
12901 hpux*)
12902 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12903 # not for PA HP-UX.
12904 case $host_cpu in
12905 hppa*64*|ia64*)
12906 ;;
12907 *)
12908 lt_prog_compiler_pic_CXX='-fPIC'
12909 ;;
12910 esac
12911 ;;
12912 *)
12913 lt_prog_compiler_pic_CXX='-fPIC'
12914 ;;
12915 esac
12916 else
12917 case $host_os in
12918 aix4* | aix5*)
12919 # All AIX code is PIC.
12920 if test "$host_cpu" = ia64; then
12921 # AIX 5 now supports IA64 processor
12922 lt_prog_compiler_static_CXX='-Bstatic'
12923 else
12924 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12925 fi
12926 ;;
12927 chorus*)
12928 case $cc_basename in
12929 cxch68*)
12930 # Green Hills C++ Compiler
12931 # _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"
12932 ;;
12933 esac
12934 ;;
12935 darwin*)
12936 # PIC is the default on this platform
12937 # Common symbols not allowed in MH_DYLIB files
12938 case $cc_basename in
12939 xlc*)
12940 lt_prog_compiler_pic_CXX='-qnocommon'
12941 lt_prog_compiler_wl_CXX='-Wl,'
12942 ;;
12943 esac
12944 ;;
12945 dgux*)
12946 case $cc_basename in
12947 ec++*)
12948 lt_prog_compiler_pic_CXX='-KPIC'
12949 ;;
12950 ghcx*)
12951 # Green Hills C++ Compiler
12952 lt_prog_compiler_pic_CXX='-pic'
12953 ;;
12954 *)
12955 ;;
12956 esac
12957 ;;
12958 freebsd* | dragonfly*)
12959 # FreeBSD uses GNU C++
12960 ;;
12961 hpux9* | hpux10* | hpux11*)
12962 case $cc_basename in
12963 CC*)
12964 lt_prog_compiler_wl_CXX='-Wl,'
12965 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12966 if test "$host_cpu" != ia64; then
12967 lt_prog_compiler_pic_CXX='+Z'
12968 fi
12969 ;;
12970 aCC*)
12971 lt_prog_compiler_wl_CXX='-Wl,'
12972 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12973 case $host_cpu in
12974 hppa*64*|ia64*)
12975 # +Z the default
12976 ;;
12977 *)
12978 lt_prog_compiler_pic_CXX='+Z'
12979 ;;
12980 esac
12981 ;;
12982 *)
12983 ;;
12984 esac
12985 ;;
12986 interix*)
12987 # This is c89, which is MS Visual C++ (no shared libs)
12988 # Anyone wants to do a port?
12989 ;;
12990 irix5* | irix6* | nonstopux*)
12991 case $cc_basename in
12992 CC*)
12993 lt_prog_compiler_wl_CXX='-Wl,'
12994 lt_prog_compiler_static_CXX='-non_shared'
12995 # CC pic flag -KPIC is the default.
12996 ;;
12997 *)
12998 ;;
12999 esac
13000 ;;
13001 linux* | k*bsd*-gnu)
13002 case $cc_basename in
13003 KCC*)
13004 # KAI C++ Compiler
13005 lt_prog_compiler_wl_CXX='--backend -Wl,'
13006 lt_prog_compiler_pic_CXX='-fPIC'
13007 ;;
13008 icpc* | ecpc*)
13009 # Intel C++
13010 lt_prog_compiler_wl_CXX='-Wl,'
13011 lt_prog_compiler_pic_CXX='-KPIC'
13012 lt_prog_compiler_static_CXX='-static'
13013 ;;
13014 pgCC*)
13015 # Portland Group C++ compiler.
13016 lt_prog_compiler_wl_CXX='-Wl,'
13017 lt_prog_compiler_pic_CXX='-fpic'
13018 lt_prog_compiler_static_CXX='-Bstatic'
13019 ;;
13020 cxx*)
13021 # Compaq C++
13022 # Make sure the PIC flag is empty. It appears that all Alpha
13023 # Linux and Compaq Tru64 Unix objects are PIC.
13024 lt_prog_compiler_pic_CXX=
13025 lt_prog_compiler_static_CXX='-non_shared'
13026 ;;
13027 *)
13028 ;;
13029 esac
13030 ;;
13031 lynxos*)
13032 ;;
13033 m88k*)
13034 ;;
13035 mvs*)
13036 case $cc_basename in
13037 cxx*)
13038 lt_prog_compiler_pic_CXX='-W c,exportall'
13039 ;;
13040 *)
13041 ;;
13042 esac
13043 ;;
13044 netbsd* | netbsdelf*-gnu)
13045 ;;
13046 osf3* | osf4* | osf5*)
13047 case $cc_basename in
13048 KCC*)
13049 lt_prog_compiler_wl_CXX='--backend -Wl,'
13050 ;;
13051 RCC*)
13052 # Rational C++ 2.4.1
13053 lt_prog_compiler_pic_CXX='-pic'
13054 ;;
13055 cxx*)
13056 # Digital/Compaq C++
13057 lt_prog_compiler_wl_CXX='-Wl,'
13058 # Make sure the PIC flag is empty. It appears that all Alpha
13059 # Linux and Compaq Tru64 Unix objects are PIC.
13060 lt_prog_compiler_pic_CXX=
13061 lt_prog_compiler_static_CXX='-non_shared'
13062 ;;
13063 *)
13064 ;;
13065 esac
13066 ;;
13067 psos*)
13068 ;;
13069 solaris*)
13070 case $cc_basename in
13071 CC*)
13072 # Sun C++ 4.2, 5.x and Centerline C++
13073 lt_prog_compiler_pic_CXX='-KPIC'
13074 lt_prog_compiler_static_CXX='-Bstatic'
13075 lt_prog_compiler_wl_CXX='-Qoption ld '
13076 ;;
13077 gcx*)
13078 # Green Hills C++ Compiler
13079 lt_prog_compiler_pic_CXX='-PIC'
13080 ;;
13081 *)
13082 ;;
13083 esac
13084 ;;
13085 sunos4*)
13086 case $cc_basename in
13087 CC*)
13088 # Sun C++ 4.x
13089 lt_prog_compiler_pic_CXX='-pic'
13090 lt_prog_compiler_static_CXX='-Bstatic'
13091 ;;
13092 lcc*)
13093 # Lucid
13094 lt_prog_compiler_pic_CXX='-pic'
13095 ;;
13096 *)
13097 ;;
13098 esac
13099 ;;
13100 tandem*)
13101 case $cc_basename in
13102 NCC*)
13103 # NonStop-UX NCC 3.20
13104 lt_prog_compiler_pic_CXX='-KPIC'
13105 ;;
13106 *)
13107 ;;
13108 esac
13109 ;;
13110 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13111 case $cc_basename in
13112 CC*)
13113 lt_prog_compiler_wl_CXX='-Wl,'
13114 lt_prog_compiler_pic_CXX='-KPIC'
13115 lt_prog_compiler_static_CXX='-Bstatic'
13116 ;;
13117 esac
13118 ;;
13119 vxworks*)
13120 ;;
13121 *)
13122 lt_prog_compiler_can_build_shared_CXX=no
13123 ;;
13124 esac
13125 fi
13126
13127{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13128echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13129
13130#
13131# Check to make sure the PIC flag actually works.
13132#
13133if test -n "$lt_prog_compiler_pic_CXX"; then
13134
13135{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13136echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13137if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13139else
13140 lt_prog_compiler_pic_works_CXX=no
13141 ac_outfile=conftest.$ac_objext
13142 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13143 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13144 # Insert the option either (1) after the last *FLAGS variable, or
13145 # (2) before a word containing "conftest.", or (3) at the end.
13146 # Note that $ac_compile itself does not contain backslashes and begins
13147 # with a dollar sign (not a hyphen), so the echo should work correctly.
13148 # The option is referenced via a variable to avoid confusing sed.
13149 lt_compile=`echo "$ac_compile" | $SED \
13150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13152 -e 's:$: $lt_compiler_flag:'`
13153 (eval echo "\"\$as_me:13153: $lt_compile\"" >&5)
13154 (eval "$lt_compile" 2>conftest.err)
13155 ac_status=$?
13156 cat conftest.err >&5
13157 echo "$as_me:13157: \$? = $ac_status" >&5
13158 if (exit $ac_status) && test -s "$ac_outfile"; then
13159 # The compiler can only warn and ignore the option if not recognized
13160 # So say no if there are warnings other than the usual output.
13161 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13163 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13164 lt_prog_compiler_pic_works_CXX=yes
13165 fi
13166 fi
13167 $rm conftest*
13168
13169fi
13170{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13171echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13172
13173if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13174 case $lt_prog_compiler_pic_CXX in
13175 "" | " "*) ;;
13176 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13177 esac
13178else
13179 lt_prog_compiler_pic_CXX=
13180 lt_prog_compiler_can_build_shared_CXX=no
13181fi
13182
13183fi
13184case $host_os in
13185 # For platforms which do not support PIC, -DPIC is meaningless:
13186 *djgpp*)
13187 lt_prog_compiler_pic_CXX=
13188 ;;
13189 *)
13190 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13191 ;;
13192esac
13193
13194#
13195# Check to make sure the static flag actually works.
13196#
13197wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13198{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13199echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13200if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13202else
13203 lt_prog_compiler_static_works_CXX=no
13204 save_LDFLAGS="$LDFLAGS"
13205 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13206 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13207 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13208 # The linker can only warn and ignore the option if not recognized
13209 # So say no if there are warnings
13210 if test -s conftest.err; then
13211 # Append any errors to the config.log.
13212 cat conftest.err 1>&5
13213 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13215 if diff conftest.exp conftest.er2 >/dev/null; then
13216 lt_prog_compiler_static_works_CXX=yes
13217 fi
13218 else
13219 lt_prog_compiler_static_works_CXX=yes
13220 fi
13221 fi
13222 $rm conftest*
13223 LDFLAGS="$save_LDFLAGS"
13224
13225fi
13226{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13227echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13228
13229if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13230 :
13231else
13232 lt_prog_compiler_static_CXX=
13233fi
13234
13235
13236{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13237echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13238if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13240else
13241 lt_cv_prog_compiler_c_o_CXX=no
13242 $rm -r conftest 2>/dev/null
13243 mkdir conftest
13244 cd conftest
13245 mkdir out
13246 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13247
13248 lt_compiler_flag="-o out/conftest2.$ac_objext"
13249 # Insert the option either (1) after the last *FLAGS variable, or
13250 # (2) before a word containing "conftest.", or (3) at the end.
13251 # Note that $ac_compile itself does not contain backslashes and begins
13252 # with a dollar sign (not a hyphen), so the echo should work correctly.
13253 lt_compile=`echo "$ac_compile" | $SED \
13254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13256 -e 's:$: $lt_compiler_flag:'`
13257 (eval echo "\"\$as_me:13257: $lt_compile\"" >&5)
13258 (eval "$lt_compile" 2>out/conftest.err)
13259 ac_status=$?
13260 cat out/conftest.err >&5
13261 echo "$as_me:13261: \$? = $ac_status" >&5
13262 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13263 then
13264 # The compiler can only warn and ignore the option if not recognized
13265 # So say no if there are warnings
13266 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13267 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13268 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13269 lt_cv_prog_compiler_c_o_CXX=yes
13270 fi
13271 fi
13272 chmod u+w . 2>&5
13273 $rm conftest*
13274 # SGI C++ compiler will create directory out/ii_files/ for
13275 # template instantiation
13276 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13277 $rm out/* && rmdir out
13278 cd ..
13279 rmdir conftest
13280 $rm conftest*
13281
13282fi
13283{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13284echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13285
13286
13287hard_links="nottested"
13288if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13289 # do not overwrite the value of need_locks provided by the user
13290 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13291echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13292 hard_links=yes
13293 $rm conftest*
13294 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13295 touch conftest.a
13296 ln conftest.a conftest.b 2>&5 || hard_links=no
13297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13298 { echo "$as_me:$LINENO: result: $hard_links" >&5
13299echo "${ECHO_T}$hard_links" >&6; }
13300 if test "$hard_links" = no; then
13301 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13302echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13303 need_locks=warn
13304 fi
13305else
13306 need_locks=no
13307fi
13308
13309{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13310echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13311
13312 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13313 case $host_os in
13314 aix4* | aix5*)
13315 # If we're using GNU nm, then we don't want the "-C" option.
13316 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13317 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13318 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'
13319 else
13320 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'
13321 fi
13322 ;;
13323 pw32*)
13324 export_symbols_cmds_CXX="$ltdll_cmds"
13325 ;;
13326 cygwin* | mingw*)
13327 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'
13328 ;;
13329 linux* | k*bsd*-gnu)
13330 link_all_deplibs_CXX=no
13331 ;;
13332 *)
13333 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13334 ;;
13335 esac
13336
13337{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13338echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13339test "$ld_shlibs_CXX" = no && can_build_shared=no
13340
13341#
13342# Do we need to explicitly link libc?
13343#
13344case "x$archive_cmds_need_lc_CXX" in
13345x|xyes)
13346 # Assume -lc should be added
13347 archive_cmds_need_lc_CXX=yes
13348
13349 if test "$enable_shared" = yes && test "$GCC" = yes; then
13350 case $archive_cmds_CXX in
13351 *'~'*)
13352 # FIXME: we may have to deal with multi-command sequences.
13353 ;;
13354 '$CC '*)
13355 # Test whether the compiler implicitly links with -lc since on some
13356 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13357 # to ld, don't add -lc before -lgcc.
13358 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13359echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13360 $rm conftest*
13361 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13362
13363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13364 (eval $ac_compile) 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } 2>conftest.err; then
13368 soname=conftest
13369 lib=conftest
13370 libobjs=conftest.$ac_objext
13371 deplibs=
13372 wl=$lt_prog_compiler_wl_CXX
13373 pic_flag=$lt_prog_compiler_pic_CXX
13374 compiler_flags=-v
13375 linker_flags=-v
13376 verstring=
13377 output_objdir=.
13378 libname=conftest
13379 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13380 allow_undefined_flag_CXX=
13381 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13382 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }
13386 then
13387 archive_cmds_need_lc_CXX=no
13388 else
13389 archive_cmds_need_lc_CXX=yes
13390 fi
13391 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13392 else
13393 cat conftest.err 1>&5
13394 fi
13395 $rm conftest*
13396 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13397echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13398 ;;
13399 esac
13400 fi
13401 ;;
13402esac
13403
13404{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13405echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13406library_names_spec=
13407libname_spec='lib$name'
13408soname_spec=
13409shrext_cmds=".so"
13410postinstall_cmds=
13411postuninstall_cmds=
13412finish_cmds=
13413finish_eval=
13414shlibpath_var=
13415shlibpath_overrides_runpath=unknown
13416version_type=none
13417dynamic_linker="$host_os ld.so"
13418sys_lib_dlsearch_path_spec="/lib /usr/lib"
13419if test "$GCC" = yes; then
13420 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13421 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13422 # if the path contains ";" then we assume it to be the separator
13423 # otherwise default to the standard path separator (i.e. ":") - it is
13424 # assumed that no part of a normal pathname contains ";" but that should
13425 # okay in the real world where ";" in dirpaths is itself problematic.
13426 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13427 else
13428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13429 fi
13430else
13431 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13432fi
13433need_lib_prefix=unknown
13434hardcode_into_libs=no
13435
13436# when you set need_version to no, make sure it does not cause -set_version
13437# flags to be left without arguments
13438need_version=unknown
13439
13440case $host_os in
13441aix3*)
13442 version_type=linux
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13444 shlibpath_var=LIBPATH
13445
13446 # AIX 3 has no versioning support, so we append a major version to the name.
13447 soname_spec='${libname}${release}${shared_ext}$major'
13448 ;;
13449
13450aix4* | aix5*)
13451 version_type=linux
13452 need_lib_prefix=no
13453 need_version=no
13454 hardcode_into_libs=yes
13455 if test "$host_cpu" = ia64; then
13456 # AIX 5 supports IA64
13457 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13458 shlibpath_var=LD_LIBRARY_PATH
13459 else
13460 # With GCC up to 2.95.x, collect2 would create an import file
13461 # for dependence libraries. The import file would start with
13462 # the line `#! .'. This would cause the generated library to
13463 # depend on `.', always an invalid library. This was fixed in
13464 # development snapshots of GCC prior to 3.0.
13465 case $host_os in
13466 aix4 | aix4.[01] | aix4.[01].*)
13467 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13468 echo ' yes '
13469 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13470 :
13471 else
13472 can_build_shared=no
13473 fi
13474 ;;
13475 esac
13476 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13477 # soname into executable. Probably we can add versioning support to
13478 # collect2, so additional links can be useful in future.
13479 if test "$aix_use_runtimelinking" = yes; then
13480 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13481 # instead of lib<name>.a to let people know that these are not
13482 # typical AIX shared libraries.
13483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13484 else
13485 # We preserve .a as extension for shared libraries through AIX4.2
13486 # and later when we are not doing run time linking.
13487 library_names_spec='${libname}${release}.a $libname.a'
13488 soname_spec='${libname}${release}${shared_ext}$major'
13489 fi
13490 shlibpath_var=LIBPATH
13491 fi
13492 ;;
13493
13494amigaos*)
13495 library_names_spec='$libname.ixlibrary $libname.a'
13496 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13497 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'
13498 ;;
13499
13500beos*)
13501 library_names_spec='${libname}${shared_ext}'
13502 dynamic_linker="$host_os ld.so"
13503 shlibpath_var=LIBRARY_PATH
13504 ;;
13505
13506bsdi[45]*)
13507 version_type=linux
13508 need_version=no
13509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510 soname_spec='${libname}${release}${shared_ext}$major'
13511 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13512 shlibpath_var=LD_LIBRARY_PATH
13513 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13514 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13515 # the default ld.so.conf also contains /usr/contrib/lib and
13516 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13517 # libtool to hard-code these into programs
13518 ;;
13519
13520cygwin* | mingw* | pw32*)
13521 version_type=windows
13522 shrext_cmds=".dll"
13523 need_version=no
13524 need_lib_prefix=no
13525
13526 case $GCC,$host_os in
13527 yes,cygwin* | yes,mingw* | yes,pw32*)
13528 library_names_spec='$libname.dll.a'
13529 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13530 postinstall_cmds='base_file=`basename \${file}`~
13531 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13532 dldir=$destdir/`dirname \$dlpath`~
13533 test -d \$dldir || mkdir -p \$dldir~
13534 $install_prog $dir/$dlname \$dldir/$dlname~
13535 chmod a+x \$dldir/$dlname'
13536 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13537 dlpath=$dir/\$dldll~
13538 $rm \$dlpath'
13539 shlibpath_overrides_runpath=yes
13540
13541 case $host_os in
13542 cygwin*)
13543 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13544 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13545 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13546 ;;
13547 mingw*)
13548 # MinGW DLLs use traditional 'lib' prefix
13549 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13551 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13552 # It is most probably a Windows format PATH printed by
13553 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13554 # path with ; separators, and with drive letters. We can handle the
13555 # drive letters (cygwin fileutils understands them), so leave them,
13556 # especially as we might pass files found there to a mingw objdump,
13557 # which wouldn't understand a cygwinified path. Ahh.
13558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13559 else
13560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13561 fi
13562 ;;
13563 pw32*)
13564 # pw32 DLLs use 'pw' prefix rather than 'lib'
13565 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13566 ;;
13567 esac
13568 ;;
13569
13570 *)
13571 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13572 ;;
13573 esac
13574 dynamic_linker='Win32 ld.exe'
13575 # FIXME: first we should search . and the directory the executable is in
13576 shlibpath_var=PATH
13577 ;;
13578
13579darwin* | rhapsody*)
13580 dynamic_linker="$host_os dyld"
13581 version_type=darwin
13582 need_lib_prefix=no
13583 need_version=no
13584 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13585 soname_spec='${libname}${release}${major}$shared_ext'
13586 shlibpath_overrides_runpath=yes
13587 shlibpath_var=DYLD_LIBRARY_PATH
13588 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13589 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13590 if test "$GCC" = yes; then
13591 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"`
13592 else
13593 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13594 fi
13595 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13596 ;;
13597
13598dgux*)
13599 version_type=linux
13600 need_lib_prefix=no
13601 need_version=no
13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13603 soname_spec='${libname}${release}${shared_ext}$major'
13604 shlibpath_var=LD_LIBRARY_PATH
13605 ;;
13606
13607freebsd1*)
13608 dynamic_linker=no
13609 ;;
13610
13611freebsd* | dragonfly*)
13612 # DragonFly does not have aout. When/if they implement a new
13613 # versioning mechanism, adjust this.
13614 if test -x /usr/bin/objformat; then
13615 objformat=`/usr/bin/objformat`
13616 else
13617 case $host_os in
13618 freebsd[123]*) objformat=aout ;;
13619 *) objformat=elf ;;
13620 esac
13621 fi
13622 version_type=freebsd-$objformat
13623 case $version_type in
13624 freebsd-elf*)
13625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13626 need_version=no
13627 need_lib_prefix=no
13628 ;;
13629 freebsd-*)
13630 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13631 need_version=yes
13632 ;;
13633 esac
13634 shlibpath_var=LD_LIBRARY_PATH
13635 case $host_os in
13636 freebsd2*)
13637 shlibpath_overrides_runpath=yes
13638 ;;
13639 freebsd3.[01]* | freebsdelf3.[01]*)
13640 shlibpath_overrides_runpath=yes
13641 hardcode_into_libs=yes
13642 ;;
13643 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13644 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13645 shlibpath_overrides_runpath=no
13646 hardcode_into_libs=yes
13647 ;;
13648 freebsd*) # from 4.6 on
13649 shlibpath_overrides_runpath=yes
13650 hardcode_into_libs=yes
13651 ;;
13652 esac
13653 ;;
13654
13655gnu*)
13656 version_type=linux
13657 need_lib_prefix=no
13658 need_version=no
13659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13660 soname_spec='${libname}${release}${shared_ext}$major'
13661 shlibpath_var=LD_LIBRARY_PATH
13662 hardcode_into_libs=yes
13663 ;;
13664
13665hpux9* | hpux10* | hpux11*)
13666 # Give a soname corresponding to the major version so that dld.sl refuses to
13667 # link against other versions.
13668 version_type=sunos
13669 need_lib_prefix=no
13670 need_version=no
13671 case $host_cpu in
13672 ia64*)
13673 shrext_cmds='.so'
13674 hardcode_into_libs=yes
13675 dynamic_linker="$host_os dld.so"
13676 shlibpath_var=LD_LIBRARY_PATH
13677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13679 soname_spec='${libname}${release}${shared_ext}$major'
13680 if test "X$HPUX_IA64_MODE" = X32; then
13681 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13682 else
13683 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13684 fi
13685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13686 ;;
13687 hppa*64*)
13688 shrext_cmds='.sl'
13689 hardcode_into_libs=yes
13690 dynamic_linker="$host_os dld.sl"
13691 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13692 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13694 soname_spec='${libname}${release}${shared_ext}$major'
13695 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13696 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13697 ;;
13698 *)
13699 shrext_cmds='.sl'
13700 dynamic_linker="$host_os dld.sl"
13701 shlibpath_var=SHLIB_PATH
13702 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13704 soname_spec='${libname}${release}${shared_ext}$major'
13705 ;;
13706 esac
13707 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13708 postinstall_cmds='chmod 555 $lib'
13709 ;;
13710
13711interix3*)
13712 version_type=linux
13713 need_lib_prefix=no
13714 need_version=no
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13716 soname_spec='${libname}${release}${shared_ext}$major'
13717 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13718 shlibpath_var=LD_LIBRARY_PATH
13719 shlibpath_overrides_runpath=no
13720 hardcode_into_libs=yes
13721 ;;
13722
13723irix5* | irix6* | nonstopux*)
13724 case $host_os in
13725 nonstopux*) version_type=nonstopux ;;
13726 *)
13727 if test "$lt_cv_prog_gnu_ld" = yes; then
13728 version_type=linux
13729 else
13730 version_type=irix
13731 fi ;;
13732 esac
13733 need_lib_prefix=no
13734 need_version=no
13735 soname_spec='${libname}${release}${shared_ext}$major'
13736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13737 case $host_os in
13738 irix5* | nonstopux*)
13739 libsuff= shlibsuff=
13740 ;;
13741 *)
13742 case $LD in # libtool.m4 will add one of these switches to LD
13743 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13744 libsuff= shlibsuff= libmagic=32-bit;;
13745 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13746 libsuff=32 shlibsuff=N32 libmagic=N32;;
13747 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13748 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13749 *) libsuff= shlibsuff= libmagic=never-match;;
13750 esac
13751 ;;
13752 esac
13753 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13754 shlibpath_overrides_runpath=no
13755 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13756 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13757 hardcode_into_libs=yes
13758 ;;
13759
13760# No shared lib support for Linux oldld, aout, or coff.
13761linux*oldld* | linux*aout* | linux*coff*)
13762 dynamic_linker=no
13763 ;;
13764
13765# This must be Linux ELF.
13766linux* | k*bsd*-gnu)
13767 version_type=linux
13768 need_lib_prefix=no
13769 need_version=no
13770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13771 soname_spec='${libname}${release}${shared_ext}$major'
13772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13773 shlibpath_var=LD_LIBRARY_PATH
13774 shlibpath_overrides_runpath=no
13775 # This implies no fast_install, which is unacceptable.
13776 # Some rework will be needed to allow for fast_install
13777 # before this can be enabled.
13778 hardcode_into_libs=yes
13779
13780 # Append ld.so.conf contents to the search path
13781 if test -f /etc/ld.so.conf; then
13782 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' ' '`
13783 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13784 fi
13785
13786 # We used to test for /lib/ld.so.1 and disable shared libraries on
13787 # powerpc, because MkLinux only supported shared libraries with the
13788 # GNU dynamic linker. Since this was broken with cross compilers,
13789 # most powerpc-linux boxes support dynamic linking these days and
13790 # people can always --disable-shared, the test was removed, and we
13791 # assume the GNU/Linux dynamic linker is in use.
13792 dynamic_linker='GNU/Linux ld.so'
13793 ;;
13794
13795netbsdelf*-gnu)
13796 version_type=linux
13797 need_lib_prefix=no
13798 need_version=no
13799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13800 soname_spec='${libname}${release}${shared_ext}$major'
13801 shlibpath_var=LD_LIBRARY_PATH
13802 shlibpath_overrides_runpath=no
13803 hardcode_into_libs=yes
13804 dynamic_linker='NetBSD ld.elf_so'
13805 ;;
13806
13807netbsd*)
13808 version_type=sunos
13809 need_lib_prefix=no
13810 need_version=no
13811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13814 dynamic_linker='NetBSD (a.out) ld.so'
13815 else
13816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13817 soname_spec='${libname}${release}${shared_ext}$major'
13818 dynamic_linker='NetBSD ld.elf_so'
13819 fi
13820 shlibpath_var=LD_LIBRARY_PATH
13821 shlibpath_overrides_runpath=yes
13822 hardcode_into_libs=yes
13823 ;;
13824
13825newsos6)
13826 version_type=linux
13827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13828 shlibpath_var=LD_LIBRARY_PATH
13829 shlibpath_overrides_runpath=yes
13830 ;;
13831
13832nto-qnx*)
13833 version_type=linux
13834 need_lib_prefix=no
13835 need_version=no
13836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13837 soname_spec='${libname}${release}${shared_ext}$major'
13838 shlibpath_var=LD_LIBRARY_PATH
13839 shlibpath_overrides_runpath=yes
13840 ;;
13841
13842openbsd*)
13843 version_type=sunos
13844 sys_lib_dlsearch_path_spec="/usr/lib"
13845 need_lib_prefix=no
13846 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13847 case $host_os in
13848 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13849 *) need_version=no ;;
13850 esac
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13853 shlibpath_var=LD_LIBRARY_PATH
13854 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13855 case $host_os in
13856 openbsd2.[89] | openbsd2.[89].*)
13857 shlibpath_overrides_runpath=no
13858 ;;
13859 *)
13860 shlibpath_overrides_runpath=yes
13861 ;;
13862 esac
13863 else
13864 shlibpath_overrides_runpath=yes
13865 fi
13866 ;;
13867
13868os2*)
13869 libname_spec='$name'
13870 shrext_cmds=".dll"
13871 need_lib_prefix=no
13872 library_names_spec='$libname${shared_ext} $libname.a'
13873 dynamic_linker='OS/2 ld.exe'
13874 shlibpath_var=LIBPATH
13875 ;;
13876
13877osf3* | osf4* | osf5*)
13878 version_type=osf
13879 need_lib_prefix=no
13880 need_version=no
13881 soname_spec='${libname}${release}${shared_ext}$major'
13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13883 shlibpath_var=LD_LIBRARY_PATH
13884 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13885 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13886 ;;
13887
13888solaris*)
13889 version_type=linux
13890 need_lib_prefix=no
13891 need_version=no
13892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13893 soname_spec='${libname}${release}${shared_ext}$major'
13894 shlibpath_var=LD_LIBRARY_PATH
13895 shlibpath_overrides_runpath=yes
13896 hardcode_into_libs=yes
13897 # ldd complains unless libraries are executable
13898 postinstall_cmds='chmod +x $lib'
13899 ;;
13900
13901sunos4*)
13902 version_type=sunos
13903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13904 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13905 shlibpath_var=LD_LIBRARY_PATH
13906 shlibpath_overrides_runpath=yes
13907 if test "$with_gnu_ld" = yes; then
13908 need_lib_prefix=no
13909 fi
13910 need_version=yes
13911 ;;
13912
13913sysv4 | sysv4.3*)
13914 version_type=linux
13915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13916 soname_spec='${libname}${release}${shared_ext}$major'
13917 shlibpath_var=LD_LIBRARY_PATH
13918 case $host_vendor in
13919 sni)
13920 shlibpath_overrides_runpath=no
13921 need_lib_prefix=no
13922 export_dynamic_flag_spec='${wl}-Blargedynsym'
13923 runpath_var=LD_RUN_PATH
13924 ;;
13925 siemens)
13926 need_lib_prefix=no
13927 ;;
13928 motorola)
13929 need_lib_prefix=no
13930 need_version=no
13931 shlibpath_overrides_runpath=no
13932 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13933 ;;
13934 esac
13935 ;;
13936
13937sysv4*MP*)
13938 if test -d /usr/nec ;then
13939 version_type=linux
13940 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13941 soname_spec='$libname${shared_ext}.$major'
13942 shlibpath_var=LD_LIBRARY_PATH
13943 fi
13944 ;;
13945
13946sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13947 version_type=freebsd-elf
13948 need_lib_prefix=no
13949 need_version=no
13950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13951 soname_spec='${libname}${release}${shared_ext}$major'
13952 shlibpath_var=LD_LIBRARY_PATH
13953 hardcode_into_libs=yes
13954 if test "$with_gnu_ld" = yes; then
13955 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13956 shlibpath_overrides_runpath=no
13957 else
13958 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13959 shlibpath_overrides_runpath=yes
13960 case $host_os in
13961 sco3.2v5*)
13962 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13963 ;;
13964 esac
13965 fi
13966 sys_lib_dlsearch_path_spec='/usr/lib'
13967 ;;
13968
13969uts4*)
13970 version_type=linux
13971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13972 soname_spec='${libname}${release}${shared_ext}$major'
13973 shlibpath_var=LD_LIBRARY_PATH
13974 ;;
13975
13976*)
13977 dynamic_linker=no
13978 ;;
13979esac
13980{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13981echo "${ECHO_T}$dynamic_linker" >&6; }
13982test "$dynamic_linker" = no && can_build_shared=no
13983
13984variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13985if test "$GCC" = yes; then
13986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13987fi
13988
13989{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13990echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13991hardcode_action_CXX=
13992if test -n "$hardcode_libdir_flag_spec_CXX" || \
13993 test -n "$runpath_var_CXX" || \
13994 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13995
13996 # We can hardcode non-existant directories.
13997 if test "$hardcode_direct_CXX" != no &&
13998 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13999 # have to relink, otherwise we might link with an installed library
14000 # when we should be linking with a yet-to-be-installed one
14001 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14002 test "$hardcode_minus_L_CXX" != no; then
14003 # Linking always hardcodes the temporary library directory.
14004 hardcode_action_CXX=relink
14005 else
14006 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14007 hardcode_action_CXX=immediate
14008 fi
14009else
14010 # We cannot hardcode anything, or else we can only hardcode existing
14011 # directories.
14012 hardcode_action_CXX=unsupported
14013fi
14014{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14015echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14016
14017if test "$hardcode_action_CXX" = relink; then
14018 # Fast installation is not supported
14019 enable_fast_install=no
14020elif test "$shlibpath_overrides_runpath" = yes ||
14021 test "$enable_shared" = no; then
14022 # Fast installation is not necessary
14023 enable_fast_install=needless
14024fi
14025
14026
14027# The else clause should only fire when bootstrapping the
14028# libtool distribution, otherwise you forgot to ship ltmain.sh
14029# with your package, and you will get complaints that there are
14030# no rules to generate ltmain.sh.
14031if test -f "$ltmain"; then
14032 # See if we are running on zsh, and set the options which allow our commands through
14033 # without removal of \ escapes.
14034 if test -n "${ZSH_VERSION+set}" ; then
14035 setopt NO_GLOB_SUBST
14036 fi
14037 # Now quote all the things that may contain metacharacters while being
14038 # careful not to overquote the AC_SUBSTed values. We take copies of the
14039 # variables and quote the copies for generation of the libtool script.
14040 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14041 SED SHELL STRIP \
14042 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14043 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14044 deplibs_check_method reload_flag reload_cmds need_locks \
14045 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14046 lt_cv_sys_global_symbol_to_c_name_address \
14047 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14048 old_postinstall_cmds old_postuninstall_cmds \
14049 compiler_CXX \
14050 CC_CXX \
14051 LD_CXX \
14052 lt_prog_compiler_wl_CXX \
14053 lt_prog_compiler_pic_CXX \
14054 lt_prog_compiler_static_CXX \
14055 lt_prog_compiler_no_builtin_flag_CXX \
14056 export_dynamic_flag_spec_CXX \
14057 thread_safe_flag_spec_CXX \
14058 whole_archive_flag_spec_CXX \
14059 enable_shared_with_static_runtimes_CXX \
14060 old_archive_cmds_CXX \
14061 old_archive_from_new_cmds_CXX \
14062 predep_objects_CXX \
14063 postdep_objects_CXX \
14064 predeps_CXX \
14065 postdeps_CXX \
14066 compiler_lib_search_path_CXX \
14067 archive_cmds_CXX \
14068 archive_expsym_cmds_CXX \
14069 postinstall_cmds_CXX \
14070 postuninstall_cmds_CXX \
14071 old_archive_from_expsyms_cmds_CXX \
14072 allow_undefined_flag_CXX \
14073 no_undefined_flag_CXX \
14074 export_symbols_cmds_CXX \
14075 hardcode_libdir_flag_spec_CXX \
14076 hardcode_libdir_flag_spec_ld_CXX \
14077 hardcode_libdir_separator_CXX \
14078 hardcode_automatic_CXX \
14079 module_cmds_CXX \
14080 module_expsym_cmds_CXX \
14081 lt_cv_prog_compiler_c_o_CXX \
14082 exclude_expsyms_CXX \
14083 include_expsyms_CXX; do
14084
14085 case $var in
14086 old_archive_cmds_CXX | \
14087 old_archive_from_new_cmds_CXX | \
14088 archive_cmds_CXX | \
14089 archive_expsym_cmds_CXX | \
14090 module_cmds_CXX | \
14091 module_expsym_cmds_CXX | \
14092 old_archive_from_expsyms_cmds_CXX | \
14093 export_symbols_cmds_CXX | \
14094 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14095 postinstall_cmds | postuninstall_cmds | \
14096 old_postinstall_cmds | old_postuninstall_cmds | \
14097 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14098 # Double-quote double-evaled strings.
14099 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14100 ;;
14101 *)
14102 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14103 ;;
14104 esac
14105 done
14106
14107 case $lt_echo in
14108 *'\$0 --fallback-echo"')
14109 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14110 ;;
14111 esac
14112
14113cfgfile="$ofile"
14114
14115 cat <<__EOF__ >> "$cfgfile"
14116# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14117
14118# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14119
14120# Shell to use when invoking shell scripts.
14121SHELL=$lt_SHELL
14122
14123# Whether or not to build shared libraries.
14124build_libtool_libs=$enable_shared
14125
14126# Whether or not to build static libraries.
14127build_old_libs=$enable_static
14128
14129# Whether or not to add -lc for building shared libraries.
14130build_libtool_need_lc=$archive_cmds_need_lc_CXX
14131
14132# Whether or not to disallow shared libs when runtime libs are static
14133allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14134
14135# Whether or not to optimize for fast installation.
14136fast_install=$enable_fast_install
14137
14138# The host system.
14139host_alias=$host_alias
14140host=$host
14141host_os=$host_os
14142
14143# The build system.
14144build_alias=$build_alias
14145build=$build
14146build_os=$build_os
14147
14148# An echo program that does not interpret backslashes.
14149echo=$lt_echo
14150
14151# The archiver.
14152AR=$lt_AR
14153AR_FLAGS=$lt_AR_FLAGS
14154
14155# A C compiler.
14156LTCC=$lt_LTCC
14157
14158# LTCC compiler flags.
14159LTCFLAGS=$lt_LTCFLAGS
14160
14161# A language-specific compiler.
14162CC=$lt_compiler_CXX
14163
14164# Is the compiler the GNU C compiler?
14165with_gcc=$GCC_CXX
14166
14167# An ERE matcher.
14168EGREP=$lt_EGREP
14169
14170# The linker used to build libraries.
14171LD=$lt_LD_CXX
14172
14173# Whether we need hard or soft links.
14174LN_S=$lt_LN_S
14175
14176# A BSD-compatible nm program.
14177NM=$lt_NM
14178
14179# A symbol stripping program
14180STRIP=$lt_STRIP
14181
14182# Used to examine libraries when file_magic_cmd begins "file"
14183MAGIC_CMD=$MAGIC_CMD
14184
14185# Used on cygwin: DLL creation program.
14186DLLTOOL="$DLLTOOL"
14187
14188# Used on cygwin: object dumper.
14189OBJDUMP="$OBJDUMP"
14190
14191# Used on cygwin: assembler.
14192AS="$AS"
14193
14194# The name of the directory that contains temporary libtool files.
14195objdir=$objdir
14196
14197# How to create reloadable object files.
14198reload_flag=$lt_reload_flag
14199reload_cmds=$lt_reload_cmds
14200
14201# How to pass a linker flag through the compiler.
14202wl=$lt_lt_prog_compiler_wl_CXX
14203
14204# Object file suffix (normally "o").
14205objext="$ac_objext"
14206
14207# Old archive suffix (normally "a").
14208libext="$libext"
14209
14210# Shared library suffix (normally ".so").
14211shrext_cmds='$shrext_cmds'
14212
14213# Executable file suffix (normally "").
14214exeext="$exeext"
14215
14216# Additional compiler flags for building library objects.
14217pic_flag=$lt_lt_prog_compiler_pic_CXX
14218pic_mode=$pic_mode
14219
14220# What is the maximum length of a command?
14221max_cmd_len=$lt_cv_sys_max_cmd_len
14222
14223# Does compiler simultaneously support -c and -o options?
14224compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14225
14226# Must we lock files when doing compilation?
14227need_locks=$lt_need_locks
14228
14229# Do we need the lib prefix for modules?
14230need_lib_prefix=$need_lib_prefix
14231
14232# Do we need a version for libraries?
14233need_version=$need_version
14234
14235# Whether dlopen is supported.
14236dlopen_support=$enable_dlopen
14237
14238# Whether dlopen of programs is supported.
14239dlopen_self=$enable_dlopen_self
14240
14241# Whether dlopen of statically linked programs is supported.
14242dlopen_self_static=$enable_dlopen_self_static
14243
14244# Compiler flag to prevent dynamic linking.
14245link_static_flag=$lt_lt_prog_compiler_static_CXX
14246
14247# Compiler flag to turn off builtin functions.
14248no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14249
14250# Compiler flag to allow reflexive dlopens.
14251export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14252
14253# Compiler flag to generate shared objects directly from archives.
14254whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14255
14256# Compiler flag to generate thread-safe objects.
14257thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14258
14259# Library versioning type.
14260version_type=$version_type
14261
14262# Format of library name prefix.
14263libname_spec=$lt_libname_spec
14264
14265# List of archive names. First name is the real one, the rest are links.
14266# The last name is the one that the linker finds with -lNAME.
14267library_names_spec=$lt_library_names_spec
14268
14269# The coded name of the library, if different from the real name.
14270soname_spec=$lt_soname_spec
14271
14272# Commands used to build and install an old-style archive.
14273RANLIB=$lt_RANLIB
14274old_archive_cmds=$lt_old_archive_cmds_CXX
14275old_postinstall_cmds=$lt_old_postinstall_cmds
14276old_postuninstall_cmds=$lt_old_postuninstall_cmds
14277
14278# Create an old-style archive from a shared archive.
14279old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14280
14281# Create a temporary old-style archive to link instead of a shared archive.
14282old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14283
14284# Commands used to build and install a shared archive.
14285archive_cmds=$lt_archive_cmds_CXX
14286archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14287postinstall_cmds=$lt_postinstall_cmds
14288postuninstall_cmds=$lt_postuninstall_cmds
14289
14290# Commands used to build a loadable module (assumed same as above if empty)
14291module_cmds=$lt_module_cmds_CXX
14292module_expsym_cmds=$lt_module_expsym_cmds_CXX
14293
14294# Commands to strip libraries.
14295old_striplib=$lt_old_striplib
14296striplib=$lt_striplib
14297
14298# Dependencies to place before the objects being linked to create a
14299# shared library.
14300predep_objects=$lt_predep_objects_CXX
14301
14302# Dependencies to place after the objects being linked to create a
14303# shared library.
14304postdep_objects=$lt_postdep_objects_CXX
14305
14306# Dependencies to place before the objects being linked to create a
14307# shared library.
14308predeps=$lt_predeps_CXX
14309
14310# Dependencies to place after the objects being linked to create a
14311# shared library.
14312postdeps=$lt_postdeps_CXX
14313
14314# The library search path used internally by the compiler when linking
14315# a shared library.
14316compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14317
14318# Method to check whether dependent libraries are shared objects.
14319deplibs_check_method=$lt_deplibs_check_method
14320
14321# Command to use when deplibs_check_method == file_magic.
14322file_magic_cmd=$lt_file_magic_cmd
14323
14324# Flag that allows shared libraries with undefined symbols to be built.
14325allow_undefined_flag=$lt_allow_undefined_flag_CXX
14326
14327# Flag that forces no undefined symbols.
14328no_undefined_flag=$lt_no_undefined_flag_CXX
14329
14330# Commands used to finish a libtool library installation in a directory.
14331finish_cmds=$lt_finish_cmds
14332
14333# Same as above, but a single script fragment to be evaled but not shown.
14334finish_eval=$lt_finish_eval
14335
14336# Take the output of nm and produce a listing of raw symbols and C names.
14337global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14338
14339# Transform the output of nm in a proper C declaration
14340global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14341
14342# Transform the output of nm in a C name address pair
14343global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14344
14345# This is the shared library runtime path variable.
14346runpath_var=$runpath_var
14347
14348# This is the shared library path variable.
14349shlibpath_var=$shlibpath_var
14350
14351# Is shlibpath searched before the hard-coded library search path?
14352shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14353
14354# How to hardcode a shared library path into an executable.
14355hardcode_action=$hardcode_action_CXX
14356
14357# Whether we should hardcode library paths into libraries.
14358hardcode_into_libs=$hardcode_into_libs
14359
14360# Flag to hardcode \$libdir into a binary during linking.
14361# This must work even if \$libdir does not exist.
14362hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14363
14364# If ld is used when linking, flag to hardcode \$libdir into
14365# a binary during linking. This must work even if \$libdir does
14366# not exist.
14367hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14368
14369# Whether we need a single -rpath flag with a separated argument.
14370hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14371
14372# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14373# resulting binary.
14374hardcode_direct=$hardcode_direct_CXX
14375
14376# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14377# resulting binary.
14378hardcode_minus_L=$hardcode_minus_L_CXX
14379
14380# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14381# the resulting binary.
14382hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14383
14384# Set to yes if building a shared library automatically hardcodes DIR into the library
14385# and all subsequent libraries and executables linked against it.
14386hardcode_automatic=$hardcode_automatic_CXX
14387
14388# Variables whose values should be saved in libtool wrapper scripts and
14389# restored at relink time.
14390variables_saved_for_relink="$variables_saved_for_relink"
14391
14392# Whether libtool must link a program against all its dependency libraries.
14393link_all_deplibs=$link_all_deplibs_CXX
14394
14395# Compile-time system search path for libraries
14396sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14397
14398# Run-time system search path for libraries
14399sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14400
14401# Fix the shell variable \$srcfile for the compiler.
14402fix_srcfile_path="$fix_srcfile_path_CXX"
14403
14404# Set to yes if exported symbols are required.
14405always_export_symbols=$always_export_symbols_CXX
14406
14407# The commands to list exported symbols.
14408export_symbols_cmds=$lt_export_symbols_cmds_CXX
14409
14410# The commands to extract the exported symbol list from a shared archive.
14411extract_expsyms_cmds=$lt_extract_expsyms_cmds
14412
14413# Symbols that should not be listed in the preloaded symbols.
14414exclude_expsyms=$lt_exclude_expsyms_CXX
14415
14416# Symbols that must always be exported.
14417include_expsyms=$lt_include_expsyms_CXX
14418
14419# ### END LIBTOOL TAG CONFIG: $tagname
14420
14421__EOF__
14422
14423
14424else
14425 # If there is no Makefile yet, we rely on a make rule to execute
14426 # `config.status --recheck' to rerun these tests and create the
14427 # libtool script then.
14428 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14429 if test -f "$ltmain_in"; then
14430 test -f Makefile && make "$ltmain"
14431 fi
14432fi
14433
14434
14435ac_ext=c
14436ac_cpp='$CPP $CPPFLAGS'
14437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14439ac_compiler_gnu=$ac_cv_c_compiler_gnu
14440
14441CC=$lt_save_CC
14442LDCXX=$LD
14443LD=$lt_save_LD
14444GCC=$lt_save_GCC
14445with_gnu_ldcxx=$with_gnu_ld
14446with_gnu_ld=$lt_save_with_gnu_ld
14447lt_cv_path_LDCXX=$lt_cv_path_LD
14448lt_cv_path_LD=$lt_save_path_LD
14449lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14450lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14451
14452 else
14453 tagname=""
14454 fi
14455 ;;
14456
14457 F77)
14458 if test -n "$F77" && test "X$F77" != "Xno"; then
14459
14460ac_ext=f
14461ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14462ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14463ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14464
14465
14466archive_cmds_need_lc_F77=no
14467allow_undefined_flag_F77=
14468always_export_symbols_F77=no
14469archive_expsym_cmds_F77=
14470export_dynamic_flag_spec_F77=
14471hardcode_direct_F77=no
14472hardcode_libdir_flag_spec_F77=
14473hardcode_libdir_flag_spec_ld_F77=
14474hardcode_libdir_separator_F77=
14475hardcode_minus_L_F77=no
14476hardcode_automatic_F77=no
14477module_cmds_F77=
14478module_expsym_cmds_F77=
14479link_all_deplibs_F77=unknown
14480old_archive_cmds_F77=$old_archive_cmds
14481no_undefined_flag_F77=
14482whole_archive_flag_spec_F77=
14483enable_shared_with_static_runtimes_F77=no
14484
14485# Source file extension for f77 test sources.
14486ac_ext=f
14487
14488# Object file extension for compiled f77 test sources.
14489objext=o
14490objext_F77=$objext
14491
14492# Code to be used in simple compile tests
14493lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14494
14495# Code to be used in simple link tests
14496lt_simple_link_test_code=" program t\n end\n"
14497
14498# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14499
14500# If no C compiler was specified, use CC.
14501LTCC=${LTCC-"$CC"}
14502
14503# If no C compiler flags were specified, use CFLAGS.
14504LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14505
14506# Allow CC to be a program name with arguments.
14507compiler=$CC
14508
14509
14510# save warnings/boilerplate of simple test code
14511ac_outfile=conftest.$ac_objext
14512printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14513eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14514_lt_compiler_boilerplate=`cat conftest.err`
14515$rm conftest*
14516
14517ac_outfile=conftest.$ac_objext
14518printf "$lt_simple_link_test_code" >conftest.$ac_ext
14519eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14520_lt_linker_boilerplate=`cat conftest.err`
14521$rm conftest*
14522
14523
14524# Allow CC to be a program name with arguments.
14525lt_save_CC="$CC"
14526CC=${F77-"f77"}
14527compiler=$CC
14528compiler_F77=$CC
14529for cc_temp in $compiler""; do
14530 case $cc_temp in
14531 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14532 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14533 \-*) ;;
14534 *) break;;
14535 esac
14536done
14537cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14538
14539
14540{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14541echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14542{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14543echo "${ECHO_T}$can_build_shared" >&6; }
14544
14545{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14546echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14547test "$can_build_shared" = "no" && enable_shared=no
14548
14549# On AIX, shared libraries and static libraries use the same namespace, and
14550# are all built from PIC.
14551case $host_os in
14552aix3*)
14553 test "$enable_shared" = yes && enable_static=no
14554 if test -n "$RANLIB"; then
14555 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14556 postinstall_cmds='$RANLIB $lib'
14557 fi
14558 ;;
14559aix4* | aix5*)
14560 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14561 test "$enable_shared" = yes && enable_static=no
14562 fi
14563 ;;
14564esac
14565{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14566echo "${ECHO_T}$enable_shared" >&6; }
14567
14568{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14569echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14570# Make sure either enable_shared or enable_static is yes.
14571test "$enable_shared" = yes || enable_static=yes
14572{ echo "$as_me:$LINENO: result: $enable_static" >&5
14573echo "${ECHO_T}$enable_static" >&6; }
14574
14575GCC_F77="$G77"
14576LD_F77="$LD"
14577
14578lt_prog_compiler_wl_F77=
14579lt_prog_compiler_pic_F77=
14580lt_prog_compiler_static_F77=
14581
14582{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14583echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14584
14585 if test "$GCC" = yes; then
14586 lt_prog_compiler_wl_F77='-Wl,'
14587 lt_prog_compiler_static_F77='-static'
14588
14589 case $host_os in
14590 aix*)
14591 # All AIX code is PIC.
14592 if test "$host_cpu" = ia64; then
14593 # AIX 5 now supports IA64 processor
14594 lt_prog_compiler_static_F77='-Bstatic'
14595 fi
14596 ;;
14597
14598 amigaos*)
14599 # FIXME: we need at least 68020 code to build shared libraries, but
14600 # adding the `-m68020' flag to GCC prevents building anything better,
14601 # like `-m68040'.
14602 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14603 ;;
14604
14605 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14606 # PIC is the default for these OSes.
14607 ;;
14608
14609 mingw* | pw32* | os2*)
14610 # This hack is so that the source file can tell whether it is being
14611 # built for inclusion in a dll (and should export symbols for example).
14612 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14613 ;;
14614
14615 darwin* | rhapsody*)
14616 # PIC is the default on this platform
14617 # Common symbols not allowed in MH_DYLIB files
14618 lt_prog_compiler_pic_F77='-fno-common'
14619 ;;
14620
14621 interix3*)
14622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14623 # Instead, we relocate shared libraries at runtime.
14624 ;;
14625
14626 msdosdjgpp*)
14627 # Just because we use GCC doesn't mean we suddenly get shared libraries
14628 # on systems that don't support them.
14629 lt_prog_compiler_can_build_shared_F77=no
14630 enable_shared=no
14631 ;;
14632
14633 sysv4*MP*)
14634 if test -d /usr/nec; then
14635 lt_prog_compiler_pic_F77=-Kconform_pic
14636 fi
14637 ;;
14638
14639 hpux*)
14640 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14641 # not for PA HP-UX.
14642 case $host_cpu in
14643 hppa*64*|ia64*)
14644 # +Z the default
14645 ;;
14646 *)
14647 lt_prog_compiler_pic_F77='-fPIC'
14648 ;;
14649 esac
14650 ;;
14651
14652 *)
14653 lt_prog_compiler_pic_F77='-fPIC'
14654 ;;
14655 esac
14656 else
14657 # PORTME Check for flag to pass linker flags through the system compiler.
14658 case $host_os in
14659 aix*)
14660 lt_prog_compiler_wl_F77='-Wl,'
14661 if test "$host_cpu" = ia64; then
14662 # AIX 5 now supports IA64 processor
14663 lt_prog_compiler_static_F77='-Bstatic'
14664 else
14665 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14666 fi
14667 ;;
14668 darwin*)
14669 # PIC is the default on this platform
14670 # Common symbols not allowed in MH_DYLIB files
14671 case $cc_basename in
14672 xlc*)
14673 lt_prog_compiler_pic_F77='-qnocommon'
14674 lt_prog_compiler_wl_F77='-Wl,'
14675 ;;
14676 esac
14677 ;;
14678
14679 mingw* | pw32* | os2*)
14680 # This hack is so that the source file can tell whether it is being
14681 # built for inclusion in a dll (and should export symbols for example).
14682 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14683 ;;
14684
14685 hpux9* | hpux10* | hpux11*)
14686 lt_prog_compiler_wl_F77='-Wl,'
14687 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14688 # not for PA HP-UX.
14689 case $host_cpu in
14690 hppa*64*|ia64*)
14691 # +Z the default
14692 ;;
14693 *)
14694 lt_prog_compiler_pic_F77='+Z'
14695 ;;
14696 esac
14697 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14698 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14699 ;;
14700
14701 irix5* | irix6* | nonstopux*)
14702 lt_prog_compiler_wl_F77='-Wl,'
14703 # PIC (with -KPIC) is the default.
14704 lt_prog_compiler_static_F77='-non_shared'
14705 ;;
14706
14707 newsos6)
14708 lt_prog_compiler_pic_F77='-KPIC'
14709 lt_prog_compiler_static_F77='-Bstatic'
14710 ;;
14711
14712 linux* | k*bsd*-gnu)
14713 case $cc_basename in
14714 icc* | ecc*)
14715 lt_prog_compiler_wl_F77='-Wl,'
14716 lt_prog_compiler_pic_F77='-KPIC'
14717 lt_prog_compiler_static_F77='-static'
14718 ;;
14719 pgcc* | pgf77* | pgf90* | pgf95*)
14720 # Portland Group compilers (*not* the Pentium gcc compiler,
14721 # which looks to be a dead project)
14722 lt_prog_compiler_wl_F77='-Wl,'
14723 lt_prog_compiler_pic_F77='-fpic'
14724 lt_prog_compiler_static_F77='-Bstatic'
14725 ;;
14726 ccc*)
14727 lt_prog_compiler_wl_F77='-Wl,'
14728 # All Alpha code is PIC.
14729 lt_prog_compiler_static_F77='-non_shared'
14730 ;;
14731 esac
14732 ;;
14733
14734 osf3* | osf4* | osf5*)
14735 lt_prog_compiler_wl_F77='-Wl,'
14736 # All OSF/1 code is PIC.
14737 lt_prog_compiler_static_F77='-non_shared'
14738 ;;
14739
14740 solaris*)
14741 lt_prog_compiler_pic_F77='-KPIC'
14742 lt_prog_compiler_static_F77='-Bstatic'
14743 case $cc_basename in
14744 f77* | f90* | f95*)
14745 lt_prog_compiler_wl_F77='-Qoption ld ';;
14746 *)
14747 lt_prog_compiler_wl_F77='-Wl,';;
14748 esac
14749 ;;
14750
14751 sunos4*)
14752 lt_prog_compiler_wl_F77='-Qoption ld '
14753 lt_prog_compiler_pic_F77='-PIC'
14754 lt_prog_compiler_static_F77='-Bstatic'
14755 ;;
14756
14757 sysv4 | sysv4.2uw2* | sysv4.3*)
14758 lt_prog_compiler_wl_F77='-Wl,'
14759 lt_prog_compiler_pic_F77='-KPIC'
14760 lt_prog_compiler_static_F77='-Bstatic'
14761 ;;
14762
14763 sysv4*MP*)
14764 if test -d /usr/nec ;then
14765 lt_prog_compiler_pic_F77='-Kconform_pic'
14766 lt_prog_compiler_static_F77='-Bstatic'
14767 fi
14768 ;;
14769
14770 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14771 lt_prog_compiler_wl_F77='-Wl,'
14772 lt_prog_compiler_pic_F77='-KPIC'
14773 lt_prog_compiler_static_F77='-Bstatic'
14774 ;;
14775
14776 unicos*)
14777 lt_prog_compiler_wl_F77='-Wl,'
14778 lt_prog_compiler_can_build_shared_F77=no
14779 ;;
14780
14781 uts4*)
14782 lt_prog_compiler_pic_F77='-pic'
14783 lt_prog_compiler_static_F77='-Bstatic'
14784 ;;
14785
14786 *)
14787 lt_prog_compiler_can_build_shared_F77=no
14788 ;;
14789 esac
14790 fi
14791
14792{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14793echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14794
14795#
14796# Check to make sure the PIC flag actually works.
14797#
14798if test -n "$lt_prog_compiler_pic_F77"; then
14799
14800{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14801echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14802if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14804else
14805 lt_prog_compiler_pic_works_F77=no
14806 ac_outfile=conftest.$ac_objext
14807 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14808 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14809 # Insert the option either (1) after the last *FLAGS variable, or
14810 # (2) before a word containing "conftest.", or (3) at the end.
14811 # Note that $ac_compile itself does not contain backslashes and begins
14812 # with a dollar sign (not a hyphen), so the echo should work correctly.
14813 # The option is referenced via a variable to avoid confusing sed.
14814 lt_compile=`echo "$ac_compile" | $SED \
14815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14817 -e 's:$: $lt_compiler_flag:'`
14818 (eval echo "\"\$as_me:14818: $lt_compile\"" >&5)
14819 (eval "$lt_compile" 2>conftest.err)
14820 ac_status=$?
14821 cat conftest.err >&5
14822 echo "$as_me:14822: \$? = $ac_status" >&5
14823 if (exit $ac_status) && test -s "$ac_outfile"; then
14824 # The compiler can only warn and ignore the option if not recognized
14825 # So say no if there are warnings other than the usual output.
14826 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14829 lt_prog_compiler_pic_works_F77=yes
14830 fi
14831 fi
14832 $rm conftest*
14833
14834fi
14835{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14836echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14837
14838if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14839 case $lt_prog_compiler_pic_F77 in
14840 "" | " "*) ;;
14841 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14842 esac
14843else
14844 lt_prog_compiler_pic_F77=
14845 lt_prog_compiler_can_build_shared_F77=no
14846fi
14847
14848fi
14849case $host_os in
14850 # For platforms which do not support PIC, -DPIC is meaningless:
14851 *djgpp*)
14852 lt_prog_compiler_pic_F77=
14853 ;;
14854 *)
14855 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14856 ;;
14857esac
14858
14859#
14860# Check to make sure the static flag actually works.
14861#
14862wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14863{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14864echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14865if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14866 echo $ECHO_N "(cached) $ECHO_C" >&6
14867else
14868 lt_prog_compiler_static_works_F77=no
14869 save_LDFLAGS="$LDFLAGS"
14870 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14871 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14873 # The linker can only warn and ignore the option if not recognized
14874 # So say no if there are warnings
14875 if test -s conftest.err; then
14876 # Append any errors to the config.log.
14877 cat conftest.err 1>&5
14878 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14880 if diff conftest.exp conftest.er2 >/dev/null; then
14881 lt_prog_compiler_static_works_F77=yes
14882 fi
14883 else
14884 lt_prog_compiler_static_works_F77=yes
14885 fi
14886 fi
14887 $rm conftest*
14888 LDFLAGS="$save_LDFLAGS"
14889
14890fi
14891{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14892echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14893
14894if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14895 :
14896else
14897 lt_prog_compiler_static_F77=
14898fi
14899
14900
14901{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14902echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14903if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14904 echo $ECHO_N "(cached) $ECHO_C" >&6
14905else
14906 lt_cv_prog_compiler_c_o_F77=no
14907 $rm -r conftest 2>/dev/null
14908 mkdir conftest
14909 cd conftest
14910 mkdir out
14911 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14912
14913 lt_compiler_flag="-o out/conftest2.$ac_objext"
14914 # Insert the option either (1) after the last *FLAGS variable, or
14915 # (2) before a word containing "conftest.", or (3) at the end.
14916 # Note that $ac_compile itself does not contain backslashes and begins
14917 # with a dollar sign (not a hyphen), so the echo should work correctly.
14918 lt_compile=`echo "$ac_compile" | $SED \
14919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14921 -e 's:$: $lt_compiler_flag:'`
14922 (eval echo "\"\$as_me:14922: $lt_compile\"" >&5)
14923 (eval "$lt_compile" 2>out/conftest.err)
14924 ac_status=$?
14925 cat out/conftest.err >&5
14926 echo "$as_me:14926: \$? = $ac_status" >&5
14927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14928 then
14929 # The compiler can only warn and ignore the option if not recognized
14930 # So say no if there are warnings
14931 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14934 lt_cv_prog_compiler_c_o_F77=yes
14935 fi
14936 fi
14937 chmod u+w . 2>&5
14938 $rm conftest*
14939 # SGI C++ compiler will create directory out/ii_files/ for
14940 # template instantiation
14941 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14942 $rm out/* && rmdir out
14943 cd ..
14944 rmdir conftest
14945 $rm conftest*
14946
14947fi
14948{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14949echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14950
14951
14952hard_links="nottested"
14953if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14954 # do not overwrite the value of need_locks provided by the user
14955 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14956echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14957 hard_links=yes
14958 $rm conftest*
14959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14960 touch conftest.a
14961 ln conftest.a conftest.b 2>&5 || hard_links=no
14962 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14963 { echo "$as_me:$LINENO: result: $hard_links" >&5
14964echo "${ECHO_T}$hard_links" >&6; }
14965 if test "$hard_links" = no; then
14966 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14967echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14968 need_locks=warn
14969 fi
14970else
14971 need_locks=no
14972fi
14973
14974{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14975echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14976
14977 runpath_var=
14978 allow_undefined_flag_F77=
14979 enable_shared_with_static_runtimes_F77=no
14980 archive_cmds_F77=
14981 archive_expsym_cmds_F77=
14982 old_archive_From_new_cmds_F77=
14983 old_archive_from_expsyms_cmds_F77=
14984 export_dynamic_flag_spec_F77=
14985 whole_archive_flag_spec_F77=
14986 thread_safe_flag_spec_F77=
14987 hardcode_libdir_flag_spec_F77=
14988 hardcode_libdir_flag_spec_ld_F77=
14989 hardcode_libdir_separator_F77=
14990 hardcode_direct_F77=no
14991 hardcode_minus_L_F77=no
14992 hardcode_shlibpath_var_F77=unsupported
14993 link_all_deplibs_F77=unknown
14994 hardcode_automatic_F77=no
14995 module_cmds_F77=
14996 module_expsym_cmds_F77=
14997 always_export_symbols_F77=no
14998 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14999 # include_expsyms should be a list of space-separated symbols to be *always*
15000 # included in the symbol list
15001 include_expsyms_F77=
15002 # exclude_expsyms can be an extended regexp of symbols to exclude
15003 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15004 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15005 # as well as any symbol that contains `d'.
15006 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15007 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15008 # platforms (ab)use it in PIC code, but their linkers get confused if
15009 # the symbol is explicitly referenced. Since portable code cannot
15010 # rely on this symbol name, it's probably fine to never include it in
15011 # preloaded symbol tables.
15012 extract_expsyms_cmds=
15013 # Just being paranoid about ensuring that cc_basename is set.
15014 for cc_temp in $compiler""; do
15015 case $cc_temp in
15016 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15017 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15018 \-*) ;;
15019 *) break;;
15020 esac
15021done
15022cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15023
15024 case $host_os in
15025 cygwin* | mingw* | pw32*)
15026 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15027 # When not using gcc, we currently assume that we are using
15028 # Microsoft Visual C++.
15029 if test "$GCC" != yes; then
15030 with_gnu_ld=no
15031 fi
15032 ;;
15033 interix*)
15034 # we just hope/assume this is gcc and not c89 (= MSVC++)
15035 with_gnu_ld=yes
15036 ;;
15037 openbsd*)
15038 with_gnu_ld=no
15039 ;;
15040 esac
15041
15042 ld_shlibs_F77=yes
15043 if test "$with_gnu_ld" = yes; then
15044 # If archive_cmds runs LD, not CC, wlarc should be empty
15045 wlarc='${wl}'
15046
15047 # Set some defaults for GNU ld with shared library support. These
15048 # are reset later if shared libraries are not supported. Putting them
15049 # here allows them to be overridden if necessary.
15050 runpath_var=LD_RUN_PATH
15051 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15052 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15053 # ancient GNU ld didn't support --whole-archive et. al.
15054 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15055 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15056 else
15057 whole_archive_flag_spec_F77=
15058 fi
15059 supports_anon_versioning=no
15060 case `$LD -v 2>/dev/null` in
15061 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15062 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15063 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15064 *\ 2.11.*) ;; # other 2.11 versions
15065 *) supports_anon_versioning=yes ;;
15066 esac
15067
15068 # See if GNU ld supports shared libraries.
15069 case $host_os in
15070 aix3* | aix4* | aix5*)
15071 # On AIX/PPC, the GNU linker is very broken
15072 if test "$host_cpu" != ia64; then
15073 ld_shlibs_F77=no
15074 cat <<EOF 1>&2
15075
15076*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15077*** to be unable to reliably create shared libraries on AIX.
15078*** Therefore, libtool is disabling shared libraries support. If you
15079*** really care for shared libraries, you may want to modify your PATH
15080*** so that a non-GNU linker is found, and then restart.
15081
15082EOF
15083 fi
15084 ;;
15085
15086 amigaos*)
15087 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)'
15088 hardcode_libdir_flag_spec_F77='-L$libdir'
15089 hardcode_minus_L_F77=yes
15090
15091 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15092 # that the semantics of dynamic libraries on AmigaOS, at least up
15093 # to version 4, is to share data among multiple programs linked
15094 # with the same dynamic library. Since this doesn't match the
15095 # behavior of shared libraries on other platforms, we can't use
15096 # them.
15097 ld_shlibs_F77=no
15098 ;;
15099
15100 beos*)
15101 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15102 allow_undefined_flag_F77=unsupported
15103 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15104 # support --undefined. This deserves some investigation. FIXME
15105 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15106 else
15107 ld_shlibs_F77=no
15108 fi
15109 ;;
15110
15111 cygwin* | mingw* | pw32*)
15112 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15113 # as there is no search path for DLLs.
15114 hardcode_libdir_flag_spec_F77='-L$libdir'
15115 allow_undefined_flag_F77=unsupported
15116 always_export_symbols_F77=no
15117 enable_shared_with_static_runtimes_F77=yes
15118 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15119
15120 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15121 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15122 # If the export-symbols file already is a .def file (1st line
15123 # is EXPORTS), use it as is; otherwise, prepend...
15124 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15125 cp $export_symbols $output_objdir/$soname.def;
15126 else
15127 echo EXPORTS > $output_objdir/$soname.def;
15128 cat $export_symbols >> $output_objdir/$soname.def;
15129 fi~
15130 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15131 else
15132 ld_shlibs_F77=no
15133 fi
15134 ;;
15135
15136 interix3*)
15137 hardcode_direct_F77=no
15138 hardcode_shlibpath_var_F77=no
15139 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15140 export_dynamic_flag_spec_F77='${wl}-E'
15141 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15142 # Instead, shared libraries are loaded at an image base (0x10000000 by
15143 # default) and relocated if they conflict, which is a slow very memory
15144 # consuming and fragmenting process. To avoid this, we pick a random,
15145 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15146 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15147 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'
15148 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'
15149 ;;
15150
15151 linux* | k*bsd*-gnu)
15152 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15153 tmp_addflag=
15154 case $cc_basename,$host_cpu in
15155 pgcc*) # Portland Group C compiler
15156 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'
15157 tmp_addflag=' $pic_flag'
15158 ;;
15159 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15160 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'
15161 tmp_addflag=' $pic_flag -Mnomain' ;;
15162 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15163 tmp_addflag=' -i_dynamic' ;;
15164 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15165 tmp_addflag=' -i_dynamic -nofor_main' ;;
15166 ifc* | ifort*) # Intel Fortran compiler
15167 tmp_addflag=' -nofor_main' ;;
15168 esac
15169 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15170
15171 if test $supports_anon_versioning = yes; then
15172 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15174 $echo "local: *; };" >> $output_objdir/$libname.ver~
15175 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15176 fi
15177 link_all_deplibs_F77=no
15178 else
15179 ld_shlibs_F77=no
15180 fi
15181 ;;
15182
15183 netbsd* | netbsdelf*-gnu)
15184 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15185 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15186 wlarc=
15187 else
15188 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15189 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15190 fi
15191 ;;
15192
15193 solaris*)
15194 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15195 ld_shlibs_F77=no
15196 cat <<EOF 1>&2
15197
15198*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15199*** create shared libraries on Solaris systems. Therefore, libtool
15200*** is disabling shared libraries support. We urge you to upgrade GNU
15201*** binutils to release 2.9.1 or newer. Another option is to modify
15202*** your PATH or compiler configuration so that the native linker is
15203*** used, and then restart.
15204
15205EOF
15206 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15207 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15208 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15209 else
15210 ld_shlibs_F77=no
15211 fi
15212 ;;
15213
15214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15215 case `$LD -v 2>&1` in
15216 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15217 ld_shlibs_F77=no
15218 cat <<_LT_EOF 1>&2
15219
15220*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15221*** reliably create shared libraries on SCO systems. Therefore, libtool
15222*** is disabling shared libraries support. We urge you to upgrade GNU
15223*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15224*** your PATH or compiler configuration so that the native linker is
15225*** used, and then restart.
15226
15227_LT_EOF
15228 ;;
15229 *)
15230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15231 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15232 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15233 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15234 else
15235 ld_shlibs_F77=no
15236 fi
15237 ;;
15238 esac
15239 ;;
15240
15241 sunos4*)
15242 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15243 wlarc=
15244 hardcode_direct_F77=yes
15245 hardcode_shlibpath_var_F77=no
15246 ;;
15247
15248 *)
15249 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15250 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15251 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15252 else
15253 ld_shlibs_F77=no
15254 fi
15255 ;;
15256 esac
15257
15258 if test "$ld_shlibs_F77" = no; then
15259 runpath_var=
15260 hardcode_libdir_flag_spec_F77=
15261 export_dynamic_flag_spec_F77=
15262 whole_archive_flag_spec_F77=
15263 fi
15264 else
15265 # PORTME fill in a description of your system's linker (not GNU ld)
15266 case $host_os in
15267 aix3*)
15268 allow_undefined_flag_F77=unsupported
15269 always_export_symbols_F77=yes
15270 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'
15271 # Note: this linker hardcodes the directories in LIBPATH if there
15272 # are no directories specified by -L.
15273 hardcode_minus_L_F77=yes
15274 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15275 # Neither direct hardcoding nor static linking is supported with a
15276 # broken collect2.
15277 hardcode_direct_F77=unsupported
15278 fi
15279 ;;
15280
15281 aix4* | aix5*)
15282 if test "$host_cpu" = ia64; then
15283 # On IA64, the linker does run time linking by default, so we don't
15284 # have to do anything special.
15285 aix_use_runtimelinking=no
15286 exp_sym_flag='-Bexport'
15287 no_entry_flag=""
15288 else
15289 # If we're using GNU nm, then we don't want the "-C" option.
15290 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15291 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15292 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'
15293 else
15294 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'
15295 fi
15296 aix_use_runtimelinking=no
15297
15298 # Test if we are trying to use run time linking or normal
15299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15300 # need to do runtime linking.
15301 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15302 for ld_flag in $LDFLAGS; do
15303 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15304 aix_use_runtimelinking=yes
15305 break
15306 fi
15307 done
15308 ;;
15309 esac
15310
15311 exp_sym_flag='-bexport'
15312 no_entry_flag='-bnoentry'
15313 fi
15314
15315 # When large executables or shared objects are built, AIX ld can
15316 # have problems creating the table of contents. If linking a library
15317 # or program results in "error TOC overflow" add -mminimal-toc to
15318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15320
15321 archive_cmds_F77=''
15322 hardcode_direct_F77=yes
15323 hardcode_libdir_separator_F77=':'
15324 link_all_deplibs_F77=yes
15325
15326 if test "$GCC" = yes; then
15327 case $host_os in aix4.[012]|aix4.[012].*)
15328 # We only want to do this on AIX 4.2 and lower, the check
15329 # below for broken collect2 doesn't work under 4.3+
15330 collect2name=`${CC} -print-prog-name=collect2`
15331 if test -f "$collect2name" && \
15332 strings "$collect2name" | grep resolve_lib_name >/dev/null
15333 then
15334 # We have reworked collect2
15335 hardcode_direct_F77=yes
15336 else
15337 # We have old collect2
15338 hardcode_direct_F77=unsupported
15339 # It fails to find uninstalled libraries when the uninstalled
15340 # path is not listed in the libpath. Setting hardcode_minus_L
15341 # to unsupported forces relinking
15342 hardcode_minus_L_F77=yes
15343 hardcode_libdir_flag_spec_F77='-L$libdir'
15344 hardcode_libdir_separator_F77=
15345 fi
15346 ;;
15347 esac
15348 shared_flag='-shared'
15349 if test "$aix_use_runtimelinking" = yes; then
15350 shared_flag="$shared_flag "'${wl}-G'
15351 fi
15352 else
15353 # not using gcc
15354 if test "$host_cpu" = ia64; then
15355 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15356 # chokes on -Wl,-G. The following line is correct:
15357 shared_flag='-G'
15358 else
15359 if test "$aix_use_runtimelinking" = yes; then
15360 shared_flag='${wl}-G'
15361 else
15362 shared_flag='${wl}-bM:SRE'
15363 fi
15364 fi
15365 fi
15366
15367 # It seems that -bexpall does not export symbols beginning with
15368 # underscore (_), so it is better to generate a list of symbols to export.
15369 always_export_symbols_F77=yes
15370 if test "$aix_use_runtimelinking" = yes; then
15371 # Warning - without using the other runtime loading flags (-brtl),
15372 # -berok will link without error, but may produce a broken library.
15373 allow_undefined_flag_F77='-berok'
15374 # Determine the default libpath from the value encoded in an empty executable.
15375 cat >conftest.$ac_ext <<_ACEOF
15376 program main
15377
15378 end
15379_ACEOF
15380rm -f conftest.$ac_objext conftest$ac_exeext
15381if { (ac_try="$ac_link"
15382case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15385esac
15386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_link") 2>conftest.er1
15388 ac_status=$?
15389 grep -v '^ *+' conftest.er1 >conftest.err
15390 rm -f conftest.er1
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15395 { (case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15398esac
15399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_try") 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; } &&
15404 { ac_try='test -s conftest$ac_exeext'
15405 { (case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15408esac
15409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414
15415aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15416}'`
15417# Check for a 64-bit object if we didn't find anything.
15418if 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; }
15419}'`; fi
15420else
15421 echo "$as_me: failed program was:" >&5
15422sed 's/^/| /' conftest.$ac_ext >&5
15423
15424
15425fi
15426
15427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15428 conftest$ac_exeext conftest.$ac_ext
15429if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15430
15431 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15432 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"
15433 else
15434 if test "$host_cpu" = ia64; then
15435 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15436 allow_undefined_flag_F77="-z nodefs"
15437 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"
15438 else
15439 # Determine the default libpath from the value encoded in an empty executable.
15440 cat >conftest.$ac_ext <<_ACEOF
15441 program main
15442
15443 end
15444_ACEOF
15445rm -f conftest.$ac_objext conftest$ac_exeext
15446if { (ac_try="$ac_link"
15447case "(($ac_try" in
15448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449 *) ac_try_echo=$ac_try;;
15450esac
15451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15452 (eval "$ac_link") 2>conftest.er1
15453 ac_status=$?
15454 grep -v '^ *+' conftest.er1 >conftest.err
15455 rm -f conftest.er1
15456 cat conftest.err >&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
15459 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15460 { (case "(($ac_try" in
15461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15462 *) ac_try_echo=$ac_try;;
15463esac
15464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15465 (eval "$ac_try") 2>&5
15466 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; } &&
15469 { ac_try='test -s conftest$ac_exeext'
15470 { (case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15473esac
15474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15475 (eval "$ac_try") 2>&5
15476 ac_status=$?
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479
15480aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15481}'`
15482# Check for a 64-bit object if we didn't find anything.
15483if 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; }
15484}'`; fi
15485else
15486 echo "$as_me: failed program was:" >&5
15487sed 's/^/| /' conftest.$ac_ext >&5
15488
15489
15490fi
15491
15492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15493 conftest$ac_exeext conftest.$ac_ext
15494if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15495
15496 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15497 # Warning - without using the other run time loading flags,
15498 # -berok will link without error, but may produce a broken library.
15499 no_undefined_flag_F77=' ${wl}-bernotok'
15500 allow_undefined_flag_F77=' ${wl}-berok'
15501 # Exported symbols can be pulled into shared objects from archives
15502 whole_archive_flag_spec_F77='$convenience'
15503 archive_cmds_need_lc_F77=yes
15504 # This is similar to how AIX traditionally builds its shared libraries.
15505 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'
15506 fi
15507 fi
15508 ;;
15509
15510 amigaos*)
15511 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)'
15512 hardcode_libdir_flag_spec_F77='-L$libdir'
15513 hardcode_minus_L_F77=yes
15514 # see comment about different semantics on the GNU ld section
15515 ld_shlibs_F77=no
15516 ;;
15517
15518 bsdi[45]*)
15519 export_dynamic_flag_spec_F77=-rdynamic
15520 ;;
15521
15522 cygwin* | mingw* | pw32*)
15523 # When not using gcc, we currently assume that we are using
15524 # Microsoft Visual C++.
15525 # hardcode_libdir_flag_spec is actually meaningless, as there is
15526 # no search path for DLLs.
15527 hardcode_libdir_flag_spec_F77=' '
15528 allow_undefined_flag_F77=unsupported
15529 # Tell ltmain to make .lib files, not .a files.
15530 libext=lib
15531 # Tell ltmain to make .dll files, not .so files.
15532 shrext_cmds=".dll"
15533 # FIXME: Setting linknames here is a bad hack.
15534 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15535 # The linker will automatically build a .lib file if we build a DLL.
15536 old_archive_From_new_cmds_F77='true'
15537 # FIXME: Should let the user specify the lib program.
15538 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15539 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15540 enable_shared_with_static_runtimes_F77=yes
15541 ;;
15542
15543 darwin* | rhapsody*)
15544 case $host_os in
15545 rhapsody* | darwin1.[012])
15546 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15547 ;;
15548 *) # Darwin 1.3 on
15549 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15550 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15551 else
15552 case ${MACOSX_DEPLOYMENT_TARGET} in
15553 10.[012])
15554 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15555 ;;
15556 10.*)
15557 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15558 ;;
15559 esac
15560 fi
15561 ;;
15562 esac
15563 archive_cmds_need_lc_F77=no
15564 hardcode_direct_F77=no
15565 hardcode_automatic_F77=yes
15566 hardcode_shlibpath_var_F77=unsupported
15567 whole_archive_flag_spec_F77=''
15568 link_all_deplibs_F77=yes
15569 if test "$GCC" = yes ; then
15570 output_verbose_link_cmd='echo'
15571 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15572 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15573 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15574 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}'
15575 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}'
15576 else
15577 case $cc_basename in
15578 xlc*)
15579 output_verbose_link_cmd='echo'
15580 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15581 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15582 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15583 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}'
15584 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}'
15585 ;;
15586 *)
15587 ld_shlibs_F77=no
15588 ;;
15589 esac
15590 fi
15591 ;;
15592
15593 dgux*)
15594 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15595 hardcode_libdir_flag_spec_F77='-L$libdir'
15596 hardcode_shlibpath_var_F77=no
15597 ;;
15598
15599 freebsd1*)
15600 ld_shlibs_F77=no
15601 ;;
15602
15603 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15604 # support. Future versions do this automatically, but an explicit c++rt0.o
15605 # does not break anything, and helps significantly (at the cost of a little
15606 # extra space).
15607 freebsd2.2*)
15608 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15609 hardcode_libdir_flag_spec_F77='-R$libdir'
15610 hardcode_direct_F77=yes
15611 hardcode_shlibpath_var_F77=no
15612 ;;
15613
15614 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15615 freebsd2*)
15616 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15617 hardcode_direct_F77=yes
15618 hardcode_minus_L_F77=yes
15619 hardcode_shlibpath_var_F77=no
15620 ;;
15621
15622 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15623 freebsd* | dragonfly*)
15624 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15625 hardcode_libdir_flag_spec_F77='-R$libdir'
15626 hardcode_direct_F77=yes
15627 hardcode_shlibpath_var_F77=no
15628 ;;
15629
15630 hpux9*)
15631 if test "$GCC" = yes; then
15632 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'
15633 else
15634 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'
15635 fi
15636 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15637 hardcode_libdir_separator_F77=:
15638 hardcode_direct_F77=yes
15639
15640 # hardcode_minus_L: Not really in the search PATH,
15641 # but as the default location of the library.
15642 hardcode_minus_L_F77=yes
15643 export_dynamic_flag_spec_F77='${wl}-E'
15644 ;;
15645
15646 hpux10*)
15647 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15648 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15649 else
15650 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15651 fi
15652 if test "$with_gnu_ld" = no; then
15653 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15654 hardcode_libdir_separator_F77=:
15655
15656 hardcode_direct_F77=yes
15657 export_dynamic_flag_spec_F77='${wl}-E'
15658
15659 # hardcode_minus_L: Not really in the search PATH,
15660 # but as the default location of the library.
15661 hardcode_minus_L_F77=yes
15662 fi
15663 ;;
15664
15665 hpux11*)
15666 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15667 case $host_cpu in
15668 hppa*64*)
15669 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15670 ;;
15671 ia64*)
15672 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15673 ;;
15674 *)
15675 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15676 ;;
15677 esac
15678 else
15679 case $host_cpu in
15680 hppa*64*)
15681 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15682 ;;
15683 ia64*)
15684 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15685 ;;
15686 *)
15687 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15688 ;;
15689 esac
15690 fi
15691 if test "$with_gnu_ld" = no; then
15692 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15693 hardcode_libdir_separator_F77=:
15694
15695 case $host_cpu in
15696 hppa*64*|ia64*)
15697 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15698 hardcode_direct_F77=no
15699 hardcode_shlibpath_var_F77=no
15700 ;;
15701 *)
15702 hardcode_direct_F77=yes
15703 export_dynamic_flag_spec_F77='${wl}-E'
15704
15705 # hardcode_minus_L: Not really in the search PATH,
15706 # but as the default location of the library.
15707 hardcode_minus_L_F77=yes
15708 ;;
15709 esac
15710 fi
15711 ;;
15712
15713 irix5* | irix6* | nonstopux*)
15714 if test "$GCC" = yes; then
15715 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'
15716 else
15717 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'
15718 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15719 fi
15720 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15721 hardcode_libdir_separator_F77=:
15722 link_all_deplibs_F77=yes
15723 ;;
15724
15725 netbsd* | netbsdelf*-gnu)
15726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15727 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15728 else
15729 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15730 fi
15731 hardcode_libdir_flag_spec_F77='-R$libdir'
15732 hardcode_direct_F77=yes
15733 hardcode_shlibpath_var_F77=no
15734 ;;
15735
15736 newsos6)
15737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15738 hardcode_direct_F77=yes
15739 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15740 hardcode_libdir_separator_F77=:
15741 hardcode_shlibpath_var_F77=no
15742 ;;
15743
15744 openbsd*)
15745 hardcode_direct_F77=yes
15746 hardcode_shlibpath_var_F77=no
15747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15748 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15749 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15750 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15751 export_dynamic_flag_spec_F77='${wl}-E'
15752 else
15753 case $host_os in
15754 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15755 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15756 hardcode_libdir_flag_spec_F77='-R$libdir'
15757 ;;
15758 *)
15759 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15760 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15761 ;;
15762 esac
15763 fi
15764 ;;
15765
15766 os2*)
15767 hardcode_libdir_flag_spec_F77='-L$libdir'
15768 hardcode_minus_L_F77=yes
15769 allow_undefined_flag_F77=unsupported
15770 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'
15771 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15772 ;;
15773
15774 osf3*)
15775 if test "$GCC" = yes; then
15776 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15777 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'
15778 else
15779 allow_undefined_flag_F77=' -expect_unresolved \*'
15780 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'
15781 fi
15782 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15783 hardcode_libdir_separator_F77=:
15784 ;;
15785
15786 osf4* | osf5*) # as osf3* with the addition of -msym flag
15787 if test "$GCC" = yes; then
15788 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15789 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'
15790 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15791 else
15792 allow_undefined_flag_F77=' -expect_unresolved \*'
15793 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'
15794 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~
15795 $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'
15796
15797 # Both c and cxx compiler support -rpath directly
15798 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15799 fi
15800 hardcode_libdir_separator_F77=:
15801 ;;
15802
15803 solaris*)
15804 no_undefined_flag_F77=' -z text'
15805 if test "$GCC" = yes; then
15806 wlarc='${wl}'
15807 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15808 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15809 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15810 else
15811 wlarc=''
15812 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15813 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15814 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15815 fi
15816 hardcode_libdir_flag_spec_F77='-R$libdir'
15817 hardcode_shlibpath_var_F77=no
15818 case $host_os in
15819 solaris2.[0-5] | solaris2.[0-5].*) ;;
15820 *)
15821 # The compiler driver will combine linker options so we
15822 # cannot just pass the convience library names through
15823 # without $wl, iff we do not link with $LD.
15824 # Luckily, gcc supports the same syntax we need for Sun Studio.
15825 # Supported since Solaris 2.6 (maybe 2.5.1?)
15826 case $wlarc in
15827 '')
15828 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15829 *)
15830 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' ;;
15831 esac ;;
15832 esac
15833 link_all_deplibs_F77=yes
15834 ;;
15835
15836 sunos4*)
15837 if test "x$host_vendor" = xsequent; then
15838 # Use $CC to link under sequent, because it throws in some extra .o
15839 # files that make .init and .fini sections work.
15840 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15841 else
15842 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15843 fi
15844 hardcode_libdir_flag_spec_F77='-L$libdir'
15845 hardcode_direct_F77=yes
15846 hardcode_minus_L_F77=yes
15847 hardcode_shlibpath_var_F77=no
15848 ;;
15849
15850 sysv4)
15851 case $host_vendor in
15852 sni)
15853 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15854 hardcode_direct_F77=yes # is this really true???
15855 ;;
15856 siemens)
15857 ## LD is ld it makes a PLAMLIB
15858 ## CC just makes a GrossModule.
15859 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15860 reload_cmds_F77='$CC -r -o $output$reload_objs'
15861 hardcode_direct_F77=no
15862 ;;
15863 motorola)
15864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15865 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15866 ;;
15867 esac
15868 runpath_var='LD_RUN_PATH'
15869 hardcode_shlibpath_var_F77=no
15870 ;;
15871
15872 sysv4.3*)
15873 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15874 hardcode_shlibpath_var_F77=no
15875 export_dynamic_flag_spec_F77='-Bexport'
15876 ;;
15877
15878 sysv4*MP*)
15879 if test -d /usr/nec; then
15880 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15881 hardcode_shlibpath_var_F77=no
15882 runpath_var=LD_RUN_PATH
15883 hardcode_runpath_var=yes
15884 ld_shlibs_F77=yes
15885 fi
15886 ;;
15887
15888 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15889 no_undefined_flag_F77='${wl}-z,text'
15890 archive_cmds_need_lc_F77=no
15891 hardcode_shlibpath_var_F77=no
15892 runpath_var='LD_RUN_PATH'
15893
15894 if test "$GCC" = yes; then
15895 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15896 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15897 else
15898 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15899 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15900 fi
15901 ;;
15902
15903 sysv5* | sco3.2v5* | sco5v6*)
15904 # Note: We can NOT use -z defs as we might desire, because we do not
15905 # link with -lc, and that would cause any symbols used from libc to
15906 # always be unresolved, which means just about no library would
15907 # ever link correctly. If we're not using GNU ld we use -z text
15908 # though, which does catch some bad symbols but isn't as heavy-handed
15909 # as -z defs.
15910 no_undefined_flag_F77='${wl}-z,text'
15911 allow_undefined_flag_F77='${wl}-z,nodefs'
15912 archive_cmds_need_lc_F77=no
15913 hardcode_shlibpath_var_F77=no
15914 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15915 hardcode_libdir_separator_F77=':'
15916 link_all_deplibs_F77=yes
15917 export_dynamic_flag_spec_F77='${wl}-Bexport'
15918 runpath_var='LD_RUN_PATH'
15919
15920 if test "$GCC" = yes; then
15921 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15922 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15923 else
15924 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15925 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15926 fi
15927 ;;
15928
15929 uts4*)
15930 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15931 hardcode_libdir_flag_spec_F77='-L$libdir'
15932 hardcode_shlibpath_var_F77=no
15933 ;;
15934
15935 *)
15936 ld_shlibs_F77=no
15937 ;;
15938 esac
15939 fi
15940
15941{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15942echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15943test "$ld_shlibs_F77" = no && can_build_shared=no
15944
15945#
15946# Do we need to explicitly link libc?
15947#
15948case "x$archive_cmds_need_lc_F77" in
15949x|xyes)
15950 # Assume -lc should be added
15951 archive_cmds_need_lc_F77=yes
15952
15953 if test "$enable_shared" = yes && test "$GCC" = yes; then
15954 case $archive_cmds_F77 in
15955 *'~'*)
15956 # FIXME: we may have to deal with multi-command sequences.
15957 ;;
15958 '$CC '*)
15959 # Test whether the compiler implicitly links with -lc since on some
15960 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15961 # to ld, don't add -lc before -lgcc.
15962 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15963echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15964 $rm conftest*
15965 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15966
15967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15968 (eval $ac_compile) 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } 2>conftest.err; then
15972 soname=conftest
15973 lib=conftest
15974 libobjs=conftest.$ac_objext
15975 deplibs=
15976 wl=$lt_prog_compiler_wl_F77
15977 pic_flag=$lt_prog_compiler_pic_F77
15978 compiler_flags=-v
15979 linker_flags=-v
15980 verstring=
15981 output_objdir=.
15982 libname=conftest
15983 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15984 allow_undefined_flag_F77=
15985 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15986 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }
15990 then
15991 archive_cmds_need_lc_F77=no
15992 else
15993 archive_cmds_need_lc_F77=yes
15994 fi
15995 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15996 else
15997 cat conftest.err 1>&5
15998 fi
15999 $rm conftest*
16000 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16001echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16002 ;;
16003 esac
16004 fi
16005 ;;
16006esac
16007
16008{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16009echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16010library_names_spec=
16011libname_spec='lib$name'
16012soname_spec=
16013shrext_cmds=".so"
16014postinstall_cmds=
16015postuninstall_cmds=
16016finish_cmds=
16017finish_eval=
16018shlibpath_var=
16019shlibpath_overrides_runpath=unknown
16020version_type=none
16021dynamic_linker="$host_os ld.so"
16022sys_lib_dlsearch_path_spec="/lib /usr/lib"
16023if test "$GCC" = yes; then
16024 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16025 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16026 # if the path contains ";" then we assume it to be the separator
16027 # otherwise default to the standard path separator (i.e. ":") - it is
16028 # assumed that no part of a normal pathname contains ";" but that should
16029 # okay in the real world where ";" in dirpaths is itself problematic.
16030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16031 else
16032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16033 fi
16034else
16035 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16036fi
16037need_lib_prefix=unknown
16038hardcode_into_libs=no
16039
16040# when you set need_version to no, make sure it does not cause -set_version
16041# flags to be left without arguments
16042need_version=unknown
16043
16044case $host_os in
16045aix3*)
16046 version_type=linux
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16048 shlibpath_var=LIBPATH
16049
16050 # AIX 3 has no versioning support, so we append a major version to the name.
16051 soname_spec='${libname}${release}${shared_ext}$major'
16052 ;;
16053
16054aix4* | aix5*)
16055 version_type=linux
16056 need_lib_prefix=no
16057 need_version=no
16058 hardcode_into_libs=yes
16059 if test "$host_cpu" = ia64; then
16060 # AIX 5 supports IA64
16061 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16062 shlibpath_var=LD_LIBRARY_PATH
16063 else
16064 # With GCC up to 2.95.x, collect2 would create an import file
16065 # for dependence libraries. The import file would start with
16066 # the line `#! .'. This would cause the generated library to
16067 # depend on `.', always an invalid library. This was fixed in
16068 # development snapshots of GCC prior to 3.0.
16069 case $host_os in
16070 aix4 | aix4.[01] | aix4.[01].*)
16071 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16072 echo ' yes '
16073 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16074 :
16075 else
16076 can_build_shared=no
16077 fi
16078 ;;
16079 esac
16080 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16081 # soname into executable. Probably we can add versioning support to
16082 # collect2, so additional links can be useful in future.
16083 if test "$aix_use_runtimelinking" = yes; then
16084 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16085 # instead of lib<name>.a to let people know that these are not
16086 # typical AIX shared libraries.
16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088 else
16089 # We preserve .a as extension for shared libraries through AIX4.2
16090 # and later when we are not doing run time linking.
16091 library_names_spec='${libname}${release}.a $libname.a'
16092 soname_spec='${libname}${release}${shared_ext}$major'
16093 fi
16094 shlibpath_var=LIBPATH
16095 fi
16096 ;;
16097
16098amigaos*)
16099 library_names_spec='$libname.ixlibrary $libname.a'
16100 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16101 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'
16102 ;;
16103
16104beos*)
16105 library_names_spec='${libname}${shared_ext}'
16106 dynamic_linker="$host_os ld.so"
16107 shlibpath_var=LIBRARY_PATH
16108 ;;
16109
16110bsdi[45]*)
16111 version_type=linux
16112 need_version=no
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16116 shlibpath_var=LD_LIBRARY_PATH
16117 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16118 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16119 # the default ld.so.conf also contains /usr/contrib/lib and
16120 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16121 # libtool to hard-code these into programs
16122 ;;
16123
16124cygwin* | mingw* | pw32*)
16125 version_type=windows
16126 shrext_cmds=".dll"
16127 need_version=no
16128 need_lib_prefix=no
16129
16130 case $GCC,$host_os in
16131 yes,cygwin* | yes,mingw* | yes,pw32*)
16132 library_names_spec='$libname.dll.a'
16133 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16134 postinstall_cmds='base_file=`basename \${file}`~
16135 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16136 dldir=$destdir/`dirname \$dlpath`~
16137 test -d \$dldir || mkdir -p \$dldir~
16138 $install_prog $dir/$dlname \$dldir/$dlname~
16139 chmod a+x \$dldir/$dlname'
16140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16141 dlpath=$dir/\$dldll~
16142 $rm \$dlpath'
16143 shlibpath_overrides_runpath=yes
16144
16145 case $host_os in
16146 cygwin*)
16147 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16148 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16149 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16150 ;;
16151 mingw*)
16152 # MinGW DLLs use traditional 'lib' prefix
16153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16154 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16155 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16156 # It is most probably a Windows format PATH printed by
16157 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16158 # path with ; separators, and with drive letters. We can handle the
16159 # drive letters (cygwin fileutils understands them), so leave them,
16160 # especially as we might pass files found there to a mingw objdump,
16161 # which wouldn't understand a cygwinified path. Ahh.
16162 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16163 else
16164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16165 fi
16166 ;;
16167 pw32*)
16168 # pw32 DLLs use 'pw' prefix rather than 'lib'
16169 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16170 ;;
16171 esac
16172 ;;
16173
16174 *)
16175 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16176 ;;
16177 esac
16178 dynamic_linker='Win32 ld.exe'
16179 # FIXME: first we should search . and the directory the executable is in
16180 shlibpath_var=PATH
16181 ;;
16182
16183darwin* | rhapsody*)
16184 dynamic_linker="$host_os dyld"
16185 version_type=darwin
16186 need_lib_prefix=no
16187 need_version=no
16188 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16189 soname_spec='${libname}${release}${major}$shared_ext'
16190 shlibpath_overrides_runpath=yes
16191 shlibpath_var=DYLD_LIBRARY_PATH
16192 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16193 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16194 if test "$GCC" = yes; then
16195 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"`
16196 else
16197 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16198 fi
16199 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16200 ;;
16201
16202dgux*)
16203 version_type=linux
16204 need_lib_prefix=no
16205 need_version=no
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16207 soname_spec='${libname}${release}${shared_ext}$major'
16208 shlibpath_var=LD_LIBRARY_PATH
16209 ;;
16210
16211freebsd1*)
16212 dynamic_linker=no
16213 ;;
16214
16215freebsd* | dragonfly*)
16216 # DragonFly does not have aout. When/if they implement a new
16217 # versioning mechanism, adjust this.
16218 if test -x /usr/bin/objformat; then
16219 objformat=`/usr/bin/objformat`
16220 else
16221 case $host_os in
16222 freebsd[123]*) objformat=aout ;;
16223 *) objformat=elf ;;
16224 esac
16225 fi
16226 version_type=freebsd-$objformat
16227 case $version_type in
16228 freebsd-elf*)
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16230 need_version=no
16231 need_lib_prefix=no
16232 ;;
16233 freebsd-*)
16234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16235 need_version=yes
16236 ;;
16237 esac
16238 shlibpath_var=LD_LIBRARY_PATH
16239 case $host_os in
16240 freebsd2*)
16241 shlibpath_overrides_runpath=yes
16242 ;;
16243 freebsd3.[01]* | freebsdelf3.[01]*)
16244 shlibpath_overrides_runpath=yes
16245 hardcode_into_libs=yes
16246 ;;
16247 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16248 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16249 shlibpath_overrides_runpath=no
16250 hardcode_into_libs=yes
16251 ;;
16252 freebsd*) # from 4.6 on
16253 shlibpath_overrides_runpath=yes
16254 hardcode_into_libs=yes
16255 ;;
16256 esac
16257 ;;
16258
16259gnu*)
16260 version_type=linux
16261 need_lib_prefix=no
16262 need_version=no
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16264 soname_spec='${libname}${release}${shared_ext}$major'
16265 shlibpath_var=LD_LIBRARY_PATH
16266 hardcode_into_libs=yes
16267 ;;
16268
16269hpux9* | hpux10* | hpux11*)
16270 # Give a soname corresponding to the major version so that dld.sl refuses to
16271 # link against other versions.
16272 version_type=sunos
16273 need_lib_prefix=no
16274 need_version=no
16275 case $host_cpu in
16276 ia64*)
16277 shrext_cmds='.so'
16278 hardcode_into_libs=yes
16279 dynamic_linker="$host_os dld.so"
16280 shlibpath_var=LD_LIBRARY_PATH
16281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16283 soname_spec='${libname}${release}${shared_ext}$major'
16284 if test "X$HPUX_IA64_MODE" = X32; then
16285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16286 else
16287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16288 fi
16289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16290 ;;
16291 hppa*64*)
16292 shrext_cmds='.sl'
16293 hardcode_into_libs=yes
16294 dynamic_linker="$host_os dld.sl"
16295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16298 soname_spec='${libname}${release}${shared_ext}$major'
16299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16301 ;;
16302 *)
16303 shrext_cmds='.sl'
16304 dynamic_linker="$host_os dld.sl"
16305 shlibpath_var=SHLIB_PATH
16306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16308 soname_spec='${libname}${release}${shared_ext}$major'
16309 ;;
16310 esac
16311 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16312 postinstall_cmds='chmod 555 $lib'
16313 ;;
16314
16315interix3*)
16316 version_type=linux
16317 need_lib_prefix=no
16318 need_version=no
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16320 soname_spec='${libname}${release}${shared_ext}$major'
16321 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16322 shlibpath_var=LD_LIBRARY_PATH
16323 shlibpath_overrides_runpath=no
16324 hardcode_into_libs=yes
16325 ;;
16326
16327irix5* | irix6* | nonstopux*)
16328 case $host_os in
16329 nonstopux*) version_type=nonstopux ;;
16330 *)
16331 if test "$lt_cv_prog_gnu_ld" = yes; then
16332 version_type=linux
16333 else
16334 version_type=irix
16335 fi ;;
16336 esac
16337 need_lib_prefix=no
16338 need_version=no
16339 soname_spec='${libname}${release}${shared_ext}$major'
16340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16341 case $host_os in
16342 irix5* | nonstopux*)
16343 libsuff= shlibsuff=
16344 ;;
16345 *)
16346 case $LD in # libtool.m4 will add one of these switches to LD
16347 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16348 libsuff= shlibsuff= libmagic=32-bit;;
16349 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16350 libsuff=32 shlibsuff=N32 libmagic=N32;;
16351 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16352 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16353 *) libsuff= shlibsuff= libmagic=never-match;;
16354 esac
16355 ;;
16356 esac
16357 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16358 shlibpath_overrides_runpath=no
16359 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16360 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16361 hardcode_into_libs=yes
16362 ;;
16363
16364# No shared lib support for Linux oldld, aout, or coff.
16365linux*oldld* | linux*aout* | linux*coff*)
16366 dynamic_linker=no
16367 ;;
16368
16369# This must be Linux ELF.
16370linux* | k*bsd*-gnu)
16371 version_type=linux
16372 need_lib_prefix=no
16373 need_version=no
16374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16375 soname_spec='${libname}${release}${shared_ext}$major'
16376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16377 shlibpath_var=LD_LIBRARY_PATH
16378 shlibpath_overrides_runpath=no
16379 # This implies no fast_install, which is unacceptable.
16380 # Some rework will be needed to allow for fast_install
16381 # before this can be enabled.
16382 hardcode_into_libs=yes
16383
16384 # Append ld.so.conf contents to the search path
16385 if test -f /etc/ld.so.conf; then
16386 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' ' '`
16387 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16388 fi
16389
16390 # We used to test for /lib/ld.so.1 and disable shared libraries on
16391 # powerpc, because MkLinux only supported shared libraries with the
16392 # GNU dynamic linker. Since this was broken with cross compilers,
16393 # most powerpc-linux boxes support dynamic linking these days and
16394 # people can always --disable-shared, the test was removed, and we
16395 # assume the GNU/Linux dynamic linker is in use.
16396 dynamic_linker='GNU/Linux ld.so'
16397 ;;
16398
16399netbsdelf*-gnu)
16400 version_type=linux
16401 need_lib_prefix=no
16402 need_version=no
16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16404 soname_spec='${libname}${release}${shared_ext}$major'
16405 shlibpath_var=LD_LIBRARY_PATH
16406 shlibpath_overrides_runpath=no
16407 hardcode_into_libs=yes
16408 dynamic_linker='NetBSD ld.elf_so'
16409 ;;
16410
16411netbsd*)
16412 version_type=sunos
16413 need_lib_prefix=no
16414 need_version=no
16415 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16418 dynamic_linker='NetBSD (a.out) ld.so'
16419 else
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16421 soname_spec='${libname}${release}${shared_ext}$major'
16422 dynamic_linker='NetBSD ld.elf_so'
16423 fi
16424 shlibpath_var=LD_LIBRARY_PATH
16425 shlibpath_overrides_runpath=yes
16426 hardcode_into_libs=yes
16427 ;;
16428
16429newsos6)
16430 version_type=linux
16431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432 shlibpath_var=LD_LIBRARY_PATH
16433 shlibpath_overrides_runpath=yes
16434 ;;
16435
16436nto-qnx*)
16437 version_type=linux
16438 need_lib_prefix=no
16439 need_version=no
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16441 soname_spec='${libname}${release}${shared_ext}$major'
16442 shlibpath_var=LD_LIBRARY_PATH
16443 shlibpath_overrides_runpath=yes
16444 ;;
16445
16446openbsd*)
16447 version_type=sunos
16448 sys_lib_dlsearch_path_spec="/usr/lib"
16449 need_lib_prefix=no
16450 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16451 case $host_os in
16452 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16453 *) need_version=no ;;
16454 esac
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16457 shlibpath_var=LD_LIBRARY_PATH
16458 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16459 case $host_os in
16460 openbsd2.[89] | openbsd2.[89].*)
16461 shlibpath_overrides_runpath=no
16462 ;;
16463 *)
16464 shlibpath_overrides_runpath=yes
16465 ;;
16466 esac
16467 else
16468 shlibpath_overrides_runpath=yes
16469 fi
16470 ;;
16471
16472os2*)
16473 libname_spec='$name'
16474 shrext_cmds=".dll"
16475 need_lib_prefix=no
16476 library_names_spec='$libname${shared_ext} $libname.a'
16477 dynamic_linker='OS/2 ld.exe'
16478 shlibpath_var=LIBPATH
16479 ;;
16480
16481osf3* | osf4* | osf5*)
16482 version_type=osf
16483 need_lib_prefix=no
16484 need_version=no
16485 soname_spec='${libname}${release}${shared_ext}$major'
16486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16487 shlibpath_var=LD_LIBRARY_PATH
16488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16490 ;;
16491
16492solaris*)
16493 version_type=linux
16494 need_lib_prefix=no
16495 need_version=no
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16497 soname_spec='${libname}${release}${shared_ext}$major'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 shlibpath_overrides_runpath=yes
16500 hardcode_into_libs=yes
16501 # ldd complains unless libraries are executable
16502 postinstall_cmds='chmod +x $lib'
16503 ;;
16504
16505sunos4*)
16506 version_type=sunos
16507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16508 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16509 shlibpath_var=LD_LIBRARY_PATH
16510 shlibpath_overrides_runpath=yes
16511 if test "$with_gnu_ld" = yes; then
16512 need_lib_prefix=no
16513 fi
16514 need_version=yes
16515 ;;
16516
16517sysv4 | sysv4.3*)
16518 version_type=linux
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520 soname_spec='${libname}${release}${shared_ext}$major'
16521 shlibpath_var=LD_LIBRARY_PATH
16522 case $host_vendor in
16523 sni)
16524 shlibpath_overrides_runpath=no
16525 need_lib_prefix=no
16526 export_dynamic_flag_spec='${wl}-Blargedynsym'
16527 runpath_var=LD_RUN_PATH
16528 ;;
16529 siemens)
16530 need_lib_prefix=no
16531 ;;
16532 motorola)
16533 need_lib_prefix=no
16534 need_version=no
16535 shlibpath_overrides_runpath=no
16536 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16537 ;;
16538 esac
16539 ;;
16540
16541sysv4*MP*)
16542 if test -d /usr/nec ;then
16543 version_type=linux
16544 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16545 soname_spec='$libname${shared_ext}.$major'
16546 shlibpath_var=LD_LIBRARY_PATH
16547 fi
16548 ;;
16549
16550sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16551 version_type=freebsd-elf
16552 need_lib_prefix=no
16553 need_version=no
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 hardcode_into_libs=yes
16558 if test "$with_gnu_ld" = yes; then
16559 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16560 shlibpath_overrides_runpath=no
16561 else
16562 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16563 shlibpath_overrides_runpath=yes
16564 case $host_os in
16565 sco3.2v5*)
16566 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16567 ;;
16568 esac
16569 fi
16570 sys_lib_dlsearch_path_spec='/usr/lib'
16571 ;;
16572
16573uts4*)
16574 version_type=linux
16575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16576 soname_spec='${libname}${release}${shared_ext}$major'
16577 shlibpath_var=LD_LIBRARY_PATH
16578 ;;
16579
16580*)
16581 dynamic_linker=no
16582 ;;
16583esac
16584{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16585echo "${ECHO_T}$dynamic_linker" >&6; }
16586test "$dynamic_linker" = no && can_build_shared=no
16587
16588variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16589if test "$GCC" = yes; then
16590 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16591fi
16592
16593{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16594echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16595hardcode_action_F77=
16596if test -n "$hardcode_libdir_flag_spec_F77" || \
16597 test -n "$runpath_var_F77" || \
16598 test "X$hardcode_automatic_F77" = "Xyes" ; then
16599
16600 # We can hardcode non-existant directories.
16601 if test "$hardcode_direct_F77" != no &&
16602 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16603 # have to relink, otherwise we might link with an installed library
16604 # when we should be linking with a yet-to-be-installed one
16605 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16606 test "$hardcode_minus_L_F77" != no; then
16607 # Linking always hardcodes the temporary library directory.
16608 hardcode_action_F77=relink
16609 else
16610 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16611 hardcode_action_F77=immediate
16612 fi
16613else
16614 # We cannot hardcode anything, or else we can only hardcode existing
16615 # directories.
16616 hardcode_action_F77=unsupported
16617fi
16618{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16619echo "${ECHO_T}$hardcode_action_F77" >&6; }
16620
16621if test "$hardcode_action_F77" = relink; then
16622 # Fast installation is not supported
16623 enable_fast_install=no
16624elif test "$shlibpath_overrides_runpath" = yes ||
16625 test "$enable_shared" = no; then
16626 # Fast installation is not necessary
16627 enable_fast_install=needless
16628fi
16629
16630
16631# The else clause should only fire when bootstrapping the
16632# libtool distribution, otherwise you forgot to ship ltmain.sh
16633# with your package, and you will get complaints that there are
16634# no rules to generate ltmain.sh.
16635if test -f "$ltmain"; then
16636 # See if we are running on zsh, and set the options which allow our commands through
16637 # without removal of \ escapes.
16638 if test -n "${ZSH_VERSION+set}" ; then
16639 setopt NO_GLOB_SUBST
16640 fi
16641 # Now quote all the things that may contain metacharacters while being
16642 # careful not to overquote the AC_SUBSTed values. We take copies of the
16643 # variables and quote the copies for generation of the libtool script.
16644 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16645 SED SHELL STRIP \
16646 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16647 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16648 deplibs_check_method reload_flag reload_cmds need_locks \
16649 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16650 lt_cv_sys_global_symbol_to_c_name_address \
16651 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16652 old_postinstall_cmds old_postuninstall_cmds \
16653 compiler_F77 \
16654 CC_F77 \
16655 LD_F77 \
16656 lt_prog_compiler_wl_F77 \
16657 lt_prog_compiler_pic_F77 \
16658 lt_prog_compiler_static_F77 \
16659 lt_prog_compiler_no_builtin_flag_F77 \
16660 export_dynamic_flag_spec_F77 \
16661 thread_safe_flag_spec_F77 \
16662 whole_archive_flag_spec_F77 \
16663 enable_shared_with_static_runtimes_F77 \
16664 old_archive_cmds_F77 \
16665 old_archive_from_new_cmds_F77 \
16666 predep_objects_F77 \
16667 postdep_objects_F77 \
16668 predeps_F77 \
16669 postdeps_F77 \
16670 compiler_lib_search_path_F77 \
16671 archive_cmds_F77 \
16672 archive_expsym_cmds_F77 \
16673 postinstall_cmds_F77 \
16674 postuninstall_cmds_F77 \
16675 old_archive_from_expsyms_cmds_F77 \
16676 allow_undefined_flag_F77 \
16677 no_undefined_flag_F77 \
16678 export_symbols_cmds_F77 \
16679 hardcode_libdir_flag_spec_F77 \
16680 hardcode_libdir_flag_spec_ld_F77 \
16681 hardcode_libdir_separator_F77 \
16682 hardcode_automatic_F77 \
16683 module_cmds_F77 \
16684 module_expsym_cmds_F77 \
16685 lt_cv_prog_compiler_c_o_F77 \
16686 exclude_expsyms_F77 \
16687 include_expsyms_F77; do
16688
16689 case $var in
16690 old_archive_cmds_F77 | \
16691 old_archive_from_new_cmds_F77 | \
16692 archive_cmds_F77 | \
16693 archive_expsym_cmds_F77 | \
16694 module_cmds_F77 | \
16695 module_expsym_cmds_F77 | \
16696 old_archive_from_expsyms_cmds_F77 | \
16697 export_symbols_cmds_F77 | \
16698 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16699 postinstall_cmds | postuninstall_cmds | \
16700 old_postinstall_cmds | old_postuninstall_cmds | \
16701 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16702 # Double-quote double-evaled strings.
16703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16704 ;;
16705 *)
16706 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16707 ;;
16708 esac
16709 done
16710
16711 case $lt_echo in
16712 *'\$0 --fallback-echo"')
16713 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16714 ;;
16715 esac
16716
16717cfgfile="$ofile"
16718
16719 cat <<__EOF__ >> "$cfgfile"
16720# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16721
16722# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16723
16724# Shell to use when invoking shell scripts.
16725SHELL=$lt_SHELL
16726
16727# Whether or not to build shared libraries.
16728build_libtool_libs=$enable_shared
16729
16730# Whether or not to build static libraries.
16731build_old_libs=$enable_static
16732
16733# Whether or not to add -lc for building shared libraries.
16734build_libtool_need_lc=$archive_cmds_need_lc_F77
16735
16736# Whether or not to disallow shared libs when runtime libs are static
16737allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16738
16739# Whether or not to optimize for fast installation.
16740fast_install=$enable_fast_install
16741
16742# The host system.
16743host_alias=$host_alias
16744host=$host
16745host_os=$host_os
16746
16747# The build system.
16748build_alias=$build_alias
16749build=$build
16750build_os=$build_os
16751
16752# An echo program that does not interpret backslashes.
16753echo=$lt_echo
16754
16755# The archiver.
16756AR=$lt_AR
16757AR_FLAGS=$lt_AR_FLAGS
16758
16759# A C compiler.
16760LTCC=$lt_LTCC
16761
16762# LTCC compiler flags.
16763LTCFLAGS=$lt_LTCFLAGS
16764
16765# A language-specific compiler.
16766CC=$lt_compiler_F77
16767
16768# Is the compiler the GNU C compiler?
16769with_gcc=$GCC_F77
16770
16771# An ERE matcher.
16772EGREP=$lt_EGREP
16773
16774# The linker used to build libraries.
16775LD=$lt_LD_F77
16776
16777# Whether we need hard or soft links.
16778LN_S=$lt_LN_S
16779
16780# A BSD-compatible nm program.
16781NM=$lt_NM
16782
16783# A symbol stripping program
16784STRIP=$lt_STRIP
16785
16786# Used to examine libraries when file_magic_cmd begins "file"
16787MAGIC_CMD=$MAGIC_CMD
16788
16789# Used on cygwin: DLL creation program.
16790DLLTOOL="$DLLTOOL"
16791
16792# Used on cygwin: object dumper.
16793OBJDUMP="$OBJDUMP"
16794
16795# Used on cygwin: assembler.
16796AS="$AS"
16797
16798# The name of the directory that contains temporary libtool files.
16799objdir=$objdir
16800
16801# How to create reloadable object files.
16802reload_flag=$lt_reload_flag
16803reload_cmds=$lt_reload_cmds
16804
16805# How to pass a linker flag through the compiler.
16806wl=$lt_lt_prog_compiler_wl_F77
16807
16808# Object file suffix (normally "o").
16809objext="$ac_objext"
16810
16811# Old archive suffix (normally "a").
16812libext="$libext"
16813
16814# Shared library suffix (normally ".so").
16815shrext_cmds='$shrext_cmds'
16816
16817# Executable file suffix (normally "").
16818exeext="$exeext"
16819
16820# Additional compiler flags for building library objects.
16821pic_flag=$lt_lt_prog_compiler_pic_F77
16822pic_mode=$pic_mode
16823
16824# What is the maximum length of a command?
16825max_cmd_len=$lt_cv_sys_max_cmd_len
16826
16827# Does compiler simultaneously support -c and -o options?
16828compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16829
16830# Must we lock files when doing compilation?
16831need_locks=$lt_need_locks
16832
16833# Do we need the lib prefix for modules?
16834need_lib_prefix=$need_lib_prefix
16835
16836# Do we need a version for libraries?
16837need_version=$need_version
16838
16839# Whether dlopen is supported.
16840dlopen_support=$enable_dlopen
16841
16842# Whether dlopen of programs is supported.
16843dlopen_self=$enable_dlopen_self
16844
16845# Whether dlopen of statically linked programs is supported.
16846dlopen_self_static=$enable_dlopen_self_static
16847
16848# Compiler flag to prevent dynamic linking.
16849link_static_flag=$lt_lt_prog_compiler_static_F77
16850
16851# Compiler flag to turn off builtin functions.
16852no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16853
16854# Compiler flag to allow reflexive dlopens.
16855export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16856
16857# Compiler flag to generate shared objects directly from archives.
16858whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16859
16860# Compiler flag to generate thread-safe objects.
16861thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16862
16863# Library versioning type.
16864version_type=$version_type
16865
16866# Format of library name prefix.
16867libname_spec=$lt_libname_spec
16868
16869# List of archive names. First name is the real one, the rest are links.
16870# The last name is the one that the linker finds with -lNAME.
16871library_names_spec=$lt_library_names_spec
16872
16873# The coded name of the library, if different from the real name.
16874soname_spec=$lt_soname_spec
16875
16876# Commands used to build and install an old-style archive.
16877RANLIB=$lt_RANLIB
16878old_archive_cmds=$lt_old_archive_cmds_F77
16879old_postinstall_cmds=$lt_old_postinstall_cmds
16880old_postuninstall_cmds=$lt_old_postuninstall_cmds
16881
16882# Create an old-style archive from a shared archive.
16883old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16884
16885# Create a temporary old-style archive to link instead of a shared archive.
16886old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16887
16888# Commands used to build and install a shared archive.
16889archive_cmds=$lt_archive_cmds_F77
16890archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16891postinstall_cmds=$lt_postinstall_cmds
16892postuninstall_cmds=$lt_postuninstall_cmds
16893
16894# Commands used to build a loadable module (assumed same as above if empty)
16895module_cmds=$lt_module_cmds_F77
16896module_expsym_cmds=$lt_module_expsym_cmds_F77
16897
16898# Commands to strip libraries.
16899old_striplib=$lt_old_striplib
16900striplib=$lt_striplib
16901
16902# Dependencies to place before the objects being linked to create a
16903# shared library.
16904predep_objects=$lt_predep_objects_F77
16905
16906# Dependencies to place after the objects being linked to create a
16907# shared library.
16908postdep_objects=$lt_postdep_objects_F77
16909
16910# Dependencies to place before the objects being linked to create a
16911# shared library.
16912predeps=$lt_predeps_F77
16913
16914# Dependencies to place after the objects being linked to create a
16915# shared library.
16916postdeps=$lt_postdeps_F77
16917
16918# The library search path used internally by the compiler when linking
16919# a shared library.
16920compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16921
16922# Method to check whether dependent libraries are shared objects.
16923deplibs_check_method=$lt_deplibs_check_method
16924
16925# Command to use when deplibs_check_method == file_magic.
16926file_magic_cmd=$lt_file_magic_cmd
16927
16928# Flag that allows shared libraries with undefined symbols to be built.
16929allow_undefined_flag=$lt_allow_undefined_flag_F77
16930
16931# Flag that forces no undefined symbols.
16932no_undefined_flag=$lt_no_undefined_flag_F77
16933
16934# Commands used to finish a libtool library installation in a directory.
16935finish_cmds=$lt_finish_cmds
16936
16937# Same as above, but a single script fragment to be evaled but not shown.
16938finish_eval=$lt_finish_eval
16939
16940# Take the output of nm and produce a listing of raw symbols and C names.
16941global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16942
16943# Transform the output of nm in a proper C declaration
16944global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16945
16946# Transform the output of nm in a C name address pair
16947global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16948
16949# This is the shared library runtime path variable.
16950runpath_var=$runpath_var
16951
16952# This is the shared library path variable.
16953shlibpath_var=$shlibpath_var
16954
16955# Is shlibpath searched before the hard-coded library search path?
16956shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16957
16958# How to hardcode a shared library path into an executable.
16959hardcode_action=$hardcode_action_F77
16960
16961# Whether we should hardcode library paths into libraries.
16962hardcode_into_libs=$hardcode_into_libs
16963
16964# Flag to hardcode \$libdir into a binary during linking.
16965# This must work even if \$libdir does not exist.
16966hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16967
16968# If ld is used when linking, flag to hardcode \$libdir into
16969# a binary during linking. This must work even if \$libdir does
16970# not exist.
16971hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16972
16973# Whether we need a single -rpath flag with a separated argument.
16974hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16975
16976# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16977# resulting binary.
16978hardcode_direct=$hardcode_direct_F77
16979
16980# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16981# resulting binary.
16982hardcode_minus_L=$hardcode_minus_L_F77
16983
16984# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16985# the resulting binary.
16986hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16987
16988# Set to yes if building a shared library automatically hardcodes DIR into the library
16989# and all subsequent libraries and executables linked against it.
16990hardcode_automatic=$hardcode_automatic_F77
16991
16992# Variables whose values should be saved in libtool wrapper scripts and
16993# restored at relink time.
16994variables_saved_for_relink="$variables_saved_for_relink"
16995
16996# Whether libtool must link a program against all its dependency libraries.
16997link_all_deplibs=$link_all_deplibs_F77
16998
16999# Compile-time system search path for libraries
17000sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17001
17002# Run-time system search path for libraries
17003sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17004
17005# Fix the shell variable \$srcfile for the compiler.
17006fix_srcfile_path="$fix_srcfile_path_F77"
17007
17008# Set to yes if exported symbols are required.
17009always_export_symbols=$always_export_symbols_F77
17010
17011# The commands to list exported symbols.
17012export_symbols_cmds=$lt_export_symbols_cmds_F77
17013
17014# The commands to extract the exported symbol list from a shared archive.
17015extract_expsyms_cmds=$lt_extract_expsyms_cmds
17016
17017# Symbols that should not be listed in the preloaded symbols.
17018exclude_expsyms=$lt_exclude_expsyms_F77
17019
17020# Symbols that must always be exported.
17021include_expsyms=$lt_include_expsyms_F77
17022
17023# ### END LIBTOOL TAG CONFIG: $tagname
17024
17025__EOF__
17026
17027
17028else
17029 # If there is no Makefile yet, we rely on a make rule to execute
17030 # `config.status --recheck' to rerun these tests and create the
17031 # libtool script then.
17032 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17033 if test -f "$ltmain_in"; then
17034 test -f Makefile && make "$ltmain"
17035 fi
17036fi
17037
17038
17039ac_ext=c
17040ac_cpp='$CPP $CPPFLAGS'
17041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17043ac_compiler_gnu=$ac_cv_c_compiler_gnu
17044
17045CC="$lt_save_CC"
17046
17047 else
17048 tagname=""
17049 fi
17050 ;;
17051
17052 GCJ)
17053 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17054
17055
17056# Source file extension for Java test sources.
17057ac_ext=java
17058
17059# Object file extension for compiled Java test sources.
17060objext=o
17061objext_GCJ=$objext
17062
17063# Code to be used in simple compile tests
17064lt_simple_compile_test_code="class foo {}\n"
17065
17066# Code to be used in simple link tests
17067lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17068
17069# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17070
17071# If no C compiler was specified, use CC.
17072LTCC=${LTCC-"$CC"}
17073
17074# If no C compiler flags were specified, use CFLAGS.
17075LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17076
17077# Allow CC to be a program name with arguments.
17078compiler=$CC
17079
17080
17081# save warnings/boilerplate of simple test code
17082ac_outfile=conftest.$ac_objext
17083printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17084eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17085_lt_compiler_boilerplate=`cat conftest.err`
17086$rm conftest*
17087
17088ac_outfile=conftest.$ac_objext
17089printf "$lt_simple_link_test_code" >conftest.$ac_ext
17090eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17091_lt_linker_boilerplate=`cat conftest.err`
17092$rm conftest*
17093
17094
17095# Allow CC to be a program name with arguments.
17096lt_save_CC="$CC"
17097CC=${GCJ-"gcj"}
17098compiler=$CC
17099compiler_GCJ=$CC
17100for cc_temp in $compiler""; do
17101 case $cc_temp in
17102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17104 \-*) ;;
17105 *) break;;
17106 esac
17107done
17108cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17109
17110
17111# GCJ did not exist at the time GCC didn't implicitly link libc in.
17112archive_cmds_need_lc_GCJ=no
17113
17114old_archive_cmds_GCJ=$old_archive_cmds
17115
17116
17117lt_prog_compiler_no_builtin_flag_GCJ=
17118
17119if test "$GCC" = yes; then
17120 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17121
17122
17123{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17124echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17125if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17127else
17128 lt_cv_prog_compiler_rtti_exceptions=no
17129 ac_outfile=conftest.$ac_objext
17130 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17131 lt_compiler_flag="-fno-rtti -fno-exceptions"
17132 # Insert the option either (1) after the last *FLAGS variable, or
17133 # (2) before a word containing "conftest.", or (3) at the end.
17134 # Note that $ac_compile itself does not contain backslashes and begins
17135 # with a dollar sign (not a hyphen), so the echo should work correctly.
17136 # The option is referenced via a variable to avoid confusing sed.
17137 lt_compile=`echo "$ac_compile" | $SED \
17138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17140 -e 's:$: $lt_compiler_flag:'`
17141 (eval echo "\"\$as_me:17141: $lt_compile\"" >&5)
17142 (eval "$lt_compile" 2>conftest.err)
17143 ac_status=$?
17144 cat conftest.err >&5
17145 echo "$as_me:17145: \$? = $ac_status" >&5
17146 if (exit $ac_status) && test -s "$ac_outfile"; then
17147 # The compiler can only warn and ignore the option if not recognized
17148 # So say no if there are warnings other than the usual output.
17149 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17152 lt_cv_prog_compiler_rtti_exceptions=yes
17153 fi
17154 fi
17155 $rm conftest*
17156
17157fi
17158{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17159echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17160
17161if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17162 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17163else
17164 :
17165fi
17166
17167fi
17168
17169lt_prog_compiler_wl_GCJ=
17170lt_prog_compiler_pic_GCJ=
17171lt_prog_compiler_static_GCJ=
17172
17173{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17174echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17175
17176 if test "$GCC" = yes; then
17177 lt_prog_compiler_wl_GCJ='-Wl,'
17178 lt_prog_compiler_static_GCJ='-static'
17179
17180 case $host_os in
17181 aix*)
17182 # All AIX code is PIC.
17183 if test "$host_cpu" = ia64; then
17184 # AIX 5 now supports IA64 processor
17185 lt_prog_compiler_static_GCJ='-Bstatic'
17186 fi
17187 ;;
17188
17189 amigaos*)
17190 # FIXME: we need at least 68020 code to build shared libraries, but
17191 # adding the `-m68020' flag to GCC prevents building anything better,
17192 # like `-m68040'.
17193 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17194 ;;
17195
17196 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17197 # PIC is the default for these OSes.
17198 ;;
17199
17200 mingw* | pw32* | os2*)
17201 # This hack is so that the source file can tell whether it is being
17202 # built for inclusion in a dll (and should export symbols for example).
17203 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17204 ;;
17205
17206 darwin* | rhapsody*)
17207 # PIC is the default on this platform
17208 # Common symbols not allowed in MH_DYLIB files
17209 lt_prog_compiler_pic_GCJ='-fno-common'
17210 ;;
17211
17212 interix3*)
17213 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17214 # Instead, we relocate shared libraries at runtime.
17215 ;;
17216
17217 msdosdjgpp*)
17218 # Just because we use GCC doesn't mean we suddenly get shared libraries
17219 # on systems that don't support them.
17220 lt_prog_compiler_can_build_shared_GCJ=no
17221 enable_shared=no
17222 ;;
17223
17224 sysv4*MP*)
17225 if test -d /usr/nec; then
17226 lt_prog_compiler_pic_GCJ=-Kconform_pic
17227 fi
17228 ;;
17229
17230 hpux*)
17231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17232 # not for PA HP-UX.
17233 case $host_cpu in
17234 hppa*64*|ia64*)
17235 # +Z the default
17236 ;;
17237 *)
17238 lt_prog_compiler_pic_GCJ='-fPIC'
17239 ;;
17240 esac
17241 ;;
17242
17243 *)
17244 lt_prog_compiler_pic_GCJ='-fPIC'
17245 ;;
17246 esac
17247 else
17248 # PORTME Check for flag to pass linker flags through the system compiler.
17249 case $host_os in
17250 aix*)
17251 lt_prog_compiler_wl_GCJ='-Wl,'
17252 if test "$host_cpu" = ia64; then
17253 # AIX 5 now supports IA64 processor
17254 lt_prog_compiler_static_GCJ='-Bstatic'
17255 else
17256 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17257 fi
17258 ;;
17259 darwin*)
17260 # PIC is the default on this platform
17261 # Common symbols not allowed in MH_DYLIB files
17262 case $cc_basename in
17263 xlc*)
17264 lt_prog_compiler_pic_GCJ='-qnocommon'
17265 lt_prog_compiler_wl_GCJ='-Wl,'
17266 ;;
17267 esac
17268 ;;
17269
17270 mingw* | pw32* | os2*)
17271 # This hack is so that the source file can tell whether it is being
17272 # built for inclusion in a dll (and should export symbols for example).
17273 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17274 ;;
17275
17276 hpux9* | hpux10* | hpux11*)
17277 lt_prog_compiler_wl_GCJ='-Wl,'
17278 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17279 # not for PA HP-UX.
17280 case $host_cpu in
17281 hppa*64*|ia64*)
17282 # +Z the default
17283 ;;
17284 *)
17285 lt_prog_compiler_pic_GCJ='+Z'
17286 ;;
17287 esac
17288 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17289 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17290 ;;
17291
17292 irix5* | irix6* | nonstopux*)
17293 lt_prog_compiler_wl_GCJ='-Wl,'
17294 # PIC (with -KPIC) is the default.
17295 lt_prog_compiler_static_GCJ='-non_shared'
17296 ;;
17297
17298 newsos6)
17299 lt_prog_compiler_pic_GCJ='-KPIC'
17300 lt_prog_compiler_static_GCJ='-Bstatic'
17301 ;;
17302
17303 linux* | k*bsd*-gnu)
17304 case $cc_basename in
17305 icc* | ecc*)
17306 lt_prog_compiler_wl_GCJ='-Wl,'
17307 lt_prog_compiler_pic_GCJ='-KPIC'
17308 lt_prog_compiler_static_GCJ='-static'
17309 ;;
17310 pgcc* | pgf77* | pgf90* | pgf95*)
17311 # Portland Group compilers (*not* the Pentium gcc compiler,
17312 # which looks to be a dead project)
17313 lt_prog_compiler_wl_GCJ='-Wl,'
17314 lt_prog_compiler_pic_GCJ='-fpic'
17315 lt_prog_compiler_static_GCJ='-Bstatic'
17316 ;;
17317 ccc*)
17318 lt_prog_compiler_wl_GCJ='-Wl,'
17319 # All Alpha code is PIC.
17320 lt_prog_compiler_static_GCJ='-non_shared'
17321 ;;
17322 esac
17323 ;;
17324
17325 osf3* | osf4* | osf5*)
17326 lt_prog_compiler_wl_GCJ='-Wl,'
17327 # All OSF/1 code is PIC.
17328 lt_prog_compiler_static_GCJ='-non_shared'
17329 ;;
17330
17331 solaris*)
17332 lt_prog_compiler_pic_GCJ='-KPIC'
17333 lt_prog_compiler_static_GCJ='-Bstatic'
17334 case $cc_basename in
17335 f77* | f90* | f95*)
17336 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17337 *)
17338 lt_prog_compiler_wl_GCJ='-Wl,';;
17339 esac
17340 ;;
17341
17342 sunos4*)
17343 lt_prog_compiler_wl_GCJ='-Qoption ld '
17344 lt_prog_compiler_pic_GCJ='-PIC'
17345 lt_prog_compiler_static_GCJ='-Bstatic'
17346 ;;
17347
17348 sysv4 | sysv4.2uw2* | sysv4.3*)
17349 lt_prog_compiler_wl_GCJ='-Wl,'
17350 lt_prog_compiler_pic_GCJ='-KPIC'
17351 lt_prog_compiler_static_GCJ='-Bstatic'
17352 ;;
17353
17354 sysv4*MP*)
17355 if test -d /usr/nec ;then
17356 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17357 lt_prog_compiler_static_GCJ='-Bstatic'
17358 fi
17359 ;;
17360
17361 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17362 lt_prog_compiler_wl_GCJ='-Wl,'
17363 lt_prog_compiler_pic_GCJ='-KPIC'
17364 lt_prog_compiler_static_GCJ='-Bstatic'
17365 ;;
17366
17367 unicos*)
17368 lt_prog_compiler_wl_GCJ='-Wl,'
17369 lt_prog_compiler_can_build_shared_GCJ=no
17370 ;;
17371
17372 uts4*)
17373 lt_prog_compiler_pic_GCJ='-pic'
17374 lt_prog_compiler_static_GCJ='-Bstatic'
17375 ;;
17376
17377 *)
17378 lt_prog_compiler_can_build_shared_GCJ=no
17379 ;;
17380 esac
17381 fi
17382
17383{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17384echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17385
17386#
17387# Check to make sure the PIC flag actually works.
17388#
17389if test -n "$lt_prog_compiler_pic_GCJ"; then
17390
17391{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17392echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17393if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17394 echo $ECHO_N "(cached) $ECHO_C" >&6
17395else
17396 lt_prog_compiler_pic_works_GCJ=no
17397 ac_outfile=conftest.$ac_objext
17398 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17399 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17400 # Insert the option either (1) after the last *FLAGS variable, or
17401 # (2) before a word containing "conftest.", or (3) at the end.
17402 # Note that $ac_compile itself does not contain backslashes and begins
17403 # with a dollar sign (not a hyphen), so the echo should work correctly.
17404 # The option is referenced via a variable to avoid confusing sed.
17405 lt_compile=`echo "$ac_compile" | $SED \
17406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17408 -e 's:$: $lt_compiler_flag:'`
17409 (eval echo "\"\$as_me:17409: $lt_compile\"" >&5)
17410 (eval "$lt_compile" 2>conftest.err)
17411 ac_status=$?
17412 cat conftest.err >&5
17413 echo "$as_me:17413: \$? = $ac_status" >&5
17414 if (exit $ac_status) && test -s "$ac_outfile"; then
17415 # The compiler can only warn and ignore the option if not recognized
17416 # So say no if there are warnings other than the usual output.
17417 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17420 lt_prog_compiler_pic_works_GCJ=yes
17421 fi
17422 fi
17423 $rm conftest*
17424
17425fi
17426{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17427echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17428
17429if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17430 case $lt_prog_compiler_pic_GCJ in
17431 "" | " "*) ;;
17432 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17433 esac
17434else
17435 lt_prog_compiler_pic_GCJ=
17436 lt_prog_compiler_can_build_shared_GCJ=no
17437fi
17438
17439fi
17440case $host_os in
17441 # For platforms which do not support PIC, -DPIC is meaningless:
17442 *djgpp*)
17443 lt_prog_compiler_pic_GCJ=
17444 ;;
17445 *)
17446 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17447 ;;
17448esac
17449
17450#
17451# Check to make sure the static flag actually works.
17452#
17453wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17454{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17455echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17456if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17458else
17459 lt_prog_compiler_static_works_GCJ=no
17460 save_LDFLAGS="$LDFLAGS"
17461 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17462 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17463 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17464 # The linker can only warn and ignore the option if not recognized
17465 # So say no if there are warnings
17466 if test -s conftest.err; then
17467 # Append any errors to the config.log.
17468 cat conftest.err 1>&5
17469 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17471 if diff conftest.exp conftest.er2 >/dev/null; then
17472 lt_prog_compiler_static_works_GCJ=yes
17473 fi
17474 else
17475 lt_prog_compiler_static_works_GCJ=yes
17476 fi
17477 fi
17478 $rm conftest*
17479 LDFLAGS="$save_LDFLAGS"
17480
17481fi
17482{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17483echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17484
17485if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17486 :
17487else
17488 lt_prog_compiler_static_GCJ=
17489fi
17490
17491
17492{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17493echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17494if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17496else
17497 lt_cv_prog_compiler_c_o_GCJ=no
17498 $rm -r conftest 2>/dev/null
17499 mkdir conftest
17500 cd conftest
17501 mkdir out
17502 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17503
17504 lt_compiler_flag="-o out/conftest2.$ac_objext"
17505 # Insert the option either (1) after the last *FLAGS variable, or
17506 # (2) before a word containing "conftest.", or (3) at the end.
17507 # Note that $ac_compile itself does not contain backslashes and begins
17508 # with a dollar sign (not a hyphen), so the echo should work correctly.
17509 lt_compile=`echo "$ac_compile" | $SED \
17510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17512 -e 's:$: $lt_compiler_flag:'`
17513 (eval echo "\"\$as_me:17513: $lt_compile\"" >&5)
17514 (eval "$lt_compile" 2>out/conftest.err)
17515 ac_status=$?
17516 cat out/conftest.err >&5
17517 echo "$as_me:17517: \$? = $ac_status" >&5
17518 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17519 then
17520 # The compiler can only warn and ignore the option if not recognized
17521 # So say no if there are warnings
17522 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17523 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17524 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17525 lt_cv_prog_compiler_c_o_GCJ=yes
17526 fi
17527 fi
17528 chmod u+w . 2>&5
17529 $rm conftest*
17530 # SGI C++ compiler will create directory out/ii_files/ for
17531 # template instantiation
17532 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17533 $rm out/* && rmdir out
17534 cd ..
17535 rmdir conftest
17536 $rm conftest*
17537
17538fi
17539{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17540echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17541
17542
17543hard_links="nottested"
17544if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17545 # do not overwrite the value of need_locks provided by the user
17546 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17547echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17548 hard_links=yes
17549 $rm conftest*
17550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17551 touch conftest.a
17552 ln conftest.a conftest.b 2>&5 || hard_links=no
17553 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17554 { echo "$as_me:$LINENO: result: $hard_links" >&5
17555echo "${ECHO_T}$hard_links" >&6; }
17556 if test "$hard_links" = no; then
17557 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17558echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17559 need_locks=warn
17560 fi
17561else
17562 need_locks=no
17563fi
17564
17565{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17566echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17567
17568 runpath_var=
17569 allow_undefined_flag_GCJ=
17570 enable_shared_with_static_runtimes_GCJ=no
17571 archive_cmds_GCJ=
17572 archive_expsym_cmds_GCJ=
17573 old_archive_From_new_cmds_GCJ=
17574 old_archive_from_expsyms_cmds_GCJ=
17575 export_dynamic_flag_spec_GCJ=
17576 whole_archive_flag_spec_GCJ=
17577 thread_safe_flag_spec_GCJ=
17578 hardcode_libdir_flag_spec_GCJ=
17579 hardcode_libdir_flag_spec_ld_GCJ=
17580 hardcode_libdir_separator_GCJ=
17581 hardcode_direct_GCJ=no
17582 hardcode_minus_L_GCJ=no
17583 hardcode_shlibpath_var_GCJ=unsupported
17584 link_all_deplibs_GCJ=unknown
17585 hardcode_automatic_GCJ=no
17586 module_cmds_GCJ=
17587 module_expsym_cmds_GCJ=
17588 always_export_symbols_GCJ=no
17589 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17590 # include_expsyms should be a list of space-separated symbols to be *always*
17591 # included in the symbol list
17592 include_expsyms_GCJ=
17593 # exclude_expsyms can be an extended regexp of symbols to exclude
17594 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17595 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17596 # as well as any symbol that contains `d'.
17597 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17598 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17599 # platforms (ab)use it in PIC code, but their linkers get confused if
17600 # the symbol is explicitly referenced. Since portable code cannot
17601 # rely on this symbol name, it's probably fine to never include it in
17602 # preloaded symbol tables.
17603 extract_expsyms_cmds=
17604 # Just being paranoid about ensuring that cc_basename is set.
17605 for cc_temp in $compiler""; do
17606 case $cc_temp in
17607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17609 \-*) ;;
17610 *) break;;
17611 esac
17612done
17613cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17614
17615 case $host_os in
17616 cygwin* | mingw* | pw32*)
17617 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17618 # When not using gcc, we currently assume that we are using
17619 # Microsoft Visual C++.
17620 if test "$GCC" != yes; then
17621 with_gnu_ld=no
17622 fi
17623 ;;
17624 interix*)
17625 # we just hope/assume this is gcc and not c89 (= MSVC++)
17626 with_gnu_ld=yes
17627 ;;
17628 openbsd*)
17629 with_gnu_ld=no
17630 ;;
17631 esac
17632
17633 ld_shlibs_GCJ=yes
17634 if test "$with_gnu_ld" = yes; then
17635 # If archive_cmds runs LD, not CC, wlarc should be empty
17636 wlarc='${wl}'
17637
17638 # Set some defaults for GNU ld with shared library support. These
17639 # are reset later if shared libraries are not supported. Putting them
17640 # here allows them to be overridden if necessary.
17641 runpath_var=LD_RUN_PATH
17642 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17643 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17644 # ancient GNU ld didn't support --whole-archive et. al.
17645 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17646 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17647 else
17648 whole_archive_flag_spec_GCJ=
17649 fi
17650 supports_anon_versioning=no
17651 case `$LD -v 2>/dev/null` in
17652 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17653 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17654 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17655 *\ 2.11.*) ;; # other 2.11 versions
17656 *) supports_anon_versioning=yes ;;
17657 esac
17658
17659 # See if GNU ld supports shared libraries.
17660 case $host_os in
17661 aix3* | aix4* | aix5*)
17662 # On AIX/PPC, the GNU linker is very broken
17663 if test "$host_cpu" != ia64; then
17664 ld_shlibs_GCJ=no
17665 cat <<EOF 1>&2
17666
17667*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17668*** to be unable to reliably create shared libraries on AIX.
17669*** Therefore, libtool is disabling shared libraries support. If you
17670*** really care for shared libraries, you may want to modify your PATH
17671*** so that a non-GNU linker is found, and then restart.
17672
17673EOF
17674 fi
17675 ;;
17676
17677 amigaos*)
17678 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)'
17679 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17680 hardcode_minus_L_GCJ=yes
17681
17682 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17683 # that the semantics of dynamic libraries on AmigaOS, at least up
17684 # to version 4, is to share data among multiple programs linked
17685 # with the same dynamic library. Since this doesn't match the
17686 # behavior of shared libraries on other platforms, we can't use
17687 # them.
17688 ld_shlibs_GCJ=no
17689 ;;
17690
17691 beos*)
17692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17693 allow_undefined_flag_GCJ=unsupported
17694 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17695 # support --undefined. This deserves some investigation. FIXME
17696 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17697 else
17698 ld_shlibs_GCJ=no
17699 fi
17700 ;;
17701
17702 cygwin* | mingw* | pw32*)
17703 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17704 # as there is no search path for DLLs.
17705 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17706 allow_undefined_flag_GCJ=unsupported
17707 always_export_symbols_GCJ=no
17708 enable_shared_with_static_runtimes_GCJ=yes
17709 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17710
17711 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17712 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17713 # If the export-symbols file already is a .def file (1st line
17714 # is EXPORTS), use it as is; otherwise, prepend...
17715 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17716 cp $export_symbols $output_objdir/$soname.def;
17717 else
17718 echo EXPORTS > $output_objdir/$soname.def;
17719 cat $export_symbols >> $output_objdir/$soname.def;
17720 fi~
17721 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17722 else
17723 ld_shlibs_GCJ=no
17724 fi
17725 ;;
17726
17727 interix3*)
17728 hardcode_direct_GCJ=no
17729 hardcode_shlibpath_var_GCJ=no
17730 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17731 export_dynamic_flag_spec_GCJ='${wl}-E'
17732 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17733 # Instead, shared libraries are loaded at an image base (0x10000000 by
17734 # default) and relocated if they conflict, which is a slow very memory
17735 # consuming and fragmenting process. To avoid this, we pick a random,
17736 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17737 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17738 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'
17739 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'
17740 ;;
17741
17742 linux* | k*bsd*-gnu)
17743 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17744 tmp_addflag=
17745 case $cc_basename,$host_cpu in
17746 pgcc*) # Portland Group C compiler
17747 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'
17748 tmp_addflag=' $pic_flag'
17749 ;;
17750 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17751 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'
17752 tmp_addflag=' $pic_flag -Mnomain' ;;
17753 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17754 tmp_addflag=' -i_dynamic' ;;
17755 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17756 tmp_addflag=' -i_dynamic -nofor_main' ;;
17757 ifc* | ifort*) # Intel Fortran compiler
17758 tmp_addflag=' -nofor_main' ;;
17759 esac
17760 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17761
17762 if test $supports_anon_versioning = yes; then
17763 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17764 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17765 $echo "local: *; };" >> $output_objdir/$libname.ver~
17766 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17767 fi
17768 link_all_deplibs_GCJ=no
17769 else
17770 ld_shlibs_GCJ=no
17771 fi
17772 ;;
17773
17774 netbsd* | netbsdelf*-gnu)
17775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17776 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17777 wlarc=
17778 else
17779 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17780 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17781 fi
17782 ;;
17783
17784 solaris*)
17785 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17786 ld_shlibs_GCJ=no
17787 cat <<EOF 1>&2
17788
17789*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17790*** create shared libraries on Solaris systems. Therefore, libtool
17791*** is disabling shared libraries support. We urge you to upgrade GNU
17792*** binutils to release 2.9.1 or newer. Another option is to modify
17793*** your PATH or compiler configuration so that the native linker is
17794*** used, and then restart.
17795
17796EOF
17797 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17798 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17799 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17800 else
17801 ld_shlibs_GCJ=no
17802 fi
17803 ;;
17804
17805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17806 case `$LD -v 2>&1` in
17807 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17808 ld_shlibs_GCJ=no
17809 cat <<_LT_EOF 1>&2
17810
17811*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17812*** reliably create shared libraries on SCO systems. Therefore, libtool
17813*** is disabling shared libraries support. We urge you to upgrade GNU
17814*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17815*** your PATH or compiler configuration so that the native linker is
17816*** used, and then restart.
17817
17818_LT_EOF
17819 ;;
17820 *)
17821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17822 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17823 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17824 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17825 else
17826 ld_shlibs_GCJ=no
17827 fi
17828 ;;
17829 esac
17830 ;;
17831
17832 sunos4*)
17833 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17834 wlarc=
17835 hardcode_direct_GCJ=yes
17836 hardcode_shlibpath_var_GCJ=no
17837 ;;
17838
17839 *)
17840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17841 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17842 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17843 else
17844 ld_shlibs_GCJ=no
17845 fi
17846 ;;
17847 esac
17848
17849 if test "$ld_shlibs_GCJ" = no; then
17850 runpath_var=
17851 hardcode_libdir_flag_spec_GCJ=
17852 export_dynamic_flag_spec_GCJ=
17853 whole_archive_flag_spec_GCJ=
17854 fi
17855 else
17856 # PORTME fill in a description of your system's linker (not GNU ld)
17857 case $host_os in
17858 aix3*)
17859 allow_undefined_flag_GCJ=unsupported
17860 always_export_symbols_GCJ=yes
17861 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'
17862 # Note: this linker hardcodes the directories in LIBPATH if there
17863 # are no directories specified by -L.
17864 hardcode_minus_L_GCJ=yes
17865 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17866 # Neither direct hardcoding nor static linking is supported with a
17867 # broken collect2.
17868 hardcode_direct_GCJ=unsupported
17869 fi
17870 ;;
17871
17872 aix4* | aix5*)
17873 if test "$host_cpu" = ia64; then
17874 # On IA64, the linker does run time linking by default, so we don't
17875 # have to do anything special.
17876 aix_use_runtimelinking=no
17877 exp_sym_flag='-Bexport'
17878 no_entry_flag=""
17879 else
17880 # If we're using GNU nm, then we don't want the "-C" option.
17881 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17882 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17883 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'
17884 else
17885 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'
17886 fi
17887 aix_use_runtimelinking=no
17888
17889 # Test if we are trying to use run time linking or normal
17890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17891 # need to do runtime linking.
17892 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17893 for ld_flag in $LDFLAGS; do
17894 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17895 aix_use_runtimelinking=yes
17896 break
17897 fi
17898 done
17899 ;;
17900 esac
17901
17902 exp_sym_flag='-bexport'
17903 no_entry_flag='-bnoentry'
17904 fi
17905
17906 # When large executables or shared objects are built, AIX ld can
17907 # have problems creating the table of contents. If linking a library
17908 # or program results in "error TOC overflow" add -mminimal-toc to
17909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17911
17912 archive_cmds_GCJ=''
17913 hardcode_direct_GCJ=yes
17914 hardcode_libdir_separator_GCJ=':'
17915 link_all_deplibs_GCJ=yes
17916
17917 if test "$GCC" = yes; then
17918 case $host_os in aix4.[012]|aix4.[012].*)
17919 # We only want to do this on AIX 4.2 and lower, the check
17920 # below for broken collect2 doesn't work under 4.3+
17921 collect2name=`${CC} -print-prog-name=collect2`
17922 if test -f "$collect2name" && \
17923 strings "$collect2name" | grep resolve_lib_name >/dev/null
17924 then
17925 # We have reworked collect2
17926 hardcode_direct_GCJ=yes
17927 else
17928 # We have old collect2
17929 hardcode_direct_GCJ=unsupported
17930 # It fails to find uninstalled libraries when the uninstalled
17931 # path is not listed in the libpath. Setting hardcode_minus_L
17932 # to unsupported forces relinking
17933 hardcode_minus_L_GCJ=yes
17934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17935 hardcode_libdir_separator_GCJ=
17936 fi
17937 ;;
17938 esac
17939 shared_flag='-shared'
17940 if test "$aix_use_runtimelinking" = yes; then
17941 shared_flag="$shared_flag "'${wl}-G'
17942 fi
17943 else
17944 # not using gcc
17945 if test "$host_cpu" = ia64; then
17946 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17947 # chokes on -Wl,-G. The following line is correct:
17948 shared_flag='-G'
17949 else
17950 if test "$aix_use_runtimelinking" = yes; then
17951 shared_flag='${wl}-G'
17952 else
17953 shared_flag='${wl}-bM:SRE'
17954 fi
17955 fi
17956 fi
17957
17958 # It seems that -bexpall does not export symbols beginning with
17959 # underscore (_), so it is better to generate a list of symbols to export.
17960 always_export_symbols_GCJ=yes
17961 if test "$aix_use_runtimelinking" = yes; then
17962 # Warning - without using the other runtime loading flags (-brtl),
17963 # -berok will link without error, but may produce a broken library.
17964 allow_undefined_flag_GCJ='-berok'
17965 # Determine the default libpath from the value encoded in an empty executable.
17966 cat >conftest.$ac_ext <<_ACEOF
17967/* confdefs.h. */
17968_ACEOF
17969cat confdefs.h >>conftest.$ac_ext
17970cat >>conftest.$ac_ext <<_ACEOF
17971/* end confdefs.h. */
17972
17973int
17974main ()
17975{
17976
17977 ;
17978 return 0;
17979}
17980_ACEOF
17981rm -f conftest.$ac_objext conftest$ac_exeext
17982if { (ac_try="$ac_link"
17983case "(($ac_try" in
17984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17985 *) ac_try_echo=$ac_try;;
17986esac
17987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17988 (eval "$ac_link") 2>conftest.er1
17989 ac_status=$?
17990 grep -v '^ *+' conftest.er1 >conftest.err
17991 rm -f conftest.er1
17992 cat conftest.err >&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); } &&
17995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17996 { (case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
17999esac
18000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_try") 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; } &&
18005 { ac_try='test -s conftest$ac_exeext'
18006 { (case "(($ac_try" in
18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18009esac
18010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_try") 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; }; then
18015
18016aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18017}'`
18018# Check for a 64-bit object if we didn't find anything.
18019if 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; }
18020}'`; fi
18021else
18022 echo "$as_me: failed program was:" >&5
18023sed 's/^/| /' conftest.$ac_ext >&5
18024
18025
18026fi
18027
18028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18029 conftest$ac_exeext conftest.$ac_ext
18030if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18031
18032 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18033 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"
18034 else
18035 if test "$host_cpu" = ia64; then
18036 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18037 allow_undefined_flag_GCJ="-z nodefs"
18038 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"
18039 else
18040 # Determine the default libpath from the value encoded in an empty executable.
18041 cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h. */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h. */
18047
18048int
18049main ()
18050{
18051
18052 ;
18053 return 0;
18054}
18055_ACEOF
18056rm -f conftest.$ac_objext conftest$ac_exeext
18057if { (ac_try="$ac_link"
18058case "(($ac_try" in
18059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060 *) ac_try_echo=$ac_try;;
18061esac
18062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063 (eval "$ac_link") 2>conftest.er1
18064 ac_status=$?
18065 grep -v '^ *+' conftest.er1 >conftest.err
18066 rm -f conftest.er1
18067 cat conftest.err >&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
18070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18071 { (case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074esac
18075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_try") 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; } &&
18080 { ac_try='test -s conftest$ac_exeext'
18081 { (case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18084esac
18085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_try") 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; }; then
18090
18091aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18092}'`
18093# Check for a 64-bit object if we didn't find anything.
18094if 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; }
18095}'`; fi
18096else
18097 echo "$as_me: failed program was:" >&5
18098sed 's/^/| /' conftest.$ac_ext >&5
18099
18100
18101fi
18102
18103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18104 conftest$ac_exeext conftest.$ac_ext
18105if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18106
18107 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18108 # Warning - without using the other run time loading flags,
18109 # -berok will link without error, but may produce a broken library.
18110 no_undefined_flag_GCJ=' ${wl}-bernotok'
18111 allow_undefined_flag_GCJ=' ${wl}-berok'
18112 # Exported symbols can be pulled into shared objects from archives
18113 whole_archive_flag_spec_GCJ='$convenience'
18114 archive_cmds_need_lc_GCJ=yes
18115 # This is similar to how AIX traditionally builds its shared libraries.
18116 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'
18117 fi
18118 fi
18119 ;;
18120
18121 amigaos*)
18122 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)'
18123 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18124 hardcode_minus_L_GCJ=yes
18125 # see comment about different semantics on the GNU ld section
18126 ld_shlibs_GCJ=no
18127 ;;
18128
18129 bsdi[45]*)
18130 export_dynamic_flag_spec_GCJ=-rdynamic
18131 ;;
18132
18133 cygwin* | mingw* | pw32*)
18134 # When not using gcc, we currently assume that we are using
18135 # Microsoft Visual C++.
18136 # hardcode_libdir_flag_spec is actually meaningless, as there is
18137 # no search path for DLLs.
18138 hardcode_libdir_flag_spec_GCJ=' '
18139 allow_undefined_flag_GCJ=unsupported
18140 # Tell ltmain to make .lib files, not .a files.
18141 libext=lib
18142 # Tell ltmain to make .dll files, not .so files.
18143 shrext_cmds=".dll"
18144 # FIXME: Setting linknames here is a bad hack.
18145 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18146 # The linker will automatically build a .lib file if we build a DLL.
18147 old_archive_From_new_cmds_GCJ='true'
18148 # FIXME: Should let the user specify the lib program.
18149 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18150 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18151 enable_shared_with_static_runtimes_GCJ=yes
18152 ;;
18153
18154 darwin* | rhapsody*)
18155 case $host_os in
18156 rhapsody* | darwin1.[012])
18157 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18158 ;;
18159 *) # Darwin 1.3 on
18160 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18161 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18162 else
18163 case ${MACOSX_DEPLOYMENT_TARGET} in
18164 10.[012])
18165 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18166 ;;
18167 10.*)
18168 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18169 ;;
18170 esac
18171 fi
18172 ;;
18173 esac
18174 archive_cmds_need_lc_GCJ=no
18175 hardcode_direct_GCJ=no
18176 hardcode_automatic_GCJ=yes
18177 hardcode_shlibpath_var_GCJ=unsupported
18178 whole_archive_flag_spec_GCJ=''
18179 link_all_deplibs_GCJ=yes
18180 if test "$GCC" = yes ; then
18181 output_verbose_link_cmd='echo'
18182 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18183 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18185 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}'
18186 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}'
18187 else
18188 case $cc_basename in
18189 xlc*)
18190 output_verbose_link_cmd='echo'
18191 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18192 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18193 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18194 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}'
18195 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}'
18196 ;;
18197 *)
18198 ld_shlibs_GCJ=no
18199 ;;
18200 esac
18201 fi
18202 ;;
18203
18204 dgux*)
18205 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18206 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18207 hardcode_shlibpath_var_GCJ=no
18208 ;;
18209
18210 freebsd1*)
18211 ld_shlibs_GCJ=no
18212 ;;
18213
18214 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18215 # support. Future versions do this automatically, but an explicit c++rt0.o
18216 # does not break anything, and helps significantly (at the cost of a little
18217 # extra space).
18218 freebsd2.2*)
18219 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18220 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18221 hardcode_direct_GCJ=yes
18222 hardcode_shlibpath_var_GCJ=no
18223 ;;
18224
18225 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18226 freebsd2*)
18227 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18228 hardcode_direct_GCJ=yes
18229 hardcode_minus_L_GCJ=yes
18230 hardcode_shlibpath_var_GCJ=no
18231 ;;
18232
18233 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18234 freebsd* | dragonfly*)
18235 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18236 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18237 hardcode_direct_GCJ=yes
18238 hardcode_shlibpath_var_GCJ=no
18239 ;;
18240
18241 hpux9*)
18242 if test "$GCC" = yes; then
18243 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'
18244 else
18245 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'
18246 fi
18247 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18248 hardcode_libdir_separator_GCJ=:
18249 hardcode_direct_GCJ=yes
18250
18251 # hardcode_minus_L: Not really in the search PATH,
18252 # but as the default location of the library.
18253 hardcode_minus_L_GCJ=yes
18254 export_dynamic_flag_spec_GCJ='${wl}-E'
18255 ;;
18256
18257 hpux10*)
18258 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18259 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18260 else
18261 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18262 fi
18263 if test "$with_gnu_ld" = no; then
18264 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18265 hardcode_libdir_separator_GCJ=:
18266
18267 hardcode_direct_GCJ=yes
18268 export_dynamic_flag_spec_GCJ='${wl}-E'
18269
18270 # hardcode_minus_L: Not really in the search PATH,
18271 # but as the default location of the library.
18272 hardcode_minus_L_GCJ=yes
18273 fi
18274 ;;
18275
18276 hpux11*)
18277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18278 case $host_cpu in
18279 hppa*64*)
18280 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18281 ;;
18282 ia64*)
18283 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18284 ;;
18285 *)
18286 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18287 ;;
18288 esac
18289 else
18290 case $host_cpu in
18291 hppa*64*)
18292 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18293 ;;
18294 ia64*)
18295 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18296 ;;
18297 *)
18298 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18299 ;;
18300 esac
18301 fi
18302 if test "$with_gnu_ld" = no; then
18303 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18304 hardcode_libdir_separator_GCJ=:
18305
18306 case $host_cpu in
18307 hppa*64*|ia64*)
18308 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18309 hardcode_direct_GCJ=no
18310 hardcode_shlibpath_var_GCJ=no
18311 ;;
18312 *)
18313 hardcode_direct_GCJ=yes
18314 export_dynamic_flag_spec_GCJ='${wl}-E'
18315
18316 # hardcode_minus_L: Not really in the search PATH,
18317 # but as the default location of the library.
18318 hardcode_minus_L_GCJ=yes
18319 ;;
18320 esac
18321 fi
18322 ;;
18323
18324 irix5* | irix6* | nonstopux*)
18325 if test "$GCC" = yes; then
18326 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'
18327 else
18328 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'
18329 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18330 fi
18331 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18332 hardcode_libdir_separator_GCJ=:
18333 link_all_deplibs_GCJ=yes
18334 ;;
18335
18336 netbsd* | netbsdelf*-gnu)
18337 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18338 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18339 else
18340 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18341 fi
18342 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18343 hardcode_direct_GCJ=yes
18344 hardcode_shlibpath_var_GCJ=no
18345 ;;
18346
18347 newsos6)
18348 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18349 hardcode_direct_GCJ=yes
18350 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18351 hardcode_libdir_separator_GCJ=:
18352 hardcode_shlibpath_var_GCJ=no
18353 ;;
18354
18355 openbsd*)
18356 hardcode_direct_GCJ=yes
18357 hardcode_shlibpath_var_GCJ=no
18358 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18359 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18360 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18361 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18362 export_dynamic_flag_spec_GCJ='${wl}-E'
18363 else
18364 case $host_os in
18365 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18366 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18367 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18368 ;;
18369 *)
18370 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18371 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18372 ;;
18373 esac
18374 fi
18375 ;;
18376
18377 os2*)
18378 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18379 hardcode_minus_L_GCJ=yes
18380 allow_undefined_flag_GCJ=unsupported
18381 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'
18382 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18383 ;;
18384
18385 osf3*)
18386 if test "$GCC" = yes; then
18387 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18388 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'
18389 else
18390 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18391 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'
18392 fi
18393 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18394 hardcode_libdir_separator_GCJ=:
18395 ;;
18396
18397 osf4* | osf5*) # as osf3* with the addition of -msym flag
18398 if test "$GCC" = yes; then
18399 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18400 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'
18401 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18402 else
18403 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18404 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'
18405 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~
18406 $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'
18407
18408 # Both c and cxx compiler support -rpath directly
18409 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18410 fi
18411 hardcode_libdir_separator_GCJ=:
18412 ;;
18413
18414 solaris*)
18415 no_undefined_flag_GCJ=' -z text'
18416 if test "$GCC" = yes; then
18417 wlarc='${wl}'
18418 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18419 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18420 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18421 else
18422 wlarc=''
18423 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18424 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18425 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18426 fi
18427 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18428 hardcode_shlibpath_var_GCJ=no
18429 case $host_os in
18430 solaris2.[0-5] | solaris2.[0-5].*) ;;
18431 *)
18432 # The compiler driver will combine linker options so we
18433 # cannot just pass the convience library names through
18434 # without $wl, iff we do not link with $LD.
18435 # Luckily, gcc supports the same syntax we need for Sun Studio.
18436 # Supported since Solaris 2.6 (maybe 2.5.1?)
18437 case $wlarc in
18438 '')
18439 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18440 *)
18441 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' ;;
18442 esac ;;
18443 esac
18444 link_all_deplibs_GCJ=yes
18445 ;;
18446
18447 sunos4*)
18448 if test "x$host_vendor" = xsequent; then
18449 # Use $CC to link under sequent, because it throws in some extra .o
18450 # files that make .init and .fini sections work.
18451 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18452 else
18453 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18454 fi
18455 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18456 hardcode_direct_GCJ=yes
18457 hardcode_minus_L_GCJ=yes
18458 hardcode_shlibpath_var_GCJ=no
18459 ;;
18460
18461 sysv4)
18462 case $host_vendor in
18463 sni)
18464 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18465 hardcode_direct_GCJ=yes # is this really true???
18466 ;;
18467 siemens)
18468 ## LD is ld it makes a PLAMLIB
18469 ## CC just makes a GrossModule.
18470 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18471 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18472 hardcode_direct_GCJ=no
18473 ;;
18474 motorola)
18475 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18476 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18477 ;;
18478 esac
18479 runpath_var='LD_RUN_PATH'
18480 hardcode_shlibpath_var_GCJ=no
18481 ;;
18482
18483 sysv4.3*)
18484 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18485 hardcode_shlibpath_var_GCJ=no
18486 export_dynamic_flag_spec_GCJ='-Bexport'
18487 ;;
18488
18489 sysv4*MP*)
18490 if test -d /usr/nec; then
18491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18492 hardcode_shlibpath_var_GCJ=no
18493 runpath_var=LD_RUN_PATH
18494 hardcode_runpath_var=yes
18495 ld_shlibs_GCJ=yes
18496 fi
18497 ;;
18498
18499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18500 no_undefined_flag_GCJ='${wl}-z,text'
18501 archive_cmds_need_lc_GCJ=no
18502 hardcode_shlibpath_var_GCJ=no
18503 runpath_var='LD_RUN_PATH'
18504
18505 if test "$GCC" = yes; then
18506 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18507 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18508 else
18509 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18510 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18511 fi
18512 ;;
18513
18514 sysv5* | sco3.2v5* | sco5v6*)
18515 # Note: We can NOT use -z defs as we might desire, because we do not
18516 # link with -lc, and that would cause any symbols used from libc to
18517 # always be unresolved, which means just about no library would
18518 # ever link correctly. If we're not using GNU ld we use -z text
18519 # though, which does catch some bad symbols but isn't as heavy-handed
18520 # as -z defs.
18521 no_undefined_flag_GCJ='${wl}-z,text'
18522 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18523 archive_cmds_need_lc_GCJ=no
18524 hardcode_shlibpath_var_GCJ=no
18525 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18526 hardcode_libdir_separator_GCJ=':'
18527 link_all_deplibs_GCJ=yes
18528 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18529 runpath_var='LD_RUN_PATH'
18530
18531 if test "$GCC" = yes; then
18532 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18533 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18534 else
18535 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18536 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18537 fi
18538 ;;
18539
18540 uts4*)
18541 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18542 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18543 hardcode_shlibpath_var_GCJ=no
18544 ;;
18545
18546 *)
18547 ld_shlibs_GCJ=no
18548 ;;
18549 esac
18550 fi
18551
18552{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18553echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18554test "$ld_shlibs_GCJ" = no && can_build_shared=no
18555
18556#
18557# Do we need to explicitly link libc?
18558#
18559case "x$archive_cmds_need_lc_GCJ" in
18560x|xyes)
18561 # Assume -lc should be added
18562 archive_cmds_need_lc_GCJ=yes
18563
18564 if test "$enable_shared" = yes && test "$GCC" = yes; then
18565 case $archive_cmds_GCJ in
18566 *'~'*)
18567 # FIXME: we may have to deal with multi-command sequences.
18568 ;;
18569 '$CC '*)
18570 # Test whether the compiler implicitly links with -lc since on some
18571 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18572 # to ld, don't add -lc before -lgcc.
18573 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18574echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18575 $rm conftest*
18576 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18577
18578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18579 (eval $ac_compile) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); } 2>conftest.err; then
18583 soname=conftest
18584 lib=conftest
18585 libobjs=conftest.$ac_objext
18586 deplibs=
18587 wl=$lt_prog_compiler_wl_GCJ
18588 pic_flag=$lt_prog_compiler_pic_GCJ
18589 compiler_flags=-v
18590 linker_flags=-v
18591 verstring=
18592 output_objdir=.
18593 libname=conftest
18594 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18595 allow_undefined_flag_GCJ=
18596 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18597 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }
18601 then
18602 archive_cmds_need_lc_GCJ=no
18603 else
18604 archive_cmds_need_lc_GCJ=yes
18605 fi
18606 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18607 else
18608 cat conftest.err 1>&5
18609 fi
18610 $rm conftest*
18611 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18612echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18613 ;;
18614 esac
18615 fi
18616 ;;
18617esac
18618
18619{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18620echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18621library_names_spec=
18622libname_spec='lib$name'
18623soname_spec=
18624shrext_cmds=".so"
18625postinstall_cmds=
18626postuninstall_cmds=
18627finish_cmds=
18628finish_eval=
18629shlibpath_var=
18630shlibpath_overrides_runpath=unknown
18631version_type=none
18632dynamic_linker="$host_os ld.so"
18633sys_lib_dlsearch_path_spec="/lib /usr/lib"
18634if test "$GCC" = yes; then
18635 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18636 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18637 # if the path contains ";" then we assume it to be the separator
18638 # otherwise default to the standard path separator (i.e. ":") - it is
18639 # assumed that no part of a normal pathname contains ";" but that should
18640 # okay in the real world where ";" in dirpaths is itself problematic.
18641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18642 else
18643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18644 fi
18645else
18646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18647fi
18648need_lib_prefix=unknown
18649hardcode_into_libs=no
18650
18651# when you set need_version to no, make sure it does not cause -set_version
18652# flags to be left without arguments
18653need_version=unknown
18654
18655case $host_os in
18656aix3*)
18657 version_type=linux
18658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18659 shlibpath_var=LIBPATH
18660
18661 # AIX 3 has no versioning support, so we append a major version to the name.
18662 soname_spec='${libname}${release}${shared_ext}$major'
18663 ;;
18664
18665aix4* | aix5*)
18666 version_type=linux
18667 need_lib_prefix=no
18668 need_version=no
18669 hardcode_into_libs=yes
18670 if test "$host_cpu" = ia64; then
18671 # AIX 5 supports IA64
18672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18673 shlibpath_var=LD_LIBRARY_PATH
18674 else
18675 # With GCC up to 2.95.x, collect2 would create an import file
18676 # for dependence libraries. The import file would start with
18677 # the line `#! .'. This would cause the generated library to
18678 # depend on `.', always an invalid library. This was fixed in
18679 # development snapshots of GCC prior to 3.0.
18680 case $host_os in
18681 aix4 | aix4.[01] | aix4.[01].*)
18682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18683 echo ' yes '
18684 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18685 :
18686 else
18687 can_build_shared=no
18688 fi
18689 ;;
18690 esac
18691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18692 # soname into executable. Probably we can add versioning support to
18693 # collect2, so additional links can be useful in future.
18694 if test "$aix_use_runtimelinking" = yes; then
18695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18696 # instead of lib<name>.a to let people know that these are not
18697 # typical AIX shared libraries.
18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699 else
18700 # We preserve .a as extension for shared libraries through AIX4.2
18701 # and later when we are not doing run time linking.
18702 library_names_spec='${libname}${release}.a $libname.a'
18703 soname_spec='${libname}${release}${shared_ext}$major'
18704 fi
18705 shlibpath_var=LIBPATH
18706 fi
18707 ;;
18708
18709amigaos*)
18710 library_names_spec='$libname.ixlibrary $libname.a'
18711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18712 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'
18713 ;;
18714
18715beos*)
18716 library_names_spec='${libname}${shared_ext}'
18717 dynamic_linker="$host_os ld.so"
18718 shlibpath_var=LIBRARY_PATH
18719 ;;
18720
18721bsdi[45]*)
18722 version_type=linux
18723 need_version=no
18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18725 soname_spec='${libname}${release}${shared_ext}$major'
18726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18727 shlibpath_var=LD_LIBRARY_PATH
18728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18730 # the default ld.so.conf also contains /usr/contrib/lib and
18731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18732 # libtool to hard-code these into programs
18733 ;;
18734
18735cygwin* | mingw* | pw32*)
18736 version_type=windows
18737 shrext_cmds=".dll"
18738 need_version=no
18739 need_lib_prefix=no
18740
18741 case $GCC,$host_os in
18742 yes,cygwin* | yes,mingw* | yes,pw32*)
18743 library_names_spec='$libname.dll.a'
18744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18745 postinstall_cmds='base_file=`basename \${file}`~
18746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18747 dldir=$destdir/`dirname \$dlpath`~
18748 test -d \$dldir || mkdir -p \$dldir~
18749 $install_prog $dir/$dlname \$dldir/$dlname~
18750 chmod a+x \$dldir/$dlname'
18751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18752 dlpath=$dir/\$dldll~
18753 $rm \$dlpath'
18754 shlibpath_overrides_runpath=yes
18755
18756 case $host_os in
18757 cygwin*)
18758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18759 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18760 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18761 ;;
18762 mingw*)
18763 # MinGW DLLs use traditional 'lib' prefix
18764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18765 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18766 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18767 # It is most probably a Windows format PATH printed by
18768 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18769 # path with ; separators, and with drive letters. We can handle the
18770 # drive letters (cygwin fileutils understands them), so leave them,
18771 # especially as we might pass files found there to a mingw objdump,
18772 # which wouldn't understand a cygwinified path. Ahh.
18773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18774 else
18775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18776 fi
18777 ;;
18778 pw32*)
18779 # pw32 DLLs use 'pw' prefix rather than 'lib'
18780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18781 ;;
18782 esac
18783 ;;
18784
18785 *)
18786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18787 ;;
18788 esac
18789 dynamic_linker='Win32 ld.exe'
18790 # FIXME: first we should search . and the directory the executable is in
18791 shlibpath_var=PATH
18792 ;;
18793
18794darwin* | rhapsody*)
18795 dynamic_linker="$host_os dyld"
18796 version_type=darwin
18797 need_lib_prefix=no
18798 need_version=no
18799 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18800 soname_spec='${libname}${release}${major}$shared_ext'
18801 shlibpath_overrides_runpath=yes
18802 shlibpath_var=DYLD_LIBRARY_PATH
18803 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18804 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18805 if test "$GCC" = yes; then
18806 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"`
18807 else
18808 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18809 fi
18810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18811 ;;
18812
18813dgux*)
18814 version_type=linux
18815 need_lib_prefix=no
18816 need_version=no
18817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18818 soname_spec='${libname}${release}${shared_ext}$major'
18819 shlibpath_var=LD_LIBRARY_PATH
18820 ;;
18821
18822freebsd1*)
18823 dynamic_linker=no
18824 ;;
18825
18826freebsd* | dragonfly*)
18827 # DragonFly does not have aout. When/if they implement a new
18828 # versioning mechanism, adjust this.
18829 if test -x /usr/bin/objformat; then
18830 objformat=`/usr/bin/objformat`
18831 else
18832 case $host_os in
18833 freebsd[123]*) objformat=aout ;;
18834 *) objformat=elf ;;
18835 esac
18836 fi
18837 version_type=freebsd-$objformat
18838 case $version_type in
18839 freebsd-elf*)
18840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18841 need_version=no
18842 need_lib_prefix=no
18843 ;;
18844 freebsd-*)
18845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18846 need_version=yes
18847 ;;
18848 esac
18849 shlibpath_var=LD_LIBRARY_PATH
18850 case $host_os in
18851 freebsd2*)
18852 shlibpath_overrides_runpath=yes
18853 ;;
18854 freebsd3.[01]* | freebsdelf3.[01]*)
18855 shlibpath_overrides_runpath=yes
18856 hardcode_into_libs=yes
18857 ;;
18858 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18859 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18860 shlibpath_overrides_runpath=no
18861 hardcode_into_libs=yes
18862 ;;
18863 freebsd*) # from 4.6 on
18864 shlibpath_overrides_runpath=yes
18865 hardcode_into_libs=yes
18866 ;;
18867 esac
18868 ;;
18869
18870gnu*)
18871 version_type=linux
18872 need_lib_prefix=no
18873 need_version=no
18874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18875 soname_spec='${libname}${release}${shared_ext}$major'
18876 shlibpath_var=LD_LIBRARY_PATH
18877 hardcode_into_libs=yes
18878 ;;
18879
18880hpux9* | hpux10* | hpux11*)
18881 # Give a soname corresponding to the major version so that dld.sl refuses to
18882 # link against other versions.
18883 version_type=sunos
18884 need_lib_prefix=no
18885 need_version=no
18886 case $host_cpu in
18887 ia64*)
18888 shrext_cmds='.so'
18889 hardcode_into_libs=yes
18890 dynamic_linker="$host_os dld.so"
18891 shlibpath_var=LD_LIBRARY_PATH
18892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18894 soname_spec='${libname}${release}${shared_ext}$major'
18895 if test "X$HPUX_IA64_MODE" = X32; then
18896 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18897 else
18898 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18899 fi
18900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18901 ;;
18902 hppa*64*)
18903 shrext_cmds='.sl'
18904 hardcode_into_libs=yes
18905 dynamic_linker="$host_os dld.sl"
18906 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18909 soname_spec='${libname}${release}${shared_ext}$major'
18910 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18912 ;;
18913 *)
18914 shrext_cmds='.sl'
18915 dynamic_linker="$host_os dld.sl"
18916 shlibpath_var=SHLIB_PATH
18917 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18919 soname_spec='${libname}${release}${shared_ext}$major'
18920 ;;
18921 esac
18922 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18923 postinstall_cmds='chmod 555 $lib'
18924 ;;
18925
18926interix3*)
18927 version_type=linux
18928 need_lib_prefix=no
18929 need_version=no
18930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18931 soname_spec='${libname}${release}${shared_ext}$major'
18932 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18933 shlibpath_var=LD_LIBRARY_PATH
18934 shlibpath_overrides_runpath=no
18935 hardcode_into_libs=yes
18936 ;;
18937
18938irix5* | irix6* | nonstopux*)
18939 case $host_os in
18940 nonstopux*) version_type=nonstopux ;;
18941 *)
18942 if test "$lt_cv_prog_gnu_ld" = yes; then
18943 version_type=linux
18944 else
18945 version_type=irix
18946 fi ;;
18947 esac
18948 need_lib_prefix=no
18949 need_version=no
18950 soname_spec='${libname}${release}${shared_ext}$major'
18951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18952 case $host_os in
18953 irix5* | nonstopux*)
18954 libsuff= shlibsuff=
18955 ;;
18956 *)
18957 case $LD in # libtool.m4 will add one of these switches to LD
18958 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18959 libsuff= shlibsuff= libmagic=32-bit;;
18960 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18961 libsuff=32 shlibsuff=N32 libmagic=N32;;
18962 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18963 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18964 *) libsuff= shlibsuff= libmagic=never-match;;
18965 esac
18966 ;;
18967 esac
18968 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18969 shlibpath_overrides_runpath=no
18970 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18971 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18972 hardcode_into_libs=yes
18973 ;;
18974
18975# No shared lib support for Linux oldld, aout, or coff.
18976linux*oldld* | linux*aout* | linux*coff*)
18977 dynamic_linker=no
18978 ;;
18979
18980# This must be Linux ELF.
18981linux* | k*bsd*-gnu)
18982 version_type=linux
18983 need_lib_prefix=no
18984 need_version=no
18985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18986 soname_spec='${libname}${release}${shared_ext}$major'
18987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18988 shlibpath_var=LD_LIBRARY_PATH
18989 shlibpath_overrides_runpath=no
18990 # This implies no fast_install, which is unacceptable.
18991 # Some rework will be needed to allow for fast_install
18992 # before this can be enabled.
18993 hardcode_into_libs=yes
18994
18995 # Append ld.so.conf contents to the search path
18996 if test -f /etc/ld.so.conf; then
18997 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' ' '`
18998 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18999 fi
19000
19001 # We used to test for /lib/ld.so.1 and disable shared libraries on
19002 # powerpc, because MkLinux only supported shared libraries with the
19003 # GNU dynamic linker. Since this was broken with cross compilers,
19004 # most powerpc-linux boxes support dynamic linking these days and
19005 # people can always --disable-shared, the test was removed, and we
19006 # assume the GNU/Linux dynamic linker is in use.
19007 dynamic_linker='GNU/Linux ld.so'
19008 ;;
19009
19010netbsdelf*-gnu)
19011 version_type=linux
19012 need_lib_prefix=no
19013 need_version=no
19014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19015 soname_spec='${libname}${release}${shared_ext}$major'
19016 shlibpath_var=LD_LIBRARY_PATH
19017 shlibpath_overrides_runpath=no
19018 hardcode_into_libs=yes
19019 dynamic_linker='NetBSD ld.elf_so'
19020 ;;
19021
19022netbsd*)
19023 version_type=sunos
19024 need_lib_prefix=no
19025 need_version=no
19026 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19029 dynamic_linker='NetBSD (a.out) ld.so'
19030 else
19031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19032 soname_spec='${libname}${release}${shared_ext}$major'
19033 dynamic_linker='NetBSD ld.elf_so'
19034 fi
19035 shlibpath_var=LD_LIBRARY_PATH
19036 shlibpath_overrides_runpath=yes
19037 hardcode_into_libs=yes
19038 ;;
19039
19040newsos6)
19041 version_type=linux
19042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19043 shlibpath_var=LD_LIBRARY_PATH
19044 shlibpath_overrides_runpath=yes
19045 ;;
19046
19047nto-qnx*)
19048 version_type=linux
19049 need_lib_prefix=no
19050 need_version=no
19051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19052 soname_spec='${libname}${release}${shared_ext}$major'
19053 shlibpath_var=LD_LIBRARY_PATH
19054 shlibpath_overrides_runpath=yes
19055 ;;
19056
19057openbsd*)
19058 version_type=sunos
19059 sys_lib_dlsearch_path_spec="/usr/lib"
19060 need_lib_prefix=no
19061 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19062 case $host_os in
19063 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19064 *) need_version=no ;;
19065 esac
19066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19068 shlibpath_var=LD_LIBRARY_PATH
19069 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19070 case $host_os in
19071 openbsd2.[89] | openbsd2.[89].*)
19072 shlibpath_overrides_runpath=no
19073 ;;
19074 *)
19075 shlibpath_overrides_runpath=yes
19076 ;;
19077 esac
19078 else
19079 shlibpath_overrides_runpath=yes
19080 fi
19081 ;;
19082
19083os2*)
19084 libname_spec='$name'
19085 shrext_cmds=".dll"
19086 need_lib_prefix=no
19087 library_names_spec='$libname${shared_ext} $libname.a'
19088 dynamic_linker='OS/2 ld.exe'
19089 shlibpath_var=LIBPATH
19090 ;;
19091
19092osf3* | osf4* | osf5*)
19093 version_type=osf
19094 need_lib_prefix=no
19095 need_version=no
19096 soname_spec='${libname}${release}${shared_ext}$major'
19097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19098 shlibpath_var=LD_LIBRARY_PATH
19099 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19100 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19101 ;;
19102
19103solaris*)
19104 version_type=linux
19105 need_lib_prefix=no
19106 need_version=no
19107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19108 soname_spec='${libname}${release}${shared_ext}$major'
19109 shlibpath_var=LD_LIBRARY_PATH
19110 shlibpath_overrides_runpath=yes
19111 hardcode_into_libs=yes
19112 # ldd complains unless libraries are executable
19113 postinstall_cmds='chmod +x $lib'
19114 ;;
19115
19116sunos4*)
19117 version_type=sunos
19118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19119 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19120 shlibpath_var=LD_LIBRARY_PATH
19121 shlibpath_overrides_runpath=yes
19122 if test "$with_gnu_ld" = yes; then
19123 need_lib_prefix=no
19124 fi
19125 need_version=yes
19126 ;;
19127
19128sysv4 | sysv4.3*)
19129 version_type=linux
19130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19131 soname_spec='${libname}${release}${shared_ext}$major'
19132 shlibpath_var=LD_LIBRARY_PATH
19133 case $host_vendor in
19134 sni)
19135 shlibpath_overrides_runpath=no
19136 need_lib_prefix=no
19137 export_dynamic_flag_spec='${wl}-Blargedynsym'
19138 runpath_var=LD_RUN_PATH
19139 ;;
19140 siemens)
19141 need_lib_prefix=no
19142 ;;
19143 motorola)
19144 need_lib_prefix=no
19145 need_version=no
19146 shlibpath_overrides_runpath=no
19147 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19148 ;;
19149 esac
19150 ;;
19151
19152sysv4*MP*)
19153 if test -d /usr/nec ;then
19154 version_type=linux
19155 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19156 soname_spec='$libname${shared_ext}.$major'
19157 shlibpath_var=LD_LIBRARY_PATH
19158 fi
19159 ;;
19160
19161sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19162 version_type=freebsd-elf
19163 need_lib_prefix=no
19164 need_version=no
19165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19166 soname_spec='${libname}${release}${shared_ext}$major'
19167 shlibpath_var=LD_LIBRARY_PATH
19168 hardcode_into_libs=yes
19169 if test "$with_gnu_ld" = yes; then
19170 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19171 shlibpath_overrides_runpath=no
19172 else
19173 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19174 shlibpath_overrides_runpath=yes
19175 case $host_os in
19176 sco3.2v5*)
19177 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19178 ;;
19179 esac
19180 fi
19181 sys_lib_dlsearch_path_spec='/usr/lib'
19182 ;;
19183
19184uts4*)
19185 version_type=linux
19186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19187 soname_spec='${libname}${release}${shared_ext}$major'
19188 shlibpath_var=LD_LIBRARY_PATH
19189 ;;
19190
19191*)
19192 dynamic_linker=no
19193 ;;
19194esac
19195{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19196echo "${ECHO_T}$dynamic_linker" >&6; }
19197test "$dynamic_linker" = no && can_build_shared=no
19198
19199variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19200if test "$GCC" = yes; then
19201 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19202fi
19203
19204{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19205echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19206hardcode_action_GCJ=
19207if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19208 test -n "$runpath_var_GCJ" || \
19209 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19210
19211 # We can hardcode non-existant directories.
19212 if test "$hardcode_direct_GCJ" != no &&
19213 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19214 # have to relink, otherwise we might link with an installed library
19215 # when we should be linking with a yet-to-be-installed one
19216 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19217 test "$hardcode_minus_L_GCJ" != no; then
19218 # Linking always hardcodes the temporary library directory.
19219 hardcode_action_GCJ=relink
19220 else
19221 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19222 hardcode_action_GCJ=immediate
19223 fi
19224else
19225 # We cannot hardcode anything, or else we can only hardcode existing
19226 # directories.
19227 hardcode_action_GCJ=unsupported
19228fi
19229{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19230echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19231
19232if test "$hardcode_action_GCJ" = relink; then
19233 # Fast installation is not supported
19234 enable_fast_install=no
19235elif test "$shlibpath_overrides_runpath" = yes ||
19236 test "$enable_shared" = no; then
19237 # Fast installation is not necessary
19238 enable_fast_install=needless
19239fi
19240
19241
19242# The else clause should only fire when bootstrapping the
19243# libtool distribution, otherwise you forgot to ship ltmain.sh
19244# with your package, and you will get complaints that there are
19245# no rules to generate ltmain.sh.
19246if test -f "$ltmain"; then
19247 # See if we are running on zsh, and set the options which allow our commands through
19248 # without removal of \ escapes.
19249 if test -n "${ZSH_VERSION+set}" ; then
19250 setopt NO_GLOB_SUBST
19251 fi
19252 # Now quote all the things that may contain metacharacters while being
19253 # careful not to overquote the AC_SUBSTed values. We take copies of the
19254 # variables and quote the copies for generation of the libtool script.
19255 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19256 SED SHELL STRIP \
19257 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19258 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19259 deplibs_check_method reload_flag reload_cmds need_locks \
19260 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19261 lt_cv_sys_global_symbol_to_c_name_address \
19262 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19263 old_postinstall_cmds old_postuninstall_cmds \
19264 compiler_GCJ \
19265 CC_GCJ \
19266 LD_GCJ \
19267 lt_prog_compiler_wl_GCJ \
19268 lt_prog_compiler_pic_GCJ \
19269 lt_prog_compiler_static_GCJ \
19270 lt_prog_compiler_no_builtin_flag_GCJ \
19271 export_dynamic_flag_spec_GCJ \
19272 thread_safe_flag_spec_GCJ \
19273 whole_archive_flag_spec_GCJ \
19274 enable_shared_with_static_runtimes_GCJ \
19275 old_archive_cmds_GCJ \
19276 old_archive_from_new_cmds_GCJ \
19277 predep_objects_GCJ \
19278 postdep_objects_GCJ \
19279 predeps_GCJ \
19280 postdeps_GCJ \
19281 compiler_lib_search_path_GCJ \
19282 archive_cmds_GCJ \
19283 archive_expsym_cmds_GCJ \
19284 postinstall_cmds_GCJ \
19285 postuninstall_cmds_GCJ \
19286 old_archive_from_expsyms_cmds_GCJ \
19287 allow_undefined_flag_GCJ \
19288 no_undefined_flag_GCJ \
19289 export_symbols_cmds_GCJ \
19290 hardcode_libdir_flag_spec_GCJ \
19291 hardcode_libdir_flag_spec_ld_GCJ \
19292 hardcode_libdir_separator_GCJ \
19293 hardcode_automatic_GCJ \
19294 module_cmds_GCJ \
19295 module_expsym_cmds_GCJ \
19296 lt_cv_prog_compiler_c_o_GCJ \
19297 exclude_expsyms_GCJ \
19298 include_expsyms_GCJ; do
19299
19300 case $var in
19301 old_archive_cmds_GCJ | \
19302 old_archive_from_new_cmds_GCJ | \
19303 archive_cmds_GCJ | \
19304 archive_expsym_cmds_GCJ | \
19305 module_cmds_GCJ | \
19306 module_expsym_cmds_GCJ | \
19307 old_archive_from_expsyms_cmds_GCJ | \
19308 export_symbols_cmds_GCJ | \
19309 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19310 postinstall_cmds | postuninstall_cmds | \
19311 old_postinstall_cmds | old_postuninstall_cmds | \
19312 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19313 # Double-quote double-evaled strings.
19314 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19315 ;;
19316 *)
19317 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19318 ;;
19319 esac
19320 done
19321
19322 case $lt_echo in
19323 *'\$0 --fallback-echo"')
19324 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19325 ;;
19326 esac
19327
19328cfgfile="$ofile"
19329
19330 cat <<__EOF__ >> "$cfgfile"
19331# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19332
19333# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19334
19335# Shell to use when invoking shell scripts.
19336SHELL=$lt_SHELL
19337
19338# Whether or not to build shared libraries.
19339build_libtool_libs=$enable_shared
19340
19341# Whether or not to build static libraries.
19342build_old_libs=$enable_static
19343
19344# Whether or not to add -lc for building shared libraries.
19345build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19346
19347# Whether or not to disallow shared libs when runtime libs are static
19348allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19349
19350# Whether or not to optimize for fast installation.
19351fast_install=$enable_fast_install
19352
19353# The host system.
19354host_alias=$host_alias
19355host=$host
19356host_os=$host_os
19357
19358# The build system.
19359build_alias=$build_alias
19360build=$build
19361build_os=$build_os
19362
19363# An echo program that does not interpret backslashes.
19364echo=$lt_echo
19365
19366# The archiver.
19367AR=$lt_AR
19368AR_FLAGS=$lt_AR_FLAGS
19369
19370# A C compiler.
19371LTCC=$lt_LTCC
19372
19373# LTCC compiler flags.
19374LTCFLAGS=$lt_LTCFLAGS
19375
19376# A language-specific compiler.
19377CC=$lt_compiler_GCJ
19378
19379# Is the compiler the GNU C compiler?
19380with_gcc=$GCC_GCJ
19381
19382# An ERE matcher.
19383EGREP=$lt_EGREP
19384
19385# The linker used to build libraries.
19386LD=$lt_LD_GCJ
19387
19388# Whether we need hard or soft links.
19389LN_S=$lt_LN_S
19390
19391# A BSD-compatible nm program.
19392NM=$lt_NM
19393
19394# A symbol stripping program
19395STRIP=$lt_STRIP
19396
19397# Used to examine libraries when file_magic_cmd begins "file"
19398MAGIC_CMD=$MAGIC_CMD
19399
19400# Used on cygwin: DLL creation program.
19401DLLTOOL="$DLLTOOL"
19402
19403# Used on cygwin: object dumper.
19404OBJDUMP="$OBJDUMP"
19405
19406# Used on cygwin: assembler.
19407AS="$AS"
19408
19409# The name of the directory that contains temporary libtool files.
19410objdir=$objdir
19411
19412# How to create reloadable object files.
19413reload_flag=$lt_reload_flag
19414reload_cmds=$lt_reload_cmds
19415
19416# How to pass a linker flag through the compiler.
19417wl=$lt_lt_prog_compiler_wl_GCJ
19418
19419# Object file suffix (normally "o").
19420objext="$ac_objext"
19421
19422# Old archive suffix (normally "a").
19423libext="$libext"
19424
19425# Shared library suffix (normally ".so").
19426shrext_cmds='$shrext_cmds'
19427
19428# Executable file suffix (normally "").
19429exeext="$exeext"
19430
19431# Additional compiler flags for building library objects.
19432pic_flag=$lt_lt_prog_compiler_pic_GCJ
19433pic_mode=$pic_mode
19434
19435# What is the maximum length of a command?
19436max_cmd_len=$lt_cv_sys_max_cmd_len
19437
19438# Does compiler simultaneously support -c and -o options?
19439compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19440
19441# Must we lock files when doing compilation?
19442need_locks=$lt_need_locks
19443
19444# Do we need the lib prefix for modules?
19445need_lib_prefix=$need_lib_prefix
19446
19447# Do we need a version for libraries?
19448need_version=$need_version
19449
19450# Whether dlopen is supported.
19451dlopen_support=$enable_dlopen
19452
19453# Whether dlopen of programs is supported.
19454dlopen_self=$enable_dlopen_self
19455
19456# Whether dlopen of statically linked programs is supported.
19457dlopen_self_static=$enable_dlopen_self_static
19458
19459# Compiler flag to prevent dynamic linking.
19460link_static_flag=$lt_lt_prog_compiler_static_GCJ
19461
19462# Compiler flag to turn off builtin functions.
19463no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19464
19465# Compiler flag to allow reflexive dlopens.
19466export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19467
19468# Compiler flag to generate shared objects directly from archives.
19469whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19470
19471# Compiler flag to generate thread-safe objects.
19472thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19473
19474# Library versioning type.
19475version_type=$version_type
19476
19477# Format of library name prefix.
19478libname_spec=$lt_libname_spec
19479
19480# List of archive names. First name is the real one, the rest are links.
19481# The last name is the one that the linker finds with -lNAME.
19482library_names_spec=$lt_library_names_spec
19483
19484# The coded name of the library, if different from the real name.
19485soname_spec=$lt_soname_spec
19486
19487# Commands used to build and install an old-style archive.
19488RANLIB=$lt_RANLIB
19489old_archive_cmds=$lt_old_archive_cmds_GCJ
19490old_postinstall_cmds=$lt_old_postinstall_cmds
19491old_postuninstall_cmds=$lt_old_postuninstall_cmds
19492
19493# Create an old-style archive from a shared archive.
19494old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19495
19496# Create a temporary old-style archive to link instead of a shared archive.
19497old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19498
19499# Commands used to build and install a shared archive.
19500archive_cmds=$lt_archive_cmds_GCJ
19501archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19502postinstall_cmds=$lt_postinstall_cmds
19503postuninstall_cmds=$lt_postuninstall_cmds
19504
19505# Commands used to build a loadable module (assumed same as above if empty)
19506module_cmds=$lt_module_cmds_GCJ
19507module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19508
19509# Commands to strip libraries.
19510old_striplib=$lt_old_striplib
19511striplib=$lt_striplib
19512
19513# Dependencies to place before the objects being linked to create a
19514# shared library.
19515predep_objects=$lt_predep_objects_GCJ
19516
19517# Dependencies to place after the objects being linked to create a
19518# shared library.
19519postdep_objects=$lt_postdep_objects_GCJ
19520
19521# Dependencies to place before the objects being linked to create a
19522# shared library.
19523predeps=$lt_predeps_GCJ
19524
19525# Dependencies to place after the objects being linked to create a
19526# shared library.
19527postdeps=$lt_postdeps_GCJ
19528
19529# The library search path used internally by the compiler when linking
19530# a shared library.
19531compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19532
19533# Method to check whether dependent libraries are shared objects.
19534deplibs_check_method=$lt_deplibs_check_method
19535
19536# Command to use when deplibs_check_method == file_magic.
19537file_magic_cmd=$lt_file_magic_cmd
19538
19539# Flag that allows shared libraries with undefined symbols to be built.
19540allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19541
19542# Flag that forces no undefined symbols.
19543no_undefined_flag=$lt_no_undefined_flag_GCJ
19544
19545# Commands used to finish a libtool library installation in a directory.
19546finish_cmds=$lt_finish_cmds
19547
19548# Same as above, but a single script fragment to be evaled but not shown.
19549finish_eval=$lt_finish_eval
19550
19551# Take the output of nm and produce a listing of raw symbols and C names.
19552global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19553
19554# Transform the output of nm in a proper C declaration
19555global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19556
19557# Transform the output of nm in a C name address pair
19558global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19559
19560# This is the shared library runtime path variable.
19561runpath_var=$runpath_var
19562
19563# This is the shared library path variable.
19564shlibpath_var=$shlibpath_var
19565
19566# Is shlibpath searched before the hard-coded library search path?
19567shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19568
19569# How to hardcode a shared library path into an executable.
19570hardcode_action=$hardcode_action_GCJ
19571
19572# Whether we should hardcode library paths into libraries.
19573hardcode_into_libs=$hardcode_into_libs
19574
19575# Flag to hardcode \$libdir into a binary during linking.
19576# This must work even if \$libdir does not exist.
19577hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19578
19579# If ld is used when linking, flag to hardcode \$libdir into
19580# a binary during linking. This must work even if \$libdir does
19581# not exist.
19582hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19583
19584# Whether we need a single -rpath flag with a separated argument.
19585hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19586
19587# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19588# resulting binary.
19589hardcode_direct=$hardcode_direct_GCJ
19590
19591# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19592# resulting binary.
19593hardcode_minus_L=$hardcode_minus_L_GCJ
19594
19595# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19596# the resulting binary.
19597hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19598
19599# Set to yes if building a shared library automatically hardcodes DIR into the library
19600# and all subsequent libraries and executables linked against it.
19601hardcode_automatic=$hardcode_automatic_GCJ
19602
19603# Variables whose values should be saved in libtool wrapper scripts and
19604# restored at relink time.
19605variables_saved_for_relink="$variables_saved_for_relink"
19606
19607# Whether libtool must link a program against all its dependency libraries.
19608link_all_deplibs=$link_all_deplibs_GCJ
19609
19610# Compile-time system search path for libraries
19611sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19612
19613# Run-time system search path for libraries
19614sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19615
19616# Fix the shell variable \$srcfile for the compiler.
19617fix_srcfile_path="$fix_srcfile_path_GCJ"
19618
19619# Set to yes if exported symbols are required.
19620always_export_symbols=$always_export_symbols_GCJ
19621
19622# The commands to list exported symbols.
19623export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19624
19625# The commands to extract the exported symbol list from a shared archive.
19626extract_expsyms_cmds=$lt_extract_expsyms_cmds
19627
19628# Symbols that should not be listed in the preloaded symbols.
19629exclude_expsyms=$lt_exclude_expsyms_GCJ
19630
19631# Symbols that must always be exported.
19632include_expsyms=$lt_include_expsyms_GCJ
19633
19634# ### END LIBTOOL TAG CONFIG: $tagname
19635
19636__EOF__
19637
19638
19639else
19640 # If there is no Makefile yet, we rely on a make rule to execute
19641 # `config.status --recheck' to rerun these tests and create the
19642 # libtool script then.
19643 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19644 if test -f "$ltmain_in"; then
19645 test -f Makefile && make "$ltmain"
19646 fi
19647fi
19648
19649
19650ac_ext=c
19651ac_cpp='$CPP $CPPFLAGS'
19652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19654ac_compiler_gnu=$ac_cv_c_compiler_gnu
19655
19656CC="$lt_save_CC"
19657
19658 else
19659 tagname=""
19660 fi
19661 ;;
19662
19663 RC)
19664
19665
19666# Source file extension for RC test sources.
19667ac_ext=rc
19668
19669# Object file extension for compiled RC test sources.
19670objext=o
19671objext_RC=$objext
19672
19673# Code to be used in simple compile tests
19674lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19675
19676# Code to be used in simple link tests
19677lt_simple_link_test_code="$lt_simple_compile_test_code"
19678
19679# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19680
19681# If no C compiler was specified, use CC.
19682LTCC=${LTCC-"$CC"}
19683
19684# If no C compiler flags were specified, use CFLAGS.
19685LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19686
19687# Allow CC to be a program name with arguments.
19688compiler=$CC
19689
19690
19691# save warnings/boilerplate of simple test code
19692ac_outfile=conftest.$ac_objext
19693printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19694eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19695_lt_compiler_boilerplate=`cat conftest.err`
19696$rm conftest*
19697
19698ac_outfile=conftest.$ac_objext
19699printf "$lt_simple_link_test_code" >conftest.$ac_ext
19700eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19701_lt_linker_boilerplate=`cat conftest.err`
19702$rm conftest*
19703
19704
19705# Allow CC to be a program name with arguments.
19706lt_save_CC="$CC"
19707CC=${RC-"windres"}
19708compiler=$CC
19709compiler_RC=$CC
19710for cc_temp in $compiler""; do
19711 case $cc_temp in
19712 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19713 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19714 \-*) ;;
19715 *) break;;
19716 esac
19717done
19718cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19719
19720lt_cv_prog_compiler_c_o_RC=yes
19721
19722# The else clause should only fire when bootstrapping the
19723# libtool distribution, otherwise you forgot to ship ltmain.sh
19724# with your package, and you will get complaints that there are
19725# no rules to generate ltmain.sh.
19726if test -f "$ltmain"; then
19727 # See if we are running on zsh, and set the options which allow our commands through
19728 # without removal of \ escapes.
19729 if test -n "${ZSH_VERSION+set}" ; then
19730 setopt NO_GLOB_SUBST
19731 fi
19732 # Now quote all the things that may contain metacharacters while being
19733 # careful not to overquote the AC_SUBSTed values. We take copies of the
19734 # variables and quote the copies for generation of the libtool script.
19735 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19736 SED SHELL STRIP \
19737 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19738 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19739 deplibs_check_method reload_flag reload_cmds need_locks \
19740 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19741 lt_cv_sys_global_symbol_to_c_name_address \
19742 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19743 old_postinstall_cmds old_postuninstall_cmds \
19744 compiler_RC \
19745 CC_RC \
19746 LD_RC \
19747 lt_prog_compiler_wl_RC \
19748 lt_prog_compiler_pic_RC \
19749 lt_prog_compiler_static_RC \
19750 lt_prog_compiler_no_builtin_flag_RC \
19751 export_dynamic_flag_spec_RC \
19752 thread_safe_flag_spec_RC \
19753 whole_archive_flag_spec_RC \
19754 enable_shared_with_static_runtimes_RC \
19755 old_archive_cmds_RC \
19756 old_archive_from_new_cmds_RC \
19757 predep_objects_RC \
19758 postdep_objects_RC \
19759 predeps_RC \
19760 postdeps_RC \
19761 compiler_lib_search_path_RC \
19762 archive_cmds_RC \
19763 archive_expsym_cmds_RC \
19764 postinstall_cmds_RC \
19765 postuninstall_cmds_RC \
19766 old_archive_from_expsyms_cmds_RC \
19767 allow_undefined_flag_RC \
19768 no_undefined_flag_RC \
19769 export_symbols_cmds_RC \
19770 hardcode_libdir_flag_spec_RC \
19771 hardcode_libdir_flag_spec_ld_RC \
19772 hardcode_libdir_separator_RC \
19773 hardcode_automatic_RC \
19774 module_cmds_RC \
19775 module_expsym_cmds_RC \
19776 lt_cv_prog_compiler_c_o_RC \
19777 exclude_expsyms_RC \
19778 include_expsyms_RC; do
19779
19780 case $var in
19781 old_archive_cmds_RC | \
19782 old_archive_from_new_cmds_RC | \
19783 archive_cmds_RC | \
19784 archive_expsym_cmds_RC | \
19785 module_cmds_RC | \
19786 module_expsym_cmds_RC | \
19787 old_archive_from_expsyms_cmds_RC | \
19788 export_symbols_cmds_RC | \
19789 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19790 postinstall_cmds | postuninstall_cmds | \
19791 old_postinstall_cmds | old_postuninstall_cmds | \
19792 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19793 # Double-quote double-evaled strings.
19794 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19795 ;;
19796 *)
19797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19798 ;;
19799 esac
19800 done
19801
19802 case $lt_echo in
19803 *'\$0 --fallback-echo"')
19804 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19805 ;;
19806 esac
19807
19808cfgfile="$ofile"
19809
19810 cat <<__EOF__ >> "$cfgfile"
19811# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19812
19813# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19814
19815# Shell to use when invoking shell scripts.
19816SHELL=$lt_SHELL
19817
19818# Whether or not to build shared libraries.
19819build_libtool_libs=$enable_shared
19820
19821# Whether or not to build static libraries.
19822build_old_libs=$enable_static
19823
19824# Whether or not to add -lc for building shared libraries.
19825build_libtool_need_lc=$archive_cmds_need_lc_RC
19826
19827# Whether or not to disallow shared libs when runtime libs are static
19828allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19829
19830# Whether or not to optimize for fast installation.
19831fast_install=$enable_fast_install
19832
19833# The host system.
19834host_alias=$host_alias
19835host=$host
19836host_os=$host_os
19837
19838# The build system.
19839build_alias=$build_alias
19840build=$build
19841build_os=$build_os
19842
19843# An echo program that does not interpret backslashes.
19844echo=$lt_echo
19845
19846# The archiver.
19847AR=$lt_AR
19848AR_FLAGS=$lt_AR_FLAGS
19849
19850# A C compiler.
19851LTCC=$lt_LTCC
19852
19853# LTCC compiler flags.
19854LTCFLAGS=$lt_LTCFLAGS
19855
19856# A language-specific compiler.
19857CC=$lt_compiler_RC
19858
19859# Is the compiler the GNU C compiler?
19860with_gcc=$GCC_RC
19861
19862# An ERE matcher.
19863EGREP=$lt_EGREP
19864
19865# The linker used to build libraries.
19866LD=$lt_LD_RC
19867
19868# Whether we need hard or soft links.
19869LN_S=$lt_LN_S
19870
19871# A BSD-compatible nm program.
19872NM=$lt_NM
19873
19874# A symbol stripping program
19875STRIP=$lt_STRIP
19876
19877# Used to examine libraries when file_magic_cmd begins "file"
19878MAGIC_CMD=$MAGIC_CMD
19879
19880# Used on cygwin: DLL creation program.
19881DLLTOOL="$DLLTOOL"
19882
19883# Used on cygwin: object dumper.
19884OBJDUMP="$OBJDUMP"
19885
19886# Used on cygwin: assembler.
19887AS="$AS"
19888
19889# The name of the directory that contains temporary libtool files.
19890objdir=$objdir
19891
19892# How to create reloadable object files.
19893reload_flag=$lt_reload_flag
19894reload_cmds=$lt_reload_cmds
19895
19896# How to pass a linker flag through the compiler.
19897wl=$lt_lt_prog_compiler_wl_RC
19898
19899# Object file suffix (normally "o").
19900objext="$ac_objext"
19901
19902# Old archive suffix (normally "a").
19903libext="$libext"
19904
19905# Shared library suffix (normally ".so").
19906shrext_cmds='$shrext_cmds'
19907
19908# Executable file suffix (normally "").
19909exeext="$exeext"
19910
19911# Additional compiler flags for building library objects.
19912pic_flag=$lt_lt_prog_compiler_pic_RC
19913pic_mode=$pic_mode
19914
19915# What is the maximum length of a command?
19916max_cmd_len=$lt_cv_sys_max_cmd_len
19917
19918# Does compiler simultaneously support -c and -o options?
19919compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19920
19921# Must we lock files when doing compilation?
19922need_locks=$lt_need_locks
19923
19924# Do we need the lib prefix for modules?
19925need_lib_prefix=$need_lib_prefix
19926
19927# Do we need a version for libraries?
19928need_version=$need_version
19929
19930# Whether dlopen is supported.
19931dlopen_support=$enable_dlopen
19932
19933# Whether dlopen of programs is supported.
19934dlopen_self=$enable_dlopen_self
19935
19936# Whether dlopen of statically linked programs is supported.
19937dlopen_self_static=$enable_dlopen_self_static
19938
19939# Compiler flag to prevent dynamic linking.
19940link_static_flag=$lt_lt_prog_compiler_static_RC
19941
19942# Compiler flag to turn off builtin functions.
19943no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19944
19945# Compiler flag to allow reflexive dlopens.
19946export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19947
19948# Compiler flag to generate shared objects directly from archives.
19949whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19950
19951# Compiler flag to generate thread-safe objects.
19952thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19953
19954# Library versioning type.
19955version_type=$version_type
19956
19957# Format of library name prefix.
19958libname_spec=$lt_libname_spec
19959
19960# List of archive names. First name is the real one, the rest are links.
19961# The last name is the one that the linker finds with -lNAME.
19962library_names_spec=$lt_library_names_spec
19963
19964# The coded name of the library, if different from the real name.
19965soname_spec=$lt_soname_spec
19966
19967# Commands used to build and install an old-style archive.
19968RANLIB=$lt_RANLIB
19969old_archive_cmds=$lt_old_archive_cmds_RC
19970old_postinstall_cmds=$lt_old_postinstall_cmds
19971old_postuninstall_cmds=$lt_old_postuninstall_cmds
19972
19973# Create an old-style archive from a shared archive.
19974old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19975
19976# Create a temporary old-style archive to link instead of a shared archive.
19977old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19978
19979# Commands used to build and install a shared archive.
19980archive_cmds=$lt_archive_cmds_RC
19981archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19982postinstall_cmds=$lt_postinstall_cmds
19983postuninstall_cmds=$lt_postuninstall_cmds
19984
19985# Commands used to build a loadable module (assumed same as above if empty)
19986module_cmds=$lt_module_cmds_RC
19987module_expsym_cmds=$lt_module_expsym_cmds_RC
19988
19989# Commands to strip libraries.
19990old_striplib=$lt_old_striplib
19991striplib=$lt_striplib
19992
19993# Dependencies to place before the objects being linked to create a
19994# shared library.
19995predep_objects=$lt_predep_objects_RC
19996
19997# Dependencies to place after the objects being linked to create a
19998# shared library.
19999postdep_objects=$lt_postdep_objects_RC
20000
20001# Dependencies to place before the objects being linked to create a
20002# shared library.
20003predeps=$lt_predeps_RC
20004
20005# Dependencies to place after the objects being linked to create a
20006# shared library.
20007postdeps=$lt_postdeps_RC
20008
20009# The library search path used internally by the compiler when linking
20010# a shared library.
20011compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20012
20013# Method to check whether dependent libraries are shared objects.
20014deplibs_check_method=$lt_deplibs_check_method
20015
20016# Command to use when deplibs_check_method == file_magic.
20017file_magic_cmd=$lt_file_magic_cmd
20018
20019# Flag that allows shared libraries with undefined symbols to be built.
20020allow_undefined_flag=$lt_allow_undefined_flag_RC
20021
20022# Flag that forces no undefined symbols.
20023no_undefined_flag=$lt_no_undefined_flag_RC
20024
20025# Commands used to finish a libtool library installation in a directory.
20026finish_cmds=$lt_finish_cmds
20027
20028# Same as above, but a single script fragment to be evaled but not shown.
20029finish_eval=$lt_finish_eval
20030
20031# Take the output of nm and produce a listing of raw symbols and C names.
20032global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20033
20034# Transform the output of nm in a proper C declaration
20035global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20036
20037# Transform the output of nm in a C name address pair
20038global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20039
20040# This is the shared library runtime path variable.
20041runpath_var=$runpath_var
20042
20043# This is the shared library path variable.
20044shlibpath_var=$shlibpath_var
20045
20046# Is shlibpath searched before the hard-coded library search path?
20047shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20048
20049# How to hardcode a shared library path into an executable.
20050hardcode_action=$hardcode_action_RC
20051
20052# Whether we should hardcode library paths into libraries.
20053hardcode_into_libs=$hardcode_into_libs
20054
20055# Flag to hardcode \$libdir into a binary during linking.
20056# This must work even if \$libdir does not exist.
20057hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20058
20059# If ld is used when linking, flag to hardcode \$libdir into
20060# a binary during linking. This must work even if \$libdir does
20061# not exist.
20062hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20063
20064# Whether we need a single -rpath flag with a separated argument.
20065hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20066
20067# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20068# resulting binary.
20069hardcode_direct=$hardcode_direct_RC
20070
20071# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20072# resulting binary.
20073hardcode_minus_L=$hardcode_minus_L_RC
20074
20075# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20076# the resulting binary.
20077hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20078
20079# Set to yes if building a shared library automatically hardcodes DIR into the library
20080# and all subsequent libraries and executables linked against it.
20081hardcode_automatic=$hardcode_automatic_RC
20082
20083# Variables whose values should be saved in libtool wrapper scripts and
20084# restored at relink time.
20085variables_saved_for_relink="$variables_saved_for_relink"
20086
20087# Whether libtool must link a program against all its dependency libraries.
20088link_all_deplibs=$link_all_deplibs_RC
20089
20090# Compile-time system search path for libraries
20091sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20092
20093# Run-time system search path for libraries
20094sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20095
20096# Fix the shell variable \$srcfile for the compiler.
20097fix_srcfile_path="$fix_srcfile_path_RC"
20098
20099# Set to yes if exported symbols are required.
20100always_export_symbols=$always_export_symbols_RC
20101
20102# The commands to list exported symbols.
20103export_symbols_cmds=$lt_export_symbols_cmds_RC
20104
20105# The commands to extract the exported symbol list from a shared archive.
20106extract_expsyms_cmds=$lt_extract_expsyms_cmds
20107
20108# Symbols that should not be listed in the preloaded symbols.
20109exclude_expsyms=$lt_exclude_expsyms_RC
20110
20111# Symbols that must always be exported.
20112include_expsyms=$lt_include_expsyms_RC
20113
20114# ### END LIBTOOL TAG CONFIG: $tagname
20115
20116__EOF__
20117
20118
20119else
20120 # If there is no Makefile yet, we rely on a make rule to execute
20121 # `config.status --recheck' to rerun these tests and create the
20122 # libtool script then.
20123 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20124 if test -f "$ltmain_in"; then
20125 test -f Makefile && make "$ltmain"
20126 fi
20127fi
20128
20129
20130ac_ext=c
20131ac_cpp='$CPP $CPPFLAGS'
20132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20134ac_compiler_gnu=$ac_cv_c_compiler_gnu
20135
20136CC="$lt_save_CC"
20137
20138 ;;
20139
20140 *)
20141 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20142echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20143 { (exit 1); exit 1; }; }
20144 ;;
20145 esac
20146
20147 # Append the new tag name to the list of available tags.
20148 if test -n "$tagname" ; then
20149 available_tags="$available_tags $tagname"
20150 fi
20151 fi
20152 done
20153 IFS="$lt_save_ifs"
20154
20155 # Now substitute the updated list of available tags.
20156 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20157 mv "${ofile}T" "$ofile"
20158 chmod +x "$ofile"
20159 else
20160 rm -f "${ofile}T"
20161 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20162echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20163 { (exit 1); exit 1; }; }
20164 fi
20165fi
20166
20167
20168
20169# This can be used to rebuild libtool when needed
20170LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20171
20172# Always use our own libtool.
20173LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20174
20175# Prevent multiple expansion
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203ac_header_dirent=no
20204for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20205 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20206{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20207echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20209 echo $ECHO_N "(cached) $ECHO_C" >&6
20210else
20211 cat >conftest.$ac_ext <<_ACEOF
20212/* confdefs.h. */
20213_ACEOF
20214cat confdefs.h >>conftest.$ac_ext
20215cat >>conftest.$ac_ext <<_ACEOF
20216/* end confdefs.h. */
20217#include <sys/types.h>
20218#include <$ac_hdr>
20219
20220int
20221main ()
20222{
20223if ((DIR *) 0)
20224return 0;
20225 ;
20226 return 0;
20227}
20228_ACEOF
20229rm -f conftest.$ac_objext
20230if { (ac_try="$ac_compile"
20231case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20234esac
20235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_compile") 2>conftest.er1
20237 ac_status=$?
20238 grep -v '^ *+' conftest.er1 >conftest.err
20239 rm -f conftest.er1
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } &&
20243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20244 { (case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20247esac
20248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_try") 2>&5
20250 ac_status=$?
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; } &&
20253 { ac_try='test -s conftest.$ac_objext'
20254 { (case "(($ac_try" in
20255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256 *) ac_try_echo=$ac_try;;
20257esac
20258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20259 (eval "$ac_try") 2>&5
20260 ac_status=$?
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; }; then
20263 eval "$as_ac_Header=yes"
20264else
20265 echo "$as_me: failed program was:" >&5
20266sed 's/^/| /' conftest.$ac_ext >&5
20267
20268 eval "$as_ac_Header=no"
20269fi
20270
20271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20272fi
20273ac_res=`eval echo '${'$as_ac_Header'}'`
20274 { echo "$as_me:$LINENO: result: $ac_res" >&5
20275echo "${ECHO_T}$ac_res" >&6; }
20276if test `eval echo '${'$as_ac_Header'}'` = yes; then
20277 cat >>confdefs.h <<_ACEOF
20278#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20279_ACEOF
20280
20281ac_header_dirent=$ac_hdr; break
20282fi
20283
20284done
20285# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20286if test $ac_header_dirent = dirent.h; then
20287 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20288echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20289if test "${ac_cv_search_opendir+set}" = set; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20291else
20292 ac_func_search_save_LIBS=$LIBS
20293cat >conftest.$ac_ext <<_ACEOF
20294/* confdefs.h. */
20295_ACEOF
20296cat confdefs.h >>conftest.$ac_ext
20297cat >>conftest.$ac_ext <<_ACEOF
20298/* end confdefs.h. */
20299
20300/* Override any GCC internal prototype to avoid an error.
20301 Use char because int might match the return type of a GCC
20302 builtin and then its argument prototype would still apply. */
20303#ifdef __cplusplus
20304extern "C"
20305#endif
20306char opendir ();
20307int
20308main ()
20309{
20310return opendir ();
20311 ;
20312 return 0;
20313}
20314_ACEOF
20315for ac_lib in '' dir; do
20316 if test -z "$ac_lib"; then
20317 ac_res="none required"
20318 else
20319 ac_res=-l$ac_lib
20320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20321 fi
20322 rm -f conftest.$ac_objext conftest$ac_exeext
20323if { (ac_try="$ac_link"
20324case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327esac
20328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_link") 2>conftest.er1
20330 ac_status=$?
20331 grep -v '^ *+' conftest.er1 >conftest.err
20332 rm -f conftest.er1
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } &&
20336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20337 { (case "(($ac_try" in
20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339 *) ac_try_echo=$ac_try;;
20340esac
20341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342 (eval "$ac_try") 2>&5
20343 ac_status=$?
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; } &&
20346 { ac_try='test -s conftest$ac_exeext'
20347 { (case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20350esac
20351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_try") 2>&5
20353 ac_status=$?
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20356 ac_cv_search_opendir=$ac_res
20357else
20358 echo "$as_me: failed program was:" >&5
20359sed 's/^/| /' conftest.$ac_ext >&5
20360
20361
20362fi
20363
20364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20365 conftest$ac_exeext
20366 if test "${ac_cv_search_opendir+set}" = set; then
20367 break
20368fi
20369done
20370if test "${ac_cv_search_opendir+set}" = set; then
20371 :
20372else
20373 ac_cv_search_opendir=no
20374fi
20375rm conftest.$ac_ext
20376LIBS=$ac_func_search_save_LIBS
20377fi
20378{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20379echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20380ac_res=$ac_cv_search_opendir
20381if test "$ac_res" != no; then
20382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20383
20384fi
20385
20386else
20387 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20388echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20389if test "${ac_cv_search_opendir+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20391else
20392 ac_func_search_save_LIBS=$LIBS
20393cat >conftest.$ac_ext <<_ACEOF
20394/* confdefs.h. */
20395_ACEOF
20396cat confdefs.h >>conftest.$ac_ext
20397cat >>conftest.$ac_ext <<_ACEOF
20398/* end confdefs.h. */
20399
20400/* Override any GCC internal prototype to avoid an error.
20401 Use char because int might match the return type of a GCC
20402 builtin and then its argument prototype would still apply. */
20403#ifdef __cplusplus
20404extern "C"
20405#endif
20406char opendir ();
20407int
20408main ()
20409{
20410return opendir ();
20411 ;
20412 return 0;
20413}
20414_ACEOF
20415for ac_lib in '' x; do
20416 if test -z "$ac_lib"; then
20417 ac_res="none required"
20418 else
20419 ac_res=-l$ac_lib
20420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20421 fi
20422 rm -f conftest.$ac_objext conftest$ac_exeext
20423if { (ac_try="$ac_link"
20424case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20427esac
20428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_link") 2>conftest.er1
20430 ac_status=$?
20431 grep -v '^ *+' conftest.er1 >conftest.err
20432 rm -f conftest.er1
20433 cat conftest.err >&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } &&
20436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20437 { (case "(($ac_try" in
20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20440esac
20441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442 (eval "$ac_try") 2>&5
20443 ac_status=$?
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); }; } &&
20446 { ac_try='test -s conftest$ac_exeext'
20447 { (case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20450esac
20451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_try") 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 ac_cv_search_opendir=$ac_res
20457else
20458 echo "$as_me: failed program was:" >&5
20459sed 's/^/| /' conftest.$ac_ext >&5
20460
20461
20462fi
20463
20464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20465 conftest$ac_exeext
20466 if test "${ac_cv_search_opendir+set}" = set; then
20467 break
20468fi
20469done
20470if test "${ac_cv_search_opendir+set}" = set; then
20471 :
20472else
20473 ac_cv_search_opendir=no
20474fi
20475rm conftest.$ac_ext
20476LIBS=$ac_func_search_save_LIBS
20477fi
20478{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20479echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20480ac_res=$ac_cv_search_opendir
20481if test "$ac_res" != no; then
20482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20483
20484fi
20485
20486fi
20487
20488# Check whether --enable-ltdl-install was given.
20489if test "${enable_ltdl_install+set}" = set; then
20490 enableval=$enable_ltdl_install;
20491fi
20492
20493
20494
20495
20496if test x"${enable_ltdl_install-no}" != xno; then
20497 INSTALL_LTDL_TRUE=
20498 INSTALL_LTDL_FALSE='#'
20499else
20500 INSTALL_LTDL_TRUE='#'
20501 INSTALL_LTDL_FALSE=
20502fi
20503
20504
20505
20506if test x"${enable_ltdl_convenience-no}" != xno; then
20507 CONVENIENCE_LTDL_TRUE=
20508 CONVENIENCE_LTDL_FALSE='#'
20509else
20510 CONVENIENCE_LTDL_TRUE='#'
20511 CONVENIENCE_LTDL_FALSE=
20512fi
20513
20514
20515
20516{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20517echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
20518if test "${libltdl_cv_shlibext+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20520else
20521
20522module=yes
20523eval libltdl_cv_shlibext=$shrext_cmds
20524
20525fi
20526{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20527echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
20528if test -n "$libltdl_cv_shlibext"; then
20529
20530cat >>confdefs.h <<_ACEOF
20531#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20532_ACEOF
20533
20534fi
20535
20536
20537{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20538echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
20539if test "${libltdl_cv_shlibpath_var+set}" = set; then
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20541else
20542 libltdl_cv_shlibpath_var="$shlibpath_var"
20543fi
20544{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20545echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
20546if test -n "$libltdl_cv_shlibpath_var"; then
20547
20548cat >>confdefs.h <<_ACEOF
20549#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20550_ACEOF
20551
20552fi
20553
20554
20555{ echo "$as_me:$LINENO: checking for the default library search path" >&5
20556echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
20557if test "${libltdl_cv_sys_search_path+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20559else
20560 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20561fi
20562{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20563echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
20564if test -n "$libltdl_cv_sys_search_path"; then
20565 sys_search_path=
20566 for dir in $libltdl_cv_sys_search_path; do
20567 if test -z "$sys_search_path"; then
20568 sys_search_path="$dir"
20569 else
20570 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20571 fi
20572 done
20573
20574cat >>confdefs.h <<_ACEOF
20575#define LTDL_SYSSEARCHPATH "$sys_search_path"
20576_ACEOF
20577
20578fi
20579
20580{ echo "$as_me:$LINENO: checking for objdir" >&5
20581echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
20582if test "${libltdl_cv_objdir+set}" = set; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20584else
20585 libltdl_cv_objdir="$objdir"
20586 if test -n "$objdir"; then
20587 :
20588 else
20589 rm -f .libs 2>/dev/null
20590 mkdir .libs 2>/dev/null
20591 if test -d .libs; then
20592 libltdl_cv_objdir=.libs
20593 else
20594 # MS-DOS does not allow filenames that begin with a dot.
20595 libltdl_cv_objdir=_libs
20596 fi
20597 rmdir .libs 2>/dev/null
20598 fi
20599
20600fi
20601{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20602echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
20603
20604cat >>confdefs.h <<_ACEOF
20605#define LTDL_OBJDIR "$libltdl_cv_objdir/"
20606_ACEOF
20607
20608
20609
20610{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20611echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
20612if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20614else
20615 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20616 libltdl_cv_preloaded_symbols=yes
20617 else
20618 libltdl_cv_preloaded_symbols=no
20619 fi
20620
20621fi
20622{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20623echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
20624if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20625
20626cat >>confdefs.h <<\_ACEOF
20627#define HAVE_PRELOADED_SYMBOLS 1
20628_ACEOF
20629
20630fi
20631
20632LIBADD_DL=
20633
20634ac_ext=c
20635ac_cpp='$CPP $CPPFLAGS'
20636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20638ac_compiler_gnu=$ac_cv_c_compiler_gnu
20639
20640
20641{ echo "$as_me:$LINENO: checking for shl_load" >&5
20642echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20643if test "${ac_cv_func_shl_load+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20645else
20646 cat >conftest.$ac_ext <<_ACEOF
20647/* confdefs.h. */
20648_ACEOF
20649cat confdefs.h >>conftest.$ac_ext
20650cat >>conftest.$ac_ext <<_ACEOF
20651/* end confdefs.h. */
20652/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20654#define shl_load innocuous_shl_load
20655
20656/* System header to define __stub macros and hopefully few prototypes,
20657 which can conflict with char shl_load (); below.
20658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20659 <limits.h> exists even on freestanding compilers. */
20660
20661#ifdef __STDC__
20662# include <limits.h>
20663#else
20664# include <assert.h>
20665#endif
20666
20667#undef shl_load
20668
20669/* Override any GCC internal prototype to avoid an error.
20670 Use char because int might match the return type of a GCC
20671 builtin and then its argument prototype would still apply. */
20672#ifdef __cplusplus
20673extern "C"
20674#endif
20675char shl_load ();
20676/* The GNU C library defines this for functions which it implements
20677 to always fail with ENOSYS. Some functions are actually named
20678 something starting with __ and the normal name is an alias. */
20679#if defined __stub_shl_load || defined __stub___shl_load
20680choke me
20681#endif
20682
20683int
20684main ()
20685{
20686return shl_load ();
20687 ;
20688 return 0;
20689}
20690_ACEOF
20691rm -f conftest.$ac_objext conftest$ac_exeext
20692if { (ac_try="$ac_link"
20693case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20696esac
20697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_link") 2>conftest.er1
20699 ac_status=$?
20700 grep -v '^ *+' conftest.er1 >conftest.err
20701 rm -f conftest.er1
20702 cat conftest.err >&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } &&
20705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20706 { (case "(($ac_try" in
20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20709esac
20710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_try") 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; } &&
20715 { ac_try='test -s conftest$ac_exeext'
20716 { (case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20719esac
20720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_try") 2>&5
20722 ac_status=$?
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 ac_cv_func_shl_load=yes
20726else
20727 echo "$as_me: failed program was:" >&5
20728sed 's/^/| /' conftest.$ac_ext >&5
20729
20730 ac_cv_func_shl_load=no
20731fi
20732
20733rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20734 conftest$ac_exeext conftest.$ac_ext
20735fi
20736{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20737echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20738if test $ac_cv_func_shl_load = yes; then
20739
20740cat >>confdefs.h <<\_ACEOF
20741#define HAVE_SHL_LOAD 1
20742_ACEOF
20743
20744else
20745 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20746echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20747if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20749else
20750 ac_check_lib_save_LIBS=$LIBS
20751LIBS="-ldld $LIBS"
20752cat >conftest.$ac_ext <<_ACEOF
20753/* confdefs.h. */
20754_ACEOF
20755cat confdefs.h >>conftest.$ac_ext
20756cat >>conftest.$ac_ext <<_ACEOF
20757/* end confdefs.h. */
20758
20759/* Override any GCC internal prototype to avoid an error.
20760 Use char because int might match the return type of a GCC
20761 builtin and then its argument prototype would still apply. */
20762#ifdef __cplusplus
20763extern "C"
20764#endif
20765char shl_load ();
20766int
20767main ()
20768{
20769return shl_load ();
20770 ;
20771 return 0;
20772}
20773_ACEOF
20774rm -f conftest.$ac_objext conftest$ac_exeext
20775if { (ac_try="$ac_link"
20776case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779esac
20780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_link") 2>conftest.er1
20782 ac_status=$?
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } &&
20788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20789 { (case "(($ac_try" in
20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20792esac
20793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_try") 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try='test -s conftest$ac_exeext'
20799 { (case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20802esac
20803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_try") 2>&5
20805 ac_status=$?
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
20808 ac_cv_lib_dld_shl_load=yes
20809else
20810 echo "$as_me: failed program was:" >&5
20811sed 's/^/| /' conftest.$ac_ext >&5
20812
20813 ac_cv_lib_dld_shl_load=no
20814fi
20815
20816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20817 conftest$ac_exeext conftest.$ac_ext
20818LIBS=$ac_check_lib_save_LIBS
20819fi
20820{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20821echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20822if test $ac_cv_lib_dld_shl_load = yes; then
20823
20824cat >>confdefs.h <<\_ACEOF
20825#define HAVE_SHL_LOAD 1
20826_ACEOF
20827
20828 LIBADD_DL="$LIBADD_DL -ldld"
20829else
20830 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20831echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20832if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20833 echo $ECHO_N "(cached) $ECHO_C" >&6
20834else
20835 ac_check_lib_save_LIBS=$LIBS
20836LIBS="-ldl $LIBS"
20837cat >conftest.$ac_ext <<_ACEOF
20838/* confdefs.h. */
20839_ACEOF
20840cat confdefs.h >>conftest.$ac_ext
20841cat >>conftest.$ac_ext <<_ACEOF
20842/* end confdefs.h. */
20843
20844/* Override any GCC internal prototype to avoid an error.
20845 Use char because int might match the return type of a GCC
20846 builtin and then its argument prototype would still apply. */
20847#ifdef __cplusplus
20848extern "C"
20849#endif
20850char dlopen ();
20851int
20852main ()
20853{
20854return dlopen ();
20855 ;
20856 return 0;
20857}
20858_ACEOF
20859rm -f conftest.$ac_objext conftest$ac_exeext
20860if { (ac_try="$ac_link"
20861case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20864esac
20865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_link") 2>conftest.er1
20867 ac_status=$?
20868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } &&
20873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20874 { (case "(($ac_try" in
20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20877esac
20878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879 (eval "$ac_try") 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; } &&
20883 { ac_try='test -s conftest$ac_exeext'
20884 { (case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20887esac
20888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_try") 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; }; then
20893 ac_cv_lib_dl_dlopen=yes
20894else
20895 echo "$as_me: failed program was:" >&5
20896sed 's/^/| /' conftest.$ac_ext >&5
20897
20898 ac_cv_lib_dl_dlopen=no
20899fi
20900
20901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20902 conftest$ac_exeext conftest.$ac_ext
20903LIBS=$ac_check_lib_save_LIBS
20904fi
20905{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20906echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20907if test $ac_cv_lib_dl_dlopen = yes; then
20908
20909cat >>confdefs.h <<\_ACEOF
20910#define HAVE_LIBDL 1
20911_ACEOF
20912
20913 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20914else
20915 cat >conftest.$ac_ext <<_ACEOF
20916/* confdefs.h. */
20917_ACEOF
20918cat confdefs.h >>conftest.$ac_ext
20919cat >>conftest.$ac_ext <<_ACEOF
20920/* end confdefs.h. */
20921#if HAVE_DLFCN_H
20922# include <dlfcn.h>
20923#endif
20924
20925int
20926main ()
20927{
20928dlopen(0, 0);
20929 ;
20930 return 0;
20931}
20932_ACEOF
20933rm -f conftest.$ac_objext conftest$ac_exeext
20934if { (ac_try="$ac_link"
20935case "(($ac_try" in
20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20938esac
20939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_link") 2>conftest.er1
20941 ac_status=$?
20942 grep -v '^ *+' conftest.er1 >conftest.err
20943 rm -f conftest.er1
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } &&
20947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20948 { (case "(($ac_try" in
20949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950 *) ac_try_echo=$ac_try;;
20951esac
20952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953 (eval "$ac_try") 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; } &&
20957 { ac_try='test -s conftest$ac_exeext'
20958 { (case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20961esac
20962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963 (eval "$ac_try") 2>&5
20964 ac_status=$?
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; }; then
20967
20968cat >>confdefs.h <<\_ACEOF
20969#define HAVE_LIBDL 1
20970_ACEOF
20971 libltdl_cv_func_dlopen="yes"
20972else
20973 echo "$as_me: failed program was:" >&5
20974sed 's/^/| /' conftest.$ac_ext >&5
20975
20976 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20977echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20978if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20980else
20981 ac_check_lib_save_LIBS=$LIBS
20982LIBS="-lsvld $LIBS"
20983cat >conftest.$ac_ext <<_ACEOF
20984/* confdefs.h. */
20985_ACEOF
20986cat confdefs.h >>conftest.$ac_ext
20987cat >>conftest.$ac_ext <<_ACEOF
20988/* end confdefs.h. */
20989
20990/* Override any GCC internal prototype to avoid an error.
20991 Use char because int might match the return type of a GCC
20992 builtin and then its argument prototype would still apply. */
20993#ifdef __cplusplus
20994extern "C"
20995#endif
20996char dlopen ();
20997int
20998main ()
20999{
21000return dlopen ();
21001 ;
21002 return 0;
21003}
21004_ACEOF
21005rm -f conftest.$ac_objext conftest$ac_exeext
21006if { (ac_try="$ac_link"
21007case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21010esac
21011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_link") 2>conftest.er1
21013 ac_status=$?
21014 grep -v '^ *+' conftest.er1 >conftest.err
21015 rm -f conftest.er1
21016 cat conftest.err >&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } &&
21019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21020 { (case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21023esac
21024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_try") 2>&5
21026 ac_status=$?
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; } &&
21029 { ac_try='test -s conftest$ac_exeext'
21030 { (case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21033esac
21034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_try") 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; }; then
21039 ac_cv_lib_svld_dlopen=yes
21040else
21041 echo "$as_me: failed program was:" >&5
21042sed 's/^/| /' conftest.$ac_ext >&5
21043
21044 ac_cv_lib_svld_dlopen=no
21045fi
21046
21047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21048 conftest$ac_exeext conftest.$ac_ext
21049LIBS=$ac_check_lib_save_LIBS
21050fi
21051{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21052echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
21053if test $ac_cv_lib_svld_dlopen = yes; then
21054
21055cat >>confdefs.h <<\_ACEOF
21056#define HAVE_LIBDL 1
21057_ACEOF
21058
21059 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
21060else
21061 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21062echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
21063if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21064 echo $ECHO_N "(cached) $ECHO_C" >&6
21065else
21066 ac_check_lib_save_LIBS=$LIBS
21067LIBS="-ldld $LIBS"
21068cat >conftest.$ac_ext <<_ACEOF
21069/* confdefs.h. */
21070_ACEOF
21071cat confdefs.h >>conftest.$ac_ext
21072cat >>conftest.$ac_ext <<_ACEOF
21073/* end confdefs.h. */
21074
21075/* Override any GCC internal prototype to avoid an error.
21076 Use char because int might match the return type of a GCC
21077 builtin and then its argument prototype would still apply. */
21078#ifdef __cplusplus
21079extern "C"
21080#endif
21081char dld_link ();
21082int
21083main ()
21084{
21085return dld_link ();
21086 ;
21087 return 0;
21088}
21089_ACEOF
21090rm -f conftest.$ac_objext conftest$ac_exeext
21091if { (ac_try="$ac_link"
21092case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21095esac
21096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_link") 2>conftest.er1
21098 ac_status=$?
21099 grep -v '^ *+' conftest.er1 >conftest.err
21100 rm -f conftest.er1
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } &&
21104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21105 { (case "(($ac_try" in
21106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107 *) ac_try_echo=$ac_try;;
21108esac
21109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110 (eval "$ac_try") 2>&5
21111 ac_status=$?
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; } &&
21114 { ac_try='test -s conftest$ac_exeext'
21115 { (case "(($ac_try" in
21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117 *) ac_try_echo=$ac_try;;
21118esac
21119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120 (eval "$ac_try") 2>&5
21121 ac_status=$?
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; }; then
21124 ac_cv_lib_dld_dld_link=yes
21125else
21126 echo "$as_me: failed program was:" >&5
21127sed 's/^/| /' conftest.$ac_ext >&5
21128
21129 ac_cv_lib_dld_dld_link=no
21130fi
21131
21132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21133 conftest$ac_exeext conftest.$ac_ext
21134LIBS=$ac_check_lib_save_LIBS
21135fi
21136{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21137echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
21138if test $ac_cv_lib_dld_dld_link = yes; then
21139
21140cat >>confdefs.h <<\_ACEOF
21141#define HAVE_DLD 1
21142_ACEOF
21143
21144 LIBADD_DL="$LIBADD_DL -ldld"
21145else
21146 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
21147echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
21148if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21150else
21151 cat >conftest.$ac_ext <<_ACEOF
21152/* confdefs.h. */
21153_ACEOF
21154cat confdefs.h >>conftest.$ac_ext
21155cat >>conftest.$ac_ext <<_ACEOF
21156/* end confdefs.h. */
21157/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
21158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21159#define _dyld_func_lookup innocuous__dyld_func_lookup
21160
21161/* System header to define __stub macros and hopefully few prototypes,
21162 which can conflict with char _dyld_func_lookup (); below.
21163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21164 <limits.h> exists even on freestanding compilers. */
21165
21166#ifdef __STDC__
21167# include <limits.h>
21168#else
21169# include <assert.h>
21170#endif
21171
21172#undef _dyld_func_lookup
21173
21174/* Override any GCC internal prototype to avoid an error.
21175 Use char because int might match the return type of a GCC
21176 builtin and then its argument prototype would still apply. */
21177#ifdef __cplusplus
21178extern "C"
21179#endif
21180char _dyld_func_lookup ();
21181/* The GNU C library defines this for functions which it implements
21182 to always fail with ENOSYS. Some functions are actually named
21183 something starting with __ and the normal name is an alias. */
21184#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
21185choke me
21186#endif
21187
21188int
21189main ()
21190{
21191return _dyld_func_lookup ();
21192 ;
21193 return 0;
21194}
21195_ACEOF
21196rm -f conftest.$ac_objext conftest$ac_exeext
21197if { (ac_try="$ac_link"
21198case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21201esac
21202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_link") 2>conftest.er1
21204 ac_status=$?
21205 grep -v '^ *+' conftest.er1 >conftest.err
21206 rm -f conftest.er1
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } &&
21210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21211 { (case "(($ac_try" in
21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213 *) ac_try_echo=$ac_try;;
21214esac
21215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216 (eval "$ac_try") 2>&5
21217 ac_status=$?
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; } &&
21220 { ac_try='test -s conftest$ac_exeext'
21221 { (case "(($ac_try" in
21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21224esac
21225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226 (eval "$ac_try") 2>&5
21227 ac_status=$?
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230 ac_cv_func__dyld_func_lookup=yes
21231else
21232 echo "$as_me: failed program was:" >&5
21233sed 's/^/| /' conftest.$ac_ext >&5
21234
21235 ac_cv_func__dyld_func_lookup=no
21236fi
21237
21238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21239 conftest$ac_exeext conftest.$ac_ext
21240fi
21241{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
21242echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
21243if test $ac_cv_func__dyld_func_lookup = yes; then
21244
21245cat >>confdefs.h <<\_ACEOF
21246#define HAVE_DYLD 1
21247_ACEOF
21248
21249fi
21250
21251
21252fi
21253
21254
21255fi
21256
21257
21258fi
21259
21260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21261 conftest$ac_exeext conftest.$ac_ext
21262
21263fi
21264
21265
21266fi
21267
21268
21269fi
21270
21271
21272if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
21273then
21274 lt_save_LIBS="$LIBS"
21275 LIBS="$LIBS $LIBADD_DL"
21276
21277for ac_func in dlerror
21278do
21279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21280{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21282if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21284else
21285 cat >conftest.$ac_ext <<_ACEOF
21286/* confdefs.h. */
21287_ACEOF
21288cat confdefs.h >>conftest.$ac_ext
21289cat >>conftest.$ac_ext <<_ACEOF
21290/* end confdefs.h. */
21291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21293#define $ac_func innocuous_$ac_func
21294
21295/* System header to define __stub macros and hopefully few prototypes,
21296 which can conflict with char $ac_func (); below.
21297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21298 <limits.h> exists even on freestanding compilers. */
21299
21300#ifdef __STDC__
21301# include <limits.h>
21302#else
21303# include <assert.h>
21304#endif
21305
21306#undef $ac_func
21307
21308/* Override any GCC internal prototype to avoid an error.
21309 Use char because int might match the return type of a GCC
21310 builtin and then its argument prototype would still apply. */
21311#ifdef __cplusplus
21312extern "C"
21313#endif
21314char $ac_func ();
21315/* The GNU C library defines this for functions which it implements
21316 to always fail with ENOSYS. Some functions are actually named
21317 something starting with __ and the normal name is an alias. */
21318#if defined __stub_$ac_func || defined __stub___$ac_func
21319choke me
21320#endif
21321
21322int
21323main ()
21324{
21325return $ac_func ();
21326 ;
21327 return 0;
21328}
21329_ACEOF
21330rm -f conftest.$ac_objext conftest$ac_exeext
21331if { (ac_try="$ac_link"
21332case "(($ac_try" in
21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21335esac
21336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337 (eval "$ac_link") 2>conftest.er1
21338 ac_status=$?
21339 grep -v '^ *+' conftest.er1 >conftest.err
21340 rm -f conftest.er1
21341 cat conftest.err >&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } &&
21344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21345 { (case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21348esac
21349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350 (eval "$ac_try") 2>&5
21351 ac_status=$?
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); }; } &&
21354 { ac_try='test -s conftest$ac_exeext'
21355 { (case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21358esac
21359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_try") 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 eval "$as_ac_var=yes"
21365else
21366 echo "$as_me: failed program was:" >&5
21367sed 's/^/| /' conftest.$ac_ext >&5
21368
21369 eval "$as_ac_var=no"
21370fi
21371
21372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21373 conftest$ac_exeext conftest.$ac_ext
21374fi
21375ac_res=`eval echo '${'$as_ac_var'}'`
21376 { echo "$as_me:$LINENO: result: $ac_res" >&5
21377echo "${ECHO_T}$ac_res" >&6; }
21378if test `eval echo '${'$as_ac_var'}'` = yes; then
21379 cat >>confdefs.h <<_ACEOF
21380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21381_ACEOF
21382
21383fi
21384done
21385
21386 LIBS="$lt_save_LIBS"
21387fi
21388ac_ext=c
21389ac_cpp='$CPP $CPPFLAGS'
21390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21392ac_compiler_gnu=$ac_cv_c_compiler_gnu
21393
21394
21395
21396{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
21397echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
21398if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21399 echo $ECHO_N "(cached) $ECHO_C" >&6
21400else
21401 ac_cv_sys_symbol_underscore=no
21402 cat > conftest.$ac_ext <<EOF
21403void nm_test_func(){}
21404int main(){nm_test_func;return 0;}
21405EOF
21406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21407 (eval $ac_compile) 2>&5
21408 ac_status=$?
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; then
21411 # Now try to grab the symbols.
21412 ac_nlist=conftest.nm
21413 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
21414 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21415 ac_status=$?
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && test -s "$ac_nlist"; then
21418 # See whether the symbols have a leading underscore.
21419 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21420 ac_cv_sys_symbol_underscore=yes
21421 else
21422 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21423 :
21424 else
21425 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21426 fi
21427 fi
21428 else
21429 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21430 fi
21431 else
21432 echo "configure: failed program was:" >&5
21433 cat conftest.c >&5
21434 fi
21435 rm -rf conftest*
21436
21437fi
21438{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
21439echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
21440
21441
21442if test x"$ac_cv_sys_symbol_underscore" = xyes; then
21443 if test x"$libltdl_cv_func_dlopen" = xyes ||
21444 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21445 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
21446echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
21447if test "${libltdl_cv_need_uscore+set}" = set; then
21448 echo $ECHO_N "(cached) $ECHO_C" >&6
21449else
21450 libltdl_cv_need_uscore=unknown
21451 save_LIBS="$LIBS"
21452 LIBS="$LIBS $LIBADD_DL"
21453 if test "$cross_compiling" = yes; then :
21454 libltdl_cv_need_uscore=cross
21455else
21456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21457 lt_status=$lt_dlunknown
21458 cat > conftest.$ac_ext <<EOF
21459#line 21459 "configure"
21460#include "confdefs.h"
21461
21462#if HAVE_DLFCN_H
21463#include <dlfcn.h>
21464#endif
21465
21466#include <stdio.h>
21467
21468#ifdef RTLD_GLOBAL
21469# define LT_DLGLOBAL RTLD_GLOBAL
21470#else
21471# ifdef DL_GLOBAL
21472# define LT_DLGLOBAL DL_GLOBAL
21473# else
21474# define LT_DLGLOBAL 0
21475# endif
21476#endif
21477
21478/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21479 find out it does not work in some platform. */
21480#ifndef LT_DLLAZY_OR_NOW
21481# ifdef RTLD_LAZY
21482# define LT_DLLAZY_OR_NOW RTLD_LAZY
21483# else
21484# ifdef DL_LAZY
21485# define LT_DLLAZY_OR_NOW DL_LAZY
21486# else
21487# ifdef RTLD_NOW
21488# define LT_DLLAZY_OR_NOW RTLD_NOW
21489# else
21490# ifdef DL_NOW
21491# define LT_DLLAZY_OR_NOW DL_NOW
21492# else
21493# define LT_DLLAZY_OR_NOW 0
21494# endif
21495# endif
21496# endif
21497# endif
21498#endif
21499
21500#ifdef __cplusplus
21501extern "C" void exit (int);
21502#endif
21503
21504void fnord() { int i=42;}
21505int main ()
21506{
21507 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21508 int status = $lt_dlunknown;
21509
21510 if (self)
21511 {
21512 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21513 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21514 /* dlclose (self); */
21515 }
21516 else
21517 puts (dlerror ());
21518
21519 exit (status);
21520}
21521EOF
21522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21523 (eval $ac_link) 2>&5
21524 ac_status=$?
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21527 (./conftest; exit; ) >&5 2>/dev/null
21528 lt_status=$?
21529 case x$lt_status in
21530 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21531 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21532 x$lt_dlunknown|x*) ;;
21533 esac
21534 else :
21535 # compilation failed
21536
21537 fi
21538fi
21539rm -fr conftest*
21540
21541 LIBS="$save_LIBS"
21542
21543fi
21544{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21545echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
21546 fi
21547fi
21548
21549if test x"$libltdl_cv_need_uscore" = xyes; then
21550
21551cat >>confdefs.h <<\_ACEOF
21552#define NEED_USCORE 1
21553_ACEOF
21554
21555fi
21556
21557
21558{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21559echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
21560if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21561 echo $ECHO_N "(cached) $ECHO_C" >&6
21562else
21563 # PORTME does your system automatically load deplibs for dlopen?
21564 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21565 # For now, we just catch OSes we know something about -- in the
21566 # future, we'll try test this programmatically.
21567 libltdl_cv_sys_dlopen_deplibs=unknown
21568 case "$host_os" in
21569 aix3*|aix4.1.*|aix4.2.*)
21570 # Unknown whether this is true for these versions of AIX, but
21571 # we want this `case' here to explicitly catch those versions.
21572 libltdl_cv_sys_dlopen_deplibs=unknown
21573 ;;
21574 aix[45]*)
21575 libltdl_cv_sys_dlopen_deplibs=yes
21576 ;;
21577 darwin*)
21578 # Assuming the user has installed a libdl from somewhere, this is true
21579 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21580 libltdl_cv_sys_dlopen_deplibs=yes
21581 ;;
21582 gnu* | linux* | k*bsd*-gnu)
21583 # GNU and its variants, using gnu ld.so (Glibc)
21584 libltdl_cv_sys_dlopen_deplibs=yes
21585 ;;
21586 hpux10*|hpux11*)
21587 libltdl_cv_sys_dlopen_deplibs=yes
21588 ;;
21589 interix*)
21590 libltdl_cv_sys_dlopen_deplibs=yes
21591 ;;
21592 irix[12345]*|irix6.[01]*)
21593 # Catch all versions of IRIX before 6.2, and indicate that we don't
21594 # know how it worked for any of those versions.
21595 libltdl_cv_sys_dlopen_deplibs=unknown
21596 ;;
21597 irix*)
21598 # The case above catches anything before 6.2, and it's known that
21599 # at 6.2 and later dlopen does load deplibs.
21600 libltdl_cv_sys_dlopen_deplibs=yes
21601 ;;
21602 netbsd* | netbsdelf*-gnu)
21603 libltdl_cv_sys_dlopen_deplibs=yes
21604 ;;
21605 openbsd*)
21606 libltdl_cv_sys_dlopen_deplibs=yes
21607 ;;
21608 osf[1234]*)
21609 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21610 # it did *not* use an RPATH in a shared library to find objects the
21611 # library depends on, so we explictly say `no'.
21612 libltdl_cv_sys_dlopen_deplibs=no
21613 ;;
21614 osf5.0|osf5.0a|osf5.1)
21615 # dlopen *does* load deplibs and with the right loader patch applied
21616 # it even uses RPATH in a shared library to search for shared objects
21617 # that the library depends on, but there's no easy way to know if that
21618 # patch is installed. Since this is the case, all we can really
21619 # say is unknown -- it depends on the patch being installed. If
21620 # it is, this changes to `yes'. Without it, it would be `no'.
21621 libltdl_cv_sys_dlopen_deplibs=unknown
21622 ;;
21623 osf*)
21624 # the two cases above should catch all versions of osf <= 5.1. Read
21625 # the comments above for what we know about them.
21626 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21627 # is used to find them so we can finally say `yes'.
21628 libltdl_cv_sys_dlopen_deplibs=yes
21629 ;;
21630 solaris*)
21631 libltdl_cv_sys_dlopen_deplibs=yes
21632 ;;
21633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21634 libltdl_cv_sys_dlopen_deplibs=yes
21635 ;;
21636 esac
21637
21638fi
21639{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21640echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
21641if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21642
21643cat >>confdefs.h <<\_ACEOF
21644#define LTDL_DLOPEN_DEPLIBS 1
21645_ACEOF
21646
21647fi
21648
21649
21650for ac_header in argz.h
21651do
21652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21658fi
21659ac_res=`eval echo '${'$as_ac_Header'}'`
21660 { echo "$as_me:$LINENO: result: $ac_res" >&5
21661echo "${ECHO_T}$ac_res" >&6; }
21662else
21663 # Is the header compilable?
21664{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21665echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21666cat >conftest.$ac_ext <<_ACEOF
21667/* confdefs.h. */
21668_ACEOF
21669cat confdefs.h >>conftest.$ac_ext
21670cat >>conftest.$ac_ext <<_ACEOF
21671/* end confdefs.h. */
21672$ac_includes_default
21673#include <$ac_header>
21674_ACEOF
21675rm -f conftest.$ac_objext
21676if { (ac_try="$ac_compile"
21677case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21680esac
21681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682 (eval "$ac_compile") 2>conftest.er1
21683 ac_status=$?
21684 grep -v '^ *+' conftest.er1 >conftest.err
21685 rm -f conftest.er1
21686 cat conftest.err >&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } &&
21689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21690 { (case "(($ac_try" in
21691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692 *) ac_try_echo=$ac_try;;
21693esac
21694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21695 (eval "$ac_try") 2>&5
21696 ac_status=$?
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); }; } &&
21699 { ac_try='test -s conftest.$ac_objext'
21700 { (case "(($ac_try" in
21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21703esac
21704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_try") 2>&5
21706 ac_status=$?
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; }; then
21709 ac_header_compiler=yes
21710else
21711 echo "$as_me: failed program was:" >&5
21712sed 's/^/| /' conftest.$ac_ext >&5
21713
21714 ac_header_compiler=no
21715fi
21716
21717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21718{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21719echo "${ECHO_T}$ac_header_compiler" >&6; }
21720
21721# Is the header present?
21722{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21724cat >conftest.$ac_ext <<_ACEOF
21725/* confdefs.h. */
21726_ACEOF
21727cat confdefs.h >>conftest.$ac_ext
21728cat >>conftest.$ac_ext <<_ACEOF
21729/* end confdefs.h. */
21730#include <$ac_header>
21731_ACEOF
21732if { (ac_try="$ac_cpp conftest.$ac_ext"
21733case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21736esac
21737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21739 ac_status=$?
21740 grep -v '^ *+' conftest.er1 >conftest.err
21741 rm -f conftest.er1
21742 cat conftest.err >&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } >/dev/null; then
21745 if test -s conftest.err; then
21746 ac_cpp_err=$ac_c_preproc_warn_flag
21747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21748 else
21749 ac_cpp_err=
21750 fi
21751else
21752 ac_cpp_err=yes
21753fi
21754if test -z "$ac_cpp_err"; then
21755 ac_header_preproc=yes
21756else
21757 echo "$as_me: failed program was:" >&5
21758sed 's/^/| /' conftest.$ac_ext >&5
21759
21760 ac_header_preproc=no
21761fi
21762
21763rm -f conftest.err conftest.$ac_ext
21764{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21765echo "${ECHO_T}$ac_header_preproc" >&6; }
21766
21767# So? What about this header?
21768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21769 yes:no: )
21770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21771echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21773echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21774 ac_header_preproc=yes
21775 ;;
21776 no:yes:* )
21777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21778echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21780echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21782echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21784echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21786echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21788echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21789 ( cat <<\_ASBOX
21790## ---------------------------------- ##
21791## Report this to bug-libtool@gnu.org ##
21792## ---------------------------------- ##
21793_ASBOX
21794 ) | sed "s/^/$as_me: WARNING: /" >&2
21795 ;;
21796esac
21797{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21800 echo $ECHO_N "(cached) $ECHO_C" >&6
21801else
21802 eval "$as_ac_Header=\$ac_header_preproc"
21803fi
21804ac_res=`eval echo '${'$as_ac_Header'}'`
21805 { echo "$as_me:$LINENO: result: $ac_res" >&5
21806echo "${ECHO_T}$ac_res" >&6; }
21807
21808fi
21809if test `eval echo '${'$as_ac_Header'}'` = yes; then
21810 cat >>confdefs.h <<_ACEOF
21811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21812_ACEOF
21813
21814fi
21815
21816done
21817
21818
21819{ echo "$as_me:$LINENO: checking for error_t" >&5
21820echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
21821if test "${ac_cv_type_error_t+set}" = set; then
21822 echo $ECHO_N "(cached) $ECHO_C" >&6
21823else
21824 cat >conftest.$ac_ext <<_ACEOF
21825/* confdefs.h. */
21826_ACEOF
21827cat confdefs.h >>conftest.$ac_ext
21828cat >>conftest.$ac_ext <<_ACEOF
21829/* end confdefs.h. */
21830#if HAVE_ARGZ_H
21831# include <argz.h>
21832#endif
21833
21834typedef error_t ac__type_new_;
21835int
21836main ()
21837{
21838if ((ac__type_new_ *) 0)
21839 return 0;
21840if (sizeof (ac__type_new_))
21841 return 0;
21842 ;
21843 return 0;
21844}
21845_ACEOF
21846rm -f conftest.$ac_objext
21847if { (ac_try="$ac_compile"
21848case "(($ac_try" in
21849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850 *) ac_try_echo=$ac_try;;
21851esac
21852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21853 (eval "$ac_compile") 2>conftest.er1
21854 ac_status=$?
21855 grep -v '^ *+' conftest.er1 >conftest.err
21856 rm -f conftest.er1
21857 cat conftest.err >&5
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); } &&
21860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21861 { (case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21864esac
21865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_try") 2>&5
21867 ac_status=$?
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); }; } &&
21870 { ac_try='test -s conftest.$ac_objext'
21871 { (case "(($ac_try" in
21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21874esac
21875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876 (eval "$ac_try") 2>&5
21877 ac_status=$?
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); }; }; then
21880 ac_cv_type_error_t=yes
21881else
21882 echo "$as_me: failed program was:" >&5
21883sed 's/^/| /' conftest.$ac_ext >&5
21884
21885 ac_cv_type_error_t=no
21886fi
21887
21888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21889fi
21890{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21891echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
21892if test $ac_cv_type_error_t = yes; then
21893
21894cat >>confdefs.h <<_ACEOF
21895#define HAVE_ERROR_T 1
21896_ACEOF
21897
21898
21899else
21900
21901cat >>confdefs.h <<\_ACEOF
21902#define error_t int
21903_ACEOF
21904
21905fi
21906
21907
21908
21909
21910
21911
21912
21913for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21914do
21915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21916{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21918if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21919 echo $ECHO_N "(cached) $ECHO_C" >&6
21920else
21921 cat >conftest.$ac_ext <<_ACEOF
21922/* confdefs.h. */
21923_ACEOF
21924cat confdefs.h >>conftest.$ac_ext
21925cat >>conftest.$ac_ext <<_ACEOF
21926/* end confdefs.h. */
21927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21929#define $ac_func innocuous_$ac_func
21930
21931/* System header to define __stub macros and hopefully few prototypes,
21932 which can conflict with char $ac_func (); below.
21933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21934 <limits.h> exists even on freestanding compilers. */
21935
21936#ifdef __STDC__
21937# include <limits.h>
21938#else
21939# include <assert.h>
21940#endif
21941
21942#undef $ac_func
21943
21944/* Override any GCC internal prototype to avoid an error.
21945 Use char because int might match the return type of a GCC
21946 builtin and then its argument prototype would still apply. */
21947#ifdef __cplusplus
21948extern "C"
21949#endif
21950char $ac_func ();
21951/* The GNU C library defines this for functions which it implements
21952 to always fail with ENOSYS. Some functions are actually named
21953 something starting with __ and the normal name is an alias. */
21954#if defined __stub_$ac_func || defined __stub___$ac_func
21955choke me
21956#endif
21957
21958int
21959main ()
21960{
21961return $ac_func ();
21962 ;
21963 return 0;
21964}
21965_ACEOF
21966rm -f conftest.$ac_objext conftest$ac_exeext
21967if { (ac_try="$ac_link"
21968case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21971esac
21972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_link") 2>conftest.er1
21974 ac_status=$?
21975 grep -v '^ *+' conftest.er1 >conftest.err
21976 rm -f conftest.er1
21977 cat conftest.err >&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } &&
21980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21981 { (case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21984esac
21985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_try") 2>&5
21987 ac_status=$?
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); }; } &&
21990 { ac_try='test -s conftest$ac_exeext'
21991 { (case "(($ac_try" in
21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993 *) ac_try_echo=$ac_try;;
21994esac
21995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996 (eval "$ac_try") 2>&5
21997 ac_status=$?
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; }; then
22000 eval "$as_ac_var=yes"
22001else
22002 echo "$as_me: failed program was:" >&5
22003sed 's/^/| /' conftest.$ac_ext >&5
22004
22005 eval "$as_ac_var=no"
22006fi
22007
22008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22009 conftest$ac_exeext conftest.$ac_ext
22010fi
22011ac_res=`eval echo '${'$as_ac_var'}'`
22012 { echo "$as_me:$LINENO: result: $ac_res" >&5
22013echo "${ECHO_T}$ac_res" >&6; }
22014if test `eval echo '${'$as_ac_var'}'` = yes; then
22015 cat >>confdefs.h <<_ACEOF
22016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22017_ACEOF
22018
22019fi
22020done
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
22050 stdio.h unistd.h
22051do
22052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22058fi
22059ac_res=`eval echo '${'$as_ac_Header'}'`
22060 { echo "$as_me:$LINENO: result: $ac_res" >&5
22061echo "${ECHO_T}$ac_res" >&6; }
22062else
22063 # Is the header compilable?
22064{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22066cat >conftest.$ac_ext <<_ACEOF
22067/* confdefs.h. */
22068_ACEOF
22069cat confdefs.h >>conftest.$ac_ext
22070cat >>conftest.$ac_ext <<_ACEOF
22071/* end confdefs.h. */
22072$ac_includes_default
22073#include <$ac_header>
22074_ACEOF
22075rm -f conftest.$ac_objext
22076if { (ac_try="$ac_compile"
22077case "(($ac_try" in
22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079 *) ac_try_echo=$ac_try;;
22080esac
22081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22082 (eval "$ac_compile") 2>conftest.er1
22083 ac_status=$?
22084 grep -v '^ *+' conftest.er1 >conftest.err
22085 rm -f conftest.er1
22086 cat conftest.err >&5
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); } &&
22089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22090 { (case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22093esac
22094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_try") 2>&5
22096 ac_status=$?
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; } &&
22099 { ac_try='test -s conftest.$ac_objext'
22100 { (case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22103esac
22104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_try") 2>&5
22106 ac_status=$?
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; }; then
22109 ac_header_compiler=yes
22110else
22111 echo "$as_me: failed program was:" >&5
22112sed 's/^/| /' conftest.$ac_ext >&5
22113
22114 ac_header_compiler=no
22115fi
22116
22117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22119echo "${ECHO_T}$ac_header_compiler" >&6; }
22120
22121# Is the header present?
22122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22124cat >conftest.$ac_ext <<_ACEOF
22125/* confdefs.h. */
22126_ACEOF
22127cat confdefs.h >>conftest.$ac_ext
22128cat >>conftest.$ac_ext <<_ACEOF
22129/* end confdefs.h. */
22130#include <$ac_header>
22131_ACEOF
22132if { (ac_try="$ac_cpp conftest.$ac_ext"
22133case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22136esac
22137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22139 ac_status=$?
22140 grep -v '^ *+' conftest.er1 >conftest.err
22141 rm -f conftest.er1
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } >/dev/null; then
22145 if test -s conftest.err; then
22146 ac_cpp_err=$ac_c_preproc_warn_flag
22147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22148 else
22149 ac_cpp_err=
22150 fi
22151else
22152 ac_cpp_err=yes
22153fi
22154if test -z "$ac_cpp_err"; then
22155 ac_header_preproc=yes
22156else
22157 echo "$as_me: failed program was:" >&5
22158sed 's/^/| /' conftest.$ac_ext >&5
22159
22160 ac_header_preproc=no
22161fi
22162
22163rm -f conftest.err conftest.$ac_ext
22164{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22165echo "${ECHO_T}$ac_header_preproc" >&6; }
22166
22167# So? What about this header?
22168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22169 yes:no: )
22170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22171echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22173echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22174 ac_header_preproc=yes
22175 ;;
22176 no:yes:* )
22177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22178echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22180echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22182echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22184echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22189 ( cat <<\_ASBOX
22190## ---------------------------------- ##
22191## Report this to bug-libtool@gnu.org ##
22192## ---------------------------------- ##
22193_ASBOX
22194 ) | sed "s/^/$as_me: WARNING: /" >&2
22195 ;;
22196esac
22197{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22201else
22202 eval "$as_ac_Header=\$ac_header_preproc"
22203fi
22204ac_res=`eval echo '${'$as_ac_Header'}'`
22205 { echo "$as_me:$LINENO: result: $ac_res" >&5
22206echo "${ECHO_T}$ac_res" >&6; }
22207
22208fi
22209if test `eval echo '${'$as_ac_Header'}'` = yes; then
22210 cat >>confdefs.h <<_ACEOF
22211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22212_ACEOF
22213
22214fi
22215
22216done
22217
22218
22219
22220
22221
22222for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
22223do
22224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22229 echo $ECHO_N "(cached) $ECHO_C" >&6
22230fi
22231ac_res=`eval echo '${'$as_ac_Header'}'`
22232 { echo "$as_me:$LINENO: result: $ac_res" >&5
22233echo "${ECHO_T}$ac_res" >&6; }
22234else
22235 # Is the header compilable?
22236{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22238cat >conftest.$ac_ext <<_ACEOF
22239/* confdefs.h. */
22240_ACEOF
22241cat confdefs.h >>conftest.$ac_ext
22242cat >>conftest.$ac_ext <<_ACEOF
22243/* end confdefs.h. */
22244$ac_includes_default
22245#include <$ac_header>
22246_ACEOF
22247rm -f conftest.$ac_objext
22248if { (ac_try="$ac_compile"
22249case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22252esac
22253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_compile") 2>conftest.er1
22255 ac_status=$?
22256 grep -v '^ *+' conftest.er1 >conftest.err
22257 rm -f conftest.er1
22258 cat conftest.err >&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } &&
22261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22262 { (case "(($ac_try" in
22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22265esac
22266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267 (eval "$ac_try") 2>&5
22268 ac_status=$?
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); }; } &&
22271 { ac_try='test -s conftest.$ac_objext'
22272 { (case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22275esac
22276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_try") 2>&5
22278 ac_status=$?
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); }; }; then
22281 ac_header_compiler=yes
22282else
22283 echo "$as_me: failed program was:" >&5
22284sed 's/^/| /' conftest.$ac_ext >&5
22285
22286 ac_header_compiler=no
22287fi
22288
22289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22290{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22291echo "${ECHO_T}$ac_header_compiler" >&6; }
22292
22293# Is the header present?
22294{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22296cat >conftest.$ac_ext <<_ACEOF
22297/* confdefs.h. */
22298_ACEOF
22299cat confdefs.h >>conftest.$ac_ext
22300cat >>conftest.$ac_ext <<_ACEOF
22301/* end confdefs.h. */
22302#include <$ac_header>
22303_ACEOF
22304if { (ac_try="$ac_cpp conftest.$ac_ext"
22305case "(($ac_try" in
22306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22307 *) ac_try_echo=$ac_try;;
22308esac
22309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22311 ac_status=$?
22312 grep -v '^ *+' conftest.er1 >conftest.err
22313 rm -f conftest.er1
22314 cat conftest.err >&5
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); } >/dev/null; then
22317 if test -s conftest.err; then
22318 ac_cpp_err=$ac_c_preproc_warn_flag
22319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22320 else
22321 ac_cpp_err=
22322 fi
22323else
22324 ac_cpp_err=yes
22325fi
22326if test -z "$ac_cpp_err"; then
22327 ac_header_preproc=yes
22328else
22329 echo "$as_me: failed program was:" >&5
22330sed 's/^/| /' conftest.$ac_ext >&5
22331
22332 ac_header_preproc=no
22333fi
22334
22335rm -f conftest.err conftest.$ac_ext
22336{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22337echo "${ECHO_T}$ac_header_preproc" >&6; }
22338
22339# So? What about this header?
22340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22341 yes:no: )
22342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22346 ac_header_preproc=yes
22347 ;;
22348 no:yes:* )
22349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22356echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22361 ( cat <<\_ASBOX
22362## ---------------------------------- ##
22363## Report this to bug-libtool@gnu.org ##
22364## ---------------------------------- ##
22365_ASBOX
22366 ) | sed "s/^/$as_me: WARNING: /" >&2
22367 ;;
22368esac
22369{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22373else
22374 eval "$as_ac_Header=\$ac_header_preproc"
22375fi
22376ac_res=`eval echo '${'$as_ac_Header'}'`
22377 { echo "$as_me:$LINENO: result: $ac_res" >&5
22378echo "${ECHO_T}$ac_res" >&6; }
22379
22380fi
22381if test `eval echo '${'$as_ac_Header'}'` = yes; then
22382 cat >>confdefs.h <<_ACEOF
22383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22384_ACEOF
22385
22386fi
22387
22388done
22389
22390
22391
22392for ac_header in string.h strings.h
22393do
22394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22400fi
22401ac_res=`eval echo '${'$as_ac_Header'}'`
22402 { echo "$as_me:$LINENO: result: $ac_res" >&5
22403echo "${ECHO_T}$ac_res" >&6; }
22404else
22405 # Is the header compilable?
22406{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22407echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22408cat >conftest.$ac_ext <<_ACEOF
22409/* confdefs.h. */
22410_ACEOF
22411cat confdefs.h >>conftest.$ac_ext
22412cat >>conftest.$ac_ext <<_ACEOF
22413/* end confdefs.h. */
22414$ac_includes_default
22415#include <$ac_header>
22416_ACEOF
22417rm -f conftest.$ac_objext
22418if { (ac_try="$ac_compile"
22419case "(($ac_try" in
22420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421 *) ac_try_echo=$ac_try;;
22422esac
22423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424 (eval "$ac_compile") 2>conftest.er1
22425 ac_status=$?
22426 grep -v '^ *+' conftest.er1 >conftest.err
22427 rm -f conftest.er1
22428 cat conftest.err >&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } &&
22431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22432 { (case "(($ac_try" in
22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22435esac
22436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437 (eval "$ac_try") 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); }; } &&
22441 { ac_try='test -s conftest.$ac_objext'
22442 { (case "(($ac_try" in
22443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22444 *) ac_try_echo=$ac_try;;
22445esac
22446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22447 (eval "$ac_try") 2>&5
22448 ac_status=$?
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); }; }; then
22451 ac_header_compiler=yes
22452else
22453 echo "$as_me: failed program was:" >&5
22454sed 's/^/| /' conftest.$ac_ext >&5
22455
22456 ac_header_compiler=no
22457fi
22458
22459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22461echo "${ECHO_T}$ac_header_compiler" >&6; }
22462
22463# Is the header present?
22464{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22466cat >conftest.$ac_ext <<_ACEOF
22467/* confdefs.h. */
22468_ACEOF
22469cat confdefs.h >>conftest.$ac_ext
22470cat >>conftest.$ac_ext <<_ACEOF
22471/* end confdefs.h. */
22472#include <$ac_header>
22473_ACEOF
22474if { (ac_try="$ac_cpp conftest.$ac_ext"
22475case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22478esac
22479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22481 ac_status=$?
22482 grep -v '^ *+' conftest.er1 >conftest.err
22483 rm -f conftest.er1
22484 cat conftest.err >&5
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } >/dev/null; then
22487 if test -s conftest.err; then
22488 ac_cpp_err=$ac_c_preproc_warn_flag
22489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22490 else
22491 ac_cpp_err=
22492 fi
22493else
22494 ac_cpp_err=yes
22495fi
22496if test -z "$ac_cpp_err"; then
22497 ac_header_preproc=yes
22498else
22499 echo "$as_me: failed program was:" >&5
22500sed 's/^/| /' conftest.$ac_ext >&5
22501
22502 ac_header_preproc=no
22503fi
22504
22505rm -f conftest.err conftest.$ac_ext
22506{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22507echo "${ECHO_T}$ac_header_preproc" >&6; }
22508
22509# So? What about this header?
22510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22511 yes:no: )
22512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22516 ac_header_preproc=yes
22517 ;;
22518 no:yes:* )
22519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22522echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22526echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22531 ( cat <<\_ASBOX
22532## ---------------------------------- ##
22533## Report this to bug-libtool@gnu.org ##
22534## ---------------------------------- ##
22535_ASBOX
22536 ) | sed "s/^/$as_me: WARNING: /" >&2
22537 ;;
22538esac
22539{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22542 echo $ECHO_N "(cached) $ECHO_C" >&6
22543else
22544 eval "$as_ac_Header=\$ac_header_preproc"
22545fi
22546ac_res=`eval echo '${'$as_ac_Header'}'`
22547 { echo "$as_me:$LINENO: result: $ac_res" >&5
22548echo "${ECHO_T}$ac_res" >&6; }
22549
22550fi
22551if test `eval echo '${'$as_ac_Header'}'` = yes; then
22552 cat >>confdefs.h <<_ACEOF
22553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22554_ACEOF
22555 break
22556fi
22557
22558done
22559
22560
22561
22562
22563for ac_func in strchr index
22564do
22565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22566{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22570else
22571 cat >conftest.$ac_ext <<_ACEOF
22572/* confdefs.h. */
22573_ACEOF
22574cat confdefs.h >>conftest.$ac_ext
22575cat >>conftest.$ac_ext <<_ACEOF
22576/* end confdefs.h. */
22577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22579#define $ac_func innocuous_$ac_func
22580
22581/* System header to define __stub macros and hopefully few prototypes,
22582 which can conflict with char $ac_func (); below.
22583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22584 <limits.h> exists even on freestanding compilers. */
22585
22586#ifdef __STDC__
22587# include <limits.h>
22588#else
22589# include <assert.h>
22590#endif
22591
22592#undef $ac_func
22593
22594/* Override any GCC internal prototype to avoid an error.
22595 Use char because int might match the return type of a GCC
22596 builtin and then its argument prototype would still apply. */
22597#ifdef __cplusplus
22598extern "C"
22599#endif
22600char $ac_func ();
22601/* The GNU C library defines this for functions which it implements
22602 to always fail with ENOSYS. Some functions are actually named
22603 something starting with __ and the normal name is an alias. */
22604#if defined __stub_$ac_func || defined __stub___$ac_func
22605choke me
22606#endif
22607
22608int
22609main ()
22610{
22611return $ac_func ();
22612 ;
22613 return 0;
22614}
22615_ACEOF
22616rm -f conftest.$ac_objext conftest$ac_exeext
22617if { (ac_try="$ac_link"
22618case "(($ac_try" in
22619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620 *) ac_try_echo=$ac_try;;
22621esac
22622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22623 (eval "$ac_link") 2>conftest.er1
22624 ac_status=$?
22625 grep -v '^ *+' conftest.er1 >conftest.err
22626 rm -f conftest.er1
22627 cat conftest.err >&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } &&
22630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22631 { (case "(($ac_try" in
22632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22634esac
22635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636 (eval "$ac_try") 2>&5
22637 ac_status=$?
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; } &&
22640 { ac_try='test -s conftest$ac_exeext'
22641 { (case "(($ac_try" in
22642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22643 *) ac_try_echo=$ac_try;;
22644esac
22645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22646 (eval "$ac_try") 2>&5
22647 ac_status=$?
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); }; }; then
22650 eval "$as_ac_var=yes"
22651else
22652 echo "$as_me: failed program was:" >&5
22653sed 's/^/| /' conftest.$ac_ext >&5
22654
22655 eval "$as_ac_var=no"
22656fi
22657
22658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22659 conftest$ac_exeext conftest.$ac_ext
22660fi
22661ac_res=`eval echo '${'$as_ac_var'}'`
22662 { echo "$as_me:$LINENO: result: $ac_res" >&5
22663echo "${ECHO_T}$ac_res" >&6; }
22664if test `eval echo '${'$as_ac_var'}'` = yes; then
22665 cat >>confdefs.h <<_ACEOF
22666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22667_ACEOF
22668 break
22669fi
22670done
22671
22672
22673
22674for ac_func in strrchr rindex
22675do
22676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22677{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22679if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22680 echo $ECHO_N "(cached) $ECHO_C" >&6
22681else
22682 cat >conftest.$ac_ext <<_ACEOF
22683/* confdefs.h. */
22684_ACEOF
22685cat confdefs.h >>conftest.$ac_ext
22686cat >>conftest.$ac_ext <<_ACEOF
22687/* end confdefs.h. */
22688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22690#define $ac_func innocuous_$ac_func
22691
22692/* System header to define __stub macros and hopefully few prototypes,
22693 which can conflict with char $ac_func (); below.
22694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22695 <limits.h> exists even on freestanding compilers. */
22696
22697#ifdef __STDC__
22698# include <limits.h>
22699#else
22700# include <assert.h>
22701#endif
22702
22703#undef $ac_func
22704
22705/* Override any GCC internal prototype to avoid an error.
22706 Use char because int might match the return type of a GCC
22707 builtin and then its argument prototype would still apply. */
22708#ifdef __cplusplus
22709extern "C"
22710#endif
22711char $ac_func ();
22712/* The GNU C library defines this for functions which it implements
22713 to always fail with ENOSYS. Some functions are actually named
22714 something starting with __ and the normal name is an alias. */
22715#if defined __stub_$ac_func || defined __stub___$ac_func
22716choke me
22717#endif
22718
22719int
22720main ()
22721{
22722return $ac_func ();
22723 ;
22724 return 0;
22725}
22726_ACEOF
22727rm -f conftest.$ac_objext conftest$ac_exeext
22728if { (ac_try="$ac_link"
22729case "(($ac_try" in
22730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731 *) ac_try_echo=$ac_try;;
22732esac
22733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734 (eval "$ac_link") 2>conftest.er1
22735 ac_status=$?
22736 grep -v '^ *+' conftest.er1 >conftest.err
22737 rm -f conftest.er1
22738 cat conftest.err >&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } &&
22741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22742 { (case "(($ac_try" in
22743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744 *) ac_try_echo=$ac_try;;
22745esac
22746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747 (eval "$ac_try") 2>&5
22748 ac_status=$?
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); }; } &&
22751 { ac_try='test -s conftest$ac_exeext'
22752 { (case "(($ac_try" in
22753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754 *) ac_try_echo=$ac_try;;
22755esac
22756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757 (eval "$ac_try") 2>&5
22758 ac_status=$?
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); }; }; then
22761 eval "$as_ac_var=yes"
22762else
22763 echo "$as_me: failed program was:" >&5
22764sed 's/^/| /' conftest.$ac_ext >&5
22765
22766 eval "$as_ac_var=no"
22767fi
22768
22769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22770 conftest$ac_exeext conftest.$ac_ext
22771fi
22772ac_res=`eval echo '${'$as_ac_var'}'`
22773 { echo "$as_me:$LINENO: result: $ac_res" >&5
22774echo "${ECHO_T}$ac_res" >&6; }
22775if test `eval echo '${'$as_ac_var'}'` = yes; then
22776 cat >>confdefs.h <<_ACEOF
22777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22778_ACEOF
22779 break
22780fi
22781done
22782
22783
22784
22785for ac_func in memcpy bcopy
22786do
22787as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22788{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22790if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22791 echo $ECHO_N "(cached) $ECHO_C" >&6
22792else
22793 cat >conftest.$ac_ext <<_ACEOF
22794/* confdefs.h. */
22795_ACEOF
22796cat confdefs.h >>conftest.$ac_ext
22797cat >>conftest.$ac_ext <<_ACEOF
22798/* end confdefs.h. */
22799/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22801#define $ac_func innocuous_$ac_func
22802
22803/* System header to define __stub macros and hopefully few prototypes,
22804 which can conflict with char $ac_func (); below.
22805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22806 <limits.h> exists even on freestanding compilers. */
22807
22808#ifdef __STDC__
22809# include <limits.h>
22810#else
22811# include <assert.h>
22812#endif
22813
22814#undef $ac_func
22815
22816/* Override any GCC internal prototype to avoid an error.
22817 Use char because int might match the return type of a GCC
22818 builtin and then its argument prototype would still apply. */
22819#ifdef __cplusplus
22820extern "C"
22821#endif
22822char $ac_func ();
22823/* The GNU C library defines this for functions which it implements
22824 to always fail with ENOSYS. Some functions are actually named
22825 something starting with __ and the normal name is an alias. */
22826#if defined __stub_$ac_func || defined __stub___$ac_func
22827choke me
22828#endif
22829
22830int
22831main ()
22832{
22833return $ac_func ();
22834 ;
22835 return 0;
22836}
22837_ACEOF
22838rm -f conftest.$ac_objext conftest$ac_exeext
22839if { (ac_try="$ac_link"
22840case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22843esac
22844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_link") 2>conftest.er1
22846 ac_status=$?
22847 grep -v '^ *+' conftest.er1 >conftest.err
22848 rm -f conftest.er1
22849 cat conftest.err >&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } &&
22852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22853 { (case "(($ac_try" in
22854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855 *) ac_try_echo=$ac_try;;
22856esac
22857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22858 (eval "$ac_try") 2>&5
22859 ac_status=$?
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); }; } &&
22862 { ac_try='test -s conftest$ac_exeext'
22863 { (case "(($ac_try" in
22864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865 *) ac_try_echo=$ac_try;;
22866esac
22867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22868 (eval "$ac_try") 2>&5
22869 ac_status=$?
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); }; }; then
22872 eval "$as_ac_var=yes"
22873else
22874 echo "$as_me: failed program was:" >&5
22875sed 's/^/| /' conftest.$ac_ext >&5
22876
22877 eval "$as_ac_var=no"
22878fi
22879
22880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22881 conftest$ac_exeext conftest.$ac_ext
22882fi
22883ac_res=`eval echo '${'$as_ac_var'}'`
22884 { echo "$as_me:$LINENO: result: $ac_res" >&5
22885echo "${ECHO_T}$ac_res" >&6; }
22886if test `eval echo '${'$as_ac_var'}'` = yes; then
22887 cat >>confdefs.h <<_ACEOF
22888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22889_ACEOF
22890 break
22891fi
22892done
22893
22894
22895
22896for ac_func in memmove strcmp
22897do
22898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22899{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22901if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22902 echo $ECHO_N "(cached) $ECHO_C" >&6
22903else
22904 cat >conftest.$ac_ext <<_ACEOF
22905/* confdefs.h. */
22906_ACEOF
22907cat confdefs.h >>conftest.$ac_ext
22908cat >>conftest.$ac_ext <<_ACEOF
22909/* end confdefs.h. */
22910/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22912#define $ac_func innocuous_$ac_func
22913
22914/* System header to define __stub macros and hopefully few prototypes,
22915 which can conflict with char $ac_func (); below.
22916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22917 <limits.h> exists even on freestanding compilers. */
22918
22919#ifdef __STDC__
22920# include <limits.h>
22921#else
22922# include <assert.h>
22923#endif
22924
22925#undef $ac_func
22926
22927/* Override any GCC internal prototype to avoid an error.
22928 Use char because int might match the return type of a GCC
22929 builtin and then its argument prototype would still apply. */
22930#ifdef __cplusplus
22931extern "C"
22932#endif
22933char $ac_func ();
22934/* The GNU C library defines this for functions which it implements
22935 to always fail with ENOSYS. Some functions are actually named
22936 something starting with __ and the normal name is an alias. */
22937#if defined __stub_$ac_func || defined __stub___$ac_func
22938choke me
22939#endif
22940
22941int
22942main ()
22943{
22944return $ac_func ();
22945 ;
22946 return 0;
22947}
22948_ACEOF
22949rm -f conftest.$ac_objext conftest$ac_exeext
22950if { (ac_try="$ac_link"
22951case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22954esac
22955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956 (eval "$ac_link") 2>conftest.er1
22957 ac_status=$?
22958 grep -v '^ *+' conftest.er1 >conftest.err
22959 rm -f conftest.er1
22960 cat conftest.err >&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); } &&
22963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22964 { (case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22967esac
22968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969 (eval "$ac_try") 2>&5
22970 ac_status=$?
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); }; } &&
22973 { ac_try='test -s conftest$ac_exeext'
22974 { (case "(($ac_try" in
22975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976 *) ac_try_echo=$ac_try;;
22977esac
22978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979 (eval "$ac_try") 2>&5
22980 ac_status=$?
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); }; }; then
22983 eval "$as_ac_var=yes"
22984else
22985 echo "$as_me: failed program was:" >&5
22986sed 's/^/| /' conftest.$ac_ext >&5
22987
22988 eval "$as_ac_var=no"
22989fi
22990
22991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22992 conftest$ac_exeext conftest.$ac_ext
22993fi
22994ac_res=`eval echo '${'$as_ac_var'}'`
22995 { echo "$as_me:$LINENO: result: $ac_res" >&5
22996echo "${ECHO_T}$ac_res" >&6; }
22997if test `eval echo '${'$as_ac_var'}'` = yes; then
22998 cat >>confdefs.h <<_ACEOF
22999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23000_ACEOF
23001
23002fi
23003done
23004
23005
23006
23007
23008for ac_func in closedir opendir readdir
23009do
23010as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23011{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23012echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23013if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23014 echo $ECHO_N "(cached) $ECHO_C" >&6
23015else
23016 cat >conftest.$ac_ext <<_ACEOF
23017/* confdefs.h. */
23018_ACEOF
23019cat confdefs.h >>conftest.$ac_ext
23020cat >>conftest.$ac_ext <<_ACEOF
23021/* end confdefs.h. */
23022/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23024#define $ac_func innocuous_$ac_func
23025
23026/* System header to define __stub macros and hopefully few prototypes,
23027 which can conflict with char $ac_func (); below.
23028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23029 <limits.h> exists even on freestanding compilers. */
23030
23031#ifdef __STDC__
23032# include <limits.h>
23033#else
23034# include <assert.h>
23035#endif
23036
23037#undef $ac_func
23038
23039/* Override any GCC internal prototype to avoid an error.
23040 Use char because int might match the return type of a GCC
23041 builtin and then its argument prototype would still apply. */
23042#ifdef __cplusplus
23043extern "C"
23044#endif
23045char $ac_func ();
23046/* The GNU C library defines this for functions which it implements
23047 to always fail with ENOSYS. Some functions are actually named
23048 something starting with __ and the normal name is an alias. */
23049#if defined __stub_$ac_func || defined __stub___$ac_func
23050choke me
23051#endif
23052
23053int
23054main ()
23055{
23056return $ac_func ();
23057 ;
23058 return 0;
23059}
23060_ACEOF
23061rm -f conftest.$ac_objext conftest$ac_exeext
23062if { (ac_try="$ac_link"
23063case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23066esac
23067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_link") 2>conftest.er1
23069 ac_status=$?
23070 grep -v '^ *+' conftest.er1 >conftest.err
23071 rm -f conftest.er1
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } &&
23075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23076 { (case "(($ac_try" in
23077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078 *) ac_try_echo=$ac_try;;
23079esac
23080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081 (eval "$ac_try") 2>&5
23082 ac_status=$?
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; } &&
23085 { ac_try='test -s conftest$ac_exeext'
23086 { (case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23089esac
23090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091 (eval "$ac_try") 2>&5
23092 ac_status=$?
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 eval "$as_ac_var=yes"
23096else
23097 echo "$as_me: failed program was:" >&5
23098sed 's/^/| /' conftest.$ac_ext >&5
23099
23100 eval "$as_ac_var=no"
23101fi
23102
23103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23104 conftest$ac_exeext conftest.$ac_ext
23105fi
23106ac_res=`eval echo '${'$as_ac_var'}'`
23107 { echo "$as_me:$LINENO: result: $ac_res" >&5
23108echo "${ECHO_T}$ac_res" >&6; }
23109if test `eval echo '${'$as_ac_var'}'` = yes; then
23110 cat >>confdefs.h <<_ACEOF
23111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23112_ACEOF
23113
23114fi
23115done
23116
23117
23118
23119
23120## -------- ##
23121## Outputs. ##
23122## -------- ##
23123ac_config_files="$ac_config_files Makefile"
23124
23125cat >confcache <<\_ACEOF
23126# This file is a shell script that caches the results of configure
23127# tests run on this system so they can be shared between configure
23128# scripts and configure runs, see configure's option --config-cache.
23129# It is not useful on other systems. If it contains results you don't
23130# want to keep, you may remove or edit it.
23131#
23132# config.status only pays attention to the cache file if you give it
23133# the --recheck option to rerun configure.
23134#
23135# `ac_cv_env_foo' variables (set or unset) will be overridden when
23136# loading this file, other *unset* `ac_cv_foo' will be assigned the
23137# following values.
23138
23139_ACEOF
23140
23141# The following way of writing the cache mishandles newlines in values,
23142# but we know of no workaround that is simple, portable, and efficient.
23143# So, we kill variables containing newlines.
23144# Ultrix sh set writes to stderr and can't be redirected directly,
23145# and sets the high bit in the cache file unless we assign to the vars.
23146(
23147 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23148 eval ac_val=\$$ac_var
23149 case $ac_val in #(
23150 *${as_nl}*)
23151 case $ac_var in #(
23152 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23153echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23154 esac
23155 case $ac_var in #(
23156 _ | IFS | as_nl) ;; #(
23157 *) $as_unset $ac_var ;;
23158 esac ;;
23159 esac
23160 done
23161
23162 (set) 2>&1 |
23163 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23164 *${as_nl}ac_space=\ *)
23165 # `set' does not quote correctly, so add quotes (double-quote
23166 # substitution turns \\\\ into \\, and sed turns \\ into \).
23167 sed -n \
23168 "s/'/'\\\\''/g;
23169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23170 ;; #(
23171 *)
23172 # `set' quotes correctly as required by POSIX, so do not add quotes.
23173 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23174 ;;
23175 esac |
23176 sort
23177) |
23178 sed '
23179 /^ac_cv_env_/b end
23180 t clear
23181 :clear
23182 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23183 t end
23184 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23185 :end' >>confcache
23186if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23187 if test -w "$cache_file"; then
23188 test "x$cache_file" != "x/dev/null" &&
23189 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23190echo "$as_me: updating cache $cache_file" >&6;}
23191 cat confcache >$cache_file
23192 else
23193 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23194echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23195 fi
23196fi
23197rm -f confcache
23198
23199test "x$prefix" = xNONE && prefix=$ac_default_prefix
23200# Let make expand exec_prefix.
23201test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23202
23203DEFS=-DHAVE_CONFIG_H
23204
23205ac_libobjs=
23206ac_ltlibobjs=
23207for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23208 # 1. Remove the extension, and $U if already installed.
23209 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23210 ac_i=`echo "$ac_i" | sed "$ac_script"`
23211 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23212 # will be set to the directory where LIBOBJS objects are built.
23213 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23214 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23215done
23216LIBOBJS=$ac_libobjs
23217
23218LTLIBOBJS=$ac_ltlibobjs
23219
23220
23221if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23222 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23223Usually this means the macro was only invoked conditionally." >&5
23224echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23225Usually this means the macro was only invoked conditionally." >&2;}
23226 { (exit 1); exit 1; }; }
23227fi
23228if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23229 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23230Usually this means the macro was only invoked conditionally." >&5
23231echo "$as_me: error: conditional \"AMDEP\" was never defined.
23232Usually this means the macro was only invoked conditionally." >&2;}
23233 { (exit 1); exit 1; }; }
23234fi
23235if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23236 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23237Usually this means the macro was only invoked conditionally." >&5
23238echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23239Usually this means the macro was only invoked conditionally." >&2;}
23240 { (exit 1); exit 1; }; }
23241fi
23242if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23243 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23244Usually this means the macro was only invoked conditionally." >&5
23245echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23246Usually this means the macro was only invoked conditionally." >&2;}
23247 { (exit 1); exit 1; }; }
23248fi
23249if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
23250 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
23251Usually this means the macro was only invoked conditionally." >&5
23252echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
23253Usually this means the macro was only invoked conditionally." >&2;}
23254 { (exit 1); exit 1; }; }
23255fi
23256if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
23257 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23258Usually this means the macro was only invoked conditionally." >&5
23259echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23260Usually this means the macro was only invoked conditionally." >&2;}
23261 { (exit 1); exit 1; }; }
23262fi
23263
23264: ${CONFIG_STATUS=./config.status}
23265ac_clean_files_save=$ac_clean_files
23266ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23267{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23268echo "$as_me: creating $CONFIG_STATUS" >&6;}
23269cat >$CONFIG_STATUS <<_ACEOF
23270#! $SHELL
23271# Generated by $as_me.
23272# Run this file to recreate the current configuration.
23273# Compiler output produced by configure, useful for debugging
23274# configure, is in config.log if it exists.
23275
23276debug=false
23277ac_cs_recheck=false
23278ac_cs_silent=false
23279SHELL=\${CONFIG_SHELL-$SHELL}
23280_ACEOF
23281
23282cat >>$CONFIG_STATUS <<\_ACEOF
23283## --------------------- ##
23284## M4sh Initialization. ##
23285## --------------------- ##
23286
23287# Be Bourne compatible
23288if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23289 emulate sh
23290 NULLCMD=:
23291 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23292 # is contrary to our usage. Disable this feature.
23293 alias -g '${1+"$@"}'='"$@"'
23294 setopt NO_GLOB_SUBST
23295else
23296 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23297fi
23298BIN_SH=xpg4; export BIN_SH # for Tru64
23299DUALCASE=1; export DUALCASE # for MKS sh
23300
23301
23302# PATH needs CR
23303# Avoid depending upon Character Ranges.
23304as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23305as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23306as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23307as_cr_digits='0123456789'
23308as_cr_alnum=$as_cr_Letters$as_cr_digits
23309
23310# The user is always right.
23311if test "${PATH_SEPARATOR+set}" != set; then
23312 echo "#! /bin/sh" >conf$$.sh
23313 echo "exit 0" >>conf$$.sh
23314 chmod +x conf$$.sh
23315 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23316 PATH_SEPARATOR=';'
23317 else
23318 PATH_SEPARATOR=:
23319 fi
23320 rm -f conf$$.sh
23321fi
23322
23323# Support unset when possible.
23324if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23325 as_unset=unset
23326else
23327 as_unset=false
23328fi
23329
23330
23331# IFS
23332# We need space, tab and new line, in precisely that order. Quoting is
23333# there to prevent editors from complaining about space-tab.
23334# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23335# splitting by setting IFS to empty value.)
23336as_nl='
23337'
23338IFS=" "" $as_nl"
23339
23340# Find who we are. Look in the path if we contain no directory separator.
23341case $0 in
23342 *[\\/]* ) as_myself=$0 ;;
23343 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23344for as_dir in $PATH
23345do
23346 IFS=$as_save_IFS
23347 test -z "$as_dir" && as_dir=.
23348 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23349done
23350IFS=$as_save_IFS
23351
23352 ;;
23353esac
23354# We did not find ourselves, most probably we were run as `sh COMMAND'
23355# in which case we are not to be found in the path.
23356if test "x$as_myself" = x; then
23357 as_myself=$0
23358fi
23359if test ! -f "$as_myself"; then
23360 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23361 { (exit 1); exit 1; }
23362fi
23363
23364# Work around bugs in pre-3.0 UWIN ksh.
23365for as_var in ENV MAIL MAILPATH
23366do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23367done
23368PS1='$ '
23369PS2='> '
23370PS4='+ '
23371
23372# NLS nuisances.
23373for as_var in \
23374 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23375 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23376 LC_TELEPHONE LC_TIME
23377do
23378 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23379 eval $as_var=C; export $as_var
23380 else
23381 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23382 fi
23383done
23384
23385# Required to use basename.
23386if expr a : '\(a\)' >/dev/null 2>&1 &&
23387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23388 as_expr=expr
23389else
23390 as_expr=false
23391fi
23392
23393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23394 as_basename=basename
23395else
23396 as_basename=false
23397fi
23398
23399
23400# Name of the executable.
23401as_me=`$as_basename -- "$0" ||
23402$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23403 X"$0" : 'X\(//\)$' \| \
23404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23405echo X/"$0" |
23406 sed '/^.*\/\([^/][^/]*\)\/*$/{
23407 s//\1/
23408 q
23409 }
23410 /^X\/\(\/\/\)$/{
23411 s//\1/
23412 q
23413 }
23414 /^X\/\(\/\).*/{
23415 s//\1/
23416 q
23417 }
23418 s/.*/./; q'`
23419
23420# CDPATH.
23421$as_unset CDPATH
23422
23423
23424
23425 as_lineno_1=$LINENO
23426 as_lineno_2=$LINENO
23427 test "x$as_lineno_1" != "x$as_lineno_2" &&
23428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23429
23430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23431 # uniformly replaced by the line number. The first 'sed' inserts a
23432 # line-number line after each line using $LINENO; the second 'sed'
23433 # does the real work. The second script uses 'N' to pair each
23434 # line-number line with the line containing $LINENO, and appends
23435 # trailing '-' during substitution so that $LINENO is not a special
23436 # case at line end.
23437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23438 # scripts with optimization help from Paolo Bonzini. Blame Lee
23439 # E. McMahon (1931-1989) for sed's syntax. :-)
23440 sed -n '
23441 p
23442 /[$]LINENO/=
23443 ' <$as_myself |
23444 sed '
23445 s/[$]LINENO.*/&-/
23446 t lineno
23447 b
23448 :lineno
23449 N
23450 :loop
23451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23452 t loop
23453 s/-\n.*//
23454 ' >$as_me.lineno &&
23455 chmod +x "$as_me.lineno" ||
23456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23457 { (exit 1); exit 1; }; }
23458
23459 # Don't try to exec as it changes $[0], causing all sort of problems
23460 # (the dirname of $[0] is not the place where we might find the
23461 # original and so on. Autoconf is especially sensitive to this).
23462 . "./$as_me.lineno"
23463 # Exit status is that of the last command.
23464 exit
23465}
23466
23467
23468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23469 as_dirname=dirname
23470else
23471 as_dirname=false
23472fi
23473
23474ECHO_C= ECHO_N= ECHO_T=
23475case `echo -n x` in
23476-n*)
23477 case `echo 'x\c'` in
23478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23479 *) ECHO_C='\c';;
23480 esac;;
23481*)
23482 ECHO_N='-n';;
23483esac
23484
23485if expr a : '\(a\)' >/dev/null 2>&1 &&
23486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23487 as_expr=expr
23488else
23489 as_expr=false
23490fi
23491
23492rm -f conf$$ conf$$.exe conf$$.file
23493if test -d conf$$.dir; then
23494 rm -f conf$$.dir/conf$$.file
23495else
23496 rm -f conf$$.dir
23497 mkdir conf$$.dir
23498fi
23499echo >conf$$.file
23500if ln -s conf$$.file conf$$ 2>/dev/null; then
23501 as_ln_s='ln -s'
23502 # ... but there are two gotchas:
23503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23505 # In both cases, we have to default to `cp -p'.
23506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23507 as_ln_s='cp -p'
23508elif ln conf$$.file conf$$ 2>/dev/null; then
23509 as_ln_s=ln
23510else
23511 as_ln_s='cp -p'
23512fi
23513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23514rmdir conf$$.dir 2>/dev/null
23515
23516if mkdir -p . 2>/dev/null; then
23517 as_mkdir_p=:
23518else
23519 test -d ./-p && rmdir ./-p
23520 as_mkdir_p=false
23521fi
23522
23523# Find out whether ``test -x'' works. Don't use a zero-byte file, as
23524# systems may use methods other than mode bits to determine executability.
23525cat >conf$$.file <<_ASEOF
23526#! /bin/sh
23527exit 0
23528_ASEOF
23529chmod +x conf$$.file
23530if test -x conf$$.file >/dev/null 2>&1; then
23531 as_executable_p="test -x"
23532else
23533 as_executable_p=:
23534fi
23535rm -f conf$$.file
23536
23537# Sed expression to map a string onto a valid CPP name.
23538as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23539
23540# Sed expression to map a string onto a valid variable name.
23541as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23542
23543
23544exec 6>&1
23545
23546# Save the log message, to keep $[0] and so on meaningful, and to
23547# report actual input values of CONFIG_FILES etc. instead of their
23548# values after options handling.
23549ac_log="
23550This file was extended by libltdl $as_me 1.2, which was
23551generated by GNU Autoconf 2.60a. Invocation command line was
23552
23553 CONFIG_FILES = $CONFIG_FILES
23554 CONFIG_HEADERS = $CONFIG_HEADERS
23555 CONFIG_LINKS = $CONFIG_LINKS
23556 CONFIG_COMMANDS = $CONFIG_COMMANDS
23557 $ $0 $@
23558
23559on `(hostname || uname -n) 2>/dev/null | sed 1q`
23560"
23561
23562_ACEOF
23563
23564cat >>$CONFIG_STATUS <<_ACEOF
23565# Files that config.status was made for.
23566config_files="$ac_config_files"
23567config_headers="$ac_config_headers"
23568config_commands="$ac_config_commands"
23569
23570_ACEOF
23571
23572cat >>$CONFIG_STATUS <<\_ACEOF
23573ac_cs_usage="\
23574\`$as_me' instantiates files from templates according to the
23575current configuration.
23576
23577Usage: $0 [OPTIONS] [FILE]...
23578
23579 -h, --help print this help, then exit
23580 -V, --version print version number and configuration settings, then exit
23581 -q, --quiet do not print progress messages
23582 -d, --debug don't remove temporary files
23583 --recheck update $as_me by reconfiguring in the same conditions
23584 --file=FILE[:TEMPLATE]
23585 instantiate the configuration file FILE
23586 --header=FILE[:TEMPLATE]
23587 instantiate the configuration header FILE
23588
23589Configuration files:
23590$config_files
23591
23592Configuration headers:
23593$config_headers
23594
23595Configuration commands:
23596$config_commands
23597
23598Report bugs to <bug-autoconf@gnu.org>."
23599
23600_ACEOF
23601cat >>$CONFIG_STATUS <<_ACEOF
23602ac_cs_version="\\
23603libltdl config.status 1.2
23604configured by $0, generated by GNU Autoconf 2.60a,
23605 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23606
23607Copyright (C) 2006 Free Software Foundation, Inc.
23608This config.status script is free software; the Free Software Foundation
23609gives unlimited permission to copy, distribute and modify it."
23610
23611ac_pwd='$ac_pwd'
23612srcdir='$srcdir'
23613INSTALL='$INSTALL'
23614_ACEOF
23615
23616cat >>$CONFIG_STATUS <<\_ACEOF
23617# If no file are specified by the user, then we need to provide default
23618# value. By we need to know if files were specified by the user.
23619ac_need_defaults=:
23620while test $# != 0
23621do
23622 case $1 in
23623 --*=*)
23624 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23626 ac_shift=:
23627 ;;
23628 *)
23629 ac_option=$1
23630 ac_optarg=$2
23631 ac_shift=shift
23632 ;;
23633 esac
23634
23635 case $ac_option in
23636 # Handling of the options.
23637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23638 ac_cs_recheck=: ;;
23639 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23640 echo "$ac_cs_version"; exit ;;
23641 --debug | --debu | --deb | --de | --d | -d )
23642 debug=: ;;
23643 --file | --fil | --fi | --f )
23644 $ac_shift
23645 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23646 ac_need_defaults=false;;
23647 --header | --heade | --head | --hea )
23648 $ac_shift
23649 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23650 ac_need_defaults=false;;
23651 --he | --h)
23652 # Conflict between --help and --header
23653 { echo "$as_me: error: ambiguous option: $1
23654Try \`$0 --help' for more information." >&2
23655 { (exit 1); exit 1; }; };;
23656 --help | --hel | -h )
23657 echo "$ac_cs_usage"; exit ;;
23658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23660 ac_cs_silent=: ;;
23661
23662 # This is an error.
23663 -*) { echo "$as_me: error: unrecognized option: $1
23664Try \`$0 --help' for more information." >&2
23665 { (exit 1); exit 1; }; } ;;
23666
23667 *) ac_config_targets="$ac_config_targets $1"
23668 ac_need_defaults=false ;;
23669
23670 esac
23671 shift
23672done
23673
23674ac_configure_extra_args=
23675
23676if $ac_cs_silent; then
23677 exec 6>/dev/null
23678 ac_configure_extra_args="$ac_configure_extra_args --silent"
23679fi
23680
23681_ACEOF
23682cat >>$CONFIG_STATUS <<_ACEOF
23683if \$ac_cs_recheck; then
23684 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23685 CONFIG_SHELL=$SHELL
23686 export CONFIG_SHELL
23687 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23688fi
23689
23690_ACEOF
23691cat >>$CONFIG_STATUS <<\_ACEOF
23692exec 5>>config.log
23693{
23694 echo
23695 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23696## Running $as_me. ##
23697_ASBOX
23698 echo "$ac_log"
23699} >&5
23700
23701_ACEOF
23702cat >>$CONFIG_STATUS <<_ACEOF
23703#
23704# INIT-COMMANDS
23705#
23706AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23707
23708_ACEOF
23709
23710cat >>$CONFIG_STATUS <<\_ACEOF
23711
23712# Handling of arguments.
23713for ac_config_target in $ac_config_targets
23714do
23715 case $ac_config_target in
23716 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
23717 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23718 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23719
23720 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23721echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23722 { (exit 1); exit 1; }; };;
23723 esac
23724done
23725
23726
23727# If the user did not use the arguments to specify the items to instantiate,
23728# then the envvar interface is used. Set only those that are not.
23729# We use the long form for the default assignment because of an extremely
23730# bizarre bug on SunOS 4.1.3.
23731if $ac_need_defaults; then
23732 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23733 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23734 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23735fi
23736
23737# Have a temporary directory for convenience. Make it in the build tree
23738# simply because there is no reason against having it here, and in addition,
23739# creating and moving files from /tmp can sometimes cause problems.
23740# Hook for its removal unless debugging.
23741# Note that there is a small window in which the directory will not be cleaned:
23742# after its creation but before its name has been assigned to `$tmp'.
23743$debug ||
23744{
23745 tmp=
23746 trap 'exit_status=$?
23747 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23748' 0
23749 trap '{ (exit 1); exit 1; }' 1 2 13 15
23750}
23751# Create a (secure) tmp directory for tmp files.
23752
23753{
23754 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23755 test -n "$tmp" && test -d "$tmp"
23756} ||
23757{
23758 tmp=./conf$$-$RANDOM
23759 (umask 077 && mkdir "$tmp")
23760} ||
23761{
23762 echo "$me: cannot create a temporary directory in ." >&2
23763 { (exit 1); exit 1; }
23764}
23765
23766#
23767# Set up the sed scripts for CONFIG_FILES section.
23768#
23769
23770# No need to generate the scripts if there are no CONFIG_FILES.
23771# This happens for instance when ./config.status config.h
23772if test -n "$CONFIG_FILES"; then
23773
23774_ACEOF
23775
23776
23777
23778ac_delim='%!_!# '
23779for ac_last_try in false false false false false :; do
23780 cat >conf$$subs.sed <<_ACEOF
23781SHELL!$SHELL$ac_delim
23782PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23783PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23784PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23785PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23786PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23787PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23788exec_prefix!$exec_prefix$ac_delim
23789prefix!$prefix$ac_delim
23790program_transform_name!$program_transform_name$ac_delim
23791bindir!$bindir$ac_delim
23792sbindir!$sbindir$ac_delim
23793libexecdir!$libexecdir$ac_delim
23794datarootdir!$datarootdir$ac_delim
23795datadir!$datadir$ac_delim
23796sysconfdir!$sysconfdir$ac_delim
23797sharedstatedir!$sharedstatedir$ac_delim
23798localstatedir!$localstatedir$ac_delim
23799includedir!$includedir$ac_delim
23800oldincludedir!$oldincludedir$ac_delim
23801docdir!$docdir$ac_delim
23802infodir!$infodir$ac_delim
23803htmldir!$htmldir$ac_delim
23804dvidir!$dvidir$ac_delim
23805pdfdir!$pdfdir$ac_delim
23806psdir!$psdir$ac_delim
23807libdir!$libdir$ac_delim
23808localedir!$localedir$ac_delim
23809mandir!$mandir$ac_delim
23810DEFS!$DEFS$ac_delim
23811ECHO_C!$ECHO_C$ac_delim
23812ECHO_N!$ECHO_N$ac_delim
23813ECHO_T!$ECHO_T$ac_delim
23814LIBS!$LIBS$ac_delim
23815build_alias!$build_alias$ac_delim
23816host_alias!$host_alias$ac_delim
23817target_alias!$target_alias$ac_delim
23818INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23819INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23820INSTALL_DATA!$INSTALL_DATA$ac_delim
23821CYGPATH_W!$CYGPATH_W$ac_delim
23822PACKAGE!$PACKAGE$ac_delim
23823VERSION!$VERSION$ac_delim
23824ACLOCAL!$ACLOCAL$ac_delim
23825AUTOCONF!$AUTOCONF$ac_delim
23826AUTOMAKE!$AUTOMAKE$ac_delim
23827AUTOHEADER!$AUTOHEADER$ac_delim
23828MAKEINFO!$MAKEINFO$ac_delim
23829AMTAR!$AMTAR$ac_delim
23830install_sh!$install_sh$ac_delim
23831STRIP!$STRIP$ac_delim
23832INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23833mkdir_p!$mkdir_p$ac_delim
23834AWK!$AWK$ac_delim
23835SET_MAKE!$SET_MAKE$ac_delim
23836am__leading_dot!$am__leading_dot$ac_delim
23837MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23838MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23839MAINT!$MAINT$ac_delim
23840CC!$CC$ac_delim
23841CFLAGS!$CFLAGS$ac_delim
23842LDFLAGS!$LDFLAGS$ac_delim
23843CPPFLAGS!$CPPFLAGS$ac_delim
23844ac_ct_CC!$ac_ct_CC$ac_delim
23845EXEEXT!$EXEEXT$ac_delim
23846OBJEXT!$OBJEXT$ac_delim
23847DEPDIR!$DEPDIR$ac_delim
23848am__include!$am__include$ac_delim
23849am__quote!$am__quote$ac_delim
23850AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23851AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23852AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23853CCDEPMODE!$CCDEPMODE$ac_delim
23854am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23855am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23856build!$build$ac_delim
23857build_cpu!$build_cpu$ac_delim
23858build_vendor!$build_vendor$ac_delim
23859build_os!$build_os$ac_delim
23860host!$host$ac_delim
23861host_cpu!$host_cpu$ac_delim
23862host_vendor!$host_vendor$ac_delim
23863host_os!$host_os$ac_delim
23864GREP!$GREP$ac_delim
23865EGREP!$EGREP$ac_delim
23866LN_S!$LN_S$ac_delim
23867ECHO!$ECHO$ac_delim
23868AR!$AR$ac_delim
23869RANLIB!$RANLIB$ac_delim
23870DLLTOOL!$DLLTOOL$ac_delim
23871AS!$AS$ac_delim
23872OBJDUMP!$OBJDUMP$ac_delim
23873CPP!$CPP$ac_delim
23874CXX!$CXX$ac_delim
23875CXXFLAGS!$CXXFLAGS$ac_delim
23876ac_ct_CXX!$ac_ct_CXX$ac_delim
23877CXXDEPMODE!$CXXDEPMODE$ac_delim
23878_ACEOF
23879
23880 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23881 break
23882 elif $ac_last_try; then
23883 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23884echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23885 { (exit 1); exit 1; }; }
23886 else
23887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23888 fi
23889done
23890
23891ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23892if test -n "$ac_eof"; then
23893 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23894 ac_eof=`expr $ac_eof + 1`
23895fi
23896
23897cat >>$CONFIG_STATUS <<_ACEOF
23898cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23899/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23900_ACEOF
23901sed '
23902s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23903s/^/s,@/; s/!/@,|#_!!_#|/
23904:n
23905t n
23906s/'"$ac_delim"'$/,g/; t
23907s/$/\\/; p
23908N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23909' >>$CONFIG_STATUS <conf$$subs.sed
23910rm -f conf$$subs.sed
23911cat >>$CONFIG_STATUS <<_ACEOF
23912CEOF$ac_eof
23913_ACEOF
23914
23915
23916ac_delim='%!_!# '
23917for ac_last_try in false false false false false :; do
23918 cat >conf$$subs.sed <<_ACEOF
23919am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23920am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23921CXXCPP!$CXXCPP$ac_delim
23922F77!$F77$ac_delim
23923FFLAGS!$FFLAGS$ac_delim
23924ac_ct_F77!$ac_ct_F77$ac_delim
23925LIBTOOL!$LIBTOOL$ac_delim
23926LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23927INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23928INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23929CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23930CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23931LIBADD_DL!$LIBADD_DL$ac_delim
23932LIBOBJS!$LIBOBJS$ac_delim
23933LTLIBOBJS!$LTLIBOBJS$ac_delim
23934_ACEOF
23935
23936 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
23937 break
23938 elif $ac_last_try; then
23939 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23940echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23941 { (exit 1); exit 1; }; }
23942 else
23943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23944 fi
23945done
23946
23947ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23948if test -n "$ac_eof"; then
23949 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23950 ac_eof=`expr $ac_eof + 1`
23951fi
23952
23953cat >>$CONFIG_STATUS <<_ACEOF
23954cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23955/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23956_ACEOF
23957sed '
23958s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23959s/^/s,@/; s/!/@,|#_!!_#|/
23960:n
23961t n
23962s/'"$ac_delim"'$/,g/; t
23963s/$/\\/; p
23964N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23965' >>$CONFIG_STATUS <conf$$subs.sed
23966rm -f conf$$subs.sed
23967cat >>$CONFIG_STATUS <<_ACEOF
23968:end
23969s/|#_!!_#|//g
23970CEOF$ac_eof
23971_ACEOF
23972
23973
23974# VPATH may cause trouble with some makes, so we remove $(srcdir),
23975# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23976# trailing colons and then remove the whole line if VPATH becomes empty
23977# (actually we leave an empty line to preserve line numbers).
23978if test "x$srcdir" = x.; then
23979 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23980s/:*\$(srcdir):*/:/
23981s/:*\${srcdir}:*/:/
23982s/:*@srcdir@:*/:/
23983s/^\([^=]*=[ ]*\):*/\1/
23984s/:*$//
23985s/^[^=]*=[ ]*$//
23986}'
23987fi
23988
23989cat >>$CONFIG_STATUS <<\_ACEOF
23990fi # test -n "$CONFIG_FILES"
23991
23992
23993for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23994do
23995 case $ac_tag in
23996 :[FHLC]) ac_mode=$ac_tag; continue;;
23997 esac
23998 case $ac_mode$ac_tag in
23999 :[FHL]*:*);;
24000 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24001echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24002 { (exit 1); exit 1; }; };;
24003 :[FH]-) ac_tag=-:-;;
24004 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24005 esac
24006 ac_save_IFS=$IFS
24007 IFS=:
24008 set x $ac_tag
24009 IFS=$ac_save_IFS
24010 shift
24011 ac_file=$1
24012 shift
24013
24014 case $ac_mode in
24015 :L) ac_source=$1;;
24016 :[FH])
24017 ac_file_inputs=
24018 for ac_f
24019 do
24020 case $ac_f in
24021 -) ac_f="$tmp/stdin";;
24022 *) # Look for the file first in the build tree, then in the source tree
24023 # (if the path is not absolute). The absolute path cannot be DOS-style,
24024 # because $ac_f cannot contain `:'.
24025 test -f "$ac_f" ||
24026 case $ac_f in
24027 [\\/$]*) false;;
24028 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24029 esac ||
24030 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24031echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24032 { (exit 1); exit 1; }; };;
24033 esac
24034 ac_file_inputs="$ac_file_inputs $ac_f"
24035 done
24036
24037 # Let's still pretend it is `configure' which instantiates (i.e., don't
24038 # use $as_me), people would be surprised to read:
24039 # /* config.h. Generated by config.status. */
24040 configure_input="Generated from "`IFS=:
24041 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24042 if test x"$ac_file" != x-; then
24043 configure_input="$ac_file. $configure_input"
24044 { echo "$as_me:$LINENO: creating $ac_file" >&5
24045echo "$as_me: creating $ac_file" >&6;}
24046 fi
24047
24048 case $ac_tag in
24049 *:-:* | *:-) cat >"$tmp/stdin";;
24050 esac
24051 ;;
24052 esac
24053
24054 ac_dir=`$as_dirname -- "$ac_file" ||
24055$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24056 X"$ac_file" : 'X\(//\)[^/]' \| \
24057 X"$ac_file" : 'X\(//\)$' \| \
24058 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24059echo X"$ac_file" |
24060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24061 s//\1/
24062 q
24063 }
24064 /^X\(\/\/\)[^/].*/{
24065 s//\1/
24066 q
24067 }
24068 /^X\(\/\/\)$/{
24069 s//\1/
24070 q
24071 }
24072 /^X\(\/\).*/{
24073 s//\1/
24074 q
24075 }
24076 s/.*/./; q'`
24077 { as_dir="$ac_dir"
24078 case $as_dir in #(
24079 -*) as_dir=./$as_dir;;
24080 esac
24081 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24082 as_dirs=
24083 while :; do
24084 case $as_dir in #(
24085 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24086 *) as_qdir=$as_dir;;
24087 esac
24088 as_dirs="'$as_qdir' $as_dirs"
24089 as_dir=`$as_dirname -- "$as_dir" ||
24090$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24091 X"$as_dir" : 'X\(//\)[^/]' \| \
24092 X"$as_dir" : 'X\(//\)$' \| \
24093 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24094echo X"$as_dir" |
24095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24096 s//\1/
24097 q
24098 }
24099 /^X\(\/\/\)[^/].*/{
24100 s//\1/
24101 q
24102 }
24103 /^X\(\/\/\)$/{
24104 s//\1/
24105 q
24106 }
24107 /^X\(\/\).*/{
24108 s//\1/
24109 q
24110 }
24111 s/.*/./; q'`
24112 test -d "$as_dir" && break
24113 done
24114 test -z "$as_dirs" || eval "mkdir $as_dirs"
24115 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24116echo "$as_me: error: cannot create directory $as_dir" >&2;}
24117 { (exit 1); exit 1; }; }; }
24118 ac_builddir=.
24119
24120case "$ac_dir" in
24121.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24122*)
24123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24124 # A ".." for each directory in $ac_dir_suffix.
24125 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24126 case $ac_top_builddir_sub in
24127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24129 esac ;;
24130esac
24131ac_abs_top_builddir=$ac_pwd
24132ac_abs_builddir=$ac_pwd$ac_dir_suffix
24133# for backward compatibility:
24134ac_top_builddir=$ac_top_build_prefix
24135
24136case $srcdir in
24137 .) # We are building in place.
24138 ac_srcdir=.
24139 ac_top_srcdir=$ac_top_builddir_sub
24140 ac_abs_top_srcdir=$ac_pwd ;;
24141 [\\/]* | ?:[\\/]* ) # Absolute name.
24142 ac_srcdir=$srcdir$ac_dir_suffix;
24143 ac_top_srcdir=$srcdir
24144 ac_abs_top_srcdir=$srcdir ;;
24145 *) # Relative name.
24146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24147 ac_top_srcdir=$ac_top_build_prefix$srcdir
24148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24149esac
24150ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24151
24152
24153 case $ac_mode in
24154 :F)
24155 #
24156 # CONFIG_FILE
24157 #
24158
24159 case $INSTALL in
24160 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24161 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24162 esac
24163_ACEOF
24164
24165cat >>$CONFIG_STATUS <<\_ACEOF
24166# If the template does not know about datarootdir, expand it.
24167# FIXME: This hack should be removed a few years after 2.60.
24168ac_datarootdir_hack=; ac_datarootdir_seen=
24169
24170case `sed -n '/datarootdir/ {
24171 p
24172 q
24173}
24174/@datadir@/p
24175/@docdir@/p
24176/@infodir@/p
24177/@localedir@/p
24178/@mandir@/p
24179' $ac_file_inputs` in
24180*datarootdir*) ac_datarootdir_seen=yes;;
24181*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24182 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24183echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24184_ACEOF
24185cat >>$CONFIG_STATUS <<_ACEOF
24186 ac_datarootdir_hack='
24187 s&@datadir@&$datadir&g
24188 s&@docdir@&$docdir&g
24189 s&@infodir@&$infodir&g
24190 s&@localedir@&$localedir&g
24191 s&@mandir@&$mandir&g
24192 s&\\\${datarootdir}&$datarootdir&g' ;;
24193esac
24194_ACEOF
24195
24196# Neutralize VPATH when `$srcdir' = `.'.
24197# Shell code in configure.ac might set extrasub.
24198# FIXME: do we really want to maintain this feature?
24199cat >>$CONFIG_STATUS <<_ACEOF
24200 sed "$ac_vpsub
24201$extrasub
24202_ACEOF
24203cat >>$CONFIG_STATUS <<\_ACEOF
24204:t
24205/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24206s&@configure_input@&$configure_input&;t t
24207s&@top_builddir@&$ac_top_builddir_sub&;t t
24208s&@srcdir@&$ac_srcdir&;t t
24209s&@abs_srcdir@&$ac_abs_srcdir&;t t
24210s&@top_srcdir@&$ac_top_srcdir&;t t
24211s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24212s&@builddir@&$ac_builddir&;t t
24213s&@abs_builddir@&$ac_abs_builddir&;t t
24214s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24215s&@INSTALL@&$ac_INSTALL&;t t
24216$ac_datarootdir_hack
24217" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24218
24219test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24220 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24221 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24222 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24223which seems to be undefined. Please make sure it is defined." >&5
24224echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24225which seems to be undefined. Please make sure it is defined." >&2;}
24226
24227 rm -f "$tmp/stdin"
24228 case $ac_file in
24229 -) cat "$tmp/out"; rm -f "$tmp/out";;
24230 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24231 esac
24232 ;;
24233 :H)
24234 #
24235 # CONFIG_HEADER
24236 #
24237_ACEOF
24238
24239# Transform confdefs.h into a sed script `conftest.defines', that
24240# substitutes the proper values into config.h.in to produce config.h.
24241rm -f conftest.defines conftest.tail
24242# First, append a space to every undef/define line, to ease matching.
24243echo 's/$/ /' >conftest.defines
24244# Then, protect against being on the right side of a sed subst, or in
24245# an unquoted here document, in config.status. If some macros were
24246# called several times there might be several #defines for the same
24247# symbol, which is useless. But do not sort them, since the last
24248# AC_DEFINE must be honored.
24249ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24250# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24251# NAME is the cpp macro being defined, VALUE is the value it is being given.
24252# PARAMS is the parameter list in the macro definition--in most cases, it's
24253# just an empty string.
24254ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24255ac_dB='\\)[ (].*,\\1define\\2'
24256ac_dC=' '
24257ac_dD=' ,'
24258
24259uniq confdefs.h |
24260 sed -n '
24261 t rset
24262 :rset
24263 s/^[ ]*#[ ]*define[ ][ ]*//
24264 t ok
24265 d
24266 :ok
24267 s/[\\&,]/\\&/g
24268 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24269 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24270 ' >>conftest.defines
24271
24272# Remove the space that was appended to ease matching.
24273# Then replace #undef with comments. This is necessary, for
24274# example, in the case of _POSIX_SOURCE, which is predefined and required
24275# on some systems where configure will not decide to define it.
24276# (The regexp can be short, since the line contains either #define or #undef.)
24277echo 's/ $//
24278s,^[ #]*u.*,/* & */,' >>conftest.defines
24279
24280# Break up conftest.defines:
24281ac_max_sed_lines=50
24282
24283# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24284# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24285# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24286# et cetera.
24287ac_in='$ac_file_inputs'
24288ac_out='"$tmp/out1"'
24289ac_nxt='"$tmp/out2"'
24290
24291while :
24292do
24293 # Write a here document:
24294 cat >>$CONFIG_STATUS <<_ACEOF
24295 # First, check the format of the line:
24296 cat >"\$tmp/defines.sed" <<\\CEOF
24297/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24298/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24299b
24300:def
24301_ACEOF
24302 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24303 echo 'CEOF
24304 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24305 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24306 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24307 grep . conftest.tail >/dev/null || break
24308 rm -f conftest.defines
24309 mv conftest.tail conftest.defines
24310done
24311rm -f conftest.defines conftest.tail
24312
24313echo "ac_result=$ac_in" >>$CONFIG_STATUS
24314cat >>$CONFIG_STATUS <<\_ACEOF
24315 if test x"$ac_file" != x-; then
24316 echo "/* $configure_input */" >"$tmp/config.h"
24317 cat "$ac_result" >>"$tmp/config.h"
24318 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24319 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24320echo "$as_me: $ac_file is unchanged" >&6;}
24321 else
24322 rm -f $ac_file
24323 mv "$tmp/config.h" $ac_file
24324 fi
24325 else
24326 echo "/* $configure_input */"
24327 cat "$ac_result"
24328 fi
24329 rm -f "$tmp/out12"
24330# Compute $ac_file's index in $config_headers.
24331_am_stamp_count=1
24332for _am_header in $config_headers :; do
24333 case $_am_header in
24334 $ac_file | $ac_file:* )
24335 break ;;
24336 * )
24337 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24338 esac
24339done
24340echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24341$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24342 X$ac_file : 'X\(//\)[^/]' \| \
24343 X$ac_file : 'X\(//\)$' \| \
24344 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24345echo X$ac_file |
24346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24347 s//\1/
24348 q
24349 }
24350 /^X\(\/\/\)[^/].*/{
24351 s//\1/
24352 q
24353 }
24354 /^X\(\/\/\)$/{
24355 s//\1/
24356 q
24357 }
24358 /^X\(\/\).*/{
24359 s//\1/
24360 q
24361 }
24362 s/.*/./; q'`/stamp-h$_am_stamp_count
24363 ;;
24364
24365 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24366echo "$as_me: executing $ac_file commands" >&6;}
24367 ;;
24368 esac
24369
24370
24371 case $ac_file$ac_mode in
24372 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24373 # Strip MF so we end up with the name of the file.
24374 mf=`echo "$mf" | sed -e 's/:.*$//'`
24375 # Check whether this is an Automake generated Makefile or not.
24376 # We used to match only the files named `Makefile.in', but
24377 # some people rename them; so instead we look at the file content.
24378 # Grep'ing the first line is not enough: some people post-process
24379 # each Makefile.in and add a new line on top of each file to say so.
24380 # So let's grep whole file.
24381 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24382 dirpart=`$as_dirname -- "$mf" ||
24383$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24384 X"$mf" : 'X\(//\)[^/]' \| \
24385 X"$mf" : 'X\(//\)$' \| \
24386 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24387echo X"$mf" |
24388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24389 s//\1/
24390 q
24391 }
24392 /^X\(\/\/\)[^/].*/{
24393 s//\1/
24394 q
24395 }
24396 /^X\(\/\/\)$/{
24397 s//\1/
24398 q
24399 }
24400 /^X\(\/\).*/{
24401 s//\1/
24402 q
24403 }
24404 s/.*/./; q'`
24405 else
24406 continue
24407 fi
24408 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24409 # Extract the definition of DEP_FILES from the Makefile without
24410 # running `make'.
24411 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24412 test -z "$DEPDIR" && continue
24413 # When using ansi2knr, U may be empty or an underscore; expand it
24414 U=`sed -n 's/^U = //p' < "$mf"`
24415 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24416 # We invoke sed twice because it is the simplest approach to
24417 # changing $(DEPDIR) to its actual value in the expansion.
24418 for file in `sed -n '
24419 /^DEP_FILES = .*\\\\$/ {
24420 s/^DEP_FILES = //
24421 :loop
24422 s/\\\\$//
24423 p
24424 n
24425 /\\\\$/ b loop
24426 p
24427 }
24428 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24429 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24430 # Make sure the directory exists.
24431 test -f "$dirpart/$file" && continue
24432 fdir=`$as_dirname -- "$file" ||
24433$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24434 X"$file" : 'X\(//\)[^/]' \| \
24435 X"$file" : 'X\(//\)$' \| \
24436 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24437echo X"$file" |
24438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24439 s//\1/
24440 q
24441 }
24442 /^X\(\/\/\)[^/].*/{
24443 s//\1/
24444 q
24445 }
24446 /^X\(\/\/\)$/{
24447 s//\1/
24448 q
24449 }
24450 /^X\(\/\).*/{
24451 s//\1/
24452 q
24453 }
24454 s/.*/./; q'`
24455 { as_dir=$dirpart/$fdir
24456 case $as_dir in #(
24457 -*) as_dir=./$as_dir;;
24458 esac
24459 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24460 as_dirs=
24461 while :; do
24462 case $as_dir in #(
24463 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24464 *) as_qdir=$as_dir;;
24465 esac
24466 as_dirs="'$as_qdir' $as_dirs"
24467 as_dir=`$as_dirname -- "$as_dir" ||
24468$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24469 X"$as_dir" : 'X\(//\)[^/]' \| \
24470 X"$as_dir" : 'X\(//\)$' \| \
24471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24472echo X"$as_dir" |
24473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24474 s//\1/
24475 q
24476 }
24477 /^X\(\/\/\)[^/].*/{
24478 s//\1/
24479 q
24480 }
24481 /^X\(\/\/\)$/{
24482 s//\1/
24483 q
24484 }
24485 /^X\(\/\).*/{
24486 s//\1/
24487 q
24488 }
24489 s/.*/./; q'`
24490 test -d "$as_dir" && break
24491 done
24492 test -z "$as_dirs" || eval "mkdir $as_dirs"
24493 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24494echo "$as_me: error: cannot create directory $as_dir" >&2;}
24495 { (exit 1); exit 1; }; }; }
24496 # echo "creating $dirpart/$file"
24497 echo '# dummy' > "$dirpart/$file"
24498 done
24499done
24500 ;;
24501
24502 esac
24503done # for ac_tag
24504
24505
24506{ (exit 0); exit 0; }
24507_ACEOF
24508chmod +x $CONFIG_STATUS
24509ac_clean_files=$ac_clean_files_save
24510
24511
24512# configure is writing to config.log, and then calls config.status.
24513# config.status does its own redirection, appending to config.log.
24514# Unfortunately, on DOS this fails, as config.log is still kept open
24515# by configure, so config.status won't be able to write to it; its
24516# output is simply discarded. So we exec the FD to /dev/null,
24517# effectively closing config.log, so it can be properly (re)opened and
24518# appended to by config.status. When coming back to configure, we
24519# need to make the FD available again.
24520if test "$no_create" != yes; then
24521 ac_cs_success=:
24522 ac_config_status_args=
24523 test "$silent" = yes &&
24524 ac_config_status_args="$ac_config_status_args --quiet"
24525 exec 5>/dev/null
24526 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24527 exec 5>>config.log
24528 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24529 # would make configure fail if this is the last instruction.
24530 $ac_cs_success || { (exit 1); exit 1; }
24531fi
24532