[3214] - Added missing dependencies for world and realm daemon.
[mangos-git.git] / configure
blobf9eb377456767d8f8934dab035e67ad36e405542
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for MaNGOS 0.7-SVN.
5 # Report bugs to <http://www.mangosproject.org/>.
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 ## --------------------- ##
15 # Be Bourne compatible
16 if 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
23 else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if 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=:
48 rm -f conf$$.sh
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54 else
55 as_unset=false
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.)
64 as_nl='
66 IFS=" "" $as_nl"
68 # Find who we are. Look in the path if we contain no directory separator.
69 case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
81 esac
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.
84 if test "x$as_myself" = x; then
85 as_myself=$0
87 if 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; }
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
100 # NLS nuisances.
101 for 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
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
111 done
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117 else
118 as_expr=false
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123 else
124 as_basename=false
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
138 /^X\/\(\/\/\)$/{
139 s//\1/
142 /^X\/\(\/\).*/{
143 s//\1/
146 s/.*/./; q'`
148 # CDPATH.
149 $as_unset CDPATH
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155 else
156 as_have_required=no
159 if test $as_have_required = yes && (eval ":
160 (as_func_return () {
161 (exit \$1)
163 as_func_success () {
164 as_func_return 0
166 as_func_failure () {
167 as_func_return 1
169 as_func_ret_success () {
170 return 0
172 as_func_ret_failure () {
173 return 1
176 exitcode=0
177 if as_func_success; then
179 else
180 exitcode=1
181 echo as_func_success failed.
184 if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
191 else
192 exitcode=1
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 else
204 exitcode=1
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
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
217 else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
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
230 done
231 IFS=$as_save_IFS
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
239 if 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
246 else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
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
259 if 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
266 else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
273 (as_func_return () {
274 (exit $1)
276 as_func_success () {
277 as_func_return 0
279 as_func_failure () {
280 as_func_return 1
282 as_func_ret_success () {
283 return 0
285 as_func_ret_failure () {
286 return 1
289 exitcode=0
290 if as_func_success; then
292 else
293 exitcode=1
294 echo as_func_success failed.
297 if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
304 else
305 exitcode=1
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 else
317 exitcode=1
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
329 _ASEOF
330 }; then
331 break
336 done
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+"$@"}
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; }
362 (eval "as_func_return () {
363 (exit \$1)
365 as_func_success () {
366 as_func_return 0
368 as_func_failure () {
369 as_func_return 1
371 as_func_ret_success () {
372 return 0
374 as_func_ret_failure () {
375 return 1
378 exitcode=0
379 if as_func_success; then
381 else
382 exitcode=1
383 echo as_func_success failed.
386 if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
393 else
394 exitcode=1
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 else
406 exitcode=1
407 echo positional parameters were not saved.
410 test \$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
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" || {
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 '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
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; }; }
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
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
468 ECHO_C= ECHO_N= ECHO_T=
469 case `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;;
476 ECHO_N='-n';;
477 esac
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482 else
483 as_expr=false
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489 else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
493 echo >conf$$.file
494 if 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'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504 else
505 as_ln_s='cp -p'
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
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.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526 else
527 as_executable_p=:
529 rm -f conf$$.file
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 # Check that we are running under the correct shell.
541 SHELL=${CONFIG_SHELL-/bin/sh}
543 case X$ECHO in
544 X*--fallback-echo)
545 # Remove one level of quotation (which was required for Make).
546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
548 esac
550 echo=${ECHO-echo}
551 if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
553 shift
554 elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
557 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $echo works!
560 else
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
565 if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
567 shift
568 cat <<EOF
571 exit 0
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
578 if test -z "$ECHO"; then
579 if 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
589 done
592 if 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
596 else
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'
601 # So, first we look for a working echo in the user's PATH.
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
613 done
614 IFS="$lt_save_ifs"
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
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=:
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
662 prev="$cmd"
663 done
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
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.
681 ECHO=$echo
682 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
689 tagnames=${tagnames+${tagnames},}CXX
691 tagnames=${tagnames+${tagnames},}F77
693 exec 7<&0 </dev/null 6>&1
695 # Name of the host.
696 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697 # so uname gets run too.
698 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701 # Initializations.
703 ac_default_prefix=/usr/local
704 ac_clean_files=
705 ac_config_libobj_dir=.
706 LIBOBJS=
707 cross_compiling=no
708 subdirs=
709 MFLAGS=
710 MAKEFLAGS=
711 SHELL=${CONFIG_SHELL-/bin/sh}
713 # Identity of this package.
714 PACKAGE_NAME='MaNGOS'
715 PACKAGE_TARNAME='mangos'
716 PACKAGE_VERSION='0.7-SVN'
717 PACKAGE_STRING='MaNGOS 0.7-SVN'
718 PACKAGE_BUGREPORT='http://www.mangosproject.org/'
720 ac_unique_file="src/mangosd/Main.cpp"
721 # Factoring default headers for most tests.
722 ac_includes_default="\
723 #include <stdio.h>
724 #if HAVE_SYS_TYPES_H
725 # include <sys/types.h>
726 #endif
727 #if HAVE_SYS_STAT_H
728 # include <sys/stat.h>
729 #endif
730 #if STDC_HEADERS
731 # include <stdlib.h>
732 # include <stddef.h>
733 #else
734 # if HAVE_STDLIB_H
735 # include <stdlib.h>
736 # endif
737 #endif
738 #if HAVE_STRING_H
739 # if !STDC_HEADERS && HAVE_MEMORY_H
740 # include <memory.h>
741 # endif
742 # include <string.h>
743 #endif
744 #if HAVE_STRINGS_H
745 # include <strings.h>
746 #endif
747 #if HAVE_INTTYPES_H
748 # include <inttypes.h>
749 #endif
750 #if HAVE_STDINT_H
751 # include <stdint.h>
752 #endif
753 #if HAVE_UNISTD_H
754 # include <unistd.h>
755 #endif"
757 ac_subst_vars='SHELL
758 PATH_SEPARATOR
759 PACKAGE_NAME
760 PACKAGE_TARNAME
761 PACKAGE_VERSION
762 PACKAGE_STRING
763 PACKAGE_BUGREPORT
764 exec_prefix
765 prefix
766 program_transform_name
767 bindir
768 sbindir
769 libexecdir
770 datarootdir
771 datadir
772 sysconfdir
773 sharedstatedir
774 localstatedir
775 includedir
776 oldincludedir
777 docdir
778 infodir
779 htmldir
780 dvidir
781 pdfdir
782 psdir
783 libdir
784 localedir
785 mandir
786 DEFS
787 ECHO_C
788 ECHO_N
789 ECHO_T
790 LIBS
791 build_alias
792 host_alias
793 target_alias
794 INSTALL_PROGRAM
795 INSTALL_SCRIPT
796 INSTALL_DATA
797 CYGPATH_W
798 PACKAGE
799 VERSION
800 ACLOCAL
801 AUTOCONF
802 AUTOMAKE
803 AUTOHEADER
804 MAKEINFO
805 install_sh
806 STRIP
807 INSTALL_STRIP_PROGRAM
808 mkdir_p
810 SET_MAKE
811 am__leading_dot
812 AMTAR
813 am__tar
814 am__untar
815 MAINTAINER_MODE_TRUE
816 MAINTAINER_MODE_FALSE
817 MAINT
819 CFLAGS
820 LDFLAGS
821 CPPFLAGS
822 ac_ct_CC
823 EXEEXT
824 OBJEXT
825 DEPDIR
826 am__include
827 am__quote
828 AMDEP_TRUE
829 AMDEP_FALSE
830 AMDEPBACKSLASH
831 CCDEPMODE
832 am__fastdepCC_TRUE
833 am__fastdepCC_FALSE
835 CXXFLAGS
836 ac_ct_CXX
837 CXXDEPMODE
838 am__fastdepCXX_TRUE
839 am__fastdepCXX_FALSE
840 build
841 build_cpu
842 build_vendor
843 build_os
844 host
845 host_cpu
846 host_vendor
847 host_os
848 GREP
849 EGREP
850 LN_S
851 ECHO
853 RANLIB
855 CXXCPP
857 FFLAGS
858 ac_ct_F77
859 LIBTOOL
860 __PYTHON
861 OPENSSL_INCLUDES
862 OPENSSL_LDFLAGS
863 MYSQL_INCLUDES
864 MYSQL_LDFLAGS
865 INCLUDES
866 LIBOBJS
867 ALLOCA
868 WITH_PYTHON_SUBDIR
869 WITH_PYTHON_SUBPACKAGE
870 WITH_PYTHON_VERSION
871 __DOXYGEN
872 WITH_APIDOCS_TARGET
873 WITH_APIDOCS
874 LINKER_OPTIONS
875 COMPILER_OPTIONS
876 EXTRA_LINKER_OPTIONS
877 EXTRA_COMPILER_OPTIONS
878 MANGOSD_CONFIG
879 MANGOSD_CONFIGDIR
880 REALMD_CONFIG
881 REALMD_CONFIGDIR
882 MANGOSD_DATA
883 MANGOSD_ENABLE_CLI
884 MANGOSD_ENABLE_RA
885 LT_RELEASE
886 LT_CURRENT
887 LT_AGE
888 LT_REVISION
889 LTMS_RELEASE
890 LTMS_CURRENT
891 LTMS_AGE
892 LTMS_REVISION
893 LTLIBOBJS'
894 ac_subst_files=''
895 ac_precious_vars='build_alias
896 host_alias
897 target_alias
899 CFLAGS
900 LDFLAGS
901 CPPFLAGS
903 CXXFLAGS
906 CXXCPP
908 FFLAGS'
911 # Initialize some variables set by options.
912 ac_init_help=
913 ac_init_version=false
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
916 cache_file=/dev/null
917 exec_prefix=NONE
918 no_create=
919 no_recursion=
920 prefix=NONE
921 program_prefix=NONE
922 program_suffix=NONE
923 program_transform_name=s,x,x,
924 silent=
925 site=
926 srcdir=
927 verbose=
928 x_includes=NONE
929 x_libraries=NONE
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir='${datarootdir}/info'
949 htmldir='${docdir}'
950 dvidir='${docdir}'
951 pdfdir='${docdir}'
952 psdir='${docdir}'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
957 ac_prev=
958 ac_dashdash=
959 for ac_option
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
964 ac_prev=
965 continue
968 case $ac_option in
969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *) ac_optarg=yes ;;
971 esac
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
977 ac_dashdash=yes ;;
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
996 --config-cache | -C)
997 cache_file=config.cache ;;
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1011 -disable-* | --disable-*)
1012 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016 { (exit 1); exit 1; }; }
1017 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1018 eval enable_$ac_feature=no ;;
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1030 -enable-* | --enable-*)
1031 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1034 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1037 eval enable_$ac_feature=\$ac_optarg ;;
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1117 no_create=yes ;;
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1227 -with-* | --with-*)
1228 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package| sed 's/-/_/g'`
1234 eval with_$ac_package=\$ac_optarg ;;
1236 -without-* | --without-*)
1237 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid package name: $ac_package" >&2
1241 { (exit 1); exit 1; }; }
1242 ac_package=`echo $ac_package | sed 's/-/_/g'`
1243 eval with_$ac_package=no ;;
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1263 -*) { echo "$as_me: error: unrecognized option: $ac_option
1264 Try \`$0 --help' for more information." >&2
1265 { (exit 1); exit 1; }; }
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273 { (exit 1); exit 1; }; }
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1278 # FIXME: should be removed in autoconf 3.0.
1279 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285 esac
1286 done
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 { echo "$as_me: error: missing argument to $ac_option" >&2
1291 { (exit 1); exit 1; }; }
1294 # Be sure to have absolute directory names.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1300 eval ac_val=\$$ac_var
1301 case $ac_val in
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 esac
1305 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306 { (exit 1); exit 1; }; }
1307 done
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330 test "$silent" = yes && exec 6>/dev/null
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 { echo "$as_me: error: Working directory cannot be determined" >&2
1337 { (exit 1); exit 1; }; }
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 { echo "$as_me: error: pwd does not report name of working directory" >&2
1340 { (exit 1); exit 1; }; }
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$0" ||
1348 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$0" : 'X\(//\)[^/]' \| \
1350 X"$0" : 'X\(//\)$' \| \
1351 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1352 echo X"$0" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 s//\1/
1357 /^X\(\/\/\)[^/].*/{
1358 s//\1/
1361 /^X\(\/\/\)$/{
1362 s//\1/
1365 /^X\(\/\).*/{
1366 s//\1/
1369 s/.*/./; q'`
1370 srcdir=$ac_confdir
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 srcdir=..
1374 else
1375 ac_srcdir_defaulted=no
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380 { (exit 1); exit 1; }; }
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1385 { (exit 1); exit 1; }; }
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1405 # Report the --help message.
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411 \`configure' configures MaNGOS 0.7-SVN to adapt to many kinds of systems.
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1418 Defaults for the options are specified in brackets.
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1442 For better control, use the options below.
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/mangos]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1464 _ACEOF
1466 cat <<\_ACEOF
1468 Program names:
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473 System types:
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 _ACEOF
1479 if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of MaNGOS 0.7-SVN:";;
1482 esac
1483 cat <<\_ACEOF
1485 Optional Features:
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-maintainer-mode enable make rules and dependencies not useful
1489 (and sometimes confusing) to the casual installer
1490 --disable-dependency-tracking speeds up one-time build
1491 --enable-dependency-tracking do not reject slow dependency extractors
1492 --enable-shared[=PKGS] build shared libraries [default=yes]
1493 --enable-static[=PKGS] build static libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --enable-cli Turn on command console system
1498 --enable-ra Turn on remote console system
1500 Optional Packages:
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-pic try to use only PIC/non-PIC objects [default=use
1505 both]
1506 --with-tags[=TAGS] include additional configurations [automatic]
1507 --with-openssl=/path/to/openssl/dir OpenSSL directory
1508 --with-mysql=/path/to/mysql/dir MySQL directory]
1509 --with-python build python bindings
1510 --with-apidocs build MaNGOS API docs
1512 Debugging options:
1514 --with-debug-info Include debug info in library
1516 Some influential environment variables:
1517 CC C compiler command
1518 CFLAGS C compiler flags
1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1520 nonstandard directory <lib dir>
1521 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CXX C++ compiler command
1524 CXXFLAGS C++ compiler flags
1525 CPP C preprocessor
1526 CXXCPP C++ preprocessor
1527 F77 Fortran 77 compiler command
1528 FFLAGS Fortran 77 compiler flags
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1533 Report bugs to <http://www.mangosproject.org/>.
1534 _ACEOF
1535 ac_status=$?
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" || continue
1542 ac_builddir=.
1544 case "$ac_dir" in
1545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1548 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553 esac ;;
1554 esac
1555 ac_abs_top_builddir=$ac_pwd
1556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir=$ac_top_build_prefix
1560 case $srcdir in
1561 .) # We are building in place.
1562 ac_srcdir=.
1563 ac_top_srcdir=$ac_top_builddir_sub
1564 ac_abs_top_srcdir=$ac_pwd ;;
1565 [\\/]* | ?:[\\/]* ) # Absolute name.
1566 ac_srcdir=$srcdir$ac_dir_suffix;
1567 ac_top_srcdir=$srcdir
1568 ac_abs_top_srcdir=$srcdir ;;
1569 *) # Relative name.
1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 esac
1574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576 cd "$ac_dir" || { ac_status=$?; continue; }
1577 # Check for guested configure.
1578 if test -f "$ac_srcdir/configure.gnu"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure" --help=recursive
1584 else
1585 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 fi || ac_status=$?
1587 cd "$ac_pwd" || { ac_status=$?; break; }
1588 done
1591 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then
1593 cat <<\_ACEOF
1594 MaNGOS configure 0.7-SVN
1595 generated by GNU Autoconf 2.60
1597 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1598 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1601 _ACEOF
1602 exit
1604 cat >config.log <<_ACEOF
1605 This file contains any messages produced by compilers while
1606 running configure, to aid debugging if configure makes a mistake.
1608 It was created by MaNGOS $as_me 0.7-SVN, which was
1609 generated by GNU Autoconf 2.60. Invocation command line was
1611 $ $0 $@
1613 _ACEOF
1614 exec 5>>config.log
1616 cat <<_ASUNAME
1617 ## --------- ##
1618 ## Platform. ##
1619 ## --------- ##
1621 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1622 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1623 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1624 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1625 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1627 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1628 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1630 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1631 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1632 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1633 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1634 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1635 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1636 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1638 _ASUNAME
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 for as_dir in $PATH
1643 IFS=$as_save_IFS
1644 test -z "$as_dir" && as_dir=.
1645 echo "PATH: $as_dir"
1646 done
1647 IFS=$as_save_IFS
1649 } >&5
1651 cat >&5 <<_ACEOF
1654 ## ----------- ##
1655 ## Core tests. ##
1656 ## ----------- ##
1658 _ACEOF
1661 # Keep a trace of the command line.
1662 # Strip out --no-create and --no-recursion so they do not pile up.
1663 # Strip out --silent because we don't want to record it for future runs.
1664 # Also quote any args containing shell meta-characters.
1665 # Make two passes to allow for proper duplicate-argument suppression.
1666 ac_configure_args=
1667 ac_configure_args0=
1668 ac_configure_args1=
1669 ac_must_keep_next=false
1670 for ac_pass in 1 2
1672 for ac_arg
1674 case $ac_arg in
1675 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1676 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1677 | -silent | --silent | --silen | --sile | --sil)
1678 continue ;;
1679 *\'*)
1680 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1681 esac
1682 case $ac_pass in
1683 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1685 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1686 if test $ac_must_keep_next = true; then
1687 ac_must_keep_next=false # Got value, back to normal.
1688 else
1689 case $ac_arg in
1690 *=* | --config-cache | -C | -disable-* | --disable-* \
1691 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1692 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1693 | -with-* | --with-* | -without-* | --without-* | --x)
1694 case "$ac_configure_args0 " in
1695 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1696 esac
1698 -* ) ac_must_keep_next=true ;;
1699 esac
1701 ac_configure_args="$ac_configure_args '$ac_arg'"
1703 esac
1704 done
1705 done
1706 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1707 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1709 # When interrupted or exit'd, cleanup temporary files, and complete
1710 # config.log. We remove comments because anyway the quotes in there
1711 # would cause problems or look ugly.
1712 # WARNING: Use '\'' to represent an apostrophe within the trap.
1713 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1714 trap 'exit_status=$?
1715 # Save into config.log some information that might help in debugging.
1717 echo
1719 cat <<\_ASBOX
1720 ## ---------------- ##
1721 ## Cache variables. ##
1722 ## ---------------- ##
1723 _ASBOX
1724 echo
1725 # The following way of writing the cache mishandles newlines in values,
1727 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1728 eval ac_val=\$$ac_var
1729 case $ac_val in #(
1730 *${as_nl}*)
1731 case $ac_var in #(
1732 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1733 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1734 esac
1735 case $ac_var in #(
1736 _ | IFS | as_nl) ;; #(
1737 *) $as_unset $ac_var ;;
1738 esac ;;
1739 esac
1740 done
1741 (set) 2>&1 |
1742 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1743 *${as_nl}ac_space=\ *)
1744 sed -n \
1745 "s/'\''/'\''\\\\'\'''\''/g;
1746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1747 ;; #(
1749 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751 esac |
1752 sort
1754 echo
1756 cat <<\_ASBOX
1757 ## ----------------- ##
1758 ## Output variables. ##
1759 ## ----------------- ##
1760 _ASBOX
1761 echo
1762 for ac_var in $ac_subst_vars
1764 eval ac_val=\$$ac_var
1765 case $ac_val in
1766 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767 esac
1768 echo "$ac_var='\''$ac_val'\''"
1769 done | sort
1770 echo
1772 if test -n "$ac_subst_files"; then
1773 cat <<\_ASBOX
1774 ## ------------------- ##
1775 ## File substitutions. ##
1776 ## ------------------- ##
1777 _ASBOX
1778 echo
1779 for ac_var in $ac_subst_files
1781 eval ac_val=\$$ac_var
1782 case $ac_val in
1783 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784 esac
1785 echo "$ac_var='\''$ac_val'\''"
1786 done | sort
1787 echo
1790 if test -s confdefs.h; then
1791 cat <<\_ASBOX
1792 ## ----------- ##
1793 ## confdefs.h. ##
1794 ## ----------- ##
1795 _ASBOX
1796 echo
1797 cat confdefs.h
1798 echo
1800 test "$ac_signal" != 0 &&
1801 echo "$as_me: caught signal $ac_signal"
1802 echo "$as_me: exit $exit_status"
1803 } >&5
1804 rm -f core *.core core.conftest.* &&
1805 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1806 exit $exit_status
1808 for ac_signal in 1 2 13 15; do
1809 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1810 done
1811 ac_signal=0
1813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1814 rm -f -r conftest* confdefs.h
1816 # Predefined preprocessor variables.
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_NAME "$PACKAGE_NAME"
1820 _ACEOF
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1825 _ACEOF
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1830 _ACEOF
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_STRING "$PACKAGE_STRING"
1835 _ACEOF
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1840 _ACEOF
1843 # Let the site file select an alternate cache file if it wants to.
1844 # Prefer explicitly selected file to automatically selected ones.
1845 if test -n "$CONFIG_SITE"; then
1846 set x "$CONFIG_SITE"
1847 elif test "x$prefix" != xNONE; then
1848 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1849 else
1850 set x "$ac_default_prefix/share/config.site" \
1851 "$ac_default_prefix/etc/config.site"
1853 shift
1854 for ac_site_file
1856 if test -r "$ac_site_file"; then
1857 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1858 echo "$as_me: loading site script $ac_site_file" >&6;}
1859 sed 's/^/| /' "$ac_site_file" >&5
1860 . "$ac_site_file"
1862 done
1864 if test -r "$cache_file"; then
1865 # Some versions of bash will fail to source /dev/null (special
1866 # files actually), so we avoid doing that.
1867 if test -f "$cache_file"; then
1868 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1869 echo "$as_me: loading cache $cache_file" >&6;}
1870 case $cache_file in
1871 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1872 *) . "./$cache_file";;
1873 esac
1875 else
1876 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1877 echo "$as_me: creating cache $cache_file" >&6;}
1878 >$cache_file
1881 # Check that the precious variables saved in the cache have kept the same
1882 # value.
1883 ac_cache_corrupted=false
1884 for ac_var in $ac_precious_vars; do
1885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1886 eval ac_new_set=\$ac_env_${ac_var}_set
1887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1888 eval ac_new_val=\$ac_env_${ac_var}_value
1889 case $ac_old_set,$ac_new_set in
1890 set,)
1891 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1892 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1893 ac_cache_corrupted=: ;;
1894 ,set)
1895 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1896 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1898 ,);;
1900 if test "x$ac_old_val" != "x$ac_new_val"; then
1901 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1902 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1903 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1904 echo "$as_me: former value: $ac_old_val" >&2;}
1905 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1906 echo "$as_me: current value: $ac_new_val" >&2;}
1907 ac_cache_corrupted=:
1908 fi;;
1909 esac
1910 # Pass precious variables to config.status.
1911 if test "$ac_new_set" = set; then
1912 case $ac_new_val in
1913 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1914 *) ac_arg=$ac_var=$ac_new_val ;;
1915 esac
1916 case " $ac_configure_args " in
1917 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1918 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1919 esac
1921 done
1922 if $ac_cache_corrupted; then
1923 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1924 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1925 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1926 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1927 { (exit 1); exit 1; }; }
1954 ac_ext=c
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961 ac_config_headers="$ac_config_headers config.h"
1965 am__api_version="1.9"
1966 ac_aux_dir=
1967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1968 if test -f "$ac_dir/install-sh"; then
1969 ac_aux_dir=$ac_dir
1970 ac_install_sh="$ac_aux_dir/install-sh -c"
1971 break
1972 elif test -f "$ac_dir/install.sh"; then
1973 ac_aux_dir=$ac_dir
1974 ac_install_sh="$ac_aux_dir/install.sh -c"
1975 break
1976 elif test -f "$ac_dir/shtool"; then
1977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/shtool install -c"
1979 break
1981 done
1982 if test -z "$ac_aux_dir"; then
1983 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1984 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1985 { (exit 1); exit 1; }; }
1988 # These three variables are undocumented and unsupported,
1989 # and are intended to be withdrawn in a future Autoconf release.
1990 # They can cause serious problems if a builder's source tree is in a directory
1991 # whose full name contains unusual characters.
1992 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1993 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1994 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1997 # Find a good install program. We prefer a C program (faster),
1998 # so one script is as good as another. But avoid the broken or
1999 # incompatible versions:
2000 # SysV /etc/install, /usr/sbin/install
2001 # SunOS /usr/etc/install
2002 # IRIX /sbin/install
2003 # AIX /bin/install
2004 # AmigaOS /C/install, which installs bootblocks on floppy discs
2005 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2006 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2007 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2008 # OS/2's system install, which has a completely different semantic
2009 # ./install, which can be erroneously created by make from ./install.sh.
2010 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2011 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2012 if test -z "$INSTALL"; then
2013 if test "${ac_cv_path_install+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 # Account for people who put trailing slashes in PATH elements.
2022 case $as_dir/ in
2023 ./ | .// | /cC/* | \
2024 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2025 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2026 /usr/ucb/* ) ;;
2028 # OSF1 and SCO ODT 3.0 have their own names for install.
2029 # Don't use installbsd from OSF since it installs stuff as root
2030 # by default.
2031 for ac_prog in ginstall scoinst install; do
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2034 if test $ac_prog = install &&
2035 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2036 # AIX install. It has an incompatible calling convention.
2038 elif test $ac_prog = install &&
2039 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2040 # program-specific install script used by HP pwplus--don't use.
2042 else
2043 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2044 break 3
2047 done
2048 done
2050 esac
2051 done
2052 IFS=$as_save_IFS
2056 if test "${ac_cv_path_install+set}" = set; then
2057 INSTALL=$ac_cv_path_install
2058 else
2059 # As a last resort, use the slow shell script. Don't cache a
2060 # value for INSTALL within a source directory, because that will
2061 # break other packages using the cache if that directory is
2062 # removed, or if the value is a relative name.
2063 INSTALL=$ac_install_sh
2066 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2067 echo "${ECHO_T}$INSTALL" >&6; }
2069 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2070 # It thinks the first close brace ends the variable substitution.
2071 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2073 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2075 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2077 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2078 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2079 # Just in case
2080 sleep 1
2081 echo timestamp > conftest.file
2082 # Do `set' in a subshell so we don't clobber the current shell's
2083 # arguments. Must try -L first in case configure is actually a
2084 # symlink; some systems play weird games with the mod time of symlinks
2085 # (eg FreeBSD returns the mod time of the symlink's containing
2086 # directory).
2087 if (
2088 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2089 if test "$*" = "X"; then
2090 # -L didn't work.
2091 set X `ls -t $srcdir/configure conftest.file`
2093 rm -f conftest.file
2094 if test "$*" != "X $srcdir/configure conftest.file" \
2095 && test "$*" != "X conftest.file $srcdir/configure"; then
2097 # If neither matched, then we have a broken ls. This can happen
2098 # if, for instance, CONFIG_SHELL is bash and it inherits a
2099 # broken ls alias from the environment. This has actually
2100 # happened. Such a system could not be considered "sane".
2101 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2102 alias in your environment" >&5
2103 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2104 alias in your environment" >&2;}
2105 { (exit 1); exit 1; }; }
2108 test "$2" = conftest.file
2110 then
2111 # Ok.
2113 else
2114 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2115 Check your system clock" >&5
2116 echo "$as_me: error: newly created file is older than distributed files!
2117 Check your system clock" >&2;}
2118 { (exit 1); exit 1; }; }
2120 { echo "$as_me:$LINENO: result: yes" >&5
2121 echo "${ECHO_T}yes" >&6; }
2122 test "$program_prefix" != NONE &&
2123 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2124 # Use a double $ so make ignores it.
2125 test "$program_suffix" != NONE &&
2126 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2127 # Double any \ or $. echo might interpret backslashes.
2128 # By default was `s,x,x', remove it if useless.
2129 cat <<\_ACEOF >conftest.sed
2130 s/[\\$]/&&/g;s/;s,x,x,$//
2131 _ACEOF
2132 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2133 rm -f conftest.sed
2135 # expand $ac_aux_dir to an absolute path
2136 am_aux_dir=`cd $ac_aux_dir && pwd`
2138 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2139 # Use eval to expand $SHELL
2140 if eval "$MISSING --run true"; then
2141 am_missing_run="$MISSING --run "
2142 else
2143 am_missing_run=
2144 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2145 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2148 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2149 # We used to keeping the `.' as first argument, in order to
2150 # allow $(mkdir_p) to be used without argument. As in
2151 # $(mkdir_p) $(somedir)
2152 # where $(somedir) is conditionally defined. However this is wrong
2153 # for two reasons:
2154 # 1. if the package is installed by a user who cannot write `.'
2155 # make install will fail,
2156 # 2. the above comment should most certainly read
2157 # $(mkdir_p) $(DESTDIR)$(somedir)
2158 # so it does not work when $(somedir) is undefined and
2159 # $(DESTDIR) is not.
2160 # To support the latter case, we have to write
2161 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2162 # so the `.' trick is pointless.
2163 mkdir_p='mkdir -p --'
2164 else
2165 # On NextStep and OpenStep, the `mkdir' command does not
2166 # recognize any option. It will interpret all options as
2167 # directories to create, and then abort because `.' already
2168 # exists.
2169 for d in ./-p ./--version;
2171 test -d $d && rmdir $d
2172 done
2173 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2174 if test -f "$ac_aux_dir/mkinstalldirs"; then
2175 mkdir_p='$(mkinstalldirs)'
2176 else
2177 mkdir_p='$(install_sh) -d'
2181 for ac_prog in gawk mawk nawk awk
2183 # Extract the first word of "$ac_prog", so it can be a program name with args.
2184 set dummy $ac_prog; ac_word=$2
2185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2187 if test "${ac_cv_prog_AWK+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190 if test -n "$AWK"; then
2191 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2192 else
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2196 IFS=$as_save_IFS
2197 test -z "$as_dir" && as_dir=.
2198 for ac_exec_ext in '' $ac_executable_extensions; do
2199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2200 ac_cv_prog_AWK="$ac_prog"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 break 2
2204 done
2205 done
2206 IFS=$as_save_IFS
2210 AWK=$ac_cv_prog_AWK
2211 if test -n "$AWK"; then
2212 { echo "$as_me:$LINENO: result: $AWK" >&5
2213 echo "${ECHO_T}$AWK" >&6; }
2214 else
2215 { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2220 test -n "$AWK" && break
2221 done
2223 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2224 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2225 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2226 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229 cat >conftest.make <<\_ACEOF
2230 SHELL = /bin/sh
2231 all:
2232 @echo '@@@%%%=$(MAKE)=@@@%%%'
2233 _ACEOF
2234 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2235 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2236 *@@@%%%=?*=@@@%%%*)
2237 eval ac_cv_prog_make_${ac_make}_set=yes;;
2239 eval ac_cv_prog_make_${ac_make}_set=no;;
2240 esac
2241 rm -f conftest.make
2243 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2244 { echo "$as_me:$LINENO: result: yes" >&5
2245 echo "${ECHO_T}yes" >&6; }
2246 SET_MAKE=
2247 else
2248 { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2250 SET_MAKE="MAKE=${MAKE-make}"
2253 rm -rf .tst 2>/dev/null
2254 mkdir .tst 2>/dev/null
2255 if test -d .tst; then
2256 am__leading_dot=.
2257 else
2258 am__leading_dot=_
2260 rmdir .tst 2>/dev/null
2262 # test to see if srcdir already configured
2263 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2264 test -f $srcdir/config.status; then
2265 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2266 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2267 { (exit 1); exit 1; }; }
2270 # test whether we have cygpath
2271 if test -z "$CYGPATH_W"; then
2272 if (cygpath --version) >/dev/null 2>/dev/null; then
2273 CYGPATH_W='cygpath -w'
2274 else
2275 CYGPATH_W=echo
2280 # Define the identity of the package.
2281 PACKAGE='mangos'
2282 VERSION='0.7-SVN'
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE "$PACKAGE"
2287 _ACEOF
2290 cat >>confdefs.h <<_ACEOF
2291 #define VERSION "$VERSION"
2292 _ACEOF
2294 # Some tools Automake needs.
2296 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2299 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2302 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2305 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2308 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2310 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2312 # Installed binaries are usually stripped using `strip' when the user
2313 # run `make install-strip'. However `strip' might not be the right
2314 # tool to use in cross-compilation environments, therefore Automake
2315 # will honor the `STRIP' environment variable to overrule this program.
2316 if test "$cross_compiling" != no; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_STRIP+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 break 2
2339 done
2340 done
2341 IFS=$as_save_IFS
2345 STRIP=$ac_cv_prog_STRIP
2346 if test -n "$STRIP"; then
2347 { echo "$as_me:$LINENO: result: $STRIP" >&5
2348 echo "${ECHO_T}$STRIP" >&6; }
2349 else
2350 { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2356 if test -z "$ac_cv_prog_STRIP"; then
2357 ac_ct_STRIP=$STRIP
2358 # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 if test -n "$ac_ct_STRIP"; then
2366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_ac_ct_STRIP="strip"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 break 2
2379 done
2380 done
2381 IFS=$as_save_IFS
2385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386 if test -n "$ac_ct_STRIP"; then
2387 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2388 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2389 else
2390 { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2394 if test "x$ac_ct_STRIP" = x; then
2395 STRIP=":"
2396 else
2397 case $cross_compiling:$ac_tool_warned in
2398 yes:)
2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&5
2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet. If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405 ac_tool_warned=yes ;;
2406 esac
2407 STRIP=$ac_ct_STRIP
2409 else
2410 STRIP="$ac_cv_prog_STRIP"
2414 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2416 # We need awk for the "check" target. The system "awk" is bad on
2417 # some platforms.
2418 # Always define AMTAR for backward compatibility.
2420 AMTAR=${AMTAR-"${am_missing_run}tar"}
2422 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2428 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2429 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2430 # Check whether --enable-maintainer-mode was given.
2431 if test "${enable_maintainer_mode+set}" = set; then
2432 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2433 else
2434 USE_MAINTAINER_MODE=no
2437 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2438 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2441 if test $USE_MAINTAINER_MODE = yes; then
2442 MAINTAINER_MODE_TRUE=
2443 MAINTAINER_MODE_FALSE='#'
2444 else
2445 MAINTAINER_MODE_TRUE='#'
2446 MAINTAINER_MODE_FALSE=
2449 MAINT=$MAINTAINER_MODE_TRUE
2453 ac_ext=c
2454 ac_cpp='$CPP $CPPFLAGS'
2455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458 if test -n "$ac_tool_prefix"; then
2459 for ac_prog in gcc cc
2461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_CC+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC="$CC" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480 break 2
2482 done
2483 done
2484 IFS=$as_save_IFS
2488 CC=$ac_cv_prog_CC
2489 if test -n "$CC"; then
2490 { echo "$as_me:$LINENO: result: $CC" >&5
2491 echo "${ECHO_T}$CC" >&6; }
2492 else
2493 { echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6; }
2498 test -n "$CC" && break
2499 done
2501 if test -z "$CC"; then
2502 ac_ct_CC=$CC
2503 for ac_prog in gcc cc
2505 # Extract the first word of "$ac_prog", so it can be a program name with args.
2506 set dummy $ac_prog; ac_word=$2
2507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512 if test -n "$ac_ct_CC"; then
2513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_ac_ct_CC="$ac_prog"
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2526 done
2527 done
2528 IFS=$as_save_IFS
2532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2533 if test -n "$ac_ct_CC"; then
2534 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2535 echo "${ECHO_T}$ac_ct_CC" >&6; }
2536 else
2537 { echo "$as_me:$LINENO: result: no" >&5
2538 echo "${ECHO_T}no" >&6; }
2542 test -n "$ac_ct_CC" && break
2543 done
2545 if test "x$ac_ct_CC" = x; then
2546 CC=""
2547 else
2548 case $cross_compiling:$ac_tool_warned in
2549 yes:)
2550 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2551 whose name does not start with the host triplet. If you think this
2552 configuration is useful to you, please write to autoconf@gnu.org." >&5
2553 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2554 whose name does not start with the host triplet. If you think this
2555 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2556 ac_tool_warned=yes ;;
2557 esac
2558 CC=$ac_ct_CC
2563 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2564 See \`config.log' for more details." >&5
2565 echo "$as_me: error: no acceptable C compiler found in \$PATH
2566 See \`config.log' for more details." >&2;}
2567 { (exit 1); exit 1; }; }
2569 # Provide some information about the compiler.
2570 echo "$as_me:$LINENO: checking for C compiler version" >&5
2571 ac_compiler=`set X $ac_compile; echo $2`
2572 { (ac_try="$ac_compiler --version >&5"
2573 case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2576 esac
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_compiler --version >&5") 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }
2582 { (ac_try="$ac_compiler -v >&5"
2583 case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586 esac
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_compiler -v >&5") 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }
2592 { (ac_try="$ac_compiler -V >&5"
2593 case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_compiler -V >&5") 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }
2603 cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h. */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2611 main ()
2615 return 0;
2617 _ACEOF
2618 ac_clean_files_save=$ac_clean_files
2619 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2620 # Try to create an executable without -o first, disregard a.out.
2621 # It will help us diagnose broken compilers, and finding out an intuition
2622 # of exeext.
2623 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2624 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2625 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2627 # List of possible output files, starting from the most likely.
2628 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2629 # only as a last resort. b.out is created by i960 compilers.
2630 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2632 # The IRIX 6 linker writes into existing files which may not be
2633 # executable, retaining their permissions. Remove them first so a
2634 # subsequent execution test works.
2635 ac_rmfiles=
2636 for ac_file in $ac_files
2638 case $ac_file in
2639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2640 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2641 esac
2642 done
2643 rm -f $ac_rmfiles
2645 if { (ac_try="$ac_link_default"
2646 case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649 esac
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_link_default") 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; then
2655 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2656 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2657 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2658 # so that the user can short-circuit this test for compilers unknown to
2659 # Autoconf.
2660 for ac_file in $ac_files
2662 test -f "$ac_file" || continue
2663 case $ac_file in
2664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2666 [ab].out )
2667 # We found the default executable, but exeext='' is most
2668 # certainly right.
2669 break;;
2670 *.* )
2671 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2672 then :; else
2673 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2675 # We set ac_cv_exeext here because the later test for it is not
2676 # safe: cross compilers may not add the suffix if given an `-o'
2677 # argument, so we may need to know it at that point already.
2678 # Even if this section looks crufty: it has the advantage of
2679 # actually working.
2680 break;;
2682 break;;
2683 esac
2684 done
2685 test "$ac_cv_exeext" = no && ac_cv_exeext=
2687 else
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2691 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: C compiler cannot create executables
2694 See \`config.log' for more details." >&2;}
2695 { (exit 77); exit 77; }; }
2698 ac_exeext=$ac_cv_exeext
2699 { echo "$as_me:$LINENO: result: $ac_file" >&5
2700 echo "${ECHO_T}$ac_file" >&6; }
2702 # Check that the compiler produces executables we can run. If not, either
2703 # the compiler is broken, or we cross compile.
2704 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2705 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2706 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2707 # If not cross compiling, check that we can run a simple program.
2708 if test "$cross_compiling" != yes; then
2709 if { ac_try='./$ac_file'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 cross_compiling=no
2720 else
2721 if test "$cross_compiling" = maybe; then
2722 cross_compiling=yes
2723 else
2724 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2725 If you meant to cross compile, use \`--host'.
2726 See \`config.log' for more details." >&5
2727 echo "$as_me: error: cannot run C compiled programs.
2728 If you meant to cross compile, use \`--host'.
2729 See \`config.log' for more details." >&2;}
2730 { (exit 1); exit 1; }; }
2734 { echo "$as_me:$LINENO: result: yes" >&5
2735 echo "${ECHO_T}yes" >&6; }
2737 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2738 ac_clean_files=$ac_clean_files_save
2739 # Check that the compiler produces executables we can run. If not, either
2740 # the compiler is broken, or we cross compile.
2741 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2742 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2743 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2744 echo "${ECHO_T}$cross_compiling" >&6; }
2746 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2747 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2748 if { (ac_try="$ac_link"
2749 case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_link") 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; then
2758 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2759 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2760 # work properly (i.e., refer to `conftest.exe'), while it won't with
2761 # `rm'.
2762 for ac_file in conftest.exe conftest conftest.*; do
2763 test -f "$ac_file" || continue
2764 case $ac_file in
2765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2766 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2767 break;;
2768 * ) break;;
2769 esac
2770 done
2771 else
2772 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2773 See \`config.log' for more details." >&5
2774 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2775 See \`config.log' for more details." >&2;}
2776 { (exit 1); exit 1; }; }
2779 rm -f conftest$ac_cv_exeext
2780 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2781 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2783 rm -f conftest.$ac_ext
2784 EXEEXT=$ac_cv_exeext
2785 ac_exeext=$EXEEXT
2786 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2787 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2788 if test "${ac_cv_objext+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2790 else
2791 cat >conftest.$ac_ext <<_ACEOF
2792 /* confdefs.h. */
2793 _ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h. */
2799 main ()
2803 return 0;
2805 _ACEOF
2806 rm -f conftest.o conftest.obj
2807 if { (ac_try="$ac_compile"
2808 case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811 esac
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_compile") 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; then
2817 for ac_file in conftest.o conftest.obj conftest.*; do
2818 test -f "$ac_file" || continue;
2819 case $ac_file in
2820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2821 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2822 break;;
2823 esac
2824 done
2825 else
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2829 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2830 See \`config.log' for more details." >&5
2831 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2832 See \`config.log' for more details." >&2;}
2833 { (exit 1); exit 1; }; }
2836 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2838 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2839 echo "${ECHO_T}$ac_cv_objext" >&6; }
2840 OBJEXT=$ac_cv_objext
2841 ac_objext=$OBJEXT
2842 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2843 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2844 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847 cat >conftest.$ac_ext <<_ACEOF
2848 /* confdefs.h. */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2855 main ()
2857 #ifndef __GNUC__
2858 choke me
2859 #endif
2862 return 0;
2864 _ACEOF
2865 rm -f conftest.$ac_objext
2866 if { (ac_try="$ac_compile"
2867 case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870 esac
2871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2872 (eval "$ac_compile") 2>conftest.er1
2873 ac_status=$?
2874 grep -v '^ *+' conftest.er1 >conftest.err
2875 rm -f conftest.er1
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2880 { (case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883 esac
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_try") 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_try") 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2899 ac_compiler_gnu=yes
2900 else
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2904 ac_compiler_gnu=no
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2911 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2913 GCC=`test $ac_compiler_gnu = yes && echo yes`
2914 ac_test_CFLAGS=${CFLAGS+set}
2915 ac_save_CFLAGS=$CFLAGS
2916 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2917 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2918 if test "${ac_cv_prog_cc_g+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921 ac_save_c_werror_flag=$ac_c_werror_flag
2922 ac_c_werror_flag=yes
2923 ac_cv_prog_cc_g=no
2924 CFLAGS="-g"
2925 cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h. */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2933 main ()
2937 return 0;
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (ac_try="$ac_compile"
2942 case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>conftest.er1
2948 ac_status=$?
2949 grep -v '^ *+' conftest.er1 >conftest.err
2950 rm -f conftest.er1
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } &&
2954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 ac_cv_prog_cc_g=yes
2975 else
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 CFLAGS=""
2980 cat >conftest.$ac_ext <<_ACEOF
2981 /* confdefs.h. */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2988 main ()
2992 return 0;
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2997 case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3030 else
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3034 ac_c_werror_flag=$ac_save_c_werror_flag
3035 CFLAGS="-g"
3036 cat >conftest.$ac_ext <<_ACEOF
3037 /* confdefs.h. */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3044 main ()
3048 return 0;
3050 _ACEOF
3051 rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compile") 2>conftest.er1
3059 ac_status=$?
3060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
3065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3066 { (case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_try") 2>&5
3072 ac_status=$?
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; } &&
3075 { ac_try='test -s conftest.$ac_objext'
3076 { (case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_try") 2>&5
3082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
3085 ac_cv_prog_cc_g=yes
3086 else
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3100 ac_c_werror_flag=$ac_save_c_werror_flag
3102 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3103 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3104 if test "$ac_test_CFLAGS" = set; then
3105 CFLAGS=$ac_save_CFLAGS
3106 elif test $ac_cv_prog_cc_g = yes; then
3107 if test "$GCC" = yes; then
3108 CFLAGS="-g -O2"
3109 else
3110 CFLAGS="-g"
3112 else
3113 if test "$GCC" = yes; then
3114 CFLAGS="-O2"
3115 else
3116 CFLAGS=
3119 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3120 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3121 if test "${ac_cv_prog_cc_c89+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124 ac_cv_prog_cc_c89=no
3125 ac_save_CC=$CC
3126 cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h. */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3132 #include <stdarg.h>
3133 #include <stdio.h>
3134 #include <sys/types.h>
3135 #include <sys/stat.h>
3136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3137 struct buf { int x; };
3138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3139 static char *e (p, i)
3140 char **p;
3141 int i;
3143 return p[i];
3145 static char *f (char * (*g) (char **, int), char **p, ...)
3147 char *s;
3148 va_list v;
3149 va_start (v,p);
3150 s = g (p, va_arg (v,int));
3151 va_end (v);
3152 return s;
3155 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3156 function prototypes and stuff, but not '\xHH' hex character constants.
3157 These don't provoke an error unfortunately, instead are silently treated
3158 as 'x'. The following induces an error, until -std is added to get
3159 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3160 array size at least. It's necessary to write '\x00'==0 to get something
3161 that's true only with -std. */
3162 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3164 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3165 inside strings and character constants. */
3166 #define FOO(x) 'x'
3167 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3169 int test (int i, double x);
3170 struct s1 {int (*f) (int a);};
3171 struct s2 {int (*f) (double a);};
3172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3173 int argc;
3174 char **argv;
3176 main ()
3178 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3180 return 0;
3182 _ACEOF
3183 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3184 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3186 CC="$ac_save_CC $ac_arg"
3187 rm -f conftest.$ac_objext
3188 if { (ac_try="$ac_compile"
3189 case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_compile") 2>conftest.er1
3195 ac_status=$?
3196 grep -v '^ *+' conftest.er1 >conftest.err
3197 rm -f conftest.er1
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } &&
3201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3202 { (case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_try") 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; } &&
3211 { ac_try='test -s conftest.$ac_objext'
3212 { (case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_try") 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; }; then
3221 ac_cv_prog_cc_c89=$ac_arg
3222 else
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3229 rm -f core conftest.err conftest.$ac_objext
3230 test "x$ac_cv_prog_cc_c89" != "xno" && break
3231 done
3232 rm -f conftest.$ac_ext
3233 CC=$ac_save_CC
3236 # AC_CACHE_VAL
3237 case "x$ac_cv_prog_cc_c89" in
3239 { echo "$as_me:$LINENO: result: none needed" >&5
3240 echo "${ECHO_T}none needed" >&6; } ;;
3241 xno)
3242 { echo "$as_me:$LINENO: result: unsupported" >&5
3243 echo "${ECHO_T}unsupported" >&6; } ;;
3245 CC="$CC $ac_cv_prog_cc_c89"
3246 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3247 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3248 esac
3251 ac_ext=c
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 DEPDIR="${am__leading_dot}deps"
3258 ac_config_commands="$ac_config_commands depfiles"
3261 am_make=${MAKE-make}
3262 cat > confinc << 'END'
3263 am__doit:
3264 @echo done
3265 .PHONY: am__doit
3267 # If we don't find an include directive, just comment out the code.
3268 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3269 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3270 am__include="#"
3271 am__quote=
3272 _am_result=none
3273 # First try GNU make style include.
3274 echo "include confinc" > confmf
3275 # We grep out `Entering directory' and `Leaving directory'
3276 # messages which can occur if `w' ends up in MAKEFLAGS.
3277 # In particular we don't look at `^make:' because GNU make might
3278 # be invoked under some other name (usually "gmake"), in which
3279 # case it prints its new name instead of `make'.
3280 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3281 am__include=include
3282 am__quote=
3283 _am_result=GNU
3285 # Now try BSD make style include.
3286 if test "$am__include" = "#"; then
3287 echo '.include "confinc"' > confmf
3288 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3289 am__include=.include
3290 am__quote="\""
3291 _am_result=BSD
3296 { echo "$as_me:$LINENO: result: $_am_result" >&5
3297 echo "${ECHO_T}$_am_result" >&6; }
3298 rm -f confinc confmf
3300 # Check whether --enable-dependency-tracking was given.
3301 if test "${enable_dependency_tracking+set}" = set; then
3302 enableval=$enable_dependency_tracking;
3305 if test "x$enable_dependency_tracking" != xno; then
3306 am_depcomp="$ac_aux_dir/depcomp"
3307 AMDEPBACKSLASH='\'
3311 if test "x$enable_dependency_tracking" != xno; then
3312 AMDEP_TRUE=
3313 AMDEP_FALSE='#'
3314 else
3315 AMDEP_TRUE='#'
3316 AMDEP_FALSE=
3322 depcc="$CC" am_compiler_list=
3324 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3325 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3326 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3330 # We make a subdir and do the tests there. Otherwise we can end up
3331 # making bogus files that we don't know about and never remove. For
3332 # instance it was reported that on HP-UX the gcc test will end up
3333 # making a dummy file named `D' -- because `-MD' means `put the output
3334 # in D'.
3335 mkdir conftest.dir
3336 # Copy depcomp to subdir because otherwise we won't find it if we're
3337 # using a relative directory.
3338 cp "$am_depcomp" conftest.dir
3339 cd conftest.dir
3340 # We will build objects and dependencies in a subdirectory because
3341 # it helps to detect inapplicable dependency modes. For instance
3342 # both Tru64's cc and ICC support -MD to output dependencies as a
3343 # side effect of compilation, but ICC will put the dependencies in
3344 # the current directory while Tru64 will put them in the object
3345 # directory.
3346 mkdir sub
3348 am_cv_CC_dependencies_compiler_type=none
3349 if test "$am_compiler_list" = ""; then
3350 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3352 for depmode in $am_compiler_list; do
3353 # Setup a source with many dependencies, because some compilers
3354 # like to wrap large dependency lists on column 80 (with \), and
3355 # we should not choose a depcomp mode which is confused by this.
3357 # We need to recreate these files for each test, as the compiler may
3358 # overwrite some of them when testing with obscure command lines.
3359 # This happens at least with the AIX C compiler.
3360 : > sub/conftest.c
3361 for i in 1 2 3 4 5 6; do
3362 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3363 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3364 # Solaris 8's {/usr,}/bin/sh.
3365 touch sub/conftst$i.h
3366 done
3367 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3369 case $depmode in
3370 nosideeffect)
3371 # after this tag, mechanisms are not by side-effect, so they'll
3372 # only be used when explicitly requested
3373 if test "x$enable_dependency_tracking" = xyes; then
3374 continue
3375 else
3376 break
3379 none) break ;;
3380 esac
3381 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3382 # mode. It turns out that the SunPro C++ compiler does not properly
3383 # handle `-M -o', and we need to detect this.
3384 if depmode=$depmode \
3385 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3386 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3387 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3388 >/dev/null 2>conftest.err &&
3389 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3390 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3391 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3392 # icc doesn't choke on unknown options, it will just issue warnings
3393 # or remarks (even with -Werror). So we grep stderr for any message
3394 # that says an option was ignored or not supported.
3395 # When given -MP, icc 7.0 and 7.1 complain thusly:
3396 # icc: Command line warning: ignoring option '-M'; no argument required
3397 # The diagnosis changed in icc 8.0:
3398 # icc: Command line remark: option '-MP' not supported
3399 if (grep 'ignoring option' conftest.err ||
3400 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3401 am_cv_CC_dependencies_compiler_type=$depmode
3402 break
3405 done
3407 cd ..
3408 rm -rf conftest.dir
3409 else
3410 am_cv_CC_dependencies_compiler_type=none
3414 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3415 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3416 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3421 test "x$enable_dependency_tracking" != xno \
3422 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3423 am__fastdepCC_TRUE=
3424 am__fastdepCC_FALSE='#'
3425 else
3426 am__fastdepCC_TRUE='#'
3427 am__fastdepCC_FALSE=
3431 ac_ext=cpp
3432 ac_cpp='$CXXCPP $CPPFLAGS'
3433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3436 if test -z "$CXX"; then
3437 if test -n "$CCC"; then
3438 CXX=$CCC
3439 else
3440 if test -n "$ac_tool_prefix"; then
3441 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3447 if test "${ac_cv_prog_CXX+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 if test -n "$CXX"; then
3451 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3460 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 break 2
3464 done
3465 done
3466 IFS=$as_save_IFS
3470 CXX=$ac_cv_prog_CXX
3471 if test -n "$CXX"; then
3472 { echo "$as_me:$LINENO: result: $CXX" >&5
3473 echo "${ECHO_T}$CXX" >&6; }
3474 else
3475 { echo "$as_me:$LINENO: result: no" >&5
3476 echo "${ECHO_T}no" >&6; }
3480 test -n "$CXX" && break
3481 done
3483 if test -z "$CXX"; then
3484 ac_ct_CXX=$CXX
3485 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3487 # Extract the first word of "$ac_prog", so it can be a program name with args.
3488 set dummy $ac_prog; ac_word=$2
3489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3491 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494 if test -n "$ac_ct_CXX"; then
3495 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3500 IFS=$as_save_IFS
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3504 ac_cv_prog_ac_ct_CXX="$ac_prog"
3505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 break 2
3508 done
3509 done
3510 IFS=$as_save_IFS
3514 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3515 if test -n "$ac_ct_CXX"; then
3516 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3517 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3518 else
3519 { echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6; }
3524 test -n "$ac_ct_CXX" && break
3525 done
3527 if test "x$ac_ct_CXX" = x; then
3528 CXX="g++"
3529 else
3530 case $cross_compiling:$ac_tool_warned in
3531 yes:)
3532 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3533 whose name does not start with the host triplet. If you think this
3534 configuration is useful to you, please write to autoconf@gnu.org." >&5
3535 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3536 whose name does not start with the host triplet. If you think this
3537 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3538 ac_tool_warned=yes ;;
3539 esac
3540 CXX=$ac_ct_CXX
3546 # Provide some information about the compiler.
3547 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3548 ac_compiler=`set X $ac_compile; echo $2`
3549 { (ac_try="$ac_compiler --version >&5"
3550 case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553 esac
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_compiler --version >&5") 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }
3559 { (ac_try="$ac_compiler -v >&5"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_compiler -v >&5") 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }
3569 { (ac_try="$ac_compiler -V >&5"
3570 case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compiler -V >&5") 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }
3580 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3581 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3582 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585 cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h. */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3593 main ()
3595 #ifndef __GNUC__
3596 choke me
3597 #endif
3600 return 0;
3602 _ACEOF
3603 rm -f conftest.$ac_objext
3604 if { (ac_try="$ac_compile"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_compile") 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3618 { (case "(($ac_try" in
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3621 esac
3622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623 (eval "$ac_try") 2>&5
3624 ac_status=$?
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; } &&
3627 { ac_try='test -s conftest.$ac_objext'
3628 { (case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631 esac
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_try") 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 ac_compiler_gnu=yes
3638 else
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 ac_compiler_gnu=no
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3649 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3650 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3651 GXX=`test $ac_compiler_gnu = yes && echo yes`
3652 ac_test_CXXFLAGS=${CXXFLAGS+set}
3653 ac_save_CXXFLAGS=$CXXFLAGS
3654 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3655 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3656 if test "${ac_cv_prog_cxx_g+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3660 ac_cxx_werror_flag=yes
3661 ac_cv_prog_cxx_g=no
3662 CXXFLAGS="-g"
3663 cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h. */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3671 main ()
3675 return 0;
3677 _ACEOF
3678 rm -f conftest.$ac_objext
3679 if { (ac_try="$ac_compile"
3680 case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3683 esac
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3686 ac_status=$?
3687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } &&
3692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3693 { (case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_try") 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; } &&
3702 { ac_try='test -s conftest.$ac_objext'
3703 { (case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_try") 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3712 ac_cv_prog_cxx_g=yes
3713 else
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3717 CXXFLAGS=""
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3726 main ()
3730 return 0;
3732 _ACEOF
3733 rm -f conftest.$ac_objext
3734 if { (ac_try="$ac_compile"
3735 case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_compile") 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3748 { (case "(($ac_try" in
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3751 esac
3752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3753 (eval "$ac_try") 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; } &&
3757 { ac_try='test -s conftest.$ac_objext'
3758 { (case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3763 (eval "$ac_try") 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3768 else
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3772 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3773 CXXFLAGS="-g"
3774 cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h. */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3782 main ()
3786 return 0;
3788 _ACEOF
3789 rm -f conftest.$ac_objext
3790 if { (ac_try="$ac_compile"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_compile") 2>conftest.er1
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3804 { (case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_try") 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest.$ac_objext'
3814 { (case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819 (eval "$ac_try") 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_prog_cxx_g=yes
3824 else
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3840 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3841 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3842 if test "$ac_test_CXXFLAGS" = set; then
3843 CXXFLAGS=$ac_save_CXXFLAGS
3844 elif test $ac_cv_prog_cxx_g = yes; then
3845 if test "$GXX" = yes; then
3846 CXXFLAGS="-g -O2"
3847 else
3848 CXXFLAGS="-g"
3850 else
3851 if test "$GXX" = yes; then
3852 CXXFLAGS="-O2"
3853 else
3854 CXXFLAGS=
3857 ac_ext=c
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863 depcc="$CXX" am_compiler_list=
3865 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3866 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3867 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3871 # We make a subdir and do the tests there. Otherwise we can end up
3872 # making bogus files that we don't know about and never remove. For
3873 # instance it was reported that on HP-UX the gcc test will end up
3874 # making a dummy file named `D' -- because `-MD' means `put the output
3875 # in D'.
3876 mkdir conftest.dir
3877 # Copy depcomp to subdir because otherwise we won't find it if we're
3878 # using a relative directory.
3879 cp "$am_depcomp" conftest.dir
3880 cd conftest.dir
3881 # We will build objects and dependencies in a subdirectory because
3882 # it helps to detect inapplicable dependency modes. For instance
3883 # both Tru64's cc and ICC support -MD to output dependencies as a
3884 # side effect of compilation, but ICC will put the dependencies in
3885 # the current directory while Tru64 will put them in the object
3886 # directory.
3887 mkdir sub
3889 am_cv_CXX_dependencies_compiler_type=none
3890 if test "$am_compiler_list" = ""; then
3891 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3893 for depmode in $am_compiler_list; do
3894 # Setup a source with many dependencies, because some compilers
3895 # like to wrap large dependency lists on column 80 (with \), and
3896 # we should not choose a depcomp mode which is confused by this.
3898 # We need to recreate these files for each test, as the compiler may
3899 # overwrite some of them when testing with obscure command lines.
3900 # This happens at least with the AIX C compiler.
3901 : > sub/conftest.c
3902 for i in 1 2 3 4 5 6; do
3903 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3904 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3905 # Solaris 8's {/usr,}/bin/sh.
3906 touch sub/conftst$i.h
3907 done
3908 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3910 case $depmode in
3911 nosideeffect)
3912 # after this tag, mechanisms are not by side-effect, so they'll
3913 # only be used when explicitly requested
3914 if test "x$enable_dependency_tracking" = xyes; then
3915 continue
3916 else
3917 break
3920 none) break ;;
3921 esac
3922 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3923 # mode. It turns out that the SunPro C++ compiler does not properly
3924 # handle `-M -o', and we need to detect this.
3925 if depmode=$depmode \
3926 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3927 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3928 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3929 >/dev/null 2>conftest.err &&
3930 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3931 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3932 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3933 # icc doesn't choke on unknown options, it will just issue warnings
3934 # or remarks (even with -Werror). So we grep stderr for any message
3935 # that says an option was ignored or not supported.
3936 # When given -MP, icc 7.0 and 7.1 complain thusly:
3937 # icc: Command line warning: ignoring option '-M'; no argument required
3938 # The diagnosis changed in icc 8.0:
3939 # icc: Command line remark: option '-MP' not supported
3940 if (grep 'ignoring option' conftest.err ||
3941 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3942 am_cv_CXX_dependencies_compiler_type=$depmode
3943 break
3946 done
3948 cd ..
3949 rm -rf conftest.dir
3950 else
3951 am_cv_CXX_dependencies_compiler_type=none
3955 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3956 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3957 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3962 test "x$enable_dependency_tracking" != xno \
3963 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3964 am__fastdepCXX_TRUE=
3965 am__fastdepCXX_FALSE='#'
3966 else
3967 am__fastdepCXX_TRUE='#'
3968 am__fastdepCXX_FALSE=
3972 # Check whether --enable-shared was given.
3973 if test "${enable_shared+set}" = set; then
3974 enableval=$enable_shared; p=${PACKAGE-default}
3975 case $enableval in
3976 yes) enable_shared=yes ;;
3977 no) enable_shared=no ;;
3979 enable_shared=no
3980 # Look at the argument we got. We use all the common list separators.
3981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3982 for pkg in $enableval; do
3983 IFS="$lt_save_ifs"
3984 if test "X$pkg" = "X$p"; then
3985 enable_shared=yes
3987 done
3988 IFS="$lt_save_ifs"
3990 esac
3991 else
3992 enable_shared=yes
3996 # Check whether --enable-static was given.
3997 if test "${enable_static+set}" = set; then
3998 enableval=$enable_static; p=${PACKAGE-default}
3999 case $enableval in
4000 yes) enable_static=yes ;;
4001 no) enable_static=no ;;
4003 enable_static=no
4004 # Look at the argument we got. We use all the common list separators.
4005 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4006 for pkg in $enableval; do
4007 IFS="$lt_save_ifs"
4008 if test "X$pkg" = "X$p"; then
4009 enable_static=yes
4011 done
4012 IFS="$lt_save_ifs"
4014 esac
4015 else
4016 enable_static=yes
4020 # Check whether --enable-fast-install was given.
4021 if test "${enable_fast_install+set}" = set; then
4022 enableval=$enable_fast_install; p=${PACKAGE-default}
4023 case $enableval in
4024 yes) enable_fast_install=yes ;;
4025 no) enable_fast_install=no ;;
4027 enable_fast_install=no
4028 # Look at the argument we got. We use all the common list separators.
4029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4030 for pkg in $enableval; do
4031 IFS="$lt_save_ifs"
4032 if test "X$pkg" = "X$p"; then
4033 enable_fast_install=yes
4035 done
4036 IFS="$lt_save_ifs"
4038 esac
4039 else
4040 enable_fast_install=yes
4044 # Make sure we can run config.sub.
4045 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4046 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4047 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4048 { (exit 1); exit 1; }; }
4050 { echo "$as_me:$LINENO: checking build system type" >&5
4051 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4052 if test "${ac_cv_build+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055 ac_build_alias=$build_alias
4056 test "x$ac_build_alias" = x &&
4057 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4058 test "x$ac_build_alias" = x &&
4059 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4060 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4061 { (exit 1); exit 1; }; }
4062 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4063 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4064 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4065 { (exit 1); exit 1; }; }
4068 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4069 echo "${ECHO_T}$ac_cv_build" >&6; }
4070 case $ac_cv_build in
4071 *-*-*) ;;
4072 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4073 echo "$as_me: error: invalid value of canonical build" >&2;}
4074 { (exit 1); exit 1; }; };;
4075 esac
4076 build=$ac_cv_build
4077 ac_save_IFS=$IFS; IFS='-'
4078 set x $ac_cv_build
4079 shift
4080 build_cpu=$1
4081 build_vendor=$2
4082 shift; shift
4083 # Remember, the first character of IFS is used to create $*,
4084 # except with old shells:
4085 build_os=$*
4086 IFS=$ac_save_IFS
4087 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4090 { echo "$as_me:$LINENO: checking host system type" >&5
4091 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4092 if test "${ac_cv_host+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095 if test "x$host_alias" = x; then
4096 ac_cv_host=$ac_cv_build
4097 else
4098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4099 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4100 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4101 { (exit 1); exit 1; }; }
4105 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4106 echo "${ECHO_T}$ac_cv_host" >&6; }
4107 case $ac_cv_host in
4108 *-*-*) ;;
4109 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4110 echo "$as_me: error: invalid value of canonical host" >&2;}
4111 { (exit 1); exit 1; }; };;
4112 esac
4113 host=$ac_cv_host
4114 ac_save_IFS=$IFS; IFS='-'
4115 set x $ac_cv_host
4116 shift
4117 host_cpu=$1
4118 host_vendor=$2
4119 shift; shift
4120 # Remember, the first character of IFS is used to create $*,
4121 # except with old shells:
4122 host_os=$*
4123 IFS=$ac_save_IFS
4124 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4127 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4128 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4129 if test "${lt_cv_path_SED+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 # Loop through the user's path and test for sed and gsed.
4133 # Then use that list of sed's as ones to test for truncation.
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for lt_ac_prog in sed gsed; do
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4142 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4144 done
4145 done
4146 done
4147 lt_ac_max=0
4148 lt_ac_count=0
4149 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4150 # along with /bin/sed that truncates output.
4151 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4152 test ! -f $lt_ac_sed && continue
4153 cat /dev/null > conftest.in
4154 lt_ac_count=0
4155 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4156 # Check for GNU sed and select it if it is found.
4157 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4158 lt_cv_path_SED=$lt_ac_sed
4159 break
4161 while true; do
4162 cat conftest.in conftest.in >conftest.tmp
4163 mv conftest.tmp conftest.in
4164 cp conftest.in conftest.nl
4165 echo >>conftest.nl
4166 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4167 cmp -s conftest.out conftest.nl || break
4168 # 10000 chars as input seems more than enough
4169 test $lt_ac_count -gt 10 && break
4170 lt_ac_count=`expr $lt_ac_count + 1`
4171 if test $lt_ac_count -gt $lt_ac_max; then
4172 lt_ac_max=$lt_ac_count
4173 lt_cv_path_SED=$lt_ac_sed
4175 done
4176 done
4180 SED=$lt_cv_path_SED
4181 { echo "$as_me:$LINENO: result: $SED" >&5
4182 echo "${ECHO_T}$SED" >&6; }
4184 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4185 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4186 if test "${ac_cv_path_GREP+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189 # Extract the first word of "grep ggrep" to use in msg output
4190 if test -z "$GREP"; then
4191 set dummy grep ggrep; ac_prog_name=$2
4192 if test "${ac_cv_path_GREP+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195 ac_path_GREP_found=false
4196 # Loop through the user's path and test for each of PROGNAME-LIST
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_prog in grep ggrep; do
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4205 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4206 # Check for GNU ac_path_GREP and select it if it is found.
4207 # Check for GNU $ac_path_GREP
4208 case `"$ac_path_GREP" --version 2>&1` in
4209 *GNU*)
4210 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4212 ac_count=0
4213 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4214 while :
4216 cat "conftest.in" "conftest.in" >"conftest.tmp"
4217 mv "conftest.tmp" "conftest.in"
4218 cp "conftest.in" "conftest.nl"
4219 echo 'GREP' >> "conftest.nl"
4220 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4222 ac_count=`expr $ac_count + 1`
4223 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4224 # Best one so far, save it but keep looking for a better one
4225 ac_cv_path_GREP="$ac_path_GREP"
4226 ac_path_GREP_max=$ac_count
4228 # 10*(2^10) chars as input seems more than enough
4229 test $ac_count -gt 10 && break
4230 done
4231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232 esac
4235 $ac_path_GREP_found && break 3
4236 done
4237 done
4239 done
4240 IFS=$as_save_IFS
4245 GREP="$ac_cv_path_GREP"
4246 if test -z "$GREP"; then
4247 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4248 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4249 { (exit 1); exit 1; }; }
4252 else
4253 ac_cv_path_GREP=$GREP
4258 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4259 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4260 GREP="$ac_cv_path_GREP"
4263 { echo "$as_me:$LINENO: checking for egrep" >&5
4264 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4265 if test "${ac_cv_path_EGREP+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4269 then ac_cv_path_EGREP="$GREP -E"
4270 else
4271 # Extract the first word of "egrep" to use in msg output
4272 if test -z "$EGREP"; then
4273 set dummy egrep; ac_prog_name=$2
4274 if test "${ac_cv_path_EGREP+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277 ac_path_EGREP_found=false
4278 # Loop through the user's path and test for each of PROGNAME-LIST
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_prog in egrep; do
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4287 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4288 # Check for GNU ac_path_EGREP and select it if it is found.
4289 # Check for GNU $ac_path_EGREP
4290 case `"$ac_path_EGREP" --version 2>&1` in
4291 *GNU*)
4292 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4294 ac_count=0
4295 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4296 while :
4298 cat "conftest.in" "conftest.in" >"conftest.tmp"
4299 mv "conftest.tmp" "conftest.in"
4300 cp "conftest.in" "conftest.nl"
4301 echo 'EGREP' >> "conftest.nl"
4302 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4303 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4304 ac_count=`expr $ac_count + 1`
4305 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4306 # Best one so far, save it but keep looking for a better one
4307 ac_cv_path_EGREP="$ac_path_EGREP"
4308 ac_path_EGREP_max=$ac_count
4310 # 10*(2^10) chars as input seems more than enough
4311 test $ac_count -gt 10 && break
4312 done
4313 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4314 esac
4317 $ac_path_EGREP_found && break 3
4318 done
4319 done
4321 done
4322 IFS=$as_save_IFS
4327 EGREP="$ac_cv_path_EGREP"
4328 if test -z "$EGREP"; then
4329 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4330 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4331 { (exit 1); exit 1; }; }
4334 else
4335 ac_cv_path_EGREP=$EGREP
4341 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4342 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4343 EGREP="$ac_cv_path_EGREP"
4347 # Check whether --with-gnu-ld was given.
4348 if test "${with_gnu_ld+set}" = set; then
4349 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4350 else
4351 with_gnu_ld=no
4354 ac_prog=ld
4355 if test "$GCC" = yes; then
4356 # Check if gcc -print-prog-name=ld gives a path.
4357 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4358 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4359 case $host in
4360 *-*-mingw*)
4361 # gcc leaves a trailing carriage return which upsets mingw
4362 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4364 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4365 esac
4366 case $ac_prog in
4367 # Accept absolute paths.
4368 [\\/]* | ?:[\\/]*)
4369 re_direlt='/[^/][^/]*/\.\./'
4370 # Canonicalize the pathname of ld
4371 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4372 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4373 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4374 done
4375 test -z "$LD" && LD="$ac_prog"
4378 # If it fails, then pretend we aren't using GCC.
4379 ac_prog=ld
4382 # If it is relative, then search for the first ld in PATH.
4383 with_gnu_ld=unknown
4385 esac
4386 elif test "$with_gnu_ld" = yes; then
4387 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4388 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4389 else
4390 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4391 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4393 if test "${lt_cv_path_LD+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396 if test -z "$LD"; then
4397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4398 for ac_dir in $PATH; do
4399 IFS="$lt_save_ifs"
4400 test -z "$ac_dir" && ac_dir=.
4401 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4402 lt_cv_path_LD="$ac_dir/$ac_prog"
4403 # Check to see if the program is GNU ld. I'd rather use --version,
4404 # but apparently some variants of GNU ld only accept -v.
4405 # Break only if it was the GNU/non-GNU ld that we prefer.
4406 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4407 *GNU* | *'with BFD'*)
4408 test "$with_gnu_ld" != no && break
4411 test "$with_gnu_ld" != yes && break
4413 esac
4415 done
4416 IFS="$lt_save_ifs"
4417 else
4418 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4422 LD="$lt_cv_path_LD"
4423 if test -n "$LD"; then
4424 { echo "$as_me:$LINENO: result: $LD" >&5
4425 echo "${ECHO_T}$LD" >&6; }
4426 else
4427 { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4430 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4431 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4432 { (exit 1); exit 1; }; }
4433 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4434 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4435 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4439 case `$LD -v 2>&1 </dev/null` in
4440 *GNU* | *'with BFD'*)
4441 lt_cv_prog_gnu_ld=yes
4444 lt_cv_prog_gnu_ld=no
4446 esac
4448 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4449 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4450 with_gnu_ld=$lt_cv_prog_gnu_ld
4453 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4454 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4455 if test "${lt_cv_ld_reload_flag+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 lt_cv_ld_reload_flag='-r'
4460 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4461 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4462 reload_flag=$lt_cv_ld_reload_flag
4463 case $reload_flag in
4464 "" | " "*) ;;
4465 *) reload_flag=" $reload_flag" ;;
4466 esac
4467 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4468 case $host_os in
4469 darwin*)
4470 if test "$GCC" = yes; then
4471 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4472 else
4473 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4476 esac
4478 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4479 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4480 if test "${lt_cv_path_NM+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 if test -n "$NM"; then
4484 # Let the user override the test.
4485 lt_cv_path_NM="$NM"
4486 else
4487 lt_nm_to_check="${ac_tool_prefix}nm"
4488 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4489 lt_nm_to_check="$lt_nm_to_check nm"
4491 for lt_tmp_nm in $lt_nm_to_check; do
4492 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4493 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4494 IFS="$lt_save_ifs"
4495 test -z "$ac_dir" && ac_dir=.
4496 tmp_nm="$ac_dir/$lt_tmp_nm"
4497 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4498 # Check to see if the nm accepts a BSD-compat flag.
4499 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4500 # nm: unknown option "B" ignored
4501 # Tru64's nm complains that /dev/null is an invalid object file
4502 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4503 */dev/null* | *'Invalid file or object type'*)
4504 lt_cv_path_NM="$tmp_nm -B"
4505 break
4508 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4509 */dev/null*)
4510 lt_cv_path_NM="$tmp_nm -p"
4511 break
4514 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4515 continue # so that we can try to find one that supports BSD flags
4517 esac
4519 esac
4521 done
4522 IFS="$lt_save_ifs"
4523 done
4524 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4527 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4528 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4529 NM="$lt_cv_path_NM"
4531 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4532 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4533 LN_S=$as_ln_s
4534 if test "$LN_S" = "ln -s"; then
4535 { echo "$as_me:$LINENO: result: yes" >&5
4536 echo "${ECHO_T}yes" >&6; }
4537 else
4538 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4539 echo "${ECHO_T}no, using $LN_S" >&6; }
4542 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4543 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4544 if test "${lt_cv_deplibs_check_method+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 lt_cv_file_magic_cmd='$MAGIC_CMD'
4548 lt_cv_file_magic_test_file=
4549 lt_cv_deplibs_check_method='unknown'
4550 # Need to set the preceding variable on all platforms that support
4551 # interlibrary dependencies.
4552 # 'none' -- dependencies not supported.
4553 # `unknown' -- same as none, but documents that we really don't know.
4554 # 'pass_all' -- all dependencies passed with no checks.
4555 # 'test_compile' -- check by making test program.
4556 # 'file_magic [[regex]]' -- check by looking for files in library path
4557 # which responds to the $file_magic_cmd with a given extended regex.
4558 # If you have `file' or equivalent on your system and you're not sure
4559 # whether `pass_all' will *always* work, you probably want this one.
4561 case $host_os in
4562 aix4* | aix5*)
4563 lt_cv_deplibs_check_method=pass_all
4566 beos*)
4567 lt_cv_deplibs_check_method=pass_all
4570 bsdi[45]*)
4571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4572 lt_cv_file_magic_cmd='/usr/bin/file -L'
4573 lt_cv_file_magic_test_file=/shlib/libc.so
4576 cygwin*)
4577 # func_win32_libid is a shell function defined in ltmain.sh
4578 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4579 lt_cv_file_magic_cmd='func_win32_libid'
4582 mingw* | pw32*)
4583 # Base MSYS/MinGW do not provide the 'file' command needed by
4584 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4585 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4586 lt_cv_file_magic_cmd='$OBJDUMP -f'
4589 darwin* | rhapsody*)
4590 lt_cv_deplibs_check_method=pass_all
4593 freebsd* | dragonfly*)
4594 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4595 case $host_cpu in
4596 i*86 )
4597 # Not sure whether the presence of OpenBSD here was a mistake.
4598 # Let's accept both of them until this is cleared up.
4599 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4600 lt_cv_file_magic_cmd=/usr/bin/file
4601 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4603 esac
4604 else
4605 lt_cv_deplibs_check_method=pass_all
4609 gnu*)
4610 lt_cv_deplibs_check_method=pass_all
4613 hpux10.20* | hpux11*)
4614 lt_cv_file_magic_cmd=/usr/bin/file
4615 case $host_cpu in
4616 ia64*)
4617 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4618 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4620 hppa*64*)
4621 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]'
4622 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4625 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4626 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4628 esac
4631 interix3*)
4632 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4636 irix5* | irix6* | nonstopux*)
4637 case $LD in
4638 *-32|*"-32 ") libmagic=32-bit;;
4639 *-n32|*"-n32 ") libmagic=N32;;
4640 *-64|*"-64 ") libmagic=64-bit;;
4641 *) libmagic=never-match;;
4642 esac
4643 lt_cv_deplibs_check_method=pass_all
4646 # This must be Linux ELF.
4647 linux* | k*bsd*-gnu)
4648 lt_cv_deplibs_check_method=pass_all
4651 netbsd* | netbsdelf*-gnu)
4652 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4654 else
4655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4659 newos6*)
4660 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4661 lt_cv_file_magic_cmd=/usr/bin/file
4662 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4665 nto-qnx*)
4666 lt_cv_deplibs_check_method=unknown
4669 openbsd*)
4670 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4672 else
4673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4677 osf3* | osf4* | osf5*)
4678 lt_cv_deplibs_check_method=pass_all
4681 solaris*)
4682 lt_cv_deplibs_check_method=pass_all
4685 sysv4 | sysv4.3*)
4686 case $host_vendor in
4687 motorola)
4688 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]'
4689 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4691 ncr)
4692 lt_cv_deplibs_check_method=pass_all
4694 sequent)
4695 lt_cv_file_magic_cmd='/bin/file'
4696 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4698 sni)
4699 lt_cv_file_magic_cmd='/bin/file'
4700 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4701 lt_cv_file_magic_test_file=/lib/libc.so
4703 siemens)
4704 lt_cv_deplibs_check_method=pass_all
4707 lt_cv_deplibs_check_method=pass_all
4709 esac
4712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4713 lt_cv_deplibs_check_method=pass_all
4715 esac
4718 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4719 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4720 file_magic_cmd=$lt_cv_file_magic_cmd
4721 deplibs_check_method=$lt_cv_deplibs_check_method
4722 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4727 # If no C compiler was specified, use CC.
4728 LTCC=${LTCC-"$CC"}
4730 # If no C compiler flags were specified, use CFLAGS.
4731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4733 # Allow CC to be a program name with arguments.
4734 compiler=$CC
4737 # Check whether --enable-libtool-lock was given.
4738 if test "${enable_libtool_lock+set}" = set; then
4739 enableval=$enable_libtool_lock;
4742 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4744 # Some flags need to be propagated to the compiler or linker for good
4745 # libtool support.
4746 case $host in
4747 ia64-*-hpux*)
4748 # Find out which ABI we are using.
4749 echo 'int i;' > conftest.$ac_ext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751 (eval $ac_compile) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; then
4755 case `/usr/bin/file conftest.$ac_objext` in
4756 *ELF-32*)
4757 HPUX_IA64_MODE="32"
4759 *ELF-64*)
4760 HPUX_IA64_MODE="64"
4762 esac
4764 rm -rf conftest*
4766 *-*-irix6*)
4767 # Find out which ABI we are using.
4768 echo '#line 4768 "configure"' > conftest.$ac_ext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; then
4774 if test "$lt_cv_prog_gnu_ld" = yes; then
4775 case `/usr/bin/file conftest.$ac_objext` in
4776 *32-bit*)
4777 LD="${LD-ld} -melf32bsmip"
4779 *N32*)
4780 LD="${LD-ld} -melf32bmipn32"
4782 *64-bit*)
4783 LD="${LD-ld} -melf64bmip"
4785 esac
4786 else
4787 case `/usr/bin/file conftest.$ac_objext` in
4788 *32-bit*)
4789 LD="${LD-ld} -32"
4791 *N32*)
4792 LD="${LD-ld} -n32"
4794 *64-bit*)
4795 LD="${LD-ld} -64"
4797 esac
4800 rm -rf conftest*
4803 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4804 # Find out which ABI we are using.
4805 echo 'int i;' > conftest.$ac_ext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4807 (eval $ac_compile) 2>&5
4808 ac_status=$?
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; then
4811 case `/usr/bin/file conftest.o` in
4812 *32-bit*)
4813 case $host in
4814 x86_64-*linux*)
4815 LD="${LD-ld} -m elf_i386"
4817 ppc64-*linux*|powerpc64-*linux*)
4818 LD="${LD-ld} -m elf32ppclinux"
4820 s390x-*linux*)
4821 LD="${LD-ld} -m elf_s390"
4823 sparc64-*linux*)
4824 LD="${LD-ld} -m elf32_sparc"
4826 esac
4828 *64-bit*)
4829 case $host in
4830 x86_64-*linux*)
4831 LD="${LD-ld} -m elf_x86_64"
4833 ppc*-*linux*|powerpc*-*linux*)
4834 LD="${LD-ld} -m elf64ppc"
4836 s390*-*linux*)
4837 LD="${LD-ld} -m elf64_s390"
4839 sparc*-*linux*)
4840 LD="${LD-ld} -m elf64_sparc"
4842 esac
4844 esac
4846 rm -rf conftest*
4849 *-*-sco3.2v5*)
4850 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4851 SAVE_CFLAGS="$CFLAGS"
4852 CFLAGS="$CFLAGS -belf"
4853 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4854 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4855 if test "${lt_cv_cc_needs_belf+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858 ac_ext=c
4859 ac_cpp='$CPP $CPPFLAGS'
4860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4872 main ()
4876 return 0;
4878 _ACEOF
4879 rm -f conftest.$ac_objext conftest$ac_exeext
4880 if { (ac_try="$ac_link"
4881 case "(($ac_try" in
4882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4884 esac
4885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886 (eval "$ac_link") 2>conftest.er1
4887 ac_status=$?
4888 grep -v '^ *+' conftest.er1 >conftest.err
4889 rm -f conftest.er1
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4894 { (case "(($ac_try" in
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4897 esac
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_try") 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; } &&
4903 { ac_try='test -s conftest$ac_exeext'
4904 { (case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907 esac
4908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909 (eval "$ac_try") 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; }; then
4913 lt_cv_cc_needs_belf=yes
4914 else
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 lt_cv_cc_needs_belf=no
4921 rm -f core conftest.err conftest.$ac_objext \
4922 conftest$ac_exeext conftest.$ac_ext
4923 ac_ext=c
4924 ac_cpp='$CPP $CPPFLAGS'
4925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4931 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4932 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4933 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4934 CFLAGS="$SAVE_CFLAGS"
4937 sparc*-*solaris*)
4938 # Find out which ABI we are using.
4939 echo 'int i;' > conftest.$ac_ext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941 (eval $ac_compile) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; then
4945 case `/usr/bin/file conftest.o` in
4946 *64-bit*)
4947 case $lt_cv_prog_gnu_ld in
4948 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4949 *) LD="${LD-ld} -64" ;;
4950 esac
4952 esac
4954 rm -rf conftest*
4958 esac
4960 need_locks="$enable_libtool_lock"
4963 ac_ext=c
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4969 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4970 # On Suns, sometimes $CPP names a directory.
4971 if test -n "$CPP" && test -d "$CPP"; then
4972 CPP=
4974 if test -z "$CPP"; then
4975 if test "${ac_cv_prog_CPP+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 # Double quotes because CPP needs to be expanded
4979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4981 ac_preproc_ok=false
4982 for ac_c_preproc_warn_flag in '' yes
4984 # Use a header file that comes with gcc, so configuring glibc
4985 # with a fresh cross-compiler works.
4986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987 # <limits.h> exists even on freestanding compilers.
4988 # On the NeXT, cc -E runs the code through the compiler's parser,
4989 # not just through cpp. "Syntax error" is here to catch this case.
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 #ifdef __STDC__
4997 # include <limits.h>
4998 #else
4999 # include <assert.h>
5000 #endif
5001 Syntax error
5002 _ACEOF
5003 if { (ac_try="$ac_cpp conftest.$ac_ext"
5004 case "(($ac_try" in
5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006 *) ac_try_echo=$ac_try;;
5007 esac
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } >/dev/null; then
5016 if test -s conftest.err; then
5017 ac_cpp_err=$ac_c_preproc_warn_flag
5018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5019 else
5020 ac_cpp_err=
5022 else
5023 ac_cpp_err=yes
5025 if test -z "$ac_cpp_err"; then
5027 else
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5031 # Broken: fails on valid input.
5032 continue
5035 rm -f conftest.err conftest.$ac_ext
5037 # OK, works on sane cases. Now check whether nonexistent headers
5038 # can be detected and how.
5039 cat >conftest.$ac_ext <<_ACEOF
5040 /* confdefs.h. */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5045 #include <ac_nonexistent.h>
5046 _ACEOF
5047 if { (ac_try="$ac_cpp conftest.$ac_ext"
5048 case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051 esac
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5054 ac_status=$?
5055 grep -v '^ *+' conftest.er1 >conftest.err
5056 rm -f conftest.er1
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } >/dev/null; then
5060 if test -s conftest.err; then
5061 ac_cpp_err=$ac_c_preproc_warn_flag
5062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5063 else
5064 ac_cpp_err=
5066 else
5067 ac_cpp_err=yes
5069 if test -z "$ac_cpp_err"; then
5070 # Broken: success on invalid input.
5071 continue
5072 else
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5076 # Passes both tests.
5077 ac_preproc_ok=:
5078 break
5081 rm -f conftest.err conftest.$ac_ext
5083 done
5084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5085 rm -f conftest.err conftest.$ac_ext
5086 if $ac_preproc_ok; then
5087 break
5090 done
5091 ac_cv_prog_CPP=$CPP
5094 CPP=$ac_cv_prog_CPP
5095 else
5096 ac_cv_prog_CPP=$CPP
5098 { echo "$as_me:$LINENO: result: $CPP" >&5
5099 echo "${ECHO_T}$CPP" >&6; }
5100 ac_preproc_ok=false
5101 for ac_c_preproc_warn_flag in '' yes
5103 # Use a header file that comes with gcc, so configuring glibc
5104 # with a fresh cross-compiler works.
5105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106 # <limits.h> exists even on freestanding compilers.
5107 # On the NeXT, cc -E runs the code through the compiler's parser,
5108 # not just through cpp. "Syntax error" is here to catch this case.
5109 cat >conftest.$ac_ext <<_ACEOF
5110 /* confdefs.h. */
5111 _ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5115 #ifdef __STDC__
5116 # include <limits.h>
5117 #else
5118 # include <assert.h>
5119 #endif
5120 Syntax error
5121 _ACEOF
5122 if { (ac_try="$ac_cpp conftest.$ac_ext"
5123 case "(($ac_try" in
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5126 esac
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5129 ac_status=$?
5130 grep -v '^ *+' conftest.er1 >conftest.err
5131 rm -f conftest.er1
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } >/dev/null; then
5135 if test -s conftest.err; then
5136 ac_cpp_err=$ac_c_preproc_warn_flag
5137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5138 else
5139 ac_cpp_err=
5141 else
5142 ac_cpp_err=yes
5144 if test -z "$ac_cpp_err"; then
5146 else
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5150 # Broken: fails on valid input.
5151 continue
5154 rm -f conftest.err conftest.$ac_ext
5156 # OK, works on sane cases. Now check whether nonexistent headers
5157 # can be detected and how.
5158 cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h. */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5164 #include <ac_nonexistent.h>
5165 _ACEOF
5166 if { (ac_try="$ac_cpp conftest.$ac_ext"
5167 case "(($ac_try" in
5168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5170 esac
5171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5173 ac_status=$?
5174 grep -v '^ *+' conftest.er1 >conftest.err
5175 rm -f conftest.er1
5176 cat conftest.err >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } >/dev/null; then
5179 if test -s conftest.err; then
5180 ac_cpp_err=$ac_c_preproc_warn_flag
5181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5182 else
5183 ac_cpp_err=
5185 else
5186 ac_cpp_err=yes
5188 if test -z "$ac_cpp_err"; then
5189 # Broken: success on invalid input.
5190 continue
5191 else
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5195 # Passes both tests.
5196 ac_preproc_ok=:
5197 break
5200 rm -f conftest.err conftest.$ac_ext
5202 done
5203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5204 rm -f conftest.err conftest.$ac_ext
5205 if $ac_preproc_ok; then
5207 else
5208 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5209 See \`config.log' for more details." >&5
5210 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5211 See \`config.log' for more details." >&2;}
5212 { (exit 1); exit 1; }; }
5215 ac_ext=c
5216 ac_cpp='$CPP $CPPFLAGS'
5217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5222 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5223 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5224 if test "${ac_cv_header_stdc+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 #include <stdlib.h>
5234 #include <stdarg.h>
5235 #include <string.h>
5236 #include <float.h>
5239 main ()
5243 return 0;
5245 _ACEOF
5246 rm -f conftest.$ac_objext
5247 if { (ac_try="$ac_compile"
5248 case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5251 esac
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_compile") 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5261 { (case "(($ac_try" in
5262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263 *) ac_try_echo=$ac_try;;
5264 esac
5265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266 (eval "$ac_try") 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; } &&
5270 { ac_try='test -s conftest.$ac_objext'
5271 { (case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5274 esac
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_try") 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5280 ac_cv_header_stdc=yes
5281 else
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 ac_cv_header_stdc=no
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 if test $ac_cv_header_stdc = yes; then
5291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5292 cat >conftest.$ac_ext <<_ACEOF
5293 /* confdefs.h. */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5298 #include <string.h>
5300 _ACEOF
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "memchr" >/dev/null 2>&1; then
5304 else
5305 ac_cv_header_stdc=no
5307 rm -f conftest*
5311 if test $ac_cv_header_stdc = yes; then
5312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5313 cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h. */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 #include <stdlib.h>
5321 _ACEOF
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 $EGREP "free" >/dev/null 2>&1; then
5325 else
5326 ac_cv_header_stdc=no
5328 rm -f conftest*
5332 if test $ac_cv_header_stdc = yes; then
5333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5334 if test "$cross_compiling" = yes; then
5336 else
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 #include <ctype.h>
5344 #include <stdlib.h>
5345 #if ((' ' & 0x0FF) == 0x020)
5346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5348 #else
5349 # define ISLOWER(c) \
5350 (('a' <= (c) && (c) <= 'i') \
5351 || ('j' <= (c) && (c) <= 'r') \
5352 || ('s' <= (c) && (c) <= 'z'))
5353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5354 #endif
5356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5358 main ()
5360 int i;
5361 for (i = 0; i < 256; i++)
5362 if (XOR (islower (i), ISLOWER (i))
5363 || toupper (i) != TOUPPER (i))
5364 return 2;
5365 return 0;
5367 _ACEOF
5368 rm -f conftest$ac_exeext
5369 if { (ac_try="$ac_link"
5370 case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373 esac
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_link") 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5379 { (case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382 esac
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_try") 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5389 else
5390 echo "$as_me: program exited with status $ac_status" >&5
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 ( exit $ac_status )
5395 ac_cv_header_stdc=no
5397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5403 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5404 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5405 if test $ac_cv_header_stdc = yes; then
5407 cat >>confdefs.h <<\_ACEOF
5408 #define STDC_HEADERS 1
5409 _ACEOF
5413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5424 inttypes.h stdint.h unistd.h
5426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5440 #include <$ac_header>
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (ac_try="$ac_compile"
5444 case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compile") 2>conftest.er1
5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5457 { (case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460 esac
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_try") 2>&5
5463 ac_status=$?
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; } &&
5466 { ac_try='test -s conftest.$ac_objext'
5467 { (case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_try") 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 eval "$as_ac_Header=yes"
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 eval "$as_ac_Header=no"
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 ac_res=`eval echo '${'$as_ac_Header'}'`
5487 { echo "$as_me:$LINENO: result: $ac_res" >&5
5488 echo "${ECHO_T}$ac_res" >&6; }
5489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5490 cat >>confdefs.h <<_ACEOF
5491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5492 _ACEOF
5496 done
5500 for ac_header in dlfcn.h
5502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 ac_res=`eval echo '${'$as_ac_Header'}'`
5510 { echo "$as_me:$LINENO: result: $ac_res" >&5
5511 echo "${ECHO_T}$ac_res" >&6; }
5512 else
5513 # Is the header compilable?
5514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h. */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 $ac_includes_default
5523 #include <$ac_header>
5524 _ACEOF
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5527 case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530 esac
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5540 { (case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5543 esac
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_try") 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; } &&
5549 { ac_try='test -s conftest.$ac_objext'
5550 { (case "(($ac_try" in
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5553 esac
5554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_try") 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 ac_header_compiler=yes
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 ac_header_compiler=no
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5569 echo "${ECHO_T}$ac_header_compiler" >&6; }
5571 # Is the header present?
5572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h. */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 #include <$ac_header>
5581 _ACEOF
5582 if { (ac_try="$ac_cpp conftest.$ac_ext"
5583 case "(($ac_try" in
5584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585 *) ac_try_echo=$ac_try;;
5586 esac
5587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5589 ac_status=$?
5590 grep -v '^ *+' conftest.er1 >conftest.err
5591 rm -f conftest.er1
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } >/dev/null; then
5595 if test -s conftest.err; then
5596 ac_cpp_err=$ac_c_preproc_warn_flag
5597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5598 else
5599 ac_cpp_err=
5601 else
5602 ac_cpp_err=yes
5604 if test -z "$ac_cpp_err"; then
5605 ac_header_preproc=yes
5606 else
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5610 ac_header_preproc=no
5613 rm -f conftest.err conftest.$ac_ext
5614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5615 echo "${ECHO_T}$ac_header_preproc" >&6; }
5617 # So? What about this header?
5618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5619 yes:no: )
5620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5624 ac_header_preproc=yes
5626 no:yes:* )
5627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5639 ( cat <<\_ASBOX
5640 ## -------------------------------------------- ##
5641 ## Report this to http://www.mangosproject.org/ ##
5642 ## -------------------------------------------- ##
5643 _ASBOX
5644 ) | sed "s/^/$as_me: WARNING: /" >&2
5646 esac
5647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652 eval "$as_ac_Header=\$ac_header_preproc"
5654 ac_res=`eval echo '${'$as_ac_Header'}'`
5655 { echo "$as_me:$LINENO: result: $ac_res" >&5
5656 echo "${ECHO_T}$ac_res" >&6; }
5659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5660 cat >>confdefs.h <<_ACEOF
5661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5662 _ACEOF
5666 done
5670 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5671 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5672 (test "X$CXX" != "Xg++"))) ; then
5673 ac_ext=cpp
5674 ac_cpp='$CXXCPP $CPPFLAGS'
5675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5678 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5679 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5680 if test -z "$CXXCPP"; then
5681 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684 # Double quotes because CXXCPP needs to be expanded
5685 for CXXCPP in "$CXX -E" "/lib/cpp"
5687 ac_preproc_ok=false
5688 for ac_cxx_preproc_warn_flag in '' yes
5690 # Use a header file that comes with gcc, so configuring glibc
5691 # with a fresh cross-compiler works.
5692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5693 # <limits.h> exists even on freestanding compilers.
5694 # On the NeXT, cc -E runs the code through the compiler's parser,
5695 # not just through cpp. "Syntax error" is here to catch this case.
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #ifdef __STDC__
5703 # include <limits.h>
5704 #else
5705 # include <assert.h>
5706 #endif
5707 Syntax error
5708 _ACEOF
5709 if { (ac_try="$ac_cpp conftest.$ac_ext"
5710 case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713 esac
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5716 ac_status=$?
5717 grep -v '^ *+' conftest.er1 >conftest.err
5718 rm -f conftest.er1
5719 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } >/dev/null; then
5722 if test -s conftest.err; then
5723 ac_cpp_err=$ac_cxx_preproc_warn_flag
5724 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5725 else
5726 ac_cpp_err=
5728 else
5729 ac_cpp_err=yes
5731 if test -z "$ac_cpp_err"; then
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 # Broken: fails on valid input.
5738 continue
5741 rm -f conftest.err conftest.$ac_ext
5743 # OK, works on sane cases. Now check whether nonexistent headers
5744 # can be detected and how.
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h. */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 #include <ac_nonexistent.h>
5752 _ACEOF
5753 if { (ac_try="$ac_cpp conftest.$ac_ext"
5754 case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5757 esac
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } >/dev/null; then
5766 if test -s conftest.err; then
5767 ac_cpp_err=$ac_cxx_preproc_warn_flag
5768 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5769 else
5770 ac_cpp_err=
5772 else
5773 ac_cpp_err=yes
5775 if test -z "$ac_cpp_err"; then
5776 # Broken: success on invalid input.
5777 continue
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 # Passes both tests.
5783 ac_preproc_ok=:
5784 break
5787 rm -f conftest.err conftest.$ac_ext
5789 done
5790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5791 rm -f conftest.err conftest.$ac_ext
5792 if $ac_preproc_ok; then
5793 break
5796 done
5797 ac_cv_prog_CXXCPP=$CXXCPP
5800 CXXCPP=$ac_cv_prog_CXXCPP
5801 else
5802 ac_cv_prog_CXXCPP=$CXXCPP
5804 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5805 echo "${ECHO_T}$CXXCPP" >&6; }
5806 ac_preproc_ok=false
5807 for ac_cxx_preproc_warn_flag in '' yes
5809 # Use a header file that comes with gcc, so configuring glibc
5810 # with a fresh cross-compiler works.
5811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5812 # <limits.h> exists even on freestanding compilers.
5813 # On the NeXT, cc -E runs the code through the compiler's parser,
5814 # not just through cpp. "Syntax error" is here to catch this case.
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 #ifdef __STDC__
5822 # include <limits.h>
5823 #else
5824 # include <assert.h>
5825 #endif
5826 Syntax error
5827 _ACEOF
5828 if { (ac_try="$ac_cpp conftest.$ac_ext"
5829 case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } >/dev/null; then
5841 if test -s conftest.err; then
5842 ac_cpp_err=$ac_cxx_preproc_warn_flag
5843 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5844 else
5845 ac_cpp_err=
5847 else
5848 ac_cpp_err=yes
5850 if test -z "$ac_cpp_err"; then
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5856 # Broken: fails on valid input.
5857 continue
5860 rm -f conftest.err conftest.$ac_ext
5862 # OK, works on sane cases. Now check whether nonexistent headers
5863 # can be detected and how.
5864 cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h. */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 #include <ac_nonexistent.h>
5871 _ACEOF
5872 if { (ac_try="$ac_cpp conftest.$ac_ext"
5873 case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } >/dev/null; then
5885 if test -s conftest.err; then
5886 ac_cpp_err=$ac_cxx_preproc_warn_flag
5887 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5888 else
5889 ac_cpp_err=
5891 else
5892 ac_cpp_err=yes
5894 if test -z "$ac_cpp_err"; then
5895 # Broken: success on invalid input.
5896 continue
5897 else
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5901 # Passes both tests.
5902 ac_preproc_ok=:
5903 break
5906 rm -f conftest.err conftest.$ac_ext
5908 done
5909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5910 rm -f conftest.err conftest.$ac_ext
5911 if $ac_preproc_ok; then
5913 else
5914 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5915 See \`config.log' for more details." >&5
5916 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5917 See \`config.log' for more details." >&2;}
5918 { (exit 1); exit 1; }; }
5921 ac_ext=cpp
5922 ac_cpp='$CXXCPP $CPPFLAGS'
5923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5930 ac_ext=f
5931 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5932 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5933 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5934 if test -n "$ac_tool_prefix"; then
5935 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
5937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5941 if test "${ac_cv_prog_F77+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944 if test -n "$F77"; then
5945 ac_cv_prog_F77="$F77" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5954 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5958 done
5959 done
5960 IFS=$as_save_IFS
5964 F77=$ac_cv_prog_F77
5965 if test -n "$F77"; then
5966 { echo "$as_me:$LINENO: result: $F77" >&5
5967 echo "${ECHO_T}$F77" >&6; }
5968 else
5969 { echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6; }
5974 test -n "$F77" && break
5975 done
5977 if test -z "$F77"; then
5978 ac_ct_F77=$F77
5979 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
5981 # Extract the first word of "$ac_prog", so it can be a program name with args.
5982 set dummy $ac_prog; ac_word=$2
5983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5985 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 if test -n "$ac_ct_F77"; then
5989 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5990 else
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5998 ac_cv_prog_ac_ct_F77="$ac_prog"
5999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 break 2
6002 done
6003 done
6004 IFS=$as_save_IFS
6008 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6009 if test -n "$ac_ct_F77"; then
6010 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6011 echo "${ECHO_T}$ac_ct_F77" >&6; }
6012 else
6013 { echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6; }
6018 test -n "$ac_ct_F77" && break
6019 done
6021 if test "x$ac_ct_F77" = x; then
6022 F77=""
6023 else
6024 case $cross_compiling:$ac_tool_warned in
6025 yes:)
6026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6027 whose name does not start with the host triplet. If you think this
6028 configuration is useful to you, please write to autoconf@gnu.org." >&5
6029 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6030 whose name does not start with the host triplet. If you think this
6031 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6032 ac_tool_warned=yes ;;
6033 esac
6034 F77=$ac_ct_F77
6039 # Provide some information about the compiler.
6040 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6041 ac_compiler=`set X $ac_compile; echo $2`
6042 { (ac_try="$ac_compiler --version >&5"
6043 case "(($ac_try" in
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6046 esac
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_compiler --version >&5") 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }
6052 { (ac_try="$ac_compiler -v >&5"
6053 case "(($ac_try" in
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_compiler -v >&5") 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }
6062 { (ac_try="$ac_compiler -V >&5"
6063 case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066 esac
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_compiler -V >&5") 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }
6072 rm -f a.out
6074 # If we don't use `.F' as extension, the preprocessor is not run on the
6075 # input file. (Note that this only needs to work for GNU compilers.)
6076 ac_save_ext=$ac_ext
6077 ac_ext=F
6078 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6079 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6080 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083 cat >conftest.$ac_ext <<_ACEOF
6084 program main
6085 #ifndef __GNUC__
6086 choke me
6087 #endif
6090 _ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6093 case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096 esac
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_compile") 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6106 { (case "(($ac_try" in
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6109 esac
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_try") 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; } &&
6115 { ac_try='test -s conftest.$ac_objext'
6116 { (case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119 esac
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_try") 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
6125 ac_compiler_gnu=yes
6126 else
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6130 ac_compiler_gnu=no
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6137 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6138 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6139 ac_ext=$ac_save_ext
6140 ac_test_FFLAGS=${FFLAGS+set}
6141 ac_save_FFLAGS=$FFLAGS
6142 FFLAGS=
6143 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6144 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_f77_g+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148 FFLAGS=-g
6149 cat >conftest.$ac_ext <<_ACEOF
6150 program main
6153 _ACEOF
6154 rm -f conftest.$ac_objext
6155 if { (ac_try="$ac_compile"
6156 case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159 esac
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_compile") 2>conftest.er1
6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } &&
6168 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6169 { (case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_try") 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; } &&
6178 { ac_try='test -s conftest.$ac_objext'
6179 { (case "(($ac_try" in
6180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181 *) ac_try_echo=$ac_try;;
6182 esac
6183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184 (eval "$ac_try") 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6188 ac_cv_prog_f77_g=yes
6189 else
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6193 ac_cv_prog_f77_g=no
6196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6200 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6201 if test "$ac_test_FFLAGS" = set; then
6202 FFLAGS=$ac_save_FFLAGS
6203 elif test $ac_cv_prog_f77_g = yes; then
6204 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6205 FFLAGS="-g -O2"
6206 else
6207 FFLAGS="-g"
6209 else
6210 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6211 FFLAGS="-O2"
6212 else
6213 FFLAGS=
6217 G77=`test $ac_compiler_gnu = yes && echo yes`
6218 ac_ext=c
6219 ac_cpp='$CPP $CPPFLAGS'
6220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6226 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6228 # find the maximum length of command line arguments
6229 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6230 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6231 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6235 teststring="ABCD"
6237 case $build_os in
6238 msdosdjgpp*)
6239 # On DJGPP, this test can blow up pretty badly due to problems in libc
6240 # (any single argument exceeding 2000 bytes causes a buffer overrun
6241 # during glob expansion). Even if it were fixed, the result of this
6242 # check would be larger than it should be.
6243 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6246 gnu*)
6247 # Under GNU Hurd, this test is not required because there is
6248 # no limit to the length of command line arguments.
6249 # Libtool will interpret -1 as no limit whatsoever
6250 lt_cv_sys_max_cmd_len=-1;
6253 cygwin* | mingw*)
6254 # On Win9x/ME, this test blows up -- it succeeds, but takes
6255 # about 5 minutes as the teststring grows exponentially.
6256 # Worse, since 9x/ME are not pre-emptively multitasking,
6257 # you end up with a "frozen" computer, even though with patience
6258 # the test eventually succeeds (with a max line length of 256k).
6259 # Instead, let's just punt: use the minimum linelength reported by
6260 # all of the supported platforms: 8192 (on NT/2K/XP).
6261 lt_cv_sys_max_cmd_len=8192;
6264 amigaos*)
6265 # On AmigaOS with pdksh, this test takes hours, literally.
6266 # So we just punt and use a minimum line length of 8192.
6267 lt_cv_sys_max_cmd_len=8192;
6270 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6271 # This has been around since 386BSD, at least. Likely further.
6272 if test -x /sbin/sysctl; then
6273 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6274 elif test -x /usr/sbin/sysctl; then
6275 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6276 else
6277 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6279 # And add a safety zone
6280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6284 interix*)
6285 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6286 lt_cv_sys_max_cmd_len=196608
6289 osf*)
6290 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6291 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6292 # nice to cause kernel panics so lets avoid the loop below.
6293 # First set a reasonable default.
6294 lt_cv_sys_max_cmd_len=16384
6296 if test -x /sbin/sysconfig; then
6297 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6298 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6299 esac
6302 sco3.2v5*)
6303 lt_cv_sys_max_cmd_len=102400
6305 sysv5* | sco5v6* | sysv4.2uw2*)
6306 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6307 if test -n "$kargmax"; then
6308 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6309 else
6310 lt_cv_sys_max_cmd_len=32768
6314 # If test is not a shell built-in, we'll probably end up computing a
6315 # maximum length that is only half of the actual maximum length, but
6316 # we can't tell.
6317 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6318 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6319 = "XX$teststring") >/dev/null 2>&1 &&
6320 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6321 lt_cv_sys_max_cmd_len=$new_result &&
6322 test $i != 17 # 1/2 MB should be enough
6324 i=`expr $i + 1`
6325 teststring=$teststring$teststring
6326 done
6327 teststring=
6328 # Add a significant safety factor because C++ compilers can tack on massive
6329 # amounts of additional arguments before passing them to the linker.
6330 # It appears as though 1/2 is a usable value.
6331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6333 esac
6337 if test -n $lt_cv_sys_max_cmd_len ; then
6338 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6339 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6340 else
6341 { echo "$as_me:$LINENO: result: none" >&5
6342 echo "${ECHO_T}none" >&6; }
6348 # Check for command to grab the raw symbol name followed by C symbol from nm.
6349 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6350 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6351 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6355 # These are sane defaults that work on at least a few old systems.
6356 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6358 # Character class describing NM global symbol codes.
6359 symcode='[BCDEGRST]'
6361 # Regexp to match symbols that can be accessed directly from C.
6362 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6364 # Transform an extracted symbol line into a proper C declaration
6365 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6367 # Transform an extracted symbol line into symbol name and symbol address
6368 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'"
6370 # Define system-specific variables.
6371 case $host_os in
6372 aix*)
6373 symcode='[BCDT]'
6375 cygwin* | mingw* | pw32*)
6376 symcode='[ABCDGISTW]'
6378 hpux*) # Its linker distinguishes data from code symbols
6379 if test "$host_cpu" = ia64; then
6380 symcode='[ABCDEGRST]'
6382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6383 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'"
6385 linux* | k*bsd*-gnu)
6386 if test "$host_cpu" = ia64; then
6387 symcode='[ABCDGIRSTW]'
6388 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6389 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'"
6392 irix* | nonstopux*)
6393 symcode='[BCDEGRST]'
6395 osf*)
6396 symcode='[BCDEGQRST]'
6398 solaris*)
6399 symcode='[BDRT]'
6401 sco3.2v5*)
6402 symcode='[DT]'
6404 sysv4.2uw2*)
6405 symcode='[DT]'
6407 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6408 symcode='[ABDT]'
6410 sysv4)
6411 symcode='[DFNSTU]'
6413 esac
6415 # Handle CRLF in mingw tool chain
6416 opt_cr=
6417 case $build_os in
6418 mingw*)
6419 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6421 esac
6423 # If we're using GNU nm, then use its standard symbol codes.
6424 case `$NM -V 2>&1` in
6425 *GNU* | *'with BFD'*)
6426 symcode='[ABCDGIRSTW]' ;;
6427 esac
6429 # Try without a prefix undercore, then with it.
6430 for ac_symprfx in "" "_"; do
6432 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6433 symxfrm="\\1 $ac_symprfx\\2 \\2"
6435 # Write the raw and C identifiers.
6436 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6438 # Check to see that the pipe works correctly.
6439 pipe_works=no
6441 rm -f conftest*
6442 cat > conftest.$ac_ext <<EOF
6443 #ifdef __cplusplus
6444 extern "C" {
6445 #endif
6446 char nm_test_var;
6447 void nm_test_func(){}
6448 #ifdef __cplusplus
6450 #endif
6451 int main(){nm_test_var='a';nm_test_func();return(0);}
6454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6455 (eval $ac_compile) 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; then
6459 # Now try to grab the symbols.
6460 nlist=conftest.nm
6461 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6462 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && test -s "$nlist"; then
6466 # Try sorting and uniquifying the output.
6467 if sort "$nlist" | uniq > "$nlist"T; then
6468 mv -f "$nlist"T "$nlist"
6469 else
6470 rm -f "$nlist"T
6473 # Make sure that we snagged all the symbols we need.
6474 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6475 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6476 cat <<EOF > conftest.$ac_ext
6477 #ifdef __cplusplus
6478 extern "C" {
6479 #endif
6482 # Now generate the symbol file.
6483 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6485 cat <<EOF >> conftest.$ac_ext
6486 #if defined (__STDC__) && __STDC__
6487 # define lt_ptr_t void *
6488 #else
6489 # define lt_ptr_t char *
6490 # define const
6491 #endif
6493 /* The mapping between symbol names and symbols. */
6494 const struct {
6495 const char *name;
6496 lt_ptr_t address;
6498 lt_preloaded_symbols[] =
6501 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6502 cat <<\EOF >> conftest.$ac_ext
6503 {0, (lt_ptr_t) 0}
6506 #ifdef __cplusplus
6508 #endif
6510 # Now try linking the two files.
6511 mv conftest.$ac_objext conftstm.$ac_objext
6512 lt_save_LIBS="$LIBS"
6513 lt_save_CFLAGS="$CFLAGS"
6514 LIBS="conftstm.$ac_objext"
6515 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517 (eval $ac_link) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6521 pipe_works=yes
6523 LIBS="$lt_save_LIBS"
6524 CFLAGS="$lt_save_CFLAGS"
6525 else
6526 echo "cannot find nm_test_func in $nlist" >&5
6528 else
6529 echo "cannot find nm_test_var in $nlist" >&5
6531 else
6532 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6534 else
6535 echo "$progname: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6538 rm -f conftest* conftst*
6540 # Do not use the global_symbol_pipe unless it works.
6541 if test "$pipe_works" = yes; then
6542 break
6543 else
6544 lt_cv_sys_global_symbol_pipe=
6546 done
6550 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6551 lt_cv_sys_global_symbol_to_cdecl=
6553 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6554 { echo "$as_me:$LINENO: result: failed" >&5
6555 echo "${ECHO_T}failed" >&6; }
6556 else
6557 { echo "$as_me:$LINENO: result: ok" >&5
6558 echo "${ECHO_T}ok" >&6; }
6561 { echo "$as_me:$LINENO: checking for objdir" >&5
6562 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6563 if test "${lt_cv_objdir+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566 rm -f .libs 2>/dev/null
6567 mkdir .libs 2>/dev/null
6568 if test -d .libs; then
6569 lt_cv_objdir=.libs
6570 else
6571 # MS-DOS does not allow filenames that begin with a dot.
6572 lt_cv_objdir=_libs
6574 rmdir .libs 2>/dev/null
6576 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6577 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6578 objdir=$lt_cv_objdir
6584 case $host_os in
6585 aix3*)
6586 # AIX sometimes has problems with the GCC collect2 program. For some
6587 # reason, if we set the COLLECT_NAMES environment variable, the problems
6588 # vanish in a puff of smoke.
6589 if test "X${COLLECT_NAMES+set}" != Xset; then
6590 COLLECT_NAMES=
6591 export COLLECT_NAMES
6594 esac
6596 # Sed substitution that helps us do robust quoting. It backslashifies
6597 # metacharacters that are still active within double-quoted strings.
6598 Xsed='sed -e 1s/^X//'
6599 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6601 # Same as above, but do not quote variable references.
6602 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6604 # Sed substitution to delay expansion of an escaped shell variable in a
6605 # double_quote_subst'ed string.
6606 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6608 # Sed substitution to avoid accidental globbing in evaled expressions
6609 no_glob_subst='s/\*/\\\*/g'
6611 # Constants:
6612 rm="rm -f"
6614 # Global variables:
6615 default_ofile=libtool
6616 can_build_shared=yes
6618 # All known linkers require a `.a' archive for static linking (except MSVC,
6619 # which needs '.lib').
6620 libext=a
6621 ltmain="$ac_aux_dir/ltmain.sh"
6622 ofile="$default_ofile"
6623 with_gnu_ld="$lt_cv_prog_gnu_ld"
6625 if test -n "$ac_tool_prefix"; then
6626 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6627 set dummy ${ac_tool_prefix}ar; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_prog_AR+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 if test -n "$AR"; then
6634 ac_cv_prog_AR="$AR" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_prog_AR="${ac_tool_prefix}ar"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6647 done
6648 done
6649 IFS=$as_save_IFS
6653 AR=$ac_cv_prog_AR
6654 if test -n "$AR"; then
6655 { echo "$as_me:$LINENO: result: $AR" >&5
6656 echo "${ECHO_T}$AR" >&6; }
6657 else
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6664 if test -z "$ac_cv_prog_AR"; then
6665 ac_ct_AR=$AR
6666 # Extract the first word of "ar", so it can be a program name with args.
6667 set dummy ar; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673 if test -n "$ac_ct_AR"; then
6674 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_ac_ct_AR="ar"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6687 done
6688 done
6689 IFS=$as_save_IFS
6693 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6694 if test -n "$ac_ct_AR"; then
6695 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6696 echo "${ECHO_T}$ac_ct_AR" >&6; }
6697 else
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6702 if test "x$ac_ct_AR" = x; then
6703 AR="false"
6704 else
6705 case $cross_compiling:$ac_tool_warned in
6706 yes:)
6707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6708 whose name does not start with the host triplet. If you think this
6709 configuration is useful to you, please write to autoconf@gnu.org." >&5
6710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6711 whose name does not start with the host triplet. If you think this
6712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6713 ac_tool_warned=yes ;;
6714 esac
6715 AR=$ac_ct_AR
6717 else
6718 AR="$ac_cv_prog_AR"
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726 if test "${ac_cv_prog_RANLIB+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729 if test -n "$RANLIB"; then
6730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6743 done
6744 done
6745 IFS=$as_save_IFS
6749 RANLIB=$ac_cv_prog_RANLIB
6750 if test -n "$RANLIB"; then
6751 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6752 echo "${ECHO_T}$RANLIB" >&6; }
6753 else
6754 { echo "$as_me:$LINENO: result: no" >&5
6755 echo "${ECHO_T}no" >&6; }
6760 if test -z "$ac_cv_prog_RANLIB"; then
6761 ac_ct_RANLIB=$RANLIB
6762 # Extract the first word of "ranlib", so it can be a program name with args.
6763 set dummy ranlib; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769 if test -n "$ac_ct_RANLIB"; then
6770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_ac_ct_RANLIB="ranlib"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6783 done
6784 done
6785 IFS=$as_save_IFS
6789 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6790 if test -n "$ac_ct_RANLIB"; then
6791 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6792 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6793 else
6794 { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6798 if test "x$ac_ct_RANLIB" = x; then
6799 RANLIB=":"
6800 else
6801 case $cross_compiling:$ac_tool_warned in
6802 yes:)
6803 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet. If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&5
6806 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6807 whose name does not start with the host triplet. If you think this
6808 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6809 ac_tool_warned=yes ;;
6810 esac
6811 RANLIB=$ac_ct_RANLIB
6813 else
6814 RANLIB="$ac_cv_prog_RANLIB"
6817 if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6819 set dummy ${ac_tool_prefix}strip; ac_word=$2
6820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822 if test "${ac_cv_prog_STRIP+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825 if test -n "$STRIP"; then
6826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6839 done
6840 done
6841 IFS=$as_save_IFS
6845 STRIP=$ac_cv_prog_STRIP
6846 if test -n "$STRIP"; then
6847 { echo "$as_me:$LINENO: result: $STRIP" >&5
6848 echo "${ECHO_T}$STRIP" >&6; }
6849 else
6850 { echo "$as_me:$LINENO: result: no" >&5
6851 echo "${ECHO_T}no" >&6; }
6856 if test -z "$ac_cv_prog_STRIP"; then
6857 ac_ct_STRIP=$STRIP
6858 # Extract the first word of "strip", so it can be a program name with args.
6859 set dummy strip; ac_word=$2
6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865 if test -n "$ac_ct_STRIP"; then
6866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_prog_ac_ct_STRIP="strip"
6876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6879 done
6880 done
6881 IFS=$as_save_IFS
6885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6886 if test -n "$ac_ct_STRIP"; then
6887 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6888 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6889 else
6890 { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6894 if test "x$ac_ct_STRIP" = x; then
6895 STRIP=":"
6896 else
6897 case $cross_compiling:$ac_tool_warned in
6898 yes:)
6899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6900 whose name does not start with the host triplet. If you think this
6901 configuration is useful to you, please write to autoconf@gnu.org." >&5
6902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6903 whose name does not start with the host triplet. If you think this
6904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6905 ac_tool_warned=yes ;;
6906 esac
6907 STRIP=$ac_ct_STRIP
6909 else
6910 STRIP="$ac_cv_prog_STRIP"
6914 old_CC="$CC"
6915 old_CFLAGS="$CFLAGS"
6917 # Set sane defaults for various variables
6918 test -z "$AR" && AR=ar
6919 test -z "$AR_FLAGS" && AR_FLAGS=cru
6920 test -z "$AS" && AS=as
6921 test -z "$CC" && CC=cc
6922 test -z "$LTCC" && LTCC=$CC
6923 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6924 test -z "$DLLTOOL" && DLLTOOL=dlltool
6925 test -z "$LD" && LD=ld
6926 test -z "$LN_S" && LN_S="ln -s"
6927 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6928 test -z "$NM" && NM=nm
6929 test -z "$SED" && SED=sed
6930 test -z "$OBJDUMP" && OBJDUMP=objdump
6931 test -z "$RANLIB" && RANLIB=:
6932 test -z "$STRIP" && STRIP=:
6933 test -z "$ac_objext" && ac_objext=o
6935 # Determine commands to create old-style static archives.
6936 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6937 old_postinstall_cmds='chmod 644 $oldlib'
6938 old_postuninstall_cmds=
6940 if test -n "$RANLIB"; then
6941 case $host_os in
6942 openbsd*)
6943 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6948 esac
6949 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6952 for cc_temp in $compiler""; do
6953 case $cc_temp in
6954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6956 \-*) ;;
6957 *) break;;
6958 esac
6959 done
6960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6963 # Only perform the check for file, if the check method requires it
6964 case $deplibs_check_method in
6965 file_magic*)
6966 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6967 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6968 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6969 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972 case $MAGIC_CMD in
6973 [\\/*] | ?:[\\/]*)
6974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6977 lt_save_MAGIC_CMD="$MAGIC_CMD"
6978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6980 for ac_dir in $ac_dummy; do
6981 IFS="$lt_save_ifs"
6982 test -z "$ac_dir" && ac_dir=.
6983 if test -f $ac_dir/${ac_tool_prefix}file; then
6984 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6985 if test -n "$file_magic_test_file"; then
6986 case $deplibs_check_method in
6987 "file_magic "*)
6988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6991 $EGREP "$file_magic_regex" > /dev/null; then
6993 else
6994 cat <<EOF 1>&2
6996 *** Warning: the command libtool uses to detect shared libraries,
6997 *** $file_magic_cmd, produces output that libtool cannot recognize.
6998 *** The result is that libtool may fail to recognize shared libraries
6999 *** as such. This will affect the creation of libtool libraries that
7000 *** depend on shared libraries, but programs linked with such libtool
7001 *** libraries will work regardless of this problem. Nevertheless, you
7002 *** may want to report the problem to your system manager and/or to
7003 *** bug-libtool@gnu.org
7006 fi ;;
7007 esac
7009 break
7011 done
7012 IFS="$lt_save_ifs"
7013 MAGIC_CMD="$lt_save_MAGIC_CMD"
7015 esac
7018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7019 if test -n "$MAGIC_CMD"; then
7020 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7021 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7022 else
7023 { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7027 if test -z "$lt_cv_path_MAGIC_CMD"; then
7028 if test -n "$ac_tool_prefix"; then
7029 { echo "$as_me:$LINENO: checking for file" >&5
7030 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7031 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034 case $MAGIC_CMD in
7035 [\\/*] | ?:[\\/]*)
7036 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7039 lt_save_MAGIC_CMD="$MAGIC_CMD"
7040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7041 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7042 for ac_dir in $ac_dummy; do
7043 IFS="$lt_save_ifs"
7044 test -z "$ac_dir" && ac_dir=.
7045 if test -f $ac_dir/file; then
7046 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7047 if test -n "$file_magic_test_file"; then
7048 case $deplibs_check_method in
7049 "file_magic "*)
7050 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7053 $EGREP "$file_magic_regex" > /dev/null; then
7055 else
7056 cat <<EOF 1>&2
7058 *** Warning: the command libtool uses to detect shared libraries,
7059 *** $file_magic_cmd, produces output that libtool cannot recognize.
7060 *** The result is that libtool may fail to recognize shared libraries
7061 *** as such. This will affect the creation of libtool libraries that
7062 *** depend on shared libraries, but programs linked with such libtool
7063 *** libraries will work regardless of this problem. Nevertheless, you
7064 *** may want to report the problem to your system manager and/or to
7065 *** bug-libtool@gnu.org
7068 fi ;;
7069 esac
7071 break
7073 done
7074 IFS="$lt_save_ifs"
7075 MAGIC_CMD="$lt_save_MAGIC_CMD"
7077 esac
7080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7081 if test -n "$MAGIC_CMD"; then
7082 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7083 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7084 else
7085 { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7089 else
7090 MAGIC_CMD=:
7096 esac
7098 enable_dlopen=no
7099 enable_win32_dll=no
7101 # Check whether --enable-libtool-lock was given.
7102 if test "${enable_libtool_lock+set}" = set; then
7103 enableval=$enable_libtool_lock;
7106 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7109 # Check whether --with-pic was given.
7110 if test "${with_pic+set}" = set; then
7111 withval=$with_pic; pic_mode="$withval"
7112 else
7113 pic_mode=default
7116 test -z "$pic_mode" && pic_mode=default
7118 # Use C for the default configuration in the libtool script
7119 tagname=
7120 lt_save_CC="$CC"
7121 ac_ext=c
7122 ac_cpp='$CPP $CPPFLAGS'
7123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7128 # Source file extension for C test sources.
7129 ac_ext=c
7131 # Object file extension for compiled C test sources.
7132 objext=o
7133 objext=$objext
7135 # Code to be used in simple compile tests
7136 lt_simple_compile_test_code="int some_variable = 0;\n"
7138 # Code to be used in simple link tests
7139 lt_simple_link_test_code='int main(){return(0);}\n'
7142 # If no C compiler was specified, use CC.
7143 LTCC=${LTCC-"$CC"}
7145 # If no C compiler flags were specified, use CFLAGS.
7146 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7148 # Allow CC to be a program name with arguments.
7149 compiler=$CC
7152 # save warnings/boilerplate of simple test code
7153 ac_outfile=conftest.$ac_objext
7154 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7155 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7156 _lt_compiler_boilerplate=`cat conftest.err`
7157 $rm conftest*
7159 ac_outfile=conftest.$ac_objext
7160 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7161 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7162 _lt_linker_boilerplate=`cat conftest.err`
7163 $rm conftest*
7167 lt_prog_compiler_no_builtin_flag=
7169 if test "$GCC" = yes; then
7170 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7173 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7174 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7175 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178 lt_cv_prog_compiler_rtti_exceptions=no
7179 ac_outfile=conftest.$ac_objext
7180 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7181 lt_compiler_flag="-fno-rtti -fno-exceptions"
7182 # Insert the option either (1) after the last *FLAGS variable, or
7183 # (2) before a word containing "conftest.", or (3) at the end.
7184 # Note that $ac_compile itself does not contain backslashes and begins
7185 # with a dollar sign (not a hyphen), so the echo should work correctly.
7186 # The option is referenced via a variable to avoid confusing sed.
7187 lt_compile=`echo "$ac_compile" | $SED \
7188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7190 -e 's:$: $lt_compiler_flag:'`
7191 (eval echo "\"\$as_me:7191: $lt_compile\"" >&5)
7192 (eval "$lt_compile" 2>conftest.err)
7193 ac_status=$?
7194 cat conftest.err >&5
7195 echo "$as_me:7195: \$? = $ac_status" >&5
7196 if (exit $ac_status) && test -s "$ac_outfile"; then
7197 # The compiler can only warn and ignore the option if not recognized
7198 # So say no if there are warnings other than the usual output.
7199 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7202 lt_cv_prog_compiler_rtti_exceptions=yes
7205 $rm conftest*
7208 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7209 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7211 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7212 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7213 else
7219 lt_prog_compiler_wl=
7220 lt_prog_compiler_pic=
7221 lt_prog_compiler_static=
7223 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7224 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7226 if test "$GCC" = yes; then
7227 lt_prog_compiler_wl='-Wl,'
7228 lt_prog_compiler_static='-static'
7230 case $host_os in
7231 aix*)
7232 # All AIX code is PIC.
7233 if test "$host_cpu" = ia64; then
7234 # AIX 5 now supports IA64 processor
7235 lt_prog_compiler_static='-Bstatic'
7239 amigaos*)
7240 # FIXME: we need at least 68020 code to build shared libraries, but
7241 # adding the `-m68020' flag to GCC prevents building anything better,
7242 # like `-m68040'.
7243 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7246 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7247 # PIC is the default for these OSes.
7250 mingw* | pw32* | os2*)
7251 # This hack is so that the source file can tell whether it is being
7252 # built for inclusion in a dll (and should export symbols for example).
7253 lt_prog_compiler_pic='-DDLL_EXPORT'
7256 darwin* | rhapsody*)
7257 # PIC is the default on this platform
7258 # Common symbols not allowed in MH_DYLIB files
7259 lt_prog_compiler_pic='-fno-common'
7262 interix3*)
7263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7264 # Instead, we relocate shared libraries at runtime.
7267 msdosdjgpp*)
7268 # Just because we use GCC doesn't mean we suddenly get shared libraries
7269 # on systems that don't support them.
7270 lt_prog_compiler_can_build_shared=no
7271 enable_shared=no
7274 sysv4*MP*)
7275 if test -d /usr/nec; then
7276 lt_prog_compiler_pic=-Kconform_pic
7280 hpux*)
7281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7282 # not for PA HP-UX.
7283 case $host_cpu in
7284 hppa*64*|ia64*)
7285 # +Z the default
7288 lt_prog_compiler_pic='-fPIC'
7290 esac
7294 lt_prog_compiler_pic='-fPIC'
7296 esac
7297 else
7298 # PORTME Check for flag to pass linker flags through the system compiler.
7299 case $host_os in
7300 aix*)
7301 lt_prog_compiler_wl='-Wl,'
7302 if test "$host_cpu" = ia64; then
7303 # AIX 5 now supports IA64 processor
7304 lt_prog_compiler_static='-Bstatic'
7305 else
7306 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7309 darwin*)
7310 # PIC is the default on this platform
7311 # Common symbols not allowed in MH_DYLIB files
7312 case $cc_basename in
7313 xlc*)
7314 lt_prog_compiler_pic='-qnocommon'
7315 lt_prog_compiler_wl='-Wl,'
7317 esac
7320 mingw* | pw32* | os2*)
7321 # This hack is so that the source file can tell whether it is being
7322 # built for inclusion in a dll (and should export symbols for example).
7323 lt_prog_compiler_pic='-DDLL_EXPORT'
7326 hpux9* | hpux10* | hpux11*)
7327 lt_prog_compiler_wl='-Wl,'
7328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7329 # not for PA HP-UX.
7330 case $host_cpu in
7331 hppa*64*|ia64*)
7332 # +Z the default
7335 lt_prog_compiler_pic='+Z'
7337 esac
7338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7339 lt_prog_compiler_static='${wl}-a ${wl}archive'
7342 irix5* | irix6* | nonstopux*)
7343 lt_prog_compiler_wl='-Wl,'
7344 # PIC (with -KPIC) is the default.
7345 lt_prog_compiler_static='-non_shared'
7348 newsos6)
7349 lt_prog_compiler_pic='-KPIC'
7350 lt_prog_compiler_static='-Bstatic'
7353 linux* | k*bsd*-gnu)
7354 case $cc_basename in
7355 icc* | ecc*)
7356 lt_prog_compiler_wl='-Wl,'
7357 lt_prog_compiler_pic='-KPIC'
7358 lt_prog_compiler_static='-static'
7360 pgcc* | pgf77* | pgf90* | pgf95*)
7361 # Portland Group compilers (*not* the Pentium gcc compiler,
7362 # which looks to be a dead project)
7363 lt_prog_compiler_wl='-Wl,'
7364 lt_prog_compiler_pic='-fpic'
7365 lt_prog_compiler_static='-Bstatic'
7367 ccc*)
7368 lt_prog_compiler_wl='-Wl,'
7369 # All Alpha code is PIC.
7370 lt_prog_compiler_static='-non_shared'
7372 esac
7375 osf3* | osf4* | osf5*)
7376 lt_prog_compiler_wl='-Wl,'
7377 # All OSF/1 code is PIC.
7378 lt_prog_compiler_static='-non_shared'
7381 solaris*)
7382 lt_prog_compiler_pic='-KPIC'
7383 lt_prog_compiler_static='-Bstatic'
7384 case $cc_basename in
7385 f77* | f90* | f95*)
7386 lt_prog_compiler_wl='-Qoption ld ';;
7388 lt_prog_compiler_wl='-Wl,';;
7389 esac
7392 sunos4*)
7393 lt_prog_compiler_wl='-Qoption ld '
7394 lt_prog_compiler_pic='-PIC'
7395 lt_prog_compiler_static='-Bstatic'
7398 sysv4 | sysv4.2uw2* | sysv4.3*)
7399 lt_prog_compiler_wl='-Wl,'
7400 lt_prog_compiler_pic='-KPIC'
7401 lt_prog_compiler_static='-Bstatic'
7404 sysv4*MP*)
7405 if test -d /usr/nec ;then
7406 lt_prog_compiler_pic='-Kconform_pic'
7407 lt_prog_compiler_static='-Bstatic'
7411 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7412 lt_prog_compiler_wl='-Wl,'
7413 lt_prog_compiler_pic='-KPIC'
7414 lt_prog_compiler_static='-Bstatic'
7417 unicos*)
7418 lt_prog_compiler_wl='-Wl,'
7419 lt_prog_compiler_can_build_shared=no
7422 uts4*)
7423 lt_prog_compiler_pic='-pic'
7424 lt_prog_compiler_static='-Bstatic'
7428 lt_prog_compiler_can_build_shared=no
7430 esac
7433 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7434 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7437 # Check to make sure the PIC flag actually works.
7439 if test -n "$lt_prog_compiler_pic"; then
7441 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7442 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7443 if test "${lt_prog_compiler_pic_works+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446 lt_prog_compiler_pic_works=no
7447 ac_outfile=conftest.$ac_objext
7448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7449 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7450 # Insert the option either (1) after the last *FLAGS variable, or
7451 # (2) before a word containing "conftest.", or (3) at the end.
7452 # Note that $ac_compile itself does not contain backslashes and begins
7453 # with a dollar sign (not a hyphen), so the echo should work correctly.
7454 # The option is referenced via a variable to avoid confusing sed.
7455 lt_compile=`echo "$ac_compile" | $SED \
7456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7458 -e 's:$: $lt_compiler_flag:'`
7459 (eval echo "\"\$as_me:7459: $lt_compile\"" >&5)
7460 (eval "$lt_compile" 2>conftest.err)
7461 ac_status=$?
7462 cat conftest.err >&5
7463 echo "$as_me:7463: \$? = $ac_status" >&5
7464 if (exit $ac_status) && test -s "$ac_outfile"; then
7465 # The compiler can only warn and ignore the option if not recognized
7466 # So say no if there are warnings other than the usual output.
7467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7470 lt_prog_compiler_pic_works=yes
7473 $rm conftest*
7476 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7477 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7479 if test x"$lt_prog_compiler_pic_works" = xyes; then
7480 case $lt_prog_compiler_pic in
7481 "" | " "*) ;;
7482 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7483 esac
7484 else
7485 lt_prog_compiler_pic=
7486 lt_prog_compiler_can_build_shared=no
7490 case $host_os in
7491 # For platforms which do not support PIC, -DPIC is meaningless:
7492 *djgpp*)
7493 lt_prog_compiler_pic=
7496 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7498 esac
7501 # Check to make sure the static flag actually works.
7503 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7504 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7505 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7506 if test "${lt_prog_compiler_static_works+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509 lt_prog_compiler_static_works=no
7510 save_LDFLAGS="$LDFLAGS"
7511 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7512 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7514 # The linker can only warn and ignore the option if not recognized
7515 # So say no if there are warnings
7516 if test -s conftest.err; then
7517 # Append any errors to the config.log.
7518 cat conftest.err 1>&5
7519 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7521 if diff conftest.exp conftest.er2 >/dev/null; then
7522 lt_prog_compiler_static_works=yes
7524 else
7525 lt_prog_compiler_static_works=yes
7528 $rm conftest*
7529 LDFLAGS="$save_LDFLAGS"
7532 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7533 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7535 if test x"$lt_prog_compiler_static_works" = xyes; then
7537 else
7538 lt_prog_compiler_static=
7542 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7543 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7544 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547 lt_cv_prog_compiler_c_o=no
7548 $rm -r conftest 2>/dev/null
7549 mkdir conftest
7550 cd conftest
7551 mkdir out
7552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7554 lt_compiler_flag="-o out/conftest2.$ac_objext"
7555 # Insert the option either (1) after the last *FLAGS variable, or
7556 # (2) before a word containing "conftest.", or (3) at the end.
7557 # Note that $ac_compile itself does not contain backslashes and begins
7558 # with a dollar sign (not a hyphen), so the echo should work correctly.
7559 lt_compile=`echo "$ac_compile" | $SED \
7560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7562 -e 's:$: $lt_compiler_flag:'`
7563 (eval echo "\"\$as_me:7563: $lt_compile\"" >&5)
7564 (eval "$lt_compile" 2>out/conftest.err)
7565 ac_status=$?
7566 cat out/conftest.err >&5
7567 echo "$as_me:7567: \$? = $ac_status" >&5
7568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7569 then
7570 # The compiler can only warn and ignore the option if not recognized
7571 # So say no if there are warnings
7572 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7575 lt_cv_prog_compiler_c_o=yes
7578 chmod u+w . 2>&5
7579 $rm conftest*
7580 # SGI C++ compiler will create directory out/ii_files/ for
7581 # template instantiation
7582 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7583 $rm out/* && rmdir out
7584 cd ..
7585 rmdir conftest
7586 $rm conftest*
7589 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7590 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7593 hard_links="nottested"
7594 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7595 # do not overwrite the value of need_locks provided by the user
7596 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7597 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7598 hard_links=yes
7599 $rm conftest*
7600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7601 touch conftest.a
7602 ln conftest.a conftest.b 2>&5 || hard_links=no
7603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7604 { echo "$as_me:$LINENO: result: $hard_links" >&5
7605 echo "${ECHO_T}$hard_links" >&6; }
7606 if test "$hard_links" = no; then
7607 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7608 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7609 need_locks=warn
7611 else
7612 need_locks=no
7615 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7616 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7618 runpath_var=
7619 allow_undefined_flag=
7620 enable_shared_with_static_runtimes=no
7621 archive_cmds=
7622 archive_expsym_cmds=
7623 old_archive_From_new_cmds=
7624 old_archive_from_expsyms_cmds=
7625 export_dynamic_flag_spec=
7626 whole_archive_flag_spec=
7627 thread_safe_flag_spec=
7628 hardcode_libdir_flag_spec=
7629 hardcode_libdir_flag_spec_ld=
7630 hardcode_libdir_separator=
7631 hardcode_direct=no
7632 hardcode_minus_L=no
7633 hardcode_shlibpath_var=unsupported
7634 link_all_deplibs=unknown
7635 hardcode_automatic=no
7636 module_cmds=
7637 module_expsym_cmds=
7638 always_export_symbols=no
7639 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7640 # include_expsyms should be a list of space-separated symbols to be *always*
7641 # included in the symbol list
7642 include_expsyms=
7643 # exclude_expsyms can be an extended regexp of symbols to exclude
7644 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7645 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7646 # as well as any symbol that contains `d'.
7647 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7648 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7649 # platforms (ab)use it in PIC code, but their linkers get confused if
7650 # the symbol is explicitly referenced. Since portable code cannot
7651 # rely on this symbol name, it's probably fine to never include it in
7652 # preloaded symbol tables.
7653 extract_expsyms_cmds=
7654 # Just being paranoid about ensuring that cc_basename is set.
7655 for cc_temp in $compiler""; do
7656 case $cc_temp in
7657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7659 \-*) ;;
7660 *) break;;
7661 esac
7662 done
7663 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7665 case $host_os in
7666 cygwin* | mingw* | pw32*)
7667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7668 # When not using gcc, we currently assume that we are using
7669 # Microsoft Visual C++.
7670 if test "$GCC" != yes; then
7671 with_gnu_ld=no
7674 interix*)
7675 # we just hope/assume this is gcc and not c89 (= MSVC++)
7676 with_gnu_ld=yes
7678 openbsd*)
7679 with_gnu_ld=no
7681 esac
7683 ld_shlibs=yes
7684 if test "$with_gnu_ld" = yes; then
7685 # If archive_cmds runs LD, not CC, wlarc should be empty
7686 wlarc='${wl}'
7688 # Set some defaults for GNU ld with shared library support. These
7689 # are reset later if shared libraries are not supported. Putting them
7690 # here allows them to be overridden if necessary.
7691 runpath_var=LD_RUN_PATH
7692 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7693 export_dynamic_flag_spec='${wl}--export-dynamic'
7694 # ancient GNU ld didn't support --whole-archive et. al.
7695 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7696 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7697 else
7698 whole_archive_flag_spec=
7700 supports_anon_versioning=no
7701 case `$LD -v 2>/dev/null` in
7702 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7703 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7704 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7705 *\ 2.11.*) ;; # other 2.11 versions
7706 *) supports_anon_versioning=yes ;;
7707 esac
7709 # See if GNU ld supports shared libraries.
7710 case $host_os in
7711 aix3* | aix4* | aix5*)
7712 # On AIX/PPC, the GNU linker is very broken
7713 if test "$host_cpu" != ia64; then
7714 ld_shlibs=no
7715 cat <<EOF 1>&2
7717 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7718 *** to be unable to reliably create shared libraries on AIX.
7719 *** Therefore, libtool is disabling shared libraries support. If you
7720 *** really care for shared libraries, you may want to modify your PATH
7721 *** so that a non-GNU linker is found, and then restart.
7727 amigaos*)
7728 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)'
7729 hardcode_libdir_flag_spec='-L$libdir'
7730 hardcode_minus_L=yes
7732 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7733 # that the semantics of dynamic libraries on AmigaOS, at least up
7734 # to version 4, is to share data among multiple programs linked
7735 # with the same dynamic library. Since this doesn't match the
7736 # behavior of shared libraries on other platforms, we can't use
7737 # them.
7738 ld_shlibs=no
7741 beos*)
7742 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7743 allow_undefined_flag=unsupported
7744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7745 # support --undefined. This deserves some investigation. FIXME
7746 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7747 else
7748 ld_shlibs=no
7752 cygwin* | mingw* | pw32*)
7753 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7754 # as there is no search path for DLLs.
7755 hardcode_libdir_flag_spec='-L$libdir'
7756 allow_undefined_flag=unsupported
7757 always_export_symbols=no
7758 enable_shared_with_static_runtimes=yes
7759 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7761 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7763 # If the export-symbols file already is a .def file (1st line
7764 # is EXPORTS), use it as is; otherwise, prepend...
7765 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7766 cp $export_symbols $output_objdir/$soname.def;
7767 else
7768 echo EXPORTS > $output_objdir/$soname.def;
7769 cat $export_symbols >> $output_objdir/$soname.def;
7771 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7772 else
7773 ld_shlibs=no
7777 interix3*)
7778 hardcode_direct=no
7779 hardcode_shlibpath_var=no
7780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7781 export_dynamic_flag_spec='${wl}-E'
7782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7783 # Instead, shared libraries are loaded at an image base (0x10000000 by
7784 # default) and relocated if they conflict, which is a slow very memory
7785 # consuming and fragmenting process. To avoid this, we pick a random,
7786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7787 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7789 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'
7792 linux* | k*bsd*-gnu)
7793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7794 tmp_addflag=
7795 case $cc_basename,$host_cpu in
7796 pgcc*) # Portland Group C compiler
7797 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'
7798 tmp_addflag=' $pic_flag'
7800 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7801 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'
7802 tmp_addflag=' $pic_flag -Mnomain' ;;
7803 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7804 tmp_addflag=' -i_dynamic' ;;
7805 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7806 tmp_addflag=' -i_dynamic -nofor_main' ;;
7807 ifc* | ifort*) # Intel Fortran compiler
7808 tmp_addflag=' -nofor_main' ;;
7809 esac
7810 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7812 if test $supports_anon_versioning = yes; then
7813 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7815 $echo "local: *; };" >> $output_objdir/$libname.ver~
7816 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7818 link_all_deplibs=no
7819 else
7820 ld_shlibs=no
7824 netbsd* | netbsdelf*-gnu)
7825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7826 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7827 wlarc=
7828 else
7829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7830 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7834 solaris*)
7835 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7836 ld_shlibs=no
7837 cat <<EOF 1>&2
7839 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7840 *** create shared libraries on Solaris systems. Therefore, libtool
7841 *** is disabling shared libraries support. We urge you to upgrade GNU
7842 *** binutils to release 2.9.1 or newer. Another option is to modify
7843 *** your PATH or compiler configuration so that the native linker is
7844 *** used, and then restart.
7847 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7850 else
7851 ld_shlibs=no
7855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7856 case `$LD -v 2>&1` in
7857 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7858 ld_shlibs=no
7859 cat <<_LT_EOF 1>&2
7861 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7862 *** reliably create shared libraries on SCO systems. Therefore, libtool
7863 *** is disabling shared libraries support. We urge you to upgrade GNU
7864 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7865 *** your PATH or compiler configuration so that the native linker is
7866 *** used, and then restart.
7868 _LT_EOF
7871 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7872 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7874 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7875 else
7876 ld_shlibs=no
7879 esac
7882 sunos4*)
7883 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7884 wlarc=
7885 hardcode_direct=yes
7886 hardcode_shlibpath_var=no
7890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7892 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7893 else
7894 ld_shlibs=no
7897 esac
7899 if test "$ld_shlibs" = no; then
7900 runpath_var=
7901 hardcode_libdir_flag_spec=
7902 export_dynamic_flag_spec=
7903 whole_archive_flag_spec=
7905 else
7906 # PORTME fill in a description of your system's linker (not GNU ld)
7907 case $host_os in
7908 aix3*)
7909 allow_undefined_flag=unsupported
7910 always_export_symbols=yes
7911 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'
7912 # Note: this linker hardcodes the directories in LIBPATH if there
7913 # are no directories specified by -L.
7914 hardcode_minus_L=yes
7915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7916 # Neither direct hardcoding nor static linking is supported with a
7917 # broken collect2.
7918 hardcode_direct=unsupported
7922 aix4* | aix5*)
7923 if test "$host_cpu" = ia64; then
7924 # On IA64, the linker does run time linking by default, so we don't
7925 # have to do anything special.
7926 aix_use_runtimelinking=no
7927 exp_sym_flag='-Bexport'
7928 no_entry_flag=""
7929 else
7930 # If we're using GNU nm, then we don't want the "-C" option.
7931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7932 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7933 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'
7934 else
7935 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'
7937 aix_use_runtimelinking=no
7939 # Test if we are trying to use run time linking or normal
7940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7941 # need to do runtime linking.
7942 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7943 for ld_flag in $LDFLAGS; do
7944 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7945 aix_use_runtimelinking=yes
7946 break
7948 done
7950 esac
7952 exp_sym_flag='-bexport'
7953 no_entry_flag='-bnoentry'
7956 # When large executables or shared objects are built, AIX ld can
7957 # have problems creating the table of contents. If linking a library
7958 # or program results in "error TOC overflow" add -mminimal-toc to
7959 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7960 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7962 archive_cmds=''
7963 hardcode_direct=yes
7964 hardcode_libdir_separator=':'
7965 link_all_deplibs=yes
7967 if test "$GCC" = yes; then
7968 case $host_os in aix4.[012]|aix4.[012].*)
7969 # We only want to do this on AIX 4.2 and lower, the check
7970 # below for broken collect2 doesn't work under 4.3+
7971 collect2name=`${CC} -print-prog-name=collect2`
7972 if test -f "$collect2name" && \
7973 strings "$collect2name" | grep resolve_lib_name >/dev/null
7974 then
7975 # We have reworked collect2
7976 hardcode_direct=yes
7977 else
7978 # We have old collect2
7979 hardcode_direct=unsupported
7980 # It fails to find uninstalled libraries when the uninstalled
7981 # path is not listed in the libpath. Setting hardcode_minus_L
7982 # to unsupported forces relinking
7983 hardcode_minus_L=yes
7984 hardcode_libdir_flag_spec='-L$libdir'
7985 hardcode_libdir_separator=
7988 esac
7989 shared_flag='-shared'
7990 if test "$aix_use_runtimelinking" = yes; then
7991 shared_flag="$shared_flag "'${wl}-G'
7993 else
7994 # not using gcc
7995 if test "$host_cpu" = ia64; then
7996 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7997 # chokes on -Wl,-G. The following line is correct:
7998 shared_flag='-G'
7999 else
8000 if test "$aix_use_runtimelinking" = yes; then
8001 shared_flag='${wl}-G'
8002 else
8003 shared_flag='${wl}-bM:SRE'
8008 # It seems that -bexpall does not export symbols beginning with
8009 # underscore (_), so it is better to generate a list of symbols to export.
8010 always_export_symbols=yes
8011 if test "$aix_use_runtimelinking" = yes; then
8012 # Warning - without using the other runtime loading flags (-brtl),
8013 # -berok will link without error, but may produce a broken library.
8014 allow_undefined_flag='-berok'
8015 # Determine the default libpath from the value encoded in an empty executable.
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h. */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8024 main ()
8028 return 0;
8030 _ACEOF
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (ac_try="$ac_link"
8033 case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036 esac
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_link") 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest$ac_exeext'
8056 { (case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_try") 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8068 # Check for a 64-bit object if we didn't find anything.
8069 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8070 }'`; fi
8071 else
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8078 rm -f core conftest.err conftest.$ac_objext \
8079 conftest$ac_exeext conftest.$ac_ext
8080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8082 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8083 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"
8084 else
8085 if test "$host_cpu" = ia64; then
8086 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8087 allow_undefined_flag="-z nodefs"
8088 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"
8089 else
8090 # Determine the default libpath from the value encoded in an empty executable.
8091 cat >conftest.$ac_ext <<_ACEOF
8092 /* confdefs.h. */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8099 main ()
8103 return 0;
8105 _ACEOF
8106 rm -f conftest.$ac_objext conftest$ac_exeext
8107 if { (ac_try="$ac_link"
8108 case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_link") 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121 { (case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8124 esac
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_try") 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest$ac_exeext'
8131 { (case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134 esac
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_try") 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8143 # Check for a 64-bit object if we didn't find anything.
8144 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8145 }'`; fi
8146 else
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8153 rm -f core conftest.err conftest.$ac_objext \
8154 conftest$ac_exeext conftest.$ac_ext
8155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8157 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8158 # Warning - without using the other run time loading flags,
8159 # -berok will link without error, but may produce a broken library.
8160 no_undefined_flag=' ${wl}-bernotok'
8161 allow_undefined_flag=' ${wl}-berok'
8162 # Exported symbols can be pulled into shared objects from archives
8163 whole_archive_flag_spec='$convenience'
8164 archive_cmds_need_lc=yes
8165 # This is similar to how AIX traditionally builds its shared libraries.
8166 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'
8171 amigaos*)
8172 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)'
8173 hardcode_libdir_flag_spec='-L$libdir'
8174 hardcode_minus_L=yes
8175 # see comment about different semantics on the GNU ld section
8176 ld_shlibs=no
8179 bsdi[45]*)
8180 export_dynamic_flag_spec=-rdynamic
8183 cygwin* | mingw* | pw32*)
8184 # When not using gcc, we currently assume that we are using
8185 # Microsoft Visual C++.
8186 # hardcode_libdir_flag_spec is actually meaningless, as there is
8187 # no search path for DLLs.
8188 hardcode_libdir_flag_spec=' '
8189 allow_undefined_flag=unsupported
8190 # Tell ltmain to make .lib files, not .a files.
8191 libext=lib
8192 # Tell ltmain to make .dll files, not .so files.
8193 shrext_cmds=".dll"
8194 # FIXME: Setting linknames here is a bad hack.
8195 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8196 # The linker will automatically build a .lib file if we build a DLL.
8197 old_archive_From_new_cmds='true'
8198 # FIXME: Should let the user specify the lib program.
8199 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8200 fix_srcfile_path='`cygpath -w "$srcfile"`'
8201 enable_shared_with_static_runtimes=yes
8204 darwin* | rhapsody*)
8205 case $host_os in
8206 rhapsody* | darwin1.[012])
8207 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8209 *) # Darwin 1.3 on
8210 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8211 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8212 else
8213 case ${MACOSX_DEPLOYMENT_TARGET} in
8214 10.[012])
8215 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8217 10.*)
8218 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8220 esac
8223 esac
8224 archive_cmds_need_lc=no
8225 hardcode_direct=no
8226 hardcode_automatic=yes
8227 hardcode_shlibpath_var=unsupported
8228 whole_archive_flag_spec=''
8229 link_all_deplibs=yes
8230 if test "$GCC" = yes ; then
8231 output_verbose_link_cmd='echo'
8232 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8233 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8234 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8235 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}'
8236 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}'
8237 else
8238 case $cc_basename in
8239 xlc*)
8240 output_verbose_link_cmd='echo'
8241 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8242 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8243 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8244 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}'
8245 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}'
8248 ld_shlibs=no
8250 esac
8254 dgux*)
8255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8256 hardcode_libdir_flag_spec='-L$libdir'
8257 hardcode_shlibpath_var=no
8260 freebsd1*)
8261 ld_shlibs=no
8264 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8265 # support. Future versions do this automatically, but an explicit c++rt0.o
8266 # does not break anything, and helps significantly (at the cost of a little
8267 # extra space).
8268 freebsd2.2*)
8269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8270 hardcode_libdir_flag_spec='-R$libdir'
8271 hardcode_direct=yes
8272 hardcode_shlibpath_var=no
8275 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8276 freebsd2*)
8277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8278 hardcode_direct=yes
8279 hardcode_minus_L=yes
8280 hardcode_shlibpath_var=no
8283 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8284 freebsd* | dragonfly*)
8285 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8286 hardcode_libdir_flag_spec='-R$libdir'
8287 hardcode_direct=yes
8288 hardcode_shlibpath_var=no
8291 hpux9*)
8292 if test "$GCC" = yes; then
8293 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'
8294 else
8295 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'
8297 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8298 hardcode_libdir_separator=:
8299 hardcode_direct=yes
8301 # hardcode_minus_L: Not really in the search PATH,
8302 # but as the default location of the library.
8303 hardcode_minus_L=yes
8304 export_dynamic_flag_spec='${wl}-E'
8307 hpux10*)
8308 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8309 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8310 else
8311 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8313 if test "$with_gnu_ld" = no; then
8314 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8315 hardcode_libdir_separator=:
8317 hardcode_direct=yes
8318 export_dynamic_flag_spec='${wl}-E'
8320 # hardcode_minus_L: Not really in the search PATH,
8321 # but as the default location of the library.
8322 hardcode_minus_L=yes
8326 hpux11*)
8327 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8328 case $host_cpu in
8329 hppa*64*)
8330 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8332 ia64*)
8333 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8336 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8338 esac
8339 else
8340 case $host_cpu in
8341 hppa*64*)
8342 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8344 ia64*)
8345 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8348 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8350 esac
8352 if test "$with_gnu_ld" = no; then
8353 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8354 hardcode_libdir_separator=:
8356 case $host_cpu in
8357 hppa*64*|ia64*)
8358 hardcode_libdir_flag_spec_ld='+b $libdir'
8359 hardcode_direct=no
8360 hardcode_shlibpath_var=no
8363 hardcode_direct=yes
8364 export_dynamic_flag_spec='${wl}-E'
8366 # hardcode_minus_L: Not really in the search PATH,
8367 # but as the default location of the library.
8368 hardcode_minus_L=yes
8370 esac
8374 irix5* | irix6* | nonstopux*)
8375 if test "$GCC" = yes; then
8376 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'
8377 else
8378 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'
8379 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8382 hardcode_libdir_separator=:
8383 link_all_deplibs=yes
8386 netbsd* | netbsdelf*-gnu)
8387 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8389 else
8390 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8392 hardcode_libdir_flag_spec='-R$libdir'
8393 hardcode_direct=yes
8394 hardcode_shlibpath_var=no
8397 newsos6)
8398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8399 hardcode_direct=yes
8400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8401 hardcode_libdir_separator=:
8402 hardcode_shlibpath_var=no
8405 openbsd*)
8406 hardcode_direct=yes
8407 hardcode_shlibpath_var=no
8408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8409 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8410 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8411 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8412 export_dynamic_flag_spec='${wl}-E'
8413 else
8414 case $host_os in
8415 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8417 hardcode_libdir_flag_spec='-R$libdir'
8420 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8421 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8423 esac
8427 os2*)
8428 hardcode_libdir_flag_spec='-L$libdir'
8429 hardcode_minus_L=yes
8430 allow_undefined_flag=unsupported
8431 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'
8432 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8435 osf3*)
8436 if test "$GCC" = yes; then
8437 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8438 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'
8439 else
8440 allow_undefined_flag=' -expect_unresolved \*'
8441 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'
8443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8444 hardcode_libdir_separator=:
8447 osf4* | osf5*) # as osf3* with the addition of -msym flag
8448 if test "$GCC" = yes; then
8449 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8450 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'
8451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8452 else
8453 allow_undefined_flag=' -expect_unresolved \*'
8454 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'
8455 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8456 $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'
8458 # Both c and cxx compiler support -rpath directly
8459 hardcode_libdir_flag_spec='-rpath $libdir'
8461 hardcode_libdir_separator=:
8464 solaris*)
8465 no_undefined_flag=' -z text'
8466 if test "$GCC" = yes; then
8467 wlarc='${wl}'
8468 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8469 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8470 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8471 else
8472 wlarc=''
8473 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8474 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8477 hardcode_libdir_flag_spec='-R$libdir'
8478 hardcode_shlibpath_var=no
8479 case $host_os in
8480 solaris2.[0-5] | solaris2.[0-5].*) ;;
8482 # The compiler driver will combine linker options so we
8483 # cannot just pass the convience library names through
8484 # without $wl, iff we do not link with $LD.
8485 # Luckily, gcc supports the same syntax we need for Sun Studio.
8486 # Supported since Solaris 2.6 (maybe 2.5.1?)
8487 case $wlarc in
8489 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8491 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' ;;
8492 esac ;;
8493 esac
8494 link_all_deplibs=yes
8497 sunos4*)
8498 if test "x$host_vendor" = xsequent; then
8499 # Use $CC to link under sequent, because it throws in some extra .o
8500 # files that make .init and .fini sections work.
8501 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8502 else
8503 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8505 hardcode_libdir_flag_spec='-L$libdir'
8506 hardcode_direct=yes
8507 hardcode_minus_L=yes
8508 hardcode_shlibpath_var=no
8511 sysv4)
8512 case $host_vendor in
8513 sni)
8514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8515 hardcode_direct=yes # is this really true???
8517 siemens)
8518 ## LD is ld it makes a PLAMLIB
8519 ## CC just makes a GrossModule.
8520 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8521 reload_cmds='$CC -r -o $output$reload_objs'
8522 hardcode_direct=no
8524 motorola)
8525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8526 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8528 esac
8529 runpath_var='LD_RUN_PATH'
8530 hardcode_shlibpath_var=no
8533 sysv4.3*)
8534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8535 hardcode_shlibpath_var=no
8536 export_dynamic_flag_spec='-Bexport'
8539 sysv4*MP*)
8540 if test -d /usr/nec; then
8541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8542 hardcode_shlibpath_var=no
8543 runpath_var=LD_RUN_PATH
8544 hardcode_runpath_var=yes
8545 ld_shlibs=yes
8549 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8550 no_undefined_flag='${wl}-z,text'
8551 archive_cmds_need_lc=no
8552 hardcode_shlibpath_var=no
8553 runpath_var='LD_RUN_PATH'
8555 if test "$GCC" = yes; then
8556 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8557 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8558 else
8559 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8560 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8564 sysv5* | sco3.2v5* | sco5v6*)
8565 # Note: We can NOT use -z defs as we might desire, because we do not
8566 # link with -lc, and that would cause any symbols used from libc to
8567 # always be unresolved, which means just about no library would
8568 # ever link correctly. If we're not using GNU ld we use -z text
8569 # though, which does catch some bad symbols but isn't as heavy-handed
8570 # as -z defs.
8571 no_undefined_flag='${wl}-z,text'
8572 allow_undefined_flag='${wl}-z,nodefs'
8573 archive_cmds_need_lc=no
8574 hardcode_shlibpath_var=no
8575 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8576 hardcode_libdir_separator=':'
8577 link_all_deplibs=yes
8578 export_dynamic_flag_spec='${wl}-Bexport'
8579 runpath_var='LD_RUN_PATH'
8581 if test "$GCC" = yes; then
8582 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8583 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8584 else
8585 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8586 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8590 uts4*)
8591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8592 hardcode_libdir_flag_spec='-L$libdir'
8593 hardcode_shlibpath_var=no
8597 ld_shlibs=no
8599 esac
8602 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8603 echo "${ECHO_T}$ld_shlibs" >&6; }
8604 test "$ld_shlibs" = no && can_build_shared=no
8607 # Do we need to explicitly link libc?
8609 case "x$archive_cmds_need_lc" in
8610 x|xyes)
8611 # Assume -lc should be added
8612 archive_cmds_need_lc=yes
8614 if test "$enable_shared" = yes && test "$GCC" = yes; then
8615 case $archive_cmds in
8616 *'~'*)
8617 # FIXME: we may have to deal with multi-command sequences.
8619 '$CC '*)
8620 # Test whether the compiler implicitly links with -lc since on some
8621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8622 # to ld, don't add -lc before -lgcc.
8623 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8624 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8625 $rm conftest*
8626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8629 (eval $ac_compile) 2>&5
8630 ac_status=$?
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } 2>conftest.err; then
8633 soname=conftest
8634 lib=conftest
8635 libobjs=conftest.$ac_objext
8636 deplibs=
8637 wl=$lt_prog_compiler_wl
8638 pic_flag=$lt_prog_compiler_pic
8639 compiler_flags=-v
8640 linker_flags=-v
8641 verstring=
8642 output_objdir=.
8643 libname=conftest
8644 lt_save_allow_undefined_flag=$allow_undefined_flag
8645 allow_undefined_flag=
8646 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8647 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }
8651 then
8652 archive_cmds_need_lc=no
8653 else
8654 archive_cmds_need_lc=yes
8656 allow_undefined_flag=$lt_save_allow_undefined_flag
8657 else
8658 cat conftest.err 1>&5
8660 $rm conftest*
8661 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8662 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8664 esac
8667 esac
8669 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8670 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8671 library_names_spec=
8672 libname_spec='lib$name'
8673 soname_spec=
8674 shrext_cmds=".so"
8675 postinstall_cmds=
8676 postuninstall_cmds=
8677 finish_cmds=
8678 finish_eval=
8679 shlibpath_var=
8680 shlibpath_overrides_runpath=unknown
8681 version_type=none
8682 dynamic_linker="$host_os ld.so"
8683 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8684 if test "$GCC" = yes; then
8685 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8686 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8687 # if the path contains ";" then we assume it to be the separator
8688 # otherwise default to the standard path separator (i.e. ":") - it is
8689 # assumed that no part of a normal pathname contains ";" but that should
8690 # okay in the real world where ";" in dirpaths is itself problematic.
8691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8692 else
8693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8695 else
8696 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8698 need_lib_prefix=unknown
8699 hardcode_into_libs=no
8701 # when you set need_version to no, make sure it does not cause -set_version
8702 # flags to be left without arguments
8703 need_version=unknown
8705 case $host_os in
8706 aix3*)
8707 version_type=linux
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8709 shlibpath_var=LIBPATH
8711 # AIX 3 has no versioning support, so we append a major version to the name.
8712 soname_spec='${libname}${release}${shared_ext}$major'
8715 aix4* | aix5*)
8716 version_type=linux
8717 need_lib_prefix=no
8718 need_version=no
8719 hardcode_into_libs=yes
8720 if test "$host_cpu" = ia64; then
8721 # AIX 5 supports IA64
8722 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8723 shlibpath_var=LD_LIBRARY_PATH
8724 else
8725 # With GCC up to 2.95.x, collect2 would create an import file
8726 # for dependence libraries. The import file would start with
8727 # the line `#! .'. This would cause the generated library to
8728 # depend on `.', always an invalid library. This was fixed in
8729 # development snapshots of GCC prior to 3.0.
8730 case $host_os in
8731 aix4 | aix4.[01] | aix4.[01].*)
8732 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8733 echo ' yes '
8734 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8736 else
8737 can_build_shared=no
8740 esac
8741 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8742 # soname into executable. Probably we can add versioning support to
8743 # collect2, so additional links can be useful in future.
8744 if test "$aix_use_runtimelinking" = yes; then
8745 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8746 # instead of lib<name>.a to let people know that these are not
8747 # typical AIX shared libraries.
8748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8749 else
8750 # We preserve .a as extension for shared libraries through AIX4.2
8751 # and later when we are not doing run time linking.
8752 library_names_spec='${libname}${release}.a $libname.a'
8753 soname_spec='${libname}${release}${shared_ext}$major'
8755 shlibpath_var=LIBPATH
8759 amigaos*)
8760 library_names_spec='$libname.ixlibrary $libname.a'
8761 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8762 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'
8765 beos*)
8766 library_names_spec='${libname}${shared_ext}'
8767 dynamic_linker="$host_os ld.so"
8768 shlibpath_var=LIBRARY_PATH
8771 bsdi[45]*)
8772 version_type=linux
8773 need_version=no
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8777 shlibpath_var=LD_LIBRARY_PATH
8778 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8779 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8780 # the default ld.so.conf also contains /usr/contrib/lib and
8781 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8782 # libtool to hard-code these into programs
8785 cygwin* | mingw* | pw32*)
8786 version_type=windows
8787 shrext_cmds=".dll"
8788 need_version=no
8789 need_lib_prefix=no
8791 case $GCC,$host_os in
8792 yes,cygwin* | yes,mingw* | yes,pw32*)
8793 library_names_spec='$libname.dll.a'
8794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8795 postinstall_cmds='base_file=`basename \${file}`~
8796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8797 dldir=$destdir/`dirname \$dlpath`~
8798 test -d \$dldir || mkdir -p \$dldir~
8799 $install_prog $dir/$dlname \$dldir/$dlname~
8800 chmod a+x \$dldir/$dlname'
8801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8802 dlpath=$dir/\$dldll~
8803 $rm \$dlpath'
8804 shlibpath_overrides_runpath=yes
8806 case $host_os in
8807 cygwin*)
8808 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8809 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8810 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8812 mingw*)
8813 # MinGW DLLs use traditional 'lib' prefix
8814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8816 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8817 # It is most probably a Windows format PATH printed by
8818 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8819 # path with ; separators, and with drive letters. We can handle the
8820 # drive letters (cygwin fileutils understands them), so leave them,
8821 # especially as we might pass files found there to a mingw objdump,
8822 # which wouldn't understand a cygwinified path. Ahh.
8823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8824 else
8825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8828 pw32*)
8829 # pw32 DLLs use 'pw' prefix rather than 'lib'
8830 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8832 esac
8836 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8838 esac
8839 dynamic_linker='Win32 ld.exe'
8840 # FIXME: first we should search . and the directory the executable is in
8841 shlibpath_var=PATH
8844 darwin* | rhapsody*)
8845 dynamic_linker="$host_os dyld"
8846 version_type=darwin
8847 need_lib_prefix=no
8848 need_version=no
8849 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8850 soname_spec='${libname}${release}${major}$shared_ext'
8851 shlibpath_overrides_runpath=yes
8852 shlibpath_var=DYLD_LIBRARY_PATH
8853 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8854 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8855 if test "$GCC" = yes; then
8856 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"`
8857 else
8858 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8860 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8863 dgux*)
8864 version_type=linux
8865 need_lib_prefix=no
8866 need_version=no
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8868 soname_spec='${libname}${release}${shared_ext}$major'
8869 shlibpath_var=LD_LIBRARY_PATH
8872 freebsd1*)
8873 dynamic_linker=no
8876 freebsd* | dragonfly*)
8877 # DragonFly does not have aout. When/if they implement a new
8878 # versioning mechanism, adjust this.
8879 if test -x /usr/bin/objformat; then
8880 objformat=`/usr/bin/objformat`
8881 else
8882 case $host_os in
8883 freebsd[123]*) objformat=aout ;;
8884 *) objformat=elf ;;
8885 esac
8887 version_type=freebsd-$objformat
8888 case $version_type in
8889 freebsd-elf*)
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8891 need_version=no
8892 need_lib_prefix=no
8894 freebsd-*)
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8896 need_version=yes
8898 esac
8899 shlibpath_var=LD_LIBRARY_PATH
8900 case $host_os in
8901 freebsd2*)
8902 shlibpath_overrides_runpath=yes
8904 freebsd3.[01]* | freebsdelf3.[01]*)
8905 shlibpath_overrides_runpath=yes
8906 hardcode_into_libs=yes
8908 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8909 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8910 shlibpath_overrides_runpath=no
8911 hardcode_into_libs=yes
8913 freebsd*) # from 4.6 on
8914 shlibpath_overrides_runpath=yes
8915 hardcode_into_libs=yes
8917 esac
8920 gnu*)
8921 version_type=linux
8922 need_lib_prefix=no
8923 need_version=no
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 shlibpath_var=LD_LIBRARY_PATH
8927 hardcode_into_libs=yes
8930 hpux9* | hpux10* | hpux11*)
8931 # Give a soname corresponding to the major version so that dld.sl refuses to
8932 # link against other versions.
8933 version_type=sunos
8934 need_lib_prefix=no
8935 need_version=no
8936 case $host_cpu in
8937 ia64*)
8938 shrext_cmds='.so'
8939 hardcode_into_libs=yes
8940 dynamic_linker="$host_os dld.so"
8941 shlibpath_var=LD_LIBRARY_PATH
8942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 if test "X$HPUX_IA64_MODE" = X32; then
8946 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8947 else
8948 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8952 hppa*64*)
8953 shrext_cmds='.sl'
8954 hardcode_into_libs=yes
8955 dynamic_linker="$host_os dld.sl"
8956 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8964 shrext_cmds='.sl'
8965 dynamic_linker="$host_os dld.sl"
8966 shlibpath_var=SHLIB_PATH
8967 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8971 esac
8972 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8973 postinstall_cmds='chmod 555 $lib'
8976 interix3*)
8977 version_type=linux
8978 need_lib_prefix=no
8979 need_version=no
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8981 soname_spec='${libname}${release}${shared_ext}$major'
8982 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8983 shlibpath_var=LD_LIBRARY_PATH
8984 shlibpath_overrides_runpath=no
8985 hardcode_into_libs=yes
8988 irix5* | irix6* | nonstopux*)
8989 case $host_os in
8990 nonstopux*) version_type=nonstopux ;;
8992 if test "$lt_cv_prog_gnu_ld" = yes; then
8993 version_type=linux
8994 else
8995 version_type=irix
8996 fi ;;
8997 esac
8998 need_lib_prefix=no
8999 need_version=no
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9002 case $host_os in
9003 irix5* | nonstopux*)
9004 libsuff= shlibsuff=
9007 case $LD in # libtool.m4 will add one of these switches to LD
9008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9009 libsuff= shlibsuff= libmagic=32-bit;;
9010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9011 libsuff=32 shlibsuff=N32 libmagic=N32;;
9012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9014 *) libsuff= shlibsuff= libmagic=never-match;;
9015 esac
9017 esac
9018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9019 shlibpath_overrides_runpath=no
9020 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9021 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9022 hardcode_into_libs=yes
9025 # No shared lib support for Linux oldld, aout, or coff.
9026 linux*oldld* | linux*aout* | linux*coff*)
9027 dynamic_linker=no
9030 # This must be Linux ELF.
9031 linux* | k*bsd*-gnu)
9032 version_type=linux
9033 need_lib_prefix=no
9034 need_version=no
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 shlibpath_overrides_runpath=no
9040 # This implies no fast_install, which is unacceptable.
9041 # Some rework will be needed to allow for fast_install
9042 # before this can be enabled.
9043 hardcode_into_libs=yes
9045 # Append ld.so.conf contents to the search path
9046 if test -f /etc/ld.so.conf; then
9047 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' ' '`
9048 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9051 # We used to test for /lib/ld.so.1 and disable shared libraries on
9052 # powerpc, because MkLinux only supported shared libraries with the
9053 # GNU dynamic linker. Since this was broken with cross compilers,
9054 # most powerpc-linux boxes support dynamic linking these days and
9055 # people can always --disable-shared, the test was removed, and we
9056 # assume the GNU/Linux dynamic linker is in use.
9057 dynamic_linker='GNU/Linux ld.so'
9060 netbsdelf*-gnu)
9061 version_type=linux
9062 need_lib_prefix=no
9063 need_version=no
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9065 soname_spec='${libname}${release}${shared_ext}$major'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=no
9068 hardcode_into_libs=yes
9069 dynamic_linker='NetBSD ld.elf_so'
9072 netbsd*)
9073 version_type=sunos
9074 need_lib_prefix=no
9075 need_version=no
9076 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9079 dynamic_linker='NetBSD (a.out) ld.so'
9080 else
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 dynamic_linker='NetBSD ld.elf_so'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 shlibpath_overrides_runpath=yes
9087 hardcode_into_libs=yes
9090 newsos6)
9091 version_type=linux
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 shlibpath_overrides_runpath=yes
9097 nto-qnx*)
9098 version_type=linux
9099 need_lib_prefix=no
9100 need_version=no
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 shlibpath_var=LD_LIBRARY_PATH
9104 shlibpath_overrides_runpath=yes
9107 openbsd*)
9108 version_type=sunos
9109 sys_lib_dlsearch_path_spec="/usr/lib"
9110 need_lib_prefix=no
9111 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9112 case $host_os in
9113 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9114 *) need_version=no ;;
9115 esac
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9120 case $host_os in
9121 openbsd2.[89] | openbsd2.[89].*)
9122 shlibpath_overrides_runpath=no
9125 shlibpath_overrides_runpath=yes
9127 esac
9128 else
9129 shlibpath_overrides_runpath=yes
9133 os2*)
9134 libname_spec='$name'
9135 shrext_cmds=".dll"
9136 need_lib_prefix=no
9137 library_names_spec='$libname${shared_ext} $libname.a'
9138 dynamic_linker='OS/2 ld.exe'
9139 shlibpath_var=LIBPATH
9142 osf3* | osf4* | osf5*)
9143 version_type=osf
9144 need_lib_prefix=no
9145 need_version=no
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9153 solaris*)
9154 version_type=linux
9155 need_lib_prefix=no
9156 need_version=no
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9158 soname_spec='${libname}${release}${shared_ext}$major'
9159 shlibpath_var=LD_LIBRARY_PATH
9160 shlibpath_overrides_runpath=yes
9161 hardcode_into_libs=yes
9162 # ldd complains unless libraries are executable
9163 postinstall_cmds='chmod +x $lib'
9166 sunos4*)
9167 version_type=sunos
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9172 if test "$with_gnu_ld" = yes; then
9173 need_lib_prefix=no
9175 need_version=yes
9178 sysv4 | sysv4.3*)
9179 version_type=linux
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 shlibpath_var=LD_LIBRARY_PATH
9183 case $host_vendor in
9184 sni)
9185 shlibpath_overrides_runpath=no
9186 need_lib_prefix=no
9187 export_dynamic_flag_spec='${wl}-Blargedynsym'
9188 runpath_var=LD_RUN_PATH
9190 siemens)
9191 need_lib_prefix=no
9193 motorola)
9194 need_lib_prefix=no
9195 need_version=no
9196 shlibpath_overrides_runpath=no
9197 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9199 esac
9202 sysv4*MP*)
9203 if test -d /usr/nec ;then
9204 version_type=linux
9205 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9206 soname_spec='$libname${shared_ext}.$major'
9207 shlibpath_var=LD_LIBRARY_PATH
9211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9212 version_type=freebsd-elf
9213 need_lib_prefix=no
9214 need_version=no
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 hardcode_into_libs=yes
9219 if test "$with_gnu_ld" = yes; then
9220 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9221 shlibpath_overrides_runpath=no
9222 else
9223 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9224 shlibpath_overrides_runpath=yes
9225 case $host_os in
9226 sco3.2v5*)
9227 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9229 esac
9231 sys_lib_dlsearch_path_spec='/usr/lib'
9234 uts4*)
9235 version_type=linux
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 shlibpath_var=LD_LIBRARY_PATH
9242 dynamic_linker=no
9244 esac
9245 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9246 echo "${ECHO_T}$dynamic_linker" >&6; }
9247 test "$dynamic_linker" = no && can_build_shared=no
9249 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9250 if test "$GCC" = yes; then
9251 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9254 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9255 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9256 hardcode_action=
9257 if test -n "$hardcode_libdir_flag_spec" || \
9258 test -n "$runpath_var" || \
9259 test "X$hardcode_automatic" = "Xyes" ; then
9261 # We can hardcode non-existant directories.
9262 if test "$hardcode_direct" != no &&
9263 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9264 # have to relink, otherwise we might link with an installed library
9265 # when we should be linking with a yet-to-be-installed one
9266 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9267 test "$hardcode_minus_L" != no; then
9268 # Linking always hardcodes the temporary library directory.
9269 hardcode_action=relink
9270 else
9271 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9272 hardcode_action=immediate
9274 else
9275 # We cannot hardcode anything, or else we can only hardcode existing
9276 # directories.
9277 hardcode_action=unsupported
9279 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9280 echo "${ECHO_T}$hardcode_action" >&6; }
9282 if test "$hardcode_action" = relink; then
9283 # Fast installation is not supported
9284 enable_fast_install=no
9285 elif test "$shlibpath_overrides_runpath" = yes ||
9286 test "$enable_shared" = no; then
9287 # Fast installation is not necessary
9288 enable_fast_install=needless
9291 striplib=
9292 old_striplib=
9293 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9294 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9295 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9296 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9297 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9298 { echo "$as_me:$LINENO: result: yes" >&5
9299 echo "${ECHO_T}yes" >&6; }
9300 else
9301 # FIXME - insert some real tests, host_os isn't really good enough
9302 case $host_os in
9303 darwin*)
9304 if test -n "$STRIP" ; then
9305 striplib="$STRIP -x"
9306 { echo "$as_me:$LINENO: result: yes" >&5
9307 echo "${ECHO_T}yes" >&6; }
9308 else
9309 { echo "$as_me:$LINENO: result: no" >&5
9310 echo "${ECHO_T}no" >&6; }
9314 { echo "$as_me:$LINENO: result: no" >&5
9315 echo "${ECHO_T}no" >&6; }
9317 esac
9320 if test "x$enable_dlopen" != xyes; then
9321 enable_dlopen=unknown
9322 enable_dlopen_self=unknown
9323 enable_dlopen_self_static=unknown
9324 else
9325 lt_cv_dlopen=no
9326 lt_cv_dlopen_libs=
9328 case $host_os in
9329 beos*)
9330 lt_cv_dlopen="load_add_on"
9331 lt_cv_dlopen_libs=
9332 lt_cv_dlopen_self=yes
9335 mingw* | pw32*)
9336 lt_cv_dlopen="LoadLibrary"
9337 lt_cv_dlopen_libs=
9340 cygwin*)
9341 lt_cv_dlopen="dlopen"
9342 lt_cv_dlopen_libs=
9345 darwin*)
9346 # if libdl is installed we need to link against it
9347 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9348 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9349 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352 ac_check_lib_save_LIBS=$LIBS
9353 LIBS="-ldl $LIBS"
9354 cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h. */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9361 /* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
9364 #ifdef __cplusplus
9365 extern "C"
9366 #endif
9367 char dlopen ();
9369 main ()
9371 return dlopen ();
9373 return 0;
9375 _ACEOF
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (ac_try="$ac_link"
9378 case "(($ac_try" in
9379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380 *) ac_try_echo=$ac_try;;
9381 esac
9382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383 (eval "$ac_link") 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9391 { (case "(($ac_try" in
9392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393 *) ac_try_echo=$ac_try;;
9394 esac
9395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9396 (eval "$ac_try") 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest$ac_exeext'
9401 { (case "(($ac_try" in
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9404 esac
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_try") 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 ac_cv_lib_dl_dlopen=yes
9411 else
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9415 ac_cv_lib_dl_dlopen=no
9418 rm -f core conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
9420 LIBS=$ac_check_lib_save_LIBS
9422 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9423 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9424 if test $ac_cv_lib_dl_dlopen = yes; then
9425 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9426 else
9428 lt_cv_dlopen="dyld"
9429 lt_cv_dlopen_libs=
9430 lt_cv_dlopen_self=yes
9437 { echo "$as_me:$LINENO: checking for shl_load" >&5
9438 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9439 if test "${ac_cv_func_shl_load+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 else
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h. */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9450 #define shl_load innocuous_shl_load
9452 /* System header to define __stub macros and hopefully few prototypes,
9453 which can conflict with char shl_load (); below.
9454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9455 <limits.h> exists even on freestanding compilers. */
9457 #ifdef __STDC__
9458 # include <limits.h>
9459 #else
9460 # include <assert.h>
9461 #endif
9463 #undef shl_load
9465 /* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
9468 #ifdef __cplusplus
9469 extern "C"
9470 #endif
9471 char shl_load ();
9472 /* The GNU C library defines this for functions which it implements
9473 to always fail with ENOSYS. Some functions are actually named
9474 something starting with __ and the normal name is an alias. */
9475 #if defined __stub_shl_load || defined __stub___shl_load
9476 choke me
9477 #endif
9480 main ()
9482 return shl_load ();
9484 return 0;
9486 _ACEOF
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (ac_try="$ac_link"
9489 case "(($ac_try" in
9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491 *) ac_try_echo=$ac_try;;
9492 esac
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_link") 2>conftest.er1
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9502 { (case "(($ac_try" in
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9505 esac
9506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9507 (eval "$ac_try") 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest$ac_exeext'
9512 { (case "(($ac_try" in
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9515 esac
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_try") 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_cv_func_shl_load=yes
9522 else
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9526 ac_cv_func_shl_load=no
9529 rm -f core conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
9532 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9533 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9534 if test $ac_cv_func_shl_load = yes; then
9535 lt_cv_dlopen="shl_load"
9536 else
9537 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9538 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9539 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542 ac_check_lib_save_LIBS=$LIBS
9543 LIBS="-ldld $LIBS"
9544 cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h. */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9551 /* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
9554 #ifdef __cplusplus
9555 extern "C"
9556 #endif
9557 char shl_load ();
9559 main ()
9561 return shl_load ();
9563 return 0;
9565 _ACEOF
9566 rm -f conftest.$ac_objext conftest$ac_exeext
9567 if { (ac_try="$ac_link"
9568 case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9571 esac
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_link") 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9581 { (case "(($ac_try" in
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9584 esac
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_try") 2>&5
9587 ac_status=$?
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; } &&
9590 { ac_try='test -s conftest$ac_exeext'
9591 { (case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594 esac
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_try") 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_lib_dld_shl_load=yes
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 ac_cv_lib_dld_shl_load=no
9608 rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610 LIBS=$ac_check_lib_save_LIBS
9612 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9613 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9614 if test $ac_cv_lib_dld_shl_load = yes; then
9615 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9616 else
9617 { echo "$as_me:$LINENO: checking for dlopen" >&5
9618 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9619 if test "${ac_cv_func_dlopen+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622 cat >conftest.$ac_ext <<_ACEOF
9623 /* confdefs.h. */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9628 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9630 #define dlopen innocuous_dlopen
9632 /* System header to define __stub macros and hopefully few prototypes,
9633 which can conflict with char dlopen (); below.
9634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9635 <limits.h> exists even on freestanding compilers. */
9637 #ifdef __STDC__
9638 # include <limits.h>
9639 #else
9640 # include <assert.h>
9641 #endif
9643 #undef dlopen
9645 /* Override any GCC internal prototype to avoid an error.
9646 Use char because int might match the return type of a GCC
9647 builtin and then its argument prototype would still apply. */
9648 #ifdef __cplusplus
9649 extern "C"
9650 #endif
9651 char dlopen ();
9652 /* The GNU C library defines this for functions which it implements
9653 to always fail with ENOSYS. Some functions are actually named
9654 something starting with __ and the normal name is an alias. */
9655 #if defined __stub_dlopen || defined __stub___dlopen
9656 choke me
9657 #endif
9660 main ()
9662 return dlopen ();
9664 return 0;
9666 _ACEOF
9667 rm -f conftest.$ac_objext conftest$ac_exeext
9668 if { (ac_try="$ac_link"
9669 case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672 esac
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_link") 2>conftest.er1
9675 ac_status=$?
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9682 { (case "(($ac_try" in
9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9685 esac
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_try") 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; } &&
9691 { ac_try='test -s conftest$ac_exeext'
9692 { (case "(($ac_try" in
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9695 esac
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_try") 2>&5
9698 ac_status=$?
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }; then
9701 ac_cv_func_dlopen=yes
9702 else
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 ac_cv_func_dlopen=no
9709 rm -f core conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
9712 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9713 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9714 if test $ac_cv_func_dlopen = yes; then
9715 lt_cv_dlopen="dlopen"
9716 else
9717 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722 ac_check_lib_save_LIBS=$LIBS
9723 LIBS="-ldl $LIBS"
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h. */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9734 #ifdef __cplusplus
9735 extern "C"
9736 #endif
9737 char dlopen ();
9739 main ()
9741 return dlopen ();
9743 return 0;
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (ac_try="$ac_link"
9748 case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751 esac
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
9754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761 { (case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9764 esac
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_try") 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_try") 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_cv_lib_dl_dlopen=yes
9781 else
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9785 ac_cv_lib_dl_dlopen=no
9788 rm -f core conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790 LIBS=$ac_check_lib_save_LIBS
9792 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9793 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9794 if test $ac_cv_lib_dl_dlopen = yes; then
9795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9796 else
9797 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9798 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9799 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802 ac_check_lib_save_LIBS=$LIBS
9803 LIBS="-lsvld $LIBS"
9804 cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h. */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 char dlopen ();
9819 main ()
9821 return dlopen ();
9823 return 0;
9825 _ACEOF
9826 rm -f conftest.$ac_objext conftest$ac_exeext
9827 if { (ac_try="$ac_link"
9828 case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_link") 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9841 { (case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844 esac
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_try") 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try='test -s conftest$ac_exeext'
9851 { (case "(($ac_try" in
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9854 esac
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856 (eval "$ac_try") 2>&5
9857 ac_status=$?
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9860 ac_cv_lib_svld_dlopen=yes
9861 else
9862 echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9865 ac_cv_lib_svld_dlopen=no
9868 rm -f core conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9870 LIBS=$ac_check_lib_save_LIBS
9872 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9873 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9874 if test $ac_cv_lib_svld_dlopen = yes; then
9875 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9876 else
9877 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9878 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9879 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 else
9882 ac_check_lib_save_LIBS=$LIBS
9883 LIBS="-ldld $LIBS"
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h. */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9891 /* Override any GCC internal prototype to avoid an error.
9892 Use char because int might match the return type of a GCC
9893 builtin and then its argument prototype would still apply. */
9894 #ifdef __cplusplus
9895 extern "C"
9896 #endif
9897 char dld_link ();
9899 main ()
9901 return dld_link ();
9903 return 0;
9905 _ACEOF
9906 rm -f conftest.$ac_objext conftest$ac_exeext
9907 if { (ac_try="$ac_link"
9908 case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9911 esac
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_link") 2>conftest.er1
9914 ac_status=$?
9915 grep -v '^ *+' conftest.er1 >conftest.err
9916 rm -f conftest.er1
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9921 { (case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9924 esac
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_try") 2>&5
9927 ac_status=$?
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; } &&
9930 { ac_try='test -s conftest$ac_exeext'
9931 { (case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9934 esac
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_try") 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 ac_cv_lib_dld_dld_link=yes
9941 else
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_cv_lib_dld_dld_link=no
9948 rm -f core conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9950 LIBS=$ac_check_lib_save_LIBS
9952 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9953 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9954 if test $ac_cv_lib_dld_dld_link = yes; then
9955 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9974 esac
9976 if test "x$lt_cv_dlopen" != xno; then
9977 enable_dlopen=yes
9978 else
9979 enable_dlopen=no
9982 case $lt_cv_dlopen in
9983 dlopen)
9984 save_CPPFLAGS="$CPPFLAGS"
9985 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9987 save_LDFLAGS="$LDFLAGS"
9988 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9990 save_LIBS="$LIBS"
9991 LIBS="$lt_cv_dlopen_libs $LIBS"
9993 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9994 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9995 if test "${lt_cv_dlopen_self+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998 if test "$cross_compiling" = yes; then :
9999 lt_cv_dlopen_self=cross
10000 else
10001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10002 lt_status=$lt_dlunknown
10003 cat > conftest.$ac_ext <<EOF
10004 #line 10004 "configure"
10005 #include "confdefs.h"
10007 #if HAVE_DLFCN_H
10008 #include <dlfcn.h>
10009 #endif
10011 #include <stdio.h>
10013 #ifdef RTLD_GLOBAL
10014 # define LT_DLGLOBAL RTLD_GLOBAL
10015 #else
10016 # ifdef DL_GLOBAL
10017 # define LT_DLGLOBAL DL_GLOBAL
10018 # else
10019 # define LT_DLGLOBAL 0
10020 # endif
10021 #endif
10023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10024 find out it does not work in some platform. */
10025 #ifndef LT_DLLAZY_OR_NOW
10026 # ifdef RTLD_LAZY
10027 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10028 # else
10029 # ifdef DL_LAZY
10030 # define LT_DLLAZY_OR_NOW DL_LAZY
10031 # else
10032 # ifdef RTLD_NOW
10033 # define LT_DLLAZY_OR_NOW RTLD_NOW
10034 # else
10035 # ifdef DL_NOW
10036 # define LT_DLLAZY_OR_NOW DL_NOW
10037 # else
10038 # define LT_DLLAZY_OR_NOW 0
10039 # endif
10040 # endif
10041 # endif
10042 # endif
10043 #endif
10045 #ifdef __cplusplus
10046 extern "C" void exit (int);
10047 #endif
10049 void fnord() { int i=42;}
10050 int main ()
10052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10053 int status = $lt_dlunknown;
10055 if (self)
10057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10058 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10059 /* dlclose (self); */
10061 else
10062 puts (dlerror ());
10064 exit (status);
10067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10068 (eval $ac_link) 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10072 (./conftest; exit; ) >&5 2>/dev/null
10073 lt_status=$?
10074 case x$lt_status in
10075 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10076 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10077 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10078 esac
10079 else :
10080 # compilation failed
10081 lt_cv_dlopen_self=no
10084 rm -fr conftest*
10088 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10089 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10091 if test "x$lt_cv_dlopen_self" = xyes; then
10092 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10093 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10094 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10095 if test "${lt_cv_dlopen_self_static+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098 if test "$cross_compiling" = yes; then :
10099 lt_cv_dlopen_self_static=cross
10100 else
10101 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10102 lt_status=$lt_dlunknown
10103 cat > conftest.$ac_ext <<EOF
10104 #line 10104 "configure"
10105 #include "confdefs.h"
10107 #if HAVE_DLFCN_H
10108 #include <dlfcn.h>
10109 #endif
10111 #include <stdio.h>
10113 #ifdef RTLD_GLOBAL
10114 # define LT_DLGLOBAL RTLD_GLOBAL
10115 #else
10116 # ifdef DL_GLOBAL
10117 # define LT_DLGLOBAL DL_GLOBAL
10118 # else
10119 # define LT_DLGLOBAL 0
10120 # endif
10121 #endif
10123 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10124 find out it does not work in some platform. */
10125 #ifndef LT_DLLAZY_OR_NOW
10126 # ifdef RTLD_LAZY
10127 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10128 # else
10129 # ifdef DL_LAZY
10130 # define LT_DLLAZY_OR_NOW DL_LAZY
10131 # else
10132 # ifdef RTLD_NOW
10133 # define LT_DLLAZY_OR_NOW RTLD_NOW
10134 # else
10135 # ifdef DL_NOW
10136 # define LT_DLLAZY_OR_NOW DL_NOW
10137 # else
10138 # define LT_DLLAZY_OR_NOW 0
10139 # endif
10140 # endif
10141 # endif
10142 # endif
10143 #endif
10145 #ifdef __cplusplus
10146 extern "C" void exit (int);
10147 #endif
10149 void fnord() { int i=42;}
10150 int main ()
10152 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10153 int status = $lt_dlunknown;
10155 if (self)
10157 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10158 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10159 /* dlclose (self); */
10161 else
10162 puts (dlerror ());
10164 exit (status);
10167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168 (eval $ac_link) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10172 (./conftest; exit; ) >&5 2>/dev/null
10173 lt_status=$?
10174 case x$lt_status in
10175 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10176 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10177 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10178 esac
10179 else :
10180 # compilation failed
10181 lt_cv_dlopen_self_static=no
10184 rm -fr conftest*
10188 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10189 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10192 CPPFLAGS="$save_CPPFLAGS"
10193 LDFLAGS="$save_LDFLAGS"
10194 LIBS="$save_LIBS"
10196 esac
10198 case $lt_cv_dlopen_self in
10199 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10200 *) enable_dlopen_self=unknown ;;
10201 esac
10203 case $lt_cv_dlopen_self_static in
10204 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10205 *) enable_dlopen_self_static=unknown ;;
10206 esac
10210 # Report which library types will actually be built
10211 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10212 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10213 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10214 echo "${ECHO_T}$can_build_shared" >&6; }
10216 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10217 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10218 test "$can_build_shared" = "no" && enable_shared=no
10220 # On AIX, shared libraries and static libraries use the same namespace, and
10221 # are all built from PIC.
10222 case $host_os in
10223 aix3*)
10224 test "$enable_shared" = yes && enable_static=no
10225 if test -n "$RANLIB"; then
10226 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10227 postinstall_cmds='$RANLIB $lib'
10231 aix4* | aix5*)
10232 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10233 test "$enable_shared" = yes && enable_static=no
10236 esac
10237 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10238 echo "${ECHO_T}$enable_shared" >&6; }
10240 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10241 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10242 # Make sure either enable_shared or enable_static is yes.
10243 test "$enable_shared" = yes || enable_static=yes
10244 { echo "$as_me:$LINENO: result: $enable_static" >&5
10245 echo "${ECHO_T}$enable_static" >&6; }
10247 # The else clause should only fire when bootstrapping the
10248 # libtool distribution, otherwise you forgot to ship ltmain.sh
10249 # with your package, and you will get complaints that there are
10250 # no rules to generate ltmain.sh.
10251 if test -f "$ltmain"; then
10252 # See if we are running on zsh, and set the options which allow our commands through
10253 # without removal of \ escapes.
10254 if test -n "${ZSH_VERSION+set}" ; then
10255 setopt NO_GLOB_SUBST
10257 # Now quote all the things that may contain metacharacters while being
10258 # careful not to overquote the AC_SUBSTed values. We take copies of the
10259 # variables and quote the copies for generation of the libtool script.
10260 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10261 SED SHELL STRIP \
10262 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10263 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10264 deplibs_check_method reload_flag reload_cmds need_locks \
10265 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10266 lt_cv_sys_global_symbol_to_c_name_address \
10267 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10268 old_postinstall_cmds old_postuninstall_cmds \
10269 compiler \
10270 CC \
10271 LD \
10272 lt_prog_compiler_wl \
10273 lt_prog_compiler_pic \
10274 lt_prog_compiler_static \
10275 lt_prog_compiler_no_builtin_flag \
10276 export_dynamic_flag_spec \
10277 thread_safe_flag_spec \
10278 whole_archive_flag_spec \
10279 enable_shared_with_static_runtimes \
10280 old_archive_cmds \
10281 old_archive_from_new_cmds \
10282 predep_objects \
10283 postdep_objects \
10284 predeps \
10285 postdeps \
10286 compiler_lib_search_path \
10287 archive_cmds \
10288 archive_expsym_cmds \
10289 postinstall_cmds \
10290 postuninstall_cmds \
10291 old_archive_from_expsyms_cmds \
10292 allow_undefined_flag \
10293 no_undefined_flag \
10294 export_symbols_cmds \
10295 hardcode_libdir_flag_spec \
10296 hardcode_libdir_flag_spec_ld \
10297 hardcode_libdir_separator \
10298 hardcode_automatic \
10299 module_cmds \
10300 module_expsym_cmds \
10301 lt_cv_prog_compiler_c_o \
10302 exclude_expsyms \
10303 include_expsyms; do
10305 case $var in
10306 old_archive_cmds | \
10307 old_archive_from_new_cmds | \
10308 archive_cmds | \
10309 archive_expsym_cmds | \
10310 module_cmds | \
10311 module_expsym_cmds | \
10312 old_archive_from_expsyms_cmds | \
10313 export_symbols_cmds | \
10314 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10315 postinstall_cmds | postuninstall_cmds | \
10316 old_postinstall_cmds | old_postuninstall_cmds | \
10317 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10318 # Double-quote double-evaled strings.
10319 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10322 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10324 esac
10325 done
10327 case $lt_echo in
10328 *'\$0 --fallback-echo"')
10329 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10331 esac
10333 cfgfile="${ofile}T"
10334 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10335 $rm -f "$cfgfile"
10336 { echo "$as_me:$LINENO: creating $ofile" >&5
10337 echo "$as_me: creating $ofile" >&6;}
10339 cat <<__EOF__ >> "$cfgfile"
10340 #! $SHELL
10342 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10343 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10344 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10346 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10347 # Free Software Foundation, Inc.
10349 # This file is part of GNU Libtool:
10350 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10352 # This program is free software; you can redistribute it and/or modify
10353 # it under the terms of the GNU General Public License as published by
10354 # the Free Software Foundation; either version 2 of the License, or
10355 # (at your option) any later version.
10357 # This program is distributed in the hope that it will be useful, but
10358 # WITHOUT ANY WARRANTY; without even the implied warranty of
10359 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10360 # General Public License for more details.
10362 # You should have received a copy of the GNU General Public License
10363 # along with this program; if not, write to the Free Software
10364 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10366 # As a special exception to the GNU General Public License, if you
10367 # distribute this file as part of a program that contains a
10368 # configuration script generated by Autoconf, you may include it under
10369 # the same distribution terms that you use for the rest of that program.
10371 # A sed program that does not truncate output.
10372 SED=$lt_SED
10374 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10375 Xsed="$SED -e 1s/^X//"
10377 # The HP-UX ksh and POSIX shell print the target directory to stdout
10378 # if CDPATH is set.
10379 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10381 # The names of the tagged configurations supported by this script.
10382 available_tags=
10384 # ### BEGIN LIBTOOL CONFIG
10386 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10388 # Shell to use when invoking shell scripts.
10389 SHELL=$lt_SHELL
10391 # Whether or not to build shared libraries.
10392 build_libtool_libs=$enable_shared
10394 # Whether or not to build static libraries.
10395 build_old_libs=$enable_static
10397 # Whether or not to add -lc for building shared libraries.
10398 build_libtool_need_lc=$archive_cmds_need_lc
10400 # Whether or not to disallow shared libs when runtime libs are static
10401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10403 # Whether or not to optimize for fast installation.
10404 fast_install=$enable_fast_install
10406 # The host system.
10407 host_alias=$host_alias
10408 host=$host
10409 host_os=$host_os
10411 # The build system.
10412 build_alias=$build_alias
10413 build=$build
10414 build_os=$build_os
10416 # An echo program that does not interpret backslashes.
10417 echo=$lt_echo
10419 # The archiver.
10420 AR=$lt_AR
10421 AR_FLAGS=$lt_AR_FLAGS
10423 # A C compiler.
10424 LTCC=$lt_LTCC
10426 # LTCC compiler flags.
10427 LTCFLAGS=$lt_LTCFLAGS
10429 # A language-specific compiler.
10430 CC=$lt_compiler
10432 # Is the compiler the GNU C compiler?
10433 with_gcc=$GCC
10435 # An ERE matcher.
10436 EGREP=$lt_EGREP
10438 # The linker used to build libraries.
10439 LD=$lt_LD
10441 # Whether we need hard or soft links.
10442 LN_S=$lt_LN_S
10444 # A BSD-compatible nm program.
10445 NM=$lt_NM
10447 # A symbol stripping program
10448 STRIP=$lt_STRIP
10450 # Used to examine libraries when file_magic_cmd begins "file"
10451 MAGIC_CMD=$MAGIC_CMD
10453 # Used on cygwin: DLL creation program.
10454 DLLTOOL="$DLLTOOL"
10456 # Used on cygwin: object dumper.
10457 OBJDUMP="$OBJDUMP"
10459 # Used on cygwin: assembler.
10460 AS="$AS"
10462 # The name of the directory that contains temporary libtool files.
10463 objdir=$objdir
10465 # How to create reloadable object files.
10466 reload_flag=$lt_reload_flag
10467 reload_cmds=$lt_reload_cmds
10469 # How to pass a linker flag through the compiler.
10470 wl=$lt_lt_prog_compiler_wl
10472 # Object file suffix (normally "o").
10473 objext="$ac_objext"
10475 # Old archive suffix (normally "a").
10476 libext="$libext"
10478 # Shared library suffix (normally ".so").
10479 shrext_cmds='$shrext_cmds'
10481 # Executable file suffix (normally "").
10482 exeext="$exeext"
10484 # Additional compiler flags for building library objects.
10485 pic_flag=$lt_lt_prog_compiler_pic
10486 pic_mode=$pic_mode
10488 # What is the maximum length of a command?
10489 max_cmd_len=$lt_cv_sys_max_cmd_len
10491 # Does compiler simultaneously support -c and -o options?
10492 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10494 # Must we lock files when doing compilation?
10495 need_locks=$lt_need_locks
10497 # Do we need the lib prefix for modules?
10498 need_lib_prefix=$need_lib_prefix
10500 # Do we need a version for libraries?
10501 need_version=$need_version
10503 # Whether dlopen is supported.
10504 dlopen_support=$enable_dlopen
10506 # Whether dlopen of programs is supported.
10507 dlopen_self=$enable_dlopen_self
10509 # Whether dlopen of statically linked programs is supported.
10510 dlopen_self_static=$enable_dlopen_self_static
10512 # Compiler flag to prevent dynamic linking.
10513 link_static_flag=$lt_lt_prog_compiler_static
10515 # Compiler flag to turn off builtin functions.
10516 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10518 # Compiler flag to allow reflexive dlopens.
10519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10521 # Compiler flag to generate shared objects directly from archives.
10522 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10524 # Compiler flag to generate thread-safe objects.
10525 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10527 # Library versioning type.
10528 version_type=$version_type
10530 # Format of library name prefix.
10531 libname_spec=$lt_libname_spec
10533 # List of archive names. First name is the real one, the rest are links.
10534 # The last name is the one that the linker finds with -lNAME.
10535 library_names_spec=$lt_library_names_spec
10537 # The coded name of the library, if different from the real name.
10538 soname_spec=$lt_soname_spec
10540 # Commands used to build and install an old-style archive.
10541 RANLIB=$lt_RANLIB
10542 old_archive_cmds=$lt_old_archive_cmds
10543 old_postinstall_cmds=$lt_old_postinstall_cmds
10544 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10546 # Create an old-style archive from a shared archive.
10547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10549 # Create a temporary old-style archive to link instead of a shared archive.
10550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10552 # Commands used to build and install a shared archive.
10553 archive_cmds=$lt_archive_cmds
10554 archive_expsym_cmds=$lt_archive_expsym_cmds
10555 postinstall_cmds=$lt_postinstall_cmds
10556 postuninstall_cmds=$lt_postuninstall_cmds
10558 # Commands used to build a loadable module (assumed same as above if empty)
10559 module_cmds=$lt_module_cmds
10560 module_expsym_cmds=$lt_module_expsym_cmds
10562 # Commands to strip libraries.
10563 old_striplib=$lt_old_striplib
10564 striplib=$lt_striplib
10566 # Dependencies to place before the objects being linked to create a
10567 # shared library.
10568 predep_objects=$lt_predep_objects
10570 # Dependencies to place after the objects being linked to create a
10571 # shared library.
10572 postdep_objects=$lt_postdep_objects
10574 # Dependencies to place before the objects being linked to create a
10575 # shared library.
10576 predeps=$lt_predeps
10578 # Dependencies to place after the objects being linked to create a
10579 # shared library.
10580 postdeps=$lt_postdeps
10582 # The library search path used internally by the compiler when linking
10583 # a shared library.
10584 compiler_lib_search_path=$lt_compiler_lib_search_path
10586 # Method to check whether dependent libraries are shared objects.
10587 deplibs_check_method=$lt_deplibs_check_method
10589 # Command to use when deplibs_check_method == file_magic.
10590 file_magic_cmd=$lt_file_magic_cmd
10592 # Flag that allows shared libraries with undefined symbols to be built.
10593 allow_undefined_flag=$lt_allow_undefined_flag
10595 # Flag that forces no undefined symbols.
10596 no_undefined_flag=$lt_no_undefined_flag
10598 # Commands used to finish a libtool library installation in a directory.
10599 finish_cmds=$lt_finish_cmds
10601 # Same as above, but a single script fragment to be evaled but not shown.
10602 finish_eval=$lt_finish_eval
10604 # Take the output of nm and produce a listing of raw symbols and C names.
10605 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10607 # Transform the output of nm in a proper C declaration
10608 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10610 # Transform the output of nm in a C name address pair
10611 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10613 # This is the shared library runtime path variable.
10614 runpath_var=$runpath_var
10616 # This is the shared library path variable.
10617 shlibpath_var=$shlibpath_var
10619 # Is shlibpath searched before the hard-coded library search path?
10620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10622 # How to hardcode a shared library path into an executable.
10623 hardcode_action=$hardcode_action
10625 # Whether we should hardcode library paths into libraries.
10626 hardcode_into_libs=$hardcode_into_libs
10628 # Flag to hardcode \$libdir into a binary during linking.
10629 # This must work even if \$libdir does not exist.
10630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10632 # If ld is used when linking, flag to hardcode \$libdir into
10633 # a binary during linking. This must work even if \$libdir does
10634 # not exist.
10635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10637 # Whether we need a single -rpath flag with a separated argument.
10638 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10640 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10641 # resulting binary.
10642 hardcode_direct=$hardcode_direct
10644 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10645 # resulting binary.
10646 hardcode_minus_L=$hardcode_minus_L
10648 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10649 # the resulting binary.
10650 hardcode_shlibpath_var=$hardcode_shlibpath_var
10652 # Set to yes if building a shared library automatically hardcodes DIR into the library
10653 # and all subsequent libraries and executables linked against it.
10654 hardcode_automatic=$hardcode_automatic
10656 # Variables whose values should be saved in libtool wrapper scripts and
10657 # restored at relink time.
10658 variables_saved_for_relink="$variables_saved_for_relink"
10660 # Whether libtool must link a program against all its dependency libraries.
10661 link_all_deplibs=$link_all_deplibs
10663 # Compile-time system search path for libraries
10664 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10666 # Run-time system search path for libraries
10667 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10669 # Fix the shell variable \$srcfile for the compiler.
10670 fix_srcfile_path="$fix_srcfile_path"
10672 # Set to yes if exported symbols are required.
10673 always_export_symbols=$always_export_symbols
10675 # The commands to list exported symbols.
10676 export_symbols_cmds=$lt_export_symbols_cmds
10678 # The commands to extract the exported symbol list from a shared archive.
10679 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10681 # Symbols that should not be listed in the preloaded symbols.
10682 exclude_expsyms=$lt_exclude_expsyms
10684 # Symbols that must always be exported.
10685 include_expsyms=$lt_include_expsyms
10687 # ### END LIBTOOL CONFIG
10689 __EOF__
10692 case $host_os in
10693 aix3*)
10694 cat <<\EOF >> "$cfgfile"
10696 # AIX sometimes has problems with the GCC collect2 program. For some
10697 # reason, if we set the COLLECT_NAMES environment variable, the problems
10698 # vanish in a puff of smoke.
10699 if test "X${COLLECT_NAMES+set}" != Xset; then
10700 COLLECT_NAMES=
10701 export COLLECT_NAMES
10705 esac
10707 # We use sed instead of cat because bash on DJGPP gets confused if
10708 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10709 # text mode, it properly converts lines to CR/LF. This bash problem
10710 # is reportedly fixed, but why not run on old versions too?
10711 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10713 mv -f "$cfgfile" "$ofile" || \
10714 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10715 chmod +x "$ofile"
10717 else
10718 # If there is no Makefile yet, we rely on a make rule to execute
10719 # `config.status --recheck' to rerun these tests and create the
10720 # libtool script then.
10721 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10722 if test -f "$ltmain_in"; then
10723 test -f Makefile && make "$ltmain"
10728 ac_ext=c
10729 ac_cpp='$CPP $CPPFLAGS'
10730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10734 CC="$lt_save_CC"
10737 # Check whether --with-tags was given.
10738 if test "${with_tags+set}" = set; then
10739 withval=$with_tags; tagnames="$withval"
10743 if test -f "$ltmain" && test -n "$tagnames"; then
10744 if test ! -f "${ofile}"; then
10745 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10746 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10749 if test -z "$LTCC"; then
10750 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10751 if test -z "$LTCC"; then
10752 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10753 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10754 else
10755 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10756 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10759 if test -z "$LTCFLAGS"; then
10760 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10763 # Extract list of available tagged configurations in $ofile.
10764 # Note that this assumes the entire list is on one line.
10765 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10768 for tagname in $tagnames; do
10769 IFS="$lt_save_ifs"
10770 # Check whether tagname contains only valid characters
10771 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10772 "") ;;
10773 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10774 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10775 { (exit 1); exit 1; }; }
10777 esac
10779 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10780 then
10781 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10782 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10783 { (exit 1); exit 1; }; }
10786 # Update the list of available tags.
10787 if test -n "$tagname"; then
10788 echo appending configuration tag \"$tagname\" to $ofile
10790 case $tagname in
10791 CXX)
10792 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10793 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10794 (test "X$CXX" != "Xg++"))) ; then
10795 ac_ext=cpp
10796 ac_cpp='$CXXCPP $CPPFLAGS'
10797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10804 archive_cmds_need_lc_CXX=no
10805 allow_undefined_flag_CXX=
10806 always_export_symbols_CXX=no
10807 archive_expsym_cmds_CXX=
10808 export_dynamic_flag_spec_CXX=
10809 hardcode_direct_CXX=no
10810 hardcode_libdir_flag_spec_CXX=
10811 hardcode_libdir_flag_spec_ld_CXX=
10812 hardcode_libdir_separator_CXX=
10813 hardcode_minus_L_CXX=no
10814 hardcode_shlibpath_var_CXX=unsupported
10815 hardcode_automatic_CXX=no
10816 module_cmds_CXX=
10817 module_expsym_cmds_CXX=
10818 link_all_deplibs_CXX=unknown
10819 old_archive_cmds_CXX=$old_archive_cmds
10820 no_undefined_flag_CXX=
10821 whole_archive_flag_spec_CXX=
10822 enable_shared_with_static_runtimes_CXX=no
10824 # Dependencies to place before and after the object being linked:
10825 predep_objects_CXX=
10826 postdep_objects_CXX=
10827 predeps_CXX=
10828 postdeps_CXX=
10829 compiler_lib_search_path_CXX=
10831 # Source file extension for C++ test sources.
10832 ac_ext=cpp
10834 # Object file extension for compiled C++ test sources.
10835 objext=o
10836 objext_CXX=$objext
10838 # Code to be used in simple compile tests
10839 lt_simple_compile_test_code="int some_variable = 0;\n"
10841 # Code to be used in simple link tests
10842 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10844 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10846 # If no C compiler was specified, use CC.
10847 LTCC=${LTCC-"$CC"}
10849 # If no C compiler flags were specified, use CFLAGS.
10850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10852 # Allow CC to be a program name with arguments.
10853 compiler=$CC
10856 # save warnings/boilerplate of simple test code
10857 ac_outfile=conftest.$ac_objext
10858 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10859 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10860 _lt_compiler_boilerplate=`cat conftest.err`
10861 $rm conftest*
10863 ac_outfile=conftest.$ac_objext
10864 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10865 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10866 _lt_linker_boilerplate=`cat conftest.err`
10867 $rm conftest*
10870 # Allow CC to be a program name with arguments.
10871 lt_save_CC=$CC
10872 lt_save_LD=$LD
10873 lt_save_GCC=$GCC
10874 GCC=$GXX
10875 lt_save_with_gnu_ld=$with_gnu_ld
10876 lt_save_path_LD=$lt_cv_path_LD
10877 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10878 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10879 else
10880 $as_unset lt_cv_prog_gnu_ld
10882 if test -n "${lt_cv_path_LDCXX+set}"; then
10883 lt_cv_path_LD=$lt_cv_path_LDCXX
10884 else
10885 $as_unset lt_cv_path_LD
10887 test -z "${LDCXX+set}" || LD=$LDCXX
10888 CC=${CXX-"c++"}
10889 compiler=$CC
10890 compiler_CXX=$CC
10891 for cc_temp in $compiler""; do
10892 case $cc_temp in
10893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10895 \-*) ;;
10896 *) break;;
10897 esac
10898 done
10899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10902 # We don't want -fno-exception wen compiling C++ code, so set the
10903 # no_builtin_flag separately
10904 if test "$GXX" = yes; then
10905 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10906 else
10907 lt_prog_compiler_no_builtin_flag_CXX=
10910 if test "$GXX" = yes; then
10911 # Set up default GNU C++ configuration
10914 # Check whether --with-gnu-ld was given.
10915 if test "${with_gnu_ld+set}" = set; then
10916 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10917 else
10918 with_gnu_ld=no
10921 ac_prog=ld
10922 if test "$GCC" = yes; then
10923 # Check if gcc -print-prog-name=ld gives a path.
10924 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10925 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10926 case $host in
10927 *-*-mingw*)
10928 # gcc leaves a trailing carriage return which upsets mingw
10929 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10931 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10932 esac
10933 case $ac_prog in
10934 # Accept absolute paths.
10935 [\\/]* | ?:[\\/]*)
10936 re_direlt='/[^/][^/]*/\.\./'
10937 # Canonicalize the pathname of ld
10938 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10939 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10940 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10941 done
10942 test -z "$LD" && LD="$ac_prog"
10945 # If it fails, then pretend we aren't using GCC.
10946 ac_prog=ld
10949 # If it is relative, then search for the first ld in PATH.
10950 with_gnu_ld=unknown
10952 esac
10953 elif test "$with_gnu_ld" = yes; then
10954 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10955 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10956 else
10957 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10958 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10960 if test "${lt_cv_path_LD+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963 if test -z "$LD"; then
10964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10965 for ac_dir in $PATH; do
10966 IFS="$lt_save_ifs"
10967 test -z "$ac_dir" && ac_dir=.
10968 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10969 lt_cv_path_LD="$ac_dir/$ac_prog"
10970 # Check to see if the program is GNU ld. I'd rather use --version,
10971 # but apparently some variants of GNU ld only accept -v.
10972 # Break only if it was the GNU/non-GNU ld that we prefer.
10973 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10974 *GNU* | *'with BFD'*)
10975 test "$with_gnu_ld" != no && break
10978 test "$with_gnu_ld" != yes && break
10980 esac
10982 done
10983 IFS="$lt_save_ifs"
10984 else
10985 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10989 LD="$lt_cv_path_LD"
10990 if test -n "$LD"; then
10991 { echo "$as_me:$LINENO: result: $LD" >&5
10992 echo "${ECHO_T}$LD" >&6; }
10993 else
10994 { echo "$as_me:$LINENO: result: no" >&5
10995 echo "${ECHO_T}no" >&6; }
10997 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10998 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10999 { (exit 1); exit 1; }; }
11000 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11001 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11002 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11006 case `$LD -v 2>&1 </dev/null` in
11007 *GNU* | *'with BFD'*)
11008 lt_cv_prog_gnu_ld=yes
11011 lt_cv_prog_gnu_ld=no
11013 esac
11015 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11016 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11017 with_gnu_ld=$lt_cv_prog_gnu_ld
11021 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11022 # archiving commands below assume that GNU ld is being used.
11023 if test "$with_gnu_ld" = yes; then
11024 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11025 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'
11027 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11028 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11030 # If archive_cmds runs LD, not CC, wlarc should be empty
11031 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11032 # investigate it a little bit more. (MM)
11033 wlarc='${wl}'
11035 # ancient GNU ld didn't support --whole-archive et. al.
11036 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11037 grep 'no-whole-archive' > /dev/null; then
11038 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11039 else
11040 whole_archive_flag_spec_CXX=
11042 else
11043 with_gnu_ld=no
11044 wlarc=
11046 # A generic and very simple default shared library creation
11047 # command for GNU C++ for the case where it uses the native
11048 # linker, instead of GNU ld. If possible, this setting should
11049 # overridden to take advantage of the native linker features on
11050 # the platform it is being used on.
11051 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11054 # Commands to make compiler produce verbose output that lists
11055 # what "hidden" libraries, object files and flags are used when
11056 # linking a shared library.
11057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11059 else
11060 GXX=no
11061 with_gnu_ld=no
11062 wlarc=
11065 # PORTME: fill in a description of your system's C++ link characteristics
11066 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11067 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11068 ld_shlibs_CXX=yes
11069 case $host_os in
11070 aix3*)
11071 # FIXME: insert proper C++ library support
11072 ld_shlibs_CXX=no
11074 aix4* | aix5*)
11075 if test "$host_cpu" = ia64; then
11076 # On IA64, the linker does run time linking by default, so we don't
11077 # have to do anything special.
11078 aix_use_runtimelinking=no
11079 exp_sym_flag='-Bexport'
11080 no_entry_flag=""
11081 else
11082 aix_use_runtimelinking=no
11084 # Test if we are trying to use run time linking or normal
11085 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11086 # need to do runtime linking.
11087 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11088 for ld_flag in $LDFLAGS; do
11089 case $ld_flag in
11090 *-brtl*)
11091 aix_use_runtimelinking=yes
11092 break
11094 esac
11095 done
11097 esac
11099 exp_sym_flag='-bexport'
11100 no_entry_flag='-bnoentry'
11103 # When large executables or shared objects are built, AIX ld can
11104 # have problems creating the table of contents. If linking a library
11105 # or program results in "error TOC overflow" add -mminimal-toc to
11106 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11107 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11109 archive_cmds_CXX=''
11110 hardcode_direct_CXX=yes
11111 hardcode_libdir_separator_CXX=':'
11112 link_all_deplibs_CXX=yes
11114 if test "$GXX" = yes; then
11115 case $host_os in aix4.[012]|aix4.[012].*)
11116 # We only want to do this on AIX 4.2 and lower, the check
11117 # below for broken collect2 doesn't work under 4.3+
11118 collect2name=`${CC} -print-prog-name=collect2`
11119 if test -f "$collect2name" && \
11120 strings "$collect2name" | grep resolve_lib_name >/dev/null
11121 then
11122 # We have reworked collect2
11123 hardcode_direct_CXX=yes
11124 else
11125 # We have old collect2
11126 hardcode_direct_CXX=unsupported
11127 # It fails to find uninstalled libraries when the uninstalled
11128 # path is not listed in the libpath. Setting hardcode_minus_L
11129 # to unsupported forces relinking
11130 hardcode_minus_L_CXX=yes
11131 hardcode_libdir_flag_spec_CXX='-L$libdir'
11132 hardcode_libdir_separator_CXX=
11135 esac
11136 shared_flag='-shared'
11137 if test "$aix_use_runtimelinking" = yes; then
11138 shared_flag="$shared_flag "'${wl}-G'
11140 else
11141 # not using gcc
11142 if test "$host_cpu" = ia64; then
11143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11144 # chokes on -Wl,-G. The following line is correct:
11145 shared_flag='-G'
11146 else
11147 if test "$aix_use_runtimelinking" = yes; then
11148 shared_flag='${wl}-G'
11149 else
11150 shared_flag='${wl}-bM:SRE'
11155 # It seems that -bexpall does not export symbols beginning with
11156 # underscore (_), so it is better to generate a list of symbols to export.
11157 always_export_symbols_CXX=yes
11158 if test "$aix_use_runtimelinking" = yes; then
11159 # Warning - without using the other runtime loading flags (-brtl),
11160 # -berok will link without error, but may produce a broken library.
11161 allow_undefined_flag_CXX='-berok'
11162 # Determine the default libpath from the value encoded in an empty executable.
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h. */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11171 main ()
11175 return 0;
11177 _ACEOF
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (ac_try="$ac_link"
11180 case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11183 esac
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_link") 2>conftest.er1
11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11193 { (case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196 esac
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_try") 2>&5
11199 ac_status=$?
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; } &&
11202 { ac_try='test -s conftest$ac_exeext'
11203 { (case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11206 esac
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_try") 2>&5
11209 ac_status=$?
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; }; then
11213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11215 # Check for a 64-bit object if we didn't find anything.
11216 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11217 }'`; fi
11218 else
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11225 rm -f core conftest.err conftest.$ac_objext \
11226 conftest$ac_exeext conftest.$ac_ext
11227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11229 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11231 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"
11232 else
11233 if test "$host_cpu" = ia64; then
11234 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11235 allow_undefined_flag_CXX="-z nodefs"
11236 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"
11237 else
11238 # Determine the default libpath from the value encoded in an empty executable.
11239 cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h. */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11247 main ()
11251 return 0;
11253 _ACEOF
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (ac_try="$ac_link"
11256 case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11259 esac
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_link") 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11269 { (case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272 esac
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_try") 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; } &&
11278 { ac_try='test -s conftest$ac_exeext'
11279 { (case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11282 esac
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_try") 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11289 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11291 # Check for a 64-bit object if we didn't find anything.
11292 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11293 }'`; fi
11294 else
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11301 rm -f core conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11305 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11306 # Warning - without using the other run time loading flags,
11307 # -berok will link without error, but may produce a broken library.
11308 no_undefined_flag_CXX=' ${wl}-bernotok'
11309 allow_undefined_flag_CXX=' ${wl}-berok'
11310 # Exported symbols can be pulled into shared objects from archives
11311 whole_archive_flag_spec_CXX='$convenience'
11312 archive_cmds_need_lc_CXX=yes
11313 # This is similar to how AIX traditionally builds its shared libraries.
11314 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'
11319 beos*)
11320 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11321 allow_undefined_flag_CXX=unsupported
11322 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11323 # support --undefined. This deserves some investigation. FIXME
11324 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11325 else
11326 ld_shlibs_CXX=no
11330 chorus*)
11331 case $cc_basename in
11333 # FIXME: insert proper C++ library support
11334 ld_shlibs_CXX=no
11336 esac
11339 cygwin* | mingw* | pw32*)
11340 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11341 # as there is no search path for DLLs.
11342 hardcode_libdir_flag_spec_CXX='-L$libdir'
11343 allow_undefined_flag_CXX=unsupported
11344 always_export_symbols_CXX=no
11345 enable_shared_with_static_runtimes_CXX=yes
11347 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11348 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'
11349 # If the export-symbols file already is a .def file (1st line
11350 # is EXPORTS), use it as is; otherwise, prepend...
11351 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11352 cp $export_symbols $output_objdir/$soname.def;
11353 else
11354 echo EXPORTS > $output_objdir/$soname.def;
11355 cat $export_symbols >> $output_objdir/$soname.def;
11357 $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'
11358 else
11359 ld_shlibs_CXX=no
11362 darwin* | rhapsody*)
11363 case $host_os in
11364 rhapsody* | darwin1.[012])
11365 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11367 *) # Darwin 1.3 on
11368 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11369 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11370 else
11371 case ${MACOSX_DEPLOYMENT_TARGET} in
11372 10.[012])
11373 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11375 10.*)
11376 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11378 esac
11381 esac
11382 archive_cmds_need_lc_CXX=no
11383 hardcode_direct_CXX=no
11384 hardcode_automatic_CXX=yes
11385 hardcode_shlibpath_var_CXX=unsupported
11386 whole_archive_flag_spec_CXX=''
11387 link_all_deplibs_CXX=yes
11389 if test "$GXX" = yes ; then
11390 lt_int_apple_cc_single_mod=no
11391 output_verbose_link_cmd='echo'
11392 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11393 lt_int_apple_cc_single_mod=yes
11395 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11396 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11397 else
11398 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'
11400 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11401 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11402 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11403 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}'
11404 else
11405 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}'
11407 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}'
11408 else
11409 case $cc_basename in
11410 xlc*)
11411 output_verbose_link_cmd='echo'
11412 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'
11413 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11414 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11415 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}'
11416 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}'
11419 ld_shlibs_CXX=no
11421 esac
11425 dgux*)
11426 case $cc_basename in
11427 ec++*)
11428 # FIXME: insert proper C++ library support
11429 ld_shlibs_CXX=no
11431 ghcx*)
11432 # Green Hills C++ Compiler
11433 # FIXME: insert proper C++ library support
11434 ld_shlibs_CXX=no
11437 # FIXME: insert proper C++ library support
11438 ld_shlibs_CXX=no
11440 esac
11442 freebsd[12]*)
11443 # C++ shared libraries reported to be fairly broken before switch to ELF
11444 ld_shlibs_CXX=no
11446 freebsd-elf*)
11447 archive_cmds_need_lc_CXX=no
11449 freebsd* | dragonfly*)
11450 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11451 # conventions
11452 ld_shlibs_CXX=yes
11454 gnu*)
11456 hpux9*)
11457 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11458 hardcode_libdir_separator_CXX=:
11459 export_dynamic_flag_spec_CXX='${wl}-E'
11460 hardcode_direct_CXX=yes
11461 hardcode_minus_L_CXX=yes # Not in the search PATH,
11462 # but as the default
11463 # location of the library.
11465 case $cc_basename in
11466 CC*)
11467 # FIXME: insert proper C++ library support
11468 ld_shlibs_CXX=no
11470 aCC*)
11471 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'
11472 # Commands to make compiler produce verbose output that lists
11473 # what "hidden" libraries, object files and flags are used when
11474 # linking a shared library.
11476 # There doesn't appear to be a way to prevent this compiler from
11477 # explicitly linking system object files so we need to strip them
11478 # from the output so that they don't get included in the library
11479 # dependencies.
11480 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'
11483 if test "$GXX" = yes; then
11484 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'
11485 else
11486 # FIXME: insert proper C++ library support
11487 ld_shlibs_CXX=no
11490 esac
11492 hpux10*|hpux11*)
11493 if test $with_gnu_ld = no; then
11494 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11495 hardcode_libdir_separator_CXX=:
11497 case $host_cpu in
11498 hppa*64*|ia64*)
11499 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11502 export_dynamic_flag_spec_CXX='${wl}-E'
11504 esac
11506 case $host_cpu in
11507 hppa*64*|ia64*)
11508 hardcode_direct_CXX=no
11509 hardcode_shlibpath_var_CXX=no
11512 hardcode_direct_CXX=yes
11513 hardcode_minus_L_CXX=yes # Not in the search PATH,
11514 # but as the default
11515 # location of the library.
11517 esac
11519 case $cc_basename in
11520 CC*)
11521 # FIXME: insert proper C++ library support
11522 ld_shlibs_CXX=no
11524 aCC*)
11525 case $host_cpu in
11526 hppa*64*)
11527 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11529 ia64*)
11530 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11533 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11535 esac
11536 # Commands to make compiler produce verbose output that lists
11537 # what "hidden" libraries, object files and flags are used when
11538 # linking a shared library.
11540 # There doesn't appear to be a way to prevent this compiler from
11541 # explicitly linking system object files so we need to strip them
11542 # from the output so that they don't get included in the library
11543 # dependencies.
11544 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'
11547 if test "$GXX" = yes; then
11548 if test $with_gnu_ld = no; then
11549 case $host_cpu in
11550 hppa*64*)
11551 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11553 ia64*)
11554 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11557 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'
11559 esac
11561 else
11562 # FIXME: insert proper C++ library support
11563 ld_shlibs_CXX=no
11566 esac
11568 interix3*)
11569 hardcode_direct_CXX=no
11570 hardcode_shlibpath_var_CXX=no
11571 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11572 export_dynamic_flag_spec_CXX='${wl}-E'
11573 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11574 # Instead, shared libraries are loaded at an image base (0x10000000 by
11575 # default) and relocated if they conflict, which is a slow very memory
11576 # consuming and fragmenting process. To avoid this, we pick a random,
11577 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11578 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11579 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'
11580 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'
11582 irix5* | irix6*)
11583 case $cc_basename in
11584 CC*)
11585 # SGI C++
11586 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'
11588 # Archives containing C++ object files must be created using
11589 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11590 # necessary to make sure instantiated templates are included
11591 # in the archive.
11592 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11595 if test "$GXX" = yes; then
11596 if test "$with_gnu_ld" = no; then
11597 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'
11598 else
11599 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'
11602 link_all_deplibs_CXX=yes
11604 esac
11605 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11606 hardcode_libdir_separator_CXX=:
11608 linux* | k*bsd*-gnu)
11609 case $cc_basename in
11610 KCC*)
11611 # Kuck and Associates, Inc. (KAI) C++ Compiler
11613 # KCC will only create a shared library if the output file
11614 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11615 # to its proper name (with version) after linking.
11616 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'
11617 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'
11618 # Commands to make compiler produce verbose output that lists
11619 # what "hidden" libraries, object files and flags are used when
11620 # linking a shared library.
11622 # There doesn't appear to be a way to prevent this compiler from
11623 # explicitly linking system object files so we need to strip them
11624 # from the output so that they don't get included in the library
11625 # dependencies.
11626 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'
11628 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11629 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11631 # Archives containing C++ object files must be created using
11632 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11633 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11635 icpc*)
11636 # Intel C++
11637 with_gnu_ld=yes
11638 # version 8.0 and above of icpc choke on multiply defined symbols
11639 # if we add $predep_objects and $postdep_objects, however 7.1 and
11640 # earlier do not add the objects themselves.
11641 case `$CC -V 2>&1` in
11642 *"Version 7."*)
11643 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11644 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'
11646 *) # Version 8.0 or newer
11647 tmp_idyn=
11648 case $host_cpu in
11649 ia64*) tmp_idyn=' -i_dynamic';;
11650 esac
11651 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11652 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'
11654 esac
11655 archive_cmds_need_lc_CXX=no
11656 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11657 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11658 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11660 pgCC*)
11661 # Portland Group C++ compiler
11662 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11663 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'
11665 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11666 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11667 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'
11669 cxx*)
11670 # Compaq C++
11671 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11672 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'
11674 runpath_var=LD_RUN_PATH
11675 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11676 hardcode_libdir_separator_CXX=:
11678 # Commands to make compiler produce verbose output that lists
11679 # what "hidden" libraries, object files and flags are used when
11680 # linking a shared library.
11682 # There doesn't appear to be a way to prevent this compiler from
11683 # explicitly linking system object files so we need to strip them
11684 # from the output so that they don't get included in the library
11685 # dependencies.
11686 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'
11688 esac
11690 lynxos*)
11691 # FIXME: insert proper C++ library support
11692 ld_shlibs_CXX=no
11694 m88k*)
11695 # FIXME: insert proper C++ library support
11696 ld_shlibs_CXX=no
11698 mvs*)
11699 case $cc_basename in
11700 cxx*)
11701 # FIXME: insert proper C++ library support
11702 ld_shlibs_CXX=no
11705 # FIXME: insert proper C++ library support
11706 ld_shlibs_CXX=no
11708 esac
11710 netbsd* | netbsdelf*-gnu)
11711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11712 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11713 wlarc=
11714 hardcode_libdir_flag_spec_CXX='-R$libdir'
11715 hardcode_direct_CXX=yes
11716 hardcode_shlibpath_var_CXX=no
11718 # Workaround some broken pre-1.5 toolchains
11719 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11721 openbsd2*)
11722 # C++ shared libraries are fairly broken
11723 ld_shlibs_CXX=no
11725 openbsd*)
11726 hardcode_direct_CXX=yes
11727 hardcode_shlibpath_var_CXX=no
11728 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11729 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11730 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11731 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11732 export_dynamic_flag_spec_CXX='${wl}-E'
11733 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11735 output_verbose_link_cmd='echo'
11737 osf3*)
11738 case $cc_basename in
11739 KCC*)
11740 # Kuck and Associates, Inc. (KAI) C++ Compiler
11742 # KCC will only create a shared library if the output file
11743 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11744 # to its proper name (with version) after linking.
11745 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'
11747 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11748 hardcode_libdir_separator_CXX=:
11750 # Archives containing C++ object files must be created using
11751 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11752 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11755 RCC*)
11756 # Rational C++ 2.4.1
11757 # FIXME: insert proper C++ library support
11758 ld_shlibs_CXX=no
11760 cxx*)
11761 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11762 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'
11764 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11765 hardcode_libdir_separator_CXX=:
11767 # Commands to make compiler produce verbose output that lists
11768 # what "hidden" libraries, object files and flags are used when
11769 # linking a shared library.
11771 # There doesn't appear to be a way to prevent this compiler from
11772 # explicitly linking system object files so we need to strip them
11773 # from the output so that they don't get included in the library
11774 # dependencies.
11775 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'
11778 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11779 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11780 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'
11782 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11783 hardcode_libdir_separator_CXX=:
11785 # Commands to make compiler produce verbose output that lists
11786 # what "hidden" libraries, object files and flags are used when
11787 # linking a shared library.
11788 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11790 else
11791 # FIXME: insert proper C++ library support
11792 ld_shlibs_CXX=no
11795 esac
11797 osf4* | osf5*)
11798 case $cc_basename in
11799 KCC*)
11800 # Kuck and Associates, Inc. (KAI) C++ Compiler
11802 # KCC will only create a shared library if the output file
11803 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11804 # to its proper name (with version) after linking.
11805 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'
11807 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11808 hardcode_libdir_separator_CXX=:
11810 # Archives containing C++ object files must be created using
11811 # the KAI C++ compiler.
11812 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11814 RCC*)
11815 # Rational C++ 2.4.1
11816 # FIXME: insert proper C++ library support
11817 ld_shlibs_CXX=no
11819 cxx*)
11820 allow_undefined_flag_CXX=' -expect_unresolved \*'
11821 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'
11822 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11823 echo "-hidden">> $lib.exp~
11824 $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~
11825 $rm $lib.exp'
11827 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11828 hardcode_libdir_separator_CXX=:
11830 # Commands to make compiler produce verbose output that lists
11831 # what "hidden" libraries, object files and flags are used when
11832 # linking a shared library.
11834 # There doesn't appear to be a way to prevent this compiler from
11835 # explicitly linking system object files so we need to strip them
11836 # from the output so that they don't get included in the library
11837 # dependencies.
11838 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'
11841 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11842 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11843 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'
11845 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11846 hardcode_libdir_separator_CXX=:
11848 # Commands to make compiler produce verbose output that lists
11849 # what "hidden" libraries, object files and flags are used when
11850 # linking a shared library.
11851 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11853 else
11854 # FIXME: insert proper C++ library support
11855 ld_shlibs_CXX=no
11858 esac
11860 psos*)
11861 # FIXME: insert proper C++ library support
11862 ld_shlibs_CXX=no
11864 sunos4*)
11865 case $cc_basename in
11866 CC*)
11867 # Sun C++ 4.x
11868 # FIXME: insert proper C++ library support
11869 ld_shlibs_CXX=no
11871 lcc*)
11872 # Lucid
11873 # FIXME: insert proper C++ library support
11874 ld_shlibs_CXX=no
11877 # FIXME: insert proper C++ library support
11878 ld_shlibs_CXX=no
11880 esac
11882 solaris*)
11883 case $cc_basename in
11884 CC*)
11885 # Sun C++ 4.2, 5.x and Centerline C++
11886 archive_cmds_need_lc_CXX=yes
11887 no_undefined_flag_CXX=' -zdefs'
11888 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11889 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11890 $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'
11892 hardcode_libdir_flag_spec_CXX='-R$libdir'
11893 hardcode_shlibpath_var_CXX=no
11894 case $host_os in
11895 solaris2.[0-5] | solaris2.[0-5].*) ;;
11897 # The C++ compiler is used as linker so we must use $wl
11898 # flag to pass the commands to the underlying system
11899 # linker. We must also pass each convience library through
11900 # to the system linker between allextract/defaultextract.
11901 # The C++ compiler will combine linker options so we
11902 # cannot just pass the convience library names through
11903 # without $wl.
11904 # Supported since Solaris 2.6 (maybe 2.5.1?)
11905 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'
11907 esac
11908 link_all_deplibs_CXX=yes
11910 output_verbose_link_cmd='echo'
11912 # Archives containing C++ object files must be created using
11913 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11914 # necessary to make sure instantiated templates are included
11915 # in the archive.
11916 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11918 gcx*)
11919 # Green Hills C++ Compiler
11920 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11922 # The C++ compiler must be used to create the archive.
11923 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11926 # GNU C++ compiler with Solaris linker
11927 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11928 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11929 if $CC --version | grep -v '^2\.7' > /dev/null; then
11930 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11931 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11932 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11934 # Commands to make compiler produce verbose output that lists
11935 # what "hidden" libraries, object files and flags are used when
11936 # linking a shared library.
11937 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11938 else
11939 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11940 # platform.
11941 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11942 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11943 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11945 # Commands to make compiler produce verbose output that lists
11946 # what "hidden" libraries, object files and flags are used when
11947 # linking a shared library.
11948 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11951 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11954 esac
11956 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11957 no_undefined_flag_CXX='${wl}-z,text'
11958 archive_cmds_need_lc_CXX=no
11959 hardcode_shlibpath_var_CXX=no
11960 runpath_var='LD_RUN_PATH'
11962 case $cc_basename in
11963 CC*)
11964 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11965 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11968 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11969 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11971 esac
11973 sysv5* | sco3.2v5* | sco5v6*)
11974 # Note: We can NOT use -z defs as we might desire, because we do not
11975 # link with -lc, and that would cause any symbols used from libc to
11976 # always be unresolved, which means just about no library would
11977 # ever link correctly. If we're not using GNU ld we use -z text
11978 # though, which does catch some bad symbols but isn't as heavy-handed
11979 # as -z defs.
11980 # For security reasons, it is highly recommended that you always
11981 # use absolute paths for naming shared libraries, and exclude the
11982 # DT_RUNPATH tag from executables and libraries. But doing so
11983 # requires that you compile everything twice, which is a pain.
11984 # So that behaviour is only enabled if SCOABSPATH is set to a
11985 # non-empty value in the environment. Most likely only useful for
11986 # creating official distributions of packages.
11987 # This is a hack until libtool officially supports absolute path
11988 # names for shared libraries.
11989 no_undefined_flag_CXX='${wl}-z,text'
11990 allow_undefined_flag_CXX='${wl}-z,nodefs'
11991 archive_cmds_need_lc_CXX=no
11992 hardcode_shlibpath_var_CXX=no
11993 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11994 hardcode_libdir_separator_CXX=':'
11995 link_all_deplibs_CXX=yes
11996 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11997 runpath_var='LD_RUN_PATH'
11999 case $cc_basename in
12000 CC*)
12001 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12002 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12005 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12006 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12008 esac
12010 tandem*)
12011 case $cc_basename in
12012 NCC*)
12013 # NonStop-UX NCC 3.20
12014 # FIXME: insert proper C++ library support
12015 ld_shlibs_CXX=no
12018 # FIXME: insert proper C++ library support
12019 ld_shlibs_CXX=no
12021 esac
12023 vxworks*)
12024 # FIXME: insert proper C++ library support
12025 ld_shlibs_CXX=no
12028 # FIXME: insert proper C++ library support
12029 ld_shlibs_CXX=no
12031 esac
12032 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12033 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12034 test "$ld_shlibs_CXX" = no && can_build_shared=no
12036 GCC_CXX="$GXX"
12037 LD_CXX="$LD"
12040 cat > conftest.$ac_ext <<EOF
12041 class Foo
12043 public:
12044 Foo (void) { a = 0; }
12045 private:
12046 int a;
12050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12051 (eval $ac_compile) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; then
12055 # Parse the compiler output and extract the necessary
12056 # objects, libraries and library flags.
12058 # Sentinel used to keep track of whether or not we are before
12059 # the conftest object file.
12060 pre_test_object_deps_done=no
12062 # The `*' in the case matches for architectures that use `case' in
12063 # $output_verbose_cmd can trigger glob expansion during the loop
12064 # eval without this substitution.
12065 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12067 for p in `eval $output_verbose_link_cmd`; do
12068 case $p in
12070 -L* | -R* | -l*)
12071 # Some compilers place space between "-{L,R}" and the path.
12072 # Remove the space.
12073 if test $p = "-L" \
12074 || test $p = "-R"; then
12075 prev=$p
12076 continue
12077 else
12078 prev=
12081 if test "$pre_test_object_deps_done" = no; then
12082 case $p in
12083 -L* | -R*)
12084 # Internal compiler library paths should come after those
12085 # provided the user. The postdeps already come after the
12086 # user supplied libs so there is no need to process them.
12087 if test -z "$compiler_lib_search_path_CXX"; then
12088 compiler_lib_search_path_CXX="${prev}${p}"
12089 else
12090 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12093 # The "-l" case would never come before the object being
12094 # linked, so don't bother handling this case.
12095 esac
12096 else
12097 if test -z "$postdeps_CXX"; then
12098 postdeps_CXX="${prev}${p}"
12099 else
12100 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12105 *.$objext)
12106 # This assumes that the test object file only shows up
12107 # once in the compiler output.
12108 if test "$p" = "conftest.$objext"; then
12109 pre_test_object_deps_done=yes
12110 continue
12113 if test "$pre_test_object_deps_done" = no; then
12114 if test -z "$predep_objects_CXX"; then
12115 predep_objects_CXX="$p"
12116 else
12117 predep_objects_CXX="$predep_objects_CXX $p"
12119 else
12120 if test -z "$postdep_objects_CXX"; then
12121 postdep_objects_CXX="$p"
12122 else
12123 postdep_objects_CXX="$postdep_objects_CXX $p"
12128 *) ;; # Ignore the rest.
12130 esac
12131 done
12133 # Clean up.
12134 rm -f a.out a.exe
12135 else
12136 echo "libtool.m4: error: problem compiling CXX test program"
12139 $rm -f confest.$objext
12141 # PORTME: override above test on systems where it is broken
12142 case $host_os in
12143 interix3*)
12144 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12145 # hack all around it, let's just trust "g++" to DTRT.
12146 predep_objects_CXX=
12147 postdep_objects_CXX=
12148 postdeps_CXX=
12151 solaris*)
12152 case $cc_basename in
12153 CC*)
12154 # Adding this requires a known-good setup of shared libraries for
12155 # Sun compiler versions before 5.6, else PIC objects from an old
12156 # archive will be linked into the output, leading to subtle bugs.
12157 postdeps_CXX='-lCstd -lCrun'
12159 esac
12161 esac
12164 case " $postdeps_CXX " in
12165 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12166 esac
12168 lt_prog_compiler_wl_CXX=
12169 lt_prog_compiler_pic_CXX=
12170 lt_prog_compiler_static_CXX=
12172 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12173 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12175 # C++ specific cases for pic, static, wl, etc.
12176 if test "$GXX" = yes; then
12177 lt_prog_compiler_wl_CXX='-Wl,'
12178 lt_prog_compiler_static_CXX='-static'
12180 case $host_os in
12181 aix*)
12182 # All AIX code is PIC.
12183 if test "$host_cpu" = ia64; then
12184 # AIX 5 now supports IA64 processor
12185 lt_prog_compiler_static_CXX='-Bstatic'
12188 amigaos*)
12189 # FIXME: we need at least 68020 code to build shared libraries, but
12190 # adding the `-m68020' flag to GCC prevents building anything better,
12191 # like `-m68040'.
12192 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12194 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12195 # PIC is the default for these OSes.
12197 mingw* | os2* | pw32*)
12198 # This hack is so that the source file can tell whether it is being
12199 # built for inclusion in a dll (and should export symbols for example).
12200 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12202 darwin* | rhapsody*)
12203 # PIC is the default on this platform
12204 # Common symbols not allowed in MH_DYLIB files
12205 lt_prog_compiler_pic_CXX='-fno-common'
12207 *djgpp*)
12208 # DJGPP does not support shared libraries at all
12209 lt_prog_compiler_pic_CXX=
12211 interix3*)
12212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12213 # Instead, we relocate shared libraries at runtime.
12215 sysv4*MP*)
12216 if test -d /usr/nec; then
12217 lt_prog_compiler_pic_CXX=-Kconform_pic
12220 hpux*)
12221 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12222 # not for PA HP-UX.
12223 case $host_cpu in
12224 hppa*64*|ia64*)
12227 lt_prog_compiler_pic_CXX='-fPIC'
12229 esac
12232 lt_prog_compiler_pic_CXX='-fPIC'
12234 esac
12235 else
12236 case $host_os in
12237 aix4* | aix5*)
12238 # All AIX code is PIC.
12239 if test "$host_cpu" = ia64; then
12240 # AIX 5 now supports IA64 processor
12241 lt_prog_compiler_static_CXX='-Bstatic'
12242 else
12243 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12246 chorus*)
12247 case $cc_basename in
12248 cxch68*)
12249 # Green Hills C++ Compiler
12250 # _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"
12252 esac
12254 darwin*)
12255 # PIC is the default on this platform
12256 # Common symbols not allowed in MH_DYLIB files
12257 case $cc_basename in
12258 xlc*)
12259 lt_prog_compiler_pic_CXX='-qnocommon'
12260 lt_prog_compiler_wl_CXX='-Wl,'
12262 esac
12264 dgux*)
12265 case $cc_basename in
12266 ec++*)
12267 lt_prog_compiler_pic_CXX='-KPIC'
12269 ghcx*)
12270 # Green Hills C++ Compiler
12271 lt_prog_compiler_pic_CXX='-pic'
12275 esac
12277 freebsd* | dragonfly*)
12278 # FreeBSD uses GNU C++
12280 hpux9* | hpux10* | hpux11*)
12281 case $cc_basename in
12282 CC*)
12283 lt_prog_compiler_wl_CXX='-Wl,'
12284 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12285 if test "$host_cpu" != ia64; then
12286 lt_prog_compiler_pic_CXX='+Z'
12289 aCC*)
12290 lt_prog_compiler_wl_CXX='-Wl,'
12291 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12292 case $host_cpu in
12293 hppa*64*|ia64*)
12294 # +Z the default
12297 lt_prog_compiler_pic_CXX='+Z'
12299 esac
12303 esac
12305 interix*)
12306 # This is c89, which is MS Visual C++ (no shared libs)
12307 # Anyone wants to do a port?
12309 irix5* | irix6* | nonstopux*)
12310 case $cc_basename in
12311 CC*)
12312 lt_prog_compiler_wl_CXX='-Wl,'
12313 lt_prog_compiler_static_CXX='-non_shared'
12314 # CC pic flag -KPIC is the default.
12318 esac
12320 linux* | k*bsd*-gnu)
12321 case $cc_basename in
12322 KCC*)
12323 # KAI C++ Compiler
12324 lt_prog_compiler_wl_CXX='--backend -Wl,'
12325 lt_prog_compiler_pic_CXX='-fPIC'
12327 icpc* | ecpc*)
12328 # Intel C++
12329 lt_prog_compiler_wl_CXX='-Wl,'
12330 lt_prog_compiler_pic_CXX='-KPIC'
12331 lt_prog_compiler_static_CXX='-static'
12333 pgCC*)
12334 # Portland Group C++ compiler.
12335 lt_prog_compiler_wl_CXX='-Wl,'
12336 lt_prog_compiler_pic_CXX='-fpic'
12337 lt_prog_compiler_static_CXX='-Bstatic'
12339 cxx*)
12340 # Compaq C++
12341 # Make sure the PIC flag is empty. It appears that all Alpha
12342 # Linux and Compaq Tru64 Unix objects are PIC.
12343 lt_prog_compiler_pic_CXX=
12344 lt_prog_compiler_static_CXX='-non_shared'
12348 esac
12350 lynxos*)
12352 m88k*)
12354 mvs*)
12355 case $cc_basename in
12356 cxx*)
12357 lt_prog_compiler_pic_CXX='-W c,exportall'
12361 esac
12363 netbsd* | netbsdelf*-gnu)
12365 osf3* | osf4* | osf5*)
12366 case $cc_basename in
12367 KCC*)
12368 lt_prog_compiler_wl_CXX='--backend -Wl,'
12370 RCC*)
12371 # Rational C++ 2.4.1
12372 lt_prog_compiler_pic_CXX='-pic'
12374 cxx*)
12375 # Digital/Compaq C++
12376 lt_prog_compiler_wl_CXX='-Wl,'
12377 # Make sure the PIC flag is empty. It appears that all Alpha
12378 # Linux and Compaq Tru64 Unix objects are PIC.
12379 lt_prog_compiler_pic_CXX=
12380 lt_prog_compiler_static_CXX='-non_shared'
12384 esac
12386 psos*)
12388 solaris*)
12389 case $cc_basename in
12390 CC*)
12391 # Sun C++ 4.2, 5.x and Centerline C++
12392 lt_prog_compiler_pic_CXX='-KPIC'
12393 lt_prog_compiler_static_CXX='-Bstatic'
12394 lt_prog_compiler_wl_CXX='-Qoption ld '
12396 gcx*)
12397 # Green Hills C++ Compiler
12398 lt_prog_compiler_pic_CXX='-PIC'
12402 esac
12404 sunos4*)
12405 case $cc_basename in
12406 CC*)
12407 # Sun C++ 4.x
12408 lt_prog_compiler_pic_CXX='-pic'
12409 lt_prog_compiler_static_CXX='-Bstatic'
12411 lcc*)
12412 # Lucid
12413 lt_prog_compiler_pic_CXX='-pic'
12417 esac
12419 tandem*)
12420 case $cc_basename in
12421 NCC*)
12422 # NonStop-UX NCC 3.20
12423 lt_prog_compiler_pic_CXX='-KPIC'
12427 esac
12429 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12430 case $cc_basename in
12431 CC*)
12432 lt_prog_compiler_wl_CXX='-Wl,'
12433 lt_prog_compiler_pic_CXX='-KPIC'
12434 lt_prog_compiler_static_CXX='-Bstatic'
12436 esac
12438 vxworks*)
12441 lt_prog_compiler_can_build_shared_CXX=no
12443 esac
12446 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12447 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12450 # Check to make sure the PIC flag actually works.
12452 if test -n "$lt_prog_compiler_pic_CXX"; then
12454 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12455 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12456 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459 lt_prog_compiler_pic_works_CXX=no
12460 ac_outfile=conftest.$ac_objext
12461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12462 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12463 # Insert the option either (1) after the last *FLAGS variable, or
12464 # (2) before a word containing "conftest.", or (3) at the end.
12465 # Note that $ac_compile itself does not contain backslashes and begins
12466 # with a dollar sign (not a hyphen), so the echo should work correctly.
12467 # The option is referenced via a variable to avoid confusing sed.
12468 lt_compile=`echo "$ac_compile" | $SED \
12469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12471 -e 's:$: $lt_compiler_flag:'`
12472 (eval echo "\"\$as_me:12472: $lt_compile\"" >&5)
12473 (eval "$lt_compile" 2>conftest.err)
12474 ac_status=$?
12475 cat conftest.err >&5
12476 echo "$as_me:12476: \$? = $ac_status" >&5
12477 if (exit $ac_status) && test -s "$ac_outfile"; then
12478 # The compiler can only warn and ignore the option if not recognized
12479 # So say no if there are warnings other than the usual output.
12480 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12482 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12483 lt_prog_compiler_pic_works_CXX=yes
12486 $rm conftest*
12489 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12490 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12492 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12493 case $lt_prog_compiler_pic_CXX in
12494 "" | " "*) ;;
12495 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12496 esac
12497 else
12498 lt_prog_compiler_pic_CXX=
12499 lt_prog_compiler_can_build_shared_CXX=no
12503 case $host_os in
12504 # For platforms which do not support PIC, -DPIC is meaningless:
12505 *djgpp*)
12506 lt_prog_compiler_pic_CXX=
12509 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12511 esac
12514 # Check to make sure the static flag actually works.
12516 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12517 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12518 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12519 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522 lt_prog_compiler_static_works_CXX=no
12523 save_LDFLAGS="$LDFLAGS"
12524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12525 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12527 # The linker can only warn and ignore the option if not recognized
12528 # So say no if there are warnings
12529 if test -s conftest.err; then
12530 # Append any errors to the config.log.
12531 cat conftest.err 1>&5
12532 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12534 if diff conftest.exp conftest.er2 >/dev/null; then
12535 lt_prog_compiler_static_works_CXX=yes
12537 else
12538 lt_prog_compiler_static_works_CXX=yes
12541 $rm conftest*
12542 LDFLAGS="$save_LDFLAGS"
12545 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12546 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12548 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12550 else
12551 lt_prog_compiler_static_CXX=
12555 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12556 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12557 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560 lt_cv_prog_compiler_c_o_CXX=no
12561 $rm -r conftest 2>/dev/null
12562 mkdir conftest
12563 cd conftest
12564 mkdir out
12565 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12567 lt_compiler_flag="-o out/conftest2.$ac_objext"
12568 # Insert the option either (1) after the last *FLAGS variable, or
12569 # (2) before a word containing "conftest.", or (3) at the end.
12570 # Note that $ac_compile itself does not contain backslashes and begins
12571 # with a dollar sign (not a hyphen), so the echo should work correctly.
12572 lt_compile=`echo "$ac_compile" | $SED \
12573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12575 -e 's:$: $lt_compiler_flag:'`
12576 (eval echo "\"\$as_me:12576: $lt_compile\"" >&5)
12577 (eval "$lt_compile" 2>out/conftest.err)
12578 ac_status=$?
12579 cat out/conftest.err >&5
12580 echo "$as_me:12580: \$? = $ac_status" >&5
12581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12582 then
12583 # The compiler can only warn and ignore the option if not recognized
12584 # So say no if there are warnings
12585 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12588 lt_cv_prog_compiler_c_o_CXX=yes
12591 chmod u+w . 2>&5
12592 $rm conftest*
12593 # SGI C++ compiler will create directory out/ii_files/ for
12594 # template instantiation
12595 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12596 $rm out/* && rmdir out
12597 cd ..
12598 rmdir conftest
12599 $rm conftest*
12602 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12603 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12606 hard_links="nottested"
12607 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12608 # do not overwrite the value of need_locks provided by the user
12609 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12610 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12611 hard_links=yes
12612 $rm conftest*
12613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12614 touch conftest.a
12615 ln conftest.a conftest.b 2>&5 || hard_links=no
12616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12617 { echo "$as_me:$LINENO: result: $hard_links" >&5
12618 echo "${ECHO_T}$hard_links" >&6; }
12619 if test "$hard_links" = no; then
12620 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12621 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12622 need_locks=warn
12624 else
12625 need_locks=no
12628 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12629 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12631 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12632 case $host_os in
12633 aix4* | aix5*)
12634 # If we're using GNU nm, then we don't want the "-C" option.
12635 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12636 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12637 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'
12638 else
12639 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'
12642 pw32*)
12643 export_symbols_cmds_CXX="$ltdll_cmds"
12645 cygwin* | mingw*)
12646 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'
12648 linux* | k*bsd*-gnu)
12649 link_all_deplibs_CXX=no
12652 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12654 esac
12656 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12657 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12658 test "$ld_shlibs_CXX" = no && can_build_shared=no
12661 # Do we need to explicitly link libc?
12663 case "x$archive_cmds_need_lc_CXX" in
12664 x|xyes)
12665 # Assume -lc should be added
12666 archive_cmds_need_lc_CXX=yes
12668 if test "$enable_shared" = yes && test "$GCC" = yes; then
12669 case $archive_cmds_CXX in
12670 *'~'*)
12671 # FIXME: we may have to deal with multi-command sequences.
12673 '$CC '*)
12674 # Test whether the compiler implicitly links with -lc since on some
12675 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12676 # to ld, don't add -lc before -lgcc.
12677 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12678 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12679 $rm conftest*
12680 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12683 (eval $ac_compile) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } 2>conftest.err; then
12687 soname=conftest
12688 lib=conftest
12689 libobjs=conftest.$ac_objext
12690 deplibs=
12691 wl=$lt_prog_compiler_wl_CXX
12692 pic_flag=$lt_prog_compiler_pic_CXX
12693 compiler_flags=-v
12694 linker_flags=-v
12695 verstring=
12696 output_objdir=.
12697 libname=conftest
12698 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12699 allow_undefined_flag_CXX=
12700 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12701 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }
12705 then
12706 archive_cmds_need_lc_CXX=no
12707 else
12708 archive_cmds_need_lc_CXX=yes
12710 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12711 else
12712 cat conftest.err 1>&5
12714 $rm conftest*
12715 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12716 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12718 esac
12721 esac
12723 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12724 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12725 library_names_spec=
12726 libname_spec='lib$name'
12727 soname_spec=
12728 shrext_cmds=".so"
12729 postinstall_cmds=
12730 postuninstall_cmds=
12731 finish_cmds=
12732 finish_eval=
12733 shlibpath_var=
12734 shlibpath_overrides_runpath=unknown
12735 version_type=none
12736 dynamic_linker="$host_os ld.so"
12737 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12738 if test "$GCC" = yes; then
12739 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12740 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12741 # if the path contains ";" then we assume it to be the separator
12742 # otherwise default to the standard path separator (i.e. ":") - it is
12743 # assumed that no part of a normal pathname contains ";" but that should
12744 # okay in the real world where ";" in dirpaths is itself problematic.
12745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12746 else
12747 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12749 else
12750 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12752 need_lib_prefix=unknown
12753 hardcode_into_libs=no
12755 # when you set need_version to no, make sure it does not cause -set_version
12756 # flags to be left without arguments
12757 need_version=unknown
12759 case $host_os in
12760 aix3*)
12761 version_type=linux
12762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12763 shlibpath_var=LIBPATH
12765 # AIX 3 has no versioning support, so we append a major version to the name.
12766 soname_spec='${libname}${release}${shared_ext}$major'
12769 aix4* | aix5*)
12770 version_type=linux
12771 need_lib_prefix=no
12772 need_version=no
12773 hardcode_into_libs=yes
12774 if test "$host_cpu" = ia64; then
12775 # AIX 5 supports IA64
12776 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12777 shlibpath_var=LD_LIBRARY_PATH
12778 else
12779 # With GCC up to 2.95.x, collect2 would create an import file
12780 # for dependence libraries. The import file would start with
12781 # the line `#! .'. This would cause the generated library to
12782 # depend on `.', always an invalid library. This was fixed in
12783 # development snapshots of GCC prior to 3.0.
12784 case $host_os in
12785 aix4 | aix4.[01] | aix4.[01].*)
12786 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12787 echo ' yes '
12788 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12790 else
12791 can_build_shared=no
12794 esac
12795 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12796 # soname into executable. Probably we can add versioning support to
12797 # collect2, so additional links can be useful in future.
12798 if test "$aix_use_runtimelinking" = yes; then
12799 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12800 # instead of lib<name>.a to let people know that these are not
12801 # typical AIX shared libraries.
12802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12803 else
12804 # We preserve .a as extension for shared libraries through AIX4.2
12805 # and later when we are not doing run time linking.
12806 library_names_spec='${libname}${release}.a $libname.a'
12807 soname_spec='${libname}${release}${shared_ext}$major'
12809 shlibpath_var=LIBPATH
12813 amigaos*)
12814 library_names_spec='$libname.ixlibrary $libname.a'
12815 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12816 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'
12819 beos*)
12820 library_names_spec='${libname}${shared_ext}'
12821 dynamic_linker="$host_os ld.so"
12822 shlibpath_var=LIBRARY_PATH
12825 bsdi[45]*)
12826 version_type=linux
12827 need_version=no
12828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12829 soname_spec='${libname}${release}${shared_ext}$major'
12830 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12831 shlibpath_var=LD_LIBRARY_PATH
12832 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12833 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12834 # the default ld.so.conf also contains /usr/contrib/lib and
12835 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12836 # libtool to hard-code these into programs
12839 cygwin* | mingw* | pw32*)
12840 version_type=windows
12841 shrext_cmds=".dll"
12842 need_version=no
12843 need_lib_prefix=no
12845 case $GCC,$host_os in
12846 yes,cygwin* | yes,mingw* | yes,pw32*)
12847 library_names_spec='$libname.dll.a'
12848 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12849 postinstall_cmds='base_file=`basename \${file}`~
12850 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12851 dldir=$destdir/`dirname \$dlpath`~
12852 test -d \$dldir || mkdir -p \$dldir~
12853 $install_prog $dir/$dlname \$dldir/$dlname~
12854 chmod a+x \$dldir/$dlname'
12855 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12856 dlpath=$dir/\$dldll~
12857 $rm \$dlpath'
12858 shlibpath_overrides_runpath=yes
12860 case $host_os in
12861 cygwin*)
12862 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12863 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12864 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12866 mingw*)
12867 # MinGW DLLs use traditional 'lib' prefix
12868 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12869 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12870 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12871 # It is most probably a Windows format PATH printed by
12872 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12873 # path with ; separators, and with drive letters. We can handle the
12874 # drive letters (cygwin fileutils understands them), so leave them,
12875 # especially as we might pass files found there to a mingw objdump,
12876 # which wouldn't understand a cygwinified path. Ahh.
12877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12878 else
12879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12882 pw32*)
12883 # pw32 DLLs use 'pw' prefix rather than 'lib'
12884 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12886 esac
12890 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12892 esac
12893 dynamic_linker='Win32 ld.exe'
12894 # FIXME: first we should search . and the directory the executable is in
12895 shlibpath_var=PATH
12898 darwin* | rhapsody*)
12899 dynamic_linker="$host_os dyld"
12900 version_type=darwin
12901 need_lib_prefix=no
12902 need_version=no
12903 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12904 soname_spec='${libname}${release}${major}$shared_ext'
12905 shlibpath_overrides_runpath=yes
12906 shlibpath_var=DYLD_LIBRARY_PATH
12907 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12908 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12909 if test "$GCC" = yes; then
12910 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"`
12911 else
12912 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12917 dgux*)
12918 version_type=linux
12919 need_lib_prefix=no
12920 need_version=no
12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12922 soname_spec='${libname}${release}${shared_ext}$major'
12923 shlibpath_var=LD_LIBRARY_PATH
12926 freebsd1*)
12927 dynamic_linker=no
12930 freebsd* | dragonfly*)
12931 # DragonFly does not have aout. When/if they implement a new
12932 # versioning mechanism, adjust this.
12933 if test -x /usr/bin/objformat; then
12934 objformat=`/usr/bin/objformat`
12935 else
12936 case $host_os in
12937 freebsd[123]*) objformat=aout ;;
12938 *) objformat=elf ;;
12939 esac
12941 version_type=freebsd-$objformat
12942 case $version_type in
12943 freebsd-elf*)
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12945 need_version=no
12946 need_lib_prefix=no
12948 freebsd-*)
12949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12950 need_version=yes
12952 esac
12953 shlibpath_var=LD_LIBRARY_PATH
12954 case $host_os in
12955 freebsd2*)
12956 shlibpath_overrides_runpath=yes
12958 freebsd3.[01]* | freebsdelf3.[01]*)
12959 shlibpath_overrides_runpath=yes
12960 hardcode_into_libs=yes
12962 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12963 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12964 shlibpath_overrides_runpath=no
12965 hardcode_into_libs=yes
12967 freebsd*) # from 4.6 on
12968 shlibpath_overrides_runpath=yes
12969 hardcode_into_libs=yes
12971 esac
12974 gnu*)
12975 version_type=linux
12976 need_lib_prefix=no
12977 need_version=no
12978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12979 soname_spec='${libname}${release}${shared_ext}$major'
12980 shlibpath_var=LD_LIBRARY_PATH
12981 hardcode_into_libs=yes
12984 hpux9* | hpux10* | hpux11*)
12985 # Give a soname corresponding to the major version so that dld.sl refuses to
12986 # link against other versions.
12987 version_type=sunos
12988 need_lib_prefix=no
12989 need_version=no
12990 case $host_cpu in
12991 ia64*)
12992 shrext_cmds='.so'
12993 hardcode_into_libs=yes
12994 dynamic_linker="$host_os dld.so"
12995 shlibpath_var=LD_LIBRARY_PATH
12996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998 soname_spec='${libname}${release}${shared_ext}$major'
12999 if test "X$HPUX_IA64_MODE" = X32; then
13000 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13001 else
13002 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13006 hppa*64*)
13007 shrext_cmds='.sl'
13008 hardcode_into_libs=yes
13009 dynamic_linker="$host_os dld.sl"
13010 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013 soname_spec='${libname}${release}${shared_ext}$major'
13014 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13018 shrext_cmds='.sl'
13019 dynamic_linker="$host_os dld.sl"
13020 shlibpath_var=SHLIB_PATH
13021 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13023 soname_spec='${libname}${release}${shared_ext}$major'
13025 esac
13026 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13027 postinstall_cmds='chmod 555 $lib'
13030 interix3*)
13031 version_type=linux
13032 need_lib_prefix=no
13033 need_version=no
13034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13035 soname_spec='${libname}${release}${shared_ext}$major'
13036 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13037 shlibpath_var=LD_LIBRARY_PATH
13038 shlibpath_overrides_runpath=no
13039 hardcode_into_libs=yes
13042 irix5* | irix6* | nonstopux*)
13043 case $host_os in
13044 nonstopux*) version_type=nonstopux ;;
13046 if test "$lt_cv_prog_gnu_ld" = yes; then
13047 version_type=linux
13048 else
13049 version_type=irix
13050 fi ;;
13051 esac
13052 need_lib_prefix=no
13053 need_version=no
13054 soname_spec='${libname}${release}${shared_ext}$major'
13055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13056 case $host_os in
13057 irix5* | nonstopux*)
13058 libsuff= shlibsuff=
13061 case $LD in # libtool.m4 will add one of these switches to LD
13062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13063 libsuff= shlibsuff= libmagic=32-bit;;
13064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13065 libsuff=32 shlibsuff=N32 libmagic=N32;;
13066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13067 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13068 *) libsuff= shlibsuff= libmagic=never-match;;
13069 esac
13071 esac
13072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13073 shlibpath_overrides_runpath=no
13074 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13075 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13076 hardcode_into_libs=yes
13079 # No shared lib support for Linux oldld, aout, or coff.
13080 linux*oldld* | linux*aout* | linux*coff*)
13081 dynamic_linker=no
13084 # This must be Linux ELF.
13085 linux* | k*bsd*-gnu)
13086 version_type=linux
13087 need_lib_prefix=no
13088 need_version=no
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090 soname_spec='${libname}${release}${shared_ext}$major'
13091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13092 shlibpath_var=LD_LIBRARY_PATH
13093 shlibpath_overrides_runpath=no
13094 # This implies no fast_install, which is unacceptable.
13095 # Some rework will be needed to allow for fast_install
13096 # before this can be enabled.
13097 hardcode_into_libs=yes
13099 # Append ld.so.conf contents to the search path
13100 if test -f /etc/ld.so.conf; then
13101 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' ' '`
13102 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13105 # We used to test for /lib/ld.so.1 and disable shared libraries on
13106 # powerpc, because MkLinux only supported shared libraries with the
13107 # GNU dynamic linker. Since this was broken with cross compilers,
13108 # most powerpc-linux boxes support dynamic linking these days and
13109 # people can always --disable-shared, the test was removed, and we
13110 # assume the GNU/Linux dynamic linker is in use.
13111 dynamic_linker='GNU/Linux ld.so'
13114 netbsdelf*-gnu)
13115 version_type=linux
13116 need_lib_prefix=no
13117 need_version=no
13118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13119 soname_spec='${libname}${release}${shared_ext}$major'
13120 shlibpath_var=LD_LIBRARY_PATH
13121 shlibpath_overrides_runpath=no
13122 hardcode_into_libs=yes
13123 dynamic_linker='NetBSD ld.elf_so'
13126 netbsd*)
13127 version_type=sunos
13128 need_lib_prefix=no
13129 need_version=no
13130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13133 dynamic_linker='NetBSD (a.out) ld.so'
13134 else
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13136 soname_spec='${libname}${release}${shared_ext}$major'
13137 dynamic_linker='NetBSD ld.elf_so'
13139 shlibpath_var=LD_LIBRARY_PATH
13140 shlibpath_overrides_runpath=yes
13141 hardcode_into_libs=yes
13144 newsos6)
13145 version_type=linux
13146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147 shlibpath_var=LD_LIBRARY_PATH
13148 shlibpath_overrides_runpath=yes
13151 nto-qnx*)
13152 version_type=linux
13153 need_lib_prefix=no
13154 need_version=no
13155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156 soname_spec='${libname}${release}${shared_ext}$major'
13157 shlibpath_var=LD_LIBRARY_PATH
13158 shlibpath_overrides_runpath=yes
13161 openbsd*)
13162 version_type=sunos
13163 sys_lib_dlsearch_path_spec="/usr/lib"
13164 need_lib_prefix=no
13165 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13166 case $host_os in
13167 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13168 *) need_version=no ;;
13169 esac
13170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13172 shlibpath_var=LD_LIBRARY_PATH
13173 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13174 case $host_os in
13175 openbsd2.[89] | openbsd2.[89].*)
13176 shlibpath_overrides_runpath=no
13179 shlibpath_overrides_runpath=yes
13181 esac
13182 else
13183 shlibpath_overrides_runpath=yes
13187 os2*)
13188 libname_spec='$name'
13189 shrext_cmds=".dll"
13190 need_lib_prefix=no
13191 library_names_spec='$libname${shared_ext} $libname.a'
13192 dynamic_linker='OS/2 ld.exe'
13193 shlibpath_var=LIBPATH
13196 osf3* | osf4* | osf5*)
13197 version_type=osf
13198 need_lib_prefix=no
13199 need_version=no
13200 soname_spec='${libname}${release}${shared_ext}$major'
13201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13202 shlibpath_var=LD_LIBRARY_PATH
13203 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13204 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13207 solaris*)
13208 version_type=linux
13209 need_lib_prefix=no
13210 need_version=no
13211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13212 soname_spec='${libname}${release}${shared_ext}$major'
13213 shlibpath_var=LD_LIBRARY_PATH
13214 shlibpath_overrides_runpath=yes
13215 hardcode_into_libs=yes
13216 # ldd complains unless libraries are executable
13217 postinstall_cmds='chmod +x $lib'
13220 sunos4*)
13221 version_type=sunos
13222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13223 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13224 shlibpath_var=LD_LIBRARY_PATH
13225 shlibpath_overrides_runpath=yes
13226 if test "$with_gnu_ld" = yes; then
13227 need_lib_prefix=no
13229 need_version=yes
13232 sysv4 | sysv4.3*)
13233 version_type=linux
13234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13235 soname_spec='${libname}${release}${shared_ext}$major'
13236 shlibpath_var=LD_LIBRARY_PATH
13237 case $host_vendor in
13238 sni)
13239 shlibpath_overrides_runpath=no
13240 need_lib_prefix=no
13241 export_dynamic_flag_spec='${wl}-Blargedynsym'
13242 runpath_var=LD_RUN_PATH
13244 siemens)
13245 need_lib_prefix=no
13247 motorola)
13248 need_lib_prefix=no
13249 need_version=no
13250 shlibpath_overrides_runpath=no
13251 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13253 esac
13256 sysv4*MP*)
13257 if test -d /usr/nec ;then
13258 version_type=linux
13259 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13260 soname_spec='$libname${shared_ext}.$major'
13261 shlibpath_var=LD_LIBRARY_PATH
13265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13266 version_type=freebsd-elf
13267 need_lib_prefix=no
13268 need_version=no
13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13270 soname_spec='${libname}${release}${shared_ext}$major'
13271 shlibpath_var=LD_LIBRARY_PATH
13272 hardcode_into_libs=yes
13273 if test "$with_gnu_ld" = yes; then
13274 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13275 shlibpath_overrides_runpath=no
13276 else
13277 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13278 shlibpath_overrides_runpath=yes
13279 case $host_os in
13280 sco3.2v5*)
13281 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13283 esac
13285 sys_lib_dlsearch_path_spec='/usr/lib'
13288 uts4*)
13289 version_type=linux
13290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13291 soname_spec='${libname}${release}${shared_ext}$major'
13292 shlibpath_var=LD_LIBRARY_PATH
13296 dynamic_linker=no
13298 esac
13299 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13300 echo "${ECHO_T}$dynamic_linker" >&6; }
13301 test "$dynamic_linker" = no && can_build_shared=no
13303 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13304 if test "$GCC" = yes; then
13305 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13308 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13309 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13310 hardcode_action_CXX=
13311 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13312 test -n "$runpath_var_CXX" || \
13313 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13315 # We can hardcode non-existant directories.
13316 if test "$hardcode_direct_CXX" != no &&
13317 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13318 # have to relink, otherwise we might link with an installed library
13319 # when we should be linking with a yet-to-be-installed one
13320 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13321 test "$hardcode_minus_L_CXX" != no; then
13322 # Linking always hardcodes the temporary library directory.
13323 hardcode_action_CXX=relink
13324 else
13325 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13326 hardcode_action_CXX=immediate
13328 else
13329 # We cannot hardcode anything, or else we can only hardcode existing
13330 # directories.
13331 hardcode_action_CXX=unsupported
13333 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13334 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13336 if test "$hardcode_action_CXX" = relink; then
13337 # Fast installation is not supported
13338 enable_fast_install=no
13339 elif test "$shlibpath_overrides_runpath" = yes ||
13340 test "$enable_shared" = no; then
13341 # Fast installation is not necessary
13342 enable_fast_install=needless
13346 # The else clause should only fire when bootstrapping the
13347 # libtool distribution, otherwise you forgot to ship ltmain.sh
13348 # with your package, and you will get complaints that there are
13349 # no rules to generate ltmain.sh.
13350 if test -f "$ltmain"; then
13351 # See if we are running on zsh, and set the options which allow our commands through
13352 # without removal of \ escapes.
13353 if test -n "${ZSH_VERSION+set}" ; then
13354 setopt NO_GLOB_SUBST
13356 # Now quote all the things that may contain metacharacters while being
13357 # careful not to overquote the AC_SUBSTed values. We take copies of the
13358 # variables and quote the copies for generation of the libtool script.
13359 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13360 SED SHELL STRIP \
13361 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13362 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13363 deplibs_check_method reload_flag reload_cmds need_locks \
13364 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13365 lt_cv_sys_global_symbol_to_c_name_address \
13366 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13367 old_postinstall_cmds old_postuninstall_cmds \
13368 compiler_CXX \
13369 CC_CXX \
13370 LD_CXX \
13371 lt_prog_compiler_wl_CXX \
13372 lt_prog_compiler_pic_CXX \
13373 lt_prog_compiler_static_CXX \
13374 lt_prog_compiler_no_builtin_flag_CXX \
13375 export_dynamic_flag_spec_CXX \
13376 thread_safe_flag_spec_CXX \
13377 whole_archive_flag_spec_CXX \
13378 enable_shared_with_static_runtimes_CXX \
13379 old_archive_cmds_CXX \
13380 old_archive_from_new_cmds_CXX \
13381 predep_objects_CXX \
13382 postdep_objects_CXX \
13383 predeps_CXX \
13384 postdeps_CXX \
13385 compiler_lib_search_path_CXX \
13386 archive_cmds_CXX \
13387 archive_expsym_cmds_CXX \
13388 postinstall_cmds_CXX \
13389 postuninstall_cmds_CXX \
13390 old_archive_from_expsyms_cmds_CXX \
13391 allow_undefined_flag_CXX \
13392 no_undefined_flag_CXX \
13393 export_symbols_cmds_CXX \
13394 hardcode_libdir_flag_spec_CXX \
13395 hardcode_libdir_flag_spec_ld_CXX \
13396 hardcode_libdir_separator_CXX \
13397 hardcode_automatic_CXX \
13398 module_cmds_CXX \
13399 module_expsym_cmds_CXX \
13400 lt_cv_prog_compiler_c_o_CXX \
13401 exclude_expsyms_CXX \
13402 include_expsyms_CXX; do
13404 case $var in
13405 old_archive_cmds_CXX | \
13406 old_archive_from_new_cmds_CXX | \
13407 archive_cmds_CXX | \
13408 archive_expsym_cmds_CXX | \
13409 module_cmds_CXX | \
13410 module_expsym_cmds_CXX | \
13411 old_archive_from_expsyms_cmds_CXX | \
13412 export_symbols_cmds_CXX | \
13413 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13414 postinstall_cmds | postuninstall_cmds | \
13415 old_postinstall_cmds | old_postuninstall_cmds | \
13416 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13417 # Double-quote double-evaled strings.
13418 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13421 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13423 esac
13424 done
13426 case $lt_echo in
13427 *'\$0 --fallback-echo"')
13428 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13430 esac
13432 cfgfile="$ofile"
13434 cat <<__EOF__ >> "$cfgfile"
13435 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13437 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13439 # Shell to use when invoking shell scripts.
13440 SHELL=$lt_SHELL
13442 # Whether or not to build shared libraries.
13443 build_libtool_libs=$enable_shared
13445 # Whether or not to build static libraries.
13446 build_old_libs=$enable_static
13448 # Whether or not to add -lc for building shared libraries.
13449 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13451 # Whether or not to disallow shared libs when runtime libs are static
13452 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13454 # Whether or not to optimize for fast installation.
13455 fast_install=$enable_fast_install
13457 # The host system.
13458 host_alias=$host_alias
13459 host=$host
13460 host_os=$host_os
13462 # The build system.
13463 build_alias=$build_alias
13464 build=$build
13465 build_os=$build_os
13467 # An echo program that does not interpret backslashes.
13468 echo=$lt_echo
13470 # The archiver.
13471 AR=$lt_AR
13472 AR_FLAGS=$lt_AR_FLAGS
13474 # A C compiler.
13475 LTCC=$lt_LTCC
13477 # LTCC compiler flags.
13478 LTCFLAGS=$lt_LTCFLAGS
13480 # A language-specific compiler.
13481 CC=$lt_compiler_CXX
13483 # Is the compiler the GNU C compiler?
13484 with_gcc=$GCC_CXX
13486 # An ERE matcher.
13487 EGREP=$lt_EGREP
13489 # The linker used to build libraries.
13490 LD=$lt_LD_CXX
13492 # Whether we need hard or soft links.
13493 LN_S=$lt_LN_S
13495 # A BSD-compatible nm program.
13496 NM=$lt_NM
13498 # A symbol stripping program
13499 STRIP=$lt_STRIP
13501 # Used to examine libraries when file_magic_cmd begins "file"
13502 MAGIC_CMD=$MAGIC_CMD
13504 # Used on cygwin: DLL creation program.
13505 DLLTOOL="$DLLTOOL"
13507 # Used on cygwin: object dumper.
13508 OBJDUMP="$OBJDUMP"
13510 # Used on cygwin: assembler.
13511 AS="$AS"
13513 # The name of the directory that contains temporary libtool files.
13514 objdir=$objdir
13516 # How to create reloadable object files.
13517 reload_flag=$lt_reload_flag
13518 reload_cmds=$lt_reload_cmds
13520 # How to pass a linker flag through the compiler.
13521 wl=$lt_lt_prog_compiler_wl_CXX
13523 # Object file suffix (normally "o").
13524 objext="$ac_objext"
13526 # Old archive suffix (normally "a").
13527 libext="$libext"
13529 # Shared library suffix (normally ".so").
13530 shrext_cmds='$shrext_cmds'
13532 # Executable file suffix (normally "").
13533 exeext="$exeext"
13535 # Additional compiler flags for building library objects.
13536 pic_flag=$lt_lt_prog_compiler_pic_CXX
13537 pic_mode=$pic_mode
13539 # What is the maximum length of a command?
13540 max_cmd_len=$lt_cv_sys_max_cmd_len
13542 # Does compiler simultaneously support -c and -o options?
13543 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13545 # Must we lock files when doing compilation?
13546 need_locks=$lt_need_locks
13548 # Do we need the lib prefix for modules?
13549 need_lib_prefix=$need_lib_prefix
13551 # Do we need a version for libraries?
13552 need_version=$need_version
13554 # Whether dlopen is supported.
13555 dlopen_support=$enable_dlopen
13557 # Whether dlopen of programs is supported.
13558 dlopen_self=$enable_dlopen_self
13560 # Whether dlopen of statically linked programs is supported.
13561 dlopen_self_static=$enable_dlopen_self_static
13563 # Compiler flag to prevent dynamic linking.
13564 link_static_flag=$lt_lt_prog_compiler_static_CXX
13566 # Compiler flag to turn off builtin functions.
13567 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13569 # Compiler flag to allow reflexive dlopens.
13570 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13572 # Compiler flag to generate shared objects directly from archives.
13573 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13575 # Compiler flag to generate thread-safe objects.
13576 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13578 # Library versioning type.
13579 version_type=$version_type
13581 # Format of library name prefix.
13582 libname_spec=$lt_libname_spec
13584 # List of archive names. First name is the real one, the rest are links.
13585 # The last name is the one that the linker finds with -lNAME.
13586 library_names_spec=$lt_library_names_spec
13588 # The coded name of the library, if different from the real name.
13589 soname_spec=$lt_soname_spec
13591 # Commands used to build and install an old-style archive.
13592 RANLIB=$lt_RANLIB
13593 old_archive_cmds=$lt_old_archive_cmds_CXX
13594 old_postinstall_cmds=$lt_old_postinstall_cmds
13595 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13597 # Create an old-style archive from a shared archive.
13598 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13600 # Create a temporary old-style archive to link instead of a shared archive.
13601 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13603 # Commands used to build and install a shared archive.
13604 archive_cmds=$lt_archive_cmds_CXX
13605 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13606 postinstall_cmds=$lt_postinstall_cmds
13607 postuninstall_cmds=$lt_postuninstall_cmds
13609 # Commands used to build a loadable module (assumed same as above if empty)
13610 module_cmds=$lt_module_cmds_CXX
13611 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13613 # Commands to strip libraries.
13614 old_striplib=$lt_old_striplib
13615 striplib=$lt_striplib
13617 # Dependencies to place before the objects being linked to create a
13618 # shared library.
13619 predep_objects=$lt_predep_objects_CXX
13621 # Dependencies to place after the objects being linked to create a
13622 # shared library.
13623 postdep_objects=$lt_postdep_objects_CXX
13625 # Dependencies to place before the objects being linked to create a
13626 # shared library.
13627 predeps=$lt_predeps_CXX
13629 # Dependencies to place after the objects being linked to create a
13630 # shared library.
13631 postdeps=$lt_postdeps_CXX
13633 # The library search path used internally by the compiler when linking
13634 # a shared library.
13635 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13637 # Method to check whether dependent libraries are shared objects.
13638 deplibs_check_method=$lt_deplibs_check_method
13640 # Command to use when deplibs_check_method == file_magic.
13641 file_magic_cmd=$lt_file_magic_cmd
13643 # Flag that allows shared libraries with undefined symbols to be built.
13644 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13646 # Flag that forces no undefined symbols.
13647 no_undefined_flag=$lt_no_undefined_flag_CXX
13649 # Commands used to finish a libtool library installation in a directory.
13650 finish_cmds=$lt_finish_cmds
13652 # Same as above, but a single script fragment to be evaled but not shown.
13653 finish_eval=$lt_finish_eval
13655 # Take the output of nm and produce a listing of raw symbols and C names.
13656 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13658 # Transform the output of nm in a proper C declaration
13659 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13661 # Transform the output of nm in a C name address pair
13662 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13664 # This is the shared library runtime path variable.
13665 runpath_var=$runpath_var
13667 # This is the shared library path variable.
13668 shlibpath_var=$shlibpath_var
13670 # Is shlibpath searched before the hard-coded library search path?
13671 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13673 # How to hardcode a shared library path into an executable.
13674 hardcode_action=$hardcode_action_CXX
13676 # Whether we should hardcode library paths into libraries.
13677 hardcode_into_libs=$hardcode_into_libs
13679 # Flag to hardcode \$libdir into a binary during linking.
13680 # This must work even if \$libdir does not exist.
13681 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13683 # If ld is used when linking, flag to hardcode \$libdir into
13684 # a binary during linking. This must work even if \$libdir does
13685 # not exist.
13686 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13688 # Whether we need a single -rpath flag with a separated argument.
13689 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13691 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13692 # resulting binary.
13693 hardcode_direct=$hardcode_direct_CXX
13695 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13696 # resulting binary.
13697 hardcode_minus_L=$hardcode_minus_L_CXX
13699 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13700 # the resulting binary.
13701 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13703 # Set to yes if building a shared library automatically hardcodes DIR into the library
13704 # and all subsequent libraries and executables linked against it.
13705 hardcode_automatic=$hardcode_automatic_CXX
13707 # Variables whose values should be saved in libtool wrapper scripts and
13708 # restored at relink time.
13709 variables_saved_for_relink="$variables_saved_for_relink"
13711 # Whether libtool must link a program against all its dependency libraries.
13712 link_all_deplibs=$link_all_deplibs_CXX
13714 # Compile-time system search path for libraries
13715 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13717 # Run-time system search path for libraries
13718 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13720 # Fix the shell variable \$srcfile for the compiler.
13721 fix_srcfile_path="$fix_srcfile_path_CXX"
13723 # Set to yes if exported symbols are required.
13724 always_export_symbols=$always_export_symbols_CXX
13726 # The commands to list exported symbols.
13727 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13729 # The commands to extract the exported symbol list from a shared archive.
13730 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13732 # Symbols that should not be listed in the preloaded symbols.
13733 exclude_expsyms=$lt_exclude_expsyms_CXX
13735 # Symbols that must always be exported.
13736 include_expsyms=$lt_include_expsyms_CXX
13738 # ### END LIBTOOL TAG CONFIG: $tagname
13740 __EOF__
13743 else
13744 # If there is no Makefile yet, we rely on a make rule to execute
13745 # `config.status --recheck' to rerun these tests and create the
13746 # libtool script then.
13747 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13748 if test -f "$ltmain_in"; then
13749 test -f Makefile && make "$ltmain"
13754 ac_ext=c
13755 ac_cpp='$CPP $CPPFLAGS'
13756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13760 CC=$lt_save_CC
13761 LDCXX=$LD
13762 LD=$lt_save_LD
13763 GCC=$lt_save_GCC
13764 with_gnu_ldcxx=$with_gnu_ld
13765 with_gnu_ld=$lt_save_with_gnu_ld
13766 lt_cv_path_LDCXX=$lt_cv_path_LD
13767 lt_cv_path_LD=$lt_save_path_LD
13768 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13769 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13771 else
13772 tagname=""
13776 F77)
13777 if test -n "$F77" && test "X$F77" != "Xno"; then
13779 ac_ext=f
13780 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13781 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13782 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13785 archive_cmds_need_lc_F77=no
13786 allow_undefined_flag_F77=
13787 always_export_symbols_F77=no
13788 archive_expsym_cmds_F77=
13789 export_dynamic_flag_spec_F77=
13790 hardcode_direct_F77=no
13791 hardcode_libdir_flag_spec_F77=
13792 hardcode_libdir_flag_spec_ld_F77=
13793 hardcode_libdir_separator_F77=
13794 hardcode_minus_L_F77=no
13795 hardcode_automatic_F77=no
13796 module_cmds_F77=
13797 module_expsym_cmds_F77=
13798 link_all_deplibs_F77=unknown
13799 old_archive_cmds_F77=$old_archive_cmds
13800 no_undefined_flag_F77=
13801 whole_archive_flag_spec_F77=
13802 enable_shared_with_static_runtimes_F77=no
13804 # Source file extension for f77 test sources.
13805 ac_ext=f
13807 # Object file extension for compiled f77 test sources.
13808 objext=o
13809 objext_F77=$objext
13811 # Code to be used in simple compile tests
13812 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13814 # Code to be used in simple link tests
13815 lt_simple_link_test_code=" program t\n end\n"
13817 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13819 # If no C compiler was specified, use CC.
13820 LTCC=${LTCC-"$CC"}
13822 # If no C compiler flags were specified, use CFLAGS.
13823 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13825 # Allow CC to be a program name with arguments.
13826 compiler=$CC
13829 # save warnings/boilerplate of simple test code
13830 ac_outfile=conftest.$ac_objext
13831 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13832 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13833 _lt_compiler_boilerplate=`cat conftest.err`
13834 $rm conftest*
13836 ac_outfile=conftest.$ac_objext
13837 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13838 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13839 _lt_linker_boilerplate=`cat conftest.err`
13840 $rm conftest*
13843 # Allow CC to be a program name with arguments.
13844 lt_save_CC="$CC"
13845 CC=${F77-"f77"}
13846 compiler=$CC
13847 compiler_F77=$CC
13848 for cc_temp in $compiler""; do
13849 case $cc_temp in
13850 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13851 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13852 \-*) ;;
13853 *) break;;
13854 esac
13855 done
13856 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13859 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13860 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13861 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13862 echo "${ECHO_T}$can_build_shared" >&6; }
13864 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13865 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13866 test "$can_build_shared" = "no" && enable_shared=no
13868 # On AIX, shared libraries and static libraries use the same namespace, and
13869 # are all built from PIC.
13870 case $host_os in
13871 aix3*)
13872 test "$enable_shared" = yes && enable_static=no
13873 if test -n "$RANLIB"; then
13874 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13875 postinstall_cmds='$RANLIB $lib'
13878 aix4* | aix5*)
13879 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13880 test "$enable_shared" = yes && enable_static=no
13883 esac
13884 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13885 echo "${ECHO_T}$enable_shared" >&6; }
13887 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13888 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13889 # Make sure either enable_shared or enable_static is yes.
13890 test "$enable_shared" = yes || enable_static=yes
13891 { echo "$as_me:$LINENO: result: $enable_static" >&5
13892 echo "${ECHO_T}$enable_static" >&6; }
13894 GCC_F77="$G77"
13895 LD_F77="$LD"
13897 lt_prog_compiler_wl_F77=
13898 lt_prog_compiler_pic_F77=
13899 lt_prog_compiler_static_F77=
13901 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13902 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13904 if test "$GCC" = yes; then
13905 lt_prog_compiler_wl_F77='-Wl,'
13906 lt_prog_compiler_static_F77='-static'
13908 case $host_os in
13909 aix*)
13910 # All AIX code is PIC.
13911 if test "$host_cpu" = ia64; then
13912 # AIX 5 now supports IA64 processor
13913 lt_prog_compiler_static_F77='-Bstatic'
13917 amigaos*)
13918 # FIXME: we need at least 68020 code to build shared libraries, but
13919 # adding the `-m68020' flag to GCC prevents building anything better,
13920 # like `-m68040'.
13921 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13924 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13925 # PIC is the default for these OSes.
13928 mingw* | pw32* | os2*)
13929 # This hack is so that the source file can tell whether it is being
13930 # built for inclusion in a dll (and should export symbols for example).
13931 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13934 darwin* | rhapsody*)
13935 # PIC is the default on this platform
13936 # Common symbols not allowed in MH_DYLIB files
13937 lt_prog_compiler_pic_F77='-fno-common'
13940 interix3*)
13941 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13942 # Instead, we relocate shared libraries at runtime.
13945 msdosdjgpp*)
13946 # Just because we use GCC doesn't mean we suddenly get shared libraries
13947 # on systems that don't support them.
13948 lt_prog_compiler_can_build_shared_F77=no
13949 enable_shared=no
13952 sysv4*MP*)
13953 if test -d /usr/nec; then
13954 lt_prog_compiler_pic_F77=-Kconform_pic
13958 hpux*)
13959 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13960 # not for PA HP-UX.
13961 case $host_cpu in
13962 hppa*64*|ia64*)
13963 # +Z the default
13966 lt_prog_compiler_pic_F77='-fPIC'
13968 esac
13972 lt_prog_compiler_pic_F77='-fPIC'
13974 esac
13975 else
13976 # PORTME Check for flag to pass linker flags through the system compiler.
13977 case $host_os in
13978 aix*)
13979 lt_prog_compiler_wl_F77='-Wl,'
13980 if test "$host_cpu" = ia64; then
13981 # AIX 5 now supports IA64 processor
13982 lt_prog_compiler_static_F77='-Bstatic'
13983 else
13984 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13987 darwin*)
13988 # PIC is the default on this platform
13989 # Common symbols not allowed in MH_DYLIB files
13990 case $cc_basename in
13991 xlc*)
13992 lt_prog_compiler_pic_F77='-qnocommon'
13993 lt_prog_compiler_wl_F77='-Wl,'
13995 esac
13998 mingw* | pw32* | os2*)
13999 # This hack is so that the source file can tell whether it is being
14000 # built for inclusion in a dll (and should export symbols for example).
14001 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14004 hpux9* | hpux10* | hpux11*)
14005 lt_prog_compiler_wl_F77='-Wl,'
14006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14007 # not for PA HP-UX.
14008 case $host_cpu in
14009 hppa*64*|ia64*)
14010 # +Z the default
14013 lt_prog_compiler_pic_F77='+Z'
14015 esac
14016 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14017 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14020 irix5* | irix6* | nonstopux*)
14021 lt_prog_compiler_wl_F77='-Wl,'
14022 # PIC (with -KPIC) is the default.
14023 lt_prog_compiler_static_F77='-non_shared'
14026 newsos6)
14027 lt_prog_compiler_pic_F77='-KPIC'
14028 lt_prog_compiler_static_F77='-Bstatic'
14031 linux* | k*bsd*-gnu)
14032 case $cc_basename in
14033 icc* | ecc*)
14034 lt_prog_compiler_wl_F77='-Wl,'
14035 lt_prog_compiler_pic_F77='-KPIC'
14036 lt_prog_compiler_static_F77='-static'
14038 pgcc* | pgf77* | pgf90* | pgf95*)
14039 # Portland Group compilers (*not* the Pentium gcc compiler,
14040 # which looks to be a dead project)
14041 lt_prog_compiler_wl_F77='-Wl,'
14042 lt_prog_compiler_pic_F77='-fpic'
14043 lt_prog_compiler_static_F77='-Bstatic'
14045 ccc*)
14046 lt_prog_compiler_wl_F77='-Wl,'
14047 # All Alpha code is PIC.
14048 lt_prog_compiler_static_F77='-non_shared'
14050 esac
14053 osf3* | osf4* | osf5*)
14054 lt_prog_compiler_wl_F77='-Wl,'
14055 # All OSF/1 code is PIC.
14056 lt_prog_compiler_static_F77='-non_shared'
14059 solaris*)
14060 lt_prog_compiler_pic_F77='-KPIC'
14061 lt_prog_compiler_static_F77='-Bstatic'
14062 case $cc_basename in
14063 f77* | f90* | f95*)
14064 lt_prog_compiler_wl_F77='-Qoption ld ';;
14066 lt_prog_compiler_wl_F77='-Wl,';;
14067 esac
14070 sunos4*)
14071 lt_prog_compiler_wl_F77='-Qoption ld '
14072 lt_prog_compiler_pic_F77='-PIC'
14073 lt_prog_compiler_static_F77='-Bstatic'
14076 sysv4 | sysv4.2uw2* | sysv4.3*)
14077 lt_prog_compiler_wl_F77='-Wl,'
14078 lt_prog_compiler_pic_F77='-KPIC'
14079 lt_prog_compiler_static_F77='-Bstatic'
14082 sysv4*MP*)
14083 if test -d /usr/nec ;then
14084 lt_prog_compiler_pic_F77='-Kconform_pic'
14085 lt_prog_compiler_static_F77='-Bstatic'
14089 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14090 lt_prog_compiler_wl_F77='-Wl,'
14091 lt_prog_compiler_pic_F77='-KPIC'
14092 lt_prog_compiler_static_F77='-Bstatic'
14095 unicos*)
14096 lt_prog_compiler_wl_F77='-Wl,'
14097 lt_prog_compiler_can_build_shared_F77=no
14100 uts4*)
14101 lt_prog_compiler_pic_F77='-pic'
14102 lt_prog_compiler_static_F77='-Bstatic'
14106 lt_prog_compiler_can_build_shared_F77=no
14108 esac
14111 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14112 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14115 # Check to make sure the PIC flag actually works.
14117 if test -n "$lt_prog_compiler_pic_F77"; then
14119 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14120 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14121 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14123 else
14124 lt_prog_compiler_pic_works_F77=no
14125 ac_outfile=conftest.$ac_objext
14126 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14127 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14128 # Insert the option either (1) after the last *FLAGS variable, or
14129 # (2) before a word containing "conftest.", or (3) at the end.
14130 # Note that $ac_compile itself does not contain backslashes and begins
14131 # with a dollar sign (not a hyphen), so the echo should work correctly.
14132 # The option is referenced via a variable to avoid confusing sed.
14133 lt_compile=`echo "$ac_compile" | $SED \
14134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14136 -e 's:$: $lt_compiler_flag:'`
14137 (eval echo "\"\$as_me:14137: $lt_compile\"" >&5)
14138 (eval "$lt_compile" 2>conftest.err)
14139 ac_status=$?
14140 cat conftest.err >&5
14141 echo "$as_me:14141: \$? = $ac_status" >&5
14142 if (exit $ac_status) && test -s "$ac_outfile"; then
14143 # The compiler can only warn and ignore the option if not recognized
14144 # So say no if there are warnings other than the usual output.
14145 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14147 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14148 lt_prog_compiler_pic_works_F77=yes
14151 $rm conftest*
14154 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14155 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14157 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14158 case $lt_prog_compiler_pic_F77 in
14159 "" | " "*) ;;
14160 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14161 esac
14162 else
14163 lt_prog_compiler_pic_F77=
14164 lt_prog_compiler_can_build_shared_F77=no
14168 case $host_os in
14169 # For platforms which do not support PIC, -DPIC is meaningless:
14170 *djgpp*)
14171 lt_prog_compiler_pic_F77=
14174 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14176 esac
14179 # Check to make sure the static flag actually works.
14181 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14182 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14183 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14184 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187 lt_prog_compiler_static_works_F77=no
14188 save_LDFLAGS="$LDFLAGS"
14189 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14190 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14191 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14192 # The linker can only warn and ignore the option if not recognized
14193 # So say no if there are warnings
14194 if test -s conftest.err; then
14195 # Append any errors to the config.log.
14196 cat conftest.err 1>&5
14197 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14199 if diff conftest.exp conftest.er2 >/dev/null; then
14200 lt_prog_compiler_static_works_F77=yes
14202 else
14203 lt_prog_compiler_static_works_F77=yes
14206 $rm conftest*
14207 LDFLAGS="$save_LDFLAGS"
14210 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14211 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14213 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14215 else
14216 lt_prog_compiler_static_F77=
14220 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14221 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14222 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225 lt_cv_prog_compiler_c_o_F77=no
14226 $rm -r conftest 2>/dev/null
14227 mkdir conftest
14228 cd conftest
14229 mkdir out
14230 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14232 lt_compiler_flag="-o out/conftest2.$ac_objext"
14233 # Insert the option either (1) after the last *FLAGS variable, or
14234 # (2) before a word containing "conftest.", or (3) at the end.
14235 # Note that $ac_compile itself does not contain backslashes and begins
14236 # with a dollar sign (not a hyphen), so the echo should work correctly.
14237 lt_compile=`echo "$ac_compile" | $SED \
14238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14240 -e 's:$: $lt_compiler_flag:'`
14241 (eval echo "\"\$as_me:14241: $lt_compile\"" >&5)
14242 (eval "$lt_compile" 2>out/conftest.err)
14243 ac_status=$?
14244 cat out/conftest.err >&5
14245 echo "$as_me:14245: \$? = $ac_status" >&5
14246 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14247 then
14248 # The compiler can only warn and ignore the option if not recognized
14249 # So say no if there are warnings
14250 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14253 lt_cv_prog_compiler_c_o_F77=yes
14256 chmod u+w . 2>&5
14257 $rm conftest*
14258 # SGI C++ compiler will create directory out/ii_files/ for
14259 # template instantiation
14260 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14261 $rm out/* && rmdir out
14262 cd ..
14263 rmdir conftest
14264 $rm conftest*
14267 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14268 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14271 hard_links="nottested"
14272 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14273 # do not overwrite the value of need_locks provided by the user
14274 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14275 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14276 hard_links=yes
14277 $rm conftest*
14278 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14279 touch conftest.a
14280 ln conftest.a conftest.b 2>&5 || hard_links=no
14281 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14282 { echo "$as_me:$LINENO: result: $hard_links" >&5
14283 echo "${ECHO_T}$hard_links" >&6; }
14284 if test "$hard_links" = no; then
14285 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14286 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14287 need_locks=warn
14289 else
14290 need_locks=no
14293 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14294 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14296 runpath_var=
14297 allow_undefined_flag_F77=
14298 enable_shared_with_static_runtimes_F77=no
14299 archive_cmds_F77=
14300 archive_expsym_cmds_F77=
14301 old_archive_From_new_cmds_F77=
14302 old_archive_from_expsyms_cmds_F77=
14303 export_dynamic_flag_spec_F77=
14304 whole_archive_flag_spec_F77=
14305 thread_safe_flag_spec_F77=
14306 hardcode_libdir_flag_spec_F77=
14307 hardcode_libdir_flag_spec_ld_F77=
14308 hardcode_libdir_separator_F77=
14309 hardcode_direct_F77=no
14310 hardcode_minus_L_F77=no
14311 hardcode_shlibpath_var_F77=unsupported
14312 link_all_deplibs_F77=unknown
14313 hardcode_automatic_F77=no
14314 module_cmds_F77=
14315 module_expsym_cmds_F77=
14316 always_export_symbols_F77=no
14317 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14318 # include_expsyms should be a list of space-separated symbols to be *always*
14319 # included in the symbol list
14320 include_expsyms_F77=
14321 # exclude_expsyms can be an extended regexp of symbols to exclude
14322 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14323 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14324 # as well as any symbol that contains `d'.
14325 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14326 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14327 # platforms (ab)use it in PIC code, but their linkers get confused if
14328 # the symbol is explicitly referenced. Since portable code cannot
14329 # rely on this symbol name, it's probably fine to never include it in
14330 # preloaded symbol tables.
14331 extract_expsyms_cmds=
14332 # Just being paranoid about ensuring that cc_basename is set.
14333 for cc_temp in $compiler""; do
14334 case $cc_temp in
14335 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14336 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14337 \-*) ;;
14338 *) break;;
14339 esac
14340 done
14341 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14343 case $host_os in
14344 cygwin* | mingw* | pw32*)
14345 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14346 # When not using gcc, we currently assume that we are using
14347 # Microsoft Visual C++.
14348 if test "$GCC" != yes; then
14349 with_gnu_ld=no
14352 interix*)
14353 # we just hope/assume this is gcc and not c89 (= MSVC++)
14354 with_gnu_ld=yes
14356 openbsd*)
14357 with_gnu_ld=no
14359 esac
14361 ld_shlibs_F77=yes
14362 if test "$with_gnu_ld" = yes; then
14363 # If archive_cmds runs LD, not CC, wlarc should be empty
14364 wlarc='${wl}'
14366 # Set some defaults for GNU ld with shared library support. These
14367 # are reset later if shared libraries are not supported. Putting them
14368 # here allows them to be overridden if necessary.
14369 runpath_var=LD_RUN_PATH
14370 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14371 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14372 # ancient GNU ld didn't support --whole-archive et. al.
14373 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14374 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14375 else
14376 whole_archive_flag_spec_F77=
14378 supports_anon_versioning=no
14379 case `$LD -v 2>/dev/null` in
14380 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14381 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14382 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14383 *\ 2.11.*) ;; # other 2.11 versions
14384 *) supports_anon_versioning=yes ;;
14385 esac
14387 # See if GNU ld supports shared libraries.
14388 case $host_os in
14389 aix3* | aix4* | aix5*)
14390 # On AIX/PPC, the GNU linker is very broken
14391 if test "$host_cpu" != ia64; then
14392 ld_shlibs_F77=no
14393 cat <<EOF 1>&2
14395 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14396 *** to be unable to reliably create shared libraries on AIX.
14397 *** Therefore, libtool is disabling shared libraries support. If you
14398 *** really care for shared libraries, you may want to modify your PATH
14399 *** so that a non-GNU linker is found, and then restart.
14405 amigaos*)
14406 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)'
14407 hardcode_libdir_flag_spec_F77='-L$libdir'
14408 hardcode_minus_L_F77=yes
14410 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14411 # that the semantics of dynamic libraries on AmigaOS, at least up
14412 # to version 4, is to share data among multiple programs linked
14413 # with the same dynamic library. Since this doesn't match the
14414 # behavior of shared libraries on other platforms, we can't use
14415 # them.
14416 ld_shlibs_F77=no
14419 beos*)
14420 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14421 allow_undefined_flag_F77=unsupported
14422 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14423 # support --undefined. This deserves some investigation. FIXME
14424 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14425 else
14426 ld_shlibs_F77=no
14430 cygwin* | mingw* | pw32*)
14431 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14432 # as there is no search path for DLLs.
14433 hardcode_libdir_flag_spec_F77='-L$libdir'
14434 allow_undefined_flag_F77=unsupported
14435 always_export_symbols_F77=no
14436 enable_shared_with_static_runtimes_F77=yes
14437 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14439 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14440 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14441 # If the export-symbols file already is a .def file (1st line
14442 # is EXPORTS), use it as is; otherwise, prepend...
14443 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14444 cp $export_symbols $output_objdir/$soname.def;
14445 else
14446 echo EXPORTS > $output_objdir/$soname.def;
14447 cat $export_symbols >> $output_objdir/$soname.def;
14449 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14450 else
14451 ld_shlibs_F77=no
14455 interix3*)
14456 hardcode_direct_F77=no
14457 hardcode_shlibpath_var_F77=no
14458 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14459 export_dynamic_flag_spec_F77='${wl}-E'
14460 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14461 # Instead, shared libraries are loaded at an image base (0x10000000 by
14462 # default) and relocated if they conflict, which is a slow very memory
14463 # consuming and fragmenting process. To avoid this, we pick a random,
14464 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14465 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14466 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'
14467 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'
14470 linux* | k*bsd*-gnu)
14471 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14472 tmp_addflag=
14473 case $cc_basename,$host_cpu in
14474 pgcc*) # Portland Group C compiler
14475 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'
14476 tmp_addflag=' $pic_flag'
14478 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14479 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'
14480 tmp_addflag=' $pic_flag -Mnomain' ;;
14481 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14482 tmp_addflag=' -i_dynamic' ;;
14483 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14484 tmp_addflag=' -i_dynamic -nofor_main' ;;
14485 ifc* | ifort*) # Intel Fortran compiler
14486 tmp_addflag=' -nofor_main' ;;
14487 esac
14488 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14490 if test $supports_anon_versioning = yes; then
14491 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14493 $echo "local: *; };" >> $output_objdir/$libname.ver~
14494 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14496 link_all_deplibs_F77=no
14497 else
14498 ld_shlibs_F77=no
14502 netbsd* | netbsdelf*-gnu)
14503 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14504 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14505 wlarc=
14506 else
14507 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14508 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14512 solaris*)
14513 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14514 ld_shlibs_F77=no
14515 cat <<EOF 1>&2
14517 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14518 *** create shared libraries on Solaris systems. Therefore, libtool
14519 *** is disabling shared libraries support. We urge you to upgrade GNU
14520 *** binutils to release 2.9.1 or newer. Another option is to modify
14521 *** your PATH or compiler configuration so that the native linker is
14522 *** used, and then restart.
14525 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14526 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14527 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14528 else
14529 ld_shlibs_F77=no
14533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14534 case `$LD -v 2>&1` in
14535 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14536 ld_shlibs_F77=no
14537 cat <<_LT_EOF 1>&2
14539 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14540 *** reliably create shared libraries on SCO systems. Therefore, libtool
14541 *** is disabling shared libraries support. We urge you to upgrade GNU
14542 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14543 *** your PATH or compiler configuration so that the native linker is
14544 *** used, and then restart.
14546 _LT_EOF
14549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14550 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14551 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14552 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14553 else
14554 ld_shlibs_F77=no
14557 esac
14560 sunos4*)
14561 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14562 wlarc=
14563 hardcode_direct_F77=yes
14564 hardcode_shlibpath_var_F77=no
14568 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14569 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14570 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14571 else
14572 ld_shlibs_F77=no
14575 esac
14577 if test "$ld_shlibs_F77" = no; then
14578 runpath_var=
14579 hardcode_libdir_flag_spec_F77=
14580 export_dynamic_flag_spec_F77=
14581 whole_archive_flag_spec_F77=
14583 else
14584 # PORTME fill in a description of your system's linker (not GNU ld)
14585 case $host_os in
14586 aix3*)
14587 allow_undefined_flag_F77=unsupported
14588 always_export_symbols_F77=yes
14589 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'
14590 # Note: this linker hardcodes the directories in LIBPATH if there
14591 # are no directories specified by -L.
14592 hardcode_minus_L_F77=yes
14593 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14594 # Neither direct hardcoding nor static linking is supported with a
14595 # broken collect2.
14596 hardcode_direct_F77=unsupported
14600 aix4* | aix5*)
14601 if test "$host_cpu" = ia64; then
14602 # On IA64, the linker does run time linking by default, so we don't
14603 # have to do anything special.
14604 aix_use_runtimelinking=no
14605 exp_sym_flag='-Bexport'
14606 no_entry_flag=""
14607 else
14608 # If we're using GNU nm, then we don't want the "-C" option.
14609 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14610 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14611 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'
14612 else
14613 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'
14615 aix_use_runtimelinking=no
14617 # Test if we are trying to use run time linking or normal
14618 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14619 # need to do runtime linking.
14620 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14621 for ld_flag in $LDFLAGS; do
14622 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14623 aix_use_runtimelinking=yes
14624 break
14626 done
14628 esac
14630 exp_sym_flag='-bexport'
14631 no_entry_flag='-bnoentry'
14634 # When large executables or shared objects are built, AIX ld can
14635 # have problems creating the table of contents. If linking a library
14636 # or program results in "error TOC overflow" add -mminimal-toc to
14637 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14638 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14640 archive_cmds_F77=''
14641 hardcode_direct_F77=yes
14642 hardcode_libdir_separator_F77=':'
14643 link_all_deplibs_F77=yes
14645 if test "$GCC" = yes; then
14646 case $host_os in aix4.[012]|aix4.[012].*)
14647 # We only want to do this on AIX 4.2 and lower, the check
14648 # below for broken collect2 doesn't work under 4.3+
14649 collect2name=`${CC} -print-prog-name=collect2`
14650 if test -f "$collect2name" && \
14651 strings "$collect2name" | grep resolve_lib_name >/dev/null
14652 then
14653 # We have reworked collect2
14654 hardcode_direct_F77=yes
14655 else
14656 # We have old collect2
14657 hardcode_direct_F77=unsupported
14658 # It fails to find uninstalled libraries when the uninstalled
14659 # path is not listed in the libpath. Setting hardcode_minus_L
14660 # to unsupported forces relinking
14661 hardcode_minus_L_F77=yes
14662 hardcode_libdir_flag_spec_F77='-L$libdir'
14663 hardcode_libdir_separator_F77=
14666 esac
14667 shared_flag='-shared'
14668 if test "$aix_use_runtimelinking" = yes; then
14669 shared_flag="$shared_flag "'${wl}-G'
14671 else
14672 # not using gcc
14673 if test "$host_cpu" = ia64; then
14674 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14675 # chokes on -Wl,-G. The following line is correct:
14676 shared_flag='-G'
14677 else
14678 if test "$aix_use_runtimelinking" = yes; then
14679 shared_flag='${wl}-G'
14680 else
14681 shared_flag='${wl}-bM:SRE'
14686 # It seems that -bexpall does not export symbols beginning with
14687 # underscore (_), so it is better to generate a list of symbols to export.
14688 always_export_symbols_F77=yes
14689 if test "$aix_use_runtimelinking" = yes; then
14690 # Warning - without using the other runtime loading flags (-brtl),
14691 # -berok will link without error, but may produce a broken library.
14692 allow_undefined_flag_F77='-berok'
14693 # Determine the default libpath from the value encoded in an empty executable.
14694 cat >conftest.$ac_ext <<_ACEOF
14695 program main
14698 _ACEOF
14699 rm -f conftest.$ac_objext conftest$ac_exeext
14700 if { (ac_try="$ac_link"
14701 case "(($ac_try" in
14702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14704 esac
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_link") 2>conftest.er1
14707 ac_status=$?
14708 grep -v '^ *+' conftest.er1 >conftest.err
14709 rm -f conftest.er1
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14714 { (case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14717 esac
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_try") 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; } &&
14723 { ac_try='test -s conftest$ac_exeext'
14724 { (case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14727 esac
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_try") 2>&5
14730 ac_status=$?
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; }; then
14734 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14736 # Check for a 64-bit object if we didn't find anything.
14737 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14738 }'`; fi
14739 else
14740 echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14746 rm -f core conftest.err conftest.$ac_objext \
14747 conftest$ac_exeext conftest.$ac_ext
14748 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14750 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14751 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"
14752 else
14753 if test "$host_cpu" = ia64; then
14754 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14755 allow_undefined_flag_F77="-z nodefs"
14756 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"
14757 else
14758 # Determine the default libpath from the value encoded in an empty executable.
14759 cat >conftest.$ac_ext <<_ACEOF
14760 program main
14763 _ACEOF
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (ac_try="$ac_link"
14766 case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_link") 2>conftest.er1
14772 ac_status=$?
14773 grep -v '^ *+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } &&
14778 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782 esac
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest$ac_exeext'
14789 { (case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_try") 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14799 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14801 # Check for a 64-bit object if we didn't find anything.
14802 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14803 }'`; fi
14804 else
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14811 rm -f core conftest.err conftest.$ac_objext \
14812 conftest$ac_exeext conftest.$ac_ext
14813 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14815 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14816 # Warning - without using the other run time loading flags,
14817 # -berok will link without error, but may produce a broken library.
14818 no_undefined_flag_F77=' ${wl}-bernotok'
14819 allow_undefined_flag_F77=' ${wl}-berok'
14820 # Exported symbols can be pulled into shared objects from archives
14821 whole_archive_flag_spec_F77='$convenience'
14822 archive_cmds_need_lc_F77=yes
14823 # This is similar to how AIX traditionally builds its shared libraries.
14824 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'
14829 amigaos*)
14830 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)'
14831 hardcode_libdir_flag_spec_F77='-L$libdir'
14832 hardcode_minus_L_F77=yes
14833 # see comment about different semantics on the GNU ld section
14834 ld_shlibs_F77=no
14837 bsdi[45]*)
14838 export_dynamic_flag_spec_F77=-rdynamic
14841 cygwin* | mingw* | pw32*)
14842 # When not using gcc, we currently assume that we are using
14843 # Microsoft Visual C++.
14844 # hardcode_libdir_flag_spec is actually meaningless, as there is
14845 # no search path for DLLs.
14846 hardcode_libdir_flag_spec_F77=' '
14847 allow_undefined_flag_F77=unsupported
14848 # Tell ltmain to make .lib files, not .a files.
14849 libext=lib
14850 # Tell ltmain to make .dll files, not .so files.
14851 shrext_cmds=".dll"
14852 # FIXME: Setting linknames here is a bad hack.
14853 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14854 # The linker will automatically build a .lib file if we build a DLL.
14855 old_archive_From_new_cmds_F77='true'
14856 # FIXME: Should let the user specify the lib program.
14857 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14858 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14859 enable_shared_with_static_runtimes_F77=yes
14862 darwin* | rhapsody*)
14863 case $host_os in
14864 rhapsody* | darwin1.[012])
14865 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14867 *) # Darwin 1.3 on
14868 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14869 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14870 else
14871 case ${MACOSX_DEPLOYMENT_TARGET} in
14872 10.[012])
14873 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14875 10.*)
14876 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14878 esac
14881 esac
14882 archive_cmds_need_lc_F77=no
14883 hardcode_direct_F77=no
14884 hardcode_automatic_F77=yes
14885 hardcode_shlibpath_var_F77=unsupported
14886 whole_archive_flag_spec_F77=''
14887 link_all_deplibs_F77=yes
14888 if test "$GCC" = yes ; then
14889 output_verbose_link_cmd='echo'
14890 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14891 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14893 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}'
14894 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}'
14895 else
14896 case $cc_basename in
14897 xlc*)
14898 output_verbose_link_cmd='echo'
14899 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14900 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14901 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14902 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}'
14903 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}'
14906 ld_shlibs_F77=no
14908 esac
14912 dgux*)
14913 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14914 hardcode_libdir_flag_spec_F77='-L$libdir'
14915 hardcode_shlibpath_var_F77=no
14918 freebsd1*)
14919 ld_shlibs_F77=no
14922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14923 # support. Future versions do this automatically, but an explicit c++rt0.o
14924 # does not break anything, and helps significantly (at the cost of a little
14925 # extra space).
14926 freebsd2.2*)
14927 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14928 hardcode_libdir_flag_spec_F77='-R$libdir'
14929 hardcode_direct_F77=yes
14930 hardcode_shlibpath_var_F77=no
14933 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14934 freebsd2*)
14935 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14936 hardcode_direct_F77=yes
14937 hardcode_minus_L_F77=yes
14938 hardcode_shlibpath_var_F77=no
14941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14942 freebsd* | dragonfly*)
14943 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14944 hardcode_libdir_flag_spec_F77='-R$libdir'
14945 hardcode_direct_F77=yes
14946 hardcode_shlibpath_var_F77=no
14949 hpux9*)
14950 if test "$GCC" = yes; then
14951 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'
14952 else
14953 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'
14955 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14956 hardcode_libdir_separator_F77=:
14957 hardcode_direct_F77=yes
14959 # hardcode_minus_L: Not really in the search PATH,
14960 # but as the default location of the library.
14961 hardcode_minus_L_F77=yes
14962 export_dynamic_flag_spec_F77='${wl}-E'
14965 hpux10*)
14966 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14967 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14968 else
14969 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14971 if test "$with_gnu_ld" = no; then
14972 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14973 hardcode_libdir_separator_F77=:
14975 hardcode_direct_F77=yes
14976 export_dynamic_flag_spec_F77='${wl}-E'
14978 # hardcode_minus_L: Not really in the search PATH,
14979 # but as the default location of the library.
14980 hardcode_minus_L_F77=yes
14984 hpux11*)
14985 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14986 case $host_cpu in
14987 hppa*64*)
14988 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14990 ia64*)
14991 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14994 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14996 esac
14997 else
14998 case $host_cpu in
14999 hppa*64*)
15000 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15002 ia64*)
15003 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15006 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15008 esac
15010 if test "$with_gnu_ld" = no; then
15011 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15012 hardcode_libdir_separator_F77=:
15014 case $host_cpu in
15015 hppa*64*|ia64*)
15016 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15017 hardcode_direct_F77=no
15018 hardcode_shlibpath_var_F77=no
15021 hardcode_direct_F77=yes
15022 export_dynamic_flag_spec_F77='${wl}-E'
15024 # hardcode_minus_L: Not really in the search PATH,
15025 # but as the default location of the library.
15026 hardcode_minus_L_F77=yes
15028 esac
15032 irix5* | irix6* | nonstopux*)
15033 if test "$GCC" = yes; then
15034 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'
15035 else
15036 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'
15037 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15039 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15040 hardcode_libdir_separator_F77=:
15041 link_all_deplibs_F77=yes
15044 netbsd* | netbsdelf*-gnu)
15045 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15046 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15047 else
15048 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15050 hardcode_libdir_flag_spec_F77='-R$libdir'
15051 hardcode_direct_F77=yes
15052 hardcode_shlibpath_var_F77=no
15055 newsos6)
15056 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15057 hardcode_direct_F77=yes
15058 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15059 hardcode_libdir_separator_F77=:
15060 hardcode_shlibpath_var_F77=no
15063 openbsd*)
15064 hardcode_direct_F77=yes
15065 hardcode_shlibpath_var_F77=no
15066 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15067 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15068 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15069 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15070 export_dynamic_flag_spec_F77='${wl}-E'
15071 else
15072 case $host_os in
15073 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15074 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15075 hardcode_libdir_flag_spec_F77='-R$libdir'
15078 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15079 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15081 esac
15085 os2*)
15086 hardcode_libdir_flag_spec_F77='-L$libdir'
15087 hardcode_minus_L_F77=yes
15088 allow_undefined_flag_F77=unsupported
15089 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'
15090 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15093 osf3*)
15094 if test "$GCC" = yes; then
15095 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15096 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'
15097 else
15098 allow_undefined_flag_F77=' -expect_unresolved \*'
15099 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'
15101 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15102 hardcode_libdir_separator_F77=:
15105 osf4* | osf5*) # as osf3* with the addition of -msym flag
15106 if test "$GCC" = yes; then
15107 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15108 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'
15109 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15110 else
15111 allow_undefined_flag_F77=' -expect_unresolved \*'
15112 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'
15113 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~
15114 $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'
15116 # Both c and cxx compiler support -rpath directly
15117 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15119 hardcode_libdir_separator_F77=:
15122 solaris*)
15123 no_undefined_flag_F77=' -z text'
15124 if test "$GCC" = yes; then
15125 wlarc='${wl}'
15126 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15127 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15128 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15129 else
15130 wlarc=''
15131 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15132 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15133 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15135 hardcode_libdir_flag_spec_F77='-R$libdir'
15136 hardcode_shlibpath_var_F77=no
15137 case $host_os in
15138 solaris2.[0-5] | solaris2.[0-5].*) ;;
15140 # The compiler driver will combine linker options so we
15141 # cannot just pass the convience library names through
15142 # without $wl, iff we do not link with $LD.
15143 # Luckily, gcc supports the same syntax we need for Sun Studio.
15144 # Supported since Solaris 2.6 (maybe 2.5.1?)
15145 case $wlarc in
15147 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15149 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' ;;
15150 esac ;;
15151 esac
15152 link_all_deplibs_F77=yes
15155 sunos4*)
15156 if test "x$host_vendor" = xsequent; then
15157 # Use $CC to link under sequent, because it throws in some extra .o
15158 # files that make .init and .fini sections work.
15159 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15160 else
15161 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15163 hardcode_libdir_flag_spec_F77='-L$libdir'
15164 hardcode_direct_F77=yes
15165 hardcode_minus_L_F77=yes
15166 hardcode_shlibpath_var_F77=no
15169 sysv4)
15170 case $host_vendor in
15171 sni)
15172 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15173 hardcode_direct_F77=yes # is this really true???
15175 siemens)
15176 ## LD is ld it makes a PLAMLIB
15177 ## CC just makes a GrossModule.
15178 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15179 reload_cmds_F77='$CC -r -o $output$reload_objs'
15180 hardcode_direct_F77=no
15182 motorola)
15183 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15184 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15186 esac
15187 runpath_var='LD_RUN_PATH'
15188 hardcode_shlibpath_var_F77=no
15191 sysv4.3*)
15192 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15193 hardcode_shlibpath_var_F77=no
15194 export_dynamic_flag_spec_F77='-Bexport'
15197 sysv4*MP*)
15198 if test -d /usr/nec; then
15199 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15200 hardcode_shlibpath_var_F77=no
15201 runpath_var=LD_RUN_PATH
15202 hardcode_runpath_var=yes
15203 ld_shlibs_F77=yes
15207 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15208 no_undefined_flag_F77='${wl}-z,text'
15209 archive_cmds_need_lc_F77=no
15210 hardcode_shlibpath_var_F77=no
15211 runpath_var='LD_RUN_PATH'
15213 if test "$GCC" = yes; then
15214 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15215 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15216 else
15217 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15218 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15222 sysv5* | sco3.2v5* | sco5v6*)
15223 # Note: We can NOT use -z defs as we might desire, because we do not
15224 # link with -lc, and that would cause any symbols used from libc to
15225 # always be unresolved, which means just about no library would
15226 # ever link correctly. If we're not using GNU ld we use -z text
15227 # though, which does catch some bad symbols but isn't as heavy-handed
15228 # as -z defs.
15229 no_undefined_flag_F77='${wl}-z,text'
15230 allow_undefined_flag_F77='${wl}-z,nodefs'
15231 archive_cmds_need_lc_F77=no
15232 hardcode_shlibpath_var_F77=no
15233 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15234 hardcode_libdir_separator_F77=':'
15235 link_all_deplibs_F77=yes
15236 export_dynamic_flag_spec_F77='${wl}-Bexport'
15237 runpath_var='LD_RUN_PATH'
15239 if test "$GCC" = yes; then
15240 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15241 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15242 else
15243 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15244 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15248 uts4*)
15249 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15250 hardcode_libdir_flag_spec_F77='-L$libdir'
15251 hardcode_shlibpath_var_F77=no
15255 ld_shlibs_F77=no
15257 esac
15260 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15261 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15262 test "$ld_shlibs_F77" = no && can_build_shared=no
15265 # Do we need to explicitly link libc?
15267 case "x$archive_cmds_need_lc_F77" in
15268 x|xyes)
15269 # Assume -lc should be added
15270 archive_cmds_need_lc_F77=yes
15272 if test "$enable_shared" = yes && test "$GCC" = yes; then
15273 case $archive_cmds_F77 in
15274 *'~'*)
15275 # FIXME: we may have to deal with multi-command sequences.
15277 '$CC '*)
15278 # Test whether the compiler implicitly links with -lc since on some
15279 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15280 # to ld, don't add -lc before -lgcc.
15281 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15282 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15283 $rm conftest*
15284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15287 (eval $ac_compile) 2>&5
15288 ac_status=$?
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } 2>conftest.err; then
15291 soname=conftest
15292 lib=conftest
15293 libobjs=conftest.$ac_objext
15294 deplibs=
15295 wl=$lt_prog_compiler_wl_F77
15296 pic_flag=$lt_prog_compiler_pic_F77
15297 compiler_flags=-v
15298 linker_flags=-v
15299 verstring=
15300 output_objdir=.
15301 libname=conftest
15302 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15303 allow_undefined_flag_F77=
15304 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15305 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15306 ac_status=$?
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }
15309 then
15310 archive_cmds_need_lc_F77=no
15311 else
15312 archive_cmds_need_lc_F77=yes
15314 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15315 else
15316 cat conftest.err 1>&5
15318 $rm conftest*
15319 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15320 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15322 esac
15325 esac
15327 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15328 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15329 library_names_spec=
15330 libname_spec='lib$name'
15331 soname_spec=
15332 shrext_cmds=".so"
15333 postinstall_cmds=
15334 postuninstall_cmds=
15335 finish_cmds=
15336 finish_eval=
15337 shlibpath_var=
15338 shlibpath_overrides_runpath=unknown
15339 version_type=none
15340 dynamic_linker="$host_os ld.so"
15341 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15342 if test "$GCC" = yes; then
15343 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15344 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15345 # if the path contains ";" then we assume it to be the separator
15346 # otherwise default to the standard path separator (i.e. ":") - it is
15347 # assumed that no part of a normal pathname contains ";" but that should
15348 # okay in the real world where ";" in dirpaths is itself problematic.
15349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15350 else
15351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15353 else
15354 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15356 need_lib_prefix=unknown
15357 hardcode_into_libs=no
15359 # when you set need_version to no, make sure it does not cause -set_version
15360 # flags to be left without arguments
15361 need_version=unknown
15363 case $host_os in
15364 aix3*)
15365 version_type=linux
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15367 shlibpath_var=LIBPATH
15369 # AIX 3 has no versioning support, so we append a major version to the name.
15370 soname_spec='${libname}${release}${shared_ext}$major'
15373 aix4* | aix5*)
15374 version_type=linux
15375 need_lib_prefix=no
15376 need_version=no
15377 hardcode_into_libs=yes
15378 if test "$host_cpu" = ia64; then
15379 # AIX 5 supports IA64
15380 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15381 shlibpath_var=LD_LIBRARY_PATH
15382 else
15383 # With GCC up to 2.95.x, collect2 would create an import file
15384 # for dependence libraries. The import file would start with
15385 # the line `#! .'. This would cause the generated library to
15386 # depend on `.', always an invalid library. This was fixed in
15387 # development snapshots of GCC prior to 3.0.
15388 case $host_os in
15389 aix4 | aix4.[01] | aix4.[01].*)
15390 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15391 echo ' yes '
15392 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15394 else
15395 can_build_shared=no
15398 esac
15399 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15400 # soname into executable. Probably we can add versioning support to
15401 # collect2, so additional links can be useful in future.
15402 if test "$aix_use_runtimelinking" = yes; then
15403 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15404 # instead of lib<name>.a to let people know that these are not
15405 # typical AIX shared libraries.
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407 else
15408 # We preserve .a as extension for shared libraries through AIX4.2
15409 # and later when we are not doing run time linking.
15410 library_names_spec='${libname}${release}.a $libname.a'
15411 soname_spec='${libname}${release}${shared_ext}$major'
15413 shlibpath_var=LIBPATH
15417 amigaos*)
15418 library_names_spec='$libname.ixlibrary $libname.a'
15419 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15420 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'
15423 beos*)
15424 library_names_spec='${libname}${shared_ext}'
15425 dynamic_linker="$host_os ld.so"
15426 shlibpath_var=LIBRARY_PATH
15429 bsdi[45]*)
15430 version_type=linux
15431 need_version=no
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 soname_spec='${libname}${release}${shared_ext}$major'
15434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15435 shlibpath_var=LD_LIBRARY_PATH
15436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15438 # the default ld.so.conf also contains /usr/contrib/lib and
15439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15440 # libtool to hard-code these into programs
15443 cygwin* | mingw* | pw32*)
15444 version_type=windows
15445 shrext_cmds=".dll"
15446 need_version=no
15447 need_lib_prefix=no
15449 case $GCC,$host_os in
15450 yes,cygwin* | yes,mingw* | yes,pw32*)
15451 library_names_spec='$libname.dll.a'
15452 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15453 postinstall_cmds='base_file=`basename \${file}`~
15454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15455 dldir=$destdir/`dirname \$dlpath`~
15456 test -d \$dldir || mkdir -p \$dldir~
15457 $install_prog $dir/$dlname \$dldir/$dlname~
15458 chmod a+x \$dldir/$dlname'
15459 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15460 dlpath=$dir/\$dldll~
15461 $rm \$dlpath'
15462 shlibpath_overrides_runpath=yes
15464 case $host_os in
15465 cygwin*)
15466 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15467 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15468 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15470 mingw*)
15471 # MinGW DLLs use traditional 'lib' prefix
15472 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15473 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15474 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15475 # It is most probably a Windows format PATH printed by
15476 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15477 # path with ; separators, and with drive letters. We can handle the
15478 # drive letters (cygwin fileutils understands them), so leave them,
15479 # especially as we might pass files found there to a mingw objdump,
15480 # which wouldn't understand a cygwinified path. Ahh.
15481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15482 else
15483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15486 pw32*)
15487 # pw32 DLLs use 'pw' prefix rather than 'lib'
15488 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15490 esac
15494 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15496 esac
15497 dynamic_linker='Win32 ld.exe'
15498 # FIXME: first we should search . and the directory the executable is in
15499 shlibpath_var=PATH
15502 darwin* | rhapsody*)
15503 dynamic_linker="$host_os dyld"
15504 version_type=darwin
15505 need_lib_prefix=no
15506 need_version=no
15507 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15508 soname_spec='${libname}${release}${major}$shared_ext'
15509 shlibpath_overrides_runpath=yes
15510 shlibpath_var=DYLD_LIBRARY_PATH
15511 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15512 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15513 if test "$GCC" = yes; then
15514 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"`
15515 else
15516 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15518 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15521 dgux*)
15522 version_type=linux
15523 need_lib_prefix=no
15524 need_version=no
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 shlibpath_var=LD_LIBRARY_PATH
15530 freebsd1*)
15531 dynamic_linker=no
15534 freebsd* | dragonfly*)
15535 # DragonFly does not have aout. When/if they implement a new
15536 # versioning mechanism, adjust this.
15537 if test -x /usr/bin/objformat; then
15538 objformat=`/usr/bin/objformat`
15539 else
15540 case $host_os in
15541 freebsd[123]*) objformat=aout ;;
15542 *) objformat=elf ;;
15543 esac
15545 version_type=freebsd-$objformat
15546 case $version_type in
15547 freebsd-elf*)
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15549 need_version=no
15550 need_lib_prefix=no
15552 freebsd-*)
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15554 need_version=yes
15556 esac
15557 shlibpath_var=LD_LIBRARY_PATH
15558 case $host_os in
15559 freebsd2*)
15560 shlibpath_overrides_runpath=yes
15562 freebsd3.[01]* | freebsdelf3.[01]*)
15563 shlibpath_overrides_runpath=yes
15564 hardcode_into_libs=yes
15566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15568 shlibpath_overrides_runpath=no
15569 hardcode_into_libs=yes
15571 freebsd*) # from 4.6 on
15572 shlibpath_overrides_runpath=yes
15573 hardcode_into_libs=yes
15575 esac
15578 gnu*)
15579 version_type=linux
15580 need_lib_prefix=no
15581 need_version=no
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15583 soname_spec='${libname}${release}${shared_ext}$major'
15584 shlibpath_var=LD_LIBRARY_PATH
15585 hardcode_into_libs=yes
15588 hpux9* | hpux10* | hpux11*)
15589 # Give a soname corresponding to the major version so that dld.sl refuses to
15590 # link against other versions.
15591 version_type=sunos
15592 need_lib_prefix=no
15593 need_version=no
15594 case $host_cpu in
15595 ia64*)
15596 shrext_cmds='.so'
15597 hardcode_into_libs=yes
15598 dynamic_linker="$host_os dld.so"
15599 shlibpath_var=LD_LIBRARY_PATH
15600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 if test "X$HPUX_IA64_MODE" = X32; then
15604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15605 else
15606 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15610 hppa*64*)
15611 shrext_cmds='.sl'
15612 hardcode_into_libs=yes
15613 dynamic_linker="$host_os dld.sl"
15614 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 soname_spec='${libname}${release}${shared_ext}$major'
15618 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15622 shrext_cmds='.sl'
15623 dynamic_linker="$host_os dld.sl"
15624 shlibpath_var=SHLIB_PATH
15625 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15629 esac
15630 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15631 postinstall_cmds='chmod 555 $lib'
15634 interix3*)
15635 version_type=linux
15636 need_lib_prefix=no
15637 need_version=no
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15639 soname_spec='${libname}${release}${shared_ext}$major'
15640 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15641 shlibpath_var=LD_LIBRARY_PATH
15642 shlibpath_overrides_runpath=no
15643 hardcode_into_libs=yes
15646 irix5* | irix6* | nonstopux*)
15647 case $host_os in
15648 nonstopux*) version_type=nonstopux ;;
15650 if test "$lt_cv_prog_gnu_ld" = yes; then
15651 version_type=linux
15652 else
15653 version_type=irix
15654 fi ;;
15655 esac
15656 need_lib_prefix=no
15657 need_version=no
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15660 case $host_os in
15661 irix5* | nonstopux*)
15662 libsuff= shlibsuff=
15665 case $LD in # libtool.m4 will add one of these switches to LD
15666 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15667 libsuff= shlibsuff= libmagic=32-bit;;
15668 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15669 libsuff=32 shlibsuff=N32 libmagic=N32;;
15670 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15671 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15672 *) libsuff= shlibsuff= libmagic=never-match;;
15673 esac
15675 esac
15676 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15677 shlibpath_overrides_runpath=no
15678 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15679 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15680 hardcode_into_libs=yes
15683 # No shared lib support for Linux oldld, aout, or coff.
15684 linux*oldld* | linux*aout* | linux*coff*)
15685 dynamic_linker=no
15688 # This must be Linux ELF.
15689 linux* | k*bsd*-gnu)
15690 version_type=linux
15691 need_lib_prefix=no
15692 need_version=no
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15694 soname_spec='${libname}${release}${shared_ext}$major'
15695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15696 shlibpath_var=LD_LIBRARY_PATH
15697 shlibpath_overrides_runpath=no
15698 # This implies no fast_install, which is unacceptable.
15699 # Some rework will be needed to allow for fast_install
15700 # before this can be enabled.
15701 hardcode_into_libs=yes
15703 # Append ld.so.conf contents to the search path
15704 if test -f /etc/ld.so.conf; then
15705 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' ' '`
15706 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15709 # We used to test for /lib/ld.so.1 and disable shared libraries on
15710 # powerpc, because MkLinux only supported shared libraries with the
15711 # GNU dynamic linker. Since this was broken with cross compilers,
15712 # most powerpc-linux boxes support dynamic linking these days and
15713 # people can always --disable-shared, the test was removed, and we
15714 # assume the GNU/Linux dynamic linker is in use.
15715 dynamic_linker='GNU/Linux ld.so'
15718 netbsdelf*-gnu)
15719 version_type=linux
15720 need_lib_prefix=no
15721 need_version=no
15722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15723 soname_spec='${libname}${release}${shared_ext}$major'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 shlibpath_overrides_runpath=no
15726 hardcode_into_libs=yes
15727 dynamic_linker='NetBSD ld.elf_so'
15730 netbsd*)
15731 version_type=sunos
15732 need_lib_prefix=no
15733 need_version=no
15734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15737 dynamic_linker='NetBSD (a.out) ld.so'
15738 else
15739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15740 soname_spec='${libname}${release}${shared_ext}$major'
15741 dynamic_linker='NetBSD ld.elf_so'
15743 shlibpath_var=LD_LIBRARY_PATH
15744 shlibpath_overrides_runpath=yes
15745 hardcode_into_libs=yes
15748 newsos6)
15749 version_type=linux
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751 shlibpath_var=LD_LIBRARY_PATH
15752 shlibpath_overrides_runpath=yes
15755 nto-qnx*)
15756 version_type=linux
15757 need_lib_prefix=no
15758 need_version=no
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath=yes
15765 openbsd*)
15766 version_type=sunos
15767 sys_lib_dlsearch_path_spec="/usr/lib"
15768 need_lib_prefix=no
15769 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15770 case $host_os in
15771 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15772 *) need_version=no ;;
15773 esac
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15776 shlibpath_var=LD_LIBRARY_PATH
15777 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15778 case $host_os in
15779 openbsd2.[89] | openbsd2.[89].*)
15780 shlibpath_overrides_runpath=no
15783 shlibpath_overrides_runpath=yes
15785 esac
15786 else
15787 shlibpath_overrides_runpath=yes
15791 os2*)
15792 libname_spec='$name'
15793 shrext_cmds=".dll"
15794 need_lib_prefix=no
15795 library_names_spec='$libname${shared_ext} $libname.a'
15796 dynamic_linker='OS/2 ld.exe'
15797 shlibpath_var=LIBPATH
15800 osf3* | osf4* | osf5*)
15801 version_type=osf
15802 need_lib_prefix=no
15803 need_version=no
15804 soname_spec='${libname}${release}${shared_ext}$major'
15805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15806 shlibpath_var=LD_LIBRARY_PATH
15807 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15808 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15811 solaris*)
15812 version_type=linux
15813 need_lib_prefix=no
15814 need_version=no
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15816 soname_spec='${libname}${release}${shared_ext}$major'
15817 shlibpath_var=LD_LIBRARY_PATH
15818 shlibpath_overrides_runpath=yes
15819 hardcode_into_libs=yes
15820 # ldd complains unless libraries are executable
15821 postinstall_cmds='chmod +x $lib'
15824 sunos4*)
15825 version_type=sunos
15826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15827 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15828 shlibpath_var=LD_LIBRARY_PATH
15829 shlibpath_overrides_runpath=yes
15830 if test "$with_gnu_ld" = yes; then
15831 need_lib_prefix=no
15833 need_version=yes
15836 sysv4 | sysv4.3*)
15837 version_type=linux
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839 soname_spec='${libname}${release}${shared_ext}$major'
15840 shlibpath_var=LD_LIBRARY_PATH
15841 case $host_vendor in
15842 sni)
15843 shlibpath_overrides_runpath=no
15844 need_lib_prefix=no
15845 export_dynamic_flag_spec='${wl}-Blargedynsym'
15846 runpath_var=LD_RUN_PATH
15848 siemens)
15849 need_lib_prefix=no
15851 motorola)
15852 need_lib_prefix=no
15853 need_version=no
15854 shlibpath_overrides_runpath=no
15855 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15857 esac
15860 sysv4*MP*)
15861 if test -d /usr/nec ;then
15862 version_type=linux
15863 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15864 soname_spec='$libname${shared_ext}.$major'
15865 shlibpath_var=LD_LIBRARY_PATH
15869 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15870 version_type=freebsd-elf
15871 need_lib_prefix=no
15872 need_version=no
15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15874 soname_spec='${libname}${release}${shared_ext}$major'
15875 shlibpath_var=LD_LIBRARY_PATH
15876 hardcode_into_libs=yes
15877 if test "$with_gnu_ld" = yes; then
15878 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15879 shlibpath_overrides_runpath=no
15880 else
15881 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15882 shlibpath_overrides_runpath=yes
15883 case $host_os in
15884 sco3.2v5*)
15885 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15887 esac
15889 sys_lib_dlsearch_path_spec='/usr/lib'
15892 uts4*)
15893 version_type=linux
15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15895 soname_spec='${libname}${release}${shared_ext}$major'
15896 shlibpath_var=LD_LIBRARY_PATH
15900 dynamic_linker=no
15902 esac
15903 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15904 echo "${ECHO_T}$dynamic_linker" >&6; }
15905 test "$dynamic_linker" = no && can_build_shared=no
15907 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15908 if test "$GCC" = yes; then
15909 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15912 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15913 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15914 hardcode_action_F77=
15915 if test -n "$hardcode_libdir_flag_spec_F77" || \
15916 test -n "$runpath_var_F77" || \
15917 test "X$hardcode_automatic_F77" = "Xyes" ; then
15919 # We can hardcode non-existant directories.
15920 if test "$hardcode_direct_F77" != no &&
15921 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15922 # have to relink, otherwise we might link with an installed library
15923 # when we should be linking with a yet-to-be-installed one
15924 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15925 test "$hardcode_minus_L_F77" != no; then
15926 # Linking always hardcodes the temporary library directory.
15927 hardcode_action_F77=relink
15928 else
15929 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15930 hardcode_action_F77=immediate
15932 else
15933 # We cannot hardcode anything, or else we can only hardcode existing
15934 # directories.
15935 hardcode_action_F77=unsupported
15937 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15938 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15940 if test "$hardcode_action_F77" = relink; then
15941 # Fast installation is not supported
15942 enable_fast_install=no
15943 elif test "$shlibpath_overrides_runpath" = yes ||
15944 test "$enable_shared" = no; then
15945 # Fast installation is not necessary
15946 enable_fast_install=needless
15950 # The else clause should only fire when bootstrapping the
15951 # libtool distribution, otherwise you forgot to ship ltmain.sh
15952 # with your package, and you will get complaints that there are
15953 # no rules to generate ltmain.sh.
15954 if test -f "$ltmain"; then
15955 # See if we are running on zsh, and set the options which allow our commands through
15956 # without removal of \ escapes.
15957 if test -n "${ZSH_VERSION+set}" ; then
15958 setopt NO_GLOB_SUBST
15960 # Now quote all the things that may contain metacharacters while being
15961 # careful not to overquote the AC_SUBSTed values. We take copies of the
15962 # variables and quote the copies for generation of the libtool script.
15963 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15964 SED SHELL STRIP \
15965 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15966 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15967 deplibs_check_method reload_flag reload_cmds need_locks \
15968 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15969 lt_cv_sys_global_symbol_to_c_name_address \
15970 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15971 old_postinstall_cmds old_postuninstall_cmds \
15972 compiler_F77 \
15973 CC_F77 \
15974 LD_F77 \
15975 lt_prog_compiler_wl_F77 \
15976 lt_prog_compiler_pic_F77 \
15977 lt_prog_compiler_static_F77 \
15978 lt_prog_compiler_no_builtin_flag_F77 \
15979 export_dynamic_flag_spec_F77 \
15980 thread_safe_flag_spec_F77 \
15981 whole_archive_flag_spec_F77 \
15982 enable_shared_with_static_runtimes_F77 \
15983 old_archive_cmds_F77 \
15984 old_archive_from_new_cmds_F77 \
15985 predep_objects_F77 \
15986 postdep_objects_F77 \
15987 predeps_F77 \
15988 postdeps_F77 \
15989 compiler_lib_search_path_F77 \
15990 archive_cmds_F77 \
15991 archive_expsym_cmds_F77 \
15992 postinstall_cmds_F77 \
15993 postuninstall_cmds_F77 \
15994 old_archive_from_expsyms_cmds_F77 \
15995 allow_undefined_flag_F77 \
15996 no_undefined_flag_F77 \
15997 export_symbols_cmds_F77 \
15998 hardcode_libdir_flag_spec_F77 \
15999 hardcode_libdir_flag_spec_ld_F77 \
16000 hardcode_libdir_separator_F77 \
16001 hardcode_automatic_F77 \
16002 module_cmds_F77 \
16003 module_expsym_cmds_F77 \
16004 lt_cv_prog_compiler_c_o_F77 \
16005 exclude_expsyms_F77 \
16006 include_expsyms_F77; do
16008 case $var in
16009 old_archive_cmds_F77 | \
16010 old_archive_from_new_cmds_F77 | \
16011 archive_cmds_F77 | \
16012 archive_expsym_cmds_F77 | \
16013 module_cmds_F77 | \
16014 module_expsym_cmds_F77 | \
16015 old_archive_from_expsyms_cmds_F77 | \
16016 export_symbols_cmds_F77 | \
16017 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16018 postinstall_cmds | postuninstall_cmds | \
16019 old_postinstall_cmds | old_postuninstall_cmds | \
16020 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16021 # Double-quote double-evaled strings.
16022 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16027 esac
16028 done
16030 case $lt_echo in
16031 *'\$0 --fallback-echo"')
16032 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16034 esac
16036 cfgfile="$ofile"
16038 cat <<__EOF__ >> "$cfgfile"
16039 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16041 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16043 # Shell to use when invoking shell scripts.
16044 SHELL=$lt_SHELL
16046 # Whether or not to build shared libraries.
16047 build_libtool_libs=$enable_shared
16049 # Whether or not to build static libraries.
16050 build_old_libs=$enable_static
16052 # Whether or not to add -lc for building shared libraries.
16053 build_libtool_need_lc=$archive_cmds_need_lc_F77
16055 # Whether or not to disallow shared libs when runtime libs are static
16056 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16058 # Whether or not to optimize for fast installation.
16059 fast_install=$enable_fast_install
16061 # The host system.
16062 host_alias=$host_alias
16063 host=$host
16064 host_os=$host_os
16066 # The build system.
16067 build_alias=$build_alias
16068 build=$build
16069 build_os=$build_os
16071 # An echo program that does not interpret backslashes.
16072 echo=$lt_echo
16074 # The archiver.
16075 AR=$lt_AR
16076 AR_FLAGS=$lt_AR_FLAGS
16078 # A C compiler.
16079 LTCC=$lt_LTCC
16081 # LTCC compiler flags.
16082 LTCFLAGS=$lt_LTCFLAGS
16084 # A language-specific compiler.
16085 CC=$lt_compiler_F77
16087 # Is the compiler the GNU C compiler?
16088 with_gcc=$GCC_F77
16090 # An ERE matcher.
16091 EGREP=$lt_EGREP
16093 # The linker used to build libraries.
16094 LD=$lt_LD_F77
16096 # Whether we need hard or soft links.
16097 LN_S=$lt_LN_S
16099 # A BSD-compatible nm program.
16100 NM=$lt_NM
16102 # A symbol stripping program
16103 STRIP=$lt_STRIP
16105 # Used to examine libraries when file_magic_cmd begins "file"
16106 MAGIC_CMD=$MAGIC_CMD
16108 # Used on cygwin: DLL creation program.
16109 DLLTOOL="$DLLTOOL"
16111 # Used on cygwin: object dumper.
16112 OBJDUMP="$OBJDUMP"
16114 # Used on cygwin: assembler.
16115 AS="$AS"
16117 # The name of the directory that contains temporary libtool files.
16118 objdir=$objdir
16120 # How to create reloadable object files.
16121 reload_flag=$lt_reload_flag
16122 reload_cmds=$lt_reload_cmds
16124 # How to pass a linker flag through the compiler.
16125 wl=$lt_lt_prog_compiler_wl_F77
16127 # Object file suffix (normally "o").
16128 objext="$ac_objext"
16130 # Old archive suffix (normally "a").
16131 libext="$libext"
16133 # Shared library suffix (normally ".so").
16134 shrext_cmds='$shrext_cmds'
16136 # Executable file suffix (normally "").
16137 exeext="$exeext"
16139 # Additional compiler flags for building library objects.
16140 pic_flag=$lt_lt_prog_compiler_pic_F77
16141 pic_mode=$pic_mode
16143 # What is the maximum length of a command?
16144 max_cmd_len=$lt_cv_sys_max_cmd_len
16146 # Does compiler simultaneously support -c and -o options?
16147 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16149 # Must we lock files when doing compilation?
16150 need_locks=$lt_need_locks
16152 # Do we need the lib prefix for modules?
16153 need_lib_prefix=$need_lib_prefix
16155 # Do we need a version for libraries?
16156 need_version=$need_version
16158 # Whether dlopen is supported.
16159 dlopen_support=$enable_dlopen
16161 # Whether dlopen of programs is supported.
16162 dlopen_self=$enable_dlopen_self
16164 # Whether dlopen of statically linked programs is supported.
16165 dlopen_self_static=$enable_dlopen_self_static
16167 # Compiler flag to prevent dynamic linking.
16168 link_static_flag=$lt_lt_prog_compiler_static_F77
16170 # Compiler flag to turn off builtin functions.
16171 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16173 # Compiler flag to allow reflexive dlopens.
16174 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16176 # Compiler flag to generate shared objects directly from archives.
16177 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16179 # Compiler flag to generate thread-safe objects.
16180 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16182 # Library versioning type.
16183 version_type=$version_type
16185 # Format of library name prefix.
16186 libname_spec=$lt_libname_spec
16188 # List of archive names. First name is the real one, the rest are links.
16189 # The last name is the one that the linker finds with -lNAME.
16190 library_names_spec=$lt_library_names_spec
16192 # The coded name of the library, if different from the real name.
16193 soname_spec=$lt_soname_spec
16195 # Commands used to build and install an old-style archive.
16196 RANLIB=$lt_RANLIB
16197 old_archive_cmds=$lt_old_archive_cmds_F77
16198 old_postinstall_cmds=$lt_old_postinstall_cmds
16199 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16201 # Create an old-style archive from a shared archive.
16202 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16204 # Create a temporary old-style archive to link instead of a shared archive.
16205 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16207 # Commands used to build and install a shared archive.
16208 archive_cmds=$lt_archive_cmds_F77
16209 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16210 postinstall_cmds=$lt_postinstall_cmds
16211 postuninstall_cmds=$lt_postuninstall_cmds
16213 # Commands used to build a loadable module (assumed same as above if empty)
16214 module_cmds=$lt_module_cmds_F77
16215 module_expsym_cmds=$lt_module_expsym_cmds_F77
16217 # Commands to strip libraries.
16218 old_striplib=$lt_old_striplib
16219 striplib=$lt_striplib
16221 # Dependencies to place before the objects being linked to create a
16222 # shared library.
16223 predep_objects=$lt_predep_objects_F77
16225 # Dependencies to place after the objects being linked to create a
16226 # shared library.
16227 postdep_objects=$lt_postdep_objects_F77
16229 # Dependencies to place before the objects being linked to create a
16230 # shared library.
16231 predeps=$lt_predeps_F77
16233 # Dependencies to place after the objects being linked to create a
16234 # shared library.
16235 postdeps=$lt_postdeps_F77
16237 # The library search path used internally by the compiler when linking
16238 # a shared library.
16239 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16241 # Method to check whether dependent libraries are shared objects.
16242 deplibs_check_method=$lt_deplibs_check_method
16244 # Command to use when deplibs_check_method == file_magic.
16245 file_magic_cmd=$lt_file_magic_cmd
16247 # Flag that allows shared libraries with undefined symbols to be built.
16248 allow_undefined_flag=$lt_allow_undefined_flag_F77
16250 # Flag that forces no undefined symbols.
16251 no_undefined_flag=$lt_no_undefined_flag_F77
16253 # Commands used to finish a libtool library installation in a directory.
16254 finish_cmds=$lt_finish_cmds
16256 # Same as above, but a single script fragment to be evaled but not shown.
16257 finish_eval=$lt_finish_eval
16259 # Take the output of nm and produce a listing of raw symbols and C names.
16260 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16262 # Transform the output of nm in a proper C declaration
16263 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16265 # Transform the output of nm in a C name address pair
16266 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16268 # This is the shared library runtime path variable.
16269 runpath_var=$runpath_var
16271 # This is the shared library path variable.
16272 shlibpath_var=$shlibpath_var
16274 # Is shlibpath searched before the hard-coded library search path?
16275 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16277 # How to hardcode a shared library path into an executable.
16278 hardcode_action=$hardcode_action_F77
16280 # Whether we should hardcode library paths into libraries.
16281 hardcode_into_libs=$hardcode_into_libs
16283 # Flag to hardcode \$libdir into a binary during linking.
16284 # This must work even if \$libdir does not exist.
16285 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16287 # If ld is used when linking, flag to hardcode \$libdir into
16288 # a binary during linking. This must work even if \$libdir does
16289 # not exist.
16290 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16292 # Whether we need a single -rpath flag with a separated argument.
16293 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16295 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16296 # resulting binary.
16297 hardcode_direct=$hardcode_direct_F77
16299 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16300 # resulting binary.
16301 hardcode_minus_L=$hardcode_minus_L_F77
16303 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16304 # the resulting binary.
16305 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16307 # Set to yes if building a shared library automatically hardcodes DIR into the library
16308 # and all subsequent libraries and executables linked against it.
16309 hardcode_automatic=$hardcode_automatic_F77
16311 # Variables whose values should be saved in libtool wrapper scripts and
16312 # restored at relink time.
16313 variables_saved_for_relink="$variables_saved_for_relink"
16315 # Whether libtool must link a program against all its dependency libraries.
16316 link_all_deplibs=$link_all_deplibs_F77
16318 # Compile-time system search path for libraries
16319 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16321 # Run-time system search path for libraries
16322 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16324 # Fix the shell variable \$srcfile for the compiler.
16325 fix_srcfile_path="$fix_srcfile_path_F77"
16327 # Set to yes if exported symbols are required.
16328 always_export_symbols=$always_export_symbols_F77
16330 # The commands to list exported symbols.
16331 export_symbols_cmds=$lt_export_symbols_cmds_F77
16333 # The commands to extract the exported symbol list from a shared archive.
16334 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16336 # Symbols that should not be listed in the preloaded symbols.
16337 exclude_expsyms=$lt_exclude_expsyms_F77
16339 # Symbols that must always be exported.
16340 include_expsyms=$lt_include_expsyms_F77
16342 # ### END LIBTOOL TAG CONFIG: $tagname
16344 __EOF__
16347 else
16348 # If there is no Makefile yet, we rely on a make rule to execute
16349 # `config.status --recheck' to rerun these tests and create the
16350 # libtool script then.
16351 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16352 if test -f "$ltmain_in"; then
16353 test -f Makefile && make "$ltmain"
16358 ac_ext=c
16359 ac_cpp='$CPP $CPPFLAGS'
16360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16364 CC="$lt_save_CC"
16366 else
16367 tagname=""
16371 GCJ)
16372 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16375 # Source file extension for Java test sources.
16376 ac_ext=java
16378 # Object file extension for compiled Java test sources.
16379 objext=o
16380 objext_GCJ=$objext
16382 # Code to be used in simple compile tests
16383 lt_simple_compile_test_code="class foo {}\n"
16385 # Code to be used in simple link tests
16386 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16388 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16390 # If no C compiler was specified, use CC.
16391 LTCC=${LTCC-"$CC"}
16393 # If no C compiler flags were specified, use CFLAGS.
16394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16396 # Allow CC to be a program name with arguments.
16397 compiler=$CC
16400 # save warnings/boilerplate of simple test code
16401 ac_outfile=conftest.$ac_objext
16402 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16404 _lt_compiler_boilerplate=`cat conftest.err`
16405 $rm conftest*
16407 ac_outfile=conftest.$ac_objext
16408 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16410 _lt_linker_boilerplate=`cat conftest.err`
16411 $rm conftest*
16414 # Allow CC to be a program name with arguments.
16415 lt_save_CC="$CC"
16416 CC=${GCJ-"gcj"}
16417 compiler=$CC
16418 compiler_GCJ=$CC
16419 for cc_temp in $compiler""; do
16420 case $cc_temp in
16421 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16422 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16423 \-*) ;;
16424 *) break;;
16425 esac
16426 done
16427 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16430 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16431 archive_cmds_need_lc_GCJ=no
16433 old_archive_cmds_GCJ=$old_archive_cmds
16436 lt_prog_compiler_no_builtin_flag_GCJ=
16438 if test "$GCC" = yes; then
16439 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16442 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16443 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16444 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 else
16447 lt_cv_prog_compiler_rtti_exceptions=no
16448 ac_outfile=conftest.$ac_objext
16449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16450 lt_compiler_flag="-fno-rtti -fno-exceptions"
16451 # Insert the option either (1) after the last *FLAGS variable, or
16452 # (2) before a word containing "conftest.", or (3) at the end.
16453 # Note that $ac_compile itself does not contain backslashes and begins
16454 # with a dollar sign (not a hyphen), so the echo should work correctly.
16455 # The option is referenced via a variable to avoid confusing sed.
16456 lt_compile=`echo "$ac_compile" | $SED \
16457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16459 -e 's:$: $lt_compiler_flag:'`
16460 (eval echo "\"\$as_me:16460: $lt_compile\"" >&5)
16461 (eval "$lt_compile" 2>conftest.err)
16462 ac_status=$?
16463 cat conftest.err >&5
16464 echo "$as_me:16464: \$? = $ac_status" >&5
16465 if (exit $ac_status) && test -s "$ac_outfile"; then
16466 # The compiler can only warn and ignore the option if not recognized
16467 # So say no if there are warnings other than the usual output.
16468 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16471 lt_cv_prog_compiler_rtti_exceptions=yes
16474 $rm conftest*
16477 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16478 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16480 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16481 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16482 else
16488 lt_prog_compiler_wl_GCJ=
16489 lt_prog_compiler_pic_GCJ=
16490 lt_prog_compiler_static_GCJ=
16492 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16493 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16495 if test "$GCC" = yes; then
16496 lt_prog_compiler_wl_GCJ='-Wl,'
16497 lt_prog_compiler_static_GCJ='-static'
16499 case $host_os in
16500 aix*)
16501 # All AIX code is PIC.
16502 if test "$host_cpu" = ia64; then
16503 # AIX 5 now supports IA64 processor
16504 lt_prog_compiler_static_GCJ='-Bstatic'
16508 amigaos*)
16509 # FIXME: we need at least 68020 code to build shared libraries, but
16510 # adding the `-m68020' flag to GCC prevents building anything better,
16511 # like `-m68040'.
16512 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16515 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16516 # PIC is the default for these OSes.
16519 mingw* | pw32* | os2*)
16520 # This hack is so that the source file can tell whether it is being
16521 # built for inclusion in a dll (and should export symbols for example).
16522 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16525 darwin* | rhapsody*)
16526 # PIC is the default on this platform
16527 # Common symbols not allowed in MH_DYLIB files
16528 lt_prog_compiler_pic_GCJ='-fno-common'
16531 interix3*)
16532 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16533 # Instead, we relocate shared libraries at runtime.
16536 msdosdjgpp*)
16537 # Just because we use GCC doesn't mean we suddenly get shared libraries
16538 # on systems that don't support them.
16539 lt_prog_compiler_can_build_shared_GCJ=no
16540 enable_shared=no
16543 sysv4*MP*)
16544 if test -d /usr/nec; then
16545 lt_prog_compiler_pic_GCJ=-Kconform_pic
16549 hpux*)
16550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16551 # not for PA HP-UX.
16552 case $host_cpu in
16553 hppa*64*|ia64*)
16554 # +Z the default
16557 lt_prog_compiler_pic_GCJ='-fPIC'
16559 esac
16563 lt_prog_compiler_pic_GCJ='-fPIC'
16565 esac
16566 else
16567 # PORTME Check for flag to pass linker flags through the system compiler.
16568 case $host_os in
16569 aix*)
16570 lt_prog_compiler_wl_GCJ='-Wl,'
16571 if test "$host_cpu" = ia64; then
16572 # AIX 5 now supports IA64 processor
16573 lt_prog_compiler_static_GCJ='-Bstatic'
16574 else
16575 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16578 darwin*)
16579 # PIC is the default on this platform
16580 # Common symbols not allowed in MH_DYLIB files
16581 case $cc_basename in
16582 xlc*)
16583 lt_prog_compiler_pic_GCJ='-qnocommon'
16584 lt_prog_compiler_wl_GCJ='-Wl,'
16586 esac
16589 mingw* | pw32* | os2*)
16590 # This hack is so that the source file can tell whether it is being
16591 # built for inclusion in a dll (and should export symbols for example).
16592 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16595 hpux9* | hpux10* | hpux11*)
16596 lt_prog_compiler_wl_GCJ='-Wl,'
16597 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16598 # not for PA HP-UX.
16599 case $host_cpu in
16600 hppa*64*|ia64*)
16601 # +Z the default
16604 lt_prog_compiler_pic_GCJ='+Z'
16606 esac
16607 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16608 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16611 irix5* | irix6* | nonstopux*)
16612 lt_prog_compiler_wl_GCJ='-Wl,'
16613 # PIC (with -KPIC) is the default.
16614 lt_prog_compiler_static_GCJ='-non_shared'
16617 newsos6)
16618 lt_prog_compiler_pic_GCJ='-KPIC'
16619 lt_prog_compiler_static_GCJ='-Bstatic'
16622 linux* | k*bsd*-gnu)
16623 case $cc_basename in
16624 icc* | ecc*)
16625 lt_prog_compiler_wl_GCJ='-Wl,'
16626 lt_prog_compiler_pic_GCJ='-KPIC'
16627 lt_prog_compiler_static_GCJ='-static'
16629 pgcc* | pgf77* | pgf90* | pgf95*)
16630 # Portland Group compilers (*not* the Pentium gcc compiler,
16631 # which looks to be a dead project)
16632 lt_prog_compiler_wl_GCJ='-Wl,'
16633 lt_prog_compiler_pic_GCJ='-fpic'
16634 lt_prog_compiler_static_GCJ='-Bstatic'
16636 ccc*)
16637 lt_prog_compiler_wl_GCJ='-Wl,'
16638 # All Alpha code is PIC.
16639 lt_prog_compiler_static_GCJ='-non_shared'
16641 esac
16644 osf3* | osf4* | osf5*)
16645 lt_prog_compiler_wl_GCJ='-Wl,'
16646 # All OSF/1 code is PIC.
16647 lt_prog_compiler_static_GCJ='-non_shared'
16650 solaris*)
16651 lt_prog_compiler_pic_GCJ='-KPIC'
16652 lt_prog_compiler_static_GCJ='-Bstatic'
16653 case $cc_basename in
16654 f77* | f90* | f95*)
16655 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16657 lt_prog_compiler_wl_GCJ='-Wl,';;
16658 esac
16661 sunos4*)
16662 lt_prog_compiler_wl_GCJ='-Qoption ld '
16663 lt_prog_compiler_pic_GCJ='-PIC'
16664 lt_prog_compiler_static_GCJ='-Bstatic'
16667 sysv4 | sysv4.2uw2* | sysv4.3*)
16668 lt_prog_compiler_wl_GCJ='-Wl,'
16669 lt_prog_compiler_pic_GCJ='-KPIC'
16670 lt_prog_compiler_static_GCJ='-Bstatic'
16673 sysv4*MP*)
16674 if test -d /usr/nec ;then
16675 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16676 lt_prog_compiler_static_GCJ='-Bstatic'
16680 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16681 lt_prog_compiler_wl_GCJ='-Wl,'
16682 lt_prog_compiler_pic_GCJ='-KPIC'
16683 lt_prog_compiler_static_GCJ='-Bstatic'
16686 unicos*)
16687 lt_prog_compiler_wl_GCJ='-Wl,'
16688 lt_prog_compiler_can_build_shared_GCJ=no
16691 uts4*)
16692 lt_prog_compiler_pic_GCJ='-pic'
16693 lt_prog_compiler_static_GCJ='-Bstatic'
16697 lt_prog_compiler_can_build_shared_GCJ=no
16699 esac
16702 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16703 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16706 # Check to make sure the PIC flag actually works.
16708 if test -n "$lt_prog_compiler_pic_GCJ"; then
16710 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16711 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16712 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 else
16715 lt_prog_compiler_pic_works_GCJ=no
16716 ac_outfile=conftest.$ac_objext
16717 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16718 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16719 # Insert the option either (1) after the last *FLAGS variable, or
16720 # (2) before a word containing "conftest.", or (3) at the end.
16721 # Note that $ac_compile itself does not contain backslashes and begins
16722 # with a dollar sign (not a hyphen), so the echo should work correctly.
16723 # The option is referenced via a variable to avoid confusing sed.
16724 lt_compile=`echo "$ac_compile" | $SED \
16725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16727 -e 's:$: $lt_compiler_flag:'`
16728 (eval echo "\"\$as_me:16728: $lt_compile\"" >&5)
16729 (eval "$lt_compile" 2>conftest.err)
16730 ac_status=$?
16731 cat conftest.err >&5
16732 echo "$as_me:16732: \$? = $ac_status" >&5
16733 if (exit $ac_status) && test -s "$ac_outfile"; then
16734 # The compiler can only warn and ignore the option if not recognized
16735 # So say no if there are warnings other than the usual output.
16736 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16739 lt_prog_compiler_pic_works_GCJ=yes
16742 $rm conftest*
16745 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16746 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16748 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16749 case $lt_prog_compiler_pic_GCJ in
16750 "" | " "*) ;;
16751 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16752 esac
16753 else
16754 lt_prog_compiler_pic_GCJ=
16755 lt_prog_compiler_can_build_shared_GCJ=no
16759 case $host_os in
16760 # For platforms which do not support PIC, -DPIC is meaningless:
16761 *djgpp*)
16762 lt_prog_compiler_pic_GCJ=
16765 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16767 esac
16770 # Check to make sure the static flag actually works.
16772 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16773 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16774 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16775 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
16777 else
16778 lt_prog_compiler_static_works_GCJ=no
16779 save_LDFLAGS="$LDFLAGS"
16780 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16781 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16783 # The linker can only warn and ignore the option if not recognized
16784 # So say no if there are warnings
16785 if test -s conftest.err; then
16786 # Append any errors to the config.log.
16787 cat conftest.err 1>&5
16788 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16790 if diff conftest.exp conftest.er2 >/dev/null; then
16791 lt_prog_compiler_static_works_GCJ=yes
16793 else
16794 lt_prog_compiler_static_works_GCJ=yes
16797 $rm conftest*
16798 LDFLAGS="$save_LDFLAGS"
16801 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16802 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16804 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16806 else
16807 lt_prog_compiler_static_GCJ=
16811 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16812 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16813 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815 else
16816 lt_cv_prog_compiler_c_o_GCJ=no
16817 $rm -r conftest 2>/dev/null
16818 mkdir conftest
16819 cd conftest
16820 mkdir out
16821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16823 lt_compiler_flag="-o out/conftest2.$ac_objext"
16824 # Insert the option either (1) after the last *FLAGS variable, or
16825 # (2) before a word containing "conftest.", or (3) at the end.
16826 # Note that $ac_compile itself does not contain backslashes and begins
16827 # with a dollar sign (not a hyphen), so the echo should work correctly.
16828 lt_compile=`echo "$ac_compile" | $SED \
16829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16831 -e 's:$: $lt_compiler_flag:'`
16832 (eval echo "\"\$as_me:16832: $lt_compile\"" >&5)
16833 (eval "$lt_compile" 2>out/conftest.err)
16834 ac_status=$?
16835 cat out/conftest.err >&5
16836 echo "$as_me:16836: \$? = $ac_status" >&5
16837 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16838 then
16839 # The compiler can only warn and ignore the option if not recognized
16840 # So say no if there are warnings
16841 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16842 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16843 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16844 lt_cv_prog_compiler_c_o_GCJ=yes
16847 chmod u+w . 2>&5
16848 $rm conftest*
16849 # SGI C++ compiler will create directory out/ii_files/ for
16850 # template instantiation
16851 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16852 $rm out/* && rmdir out
16853 cd ..
16854 rmdir conftest
16855 $rm conftest*
16858 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16859 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16862 hard_links="nottested"
16863 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16864 # do not overwrite the value of need_locks provided by the user
16865 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16866 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16867 hard_links=yes
16868 $rm conftest*
16869 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16870 touch conftest.a
16871 ln conftest.a conftest.b 2>&5 || hard_links=no
16872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16873 { echo "$as_me:$LINENO: result: $hard_links" >&5
16874 echo "${ECHO_T}$hard_links" >&6; }
16875 if test "$hard_links" = no; then
16876 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16877 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16878 need_locks=warn
16880 else
16881 need_locks=no
16884 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16885 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16887 runpath_var=
16888 allow_undefined_flag_GCJ=
16889 enable_shared_with_static_runtimes_GCJ=no
16890 archive_cmds_GCJ=
16891 archive_expsym_cmds_GCJ=
16892 old_archive_From_new_cmds_GCJ=
16893 old_archive_from_expsyms_cmds_GCJ=
16894 export_dynamic_flag_spec_GCJ=
16895 whole_archive_flag_spec_GCJ=
16896 thread_safe_flag_spec_GCJ=
16897 hardcode_libdir_flag_spec_GCJ=
16898 hardcode_libdir_flag_spec_ld_GCJ=
16899 hardcode_libdir_separator_GCJ=
16900 hardcode_direct_GCJ=no
16901 hardcode_minus_L_GCJ=no
16902 hardcode_shlibpath_var_GCJ=unsupported
16903 link_all_deplibs_GCJ=unknown
16904 hardcode_automatic_GCJ=no
16905 module_cmds_GCJ=
16906 module_expsym_cmds_GCJ=
16907 always_export_symbols_GCJ=no
16908 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16909 # include_expsyms should be a list of space-separated symbols to be *always*
16910 # included in the symbol list
16911 include_expsyms_GCJ=
16912 # exclude_expsyms can be an extended regexp of symbols to exclude
16913 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16914 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16915 # as well as any symbol that contains `d'.
16916 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16917 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16918 # platforms (ab)use it in PIC code, but their linkers get confused if
16919 # the symbol is explicitly referenced. Since portable code cannot
16920 # rely on this symbol name, it's probably fine to never include it in
16921 # preloaded symbol tables.
16922 extract_expsyms_cmds=
16923 # Just being paranoid about ensuring that cc_basename is set.
16924 for cc_temp in $compiler""; do
16925 case $cc_temp in
16926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16928 \-*) ;;
16929 *) break;;
16930 esac
16931 done
16932 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16934 case $host_os in
16935 cygwin* | mingw* | pw32*)
16936 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16937 # When not using gcc, we currently assume that we are using
16938 # Microsoft Visual C++.
16939 if test "$GCC" != yes; then
16940 with_gnu_ld=no
16943 interix*)
16944 # we just hope/assume this is gcc and not c89 (= MSVC++)
16945 with_gnu_ld=yes
16947 openbsd*)
16948 with_gnu_ld=no
16950 esac
16952 ld_shlibs_GCJ=yes
16953 if test "$with_gnu_ld" = yes; then
16954 # If archive_cmds runs LD, not CC, wlarc should be empty
16955 wlarc='${wl}'
16957 # Set some defaults for GNU ld with shared library support. These
16958 # are reset later if shared libraries are not supported. Putting them
16959 # here allows them to be overridden if necessary.
16960 runpath_var=LD_RUN_PATH
16961 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16962 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16963 # ancient GNU ld didn't support --whole-archive et. al.
16964 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16965 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16966 else
16967 whole_archive_flag_spec_GCJ=
16969 supports_anon_versioning=no
16970 case `$LD -v 2>/dev/null` in
16971 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16972 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16973 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16974 *\ 2.11.*) ;; # other 2.11 versions
16975 *) supports_anon_versioning=yes ;;
16976 esac
16978 # See if GNU ld supports shared libraries.
16979 case $host_os in
16980 aix3* | aix4* | aix5*)
16981 # On AIX/PPC, the GNU linker is very broken
16982 if test "$host_cpu" != ia64; then
16983 ld_shlibs_GCJ=no
16984 cat <<EOF 1>&2
16986 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16987 *** to be unable to reliably create shared libraries on AIX.
16988 *** Therefore, libtool is disabling shared libraries support. If you
16989 *** really care for shared libraries, you may want to modify your PATH
16990 *** so that a non-GNU linker is found, and then restart.
16996 amigaos*)
16997 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)'
16998 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16999 hardcode_minus_L_GCJ=yes
17001 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17002 # that the semantics of dynamic libraries on AmigaOS, at least up
17003 # to version 4, is to share data among multiple programs linked
17004 # with the same dynamic library. Since this doesn't match the
17005 # behavior of shared libraries on other platforms, we can't use
17006 # them.
17007 ld_shlibs_GCJ=no
17010 beos*)
17011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17012 allow_undefined_flag_GCJ=unsupported
17013 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17014 # support --undefined. This deserves some investigation. FIXME
17015 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17016 else
17017 ld_shlibs_GCJ=no
17021 cygwin* | mingw* | pw32*)
17022 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17023 # as there is no search path for DLLs.
17024 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17025 allow_undefined_flag_GCJ=unsupported
17026 always_export_symbols_GCJ=no
17027 enable_shared_with_static_runtimes_GCJ=yes
17028 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17030 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17031 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17032 # If the export-symbols file already is a .def file (1st line
17033 # is EXPORTS), use it as is; otherwise, prepend...
17034 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17035 cp $export_symbols $output_objdir/$soname.def;
17036 else
17037 echo EXPORTS > $output_objdir/$soname.def;
17038 cat $export_symbols >> $output_objdir/$soname.def;
17040 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17041 else
17042 ld_shlibs_GCJ=no
17046 interix3*)
17047 hardcode_direct_GCJ=no
17048 hardcode_shlibpath_var_GCJ=no
17049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17050 export_dynamic_flag_spec_GCJ='${wl}-E'
17051 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17052 # Instead, shared libraries are loaded at an image base (0x10000000 by
17053 # default) and relocated if they conflict, which is a slow very memory
17054 # consuming and fragmenting process. To avoid this, we pick a random,
17055 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17056 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17057 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'
17058 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'
17061 linux* | k*bsd*-gnu)
17062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17063 tmp_addflag=
17064 case $cc_basename,$host_cpu in
17065 pgcc*) # Portland Group C compiler
17066 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'
17067 tmp_addflag=' $pic_flag'
17069 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17070 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'
17071 tmp_addflag=' $pic_flag -Mnomain' ;;
17072 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17073 tmp_addflag=' -i_dynamic' ;;
17074 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17075 tmp_addflag=' -i_dynamic -nofor_main' ;;
17076 ifc* | ifort*) # Intel Fortran compiler
17077 tmp_addflag=' -nofor_main' ;;
17078 esac
17079 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17081 if test $supports_anon_versioning = yes; then
17082 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17083 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17084 $echo "local: *; };" >> $output_objdir/$libname.ver~
17085 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17087 link_all_deplibs_GCJ=no
17088 else
17089 ld_shlibs_GCJ=no
17093 netbsd* | netbsdelf*-gnu)
17094 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17095 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17096 wlarc=
17097 else
17098 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17099 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17103 solaris*)
17104 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17105 ld_shlibs_GCJ=no
17106 cat <<EOF 1>&2
17108 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17109 *** create shared libraries on Solaris systems. Therefore, libtool
17110 *** is disabling shared libraries support. We urge you to upgrade GNU
17111 *** binutils to release 2.9.1 or newer. Another option is to modify
17112 *** your PATH or compiler configuration so that the native linker is
17113 *** used, and then restart.
17116 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17117 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17118 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17119 else
17120 ld_shlibs_GCJ=no
17124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17125 case `$LD -v 2>&1` in
17126 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17127 ld_shlibs_GCJ=no
17128 cat <<_LT_EOF 1>&2
17130 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17131 *** reliably create shared libraries on SCO systems. Therefore, libtool
17132 *** is disabling shared libraries support. We urge you to upgrade GNU
17133 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17134 *** your PATH or compiler configuration so that the native linker is
17135 *** used, and then restart.
17137 _LT_EOF
17140 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17141 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17142 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17143 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17144 else
17145 ld_shlibs_GCJ=no
17148 esac
17151 sunos4*)
17152 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17153 wlarc=
17154 hardcode_direct_GCJ=yes
17155 hardcode_shlibpath_var_GCJ=no
17159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17160 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17161 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17162 else
17163 ld_shlibs_GCJ=no
17166 esac
17168 if test "$ld_shlibs_GCJ" = no; then
17169 runpath_var=
17170 hardcode_libdir_flag_spec_GCJ=
17171 export_dynamic_flag_spec_GCJ=
17172 whole_archive_flag_spec_GCJ=
17174 else
17175 # PORTME fill in a description of your system's linker (not GNU ld)
17176 case $host_os in
17177 aix3*)
17178 allow_undefined_flag_GCJ=unsupported
17179 always_export_symbols_GCJ=yes
17180 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'
17181 # Note: this linker hardcodes the directories in LIBPATH if there
17182 # are no directories specified by -L.
17183 hardcode_minus_L_GCJ=yes
17184 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17185 # Neither direct hardcoding nor static linking is supported with a
17186 # broken collect2.
17187 hardcode_direct_GCJ=unsupported
17191 aix4* | aix5*)
17192 if test "$host_cpu" = ia64; then
17193 # On IA64, the linker does run time linking by default, so we don't
17194 # have to do anything special.
17195 aix_use_runtimelinking=no
17196 exp_sym_flag='-Bexport'
17197 no_entry_flag=""
17198 else
17199 # If we're using GNU nm, then we don't want the "-C" option.
17200 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17201 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17202 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'
17203 else
17204 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'
17206 aix_use_runtimelinking=no
17208 # Test if we are trying to use run time linking or normal
17209 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17210 # need to do runtime linking.
17211 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17212 for ld_flag in $LDFLAGS; do
17213 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17214 aix_use_runtimelinking=yes
17215 break
17217 done
17219 esac
17221 exp_sym_flag='-bexport'
17222 no_entry_flag='-bnoentry'
17225 # When large executables or shared objects are built, AIX ld can
17226 # have problems creating the table of contents. If linking a library
17227 # or program results in "error TOC overflow" add -mminimal-toc to
17228 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17229 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17231 archive_cmds_GCJ=''
17232 hardcode_direct_GCJ=yes
17233 hardcode_libdir_separator_GCJ=':'
17234 link_all_deplibs_GCJ=yes
17236 if test "$GCC" = yes; then
17237 case $host_os in aix4.[012]|aix4.[012].*)
17238 # We only want to do this on AIX 4.2 and lower, the check
17239 # below for broken collect2 doesn't work under 4.3+
17240 collect2name=`${CC} -print-prog-name=collect2`
17241 if test -f "$collect2name" && \
17242 strings "$collect2name" | grep resolve_lib_name >/dev/null
17243 then
17244 # We have reworked collect2
17245 hardcode_direct_GCJ=yes
17246 else
17247 # We have old collect2
17248 hardcode_direct_GCJ=unsupported
17249 # It fails to find uninstalled libraries when the uninstalled
17250 # path is not listed in the libpath. Setting hardcode_minus_L
17251 # to unsupported forces relinking
17252 hardcode_minus_L_GCJ=yes
17253 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17254 hardcode_libdir_separator_GCJ=
17257 esac
17258 shared_flag='-shared'
17259 if test "$aix_use_runtimelinking" = yes; then
17260 shared_flag="$shared_flag "'${wl}-G'
17262 else
17263 # not using gcc
17264 if test "$host_cpu" = ia64; then
17265 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17266 # chokes on -Wl,-G. The following line is correct:
17267 shared_flag='-G'
17268 else
17269 if test "$aix_use_runtimelinking" = yes; then
17270 shared_flag='${wl}-G'
17271 else
17272 shared_flag='${wl}-bM:SRE'
17277 # It seems that -bexpall does not export symbols beginning with
17278 # underscore (_), so it is better to generate a list of symbols to export.
17279 always_export_symbols_GCJ=yes
17280 if test "$aix_use_runtimelinking" = yes; then
17281 # Warning - without using the other runtime loading flags (-brtl),
17282 # -berok will link without error, but may produce a broken library.
17283 allow_undefined_flag_GCJ='-berok'
17284 # Determine the default libpath from the value encoded in an empty executable.
17285 cat >conftest.$ac_ext <<_ACEOF
17286 /* confdefs.h. */
17287 _ACEOF
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h. */
17293 main ()
17297 return 0;
17299 _ACEOF
17300 rm -f conftest.$ac_objext conftest$ac_exeext
17301 if { (ac_try="$ac_link"
17302 case "(($ac_try" in
17303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17305 esac
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_link") 2>conftest.er1
17308 ac_status=$?
17309 grep -v '^ *+' conftest.er1 >conftest.err
17310 rm -f conftest.er1
17311 cat conftest.err >&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } &&
17314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17315 { (case "(($ac_try" in
17316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317 *) ac_try_echo=$ac_try;;
17318 esac
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320 (eval "$ac_try") 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } &&
17324 { ac_try='test -s conftest$ac_exeext'
17325 { (case "(($ac_try" in
17326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17328 esac
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_try") 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; }; then
17335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17337 # Check for a 64-bit object if we didn't find anything.
17338 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17339 }'`; fi
17340 else
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17347 rm -f core conftest.err conftest.$ac_objext \
17348 conftest$ac_exeext conftest.$ac_ext
17349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17351 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17352 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"
17353 else
17354 if test "$host_cpu" = ia64; then
17355 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17356 allow_undefined_flag_GCJ="-z nodefs"
17357 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"
17358 else
17359 # Determine the default libpath from the value encoded in an empty executable.
17360 cat >conftest.$ac_ext <<_ACEOF
17361 /* confdefs.h. */
17362 _ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h. */
17368 main ()
17372 return 0;
17374 _ACEOF
17375 rm -f conftest.$ac_objext conftest$ac_exeext
17376 if { (ac_try="$ac_link"
17377 case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380 esac
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_link") 2>conftest.er1
17383 ac_status=$?
17384 grep -v '^ *+' conftest.er1 >conftest.err
17385 rm -f conftest.er1
17386 cat conftest.err >&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
17389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17390 { (case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_try") 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try='test -s conftest$ac_exeext'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17403 esac
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17412 # Check for a 64-bit object if we didn't find anything.
17413 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17414 }'`; fi
17415 else
17416 echo "$as_me: failed program was:" >&5
17417 sed 's/^/| /' conftest.$ac_ext >&5
17422 rm -f core conftest.err conftest.$ac_objext \
17423 conftest$ac_exeext conftest.$ac_ext
17424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17426 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17427 # Warning - without using the other run time loading flags,
17428 # -berok will link without error, but may produce a broken library.
17429 no_undefined_flag_GCJ=' ${wl}-bernotok'
17430 allow_undefined_flag_GCJ=' ${wl}-berok'
17431 # Exported symbols can be pulled into shared objects from archives
17432 whole_archive_flag_spec_GCJ='$convenience'
17433 archive_cmds_need_lc_GCJ=yes
17434 # This is similar to how AIX traditionally builds its shared libraries.
17435 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'
17440 amigaos*)
17441 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)'
17442 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17443 hardcode_minus_L_GCJ=yes
17444 # see comment about different semantics on the GNU ld section
17445 ld_shlibs_GCJ=no
17448 bsdi[45]*)
17449 export_dynamic_flag_spec_GCJ=-rdynamic
17452 cygwin* | mingw* | pw32*)
17453 # When not using gcc, we currently assume that we are using
17454 # Microsoft Visual C++.
17455 # hardcode_libdir_flag_spec is actually meaningless, as there is
17456 # no search path for DLLs.
17457 hardcode_libdir_flag_spec_GCJ=' '
17458 allow_undefined_flag_GCJ=unsupported
17459 # Tell ltmain to make .lib files, not .a files.
17460 libext=lib
17461 # Tell ltmain to make .dll files, not .so files.
17462 shrext_cmds=".dll"
17463 # FIXME: Setting linknames here is a bad hack.
17464 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17465 # The linker will automatically build a .lib file if we build a DLL.
17466 old_archive_From_new_cmds_GCJ='true'
17467 # FIXME: Should let the user specify the lib program.
17468 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17469 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17470 enable_shared_with_static_runtimes_GCJ=yes
17473 darwin* | rhapsody*)
17474 case $host_os in
17475 rhapsody* | darwin1.[012])
17476 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17478 *) # Darwin 1.3 on
17479 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17480 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17481 else
17482 case ${MACOSX_DEPLOYMENT_TARGET} in
17483 10.[012])
17484 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17486 10.*)
17487 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17489 esac
17492 esac
17493 archive_cmds_need_lc_GCJ=no
17494 hardcode_direct_GCJ=no
17495 hardcode_automatic_GCJ=yes
17496 hardcode_shlibpath_var_GCJ=unsupported
17497 whole_archive_flag_spec_GCJ=''
17498 link_all_deplibs_GCJ=yes
17499 if test "$GCC" = yes ; then
17500 output_verbose_link_cmd='echo'
17501 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17502 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17503 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17504 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}'
17505 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}'
17506 else
17507 case $cc_basename in
17508 xlc*)
17509 output_verbose_link_cmd='echo'
17510 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17511 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17512 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17513 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}'
17514 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}'
17517 ld_shlibs_GCJ=no
17519 esac
17523 dgux*)
17524 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17525 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17526 hardcode_shlibpath_var_GCJ=no
17529 freebsd1*)
17530 ld_shlibs_GCJ=no
17533 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17534 # support. Future versions do this automatically, but an explicit c++rt0.o
17535 # does not break anything, and helps significantly (at the cost of a little
17536 # extra space).
17537 freebsd2.2*)
17538 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17539 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17540 hardcode_direct_GCJ=yes
17541 hardcode_shlibpath_var_GCJ=no
17544 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17545 freebsd2*)
17546 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17547 hardcode_direct_GCJ=yes
17548 hardcode_minus_L_GCJ=yes
17549 hardcode_shlibpath_var_GCJ=no
17552 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17553 freebsd* | dragonfly*)
17554 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17555 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17556 hardcode_direct_GCJ=yes
17557 hardcode_shlibpath_var_GCJ=no
17560 hpux9*)
17561 if test "$GCC" = yes; then
17562 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'
17563 else
17564 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'
17566 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17567 hardcode_libdir_separator_GCJ=:
17568 hardcode_direct_GCJ=yes
17570 # hardcode_minus_L: Not really in the search PATH,
17571 # but as the default location of the library.
17572 hardcode_minus_L_GCJ=yes
17573 export_dynamic_flag_spec_GCJ='${wl}-E'
17576 hpux10*)
17577 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17578 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17579 else
17580 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17582 if test "$with_gnu_ld" = no; then
17583 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17584 hardcode_libdir_separator_GCJ=:
17586 hardcode_direct_GCJ=yes
17587 export_dynamic_flag_spec_GCJ='${wl}-E'
17589 # hardcode_minus_L: Not really in the search PATH,
17590 # but as the default location of the library.
17591 hardcode_minus_L_GCJ=yes
17595 hpux11*)
17596 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17597 case $host_cpu in
17598 hppa*64*)
17599 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17601 ia64*)
17602 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17605 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17607 esac
17608 else
17609 case $host_cpu in
17610 hppa*64*)
17611 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17613 ia64*)
17614 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17617 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17619 esac
17621 if test "$with_gnu_ld" = no; then
17622 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17623 hardcode_libdir_separator_GCJ=:
17625 case $host_cpu in
17626 hppa*64*|ia64*)
17627 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17628 hardcode_direct_GCJ=no
17629 hardcode_shlibpath_var_GCJ=no
17632 hardcode_direct_GCJ=yes
17633 export_dynamic_flag_spec_GCJ='${wl}-E'
17635 # hardcode_minus_L: Not really in the search PATH,
17636 # but as the default location of the library.
17637 hardcode_minus_L_GCJ=yes
17639 esac
17643 irix5* | irix6* | nonstopux*)
17644 if test "$GCC" = yes; then
17645 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'
17646 else
17647 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'
17648 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17650 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17651 hardcode_libdir_separator_GCJ=:
17652 link_all_deplibs_GCJ=yes
17655 netbsd* | netbsdelf*-gnu)
17656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17657 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17658 else
17659 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17661 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17662 hardcode_direct_GCJ=yes
17663 hardcode_shlibpath_var_GCJ=no
17666 newsos6)
17667 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17668 hardcode_direct_GCJ=yes
17669 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17670 hardcode_libdir_separator_GCJ=:
17671 hardcode_shlibpath_var_GCJ=no
17674 openbsd*)
17675 hardcode_direct_GCJ=yes
17676 hardcode_shlibpath_var_GCJ=no
17677 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17678 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17679 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17680 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17681 export_dynamic_flag_spec_GCJ='${wl}-E'
17682 else
17683 case $host_os in
17684 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17685 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17686 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17689 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17690 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17692 esac
17696 os2*)
17697 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17698 hardcode_minus_L_GCJ=yes
17699 allow_undefined_flag_GCJ=unsupported
17700 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'
17701 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17704 osf3*)
17705 if test "$GCC" = yes; then
17706 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17707 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'
17708 else
17709 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17710 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'
17712 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17713 hardcode_libdir_separator_GCJ=:
17716 osf4* | osf5*) # as osf3* with the addition of -msym flag
17717 if test "$GCC" = yes; then
17718 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17719 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'
17720 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17721 else
17722 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17723 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'
17724 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~
17725 $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'
17727 # Both c and cxx compiler support -rpath directly
17728 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17730 hardcode_libdir_separator_GCJ=:
17733 solaris*)
17734 no_undefined_flag_GCJ=' -z text'
17735 if test "$GCC" = yes; then
17736 wlarc='${wl}'
17737 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17738 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17739 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17740 else
17741 wlarc=''
17742 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17743 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17744 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17746 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17747 hardcode_shlibpath_var_GCJ=no
17748 case $host_os in
17749 solaris2.[0-5] | solaris2.[0-5].*) ;;
17751 # The compiler driver will combine linker options so we
17752 # cannot just pass the convience library names through
17753 # without $wl, iff we do not link with $LD.
17754 # Luckily, gcc supports the same syntax we need for Sun Studio.
17755 # Supported since Solaris 2.6 (maybe 2.5.1?)
17756 case $wlarc in
17758 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17760 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' ;;
17761 esac ;;
17762 esac
17763 link_all_deplibs_GCJ=yes
17766 sunos4*)
17767 if test "x$host_vendor" = xsequent; then
17768 # Use $CC to link under sequent, because it throws in some extra .o
17769 # files that make .init and .fini sections work.
17770 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17771 else
17772 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17774 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17775 hardcode_direct_GCJ=yes
17776 hardcode_minus_L_GCJ=yes
17777 hardcode_shlibpath_var_GCJ=no
17780 sysv4)
17781 case $host_vendor in
17782 sni)
17783 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17784 hardcode_direct_GCJ=yes # is this really true???
17786 siemens)
17787 ## LD is ld it makes a PLAMLIB
17788 ## CC just makes a GrossModule.
17789 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17790 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17791 hardcode_direct_GCJ=no
17793 motorola)
17794 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17795 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17797 esac
17798 runpath_var='LD_RUN_PATH'
17799 hardcode_shlibpath_var_GCJ=no
17802 sysv4.3*)
17803 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17804 hardcode_shlibpath_var_GCJ=no
17805 export_dynamic_flag_spec_GCJ='-Bexport'
17808 sysv4*MP*)
17809 if test -d /usr/nec; then
17810 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17811 hardcode_shlibpath_var_GCJ=no
17812 runpath_var=LD_RUN_PATH
17813 hardcode_runpath_var=yes
17814 ld_shlibs_GCJ=yes
17818 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17819 no_undefined_flag_GCJ='${wl}-z,text'
17820 archive_cmds_need_lc_GCJ=no
17821 hardcode_shlibpath_var_GCJ=no
17822 runpath_var='LD_RUN_PATH'
17824 if test "$GCC" = yes; then
17825 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17826 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17827 else
17828 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17829 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17833 sysv5* | sco3.2v5* | sco5v6*)
17834 # Note: We can NOT use -z defs as we might desire, because we do not
17835 # link with -lc, and that would cause any symbols used from libc to
17836 # always be unresolved, which means just about no library would
17837 # ever link correctly. If we're not using GNU ld we use -z text
17838 # though, which does catch some bad symbols but isn't as heavy-handed
17839 # as -z defs.
17840 no_undefined_flag_GCJ='${wl}-z,text'
17841 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17842 archive_cmds_need_lc_GCJ=no
17843 hardcode_shlibpath_var_GCJ=no
17844 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17845 hardcode_libdir_separator_GCJ=':'
17846 link_all_deplibs_GCJ=yes
17847 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17848 runpath_var='LD_RUN_PATH'
17850 if test "$GCC" = yes; then
17851 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17852 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17853 else
17854 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17855 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17859 uts4*)
17860 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17861 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17862 hardcode_shlibpath_var_GCJ=no
17866 ld_shlibs_GCJ=no
17868 esac
17871 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17872 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17873 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17876 # Do we need to explicitly link libc?
17878 case "x$archive_cmds_need_lc_GCJ" in
17879 x|xyes)
17880 # Assume -lc should be added
17881 archive_cmds_need_lc_GCJ=yes
17883 if test "$enable_shared" = yes && test "$GCC" = yes; then
17884 case $archive_cmds_GCJ in
17885 *'~'*)
17886 # FIXME: we may have to deal with multi-command sequences.
17888 '$CC '*)
17889 # Test whether the compiler implicitly links with -lc since on some
17890 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17891 # to ld, don't add -lc before -lgcc.
17892 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17893 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17894 $rm conftest*
17895 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17898 (eval $ac_compile) 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } 2>conftest.err; then
17902 soname=conftest
17903 lib=conftest
17904 libobjs=conftest.$ac_objext
17905 deplibs=
17906 wl=$lt_prog_compiler_wl_GCJ
17907 pic_flag=$lt_prog_compiler_pic_GCJ
17908 compiler_flags=-v
17909 linker_flags=-v
17910 verstring=
17911 output_objdir=.
17912 libname=conftest
17913 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17914 allow_undefined_flag_GCJ=
17915 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17916 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }
17920 then
17921 archive_cmds_need_lc_GCJ=no
17922 else
17923 archive_cmds_need_lc_GCJ=yes
17925 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17926 else
17927 cat conftest.err 1>&5
17929 $rm conftest*
17930 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17931 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17933 esac
17936 esac
17938 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17939 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17940 library_names_spec=
17941 libname_spec='lib$name'
17942 soname_spec=
17943 shrext_cmds=".so"
17944 postinstall_cmds=
17945 postuninstall_cmds=
17946 finish_cmds=
17947 finish_eval=
17948 shlibpath_var=
17949 shlibpath_overrides_runpath=unknown
17950 version_type=none
17951 dynamic_linker="$host_os ld.so"
17952 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17953 if test "$GCC" = yes; then
17954 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17955 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17956 # if the path contains ";" then we assume it to be the separator
17957 # otherwise default to the standard path separator (i.e. ":") - it is
17958 # assumed that no part of a normal pathname contains ";" but that should
17959 # okay in the real world where ";" in dirpaths is itself problematic.
17960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17961 else
17962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17964 else
17965 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17967 need_lib_prefix=unknown
17968 hardcode_into_libs=no
17970 # when you set need_version to no, make sure it does not cause -set_version
17971 # flags to be left without arguments
17972 need_version=unknown
17974 case $host_os in
17975 aix3*)
17976 version_type=linux
17977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17978 shlibpath_var=LIBPATH
17980 # AIX 3 has no versioning support, so we append a major version to the name.
17981 soname_spec='${libname}${release}${shared_ext}$major'
17984 aix4* | aix5*)
17985 version_type=linux
17986 need_lib_prefix=no
17987 need_version=no
17988 hardcode_into_libs=yes
17989 if test "$host_cpu" = ia64; then
17990 # AIX 5 supports IA64
17991 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17992 shlibpath_var=LD_LIBRARY_PATH
17993 else
17994 # With GCC up to 2.95.x, collect2 would create an import file
17995 # for dependence libraries. The import file would start with
17996 # the line `#! .'. This would cause the generated library to
17997 # depend on `.', always an invalid library. This was fixed in
17998 # development snapshots of GCC prior to 3.0.
17999 case $host_os in
18000 aix4 | aix4.[01] | aix4.[01].*)
18001 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18002 echo ' yes '
18003 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18005 else
18006 can_build_shared=no
18009 esac
18010 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18011 # soname into executable. Probably we can add versioning support to
18012 # collect2, so additional links can be useful in future.
18013 if test "$aix_use_runtimelinking" = yes; then
18014 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18015 # instead of lib<name>.a to let people know that these are not
18016 # typical AIX shared libraries.
18017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18018 else
18019 # We preserve .a as extension for shared libraries through AIX4.2
18020 # and later when we are not doing run time linking.
18021 library_names_spec='${libname}${release}.a $libname.a'
18022 soname_spec='${libname}${release}${shared_ext}$major'
18024 shlibpath_var=LIBPATH
18028 amigaos*)
18029 library_names_spec='$libname.ixlibrary $libname.a'
18030 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18031 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'
18034 beos*)
18035 library_names_spec='${libname}${shared_ext}'
18036 dynamic_linker="$host_os ld.so"
18037 shlibpath_var=LIBRARY_PATH
18040 bsdi[45]*)
18041 version_type=linux
18042 need_version=no
18043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18044 soname_spec='${libname}${release}${shared_ext}$major'
18045 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18046 shlibpath_var=LD_LIBRARY_PATH
18047 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18048 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18049 # the default ld.so.conf also contains /usr/contrib/lib and
18050 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18051 # libtool to hard-code these into programs
18054 cygwin* | mingw* | pw32*)
18055 version_type=windows
18056 shrext_cmds=".dll"
18057 need_version=no
18058 need_lib_prefix=no
18060 case $GCC,$host_os in
18061 yes,cygwin* | yes,mingw* | yes,pw32*)
18062 library_names_spec='$libname.dll.a'
18063 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18064 postinstall_cmds='base_file=`basename \${file}`~
18065 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18066 dldir=$destdir/`dirname \$dlpath`~
18067 test -d \$dldir || mkdir -p \$dldir~
18068 $install_prog $dir/$dlname \$dldir/$dlname~
18069 chmod a+x \$dldir/$dlname'
18070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18071 dlpath=$dir/\$dldll~
18072 $rm \$dlpath'
18073 shlibpath_overrides_runpath=yes
18075 case $host_os in
18076 cygwin*)
18077 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18078 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18079 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18081 mingw*)
18082 # MinGW DLLs use traditional 'lib' prefix
18083 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18084 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18085 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18086 # It is most probably a Windows format PATH printed by
18087 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18088 # path with ; separators, and with drive letters. We can handle the
18089 # drive letters (cygwin fileutils understands them), so leave them,
18090 # especially as we might pass files found there to a mingw objdump,
18091 # which wouldn't understand a cygwinified path. Ahh.
18092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18093 else
18094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18097 pw32*)
18098 # pw32 DLLs use 'pw' prefix rather than 'lib'
18099 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18101 esac
18105 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18107 esac
18108 dynamic_linker='Win32 ld.exe'
18109 # FIXME: first we should search . and the directory the executable is in
18110 shlibpath_var=PATH
18113 darwin* | rhapsody*)
18114 dynamic_linker="$host_os dyld"
18115 version_type=darwin
18116 need_lib_prefix=no
18117 need_version=no
18118 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18119 soname_spec='${libname}${release}${major}$shared_ext'
18120 shlibpath_overrides_runpath=yes
18121 shlibpath_var=DYLD_LIBRARY_PATH
18122 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18123 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18124 if test "$GCC" = yes; then
18125 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"`
18126 else
18127 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18129 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18132 dgux*)
18133 version_type=linux
18134 need_lib_prefix=no
18135 need_version=no
18136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18137 soname_spec='${libname}${release}${shared_ext}$major'
18138 shlibpath_var=LD_LIBRARY_PATH
18141 freebsd1*)
18142 dynamic_linker=no
18145 freebsd* | dragonfly*)
18146 # DragonFly does not have aout. When/if they implement a new
18147 # versioning mechanism, adjust this.
18148 if test -x /usr/bin/objformat; then
18149 objformat=`/usr/bin/objformat`
18150 else
18151 case $host_os in
18152 freebsd[123]*) objformat=aout ;;
18153 *) objformat=elf ;;
18154 esac
18156 version_type=freebsd-$objformat
18157 case $version_type in
18158 freebsd-elf*)
18159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18160 need_version=no
18161 need_lib_prefix=no
18163 freebsd-*)
18164 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18165 need_version=yes
18167 esac
18168 shlibpath_var=LD_LIBRARY_PATH
18169 case $host_os in
18170 freebsd2*)
18171 shlibpath_overrides_runpath=yes
18173 freebsd3.[01]* | freebsdelf3.[01]*)
18174 shlibpath_overrides_runpath=yes
18175 hardcode_into_libs=yes
18177 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18178 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18179 shlibpath_overrides_runpath=no
18180 hardcode_into_libs=yes
18182 freebsd*) # from 4.6 on
18183 shlibpath_overrides_runpath=yes
18184 hardcode_into_libs=yes
18186 esac
18189 gnu*)
18190 version_type=linux
18191 need_lib_prefix=no
18192 need_version=no
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18194 soname_spec='${libname}${release}${shared_ext}$major'
18195 shlibpath_var=LD_LIBRARY_PATH
18196 hardcode_into_libs=yes
18199 hpux9* | hpux10* | hpux11*)
18200 # Give a soname corresponding to the major version so that dld.sl refuses to
18201 # link against other versions.
18202 version_type=sunos
18203 need_lib_prefix=no
18204 need_version=no
18205 case $host_cpu in
18206 ia64*)
18207 shrext_cmds='.so'
18208 hardcode_into_libs=yes
18209 dynamic_linker="$host_os dld.so"
18210 shlibpath_var=LD_LIBRARY_PATH
18211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213 soname_spec='${libname}${release}${shared_ext}$major'
18214 if test "X$HPUX_IA64_MODE" = X32; then
18215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18216 else
18217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18221 hppa*64*)
18222 shrext_cmds='.sl'
18223 hardcode_into_libs=yes
18224 dynamic_linker="$host_os dld.sl"
18225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18228 soname_spec='${libname}${release}${shared_ext}$major'
18229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18233 shrext_cmds='.sl'
18234 dynamic_linker="$host_os dld.sl"
18235 shlibpath_var=SHLIB_PATH
18236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18238 soname_spec='${libname}${release}${shared_ext}$major'
18240 esac
18241 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18242 postinstall_cmds='chmod 555 $lib'
18245 interix3*)
18246 version_type=linux
18247 need_lib_prefix=no
18248 need_version=no
18249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18250 soname_spec='${libname}${release}${shared_ext}$major'
18251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18252 shlibpath_var=LD_LIBRARY_PATH
18253 shlibpath_overrides_runpath=no
18254 hardcode_into_libs=yes
18257 irix5* | irix6* | nonstopux*)
18258 case $host_os in
18259 nonstopux*) version_type=nonstopux ;;
18261 if test "$lt_cv_prog_gnu_ld" = yes; then
18262 version_type=linux
18263 else
18264 version_type=irix
18265 fi ;;
18266 esac
18267 need_lib_prefix=no
18268 need_version=no
18269 soname_spec='${libname}${release}${shared_ext}$major'
18270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18271 case $host_os in
18272 irix5* | nonstopux*)
18273 libsuff= shlibsuff=
18276 case $LD in # libtool.m4 will add one of these switches to LD
18277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18278 libsuff= shlibsuff= libmagic=32-bit;;
18279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18280 libsuff=32 shlibsuff=N32 libmagic=N32;;
18281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18282 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18283 *) libsuff= shlibsuff= libmagic=never-match;;
18284 esac
18286 esac
18287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18288 shlibpath_overrides_runpath=no
18289 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18290 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18291 hardcode_into_libs=yes
18294 # No shared lib support for Linux oldld, aout, or coff.
18295 linux*oldld* | linux*aout* | linux*coff*)
18296 dynamic_linker=no
18299 # This must be Linux ELF.
18300 linux* | k*bsd*-gnu)
18301 version_type=linux
18302 need_lib_prefix=no
18303 need_version=no
18304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18305 soname_spec='${libname}${release}${shared_ext}$major'
18306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18307 shlibpath_var=LD_LIBRARY_PATH
18308 shlibpath_overrides_runpath=no
18309 # This implies no fast_install, which is unacceptable.
18310 # Some rework will be needed to allow for fast_install
18311 # before this can be enabled.
18312 hardcode_into_libs=yes
18314 # Append ld.so.conf contents to the search path
18315 if test -f /etc/ld.so.conf; then
18316 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' ' '`
18317 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18320 # We used to test for /lib/ld.so.1 and disable shared libraries on
18321 # powerpc, because MkLinux only supported shared libraries with the
18322 # GNU dynamic linker. Since this was broken with cross compilers,
18323 # most powerpc-linux boxes support dynamic linking these days and
18324 # people can always --disable-shared, the test was removed, and we
18325 # assume the GNU/Linux dynamic linker is in use.
18326 dynamic_linker='GNU/Linux ld.so'
18329 netbsdelf*-gnu)
18330 version_type=linux
18331 need_lib_prefix=no
18332 need_version=no
18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18334 soname_spec='${libname}${release}${shared_ext}$major'
18335 shlibpath_var=LD_LIBRARY_PATH
18336 shlibpath_overrides_runpath=no
18337 hardcode_into_libs=yes
18338 dynamic_linker='NetBSD ld.elf_so'
18341 netbsd*)
18342 version_type=sunos
18343 need_lib_prefix=no
18344 need_version=no
18345 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18348 dynamic_linker='NetBSD (a.out) ld.so'
18349 else
18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18351 soname_spec='${libname}${release}${shared_ext}$major'
18352 dynamic_linker='NetBSD ld.elf_so'
18354 shlibpath_var=LD_LIBRARY_PATH
18355 shlibpath_overrides_runpath=yes
18356 hardcode_into_libs=yes
18359 newsos6)
18360 version_type=linux
18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18362 shlibpath_var=LD_LIBRARY_PATH
18363 shlibpath_overrides_runpath=yes
18366 nto-qnx*)
18367 version_type=linux
18368 need_lib_prefix=no
18369 need_version=no
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371 soname_spec='${libname}${release}${shared_ext}$major'
18372 shlibpath_var=LD_LIBRARY_PATH
18373 shlibpath_overrides_runpath=yes
18376 openbsd*)
18377 version_type=sunos
18378 sys_lib_dlsearch_path_spec="/usr/lib"
18379 need_lib_prefix=no
18380 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18381 case $host_os in
18382 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18383 *) need_version=no ;;
18384 esac
18385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18387 shlibpath_var=LD_LIBRARY_PATH
18388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18389 case $host_os in
18390 openbsd2.[89] | openbsd2.[89].*)
18391 shlibpath_overrides_runpath=no
18394 shlibpath_overrides_runpath=yes
18396 esac
18397 else
18398 shlibpath_overrides_runpath=yes
18402 os2*)
18403 libname_spec='$name'
18404 shrext_cmds=".dll"
18405 need_lib_prefix=no
18406 library_names_spec='$libname${shared_ext} $libname.a'
18407 dynamic_linker='OS/2 ld.exe'
18408 shlibpath_var=LIBPATH
18411 osf3* | osf4* | osf5*)
18412 version_type=osf
18413 need_lib_prefix=no
18414 need_version=no
18415 soname_spec='${libname}${release}${shared_ext}$major'
18416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18417 shlibpath_var=LD_LIBRARY_PATH
18418 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18419 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18422 solaris*)
18423 version_type=linux
18424 need_lib_prefix=no
18425 need_version=no
18426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18427 soname_spec='${libname}${release}${shared_ext}$major'
18428 shlibpath_var=LD_LIBRARY_PATH
18429 shlibpath_overrides_runpath=yes
18430 hardcode_into_libs=yes
18431 # ldd complains unless libraries are executable
18432 postinstall_cmds='chmod +x $lib'
18435 sunos4*)
18436 version_type=sunos
18437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18438 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18439 shlibpath_var=LD_LIBRARY_PATH
18440 shlibpath_overrides_runpath=yes
18441 if test "$with_gnu_ld" = yes; then
18442 need_lib_prefix=no
18444 need_version=yes
18447 sysv4 | sysv4.3*)
18448 version_type=linux
18449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18450 soname_spec='${libname}${release}${shared_ext}$major'
18451 shlibpath_var=LD_LIBRARY_PATH
18452 case $host_vendor in
18453 sni)
18454 shlibpath_overrides_runpath=no
18455 need_lib_prefix=no
18456 export_dynamic_flag_spec='${wl}-Blargedynsym'
18457 runpath_var=LD_RUN_PATH
18459 siemens)
18460 need_lib_prefix=no
18462 motorola)
18463 need_lib_prefix=no
18464 need_version=no
18465 shlibpath_overrides_runpath=no
18466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18468 esac
18471 sysv4*MP*)
18472 if test -d /usr/nec ;then
18473 version_type=linux
18474 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18475 soname_spec='$libname${shared_ext}.$major'
18476 shlibpath_var=LD_LIBRARY_PATH
18480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18481 version_type=freebsd-elf
18482 need_lib_prefix=no
18483 need_version=no
18484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18485 soname_spec='${libname}${release}${shared_ext}$major'
18486 shlibpath_var=LD_LIBRARY_PATH
18487 hardcode_into_libs=yes
18488 if test "$with_gnu_ld" = yes; then
18489 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18490 shlibpath_overrides_runpath=no
18491 else
18492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18493 shlibpath_overrides_runpath=yes
18494 case $host_os in
18495 sco3.2v5*)
18496 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18498 esac
18500 sys_lib_dlsearch_path_spec='/usr/lib'
18503 uts4*)
18504 version_type=linux
18505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18506 soname_spec='${libname}${release}${shared_ext}$major'
18507 shlibpath_var=LD_LIBRARY_PATH
18511 dynamic_linker=no
18513 esac
18514 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18515 echo "${ECHO_T}$dynamic_linker" >&6; }
18516 test "$dynamic_linker" = no && can_build_shared=no
18518 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18519 if test "$GCC" = yes; then
18520 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18523 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18524 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18525 hardcode_action_GCJ=
18526 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18527 test -n "$runpath_var_GCJ" || \
18528 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18530 # We can hardcode non-existant directories.
18531 if test "$hardcode_direct_GCJ" != no &&
18532 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18533 # have to relink, otherwise we might link with an installed library
18534 # when we should be linking with a yet-to-be-installed one
18535 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18536 test "$hardcode_minus_L_GCJ" != no; then
18537 # Linking always hardcodes the temporary library directory.
18538 hardcode_action_GCJ=relink
18539 else
18540 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18541 hardcode_action_GCJ=immediate
18543 else
18544 # We cannot hardcode anything, or else we can only hardcode existing
18545 # directories.
18546 hardcode_action_GCJ=unsupported
18548 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18549 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18551 if test "$hardcode_action_GCJ" = relink; then
18552 # Fast installation is not supported
18553 enable_fast_install=no
18554 elif test "$shlibpath_overrides_runpath" = yes ||
18555 test "$enable_shared" = no; then
18556 # Fast installation is not necessary
18557 enable_fast_install=needless
18561 # The else clause should only fire when bootstrapping the
18562 # libtool distribution, otherwise you forgot to ship ltmain.sh
18563 # with your package, and you will get complaints that there are
18564 # no rules to generate ltmain.sh.
18565 if test -f "$ltmain"; then
18566 # See if we are running on zsh, and set the options which allow our commands through
18567 # without removal of \ escapes.
18568 if test -n "${ZSH_VERSION+set}" ; then
18569 setopt NO_GLOB_SUBST
18571 # Now quote all the things that may contain metacharacters while being
18572 # careful not to overquote the AC_SUBSTed values. We take copies of the
18573 # variables and quote the copies for generation of the libtool script.
18574 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18575 SED SHELL STRIP \
18576 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18577 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18578 deplibs_check_method reload_flag reload_cmds need_locks \
18579 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18580 lt_cv_sys_global_symbol_to_c_name_address \
18581 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18582 old_postinstall_cmds old_postuninstall_cmds \
18583 compiler_GCJ \
18584 CC_GCJ \
18585 LD_GCJ \
18586 lt_prog_compiler_wl_GCJ \
18587 lt_prog_compiler_pic_GCJ \
18588 lt_prog_compiler_static_GCJ \
18589 lt_prog_compiler_no_builtin_flag_GCJ \
18590 export_dynamic_flag_spec_GCJ \
18591 thread_safe_flag_spec_GCJ \
18592 whole_archive_flag_spec_GCJ \
18593 enable_shared_with_static_runtimes_GCJ \
18594 old_archive_cmds_GCJ \
18595 old_archive_from_new_cmds_GCJ \
18596 predep_objects_GCJ \
18597 postdep_objects_GCJ \
18598 predeps_GCJ \
18599 postdeps_GCJ \
18600 compiler_lib_search_path_GCJ \
18601 archive_cmds_GCJ \
18602 archive_expsym_cmds_GCJ \
18603 postinstall_cmds_GCJ \
18604 postuninstall_cmds_GCJ \
18605 old_archive_from_expsyms_cmds_GCJ \
18606 allow_undefined_flag_GCJ \
18607 no_undefined_flag_GCJ \
18608 export_symbols_cmds_GCJ \
18609 hardcode_libdir_flag_spec_GCJ \
18610 hardcode_libdir_flag_spec_ld_GCJ \
18611 hardcode_libdir_separator_GCJ \
18612 hardcode_automatic_GCJ \
18613 module_cmds_GCJ \
18614 module_expsym_cmds_GCJ \
18615 lt_cv_prog_compiler_c_o_GCJ \
18616 exclude_expsyms_GCJ \
18617 include_expsyms_GCJ; do
18619 case $var in
18620 old_archive_cmds_GCJ | \
18621 old_archive_from_new_cmds_GCJ | \
18622 archive_cmds_GCJ | \
18623 archive_expsym_cmds_GCJ | \
18624 module_cmds_GCJ | \
18625 module_expsym_cmds_GCJ | \
18626 old_archive_from_expsyms_cmds_GCJ | \
18627 export_symbols_cmds_GCJ | \
18628 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18629 postinstall_cmds | postuninstall_cmds | \
18630 old_postinstall_cmds | old_postuninstall_cmds | \
18631 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18632 # Double-quote double-evaled strings.
18633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18638 esac
18639 done
18641 case $lt_echo in
18642 *'\$0 --fallback-echo"')
18643 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18645 esac
18647 cfgfile="$ofile"
18649 cat <<__EOF__ >> "$cfgfile"
18650 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18652 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18654 # Shell to use when invoking shell scripts.
18655 SHELL=$lt_SHELL
18657 # Whether or not to build shared libraries.
18658 build_libtool_libs=$enable_shared
18660 # Whether or not to build static libraries.
18661 build_old_libs=$enable_static
18663 # Whether or not to add -lc for building shared libraries.
18664 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18666 # Whether or not to disallow shared libs when runtime libs are static
18667 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18669 # Whether or not to optimize for fast installation.
18670 fast_install=$enable_fast_install
18672 # The host system.
18673 host_alias=$host_alias
18674 host=$host
18675 host_os=$host_os
18677 # The build system.
18678 build_alias=$build_alias
18679 build=$build
18680 build_os=$build_os
18682 # An echo program that does not interpret backslashes.
18683 echo=$lt_echo
18685 # The archiver.
18686 AR=$lt_AR
18687 AR_FLAGS=$lt_AR_FLAGS
18689 # A C compiler.
18690 LTCC=$lt_LTCC
18692 # LTCC compiler flags.
18693 LTCFLAGS=$lt_LTCFLAGS
18695 # A language-specific compiler.
18696 CC=$lt_compiler_GCJ
18698 # Is the compiler the GNU C compiler?
18699 with_gcc=$GCC_GCJ
18701 # An ERE matcher.
18702 EGREP=$lt_EGREP
18704 # The linker used to build libraries.
18705 LD=$lt_LD_GCJ
18707 # Whether we need hard or soft links.
18708 LN_S=$lt_LN_S
18710 # A BSD-compatible nm program.
18711 NM=$lt_NM
18713 # A symbol stripping program
18714 STRIP=$lt_STRIP
18716 # Used to examine libraries when file_magic_cmd begins "file"
18717 MAGIC_CMD=$MAGIC_CMD
18719 # Used on cygwin: DLL creation program.
18720 DLLTOOL="$DLLTOOL"
18722 # Used on cygwin: object dumper.
18723 OBJDUMP="$OBJDUMP"
18725 # Used on cygwin: assembler.
18726 AS="$AS"
18728 # The name of the directory that contains temporary libtool files.
18729 objdir=$objdir
18731 # How to create reloadable object files.
18732 reload_flag=$lt_reload_flag
18733 reload_cmds=$lt_reload_cmds
18735 # How to pass a linker flag through the compiler.
18736 wl=$lt_lt_prog_compiler_wl_GCJ
18738 # Object file suffix (normally "o").
18739 objext="$ac_objext"
18741 # Old archive suffix (normally "a").
18742 libext="$libext"
18744 # Shared library suffix (normally ".so").
18745 shrext_cmds='$shrext_cmds'
18747 # Executable file suffix (normally "").
18748 exeext="$exeext"
18750 # Additional compiler flags for building library objects.
18751 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18752 pic_mode=$pic_mode
18754 # What is the maximum length of a command?
18755 max_cmd_len=$lt_cv_sys_max_cmd_len
18757 # Does compiler simultaneously support -c and -o options?
18758 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18760 # Must we lock files when doing compilation?
18761 need_locks=$lt_need_locks
18763 # Do we need the lib prefix for modules?
18764 need_lib_prefix=$need_lib_prefix
18766 # Do we need a version for libraries?
18767 need_version=$need_version
18769 # Whether dlopen is supported.
18770 dlopen_support=$enable_dlopen
18772 # Whether dlopen of programs is supported.
18773 dlopen_self=$enable_dlopen_self
18775 # Whether dlopen of statically linked programs is supported.
18776 dlopen_self_static=$enable_dlopen_self_static
18778 # Compiler flag to prevent dynamic linking.
18779 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18781 # Compiler flag to turn off builtin functions.
18782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18784 # Compiler flag to allow reflexive dlopens.
18785 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18787 # Compiler flag to generate shared objects directly from archives.
18788 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18790 # Compiler flag to generate thread-safe objects.
18791 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18793 # Library versioning type.
18794 version_type=$version_type
18796 # Format of library name prefix.
18797 libname_spec=$lt_libname_spec
18799 # List of archive names. First name is the real one, the rest are links.
18800 # The last name is the one that the linker finds with -lNAME.
18801 library_names_spec=$lt_library_names_spec
18803 # The coded name of the library, if different from the real name.
18804 soname_spec=$lt_soname_spec
18806 # Commands used to build and install an old-style archive.
18807 RANLIB=$lt_RANLIB
18808 old_archive_cmds=$lt_old_archive_cmds_GCJ
18809 old_postinstall_cmds=$lt_old_postinstall_cmds
18810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18812 # Create an old-style archive from a shared archive.
18813 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18815 # Create a temporary old-style archive to link instead of a shared archive.
18816 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18818 # Commands used to build and install a shared archive.
18819 archive_cmds=$lt_archive_cmds_GCJ
18820 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18821 postinstall_cmds=$lt_postinstall_cmds
18822 postuninstall_cmds=$lt_postuninstall_cmds
18824 # Commands used to build a loadable module (assumed same as above if empty)
18825 module_cmds=$lt_module_cmds_GCJ
18826 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18828 # Commands to strip libraries.
18829 old_striplib=$lt_old_striplib
18830 striplib=$lt_striplib
18832 # Dependencies to place before the objects being linked to create a
18833 # shared library.
18834 predep_objects=$lt_predep_objects_GCJ
18836 # Dependencies to place after the objects being linked to create a
18837 # shared library.
18838 postdep_objects=$lt_postdep_objects_GCJ
18840 # Dependencies to place before the objects being linked to create a
18841 # shared library.
18842 predeps=$lt_predeps_GCJ
18844 # Dependencies to place after the objects being linked to create a
18845 # shared library.
18846 postdeps=$lt_postdeps_GCJ
18848 # The library search path used internally by the compiler when linking
18849 # a shared library.
18850 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18852 # Method to check whether dependent libraries are shared objects.
18853 deplibs_check_method=$lt_deplibs_check_method
18855 # Command to use when deplibs_check_method == file_magic.
18856 file_magic_cmd=$lt_file_magic_cmd
18858 # Flag that allows shared libraries with undefined symbols to be built.
18859 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18861 # Flag that forces no undefined symbols.
18862 no_undefined_flag=$lt_no_undefined_flag_GCJ
18864 # Commands used to finish a libtool library installation in a directory.
18865 finish_cmds=$lt_finish_cmds
18867 # Same as above, but a single script fragment to be evaled but not shown.
18868 finish_eval=$lt_finish_eval
18870 # Take the output of nm and produce a listing of raw symbols and C names.
18871 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18873 # Transform the output of nm in a proper C declaration
18874 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18876 # Transform the output of nm in a C name address pair
18877 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18879 # This is the shared library runtime path variable.
18880 runpath_var=$runpath_var
18882 # This is the shared library path variable.
18883 shlibpath_var=$shlibpath_var
18885 # Is shlibpath searched before the hard-coded library search path?
18886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18888 # How to hardcode a shared library path into an executable.
18889 hardcode_action=$hardcode_action_GCJ
18891 # Whether we should hardcode library paths into libraries.
18892 hardcode_into_libs=$hardcode_into_libs
18894 # Flag to hardcode \$libdir into a binary during linking.
18895 # This must work even if \$libdir does not exist.
18896 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18898 # If ld is used when linking, flag to hardcode \$libdir into
18899 # a binary during linking. This must work even if \$libdir does
18900 # not exist.
18901 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18903 # Whether we need a single -rpath flag with a separated argument.
18904 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18906 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18907 # resulting binary.
18908 hardcode_direct=$hardcode_direct_GCJ
18910 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18911 # resulting binary.
18912 hardcode_minus_L=$hardcode_minus_L_GCJ
18914 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18915 # the resulting binary.
18916 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18918 # Set to yes if building a shared library automatically hardcodes DIR into the library
18919 # and all subsequent libraries and executables linked against it.
18920 hardcode_automatic=$hardcode_automatic_GCJ
18922 # Variables whose values should be saved in libtool wrapper scripts and
18923 # restored at relink time.
18924 variables_saved_for_relink="$variables_saved_for_relink"
18926 # Whether libtool must link a program against all its dependency libraries.
18927 link_all_deplibs=$link_all_deplibs_GCJ
18929 # Compile-time system search path for libraries
18930 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18932 # Run-time system search path for libraries
18933 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18935 # Fix the shell variable \$srcfile for the compiler.
18936 fix_srcfile_path="$fix_srcfile_path_GCJ"
18938 # Set to yes if exported symbols are required.
18939 always_export_symbols=$always_export_symbols_GCJ
18941 # The commands to list exported symbols.
18942 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18944 # The commands to extract the exported symbol list from a shared archive.
18945 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18947 # Symbols that should not be listed in the preloaded symbols.
18948 exclude_expsyms=$lt_exclude_expsyms_GCJ
18950 # Symbols that must always be exported.
18951 include_expsyms=$lt_include_expsyms_GCJ
18953 # ### END LIBTOOL TAG CONFIG: $tagname
18955 __EOF__
18958 else
18959 # If there is no Makefile yet, we rely on a make rule to execute
18960 # `config.status --recheck' to rerun these tests and create the
18961 # libtool script then.
18962 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18963 if test -f "$ltmain_in"; then
18964 test -f Makefile && make "$ltmain"
18969 ac_ext=c
18970 ac_cpp='$CPP $CPPFLAGS'
18971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18975 CC="$lt_save_CC"
18977 else
18978 tagname=""
18985 # Source file extension for RC test sources.
18986 ac_ext=rc
18988 # Object file extension for compiled RC test sources.
18989 objext=o
18990 objext_RC=$objext
18992 # Code to be used in simple compile tests
18993 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18995 # Code to be used in simple link tests
18996 lt_simple_link_test_code="$lt_simple_compile_test_code"
18998 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19000 # If no C compiler was specified, use CC.
19001 LTCC=${LTCC-"$CC"}
19003 # If no C compiler flags were specified, use CFLAGS.
19004 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19006 # Allow CC to be a program name with arguments.
19007 compiler=$CC
19010 # save warnings/boilerplate of simple test code
19011 ac_outfile=conftest.$ac_objext
19012 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19013 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19014 _lt_compiler_boilerplate=`cat conftest.err`
19015 $rm conftest*
19017 ac_outfile=conftest.$ac_objext
19018 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19019 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19020 _lt_linker_boilerplate=`cat conftest.err`
19021 $rm conftest*
19024 # Allow CC to be a program name with arguments.
19025 lt_save_CC="$CC"
19026 CC=${RC-"windres"}
19027 compiler=$CC
19028 compiler_RC=$CC
19029 for cc_temp in $compiler""; do
19030 case $cc_temp in
19031 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19032 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19033 \-*) ;;
19034 *) break;;
19035 esac
19036 done
19037 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19039 lt_cv_prog_compiler_c_o_RC=yes
19041 # The else clause should only fire when bootstrapping the
19042 # libtool distribution, otherwise you forgot to ship ltmain.sh
19043 # with your package, and you will get complaints that there are
19044 # no rules to generate ltmain.sh.
19045 if test -f "$ltmain"; then
19046 # See if we are running on zsh, and set the options which allow our commands through
19047 # without removal of \ escapes.
19048 if test -n "${ZSH_VERSION+set}" ; then
19049 setopt NO_GLOB_SUBST
19051 # Now quote all the things that may contain metacharacters while being
19052 # careful not to overquote the AC_SUBSTed values. We take copies of the
19053 # variables and quote the copies for generation of the libtool script.
19054 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19055 SED SHELL STRIP \
19056 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19057 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19058 deplibs_check_method reload_flag reload_cmds need_locks \
19059 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19060 lt_cv_sys_global_symbol_to_c_name_address \
19061 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19062 old_postinstall_cmds old_postuninstall_cmds \
19063 compiler_RC \
19064 CC_RC \
19065 LD_RC \
19066 lt_prog_compiler_wl_RC \
19067 lt_prog_compiler_pic_RC \
19068 lt_prog_compiler_static_RC \
19069 lt_prog_compiler_no_builtin_flag_RC \
19070 export_dynamic_flag_spec_RC \
19071 thread_safe_flag_spec_RC \
19072 whole_archive_flag_spec_RC \
19073 enable_shared_with_static_runtimes_RC \
19074 old_archive_cmds_RC \
19075 old_archive_from_new_cmds_RC \
19076 predep_objects_RC \
19077 postdep_objects_RC \
19078 predeps_RC \
19079 postdeps_RC \
19080 compiler_lib_search_path_RC \
19081 archive_cmds_RC \
19082 archive_expsym_cmds_RC \
19083 postinstall_cmds_RC \
19084 postuninstall_cmds_RC \
19085 old_archive_from_expsyms_cmds_RC \
19086 allow_undefined_flag_RC \
19087 no_undefined_flag_RC \
19088 export_symbols_cmds_RC \
19089 hardcode_libdir_flag_spec_RC \
19090 hardcode_libdir_flag_spec_ld_RC \
19091 hardcode_libdir_separator_RC \
19092 hardcode_automatic_RC \
19093 module_cmds_RC \
19094 module_expsym_cmds_RC \
19095 lt_cv_prog_compiler_c_o_RC \
19096 exclude_expsyms_RC \
19097 include_expsyms_RC; do
19099 case $var in
19100 old_archive_cmds_RC | \
19101 old_archive_from_new_cmds_RC | \
19102 archive_cmds_RC | \
19103 archive_expsym_cmds_RC | \
19104 module_cmds_RC | \
19105 module_expsym_cmds_RC | \
19106 old_archive_from_expsyms_cmds_RC | \
19107 export_symbols_cmds_RC | \
19108 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19109 postinstall_cmds | postuninstall_cmds | \
19110 old_postinstall_cmds | old_postuninstall_cmds | \
19111 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19112 # Double-quote double-evaled strings.
19113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19118 esac
19119 done
19121 case $lt_echo in
19122 *'\$0 --fallback-echo"')
19123 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19125 esac
19127 cfgfile="$ofile"
19129 cat <<__EOF__ >> "$cfgfile"
19130 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19134 # Shell to use when invoking shell scripts.
19135 SHELL=$lt_SHELL
19137 # Whether or not to build shared libraries.
19138 build_libtool_libs=$enable_shared
19140 # Whether or not to build static libraries.
19141 build_old_libs=$enable_static
19143 # Whether or not to add -lc for building shared libraries.
19144 build_libtool_need_lc=$archive_cmds_need_lc_RC
19146 # Whether or not to disallow shared libs when runtime libs are static
19147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19149 # Whether or not to optimize for fast installation.
19150 fast_install=$enable_fast_install
19152 # The host system.
19153 host_alias=$host_alias
19154 host=$host
19155 host_os=$host_os
19157 # The build system.
19158 build_alias=$build_alias
19159 build=$build
19160 build_os=$build_os
19162 # An echo program that does not interpret backslashes.
19163 echo=$lt_echo
19165 # The archiver.
19166 AR=$lt_AR
19167 AR_FLAGS=$lt_AR_FLAGS
19169 # A C compiler.
19170 LTCC=$lt_LTCC
19172 # LTCC compiler flags.
19173 LTCFLAGS=$lt_LTCFLAGS
19175 # A language-specific compiler.
19176 CC=$lt_compiler_RC
19178 # Is the compiler the GNU C compiler?
19179 with_gcc=$GCC_RC
19181 # An ERE matcher.
19182 EGREP=$lt_EGREP
19184 # The linker used to build libraries.
19185 LD=$lt_LD_RC
19187 # Whether we need hard or soft links.
19188 LN_S=$lt_LN_S
19190 # A BSD-compatible nm program.
19191 NM=$lt_NM
19193 # A symbol stripping program
19194 STRIP=$lt_STRIP
19196 # Used to examine libraries when file_magic_cmd begins "file"
19197 MAGIC_CMD=$MAGIC_CMD
19199 # Used on cygwin: DLL creation program.
19200 DLLTOOL="$DLLTOOL"
19202 # Used on cygwin: object dumper.
19203 OBJDUMP="$OBJDUMP"
19205 # Used on cygwin: assembler.
19206 AS="$AS"
19208 # The name of the directory that contains temporary libtool files.
19209 objdir=$objdir
19211 # How to create reloadable object files.
19212 reload_flag=$lt_reload_flag
19213 reload_cmds=$lt_reload_cmds
19215 # How to pass a linker flag through the compiler.
19216 wl=$lt_lt_prog_compiler_wl_RC
19218 # Object file suffix (normally "o").
19219 objext="$ac_objext"
19221 # Old archive suffix (normally "a").
19222 libext="$libext"
19224 # Shared library suffix (normally ".so").
19225 shrext_cmds='$shrext_cmds'
19227 # Executable file suffix (normally "").
19228 exeext="$exeext"
19230 # Additional compiler flags for building library objects.
19231 pic_flag=$lt_lt_prog_compiler_pic_RC
19232 pic_mode=$pic_mode
19234 # What is the maximum length of a command?
19235 max_cmd_len=$lt_cv_sys_max_cmd_len
19237 # Does compiler simultaneously support -c and -o options?
19238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19240 # Must we lock files when doing compilation?
19241 need_locks=$lt_need_locks
19243 # Do we need the lib prefix for modules?
19244 need_lib_prefix=$need_lib_prefix
19246 # Do we need a version for libraries?
19247 need_version=$need_version
19249 # Whether dlopen is supported.
19250 dlopen_support=$enable_dlopen
19252 # Whether dlopen of programs is supported.
19253 dlopen_self=$enable_dlopen_self
19255 # Whether dlopen of statically linked programs is supported.
19256 dlopen_self_static=$enable_dlopen_self_static
19258 # Compiler flag to prevent dynamic linking.
19259 link_static_flag=$lt_lt_prog_compiler_static_RC
19261 # Compiler flag to turn off builtin functions.
19262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19264 # Compiler flag to allow reflexive dlopens.
19265 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19267 # Compiler flag to generate shared objects directly from archives.
19268 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19270 # Compiler flag to generate thread-safe objects.
19271 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19273 # Library versioning type.
19274 version_type=$version_type
19276 # Format of library name prefix.
19277 libname_spec=$lt_libname_spec
19279 # List of archive names. First name is the real one, the rest are links.
19280 # The last name is the one that the linker finds with -lNAME.
19281 library_names_spec=$lt_library_names_spec
19283 # The coded name of the library, if different from the real name.
19284 soname_spec=$lt_soname_spec
19286 # Commands used to build and install an old-style archive.
19287 RANLIB=$lt_RANLIB
19288 old_archive_cmds=$lt_old_archive_cmds_RC
19289 old_postinstall_cmds=$lt_old_postinstall_cmds
19290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19292 # Create an old-style archive from a shared archive.
19293 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19295 # Create a temporary old-style archive to link instead of a shared archive.
19296 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19298 # Commands used to build and install a shared archive.
19299 archive_cmds=$lt_archive_cmds_RC
19300 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19301 postinstall_cmds=$lt_postinstall_cmds
19302 postuninstall_cmds=$lt_postuninstall_cmds
19304 # Commands used to build a loadable module (assumed same as above if empty)
19305 module_cmds=$lt_module_cmds_RC
19306 module_expsym_cmds=$lt_module_expsym_cmds_RC
19308 # Commands to strip libraries.
19309 old_striplib=$lt_old_striplib
19310 striplib=$lt_striplib
19312 # Dependencies to place before the objects being linked to create a
19313 # shared library.
19314 predep_objects=$lt_predep_objects_RC
19316 # Dependencies to place after the objects being linked to create a
19317 # shared library.
19318 postdep_objects=$lt_postdep_objects_RC
19320 # Dependencies to place before the objects being linked to create a
19321 # shared library.
19322 predeps=$lt_predeps_RC
19324 # Dependencies to place after the objects being linked to create a
19325 # shared library.
19326 postdeps=$lt_postdeps_RC
19328 # The library search path used internally by the compiler when linking
19329 # a shared library.
19330 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19332 # Method to check whether dependent libraries are shared objects.
19333 deplibs_check_method=$lt_deplibs_check_method
19335 # Command to use when deplibs_check_method == file_magic.
19336 file_magic_cmd=$lt_file_magic_cmd
19338 # Flag that allows shared libraries with undefined symbols to be built.
19339 allow_undefined_flag=$lt_allow_undefined_flag_RC
19341 # Flag that forces no undefined symbols.
19342 no_undefined_flag=$lt_no_undefined_flag_RC
19344 # Commands used to finish a libtool library installation in a directory.
19345 finish_cmds=$lt_finish_cmds
19347 # Same as above, but a single script fragment to be evaled but not shown.
19348 finish_eval=$lt_finish_eval
19350 # Take the output of nm and produce a listing of raw symbols and C names.
19351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19353 # Transform the output of nm in a proper C declaration
19354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19356 # Transform the output of nm in a C name address pair
19357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19359 # This is the shared library runtime path variable.
19360 runpath_var=$runpath_var
19362 # This is the shared library path variable.
19363 shlibpath_var=$shlibpath_var
19365 # Is shlibpath searched before the hard-coded library search path?
19366 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19368 # How to hardcode a shared library path into an executable.
19369 hardcode_action=$hardcode_action_RC
19371 # Whether we should hardcode library paths into libraries.
19372 hardcode_into_libs=$hardcode_into_libs
19374 # Flag to hardcode \$libdir into a binary during linking.
19375 # This must work even if \$libdir does not exist.
19376 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19378 # If ld is used when linking, flag to hardcode \$libdir into
19379 # a binary during linking. This must work even if \$libdir does
19380 # not exist.
19381 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19383 # Whether we need a single -rpath flag with a separated argument.
19384 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19386 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19387 # resulting binary.
19388 hardcode_direct=$hardcode_direct_RC
19390 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19391 # resulting binary.
19392 hardcode_minus_L=$hardcode_minus_L_RC
19394 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19395 # the resulting binary.
19396 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19398 # Set to yes if building a shared library automatically hardcodes DIR into the library
19399 # and all subsequent libraries and executables linked against it.
19400 hardcode_automatic=$hardcode_automatic_RC
19402 # Variables whose values should be saved in libtool wrapper scripts and
19403 # restored at relink time.
19404 variables_saved_for_relink="$variables_saved_for_relink"
19406 # Whether libtool must link a program against all its dependency libraries.
19407 link_all_deplibs=$link_all_deplibs_RC
19409 # Compile-time system search path for libraries
19410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19412 # Run-time system search path for libraries
19413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19415 # Fix the shell variable \$srcfile for the compiler.
19416 fix_srcfile_path="$fix_srcfile_path_RC"
19418 # Set to yes if exported symbols are required.
19419 always_export_symbols=$always_export_symbols_RC
19421 # The commands to list exported symbols.
19422 export_symbols_cmds=$lt_export_symbols_cmds_RC
19424 # The commands to extract the exported symbol list from a shared archive.
19425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19427 # Symbols that should not be listed in the preloaded symbols.
19428 exclude_expsyms=$lt_exclude_expsyms_RC
19430 # Symbols that must always be exported.
19431 include_expsyms=$lt_include_expsyms_RC
19433 # ### END LIBTOOL TAG CONFIG: $tagname
19435 __EOF__
19438 else
19439 # If there is no Makefile yet, we rely on a make rule to execute
19440 # `config.status --recheck' to rerun these tests and create the
19441 # libtool script then.
19442 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19443 if test -f "$ltmain_in"; then
19444 test -f Makefile && make "$ltmain"
19449 ac_ext=c
19450 ac_cpp='$CPP $CPPFLAGS'
19451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19455 CC="$lt_save_CC"
19460 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19461 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19462 { (exit 1); exit 1; }; }
19464 esac
19466 # Append the new tag name to the list of available tags.
19467 if test -n "$tagname" ; then
19468 available_tags="$available_tags $tagname"
19471 done
19472 IFS="$lt_save_ifs"
19474 # Now substitute the updated list of available tags.
19475 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19476 mv "${ofile}T" "$ofile"
19477 chmod +x "$ofile"
19478 else
19479 rm -f "${ofile}T"
19480 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19481 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19482 { (exit 1); exit 1; }; }
19488 # This can be used to rebuild libtool when needed
19489 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19491 # Always use our own libtool.
19492 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19494 # Prevent multiple expansion
19515 # Find a good install program. We prefer a C program (faster),
19516 # so one script is as good as another. But avoid the broken or
19517 # incompatible versions:
19518 # SysV /etc/install, /usr/sbin/install
19519 # SunOS /usr/etc/install
19520 # IRIX /sbin/install
19521 # AIX /bin/install
19522 # AmigaOS /C/install, which installs bootblocks on floppy discs
19523 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19524 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19525 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19526 # OS/2's system install, which has a completely different semantic
19527 # ./install, which can be erroneously created by make from ./install.sh.
19528 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19529 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19530 if test -z "$INSTALL"; then
19531 if test "${ac_cv_path_install+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 else
19534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19535 for as_dir in $PATH
19537 IFS=$as_save_IFS
19538 test -z "$as_dir" && as_dir=.
19539 # Account for people who put trailing slashes in PATH elements.
19540 case $as_dir/ in
19541 ./ | .// | /cC/* | \
19542 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19543 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19544 /usr/ucb/* ) ;;
19546 # OSF1 and SCO ODT 3.0 have their own names for install.
19547 # Don't use installbsd from OSF since it installs stuff as root
19548 # by default.
19549 for ac_prog in ginstall scoinst install; do
19550 for ac_exec_ext in '' $ac_executable_extensions; do
19551 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
19552 if test $ac_prog = install &&
19553 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19554 # AIX install. It has an incompatible calling convention.
19556 elif test $ac_prog = install &&
19557 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19558 # program-specific install script used by HP pwplus--don't use.
19560 else
19561 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19562 break 3
19565 done
19566 done
19568 esac
19569 done
19570 IFS=$as_save_IFS
19574 if test "${ac_cv_path_install+set}" = set; then
19575 INSTALL=$ac_cv_path_install
19576 else
19577 # As a last resort, use the slow shell script. Don't cache a
19578 # value for INSTALL within a source directory, because that will
19579 # break other packages using the cache if that directory is
19580 # removed, or if the value is a relative name.
19581 INSTALL=$ac_install_sh
19584 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19585 echo "${ECHO_T}$INSTALL" >&6; }
19587 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19588 # It thinks the first close brace ends the variable substitution.
19589 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19591 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19593 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19595 ac_ext=cpp
19596 ac_cpp='$CXXCPP $CPPFLAGS'
19597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19606 if test "$cross_compiling" = "yes"; then
19607 MYPATH=":"
19608 else
19609 # MYPATH="/bin:/usr/bin:/usr/local/bin:$PATH:/sbin:/usr/sbin:/usr/local/sbin:/opt/gnu/bin"
19610 MYPATH=$PATH
19613 # Extract the first word of "python", so it can be a program name with args.
19614 set dummy python; ac_word=$2
19615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19617 if test "${ac_cv_path___PYTHON+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19619 else
19620 case $__PYTHON in
19621 [\\/]* | ?:[\\/]*)
19622 ac_cv_path___PYTHON="$__PYTHON" # Let the user override the test with a path.
19625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19626 for as_dir in $MYPATH
19628 IFS=$as_save_IFS
19629 test -z "$as_dir" && as_dir=.
19630 for ac_exec_ext in '' $ac_executable_extensions; do
19631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19632 ac_cv_path___PYTHON="$as_dir/$ac_word$ac_exec_ext"
19633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19634 break 2
19636 done
19637 done
19638 IFS=$as_save_IFS
19640 test -z "$ac_cv_path___PYTHON" && ac_cv_path___PYTHON="/usr/bin/python"
19642 esac
19644 __PYTHON=$ac_cv_path___PYTHON
19645 if test -n "$__PYTHON"; then
19646 { echo "$as_me:$LINENO: result: $__PYTHON" >&5
19647 echo "${ECHO_T}$__PYTHON" >&6; }
19648 else
19649 { echo "$as_me:$LINENO: result: no" >&5
19650 echo "${ECHO_T}no" >&6; }
19655 LIBZTHREAD_MAJOR_VERSION=2
19656 LIBZTHREAD_MINOR_VERSION=3
19657 LIBZTHREAD_MICRO_VERSION=2
19658 LT_RELEASE=$LIBZTHREAD_MAJOR_VERSION.$LIBZTHREAD_MINOR_VERSION.$LIBZTHREAD_MICRO_VERSION
19659 LT_CURRENT=$LIBZTHREAD_MAJOR_VERSION
19660 LT_REVISION=$LIBZTHREAD_MINOR_VERSION
19661 LT_AGE=$LIBZTHREAD_MICRO_VERSION
19663 LIBMANGOSSCRIPT_MAJOR_VERSION=0
19664 LIBMANGOSSCRIPT_MINOR_VERSION=2
19665 LIBMANGOSSCRIPT_MICRO_VERSION=0
19666 LTMS_RELEASE=$LIBMANGOSSCRIPT_MAJOR_VERSION.$LIBMANGOSSCRIPT_MINOR_VERSION.$LIBMANGOSSCRIPT_MICRO_VERSION
19667 LTMS_CURRENT=$LIBMANGOSSCRIPT_MAJOR_VERSION
19668 LTMS_REVISION=$LIBMANGOSSCRIPT_MINOR_VERSION
19669 LTMS_AGE=$LIBMANGOSSCRIPT_MICRO_VERSION
19671 COMPILER_OPTIONS=""
19672 LINKER_OPTIONS=""
19674 # check for openssl path given
19676 # Check whether --with-openssl was given.
19677 if test "${with_openssl+set}" = set; then
19678 withval=$with_openssl;
19679 as_ac_File=`echo "ac_cv_file_$withval/include/openssl/ssl.h" | $as_tr_sh`
19680 { echo "$as_me:$LINENO: checking for $withval/include/openssl/ssl.h" >&5
19681 echo $ECHO_N "checking for $withval/include/openssl/ssl.h... $ECHO_C" >&6; }
19682 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685 test "$cross_compiling" = yes &&
19686 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
19687 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
19688 { (exit 1); exit 1; }; }
19689 if test -r "$withval/include/openssl/ssl.h"; then
19690 eval "$as_ac_File=yes"
19691 else
19692 eval "$as_ac_File=no"
19695 ac_res=`eval echo '${'$as_ac_File'}'`
19696 { echo "$as_me:$LINENO: result: $ac_res" >&5
19697 echo "${ECHO_T}$ac_res" >&6; }
19698 if test `eval echo '${'$as_ac_File'}'` = yes; then
19700 OPENSSL_INCLUDES="-I$withval/include"
19701 OPENSSL_LDFLAGS="-L$withval/lib"
19702 else
19703 { { echo "$as_me:$LINENO: error: Directory '$withval' does not exist, or does not contain OpenSSL" >&5
19704 echo "$as_me: error: Directory '$withval' does not exist, or does not contain OpenSSL" >&2;}
19705 { (exit 1); exit 1; }; }
19708 else
19710 OPENSSL_INCLUDES=""
19711 OPENSSL_LDFLAGS=""
19718 # check for mysql path given
19720 # Check whether --with-mysql was given.
19721 if test "${with_mysql+set}" = set; then
19722 withval=$with_mysql;
19723 as_ac_File=`echo "ac_cv_file_$withval/include/mysql.h" | $as_tr_sh`
19724 { echo "$as_me:$LINENO: checking for $withval/include/mysql.h" >&5
19725 echo $ECHO_N "checking for $withval/include/mysql.h... $ECHO_C" >&6; }
19726 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
19727 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 else
19729 test "$cross_compiling" = yes &&
19730 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
19731 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
19732 { (exit 1); exit 1; }; }
19733 if test -r "$withval/include/mysql.h"; then
19734 eval "$as_ac_File=yes"
19735 else
19736 eval "$as_ac_File=no"
19739 ac_res=`eval echo '${'$as_ac_File'}'`
19740 { echo "$as_me:$LINENO: result: $ac_res" >&5
19741 echo "${ECHO_T}$ac_res" >&6; }
19742 if test `eval echo '${'$as_ac_File'}'` = yes; then
19743 MYSQL_INCLUDES="-I$withval/include"
19744 MYSQL_LDFLAGS="-L$withval/lib"
19745 else
19746 { { echo "$as_me:$LINENO: error: Directory '$withval' does not exist, or does not contain MySQL" >&5
19747 echo "$as_me: error: Directory '$withval' does not exist, or does not contain MySQL" >&2;}
19748 { (exit 1); exit 1; }; }
19751 else
19753 MYSQL_INCLUDES="-I/usr/include/mysql -I/usr/local/include/mysql"
19754 MYSQL_LDFLAGS="-L/usr/lib/mysql -L/usr/local/lib/mysql"
19761 INCLUDES="$MYSQL_INCLUDES $OPENSSL_INCLUDES"
19762 LDFLAGS="$MYSQL_LDFLAGS $OPENSSL_LDFLAGS"
19769 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19770 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
19771 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774 ac_check_lib_save_LIBS=$LIBS
19775 LIBS="-lpthread $LIBS"
19776 cat >conftest.$ac_ext <<_ACEOF
19777 /* confdefs.h. */
19778 _ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19783 /* Override any GCC internal prototype to avoid an error.
19784 Use char because int might match the return type of a GCC
19785 builtin and then its argument prototype would still apply. */
19786 #ifdef __cplusplus
19787 extern "C"
19788 #endif
19789 char pthread_create ();
19791 main ()
19793 return pthread_create ();
19795 return 0;
19797 _ACEOF
19798 rm -f conftest.$ac_objext conftest$ac_exeext
19799 if { (ac_try="$ac_link"
19800 case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803 esac
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_link") 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19813 { (case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_try") 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; } &&
19822 { ac_try='test -s conftest$ac_exeext'
19823 { (case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826 esac
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_try") 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 ac_cv_lib_pthread_pthread_create=yes
19833 else
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 ac_cv_lib_pthread_pthread_create=no
19840 rm -f core conftest.err conftest.$ac_objext \
19841 conftest$ac_exeext conftest.$ac_ext
19842 LIBS=$ac_check_lib_save_LIBS
19844 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19845 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
19846 if test $ac_cv_lib_pthread_pthread_create = yes; then
19847 cat >>confdefs.h <<_ACEOF
19848 #define HAVE_LIBPTHREAD 1
19849 _ACEOF
19851 LIBS="-lpthread $LIBS"
19853 else
19854 LDFLAGS="-pthread $LDFLAGS"
19855 cat >conftest.$ac_ext <<_ACEOF
19856 /* confdefs.h. */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 char pthread_create();
19863 main ()
19865 pthread_create();
19867 return 0;
19869 _ACEOF
19870 rm -f conftest.$ac_objext conftest$ac_exeext
19871 if { (ac_try="$ac_link"
19872 case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19875 esac
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_link") 2>conftest.er1
19878 ac_status=$?
19879 grep -v '^ *+' conftest.er1 >conftest.err
19880 rm -f conftest.er1
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19885 { (case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19888 esac
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_try") 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest$ac_exeext'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19901 ac_status=$?
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; }; then
19905 else
19906 echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19909 { { echo "$as_me:$LINENO: error: Missing pthread" >&5
19910 echo "$as_me: error: Missing pthread" >&2;}
19911 { (exit 1); exit 1; }; }
19914 rm -f core conftest.err conftest.$ac_objext \
19915 conftest$ac_exeext conftest.$ac_ext
19920 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
19921 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
19922 if test "${ac_cv_lib_z_compress+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925 ac_check_lib_save_LIBS=$LIBS
19926 LIBS="-lz $LIBS"
19927 cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h. */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19934 /* Override any GCC internal prototype to avoid an error.
19935 Use char because int might match the return type of a GCC
19936 builtin and then its argument prototype would still apply. */
19937 #ifdef __cplusplus
19938 extern "C"
19939 #endif
19940 char compress ();
19942 main ()
19944 return compress ();
19946 return 0;
19948 _ACEOF
19949 rm -f conftest.$ac_objext conftest$ac_exeext
19950 if { (ac_try="$ac_link"
19951 case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_link") 2>conftest.er1
19957 ac_status=$?
19958 grep -v '^ *+' conftest.er1 >conftest.err
19959 rm -f conftest.er1
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } &&
19963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19964 { (case "(($ac_try" in
19965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966 *) ac_try_echo=$ac_try;;
19967 esac
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_try") 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest$ac_exeext'
19974 { (case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19977 esac
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_try") 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
19983 ac_cv_lib_z_compress=yes
19984 else
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 ac_cv_lib_z_compress=no
19991 rm -f core conftest.err conftest.$ac_objext \
19992 conftest$ac_exeext conftest.$ac_ext
19993 LIBS=$ac_check_lib_save_LIBS
19995 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
19996 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
19997 if test $ac_cv_lib_z_compress = yes; then
19998 cat >>confdefs.h <<_ACEOF
19999 #define HAVE_LIBZ 1
20000 _ACEOF
20002 LIBS="-lz $LIBS"
20004 else
20005 { { echo "$as_me:$LINENO: error: Missing zlib" >&5
20006 echo "$as_me: error: Missing zlib" >&2;}
20007 { (exit 1); exit 1; }; }
20011 { echo "$as_me:$LINENO: checking for ftime in -lcompat" >&5
20012 echo $ECHO_N "checking for ftime in -lcompat... $ECHO_C" >&6; }
20013 if test "${ac_cv_lib_compat_ftime_+set}" = set; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20015 else
20016 ac_check_lib_save_LIBS=$LIBS
20017 LIBS="-lcompat $LIBS"
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h. */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20025 /* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
20028 #ifdef __cplusplus
20029 extern "C"
20030 #endif
20031 char ftime ();
20033 main ()
20035 return ftime ();
20037 return 0;
20039 _ACEOF
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_link") 2>conftest.er1
20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } &&
20054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20055 { (case "(($ac_try" in
20056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057 *) ac_try_echo=$ac_try;;
20058 esac
20059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060 (eval "$ac_try") 2>&5
20061 ac_status=$?
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; } &&
20064 { ac_try='test -s conftest$ac_exeext'
20065 { (case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068 esac
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_try") 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_cv_lib_compat_ftime_=yes
20075 else
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 ac_cv_lib_compat_ftime_=no
20082 rm -f core conftest.err conftest.$ac_objext \
20083 conftest$ac_exeext conftest.$ac_ext
20084 LIBS=$ac_check_lib_save_LIBS
20086 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_ftime_" >&5
20087 echo "${ECHO_T}$ac_cv_lib_compat_ftime_" >&6; }
20088 if test $ac_cv_lib_compat_ftime_ = yes; then
20089 cat >>confdefs.h <<_ACEOF
20090 #define HAVE_LIBCOMPAT 1
20091 _ACEOF
20093 LIBS="-lcompat $LIBS"
20098 { echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient_r" >&5
20099 echo $ECHO_N "checking for mysql_init in -lmysqlclient_r... $ECHO_C" >&6; }
20100 if test "${ac_cv_lib_mysqlclient_r_mysql_init+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103 ac_check_lib_save_LIBS=$LIBS
20104 LIBS="-lmysqlclient_r $LIBS"
20105 cat >conftest.$ac_ext <<_ACEOF
20106 /* confdefs.h. */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20112 /* Override any GCC internal prototype to avoid an error.
20113 Use char because int might match the return type of a GCC
20114 builtin and then its argument prototype would still apply. */
20115 #ifdef __cplusplus
20116 extern "C"
20117 #endif
20118 char mysql_init ();
20120 main ()
20122 return mysql_init ();
20124 return 0;
20126 _ACEOF
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20132 esac
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_link") 2>conftest.er1
20135 ac_status=$?
20136 grep -v '^ *+' conftest.er1 >conftest.err
20137 rm -f conftest.er1
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } &&
20141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20142 { (case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20145 esac
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_try") 2>&5
20148 ac_status=$?
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; } &&
20151 { ac_try='test -s conftest$ac_exeext'
20152 { (case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_try") 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 ac_cv_lib_mysqlclient_r_mysql_init=yes
20162 else
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20166 ac_cv_lib_mysqlclient_r_mysql_init=no
20169 rm -f core conftest.err conftest.$ac_objext \
20170 conftest$ac_exeext conftest.$ac_ext
20171 LIBS=$ac_check_lib_save_LIBS
20173 { echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
20174 echo "${ECHO_T}$ac_cv_lib_mysqlclient_r_mysql_init" >&6; }
20175 if test $ac_cv_lib_mysqlclient_r_mysql_init = yes; then
20176 cat >>confdefs.h <<_ACEOF
20177 #define HAVE_LIBMYSQLCLIENT_R 1
20178 _ACEOF
20180 LIBS="-lmysqlclient_r $LIBS"
20182 else
20184 { echo "$as_me:$LINENO: checking for mysql_init in -lmysql" >&5
20185 echo $ECHO_N "checking for mysql_init in -lmysql... $ECHO_C" >&6; }
20186 if test "${ac_cv_lib_mysql_mysql_init+set}" = set; then
20187 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 else
20189 ac_check_lib_save_LIBS=$LIBS
20190 LIBS="-lmysql $LIBS"
20191 cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h. */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20198 /* Override any GCC internal prototype to avoid an error.
20199 Use char because int might match the return type of a GCC
20200 builtin and then its argument prototype would still apply. */
20201 #ifdef __cplusplus
20202 extern "C"
20203 #endif
20204 char mysql_init ();
20206 main ()
20208 return mysql_init ();
20210 return 0;
20212 _ACEOF
20213 rm -f conftest.$ac_objext conftest$ac_exeext
20214 if { (ac_try="$ac_link"
20215 case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20218 esac
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_link") 2>conftest.er1
20221 ac_status=$?
20222 grep -v '^ *+' conftest.er1 >conftest.err
20223 rm -f conftest.er1
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } &&
20227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20228 { (case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20231 esac
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_try") 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; } &&
20237 { ac_try='test -s conftest$ac_exeext'
20238 { (case "(($ac_try" in
20239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240 *) ac_try_echo=$ac_try;;
20241 esac
20242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20243 (eval "$ac_try") 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_cv_lib_mysql_mysql_init=yes
20248 else
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 ac_cv_lib_mysql_mysql_init=no
20255 rm -f core conftest.err conftest.$ac_objext \
20256 conftest$ac_exeext conftest.$ac_ext
20257 LIBS=$ac_check_lib_save_LIBS
20259 { echo "$as_me:$LINENO: result: $ac_cv_lib_mysql_mysql_init" >&5
20260 echo "${ECHO_T}$ac_cv_lib_mysql_mysql_init" >&6; }
20261 if test $ac_cv_lib_mysql_mysql_init = yes; then
20262 cat >>confdefs.h <<_ACEOF
20263 #define HAVE_LIBMYSQL 1
20264 _ACEOF
20266 LIBS="-lmysql $LIBS"
20268 else
20269 { { echo "$as_me:$LINENO: error: Missing mysql" >&5
20270 echo "$as_me: error: Missing mysql" >&2;}
20271 { (exit 1); exit 1; }; }
20277 { echo "$as_me:$LINENO: checking for SHA1_Init in -lssl" >&5
20278 echo $ECHO_N "checking for SHA1_Init in -lssl... $ECHO_C" >&6; }
20279 if test "${ac_cv_lib_ssl_SHA1_Init+set}" = set; then
20280 echo $ECHO_N "(cached) $ECHO_C" >&6
20281 else
20282 ac_check_lib_save_LIBS=$LIBS
20283 LIBS="-lssl $LIBS"
20284 cat >conftest.$ac_ext <<_ACEOF
20285 /* confdefs.h. */
20286 _ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20291 /* Override any GCC internal prototype to avoid an error.
20292 Use char because int might match the return type of a GCC
20293 builtin and then its argument prototype would still apply. */
20294 #ifdef __cplusplus
20295 extern "C"
20296 #endif
20297 char SHA1_Init ();
20299 main ()
20301 return SHA1_Init ();
20303 return 0;
20305 _ACEOF
20306 rm -f conftest.$ac_objext conftest$ac_exeext
20307 if { (ac_try="$ac_link"
20308 case "(($ac_try" in
20309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20311 esac
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_link") 2>conftest.er1
20314 ac_status=$?
20315 grep -v '^ *+' conftest.er1 >conftest.err
20316 rm -f conftest.er1
20317 cat conftest.err >&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } &&
20320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20321 { (case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_try") 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; } &&
20330 { ac_try='test -s conftest$ac_exeext'
20331 { (case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_try") 2>&5
20337 ac_status=$?
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; }; then
20340 ac_cv_lib_ssl_SHA1_Init=yes
20341 else
20342 echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20345 ac_cv_lib_ssl_SHA1_Init=no
20348 rm -f core conftest.err conftest.$ac_objext \
20349 conftest$ac_exeext conftest.$ac_ext
20350 LIBS=$ac_check_lib_save_LIBS
20352 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SHA1_Init" >&5
20353 echo "${ECHO_T}$ac_cv_lib_ssl_SHA1_Init" >&6; }
20354 if test $ac_cv_lib_ssl_SHA1_Init = yes; then
20355 cat >>confdefs.h <<_ACEOF
20356 #define HAVE_LIBSSL 1
20357 _ACEOF
20359 LIBS="-lssl $LIBS"
20361 else
20363 { echo "$as_me:$LINENO: checking for SHA1_Init in -lssl" >&5
20364 echo $ECHO_N "checking for SHA1_Init in -lssl... $ECHO_C" >&6; }
20365 if test "${ac_cv_lib_ssl_SHA1_Init+set}" = set; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20367 else
20368 ac_check_lib_save_LIBS=$LIBS
20369 LIBS="-lssl $LIBS"
20370 cat >conftest.$ac_ext <<_ACEOF
20371 /* confdefs.h. */
20372 _ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20377 /* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
20380 #ifdef __cplusplus
20381 extern "C"
20382 #endif
20383 char SHA1_Init ();
20385 main ()
20387 return SHA1_Init ();
20389 return 0;
20391 _ACEOF
20392 rm -f conftest.$ac_objext conftest$ac_exeext
20393 if { (ac_try="$ac_link"
20394 case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20397 esac
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399 (eval "$ac_link") 2>conftest.er1
20400 ac_status=$?
20401 grep -v '^ *+' conftest.er1 >conftest.err
20402 rm -f conftest.er1
20403 cat conftest.err >&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } &&
20406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20407 { (case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20410 esac
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_try") 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; } &&
20416 { ac_try='test -s conftest$ac_exeext'
20417 { (case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20420 esac
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_try") 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
20426 ac_cv_lib_ssl_SHA1_Init=yes
20427 else
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20431 ac_cv_lib_ssl_SHA1_Init=no
20434 rm -f core conftest.err conftest.$ac_objext \
20435 conftest$ac_exeext conftest.$ac_ext
20436 LIBS=$ac_check_lib_save_LIBS
20438 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SHA1_Init" >&5
20439 echo "${ECHO_T}$ac_cv_lib_ssl_SHA1_Init" >&6; }
20440 if test $ac_cv_lib_ssl_SHA1_Init = yes; then
20441 cat >>confdefs.h <<_ACEOF
20442 #define HAVE_LIBSSL 1
20443 _ACEOF
20445 LIBS="-lssl $LIBS"
20447 else
20448 { { echo "$as_me:$LINENO: error: Missing openssl" >&5
20449 echo "$as_me: error: Missing openssl" >&2;}
20450 { (exit 1); exit 1; }; }
20456 CPPFLAGS_SAVE=$CPPFLAGS
20457 CPPFLAGS=$INCLUDES $CPPFLAGS
20460 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20461 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20462 if test "${ac_cv_header_stdc+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 else
20465 cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h. */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20471 #include <stdlib.h>
20472 #include <stdarg.h>
20473 #include <string.h>
20474 #include <float.h>
20477 main ()
20481 return 0;
20483 _ACEOF
20484 rm -f conftest.$ac_objext
20485 if { (ac_try="$ac_compile"
20486 case "(($ac_try" in
20487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488 *) ac_try_echo=$ac_try;;
20489 esac
20490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491 (eval "$ac_compile") 2>conftest.er1
20492 ac_status=$?
20493 grep -v '^ *+' conftest.er1 >conftest.err
20494 rm -f conftest.er1
20495 cat conftest.err >&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } &&
20498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20499 { (case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20502 esac
20503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504 (eval "$ac_try") 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; } &&
20508 { ac_try='test -s conftest.$ac_objext'
20509 { (case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20512 esac
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_try") 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; }; then
20518 ac_cv_header_stdc=yes
20519 else
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20523 ac_cv_header_stdc=no
20526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20528 if test $ac_cv_header_stdc = yes; then
20529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h. */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 #include <string.h>
20538 _ACEOF
20539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20540 $EGREP "memchr" >/dev/null 2>&1; then
20542 else
20543 ac_cv_header_stdc=no
20545 rm -f conftest*
20549 if test $ac_cv_header_stdc = yes; then
20550 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20551 cat >conftest.$ac_ext <<_ACEOF
20552 /* confdefs.h. */
20553 _ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20557 #include <stdlib.h>
20559 _ACEOF
20560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20561 $EGREP "free" >/dev/null 2>&1; then
20563 else
20564 ac_cv_header_stdc=no
20566 rm -f conftest*
20570 if test $ac_cv_header_stdc = yes; then
20571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20572 if test "$cross_compiling" = yes; then
20574 else
20575 cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h. */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 #include <ctype.h>
20582 #include <stdlib.h>
20583 #if ((' ' & 0x0FF) == 0x020)
20584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20586 #else
20587 # define ISLOWER(c) \
20588 (('a' <= (c) && (c) <= 'i') \
20589 || ('j' <= (c) && (c) <= 'r') \
20590 || ('s' <= (c) && (c) <= 'z'))
20591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20592 #endif
20594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20596 main ()
20598 int i;
20599 for (i = 0; i < 256; i++)
20600 if (XOR (islower (i), ISLOWER (i))
20601 || toupper (i) != TOUPPER (i))
20602 return 2;
20603 return 0;
20605 _ACEOF
20606 rm -f conftest$ac_exeext
20607 if { (ac_try="$ac_link"
20608 case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20611 esac
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613 (eval "$ac_link") 2>&5
20614 ac_status=$?
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20617 { (case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20620 esac
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_try") 2>&5
20623 ac_status=$?
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; }; then
20627 else
20628 echo "$as_me: program exited with status $ac_status" >&5
20629 echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20632 ( exit $ac_status )
20633 ac_cv_header_stdc=no
20635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20641 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20642 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20643 if test $ac_cv_header_stdc = yes; then
20645 cat >>confdefs.h <<\_ACEOF
20646 #define STDC_HEADERS 1
20647 _ACEOF
20651 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
20652 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
20653 if test "${ac_cv_header_stdbool_h+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 else
20656 cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h. */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20663 #include <stdbool.h>
20664 #ifndef bool
20665 "error: bool is not defined"
20666 #endif
20667 #ifndef false
20668 "error: false is not defined"
20669 #endif
20670 #if false
20671 "error: false is not 0"
20672 #endif
20673 #ifndef true
20674 "error: true is not defined"
20675 #endif
20676 #if true != 1
20677 "error: true is not 1"
20678 #endif
20679 #ifndef __bool_true_false_are_defined
20680 "error: __bool_true_false_are_defined is not defined"
20681 #endif
20683 struct s { _Bool s: 1; _Bool t; } s;
20685 char a[true == 1 ? 1 : -1];
20686 char b[false == 0 ? 1 : -1];
20687 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20688 char d[(bool) 0.5 == true ? 1 : -1];
20689 bool e = &s;
20690 char f[(_Bool) 0.0 == false ? 1 : -1];
20691 char g[true];
20692 char h[sizeof (_Bool)];
20693 char i[sizeof s.t];
20694 enum { j = false, k = true, l = false * true, m = true * 256 };
20695 _Bool n[m];
20696 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20697 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20698 # if defined __xlc__ || defined __GNUC__
20699 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20700 reported by James Lemley on 2005-10-05; see
20701 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20702 This test is not quite right, since xlc is allowed to
20703 reject this program, as the initializer for xlcbug is
20704 not one of the forms that C requires support for.
20705 However, doing the test right would require a runtime
20706 test, and that would make cross-compilation harder.
20707 Let us hope that IBM fixes the xlc bug, and also adds
20708 support for this kind of constant expression. In the
20709 meantime, this test will reject xlc, which is OK, since
20710 our stdbool.h substitute should suffice. We also test
20711 this with GCC, where it should work, to detect more
20712 quickly whether someone messes up the test in the
20713 future. */
20714 char digs[] = "0123456789";
20715 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20716 # endif
20717 /* Catch a bug in an HP-UX C compiler. See
20718 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20719 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20721 _Bool q = true;
20722 _Bool *pq = &q;
20725 main ()
20728 *pq |= q;
20729 *pq |= ! q;
20730 /* Refer to every declared value, to avoid compiler optimizations. */
20731 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20732 + !m + !n + !o + !p + !q + !pq);
20735 return 0;
20737 _ACEOF
20738 rm -f conftest.$ac_objext
20739 if { (ac_try="$ac_compile"
20740 case "(($ac_try" in
20741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742 *) ac_try_echo=$ac_try;;
20743 esac
20744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745 (eval "$ac_compile") 2>conftest.er1
20746 ac_status=$?
20747 grep -v '^ *+' conftest.er1 >conftest.err
20748 rm -f conftest.er1
20749 cat conftest.err >&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } &&
20752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20753 { (case "(($ac_try" in
20754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755 *) ac_try_echo=$ac_try;;
20756 esac
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758 (eval "$ac_try") 2>&5
20759 ac_status=$?
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; } &&
20762 { ac_try='test -s conftest.$ac_objext'
20763 { (case "(($ac_try" in
20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20766 esac
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768 (eval "$ac_try") 2>&5
20769 ac_status=$?
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; }; then
20772 ac_cv_header_stdbool_h=yes
20773 else
20774 echo "$as_me: failed program was:" >&5
20775 sed 's/^/| /' conftest.$ac_ext >&5
20777 ac_cv_header_stdbool_h=no
20780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20782 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20783 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
20784 { echo "$as_me:$LINENO: checking for _Bool" >&5
20785 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
20786 if test "${ac_cv_type__Bool+set}" = set; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20788 else
20789 cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h. */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20795 $ac_includes_default
20796 typedef _Bool ac__type_new_;
20798 main ()
20800 if ((ac__type_new_ *) 0)
20801 return 0;
20802 if (sizeof (ac__type_new_))
20803 return 0;
20805 return 0;
20807 _ACEOF
20808 rm -f conftest.$ac_objext
20809 if { (ac_try="$ac_compile"
20810 case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20813 esac
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_compile") 2>conftest.er1
20816 ac_status=$?
20817 grep -v '^ *+' conftest.er1 >conftest.err
20818 rm -f conftest.er1
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } &&
20822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20823 { (case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20826 esac
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_try") 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; } &&
20832 { ac_try='test -s conftest.$ac_objext'
20833 { (case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20836 esac
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_try") 2>&5
20839 ac_status=$?
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842 ac_cv_type__Bool=yes
20843 else
20844 echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20847 ac_cv_type__Bool=no
20850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20853 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
20854 if test $ac_cv_type__Bool = yes; then
20856 cat >>confdefs.h <<_ACEOF
20857 #define HAVE__BOOL 1
20858 _ACEOF
20863 if test $ac_cv_header_stdbool_h = yes; then
20865 cat >>confdefs.h <<\_ACEOF
20866 #define HAVE_STDBOOL_H 1
20867 _ACEOF
20871 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20872 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20873 if test "${ac_cv_header_time+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20875 else
20876 cat >conftest.$ac_ext <<_ACEOF
20877 /* confdefs.h. */
20878 _ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20882 #include <sys/types.h>
20883 #include <sys/time.h>
20884 #include <time.h>
20887 main ()
20889 if ((struct tm *) 0)
20890 return 0;
20892 return 0;
20894 _ACEOF
20895 rm -f conftest.$ac_objext
20896 if { (ac_try="$ac_compile"
20897 case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_compile") 2>conftest.er1
20903 ac_status=$?
20904 grep -v '^ *+' conftest.er1 >conftest.err
20905 rm -f conftest.er1
20906 cat conftest.err >&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } &&
20909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20910 { (case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20913 esac
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_try") 2>&5
20916 ac_status=$?
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; } &&
20919 { ac_try='test -s conftest.$ac_objext'
20920 { (case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20923 esac
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_try") 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; }; then
20929 ac_cv_header_time=yes
20930 else
20931 echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20934 ac_cv_header_time=no
20937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20939 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20940 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20941 if test $ac_cv_header_time = yes; then
20943 cat >>confdefs.h <<\_ACEOF
20944 #define TIME_WITH_SYS_TIME 1
20945 _ACEOF
20962 for ac_header in \
20963 limits.h sys/ioctl.h unistd.h fcntl.h float.h mysql.h \
20964 netdb.h netinet/in.h stddef.h sys/socket.h \
20965 sys/time.h sys/timeb.h openssl/opensslv.h \
20968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 ac_res=`eval echo '${'$as_ac_Header'}'`
20976 { echo "$as_me:$LINENO: result: $ac_res" >&5
20977 echo "${ECHO_T}$ac_res" >&6; }
20978 else
20979 # Is the header compilable?
20980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20982 cat >conftest.$ac_ext <<_ACEOF
20983 /* confdefs.h. */
20984 _ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 $ac_includes_default
20989 #include <$ac_header>
20990 _ACEOF
20991 rm -f conftest.$ac_objext
20992 if { (ac_try="$ac_compile"
20993 case "(($ac_try" in
20994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20996 esac
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998 (eval "$ac_compile") 2>conftest.er1
20999 ac_status=$?
21000 grep -v '^ *+' conftest.er1 >conftest.err
21001 rm -f conftest.er1
21002 cat conftest.err >&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } &&
21005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21006 { (case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_try") 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; } &&
21015 { ac_try='test -s conftest.$ac_objext'
21016 { (case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21019 esac
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_try") 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 ac_header_compiler=yes
21026 else
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21030 ac_header_compiler=no
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21035 echo "${ECHO_T}$ac_header_compiler" >&6; }
21037 # Is the header present?
21038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21040 cat >conftest.$ac_ext <<_ACEOF
21041 /* confdefs.h. */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046 #include <$ac_header>
21047 _ACEOF
21048 if { (ac_try="$ac_cpp conftest.$ac_ext"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21055 ac_status=$?
21056 grep -v '^ *+' conftest.er1 >conftest.err
21057 rm -f conftest.er1
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } >/dev/null; then
21061 if test -s conftest.err; then
21062 ac_cpp_err=$ac_cxx_preproc_warn_flag
21063 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21064 else
21065 ac_cpp_err=
21067 else
21068 ac_cpp_err=yes
21070 if test -z "$ac_cpp_err"; then
21071 ac_header_preproc=yes
21072 else
21073 echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21076 ac_header_preproc=no
21079 rm -f conftest.err conftest.$ac_ext
21080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21081 echo "${ECHO_T}$ac_header_preproc" >&6; }
21083 # So? What about this header?
21084 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21085 yes:no: )
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21090 ac_header_preproc=yes
21092 no:yes:* )
21093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21105 ( cat <<\_ASBOX
21106 ## -------------------------------------------- ##
21107 ## Report this to http://www.mangosproject.org/ ##
21108 ## -------------------------------------------- ##
21109 _ASBOX
21110 ) | sed "s/^/$as_me: WARNING: /" >&2
21112 esac
21113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
21117 else
21118 eval "$as_ac_Header=\$ac_header_preproc"
21120 ac_res=`eval echo '${'$as_ac_Header'}'`
21121 { echo "$as_me:$LINENO: result: $ac_res" >&5
21122 echo "${ECHO_T}$ac_res" >&6; }
21125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21126 cat >>confdefs.h <<_ACEOF
21127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21128 _ACEOF
21130 else
21131 { { echo "$as_me:$LINENO: error: Missing required header" >&5
21132 echo "$as_me: error: Missing required header" >&2;}
21133 { (exit 1); exit 1; }; }
21136 done
21139 CPPFLAGS=$CPPFLAGS_SAVE
21141 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21142 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21143 if test "${ac_cv_c_const+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 else
21146 cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h. */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21154 main ()
21156 /* FIXME: Include the comments suggested by Paul. */
21157 #ifndef __cplusplus
21158 /* Ultrix mips cc rejects this. */
21159 typedef int charset[2];
21160 const charset x;
21161 /* SunOS 4.1.1 cc rejects this. */
21162 char const *const *ccp;
21163 char **p;
21164 /* NEC SVR4.0.2 mips cc rejects this. */
21165 struct point {int x, y;};
21166 static struct point const zero = {0,0};
21167 /* AIX XL C 1.02.0.0 rejects this.
21168 It does not let you subtract one const X* pointer from another in
21169 an arm of an if-expression whose if-part is not a constant
21170 expression */
21171 const char *g = "string";
21172 ccp = &g + (g ? g-g : 0);
21173 /* HPUX 7.0 cc rejects these. */
21174 ++ccp;
21175 p = (char**) ccp;
21176 ccp = (char const *const *) p;
21177 { /* SCO 3.2v4 cc rejects this. */
21178 char *t;
21179 char const *s = 0 ? (char *) 0 : (char const *) 0;
21181 *t++ = 0;
21182 if (s) return 0;
21184 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21185 int x[] = {25, 17};
21186 const int *foo = &x[0];
21187 ++foo;
21189 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21190 typedef const int *iptr;
21191 iptr p = 0;
21192 ++p;
21194 { /* AIX XL C 1.02.0.0 rejects this saying
21195 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21196 struct s { int j; const int *ap[3]; };
21197 struct s *b; b->j = 5;
21199 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21200 const int foo = 10;
21201 if (!foo) return 0;
21203 return !x[0] && !zero.x;
21204 #endif
21207 return 0;
21209 _ACEOF
21210 rm -f conftest.$ac_objext
21211 if { (ac_try="$ac_compile"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21215 esac
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_compile") 2>conftest.er1
21218 ac_status=$?
21219 grep -v '^ *+' conftest.er1 >conftest.err
21220 rm -f conftest.er1
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } &&
21224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21225 { (case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21228 esac
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_try") 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; } &&
21234 { ac_try='test -s conftest.$ac_objext'
21235 { (case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21238 esac
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_try") 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_c_const=yes
21245 else
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 ac_cv_c_const=no
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21255 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21256 if test $ac_cv_c_const = no; then
21258 cat >>confdefs.h <<\_ACEOF
21259 #define const
21260 _ACEOF
21264 { echo "$as_me:$LINENO: checking for inline" >&5
21265 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21266 if test "${ac_cv_c_inline+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 else
21269 ac_cv_c_inline=no
21270 for ac_kw in inline __inline__ __inline; do
21271 cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h. */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 #ifndef __cplusplus
21278 typedef int foo_t;
21279 static $ac_kw foo_t static_foo () {return 0; }
21280 $ac_kw foo_t foo () {return 0; }
21281 #endif
21283 _ACEOF
21284 rm -f conftest.$ac_objext
21285 if { (ac_try="$ac_compile"
21286 case "(($ac_try" in
21287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288 *) ac_try_echo=$ac_try;;
21289 esac
21290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21291 (eval "$ac_compile") 2>conftest.er1
21292 ac_status=$?
21293 grep -v '^ *+' conftest.er1 >conftest.err
21294 rm -f conftest.er1
21295 cat conftest.err >&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } &&
21298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21299 { (case "(($ac_try" in
21300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301 *) ac_try_echo=$ac_try;;
21302 esac
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304 (eval "$ac_try") 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; } &&
21308 { ac_try='test -s conftest.$ac_objext'
21309 { (case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21312 esac
21313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21314 (eval "$ac_try") 2>&5
21315 ac_status=$?
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; }; then
21318 ac_cv_c_inline=$ac_kw
21319 else
21320 echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21327 test "$ac_cv_c_inline" != no && break
21328 done
21331 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21332 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21335 case $ac_cv_c_inline in
21336 inline | yes) ;;
21338 case $ac_cv_c_inline in
21339 no) ac_val=;;
21340 *) ac_val=$ac_cv_c_inline;;
21341 esac
21342 cat >>confdefs.h <<_ACEOF
21343 #ifndef __cplusplus
21344 #define inline $ac_val
21345 #endif
21346 _ACEOF
21348 esac
21350 { echo "$as_me:$LINENO: checking for working volatile" >&5
21351 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
21352 if test "${ac_cv_c_volatile+set}" = set; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 else
21355 cat >conftest.$ac_ext <<_ACEOF
21356 /* confdefs.h. */
21357 _ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h. */
21363 main ()
21366 volatile int x;
21367 int * volatile y = (int *) 0;
21368 return !x && !y;
21370 return 0;
21372 _ACEOF
21373 rm -f conftest.$ac_objext
21374 if { (ac_try="$ac_compile"
21375 case "(($ac_try" in
21376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21378 esac
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_compile") 2>conftest.er1
21381 ac_status=$?
21382 grep -v '^ *+' conftest.er1 >conftest.err
21383 rm -f conftest.er1
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } &&
21387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21388 { (case "(($ac_try" in
21389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21390 *) ac_try_echo=$ac_try;;
21391 esac
21392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21393 (eval "$ac_try") 2>&5
21394 ac_status=$?
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); }; } &&
21397 { ac_try='test -s conftest.$ac_objext'
21398 { (case "(($ac_try" in
21399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21400 *) ac_try_echo=$ac_try;;
21401 esac
21402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403 (eval "$ac_try") 2>&5
21404 ac_status=$?
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); }; }; then
21407 ac_cv_c_volatile=yes
21408 else
21409 echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21412 ac_cv_c_volatile=no
21415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
21418 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
21419 if test $ac_cv_c_volatile = no; then
21421 cat >>confdefs.h <<\_ACEOF
21422 #define volatile
21423 _ACEOF
21427 { echo "$as_me:$LINENO: checking for size_t" >&5
21428 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21429 if test "${ac_cv_type_size_t+set}" = set; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21431 else
21432 cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h. */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 $ac_includes_default
21439 typedef size_t ac__type_new_;
21441 main ()
21443 if ((ac__type_new_ *) 0)
21444 return 0;
21445 if (sizeof (ac__type_new_))
21446 return 0;
21448 return 0;
21450 _ACEOF
21451 rm -f conftest.$ac_objext
21452 if { (ac_try="$ac_compile"
21453 case "(($ac_try" in
21454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455 *) ac_try_echo=$ac_try;;
21456 esac
21457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21458 (eval "$ac_compile") 2>conftest.er1
21459 ac_status=$?
21460 grep -v '^ *+' conftest.er1 >conftest.err
21461 rm -f conftest.er1
21462 cat conftest.err >&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); } &&
21465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21466 { (case "(($ac_try" in
21467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468 *) ac_try_echo=$ac_try;;
21469 esac
21470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471 (eval "$ac_try") 2>&5
21472 ac_status=$?
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; } &&
21475 { ac_try='test -s conftest.$ac_objext'
21476 { (case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21479 esac
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_try") 2>&5
21482 ac_status=$?
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; }; then
21485 ac_cv_type_size_t=yes
21486 else
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 ac_cv_type_size_t=no
21493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21495 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21496 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21497 if test $ac_cv_type_size_t = yes; then
21499 else
21501 cat >>confdefs.h <<_ACEOF
21502 #define size_t unsigned int
21503 _ACEOF
21507 { echo "$as_me:$LINENO: checking for off_t" >&5
21508 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21509 if test "${ac_cv_type_off_t+set}" = set; then
21510 echo $ECHO_N "(cached) $ECHO_C" >&6
21511 else
21512 cat >conftest.$ac_ext <<_ACEOF
21513 /* confdefs.h. */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 $ac_includes_default
21519 typedef off_t ac__type_new_;
21521 main ()
21523 if ((ac__type_new_ *) 0)
21524 return 0;
21525 if (sizeof (ac__type_new_))
21526 return 0;
21528 return 0;
21530 _ACEOF
21531 rm -f conftest.$ac_objext
21532 if { (ac_try="$ac_compile"
21533 case "(($ac_try" in
21534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21535 *) ac_try_echo=$ac_try;;
21536 esac
21537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21538 (eval "$ac_compile") 2>conftest.er1
21539 ac_status=$?
21540 grep -v '^ *+' conftest.er1 >conftest.err
21541 rm -f conftest.er1
21542 cat conftest.err >&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); } &&
21545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21546 { (case "(($ac_try" in
21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21549 esac
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_try") 2>&5
21552 ac_status=$?
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; } &&
21555 { ac_try='test -s conftest.$ac_objext'
21556 { (case "(($ac_try" in
21557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21559 esac
21560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561 (eval "$ac_try") 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 ac_cv_type_off_t=yes
21566 else
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 ac_cv_type_off_t=no
21573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21575 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21576 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21577 if test $ac_cv_type_off_t = yes; then
21579 else
21581 cat >>confdefs.h <<_ACEOF
21582 #define off_t long int
21583 _ACEOF
21587 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21588 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21589 if test "${ac_cv_type_signal+set}" = set; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21591 else
21592 cat >conftest.$ac_ext <<_ACEOF
21593 /* confdefs.h. */
21594 _ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21598 #include <sys/types.h>
21599 #include <signal.h>
21602 main ()
21604 return *(signal (0, 0)) (0) == 1;
21606 return 0;
21608 _ACEOF
21609 rm -f conftest.$ac_objext
21610 if { (ac_try="$ac_compile"
21611 case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_compile") 2>conftest.er1
21617 ac_status=$?
21618 grep -v '^ *+' conftest.er1 >conftest.err
21619 rm -f conftest.er1
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } &&
21623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21624 { (case "(($ac_try" in
21625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21626 *) ac_try_echo=$ac_try;;
21627 esac
21628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21629 (eval "$ac_try") 2>&5
21630 ac_status=$?
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; } &&
21633 { ac_try='test -s conftest.$ac_objext'
21634 { (case "(($ac_try" in
21635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636 *) ac_try_echo=$ac_try;;
21637 esac
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639 (eval "$ac_try") 2>&5
21640 ac_status=$?
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21643 ac_cv_type_signal=int
21644 else
21645 echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21648 ac_cv_type_signal=void
21651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21653 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21654 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21656 cat >>confdefs.h <<_ACEOF
21657 #define RETSIGTYPE $ac_cv_type_signal
21658 _ACEOF
21661 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21662 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21663 if test "${ac_cv_struct_tm+set}" = set; then
21664 echo $ECHO_N "(cached) $ECHO_C" >&6
21665 else
21666 cat >conftest.$ac_ext <<_ACEOF
21667 /* confdefs.h. */
21668 _ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h. */
21672 #include <sys/types.h>
21673 #include <time.h>
21676 main ()
21678 struct tm *tp; tp->tm_sec;
21680 return 0;
21682 _ACEOF
21683 rm -f conftest.$ac_objext
21684 if { (ac_try="$ac_compile"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21688 esac
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_compile") 2>conftest.er1
21691 ac_status=$?
21692 grep -v '^ *+' conftest.er1 >conftest.err
21693 rm -f conftest.er1
21694 cat conftest.err >&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } &&
21697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21698 { (case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21701 esac
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_try") 2>&5
21704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; } &&
21707 { ac_try='test -s conftest.$ac_objext'
21708 { (case "(($ac_try" in
21709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21711 esac
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_try") 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; }; then
21717 ac_cv_struct_tm=time.h
21718 else
21719 echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 ac_cv_struct_tm=sys/time.h
21725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21727 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21728 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21729 if test $ac_cv_struct_tm = sys/time.h; then
21731 cat >>confdefs.h <<\_ACEOF
21732 #define TM_IN_SYS_TIME 1
21733 _ACEOF
21737 { echo "$as_me:$LINENO: checking for ptrdiff_t " >&5
21738 echo $ECHO_N "checking for ptrdiff_t ... $ECHO_C" >&6; }
21739 if test "${ac_cv_type_ptrdiff_t_+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21741 else
21742 cat >conftest.$ac_ext <<_ACEOF
21743 /* confdefs.h. */
21744 _ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21748 $ac_includes_default
21749 typedef ptrdiff_t ac__type_new_;
21751 main ()
21753 if ((ac__type_new_ *) 0)
21754 return 0;
21755 if (sizeof (ac__type_new_))
21756 return 0;
21758 return 0;
21760 _ACEOF
21761 rm -f conftest.$ac_objext
21762 if { (ac_try="$ac_compile"
21763 case "(($ac_try" in
21764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765 *) ac_try_echo=$ac_try;;
21766 esac
21767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768 (eval "$ac_compile") 2>conftest.er1
21769 ac_status=$?
21770 grep -v '^ *+' conftest.er1 >conftest.err
21771 rm -f conftest.er1
21772 cat conftest.err >&5
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); } &&
21775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21776 { (case "(($ac_try" in
21777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778 *) ac_try_echo=$ac_try;;
21779 esac
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781 (eval "$ac_try") 2>&5
21782 ac_status=$?
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; } &&
21785 { ac_try='test -s conftest.$ac_objext'
21786 { (case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21789 esac
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791 (eval "$ac_try") 2>&5
21792 ac_status=$?
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; }; then
21795 ac_cv_type_ptrdiff_t_=yes
21796 else
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21800 ac_cv_type_ptrdiff_t_=no
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t_" >&5
21806 echo "${ECHO_T}$ac_cv_type_ptrdiff_t_" >&6; }
21807 if test $ac_cv_type_ptrdiff_t_ = yes; then
21809 cat >>confdefs.h <<_ACEOF
21810 #define HAVE_PTRDIFF_T_ 1
21811 _ACEOF
21817 { echo "$as_me:$LINENO: checking for working memcmp" >&5
21818 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
21819 if test "${ac_cv_func_memcmp_working+set}" = set; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21821 else
21822 if test "$cross_compiling" = yes; then
21823 ac_cv_func_memcmp_working=no
21824 else
21825 cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h. */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 $ac_includes_default
21833 main ()
21836 /* Some versions of memcmp are not 8-bit clean. */
21837 char c0 = '\100', c1 = '\200', c2 = '\201';
21838 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21839 return 1;
21841 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21842 or more and with at least one buffer not starting on a 4-byte boundary.
21843 William Lewis provided this test program. */
21845 char foo[21];
21846 char bar[21];
21847 int i;
21848 for (i = 0; i < 4; i++)
21850 char *a = foo + i;
21851 char *b = bar + i;
21852 strcpy (a, "--------01111111");
21853 strcpy (b, "--------10000000");
21854 if (memcmp (a, b, 16) >= 0)
21855 return 1;
21857 return 0;
21861 return 0;
21863 _ACEOF
21864 rm -f conftest$ac_exeext
21865 if { (ac_try="$ac_link"
21866 case "(($ac_try" in
21867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868 *) ac_try_echo=$ac_try;;
21869 esac
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871 (eval "$ac_link") 2>&5
21872 ac_status=$?
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21875 { (case "(($ac_try" in
21876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877 *) ac_try_echo=$ac_try;;
21878 esac
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880 (eval "$ac_try") 2>&5
21881 ac_status=$?
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; }; then
21884 ac_cv_func_memcmp_working=yes
21885 else
21886 echo "$as_me: program exited with status $ac_status" >&5
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21890 ( exit $ac_status )
21891 ac_cv_func_memcmp_working=no
21893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21898 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21899 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
21900 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21901 *" memcmp.$ac_objext "* ) ;;
21902 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21904 esac
21907 { echo "$as_me:$LINENO: checking for working strcoll" >&5
21908 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
21909 if test "${ac_cv_func_strcoll_works+set}" = set; then
21910 echo $ECHO_N "(cached) $ECHO_C" >&6
21911 else
21912 if test "$cross_compiling" = yes; then
21913 ac_cv_func_strcoll_works=no
21914 else
21915 cat >conftest.$ac_ext <<_ACEOF
21916 /* confdefs.h. */
21917 _ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21921 $ac_includes_default
21923 main ()
21925 return (strcoll ("abc", "def") >= 0 ||
21926 strcoll ("ABC", "DEF") >= 0 ||
21927 strcoll ("123", "456") >= 0)
21929 return 0;
21931 _ACEOF
21932 rm -f conftest$ac_exeext
21933 if { (ac_try="$ac_link"
21934 case "(($ac_try" in
21935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936 *) ac_try_echo=$ac_try;;
21937 esac
21938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939 (eval "$ac_link") 2>&5
21940 ac_status=$?
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21943 { (case "(($ac_try" in
21944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945 *) ac_try_echo=$ac_try;;
21946 esac
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948 (eval "$ac_try") 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21952 ac_cv_func_strcoll_works=yes
21953 else
21954 echo "$as_me: program exited with status $ac_status" >&5
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 ( exit $ac_status )
21959 ac_cv_func_strcoll_works=no
21961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21966 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
21967 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
21968 if test $ac_cv_func_strcoll_works = yes; then
21970 cat >>confdefs.h <<\_ACEOF
21971 #define HAVE_STRCOLL 1
21972 _ACEOF
21976 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21977 # for constant arguments. Useless!
21978 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
21979 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
21980 if test "${ac_cv_working_alloca_h+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21982 else
21983 cat >conftest.$ac_ext <<_ACEOF
21984 /* confdefs.h. */
21985 _ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h. */
21989 #include <alloca.h>
21991 main ()
21993 char *p = (char *) alloca (2 * sizeof (int));
21994 if (p) return 0;
21996 return 0;
21998 _ACEOF
21999 rm -f conftest.$ac_objext conftest$ac_exeext
22000 if { (ac_try="$ac_link"
22001 case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22004 esac
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_link") 2>conftest.er1
22007 ac_status=$?
22008 grep -v '^ *+' conftest.er1 >conftest.err
22009 rm -f conftest.er1
22010 cat conftest.err >&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } &&
22013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22014 { (case "(($ac_try" in
22015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22016 *) ac_try_echo=$ac_try;;
22017 esac
22018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22019 (eval "$ac_try") 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; } &&
22023 { ac_try='test -s conftest$ac_exeext'
22024 { (case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22027 esac
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_try") 2>&5
22030 ac_status=$?
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); }; }; then
22033 ac_cv_working_alloca_h=yes
22034 else
22035 echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22038 ac_cv_working_alloca_h=no
22041 rm -f core conftest.err conftest.$ac_objext \
22042 conftest$ac_exeext conftest.$ac_ext
22044 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22045 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
22046 if test $ac_cv_working_alloca_h = yes; then
22048 cat >>confdefs.h <<\_ACEOF
22049 #define HAVE_ALLOCA_H 1
22050 _ACEOF
22054 { echo "$as_me:$LINENO: checking for alloca" >&5
22055 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
22056 if test "${ac_cv_func_alloca_works+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22058 else
22059 cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h. */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 #ifdef __GNUC__
22066 # define alloca __builtin_alloca
22067 #else
22068 # ifdef _MSC_VER
22069 # include <malloc.h>
22070 # define alloca _alloca
22071 # else
22072 # if HAVE_ALLOCA_H
22073 # include <alloca.h>
22074 # else
22075 # ifdef _AIX
22076 #pragma alloca
22077 # else
22078 # ifndef alloca /* predefined by HP cc +Olibcalls */
22079 char *alloca ();
22080 # endif
22081 # endif
22082 # endif
22083 # endif
22084 #endif
22087 main ()
22089 char *p = (char *) alloca (1);
22090 if (p) return 0;
22092 return 0;
22094 _ACEOF
22095 rm -f conftest.$ac_objext conftest$ac_exeext
22096 if { (ac_try="$ac_link"
22097 case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22100 esac
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_link") 2>conftest.er1
22103 ac_status=$?
22104 grep -v '^ *+' conftest.er1 >conftest.err
22105 rm -f conftest.er1
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } &&
22109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22110 { (case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22113 esac
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_try") 2>&5
22116 ac_status=$?
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; } &&
22119 { ac_try='test -s conftest$ac_exeext'
22120 { (case "(($ac_try" in
22121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122 *) ac_try_echo=$ac_try;;
22123 esac
22124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22125 (eval "$ac_try") 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; }; then
22129 ac_cv_func_alloca_works=yes
22130 else
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22134 ac_cv_func_alloca_works=no
22137 rm -f core conftest.err conftest.$ac_objext \
22138 conftest$ac_exeext conftest.$ac_ext
22140 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22141 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
22143 if test $ac_cv_func_alloca_works = yes; then
22145 cat >>confdefs.h <<\_ACEOF
22146 #define HAVE_ALLOCA 1
22147 _ACEOF
22149 else
22150 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22151 # that cause trouble. Some versions do not even contain alloca or
22152 # contain a buggy version. If you still want to use their alloca,
22153 # use ar to extract alloca.o from them instead of compiling alloca.c.
22155 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
22157 cat >>confdefs.h <<\_ACEOF
22158 #define C_ALLOCA 1
22159 _ACEOF
22162 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22163 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
22164 if test "${ac_cv_os_cray+set}" = set; then
22165 echo $ECHO_N "(cached) $ECHO_C" >&6
22166 else
22167 cat >conftest.$ac_ext <<_ACEOF
22168 /* confdefs.h. */
22169 _ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22173 #if defined CRAY && ! defined CRAY2
22174 webecray
22175 #else
22176 wenotbecray
22177 #endif
22179 _ACEOF
22180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22181 $EGREP "webecray" >/dev/null 2>&1; then
22182 ac_cv_os_cray=yes
22183 else
22184 ac_cv_os_cray=no
22186 rm -f conftest*
22189 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22190 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
22191 if test $ac_cv_os_cray = yes; then
22192 for ac_func in _getb67 GETB67 getb67; do
22193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22198 else
22199 cat >conftest.$ac_ext <<_ACEOF
22200 /* confdefs.h. */
22201 _ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22207 #define $ac_func innocuous_$ac_func
22209 /* System header to define __stub macros and hopefully few prototypes,
22210 which can conflict with char $ac_func (); below.
22211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22212 <limits.h> exists even on freestanding compilers. */
22214 #ifdef __STDC__
22215 # include <limits.h>
22216 #else
22217 # include <assert.h>
22218 #endif
22220 #undef $ac_func
22222 /* Override any GCC internal prototype to avoid an error.
22223 Use char because int might match the return type of a GCC
22224 builtin and then its argument prototype would still apply. */
22225 #ifdef __cplusplus
22226 extern "C"
22227 #endif
22228 char $ac_func ();
22229 /* The GNU C library defines this for functions which it implements
22230 to always fail with ENOSYS. Some functions are actually named
22231 something starting with __ and the normal name is an alias. */
22232 #if defined __stub_$ac_func || defined __stub___$ac_func
22233 choke me
22234 #endif
22237 main ()
22239 return $ac_func ();
22241 return 0;
22243 _ACEOF
22244 rm -f conftest.$ac_objext conftest$ac_exeext
22245 if { (ac_try="$ac_link"
22246 case "(($ac_try" in
22247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248 *) ac_try_echo=$ac_try;;
22249 esac
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251 (eval "$ac_link") 2>conftest.er1
22252 ac_status=$?
22253 grep -v '^ *+' conftest.er1 >conftest.err
22254 rm -f conftest.er1
22255 cat conftest.err >&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); } &&
22258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22259 { (case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22262 esac
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_try") 2>&5
22265 ac_status=$?
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; } &&
22268 { ac_try='test -s conftest$ac_exeext'
22269 { (case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22272 esac
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_try") 2>&5
22275 ac_status=$?
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; }; then
22278 eval "$as_ac_var=yes"
22279 else
22280 echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22283 eval "$as_ac_var=no"
22286 rm -f core conftest.err conftest.$ac_objext \
22287 conftest$ac_exeext conftest.$ac_ext
22289 ac_res=`eval echo '${'$as_ac_var'}'`
22290 { echo "$as_me:$LINENO: result: $ac_res" >&5
22291 echo "${ECHO_T}$ac_res" >&6; }
22292 if test `eval echo '${'$as_ac_var'}'` = yes; then
22294 cat >>confdefs.h <<_ACEOF
22295 #define CRAY_STACKSEG_END $ac_func
22296 _ACEOF
22298 break
22301 done
22304 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22305 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
22306 if test "${ac_cv_c_stack_direction+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22308 else
22309 if test "$cross_compiling" = yes; then
22310 ac_cv_c_stack_direction=0
22311 else
22312 cat >conftest.$ac_ext <<_ACEOF
22313 /* confdefs.h. */
22314 _ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22318 $ac_includes_default
22320 find_stack_direction ()
22322 static char *addr = 0;
22323 auto char dummy;
22324 if (addr == 0)
22326 addr = &dummy;
22327 return find_stack_direction ();
22329 else
22330 return (&dummy > addr) ? 1 : -1;
22334 main ()
22336 return find_stack_direction () < 0;
22338 _ACEOF
22339 rm -f conftest$ac_exeext
22340 if { (ac_try="$ac_link"
22341 case "(($ac_try" in
22342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343 *) ac_try_echo=$ac_try;;
22344 esac
22345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346 (eval "$ac_link") 2>&5
22347 ac_status=$?
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22350 { (case "(($ac_try" in
22351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352 *) ac_try_echo=$ac_try;;
22353 esac
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355 (eval "$ac_try") 2>&5
22356 ac_status=$?
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; }; then
22359 ac_cv_c_stack_direction=1
22360 else
22361 echo "$as_me: program exited with status $ac_status" >&5
22362 echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22365 ( exit $ac_status )
22366 ac_cv_c_stack_direction=-1
22368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22373 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22374 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
22376 cat >>confdefs.h <<_ACEOF
22377 #define STACK_DIRECTION $ac_cv_c_stack_direction
22378 _ACEOF
22384 for ac_header in stdlib.h
22386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22391 echo $ECHO_N "(cached) $ECHO_C" >&6
22393 ac_res=`eval echo '${'$as_ac_Header'}'`
22394 { echo "$as_me:$LINENO: result: $ac_res" >&5
22395 echo "${ECHO_T}$ac_res" >&6; }
22396 else
22397 # Is the header compilable?
22398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22400 cat >conftest.$ac_ext <<_ACEOF
22401 /* confdefs.h. */
22402 _ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h. */
22406 $ac_includes_default
22407 #include <$ac_header>
22408 _ACEOF
22409 rm -f conftest.$ac_objext
22410 if { (ac_try="$ac_compile"
22411 case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22414 esac
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_compile") 2>conftest.er1
22417 ac_status=$?
22418 grep -v '^ *+' conftest.er1 >conftest.err
22419 rm -f conftest.er1
22420 cat conftest.err >&5
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } &&
22423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22424 { (case "(($ac_try" in
22425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22426 *) ac_try_echo=$ac_try;;
22427 esac
22428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22429 (eval "$ac_try") 2>&5
22430 ac_status=$?
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); }; } &&
22433 { ac_try='test -s conftest.$ac_objext'
22434 { (case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22437 esac
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_try") 2>&5
22440 ac_status=$?
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); }; }; then
22443 ac_header_compiler=yes
22444 else
22445 echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22448 ac_header_compiler=no
22451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22453 echo "${ECHO_T}$ac_header_compiler" >&6; }
22455 # Is the header present?
22456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22458 cat >conftest.$ac_ext <<_ACEOF
22459 /* confdefs.h. */
22460 _ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22464 #include <$ac_header>
22465 _ACEOF
22466 if { (ac_try="$ac_cpp conftest.$ac_ext"
22467 case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22470 esac
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22473 ac_status=$?
22474 grep -v '^ *+' conftest.er1 >conftest.err
22475 rm -f conftest.er1
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } >/dev/null; then
22479 if test -s conftest.err; then
22480 ac_cpp_err=$ac_cxx_preproc_warn_flag
22481 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22482 else
22483 ac_cpp_err=
22485 else
22486 ac_cpp_err=yes
22488 if test -z "$ac_cpp_err"; then
22489 ac_header_preproc=yes
22490 else
22491 echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22494 ac_header_preproc=no
22497 rm -f conftest.err conftest.$ac_ext
22498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22499 echo "${ECHO_T}$ac_header_preproc" >&6; }
22501 # So? What about this header?
22502 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22503 yes:no: )
22504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22508 ac_header_preproc=yes
22510 no:yes:* )
22511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22523 ( cat <<\_ASBOX
22524 ## -------------------------------------------- ##
22525 ## Report this to http://www.mangosproject.org/ ##
22526 ## -------------------------------------------- ##
22527 _ASBOX
22528 ) | sed "s/^/$as_me: WARNING: /" >&2
22530 esac
22531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22534 echo $ECHO_N "(cached) $ECHO_C" >&6
22535 else
22536 eval "$as_ac_Header=\$ac_header_preproc"
22538 ac_res=`eval echo '${'$as_ac_Header'}'`
22539 { echo "$as_me:$LINENO: result: $ac_res" >&5
22540 echo "${ECHO_T}$ac_res" >&6; }
22543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22544 cat >>confdefs.h <<_ACEOF
22545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22546 _ACEOF
22550 done
22552 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22553 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
22554 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22555 echo $ECHO_N "(cached) $ECHO_C" >&6
22556 else
22557 if test "$cross_compiling" = yes; then
22558 ac_cv_func_malloc_0_nonnull=no
22559 else
22560 cat >conftest.$ac_ext <<_ACEOF
22561 /* confdefs.h. */
22562 _ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h. */
22566 #if STDC_HEADERS || HAVE_STDLIB_H
22567 # include <stdlib.h>
22568 #else
22569 char *malloc ();
22570 #endif
22573 main ()
22575 return ! malloc (0);
22577 return 0;
22579 _ACEOF
22580 rm -f conftest$ac_exeext
22581 if { (ac_try="$ac_link"
22582 case "(($ac_try" in
22583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22584 *) ac_try_echo=$ac_try;;
22585 esac
22586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22587 (eval "$ac_link") 2>&5
22588 ac_status=$?
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22591 { (case "(($ac_try" in
22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22594 esac
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_try") 2>&5
22597 ac_status=$?
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); }; }; then
22600 ac_cv_func_malloc_0_nonnull=yes
22601 else
22602 echo "$as_me: program exited with status $ac_status" >&5
22603 echo "$as_me: failed program was:" >&5
22604 sed 's/^/| /' conftest.$ac_ext >&5
22606 ( exit $ac_status )
22607 ac_cv_func_malloc_0_nonnull=no
22609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22614 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22615 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
22616 if test $ac_cv_func_malloc_0_nonnull = yes; then
22618 cat >>confdefs.h <<\_ACEOF
22619 #define HAVE_MALLOC 1
22620 _ACEOF
22622 else
22623 cat >>confdefs.h <<\_ACEOF
22624 #define HAVE_MALLOC 0
22625 _ACEOF
22627 case " $LIBOBJS " in
22628 *" malloc.$ac_objext "* ) ;;
22629 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22631 esac
22634 cat >>confdefs.h <<\_ACEOF
22635 #define malloc rpl_malloc
22636 _ACEOF
22643 for ac_header in stdlib.h
22645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 ac_res=`eval echo '${'$as_ac_Header'}'`
22653 { echo "$as_me:$LINENO: result: $ac_res" >&5
22654 echo "${ECHO_T}$ac_res" >&6; }
22655 else
22656 # Is the header compilable?
22657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22659 cat >conftest.$ac_ext <<_ACEOF
22660 /* confdefs.h. */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22665 $ac_includes_default
22666 #include <$ac_header>
22667 _ACEOF
22668 rm -f conftest.$ac_objext
22669 if { (ac_try="$ac_compile"
22670 case "(($ac_try" in
22671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22673 esac
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675 (eval "$ac_compile") 2>conftest.er1
22676 ac_status=$?
22677 grep -v '^ *+' conftest.er1 >conftest.err
22678 rm -f conftest.er1
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } &&
22682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22683 { (case "(($ac_try" in
22684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685 *) ac_try_echo=$ac_try;;
22686 esac
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688 (eval "$ac_try") 2>&5
22689 ac_status=$?
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; } &&
22692 { ac_try='test -s conftest.$ac_objext'
22693 { (case "(($ac_try" in
22694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22695 *) ac_try_echo=$ac_try;;
22696 esac
22697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22698 (eval "$ac_try") 2>&5
22699 ac_status=$?
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); }; }; then
22702 ac_header_compiler=yes
22703 else
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22707 ac_header_compiler=no
22710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22712 echo "${ECHO_T}$ac_header_compiler" >&6; }
22714 # Is the header present?
22715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22717 cat >conftest.$ac_ext <<_ACEOF
22718 /* confdefs.h. */
22719 _ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h. */
22723 #include <$ac_header>
22724 _ACEOF
22725 if { (ac_try="$ac_cpp conftest.$ac_ext"
22726 case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22729 esac
22730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22732 ac_status=$?
22733 grep -v '^ *+' conftest.er1 >conftest.err
22734 rm -f conftest.er1
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } >/dev/null; then
22738 if test -s conftest.err; then
22739 ac_cpp_err=$ac_cxx_preproc_warn_flag
22740 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22741 else
22742 ac_cpp_err=
22744 else
22745 ac_cpp_err=yes
22747 if test -z "$ac_cpp_err"; then
22748 ac_header_preproc=yes
22749 else
22750 echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22753 ac_header_preproc=no
22756 rm -f conftest.err conftest.$ac_ext
22757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22758 echo "${ECHO_T}$ac_header_preproc" >&6; }
22760 # So? What about this header?
22761 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22762 yes:no: )
22763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22767 ac_header_preproc=yes
22769 no:yes:* )
22770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22782 ( cat <<\_ASBOX
22783 ## -------------------------------------------- ##
22784 ## Report this to http://www.mangosproject.org/ ##
22785 ## -------------------------------------------- ##
22786 _ASBOX
22787 ) | sed "s/^/$as_me: WARNING: /" >&2
22789 esac
22790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
22794 else
22795 eval "$as_ac_Header=\$ac_header_preproc"
22797 ac_res=`eval echo '${'$as_ac_Header'}'`
22798 { echo "$as_me:$LINENO: result: $ac_res" >&5
22799 echo "${ECHO_T}$ac_res" >&6; }
22802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22803 cat >>confdefs.h <<_ACEOF
22804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22805 _ACEOF
22809 done
22811 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
22812 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
22813 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
22814 echo $ECHO_N "(cached) $ECHO_C" >&6
22815 else
22816 if test "$cross_compiling" = yes; then
22817 ac_cv_func_realloc_0_nonnull=no
22818 else
22819 cat >conftest.$ac_ext <<_ACEOF
22820 /* confdefs.h. */
22821 _ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h. */
22825 #if STDC_HEADERS || HAVE_STDLIB_H
22826 # include <stdlib.h>
22827 #else
22828 char *realloc ();
22829 #endif
22832 main ()
22834 return ! realloc (0, 0);
22836 return 0;
22838 _ACEOF
22839 rm -f conftest$ac_exeext
22840 if { (ac_try="$ac_link"
22841 case "(($ac_try" in
22842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22843 *) ac_try_echo=$ac_try;;
22844 esac
22845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22846 (eval "$ac_link") 2>&5
22847 ac_status=$?
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22850 { (case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22853 esac
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_try") 2>&5
22856 ac_status=$?
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; }; then
22859 ac_cv_func_realloc_0_nonnull=yes
22860 else
22861 echo "$as_me: program exited with status $ac_status" >&5
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 ( exit $ac_status )
22866 ac_cv_func_realloc_0_nonnull=no
22868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22873 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
22874 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
22875 if test $ac_cv_func_realloc_0_nonnull = yes; then
22877 cat >>confdefs.h <<\_ACEOF
22878 #define HAVE_REALLOC 1
22879 _ACEOF
22881 else
22882 cat >>confdefs.h <<\_ACEOF
22883 #define HAVE_REALLOC 0
22884 _ACEOF
22886 case " $LIBOBJS " in
22887 *" realloc.$ac_objext "* ) ;;
22888 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
22890 esac
22893 cat >>confdefs.h <<\_ACEOF
22894 #define realloc rpl_realloc
22895 _ACEOF
22903 for ac_header in sys/select.h sys/socket.h
22905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22910 echo $ECHO_N "(cached) $ECHO_C" >&6
22912 ac_res=`eval echo '${'$as_ac_Header'}'`
22913 { echo "$as_me:$LINENO: result: $ac_res" >&5
22914 echo "${ECHO_T}$ac_res" >&6; }
22915 else
22916 # Is the header compilable?
22917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22919 cat >conftest.$ac_ext <<_ACEOF
22920 /* confdefs.h. */
22921 _ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h. */
22925 $ac_includes_default
22926 #include <$ac_header>
22927 _ACEOF
22928 rm -f conftest.$ac_objext
22929 if { (ac_try="$ac_compile"
22930 case "(($ac_try" in
22931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22932 *) ac_try_echo=$ac_try;;
22933 esac
22934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22935 (eval "$ac_compile") 2>conftest.er1
22936 ac_status=$?
22937 grep -v '^ *+' conftest.er1 >conftest.err
22938 rm -f conftest.er1
22939 cat conftest.err >&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } &&
22942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22943 { (case "(($ac_try" in
22944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22945 *) ac_try_echo=$ac_try;;
22946 esac
22947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22948 (eval "$ac_try") 2>&5
22949 ac_status=$?
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); }; } &&
22952 { ac_try='test -s conftest.$ac_objext'
22953 { (case "(($ac_try" in
22954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22955 *) ac_try_echo=$ac_try;;
22956 esac
22957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22958 (eval "$ac_try") 2>&5
22959 ac_status=$?
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); }; }; then
22962 ac_header_compiler=yes
22963 else
22964 echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22967 ac_header_compiler=no
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22972 echo "${ECHO_T}$ac_header_compiler" >&6; }
22974 # Is the header present?
22975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22977 cat >conftest.$ac_ext <<_ACEOF
22978 /* confdefs.h. */
22979 _ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22983 #include <$ac_header>
22984 _ACEOF
22985 if { (ac_try="$ac_cpp conftest.$ac_ext"
22986 case "(($ac_try" in
22987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22988 *) ac_try_echo=$ac_try;;
22989 esac
22990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22992 ac_status=$?
22993 grep -v '^ *+' conftest.er1 >conftest.err
22994 rm -f conftest.er1
22995 cat conftest.err >&5
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } >/dev/null; then
22998 if test -s conftest.err; then
22999 ac_cpp_err=$ac_cxx_preproc_warn_flag
23000 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23001 else
23002 ac_cpp_err=
23004 else
23005 ac_cpp_err=yes
23007 if test -z "$ac_cpp_err"; then
23008 ac_header_preproc=yes
23009 else
23010 echo "$as_me: failed program was:" >&5
23011 sed 's/^/| /' conftest.$ac_ext >&5
23013 ac_header_preproc=no
23016 rm -f conftest.err conftest.$ac_ext
23017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23018 echo "${ECHO_T}$ac_header_preproc" >&6; }
23020 # So? What about this header?
23021 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23022 yes:no: )
23023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23027 ac_header_preproc=yes
23029 no:yes:* )
23030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23042 ( cat <<\_ASBOX
23043 ## -------------------------------------------- ##
23044 ## Report this to http://www.mangosproject.org/ ##
23045 ## -------------------------------------------- ##
23046 _ASBOX
23047 ) | sed "s/^/$as_me: WARNING: /" >&2
23049 esac
23050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23053 echo $ECHO_N "(cached) $ECHO_C" >&6
23054 else
23055 eval "$as_ac_Header=\$ac_header_preproc"
23057 ac_res=`eval echo '${'$as_ac_Header'}'`
23058 { echo "$as_me:$LINENO: result: $ac_res" >&5
23059 echo "${ECHO_T}$ac_res" >&6; }
23062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23063 cat >>confdefs.h <<_ACEOF
23064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23065 _ACEOF
23069 done
23071 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
23072 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
23073 if test "${ac_cv_func_select_args+set}" = set; then
23074 echo $ECHO_N "(cached) $ECHO_C" >&6
23075 else
23076 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23077 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23078 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
23079 cat >conftest.$ac_ext <<_ACEOF
23080 /* confdefs.h. */
23081 _ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23085 $ac_includes_default
23086 #if HAVE_SYS_SELECT_H
23087 # include <sys/select.h>
23088 #endif
23089 #if HAVE_SYS_SOCKET_H
23090 # include <sys/socket.h>
23091 #endif
23094 main ()
23096 extern int select ($ac_arg1,
23097 $ac_arg234, $ac_arg234, $ac_arg234,
23098 $ac_arg5);
23100 return 0;
23102 _ACEOF
23103 rm -f conftest.$ac_objext
23104 if { (ac_try="$ac_compile"
23105 case "(($ac_try" in
23106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107 *) ac_try_echo=$ac_try;;
23108 esac
23109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23110 (eval "$ac_compile") 2>conftest.er1
23111 ac_status=$?
23112 grep -v '^ *+' conftest.er1 >conftest.err
23113 rm -f conftest.er1
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } &&
23117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23118 { (case "(($ac_try" in
23119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23120 *) ac_try_echo=$ac_try;;
23121 esac
23122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23123 (eval "$ac_try") 2>&5
23124 ac_status=$?
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); }; } &&
23127 { ac_try='test -s conftest.$ac_objext'
23128 { (case "(($ac_try" in
23129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130 *) ac_try_echo=$ac_try;;
23131 esac
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133 (eval "$ac_try") 2>&5
23134 ac_status=$?
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); }; }; then
23137 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
23138 else
23139 echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23146 done
23147 done
23148 done
23149 # Provide a safe default value.
23150 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
23153 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
23154 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
23155 ac_save_IFS=$IFS; IFS=','
23156 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23157 IFS=$ac_save_IFS
23158 shift
23160 cat >>confdefs.h <<_ACEOF
23161 #define SELECT_TYPE_ARG1 $1
23162 _ACEOF
23165 cat >>confdefs.h <<_ACEOF
23166 #define SELECT_TYPE_ARG234 ($2)
23167 _ACEOF
23170 cat >>confdefs.h <<_ACEOF
23171 #define SELECT_TYPE_ARG5 ($3)
23172 _ACEOF
23174 rm -f conftest*
23177 for ac_func in strftime
23179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23183 echo $ECHO_N "(cached) $ECHO_C" >&6
23184 else
23185 cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h. */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23193 #define $ac_func innocuous_$ac_func
23195 /* System header to define __stub macros and hopefully few prototypes,
23196 which can conflict with char $ac_func (); below.
23197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23198 <limits.h> exists even on freestanding compilers. */
23200 #ifdef __STDC__
23201 # include <limits.h>
23202 #else
23203 # include <assert.h>
23204 #endif
23206 #undef $ac_func
23208 /* Override any GCC internal prototype to avoid an error.
23209 Use char because int might match the return type of a GCC
23210 builtin and then its argument prototype would still apply. */
23211 #ifdef __cplusplus
23212 extern "C"
23213 #endif
23214 char $ac_func ();
23215 /* The GNU C library defines this for functions which it implements
23216 to always fail with ENOSYS. Some functions are actually named
23217 something starting with __ and the normal name is an alias. */
23218 #if defined __stub_$ac_func || defined __stub___$ac_func
23219 choke me
23220 #endif
23223 main ()
23225 return $ac_func ();
23227 return 0;
23229 _ACEOF
23230 rm -f conftest.$ac_objext conftest$ac_exeext
23231 if { (ac_try="$ac_link"
23232 case "(($ac_try" in
23233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23234 *) ac_try_echo=$ac_try;;
23235 esac
23236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23237 (eval "$ac_link") 2>conftest.er1
23238 ac_status=$?
23239 grep -v '^ *+' conftest.er1 >conftest.err
23240 rm -f conftest.er1
23241 cat conftest.err >&5
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); } &&
23244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23245 { (case "(($ac_try" in
23246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23247 *) ac_try_echo=$ac_try;;
23248 esac
23249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23250 (eval "$ac_try") 2>&5
23251 ac_status=$?
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); }; } &&
23254 { ac_try='test -s conftest$ac_exeext'
23255 { (case "(($ac_try" in
23256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23257 *) ac_try_echo=$ac_try;;
23258 esac
23259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23260 (eval "$ac_try") 2>&5
23261 ac_status=$?
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); }; }; then
23264 eval "$as_ac_var=yes"
23265 else
23266 echo "$as_me: failed program was:" >&5
23267 sed 's/^/| /' conftest.$ac_ext >&5
23269 eval "$as_ac_var=no"
23272 rm -f core conftest.err conftest.$ac_objext \
23273 conftest$ac_exeext conftest.$ac_ext
23275 ac_res=`eval echo '${'$as_ac_var'}'`
23276 { echo "$as_me:$LINENO: result: $ac_res" >&5
23277 echo "${ECHO_T}$ac_res" >&6; }
23278 if test `eval echo '${'$as_ac_var'}'` = yes; then
23279 cat >>confdefs.h <<_ACEOF
23280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23281 _ACEOF
23283 else
23284 # strftime is in -lintl on SCO UNIX.
23285 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
23286 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
23287 if test "${ac_cv_lib_intl_strftime+set}" = set; then
23288 echo $ECHO_N "(cached) $ECHO_C" >&6
23289 else
23290 ac_check_lib_save_LIBS=$LIBS
23291 LIBS="-lintl $LIBS"
23292 cat >conftest.$ac_ext <<_ACEOF
23293 /* confdefs.h. */
23294 _ACEOF
23295 cat confdefs.h >>conftest.$ac_ext
23296 cat >>conftest.$ac_ext <<_ACEOF
23297 /* end confdefs.h. */
23299 /* Override any GCC internal prototype to avoid an error.
23300 Use char because int might match the return type of a GCC
23301 builtin and then its argument prototype would still apply. */
23302 #ifdef __cplusplus
23303 extern "C"
23304 #endif
23305 char strftime ();
23307 main ()
23309 return strftime ();
23311 return 0;
23313 _ACEOF
23314 rm -f conftest.$ac_objext conftest$ac_exeext
23315 if { (ac_try="$ac_link"
23316 case "(($ac_try" in
23317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318 *) ac_try_echo=$ac_try;;
23319 esac
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321 (eval "$ac_link") 2>conftest.er1
23322 ac_status=$?
23323 grep -v '^ *+' conftest.er1 >conftest.err
23324 rm -f conftest.er1
23325 cat conftest.err >&5
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); } &&
23328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23329 { (case "(($ac_try" in
23330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23331 *) ac_try_echo=$ac_try;;
23332 esac
23333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23334 (eval "$ac_try") 2>&5
23335 ac_status=$?
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); }; } &&
23338 { ac_try='test -s conftest$ac_exeext'
23339 { (case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23342 esac
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344 (eval "$ac_try") 2>&5
23345 ac_status=$?
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; }; then
23348 ac_cv_lib_intl_strftime=yes
23349 else
23350 echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23353 ac_cv_lib_intl_strftime=no
23356 rm -f core conftest.err conftest.$ac_objext \
23357 conftest$ac_exeext conftest.$ac_ext
23358 LIBS=$ac_check_lib_save_LIBS
23360 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
23361 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
23362 if test $ac_cv_lib_intl_strftime = yes; then
23363 cat >>confdefs.h <<\_ACEOF
23364 #define HAVE_STRFTIME 1
23365 _ACEOF
23367 LIBS="-lintl $LIBS"
23371 done
23373 { echo "$as_me:$LINENO: checking for working strnlen" >&5
23374 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
23375 if test "${ac_cv_func_strnlen_working+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23377 else
23378 if test "$cross_compiling" = yes; then
23379 ac_cv_func_strnlen_working=no
23380 else
23381 cat >conftest.$ac_ext <<_ACEOF
23382 /* confdefs.h. */
23383 _ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h. */
23387 $ac_includes_default
23389 main ()
23392 #define S "foobar"
23393 #define S_LEN (sizeof S - 1)
23395 /* At least one implementation is buggy: that of AIX 4.3 would
23396 give strnlen (S, 1) == 3. */
23398 int i;
23399 for (i = 0; i < S_LEN + 1; ++i)
23401 int expected = i <= S_LEN ? i : S_LEN;
23402 if (strnlen (S, i) != expected)
23403 return 1;
23405 return 0;
23408 return 0;
23410 _ACEOF
23411 rm -f conftest$ac_exeext
23412 if { (ac_try="$ac_link"
23413 case "(($ac_try" in
23414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23415 *) ac_try_echo=$ac_try;;
23416 esac
23417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23418 (eval "$ac_link") 2>&5
23419 ac_status=$?
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23422 { (case "(($ac_try" in
23423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23424 *) ac_try_echo=$ac_try;;
23425 esac
23426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23427 (eval "$ac_try") 2>&5
23428 ac_status=$?
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); }; }; then
23431 ac_cv_func_strnlen_working=yes
23432 else
23433 echo "$as_me: program exited with status $ac_status" >&5
23434 echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23437 ( exit $ac_status )
23438 ac_cv_func_strnlen_working=no
23440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23445 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
23446 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
23447 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
23448 *" strnlen.$ac_objext "* ) ;;
23449 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
23451 esac
23455 for ac_func in vprintf
23457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23461 echo $ECHO_N "(cached) $ECHO_C" >&6
23462 else
23463 cat >conftest.$ac_ext <<_ACEOF
23464 /* confdefs.h. */
23465 _ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23471 #define $ac_func innocuous_$ac_func
23473 /* System header to define __stub macros and hopefully few prototypes,
23474 which can conflict with char $ac_func (); below.
23475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23476 <limits.h> exists even on freestanding compilers. */
23478 #ifdef __STDC__
23479 # include <limits.h>
23480 #else
23481 # include <assert.h>
23482 #endif
23484 #undef $ac_func
23486 /* Override any GCC internal prototype to avoid an error.
23487 Use char because int might match the return type of a GCC
23488 builtin and then its argument prototype would still apply. */
23489 #ifdef __cplusplus
23490 extern "C"
23491 #endif
23492 char $ac_func ();
23493 /* The GNU C library defines this for functions which it implements
23494 to always fail with ENOSYS. Some functions are actually named
23495 something starting with __ and the normal name is an alias. */
23496 #if defined __stub_$ac_func || defined __stub___$ac_func
23497 choke me
23498 #endif
23501 main ()
23503 return $ac_func ();
23505 return 0;
23507 _ACEOF
23508 rm -f conftest.$ac_objext conftest$ac_exeext
23509 if { (ac_try="$ac_link"
23510 case "(($ac_try" in
23511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23513 esac
23514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23515 (eval "$ac_link") 2>conftest.er1
23516 ac_status=$?
23517 grep -v '^ *+' conftest.er1 >conftest.err
23518 rm -f conftest.er1
23519 cat conftest.err >&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } &&
23522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23523 { (case "(($ac_try" in
23524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525 *) ac_try_echo=$ac_try;;
23526 esac
23527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23528 (eval "$ac_try") 2>&5
23529 ac_status=$?
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); }; } &&
23532 { ac_try='test -s conftest$ac_exeext'
23533 { (case "(($ac_try" in
23534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535 *) ac_try_echo=$ac_try;;
23536 esac
23537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538 (eval "$ac_try") 2>&5
23539 ac_status=$?
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; }; then
23542 eval "$as_ac_var=yes"
23543 else
23544 echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23547 eval "$as_ac_var=no"
23550 rm -f core conftest.err conftest.$ac_objext \
23551 conftest$ac_exeext conftest.$ac_ext
23553 ac_res=`eval echo '${'$as_ac_var'}'`
23554 { echo "$as_me:$LINENO: result: $ac_res" >&5
23555 echo "${ECHO_T}$ac_res" >&6; }
23556 if test `eval echo '${'$as_ac_var'}'` = yes; then
23557 cat >>confdefs.h <<_ACEOF
23558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23559 _ACEOF
23561 { echo "$as_me:$LINENO: checking for _doprnt" >&5
23562 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
23563 if test "${ac_cv_func__doprnt+set}" = set; then
23564 echo $ECHO_N "(cached) $ECHO_C" >&6
23565 else
23566 cat >conftest.$ac_ext <<_ACEOF
23567 /* confdefs.h. */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
23573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23574 #define _doprnt innocuous__doprnt
23576 /* System header to define __stub macros and hopefully few prototypes,
23577 which can conflict with char _doprnt (); below.
23578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23579 <limits.h> exists even on freestanding compilers. */
23581 #ifdef __STDC__
23582 # include <limits.h>
23583 #else
23584 # include <assert.h>
23585 #endif
23587 #undef _doprnt
23589 /* Override any GCC internal prototype to avoid an error.
23590 Use char because int might match the return type of a GCC
23591 builtin and then its argument prototype would still apply. */
23592 #ifdef __cplusplus
23593 extern "C"
23594 #endif
23595 char _doprnt ();
23596 /* The GNU C library defines this for functions which it implements
23597 to always fail with ENOSYS. Some functions are actually named
23598 something starting with __ and the normal name is an alias. */
23599 #if defined __stub__doprnt || defined __stub____doprnt
23600 choke me
23601 #endif
23604 main ()
23606 return _doprnt ();
23608 return 0;
23610 _ACEOF
23611 rm -f conftest.$ac_objext conftest$ac_exeext
23612 if { (ac_try="$ac_link"
23613 case "(($ac_try" in
23614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23615 *) ac_try_echo=$ac_try;;
23616 esac
23617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23618 (eval "$ac_link") 2>conftest.er1
23619 ac_status=$?
23620 grep -v '^ *+' conftest.er1 >conftest.err
23621 rm -f conftest.er1
23622 cat conftest.err >&5
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); } &&
23625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23626 { (case "(($ac_try" in
23627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628 *) ac_try_echo=$ac_try;;
23629 esac
23630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23631 (eval "$ac_try") 2>&5
23632 ac_status=$?
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); }; } &&
23635 { ac_try='test -s conftest$ac_exeext'
23636 { (case "(($ac_try" in
23637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23639 esac
23640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23641 (eval "$ac_try") 2>&5
23642 ac_status=$?
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); }; }; then
23645 ac_cv_func__doprnt=yes
23646 else
23647 echo "$as_me: failed program was:" >&5
23648 sed 's/^/| /' conftest.$ac_ext >&5
23650 ac_cv_func__doprnt=no
23653 rm -f core conftest.err conftest.$ac_objext \
23654 conftest$ac_exeext conftest.$ac_ext
23656 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
23657 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
23658 if test $ac_cv_func__doprnt = yes; then
23660 cat >>confdefs.h <<\_ACEOF
23661 #define HAVE_DOPRNT 1
23662 _ACEOF
23667 done
23691 for ac_func in \
23692 ftime strcspn strtoul atexit bzero floor gethostbyname \
23693 gettimeofday localtime_r memset rint select socket \
23694 sqrt stpcpy strchr strpbrk strrchr strstr strtol strtoul \
23697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23701 echo $ECHO_N "(cached) $ECHO_C" >&6
23702 else
23703 cat >conftest.$ac_ext <<_ACEOF
23704 /* confdefs.h. */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23711 #define $ac_func innocuous_$ac_func
23713 /* System header to define __stub macros and hopefully few prototypes,
23714 which can conflict with char $ac_func (); below.
23715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23716 <limits.h> exists even on freestanding compilers. */
23718 #ifdef __STDC__
23719 # include <limits.h>
23720 #else
23721 # include <assert.h>
23722 #endif
23724 #undef $ac_func
23726 /* Override any GCC internal prototype to avoid an error.
23727 Use char because int might match the return type of a GCC
23728 builtin and then its argument prototype would still apply. */
23729 #ifdef __cplusplus
23730 extern "C"
23731 #endif
23732 char $ac_func ();
23733 /* The GNU C library defines this for functions which it implements
23734 to always fail with ENOSYS. Some functions are actually named
23735 something starting with __ and the normal name is an alias. */
23736 #if defined __stub_$ac_func || defined __stub___$ac_func
23737 choke me
23738 #endif
23741 main ()
23743 return $ac_func ();
23745 return 0;
23747 _ACEOF
23748 rm -f conftest.$ac_objext conftest$ac_exeext
23749 if { (ac_try="$ac_link"
23750 case "(($ac_try" in
23751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752 *) ac_try_echo=$ac_try;;
23753 esac
23754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23755 (eval "$ac_link") 2>conftest.er1
23756 ac_status=$?
23757 grep -v '^ *+' conftest.er1 >conftest.err
23758 rm -f conftest.er1
23759 cat conftest.err >&5
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); } &&
23762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23763 { (case "(($ac_try" in
23764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23765 *) ac_try_echo=$ac_try;;
23766 esac
23767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23768 (eval "$ac_try") 2>&5
23769 ac_status=$?
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); }; } &&
23772 { ac_try='test -s conftest$ac_exeext'
23773 { (case "(($ac_try" in
23774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775 *) ac_try_echo=$ac_try;;
23776 esac
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778 (eval "$ac_try") 2>&5
23779 ac_status=$?
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); }; }; then
23782 eval "$as_ac_var=yes"
23783 else
23784 echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23787 eval "$as_ac_var=no"
23790 rm -f core conftest.err conftest.$ac_objext \
23791 conftest$ac_exeext conftest.$ac_ext
23793 ac_res=`eval echo '${'$as_ac_var'}'`
23794 { echo "$as_me:$LINENO: result: $ac_res" >&5
23795 echo "${ECHO_T}$ac_res" >&6; }
23796 if test `eval echo '${'$as_ac_var'}'` = yes; then
23797 cat >>confdefs.h <<_ACEOF
23798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23799 _ACEOF
23802 done
23805 withval=auto
23807 # Check whether --with-python was given.
23808 if test "${with_python+set}" = set; then
23809 withval=$with_python;
23813 WITH_PYTHON_VERSION=$withval
23814 if test $withval = auto ; then
23816 { echo "$as_me:$LINENO: checking for python 2.4" >&5
23817 echo $ECHO_N "checking for python 2.4... $ECHO_C" >&6; }
23818 if test "$cross_compiling" = yes; then
23819 withval=yes
23820 else
23821 cat >conftest.$ac_ext <<_ACEOF
23822 /* confdefs.h. */
23823 _ACEOF
23824 cat confdefs.h >>conftest.$ac_ext
23825 cat >>conftest.$ac_ext <<_ACEOF
23826 /* end confdefs.h. */
23828 #include <python2.4/Python.h>
23829 main() {
23830 exit(strncmp("2.4", PY_VERSION, 3));
23832 _ACEOF
23833 rm -f conftest$ac_exeext
23834 if { (ac_try="$ac_link"
23835 case "(($ac_try" in
23836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837 *) ac_try_echo=$ac_try;;
23838 esac
23839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840 (eval "$ac_link") 2>&5
23841 ac_status=$?
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23844 { (case "(($ac_try" in
23845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23846 *) ac_try_echo=$ac_try;;
23847 esac
23848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23849 (eval "$ac_try") 2>&5
23850 ac_status=$?
23851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); }; }; then
23853 withval=yes
23854 else
23855 echo "$as_me: program exited with status $ac_status" >&5
23856 echo "$as_me: failed program was:" >&5
23857 sed 's/^/| /' conftest.$ac_ext >&5
23859 ( exit $ac_status )
23860 withval=no
23862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23866 { echo "$as_me:$LINENO: result: $withval" >&5
23867 echo "${ECHO_T}$withval" >&6; }
23868 if test $withval = yes ; then
23869 WITH_PYTHON_VERSION="2.4"
23870 else
23872 { echo "$as_me:$LINENO: checking for python 2.3" >&5
23873 echo $ECHO_N "checking for python 2.3... $ECHO_C" >&6; }
23874 if test "$cross_compiling" = yes; then
23875 withval=yes
23876 else
23877 cat >conftest.$ac_ext <<_ACEOF
23878 /* confdefs.h. */
23879 _ACEOF
23880 cat confdefs.h >>conftest.$ac_ext
23881 cat >>conftest.$ac_ext <<_ACEOF
23882 /* end confdefs.h. */
23884 #include <python2.3/Python.h>
23885 main() {
23886 exit(strncmp("2.3", PY_VERSION, 3));
23888 _ACEOF
23889 rm -f conftest$ac_exeext
23890 if { (ac_try="$ac_link"
23891 case "(($ac_try" in
23892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23893 *) ac_try_echo=$ac_try;;
23894 esac
23895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23896 (eval "$ac_link") 2>&5
23897 ac_status=$?
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23900 { (case "(($ac_try" in
23901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23902 *) ac_try_echo=$ac_try;;
23903 esac
23904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23905 (eval "$ac_try") 2>&5
23906 ac_status=$?
23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); }; }; then
23909 withval=yes
23910 else
23911 echo "$as_me: program exited with status $ac_status" >&5
23912 echo "$as_me: failed program was:" >&5
23913 sed 's/^/| /' conftest.$ac_ext >&5
23915 ( exit $ac_status )
23916 withval=no
23918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23922 { echo "$as_me:$LINENO: result: $withval" >&5
23923 echo "${ECHO_T}$withval" >&6; }
23924 if test $withval = yes ; then
23925 WITH_PYTHON_VERSION="2.3"
23926 else
23928 { echo "$as_me:$LINENO: checking for python 2.2" >&5
23929 echo $ECHO_N "checking for python 2.2... $ECHO_C" >&6; }
23930 if test "$cross_compiling" = yes; then
23931 withval=yes
23932 else
23933 cat >conftest.$ac_ext <<_ACEOF
23934 /* confdefs.h. */
23935 _ACEOF
23936 cat confdefs.h >>conftest.$ac_ext
23937 cat >>conftest.$ac_ext <<_ACEOF
23938 /* end confdefs.h. */
23940 #include <python2.2/Python.h>
23941 main() {
23942 exit(strncmp("2.2", PY_VERSION, 3));
23944 _ACEOF
23945 rm -f conftest$ac_exeext
23946 if { (ac_try="$ac_link"
23947 case "(($ac_try" in
23948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23949 *) ac_try_echo=$ac_try;;
23950 esac
23951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23952 (eval "$ac_link") 2>&5
23953 ac_status=$?
23954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23956 { (case "(($ac_try" in
23957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23958 *) ac_try_echo=$ac_try;;
23959 esac
23960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23961 (eval "$ac_try") 2>&5
23962 ac_status=$?
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); }; }; then
23965 withval=yes
23966 else
23967 echo "$as_me: program exited with status $ac_status" >&5
23968 echo "$as_me: failed program was:" >&5
23969 sed 's/^/| /' conftest.$ac_ext >&5
23971 ( exit $ac_status )
23972 withval=no
23974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23978 { echo "$as_me:$LINENO: result: $withval" >&5
23979 echo "${ECHO_T}$withval" >&6; }
23980 if test $withval = yes ; then
23981 WITH_PYTHON_VERSION="2.2"
23982 else
23984 { echo "$as_me:$LINENO: checking for python 1.5.2" >&5
23985 echo $ECHO_N "checking for python 1.5.2... $ECHO_C" >&6; }
23986 if test "$cross_compiling" = yes; then
23987 withval=yes
23988 else
23989 cat >conftest.$ac_ext <<_ACEOF
23990 /* confdefs.h. */
23991 _ACEOF
23992 cat confdefs.h >>conftest.$ac_ext
23993 cat >>conftest.$ac_ext <<_ACEOF
23994 /* end confdefs.h. */
23996 #include <python1.5/Python.h>
23997 main() {
23998 exit(strcmp("1.5.2", PY_VERSION));
24000 _ACEOF
24001 rm -f conftest$ac_exeext
24002 if { (ac_try="$ac_link"
24003 case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24006 esac
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_link") 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24012 { (case "(($ac_try" in
24013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014 *) ac_try_echo=$ac_try;;
24015 esac
24016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017 (eval "$ac_try") 2>&5
24018 ac_status=$?
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); }; }; then
24021 withval=yes
24022 else
24023 echo "$as_me: program exited with status $ac_status" >&5
24024 echo "$as_me: failed program was:" >&5
24025 sed 's/^/| /' conftest.$ac_ext >&5
24027 ( exit $ac_status )
24028 withval=no
24030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24034 { echo "$as_me:$LINENO: result: $withval" >&5
24035 echo "${ECHO_T}$withval" >&6; }
24036 if test $withval = yes ; then
24037 WITH_PYTHON_VERSION="1.5"
24044 if test "$WITH_PYTHON_VERSION" != no ; then
24045 WITH_PYTHON_SUBDIR=python
24046 WITH_PYTHON_SUBPACKAGE=1
24047 else
24048 WITH_PYTHON_SUBDIR=
24049 WITH_PYTHON_SUBPACKAGE=0
24056 # Extract the first word of "doxygen", so it can be a program name with args.
24057 set dummy doxygen; ac_word=$2
24058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24060 if test "${ac_cv_path___DOXYGEN+set}" = set; then
24061 echo $ECHO_N "(cached) $ECHO_C" >&6
24062 else
24063 case $__DOXYGEN in
24064 [\\/]* | ?:[\\/]*)
24065 ac_cv_path___DOXYGEN="$__DOXYGEN" # Let the user override the test with a path.
24068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24069 for as_dir in $PATH
24071 IFS=$as_save_IFS
24072 test -z "$as_dir" && as_dir=.
24073 for ac_exec_ext in '' $ac_executable_extensions; do
24074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24075 ac_cv_path___DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
24076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24077 break 2
24079 done
24080 done
24081 IFS=$as_save_IFS
24083 test -z "$ac_cv_path___DOXYGEN" && ac_cv_path___DOXYGEN="no"
24085 esac
24087 __DOXYGEN=$ac_cv_path___DOXYGEN
24088 if test -n "$__DOXYGEN"; then
24089 { echo "$as_me:$LINENO: result: $__DOXYGEN" >&5
24090 echo "${ECHO_T}$__DOXYGEN" >&6; }
24091 else
24092 { echo "$as_me:$LINENO: result: no" >&5
24093 echo "${ECHO_T}no" >&6; }
24097 withval=auto
24099 # Check whether --with-apidocs was given.
24100 if test "${with_apidocs+set}" = set; then
24101 withval=$with_apidocs;
24105 if test $withval = auto -a $__DOXYGEN != no ; then
24106 withval=yes
24107 elif test $withval = yes -a $__DOXYGEN = no ; then
24108 { { echo "$as_me:$LINENO: error: --> MaNGOS API docs needs doxygen in PATH" >&5
24109 echo "$as_me: error: --> MaNGOS API docs needs doxygen in PATH" >&2;}
24110 { (exit 1); exit 1; }; }
24113 if test $withval = yes; then
24114 WITH_APIDOCS_TARGET=apidocs
24115 WITH_APIDOCS=1
24116 else
24117 WITH_APIDOCS=0
24122 { echo "$as_me:$LINENO: checking whether to include debug info in library" >&5
24123 echo $ECHO_N "checking whether to include debug info in library... $ECHO_C" >&6; }
24124 MANGOSD_DEBUG_INFO=no
24126 # Check whether --with-debug-info was given.
24127 if test "${with_debug_info+set}" = set; then
24128 withval=$with_debug_info;
24129 if test "$withval" = "yes" ; then
24130 CFLAGS="-g -DMANGOS_DEBUG $CFLAGS"
24131 CXXFLAGS="-g -DMANGOS_DEBUG $CXXFLAGS"
24132 MANGOSD_DEBUG_INFO=yes
24133 elif test "$withval" != "no" ; then
24134 { { echo "$as_me:$LINENO: error: Please choose yes or no" >&5
24135 echo "$as_me: error: Please choose yes or no" >&2;}
24136 { (exit 1); exit 1; }; }
24141 { echo "$as_me:$LINENO: result: $MANGOSD_DEBUG_INFO" >&5
24142 echo "${ECHO_T}$MANGOSD_DEBUG_INFO" >&6; }
24145 # check for cli console enable
24146 { echo "$as_me:$LINENO: checking whether cli console is enabled" >&5
24147 echo $ECHO_N "checking whether cli console is enabled... $ECHO_C" >&6; }
24148 MANGOSD_ENABLE_CLI=no
24149 # Check whether --enable-cli was given.
24150 if test "${enable_cli+set}" = set; then
24151 enableval=$enable_cli;
24152 if test "$enableval" = "yes" ; then
24153 CFLAGS="-DENABLE_CLI $CFLAGS"
24154 CXXFLAGS="-DENABLE_CLI $CXXFLAGS"
24155 MANGOSD_ENABLE_CLI=yes
24156 elif test "$withval" != "no" ; then
24157 { { echo "$as_me:$LINENO: error: Please choose yes or no" >&5
24158 echo "$as_me: error: Please choose yes or no" >&2;}
24159 { (exit 1); exit 1; }; }
24164 { echo "$as_me:$LINENO: result: $MANGOSD_ENABLE_CLI" >&5
24165 echo "${ECHO_T}$MANGOSD_ENABLE_CLI" >&6; }
24167 # check for remote console enable
24168 { echo "$as_me:$LINENO: checking whether remote console is enabled" >&5
24169 echo $ECHO_N "checking whether remote console is enabled... $ECHO_C" >&6; }
24170 MANGOSD_ENABLE_RA=no
24171 # Check whether --enable-ra was given.
24172 if test "${enable_ra+set}" = set; then
24173 enableval=$enable_ra;
24174 if test "$enableval" = "yes" ; then
24175 CFLAGS="-DENABLE_RA $CFLAGS"
24176 CXXFLAGS="-DENABLE_RA $CXXFLAGS"
24177 MANGOSD_ENABLE_RA=yes
24178 elif test "$withval" != "no" ; then
24179 { { echo "$as_me:$LINENO: error: Please choose yes or no" >&5
24180 echo "$as_me: error: Please choose yes or no" >&2;}
24181 { (exit 1); exit 1; }; }
24186 { echo "$as_me:$LINENO: result: $MANGOSD_ENABLE_RA" >&5
24187 echo "${ECHO_T}$MANGOSD_ENABLE_RA" >&6; }
24190 MANGOSD_CONFIG_TEMP="$sysconfdir/mangosd.conf"
24191 MANGOSD_CONFIGDIR_TEMP="$sysconfdir"
24192 REALMD_CONFIG_TEMP="$sysconfdir/realmd.conf"
24193 REALMD_CONFIGDIR_TEMP="$sysconfdir"
24194 if test $sysconfdir = '${prefix}/etc'; then
24195 MANGOSD_CONFIG_TEMP="${prefix}/mangos/mangosd.conf"
24196 MANGOSD_CONFIGDIR_TEMP="${prefix}/mangos"
24197 REALMD_CONFIG_TEMP="${prefix}/mangos/realmd.conf"
24198 REALMD_CONFIGDIR_TEMP="${prefix}/mangos"
24199 else
24200 if test $sysconfdir = '/'; then
24201 MANGOSD_CONFIG_TEMP="/mangosd.conf"
24202 MANGOSD_CONFIGDIR_TEMP="/"
24203 REALMD_CONFIG_TEMP="/realmd.conf"
24204 REALMD_CONFIGDIR_TEMP="/"
24205 else
24206 MANGOSD_CONFIG_TEMP="$sysconfdir/mangosd.conf"
24207 MANGOSD_CONFIGDIR_TEMP="$sysconfdir"
24208 REALMD_CONFIG_TEMP="$sysconfdir/realmd.conf"
24209 REALMD_CONFIGDIR_TEMP="$sysconfdir"
24213 if test $datadir = '${prefix}/share'; then
24214 MANGOSD_DATA_TEMP="${prefix}/share/mangos"
24215 else
24216 if test $datadir = '/'; then
24217 MANGOSD_DATA_TEMP="/mangos"
24218 else
24219 MANGOSD_DATA_TEMP="$datadir/mangos"
24223 eval "MANGOSD_CONFIG=$MANGOSD_CONFIG_TEMP"
24224 eval "MANGOSD_CONFIGDIR=$MANGOSD_CONFIGDIR_TEMP"
24225 eval "REALMD_CONFIG=$REALMD_CONFIG_TEMP"
24226 eval "REALMD_CONFIGDIR=$REALMD_CONFIGDIR_TEMP"
24227 eval "MANGOSD_DATA=$MANGOSD_DATA_TEMP"
24229 COMPILER_OPTIONS="$COMPILER_OPTIONS $CXXFLAGS"
24230 LINKER_OPTIONS="$LINKER_OPTIONS $LDFLAGS"
24255 ac_config_files="$ac_config_files ./Makefile doc/Doxyfile doc/Makefile sql/Makefile src/Makefile src/shared/Makefile src/shared/SystemConfig.h src/realmd/Makefile src/realmd/realmd.conf src/framework/Makefile src/game/Makefile src/bindings/Makefile src/bindings/python/Makefile src/bindings/universal/Makefile src/mangosd/Makefile src/mangosd/mangosd.conf dep/Makefile dep/src/Makefile dep/src/zlib/Makefile dep/src/zthread/Makefile"
24258 cat >confcache <<\_ACEOF
24259 # This file is a shell script that caches the results of configure
24260 # tests run on this system so they can be shared between configure
24261 # scripts and configure runs, see configure's option --config-cache.
24262 # It is not useful on other systems. If it contains results you don't
24263 # want to keep, you may remove or edit it.
24265 # config.status only pays attention to the cache file if you give it
24266 # the --recheck option to rerun configure.
24268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24270 # following values.
24272 _ACEOF
24274 # The following way of writing the cache mishandles newlines in values,
24275 # but we know of no workaround that is simple, portable, and efficient.
24276 # So, we kill variables containing newlines.
24277 # Ultrix sh set writes to stderr and can't be redirected directly,
24278 # and sets the high bit in the cache file unless we assign to the vars.
24280 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24281 eval ac_val=\$$ac_var
24282 case $ac_val in #(
24283 *${as_nl}*)
24284 case $ac_var in #(
24285 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24286 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24287 esac
24288 case $ac_var in #(
24289 _ | IFS | as_nl) ;; #(
24290 *) $as_unset $ac_var ;;
24291 esac ;;
24292 esac
24293 done
24295 (set) 2>&1 |
24296 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24297 *${as_nl}ac_space=\ *)
24298 # `set' does not quote correctly, so add quotes (double-quote
24299 # substitution turns \\\\ into \\, and sed turns \\ into \).
24300 sed -n \
24301 "s/'/'\\\\''/g;
24302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24303 ;; #(
24305 # `set' quotes correctly as required by POSIX, so do not add quotes.
24306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24308 esac |
24309 sort
24311 sed '
24312 /^ac_cv_env_/b end
24313 t clear
24314 :clear
24315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24316 t end
24317 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24318 :end' >>confcache
24319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24320 if test -w "$cache_file"; then
24321 test "x$cache_file" != "x/dev/null" &&
24322 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24323 echo "$as_me: updating cache $cache_file" >&6;}
24324 cat confcache >$cache_file
24325 else
24326 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24327 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24330 rm -f confcache
24332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24333 # Let make expand exec_prefix.
24334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24336 DEFS=-DHAVE_CONFIG_H
24338 ac_libobjs=
24339 ac_ltlibobjs=
24340 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24341 # 1. Remove the extension, and $U if already installed.
24342 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24343 ac_i=`echo "$ac_i" | sed "$ac_script"`
24344 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24345 # will be set to the directory where LIBOBJS objects are built.
24346 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24347 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24348 done
24349 LIBOBJS=$ac_libobjs
24351 LTLIBOBJS=$ac_ltlibobjs
24354 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24355 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24356 Usually this means the macro was only invoked conditionally." >&5
24357 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24358 Usually this means the macro was only invoked conditionally." >&2;}
24359 { (exit 1); exit 1; }; }
24361 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24362 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24363 Usually this means the macro was only invoked conditionally." >&5
24364 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24365 Usually this means the macro was only invoked conditionally." >&2;}
24366 { (exit 1); exit 1; }; }
24368 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24369 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24370 Usually this means the macro was only invoked conditionally." >&5
24371 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24372 Usually this means the macro was only invoked conditionally." >&2;}
24373 { (exit 1); exit 1; }; }
24375 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24376 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24377 Usually this means the macro was only invoked conditionally." >&5
24378 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24379 Usually this means the macro was only invoked conditionally." >&2;}
24380 { (exit 1); exit 1; }; }
24383 : ${CONFIG_STATUS=./config.status}
24384 ac_clean_files_save=$ac_clean_files
24385 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24386 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24387 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24388 cat >$CONFIG_STATUS <<_ACEOF
24389 #! $SHELL
24390 # Generated by $as_me.
24391 # Run this file to recreate the current configuration.
24392 # Compiler output produced by configure, useful for debugging
24393 # configure, is in config.log if it exists.
24395 debug=false
24396 ac_cs_recheck=false
24397 ac_cs_silent=false
24398 SHELL=\${CONFIG_SHELL-$SHELL}
24399 _ACEOF
24401 cat >>$CONFIG_STATUS <<\_ACEOF
24402 ## --------------------- ##
24403 ## M4sh Initialization. ##
24404 ## --------------------- ##
24406 # Be Bourne compatible
24407 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24408 emulate sh
24409 NULLCMD=:
24410 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24411 # is contrary to our usage. Disable this feature.
24412 alias -g '${1+"$@"}'='"$@"'
24413 setopt NO_GLOB_SUBST
24414 else
24415 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24417 BIN_SH=xpg4; export BIN_SH # for Tru64
24418 DUALCASE=1; export DUALCASE # for MKS sh
24421 # PATH needs CR
24422 # Avoid depending upon Character Ranges.
24423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24426 as_cr_digits='0123456789'
24427 as_cr_alnum=$as_cr_Letters$as_cr_digits
24429 # The user is always right.
24430 if test "${PATH_SEPARATOR+set}" != set; then
24431 echo "#! /bin/sh" >conf$$.sh
24432 echo "exit 0" >>conf$$.sh
24433 chmod +x conf$$.sh
24434 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24435 PATH_SEPARATOR=';'
24436 else
24437 PATH_SEPARATOR=:
24439 rm -f conf$$.sh
24442 # Support unset when possible.
24443 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24444 as_unset=unset
24445 else
24446 as_unset=false
24450 # IFS
24451 # We need space, tab and new line, in precisely that order. Quoting is
24452 # there to prevent editors from complaining about space-tab.
24453 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24454 # splitting by setting IFS to empty value.)
24455 as_nl='
24457 IFS=" "" $as_nl"
24459 # Find who we are. Look in the path if we contain no directory separator.
24460 case $0 in
24461 *[\\/]* ) as_myself=$0 ;;
24462 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24463 for as_dir in $PATH
24465 IFS=$as_save_IFS
24466 test -z "$as_dir" && as_dir=.
24467 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24468 done
24469 IFS=$as_save_IFS
24472 esac
24473 # We did not find ourselves, most probably we were run as `sh COMMAND'
24474 # in which case we are not to be found in the path.
24475 if test "x$as_myself" = x; then
24476 as_myself=$0
24478 if test ! -f "$as_myself"; then
24479 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24480 { (exit 1); exit 1; }
24483 # Work around bugs in pre-3.0 UWIN ksh.
24484 for as_var in ENV MAIL MAILPATH
24485 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24486 done
24487 PS1='$ '
24488 PS2='> '
24489 PS4='+ '
24491 # NLS nuisances.
24492 for as_var in \
24493 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24494 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24495 LC_TELEPHONE LC_TIME
24497 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24498 eval $as_var=C; export $as_var
24499 else
24500 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24502 done
24504 # Required to use basename.
24505 if expr a : '\(a\)' >/dev/null 2>&1 &&
24506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24507 as_expr=expr
24508 else
24509 as_expr=false
24512 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24513 as_basename=basename
24514 else
24515 as_basename=false
24519 # Name of the executable.
24520 as_me=`$as_basename -- "$0" ||
24521 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24522 X"$0" : 'X\(//\)$' \| \
24523 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24524 echo X/"$0" |
24525 sed '/^.*\/\([^/][^/]*\)\/*$/{
24526 s//\1/
24529 /^X\/\(\/\/\)$/{
24530 s//\1/
24533 /^X\/\(\/\).*/{
24534 s//\1/
24537 s/.*/./; q'`
24539 # CDPATH.
24540 $as_unset CDPATH
24544 as_lineno_1=$LINENO
24545 as_lineno_2=$LINENO
24546 test "x$as_lineno_1" != "x$as_lineno_2" &&
24547 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24549 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24550 # uniformly replaced by the line number. The first 'sed' inserts a
24551 # line-number line after each line using $LINENO; the second 'sed'
24552 # does the real work. The second script uses 'N' to pair each
24553 # line-number line with the line containing $LINENO, and appends
24554 # trailing '-' during substitution so that $LINENO is not a special
24555 # case at line end.
24556 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24557 # scripts with optimization help from Paolo Bonzini. Blame Lee
24558 # E. McMahon (1931-1989) for sed's syntax. :-)
24559 sed -n '
24561 /[$]LINENO/=
24562 ' <$as_myself |
24563 sed '
24564 s/[$]LINENO.*/&-/
24565 t lineno
24567 :lineno
24569 :loop
24570 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24571 t loop
24572 s/-\n.*//
24573 ' >$as_me.lineno &&
24574 chmod +x "$as_me.lineno" ||
24575 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24576 { (exit 1); exit 1; }; }
24578 # Don't try to exec as it changes $[0], causing all sort of problems
24579 # (the dirname of $[0] is not the place where we might find the
24580 # original and so on. Autoconf is especially sensitive to this).
24581 . "./$as_me.lineno"
24582 # Exit status is that of the last command.
24583 exit
24587 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24588 as_dirname=dirname
24589 else
24590 as_dirname=false
24593 ECHO_C= ECHO_N= ECHO_T=
24594 case `echo -n x` in
24595 -n*)
24596 case `echo 'x\c'` in
24597 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24598 *) ECHO_C='\c';;
24599 esac;;
24601 ECHO_N='-n';;
24602 esac
24604 if expr a : '\(a\)' >/dev/null 2>&1 &&
24605 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24606 as_expr=expr
24607 else
24608 as_expr=false
24611 rm -f conf$$ conf$$.exe conf$$.file
24612 if test -d conf$$.dir; then
24613 rm -f conf$$.dir/conf$$.file
24614 else
24615 rm -f conf$$.dir
24616 mkdir conf$$.dir
24618 echo >conf$$.file
24619 if ln -s conf$$.file conf$$ 2>/dev/null; then
24620 as_ln_s='ln -s'
24621 # ... but there are two gotchas:
24622 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24623 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24624 # In both cases, we have to default to `cp -p'.
24625 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24626 as_ln_s='cp -p'
24627 elif ln conf$$.file conf$$ 2>/dev/null; then
24628 as_ln_s=ln
24629 else
24630 as_ln_s='cp -p'
24632 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24633 rmdir conf$$.dir 2>/dev/null
24635 if mkdir -p . 2>/dev/null; then
24636 as_mkdir_p=:
24637 else
24638 test -d ./-p && rmdir ./-p
24639 as_mkdir_p=false
24642 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
24643 # systems may use methods other than mode bits to determine executability.
24644 cat >conf$$.file <<_ASEOF
24645 #! /bin/sh
24646 exit 0
24647 _ASEOF
24648 chmod +x conf$$.file
24649 if test -x conf$$.file >/dev/null 2>&1; then
24650 as_executable_p="test -x"
24651 else
24652 as_executable_p=:
24654 rm -f conf$$.file
24656 # Sed expression to map a string onto a valid CPP name.
24657 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24659 # Sed expression to map a string onto a valid variable name.
24660 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24663 exec 6>&1
24665 # Save the log message, to keep $[0] and so on meaningful, and to
24666 # report actual input values of CONFIG_FILES etc. instead of their
24667 # values after options handling.
24668 ac_log="
24669 This file was extended by MaNGOS $as_me 0.7-SVN, which was
24670 generated by GNU Autoconf 2.60. Invocation command line was
24672 CONFIG_FILES = $CONFIG_FILES
24673 CONFIG_HEADERS = $CONFIG_HEADERS
24674 CONFIG_LINKS = $CONFIG_LINKS
24675 CONFIG_COMMANDS = $CONFIG_COMMANDS
24676 $ $0 $@
24678 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24681 _ACEOF
24683 cat >>$CONFIG_STATUS <<_ACEOF
24684 # Files that config.status was made for.
24685 config_files="$ac_config_files"
24686 config_headers="$ac_config_headers"
24687 config_commands="$ac_config_commands"
24689 _ACEOF
24691 cat >>$CONFIG_STATUS <<\_ACEOF
24692 ac_cs_usage="\
24693 \`$as_me' instantiates files from templates according to the
24694 current configuration.
24696 Usage: $0 [OPTIONS] [FILE]...
24698 -h, --help print this help, then exit
24699 -V, --version print version number, then exit
24700 -q, --quiet do not print progress messages
24701 -d, --debug don't remove temporary files
24702 --recheck update $as_me by reconfiguring in the same conditions
24703 --file=FILE[:TEMPLATE]
24704 instantiate the configuration file FILE
24705 --header=FILE[:TEMPLATE]
24706 instantiate the configuration header FILE
24708 Configuration files:
24709 $config_files
24711 Configuration headers:
24712 $config_headers
24714 Configuration commands:
24715 $config_commands
24717 Report bugs to <bug-autoconf@gnu.org>."
24719 _ACEOF
24720 cat >>$CONFIG_STATUS <<_ACEOF
24721 ac_cs_version="\\
24722 MaNGOS config.status 0.7-SVN
24723 configured by $0, generated by GNU Autoconf 2.60,
24724 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24726 Copyright (C) 2006 Free Software Foundation, Inc.
24727 This config.status script is free software; the Free Software Foundation
24728 gives unlimited permission to copy, distribute and modify it."
24730 ac_pwd='$ac_pwd'
24731 srcdir='$srcdir'
24732 INSTALL='$INSTALL'
24733 _ACEOF
24735 cat >>$CONFIG_STATUS <<\_ACEOF
24736 # If no file are specified by the user, then we need to provide default
24737 # value. By we need to know if files were specified by the user.
24738 ac_need_defaults=:
24739 while test $# != 0
24741 case $1 in
24742 --*=*)
24743 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24744 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24745 ac_shift=:
24748 ac_option=$1
24749 ac_optarg=$2
24750 ac_shift=shift
24752 esac
24754 case $ac_option in
24755 # Handling of the options.
24756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24757 ac_cs_recheck=: ;;
24758 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24759 echo "$ac_cs_version"; exit ;;
24760 --debug | --debu | --deb | --de | --d | -d )
24761 debug=: ;;
24762 --file | --fil | --fi | --f )
24763 $ac_shift
24764 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24765 ac_need_defaults=false;;
24766 --header | --heade | --head | --hea )
24767 $ac_shift
24768 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24769 ac_need_defaults=false;;
24770 --he | --h)
24771 # Conflict between --help and --header
24772 { echo "$as_me: error: ambiguous option: $1
24773 Try \`$0 --help' for more information." >&2
24774 { (exit 1); exit 1; }; };;
24775 --help | --hel | -h )
24776 echo "$ac_cs_usage"; exit ;;
24777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24778 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24779 ac_cs_silent=: ;;
24781 # This is an error.
24782 -*) { echo "$as_me: error: unrecognized option: $1
24783 Try \`$0 --help' for more information." >&2
24784 { (exit 1); exit 1; }; } ;;
24786 *) ac_config_targets="$ac_config_targets $1"
24787 ac_need_defaults=false ;;
24789 esac
24790 shift
24791 done
24793 ac_configure_extra_args=
24795 if $ac_cs_silent; then
24796 exec 6>/dev/null
24797 ac_configure_extra_args="$ac_configure_extra_args --silent"
24800 _ACEOF
24801 cat >>$CONFIG_STATUS <<_ACEOF
24802 if \$ac_cs_recheck; then
24803 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24804 CONFIG_SHELL=$SHELL
24805 export CONFIG_SHELL
24806 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24809 _ACEOF
24810 cat >>$CONFIG_STATUS <<\_ACEOF
24811 exec 5>>config.log
24813 echo
24814 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24815 ## Running $as_me. ##
24816 _ASBOX
24817 echo "$ac_log"
24818 } >&5
24820 _ACEOF
24821 cat >>$CONFIG_STATUS <<_ACEOF
24823 # INIT-COMMANDS
24825 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24827 _ACEOF
24829 cat >>$CONFIG_STATUS <<\_ACEOF
24831 # Handling of arguments.
24832 for ac_config_target in $ac_config_targets
24834 case $ac_config_target in
24835 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24836 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24837 "./Makefile") CONFIG_FILES="$CONFIG_FILES ./Makefile" ;;
24838 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
24839 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24840 "sql/Makefile") CONFIG_FILES="$CONFIG_FILES sql/Makefile" ;;
24841 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24842 "src/shared/Makefile") CONFIG_FILES="$CONFIG_FILES src/shared/Makefile" ;;
24843 "src/shared/SystemConfig.h") CONFIG_FILES="$CONFIG_FILES src/shared/SystemConfig.h" ;;
24844 "src/realmd/Makefile") CONFIG_FILES="$CONFIG_FILES src/realmd/Makefile" ;;
24845 "src/realmd/realmd.conf") CONFIG_FILES="$CONFIG_FILES src/realmd/realmd.conf" ;;
24846 "src/framework/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/Makefile" ;;
24847 "src/game/Makefile") CONFIG_FILES="$CONFIG_FILES src/game/Makefile" ;;
24848 "src/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES src/bindings/Makefile" ;;
24849 "src/bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/bindings/python/Makefile" ;;
24850 "src/bindings/universal/Makefile") CONFIG_FILES="$CONFIG_FILES src/bindings/universal/Makefile" ;;
24851 "src/mangosd/Makefile") CONFIG_FILES="$CONFIG_FILES src/mangosd/Makefile" ;;
24852 "src/mangosd/mangosd.conf") CONFIG_FILES="$CONFIG_FILES src/mangosd/mangosd.conf" ;;
24853 "dep/Makefile") CONFIG_FILES="$CONFIG_FILES dep/Makefile" ;;
24854 "dep/src/Makefile") CONFIG_FILES="$CONFIG_FILES dep/src/Makefile" ;;
24855 "dep/src/zlib/Makefile") CONFIG_FILES="$CONFIG_FILES dep/src/zlib/Makefile" ;;
24856 "dep/src/zthread/Makefile") CONFIG_FILES="$CONFIG_FILES dep/src/zthread/Makefile" ;;
24858 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24859 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24860 { (exit 1); exit 1; }; };;
24861 esac
24862 done
24865 # If the user did not use the arguments to specify the items to instantiate,
24866 # then the envvar interface is used. Set only those that are not.
24867 # We use the long form for the default assignment because of an extremely
24868 # bizarre bug on SunOS 4.1.3.
24869 if $ac_need_defaults; then
24870 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24871 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24872 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24875 # Have a temporary directory for convenience. Make it in the build tree
24876 # simply because there is no reason against having it here, and in addition,
24877 # creating and moving files from /tmp can sometimes cause problems.
24878 # Hook for its removal unless debugging.
24879 # Note that there is a small window in which the directory will not be cleaned:
24880 # after its creation but before its name has been assigned to `$tmp'.
24881 $debug ||
24883 tmp=
24884 trap 'exit_status=$?
24885 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24887 trap '{ (exit 1); exit 1; }' 1 2 13 15
24889 # Create a (secure) tmp directory for tmp files.
24892 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24893 test -n "$tmp" && test -d "$tmp"
24894 } ||
24896 tmp=./conf$$-$RANDOM
24897 (umask 077 && mkdir "$tmp")
24898 } ||
24900 echo "$me: cannot create a temporary directory in ." >&2
24901 { (exit 1); exit 1; }
24905 # Set up the sed scripts for CONFIG_FILES section.
24908 # No need to generate the scripts if there are no CONFIG_FILES.
24909 # This happens for instance when ./config.status config.h
24910 if test -n "$CONFIG_FILES"; then
24912 _ACEOF
24916 ac_delim='%!_!# '
24917 for ac_last_try in false false false false false :; do
24918 cat >conf$$subs.sed <<_ACEOF
24919 SHELL!$SHELL$ac_delim
24920 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24921 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24922 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24923 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24924 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24925 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24926 exec_prefix!$exec_prefix$ac_delim
24927 prefix!$prefix$ac_delim
24928 program_transform_name!$program_transform_name$ac_delim
24929 bindir!$bindir$ac_delim
24930 sbindir!$sbindir$ac_delim
24931 libexecdir!$libexecdir$ac_delim
24932 datarootdir!$datarootdir$ac_delim
24933 datadir!$datadir$ac_delim
24934 sysconfdir!$sysconfdir$ac_delim
24935 sharedstatedir!$sharedstatedir$ac_delim
24936 localstatedir!$localstatedir$ac_delim
24937 includedir!$includedir$ac_delim
24938 oldincludedir!$oldincludedir$ac_delim
24939 docdir!$docdir$ac_delim
24940 infodir!$infodir$ac_delim
24941 htmldir!$htmldir$ac_delim
24942 dvidir!$dvidir$ac_delim
24943 pdfdir!$pdfdir$ac_delim
24944 psdir!$psdir$ac_delim
24945 libdir!$libdir$ac_delim
24946 localedir!$localedir$ac_delim
24947 mandir!$mandir$ac_delim
24948 DEFS!$DEFS$ac_delim
24949 ECHO_C!$ECHO_C$ac_delim
24950 ECHO_N!$ECHO_N$ac_delim
24951 ECHO_T!$ECHO_T$ac_delim
24952 LIBS!$LIBS$ac_delim
24953 build_alias!$build_alias$ac_delim
24954 host_alias!$host_alias$ac_delim
24955 target_alias!$target_alias$ac_delim
24956 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24957 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24958 INSTALL_DATA!$INSTALL_DATA$ac_delim
24959 CYGPATH_W!$CYGPATH_W$ac_delim
24960 PACKAGE!$PACKAGE$ac_delim
24961 VERSION!$VERSION$ac_delim
24962 ACLOCAL!$ACLOCAL$ac_delim
24963 AUTOCONF!$AUTOCONF$ac_delim
24964 AUTOMAKE!$AUTOMAKE$ac_delim
24965 AUTOHEADER!$AUTOHEADER$ac_delim
24966 MAKEINFO!$MAKEINFO$ac_delim
24967 install_sh!$install_sh$ac_delim
24968 STRIP!$STRIP$ac_delim
24969 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24970 mkdir_p!$mkdir_p$ac_delim
24971 AWK!$AWK$ac_delim
24972 SET_MAKE!$SET_MAKE$ac_delim
24973 am__leading_dot!$am__leading_dot$ac_delim
24974 AMTAR!$AMTAR$ac_delim
24975 am__tar!$am__tar$ac_delim
24976 am__untar!$am__untar$ac_delim
24977 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
24978 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
24979 MAINT!$MAINT$ac_delim
24980 CC!$CC$ac_delim
24981 CFLAGS!$CFLAGS$ac_delim
24982 LDFLAGS!$LDFLAGS$ac_delim
24983 CPPFLAGS!$CPPFLAGS$ac_delim
24984 ac_ct_CC!$ac_ct_CC$ac_delim
24985 EXEEXT!$EXEEXT$ac_delim
24986 OBJEXT!$OBJEXT$ac_delim
24987 DEPDIR!$DEPDIR$ac_delim
24988 am__include!$am__include$ac_delim
24989 am__quote!$am__quote$ac_delim
24990 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24991 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24992 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24993 CCDEPMODE!$CCDEPMODE$ac_delim
24994 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24995 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24996 CXX!$CXX$ac_delim
24997 CXXFLAGS!$CXXFLAGS$ac_delim
24998 ac_ct_CXX!$ac_ct_CXX$ac_delim
24999 CXXDEPMODE!$CXXDEPMODE$ac_delim
25000 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25001 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25002 build!$build$ac_delim
25003 build_cpu!$build_cpu$ac_delim
25004 build_vendor!$build_vendor$ac_delim
25005 build_os!$build_os$ac_delim
25006 host!$host$ac_delim
25007 host_cpu!$host_cpu$ac_delim
25008 host_vendor!$host_vendor$ac_delim
25009 host_os!$host_os$ac_delim
25010 GREP!$GREP$ac_delim
25011 EGREP!$EGREP$ac_delim
25012 LN_S!$LN_S$ac_delim
25013 ECHO!$ECHO$ac_delim
25014 AR!$AR$ac_delim
25015 RANLIB!$RANLIB$ac_delim
25016 _ACEOF
25018 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25019 break
25020 elif $ac_last_try; then
25021 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25022 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25023 { (exit 1); exit 1; }; }
25024 else
25025 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25027 done
25029 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25030 if test -n "$ac_eof"; then
25031 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25032 ac_eof=`expr $ac_eof + 1`
25035 cat >>$CONFIG_STATUS <<_ACEOF
25036 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25038 _ACEOF
25039 sed '
25040 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25041 s/^/s,@/; s/!/@,|#_!!_#|/
25044 s/'"$ac_delim"'$/,g/; t
25045 s/$/\\/; p
25046 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25047 ' >>$CONFIG_STATUS <conf$$subs.sed
25048 rm -f conf$$subs.sed
25049 cat >>$CONFIG_STATUS <<_ACEOF
25050 CEOF$ac_eof
25051 _ACEOF
25054 ac_delim='%!_!# '
25055 for ac_last_try in false false false false false :; do
25056 cat >conf$$subs.sed <<_ACEOF
25057 CPP!$CPP$ac_delim
25058 CXXCPP!$CXXCPP$ac_delim
25059 F77!$F77$ac_delim
25060 FFLAGS!$FFLAGS$ac_delim
25061 ac_ct_F77!$ac_ct_F77$ac_delim
25062 LIBTOOL!$LIBTOOL$ac_delim
25063 __PYTHON!$__PYTHON$ac_delim
25064 OPENSSL_INCLUDES!$OPENSSL_INCLUDES$ac_delim
25065 OPENSSL_LDFLAGS!$OPENSSL_LDFLAGS$ac_delim
25066 MYSQL_INCLUDES!$MYSQL_INCLUDES$ac_delim
25067 MYSQL_LDFLAGS!$MYSQL_LDFLAGS$ac_delim
25068 INCLUDES!$INCLUDES$ac_delim
25069 LIBOBJS!$LIBOBJS$ac_delim
25070 ALLOCA!$ALLOCA$ac_delim
25071 WITH_PYTHON_SUBDIR!$WITH_PYTHON_SUBDIR$ac_delim
25072 WITH_PYTHON_SUBPACKAGE!$WITH_PYTHON_SUBPACKAGE$ac_delim
25073 WITH_PYTHON_VERSION!$WITH_PYTHON_VERSION$ac_delim
25074 __DOXYGEN!$__DOXYGEN$ac_delim
25075 WITH_APIDOCS_TARGET!$WITH_APIDOCS_TARGET$ac_delim
25076 WITH_APIDOCS!$WITH_APIDOCS$ac_delim
25077 LINKER_OPTIONS!$LINKER_OPTIONS$ac_delim
25078 COMPILER_OPTIONS!$COMPILER_OPTIONS$ac_delim
25079 EXTRA_LINKER_OPTIONS!$EXTRA_LINKER_OPTIONS$ac_delim
25080 EXTRA_COMPILER_OPTIONS!$EXTRA_COMPILER_OPTIONS$ac_delim
25081 MANGOSD_CONFIG!$MANGOSD_CONFIG$ac_delim
25082 MANGOSD_CONFIGDIR!$MANGOSD_CONFIGDIR$ac_delim
25083 REALMD_CONFIG!$REALMD_CONFIG$ac_delim
25084 REALMD_CONFIGDIR!$REALMD_CONFIGDIR$ac_delim
25085 MANGOSD_DATA!$MANGOSD_DATA$ac_delim
25086 MANGOSD_ENABLE_CLI!$MANGOSD_ENABLE_CLI$ac_delim
25087 MANGOSD_ENABLE_RA!$MANGOSD_ENABLE_RA$ac_delim
25088 LT_RELEASE!$LT_RELEASE$ac_delim
25089 LT_CURRENT!$LT_CURRENT$ac_delim
25090 LT_AGE!$LT_AGE$ac_delim
25091 LT_REVISION!$LT_REVISION$ac_delim
25092 LTMS_RELEASE!$LTMS_RELEASE$ac_delim
25093 LTMS_CURRENT!$LTMS_CURRENT$ac_delim
25094 LTMS_AGE!$LTMS_AGE$ac_delim
25095 LTMS_REVISION!$LTMS_REVISION$ac_delim
25096 LTLIBOBJS!$LTLIBOBJS$ac_delim
25097 _ACEOF
25099 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
25100 break
25101 elif $ac_last_try; then
25102 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25103 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25104 { (exit 1); exit 1; }; }
25105 else
25106 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25108 done
25110 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25111 if test -n "$ac_eof"; then
25112 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25113 ac_eof=`expr $ac_eof + 1`
25116 cat >>$CONFIG_STATUS <<_ACEOF
25117 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25119 _ACEOF
25120 sed '
25121 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25122 s/^/s,@/; s/!/@,|#_!!_#|/
25125 s/'"$ac_delim"'$/,g/; t
25126 s/$/\\/; p
25127 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25128 ' >>$CONFIG_STATUS <conf$$subs.sed
25129 rm -f conf$$subs.sed
25130 cat >>$CONFIG_STATUS <<_ACEOF
25131 :end
25132 s/|#_!!_#|//g
25133 CEOF$ac_eof
25134 _ACEOF
25137 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25138 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25139 # trailing colons and then remove the whole line if VPATH becomes empty
25140 # (actually we leave an empty line to preserve line numbers).
25141 if test "x$srcdir" = x.; then
25142 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25143 s/:*\$(srcdir):*/:/
25144 s/:*\${srcdir}:*/:/
25145 s/:*@srcdir@:*/:/
25146 s/^\([^=]*=[ ]*\):*/\1/
25147 s/:*$//
25148 s/^[^=]*=[ ]*$//
25152 cat >>$CONFIG_STATUS <<\_ACEOF
25153 fi # test -n "$CONFIG_FILES"
25156 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25158 case $ac_tag in
25159 :[FHLC]) ac_mode=$ac_tag; continue;;
25160 esac
25161 case $ac_mode$ac_tag in
25162 :[FHL]*:*);;
25163 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25164 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25165 { (exit 1); exit 1; }; };;
25166 :[FH]-) ac_tag=-:-;;
25167 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25168 esac
25169 ac_save_IFS=$IFS
25170 IFS=:
25171 set x $ac_tag
25172 IFS=$ac_save_IFS
25173 shift
25174 ac_file=$1
25175 shift
25177 case $ac_mode in
25178 :L) ac_source=$1;;
25179 :[FH])
25180 ac_file_inputs=
25181 for ac_f
25183 case $ac_f in
25184 -) ac_f="$tmp/stdin";;
25185 *) # Look for the file first in the build tree, then in the source tree
25186 # (if the path is not absolute). The absolute path cannot be DOS-style,
25187 # because $ac_f cannot contain `:'.
25188 test -f "$ac_f" ||
25189 case $ac_f in
25190 [\\/$]*) false;;
25191 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25192 esac ||
25193 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25194 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25195 { (exit 1); exit 1; }; };;
25196 esac
25197 ac_file_inputs="$ac_file_inputs $ac_f"
25198 done
25200 # Let's still pretend it is `configure' which instantiates (i.e., don't
25201 # use $as_me), people would be surprised to read:
25202 # /* config.h. Generated by config.status. */
25203 configure_input="Generated from "`IFS=:
25204 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25205 if test x"$ac_file" != x-; then
25206 configure_input="$ac_file. $configure_input"
25207 { echo "$as_me:$LINENO: creating $ac_file" >&5
25208 echo "$as_me: creating $ac_file" >&6;}
25211 case $ac_tag in
25212 *:-:* | *:-) cat >"$tmp/stdin";;
25213 esac
25215 esac
25217 ac_dir=`$as_dirname -- "$ac_file" ||
25218 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25219 X"$ac_file" : 'X\(//\)[^/]' \| \
25220 X"$ac_file" : 'X\(//\)$' \| \
25221 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25222 echo X"$ac_file" |
25223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25224 s//\1/
25227 /^X\(\/\/\)[^/].*/{
25228 s//\1/
25231 /^X\(\/\/\)$/{
25232 s//\1/
25235 /^X\(\/\).*/{
25236 s//\1/
25239 s/.*/./; q'`
25240 { as_dir="$ac_dir"
25241 case $as_dir in #(
25242 -*) as_dir=./$as_dir;;
25243 esac
25244 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25245 as_dirs=
25246 while :; do
25247 case $as_dir in #(
25248 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25249 *) as_qdir=$as_dir;;
25250 esac
25251 as_dirs="'$as_qdir' $as_dirs"
25252 as_dir=`$as_dirname -- "$as_dir" ||
25253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25254 X"$as_dir" : 'X\(//\)[^/]' \| \
25255 X"$as_dir" : 'X\(//\)$' \| \
25256 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25257 echo X"$as_dir" |
25258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25259 s//\1/
25262 /^X\(\/\/\)[^/].*/{
25263 s//\1/
25266 /^X\(\/\/\)$/{
25267 s//\1/
25270 /^X\(\/\).*/{
25271 s//\1/
25274 s/.*/./; q'`
25275 test -d "$as_dir" && break
25276 done
25277 test -z "$as_dirs" || eval "mkdir $as_dirs"
25278 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25279 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25280 { (exit 1); exit 1; }; }; }
25281 ac_builddir=.
25283 case "$ac_dir" in
25284 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25286 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25287 # A ".." for each directory in $ac_dir_suffix.
25288 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25289 case $ac_top_builddir_sub in
25290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25292 esac ;;
25293 esac
25294 ac_abs_top_builddir=$ac_pwd
25295 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25296 # for backward compatibility:
25297 ac_top_builddir=$ac_top_build_prefix
25299 case $srcdir in
25300 .) # We are building in place.
25301 ac_srcdir=.
25302 ac_top_srcdir=$ac_top_builddir_sub
25303 ac_abs_top_srcdir=$ac_pwd ;;
25304 [\\/]* | ?:[\\/]* ) # Absolute name.
25305 ac_srcdir=$srcdir$ac_dir_suffix;
25306 ac_top_srcdir=$srcdir
25307 ac_abs_top_srcdir=$srcdir ;;
25308 *) # Relative name.
25309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25310 ac_top_srcdir=$ac_top_build_prefix$srcdir
25311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25312 esac
25313 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25316 case $ac_mode in
25319 # CONFIG_FILE
25322 case $INSTALL in
25323 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25324 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25325 esac
25326 _ACEOF
25328 cat >>$CONFIG_STATUS <<\_ACEOF
25329 # If the template does not know about datarootdir, expand it.
25330 # FIXME: This hack should be removed a few years after 2.60.
25331 ac_datarootdir_hack=; ac_datarootdir_seen=
25333 case `sed -n '/datarootdir/ {
25337 /@datadir@/p
25338 /@docdir@/p
25339 /@infodir@/p
25340 /@localedir@/p
25341 /@mandir@/p
25342 ' $ac_file_inputs` in
25343 *datarootdir*) ac_datarootdir_seen=yes;;
25344 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25345 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25346 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25347 _ACEOF
25348 cat >>$CONFIG_STATUS <<_ACEOF
25349 ac_datarootdir_hack='
25350 s&@datadir@&$datadir&g
25351 s&@docdir@&$docdir&g
25352 s&@infodir@&$infodir&g
25353 s&@localedir@&$localedir&g
25354 s&@mandir@&$mandir&g
25355 s&\\\${datarootdir}&$datarootdir&g' ;;
25356 esac
25357 _ACEOF
25359 # Neutralize VPATH when `$srcdir' = `.'.
25360 # Shell code in configure.ac might set extrasub.
25361 # FIXME: do we really want to maintain this feature?
25362 cat >>$CONFIG_STATUS <<_ACEOF
25363 sed "$ac_vpsub
25364 $extrasub
25365 _ACEOF
25366 cat >>$CONFIG_STATUS <<\_ACEOF
25368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25369 s&@configure_input@&$configure_input&;t t
25370 s&@top_builddir@&$ac_top_builddir_sub&;t t
25371 s&@srcdir@&$ac_srcdir&;t t
25372 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25373 s&@top_srcdir@&$ac_top_srcdir&;t t
25374 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25375 s&@builddir@&$ac_builddir&;t t
25376 s&@abs_builddir@&$ac_abs_builddir&;t t
25377 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25378 s&@INSTALL@&$ac_INSTALL&;t t
25379 $ac_datarootdir_hack
25380 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25382 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25383 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25384 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25385 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25386 which seems to be undefined. Please make sure it is defined." >&5
25387 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25388 which seems to be undefined. Please make sure it is defined." >&2;}
25390 rm -f "$tmp/stdin"
25391 case $ac_file in
25392 -) cat "$tmp/out"; rm -f "$tmp/out";;
25393 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25394 esac
25398 # CONFIG_HEADER
25400 _ACEOF
25402 # Transform confdefs.h into a sed script `conftest.defines', that
25403 # substitutes the proper values into config.h.in to produce config.h.
25404 rm -f conftest.defines conftest.tail
25405 # First, append a space to every undef/define line, to ease matching.
25406 echo 's/$/ /' >conftest.defines
25407 # Then, protect against being on the right side of a sed subst, or in
25408 # an unquoted here document, in config.status. If some macros were
25409 # called several times there might be several #defines for the same
25410 # symbol, which is useless. But do not sort them, since the last
25411 # AC_DEFINE must be honored.
25412 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25413 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25414 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25415 # PARAMS is the parameter list in the macro definition--in most cases, it's
25416 # just an empty string.
25417 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25418 ac_dB='\\)[ (].*,\\1define\\2'
25419 ac_dC=' '
25420 ac_dD=' ,'
25422 uniq confdefs.h |
25423 sed -n '
25424 t rset
25425 :rset
25426 s/^[ ]*#[ ]*define[ ][ ]*//
25427 t ok
25430 s/[\\&,]/\\&/g
25431 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25432 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25433 ' >>conftest.defines
25435 # Remove the space that was appended to ease matching.
25436 # Then replace #undef with comments. This is necessary, for
25437 # example, in the case of _POSIX_SOURCE, which is predefined and required
25438 # on some systems where configure will not decide to define it.
25439 # (The regexp can be short, since the line contains either #define or #undef.)
25440 echo 's/ $//
25441 s,^[ #]*u.*,/* & */,' >>conftest.defines
25443 # Break up conftest.defines:
25444 ac_max_sed_lines=50
25446 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25447 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25448 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25449 # et cetera.
25450 ac_in='$ac_file_inputs'
25451 ac_out='"$tmp/out1"'
25452 ac_nxt='"$tmp/out2"'
25454 while :
25456 # Write a here document:
25457 cat >>$CONFIG_STATUS <<_ACEOF
25458 # First, check the format of the line:
25459 cat >"\$tmp/defines.sed" <<\\CEOF
25460 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25461 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25463 :def
25464 _ACEOF
25465 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25466 echo 'CEOF
25467 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25468 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25469 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25470 grep . conftest.tail >/dev/null || break
25471 rm -f conftest.defines
25472 mv conftest.tail conftest.defines
25473 done
25474 rm -f conftest.defines conftest.tail
25476 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25477 cat >>$CONFIG_STATUS <<\_ACEOF
25478 if test x"$ac_file" != x-; then
25479 echo "/* $configure_input */" >"$tmp/config.h"
25480 cat "$ac_result" >>"$tmp/config.h"
25481 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25482 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25483 echo "$as_me: $ac_file is unchanged" >&6;}
25484 else
25485 rm -f $ac_file
25486 mv "$tmp/config.h" $ac_file
25488 else
25489 echo "/* $configure_input */"
25490 cat "$ac_result"
25492 rm -f "$tmp/out12"
25493 # Compute $ac_file's index in $config_headers.
25494 _am_stamp_count=1
25495 for _am_header in $config_headers :; do
25496 case $_am_header in
25497 $ac_file | $ac_file:* )
25498 break ;;
25500 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25501 esac
25502 done
25503 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25504 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25505 X$ac_file : 'X\(//\)[^/]' \| \
25506 X$ac_file : 'X\(//\)$' \| \
25507 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25508 echo X$ac_file |
25509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25510 s//\1/
25513 /^X\(\/\/\)[^/].*/{
25514 s//\1/
25517 /^X\(\/\/\)$/{
25518 s//\1/
25521 /^X\(\/\).*/{
25522 s//\1/
25525 s/.*/./; q'`/stamp-h$_am_stamp_count
25528 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25529 echo "$as_me: executing $ac_file commands" >&6;}
25531 esac
25534 case $ac_file$ac_mode in
25535 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25536 # Strip MF so we end up with the name of the file.
25537 mf=`echo "$mf" | sed -e 's/:.*$//'`
25538 # Check whether this is an Automake generated Makefile or not.
25539 # We used to match only the files named `Makefile.in', but
25540 # some people rename them; so instead we look at the file content.
25541 # Grep'ing the first line is not enough: some people post-process
25542 # each Makefile.in and add a new line on top of each file to say so.
25543 # So let's grep whole file.
25544 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25545 dirpart=`$as_dirname -- "$mf" ||
25546 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25547 X"$mf" : 'X\(//\)[^/]' \| \
25548 X"$mf" : 'X\(//\)$' \| \
25549 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25550 echo X"$mf" |
25551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25552 s//\1/
25555 /^X\(\/\/\)[^/].*/{
25556 s//\1/
25559 /^X\(\/\/\)$/{
25560 s//\1/
25563 /^X\(\/\).*/{
25564 s//\1/
25567 s/.*/./; q'`
25568 else
25569 continue
25571 # Extract the definition of DEPDIR, am__include, and am__quote
25572 # from the Makefile without running `make'.
25573 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25574 test -z "$DEPDIR" && continue
25575 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25576 test -z "am__include" && continue
25577 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25578 # When using ansi2knr, U may be empty or an underscore; expand it
25579 U=`sed -n 's/^U = //p' < "$mf"`
25580 # Find all dependency output files, they are included files with
25581 # $(DEPDIR) in their names. We invoke sed twice because it is the
25582 # simplest approach to changing $(DEPDIR) to its actual value in the
25583 # expansion.
25584 for file in `sed -n "
25585 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25586 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25587 # Make sure the directory exists.
25588 test -f "$dirpart/$file" && continue
25589 fdir=`$as_dirname -- "$file" ||
25590 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25591 X"$file" : 'X\(//\)[^/]' \| \
25592 X"$file" : 'X\(//\)$' \| \
25593 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25594 echo X"$file" |
25595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25596 s//\1/
25599 /^X\(\/\/\)[^/].*/{
25600 s//\1/
25603 /^X\(\/\/\)$/{
25604 s//\1/
25607 /^X\(\/\).*/{
25608 s//\1/
25611 s/.*/./; q'`
25612 { as_dir=$dirpart/$fdir
25613 case $as_dir in #(
25614 -*) as_dir=./$as_dir;;
25615 esac
25616 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25617 as_dirs=
25618 while :; do
25619 case $as_dir in #(
25620 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25621 *) as_qdir=$as_dir;;
25622 esac
25623 as_dirs="'$as_qdir' $as_dirs"
25624 as_dir=`$as_dirname -- "$as_dir" ||
25625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25626 X"$as_dir" : 'X\(//\)[^/]' \| \
25627 X"$as_dir" : 'X\(//\)$' \| \
25628 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25629 echo X"$as_dir" |
25630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25631 s//\1/
25634 /^X\(\/\/\)[^/].*/{
25635 s//\1/
25638 /^X\(\/\/\)$/{
25639 s//\1/
25642 /^X\(\/\).*/{
25643 s//\1/
25646 s/.*/./; q'`
25647 test -d "$as_dir" && break
25648 done
25649 test -z "$as_dirs" || eval "mkdir $as_dirs"
25650 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25651 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25652 { (exit 1); exit 1; }; }; }
25653 # echo "creating $dirpart/$file"
25654 echo '# dummy' > "$dirpart/$file"
25655 done
25656 done
25659 esac
25660 done # for ac_tag
25663 { (exit 0); exit 0; }
25664 _ACEOF
25665 chmod +x $CONFIG_STATUS
25666 ac_clean_files=$ac_clean_files_save
25669 # configure is writing to config.log, and then calls config.status.
25670 # config.status does its own redirection, appending to config.log.
25671 # Unfortunately, on DOS this fails, as config.log is still kept open
25672 # by configure, so config.status won't be able to write to it; its
25673 # output is simply discarded. So we exec the FD to /dev/null,
25674 # effectively closing config.log, so it can be properly (re)opened and
25675 # appended to by config.status. When coming back to configure, we
25676 # need to make the FD available again.
25677 if test "$no_create" != yes; then
25678 ac_cs_success=:
25679 ac_config_status_args=
25680 test "$silent" = yes &&
25681 ac_config_status_args="$ac_config_status_args --quiet"
25682 exec 5>/dev/null
25683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25684 exec 5>>config.log
25685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25686 # would make configure fail if this is the last instruction.
25687 $ac_cs_success || { (exit 1); exit 1; }