1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for rrdtool 1.2.27.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
27 fi
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
210 test \$exitcode = 0) || { (exit 1); exit 1; }
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
252 fi
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
273 fi
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
325 test $exitcode = 0) || { (exit 1); exit 1; }
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
336 fi
338 fi
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
360 fi
362 fi
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561 esac
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
572 :
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
582 $*
583 EOF
584 exit 0
585 fi
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603 fi
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
627 IFS="$lt_save_ifs"
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689 fi
690 fi
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME='rrdtool'
728 PACKAGE_TARNAME='rrdtool'
729 PACKAGE_VERSION='1.2.27'
730 PACKAGE_STRING='rrdtool 1.2.27'
731 PACKAGE_BUGREPORT=''
733 ac_default_prefix=/usr/local/rrdtool-$PACKAGE_VERSION
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
770 ac_subst_vars='PERLFLAGS
771 SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 NUMVERS
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 RRDGRAPH_YLEGEND_ANGLE
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 CPP
860 GREP
861 EGREP
862 LN_S
863 ECHO
864 AR
865 RANLIB
866 CXX
867 CXXFLAGS
868 ac_ct_CXX
869 CXXDEPMODE
870 am__fastdepCXX_TRUE
871 am__fastdepCXX_FALSE
872 CXXCPP
873 F77
874 FFLAGS
875 ac_ct_F77
876 LIBTOOL
877 RRD_DEFAULT_FONT
878 MULTITHREAD_CFLAGS
879 MULTITHREAD_LDFLAGS
880 acx_pthread_config
881 PTHREAD_CC
882 PTHREAD_LIBS
883 PTHREAD_CFLAGS
884 BUILD_MULTITHREAD_TRUE
885 BUILD_MULTITHREAD_FALSE
886 BUILD_RRDCGI_TRUE
887 BUILD_RRDCGI_FALSE
888 PKGCONFIG
889 CORE_LIBS
890 ALL_LIBS
891 PERL
892 PERLCC
893 PERLCCFLAGS
894 PERLLD
895 PERLLDFLAGS
896 PERL_CC
897 PERL_MAKE_OPTIONS
898 COMP_PERL
899 PERL_VERSION
900 RUBY
901 RUBY_MAKE_OPTIONS
902 COMP_RUBY
903 BUILD_TCL_TRUE
904 BUILD_TCL_FALSE
905 BUILD_TCL_SITE_TRUE
906 BUILD_TCL_SITE_FALSE
907 TCL_PREFIX
908 TCL_SHLIB_CFLAGS
909 TCL_SHLIB_LD
910 TCL_SHLIB_SUFFIX
911 TCL_PACKAGE_PATH
912 TCL_LD_SEARCH_FLAGS
913 TCL_STUB_LIB_SPEC
914 TCL_VERSION
915 TCL_PACKAGE_DIR
916 PYTHON
917 PYTHON_VERSION
918 PYTHON_PREFIX
919 PYTHON_EXEC_PREFIX
920 PYTHON_PLATFORM
921 pythondir
922 pkgpythondir
923 pyexecdir
924 pkgpyexecdir
925 PYTHON_INCLUDES
926 COMP_PYTHON
927 NROFF
928 TROFF
929 RRDDOCDIR
930 LIBOBJS
931 LTLIBOBJS'
932 ac_subst_files=''
933 ac_precious_vars='build_alias
934 host_alias
935 target_alias
936 RRDGRAPH_YLEGEND_ANGLE
937 CC
938 CFLAGS
939 LDFLAGS
940 LIBS
941 CPPFLAGS
942 CPP
943 CXX
944 CXXFLAGS
945 CCC
946 CXXCPP
947 F77
948 FFLAGS
949 PERLCC
950 PERLCCFLAGS
951 PERLLD
952 PERLLDFLAGS
953 RRDDOCDIR'
956 # Initialize some variables set by options.
957 ac_init_help=
958 ac_init_version=false
959 # The variables have the same names as the options, with
960 # dashes changed to underlines.
961 cache_file=/dev/null
962 exec_prefix=NONE
963 no_create=
964 no_recursion=
965 prefix=NONE
966 program_prefix=NONE
967 program_suffix=NONE
968 program_transform_name=s,x,x,
969 silent=
970 site=
971 srcdir=
972 verbose=
973 x_includes=NONE
974 x_libraries=NONE
976 # Installation directory options.
977 # These are left unexpanded so users can "make install exec_prefix=/foo"
978 # and all the variables that are supposed to be based on exec_prefix
979 # by default will actually change.
980 # Use braces instead of parens because sh, perl, etc. also accept them.
981 # (The list follows the same order as the GNU Coding Standards.)
982 bindir='${exec_prefix}/bin'
983 sbindir='${exec_prefix}/sbin'
984 libexecdir='${exec_prefix}/libexec'
985 datarootdir='${prefix}/share'
986 datadir='${datarootdir}'
987 sysconfdir='${prefix}/etc'
988 sharedstatedir='${prefix}/com'
989 localstatedir='${prefix}/var'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993 infodir='${datarootdir}/info'
994 htmldir='${docdir}'
995 dvidir='${docdir}'
996 pdfdir='${docdir}'
997 psdir='${docdir}'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1002 ac_prev=
1003 ac_dashdash=
1004 for ac_option
1005 do
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
1008 eval $ac_prev=\$ac_option
1009 ac_prev=
1010 continue
1011 fi
1013 case $ac_option in
1014 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 *) ac_optarg=yes ;;
1016 esac
1018 # Accept the important Cygnus configure options, so we can diagnose typos.
1020 case $ac_dashdash$ac_option in
1021 --)
1022 ac_dashdash=yes ;;
1024 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 ac_prev=bindir ;;
1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027 bindir=$ac_optarg ;;
1029 -build | --build | --buil | --bui | --bu)
1030 ac_prev=build_alias ;;
1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032 build_alias=$ac_optarg ;;
1034 -cache-file | --cache-file | --cache-fil | --cache-fi \
1035 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036 ac_prev=cache_file ;;
1037 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039 cache_file=$ac_optarg ;;
1041 --config-cache | -C)
1042 cache_file=config.cache ;;
1044 -datadir | --datadir | --datadi | --datad)
1045 ac_prev=datadir ;;
1046 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047 datadir=$ac_optarg ;;
1049 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050 | --dataroo | --dataro | --datar)
1051 ac_prev=datarootdir ;;
1052 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054 datarootdir=$ac_optarg ;;
1056 -disable-* | --disable-*)
1057 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1063 eval enable_$ac_feature=no ;;
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1075 -enable-* | --enable-*)
1076 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1082 eval enable_$ac_feature=\$ac_optarg ;;
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1095 with_gas=yes ;;
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 ac_prev=htmldir ;;
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 | --ht=*)
1113 htmldir=$ac_optarg ;;
1115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 ac_prev=infodir ;;
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1127 -libdir | --libdir | --libdi | --libd)
1128 ac_prev=libdir ;;
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1144 -localstatedir | --localstatedir | --localstatedi | --localstated \
1145 | --localstate | --localstat | --localsta | --localst | --locals)
1146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149 localstatedir=$ac_optarg ;;
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 ac_prev=mandir ;;
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1158 with_fp=no ;;
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1162 no_create=yes ;;
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166 no_recursion=yes ;;
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 ac_prev=prefix ;;
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 ac_prev=pdfdir ;;
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1218 -psdir | --psdir | --psdi | --psd | --ps)
1219 ac_prev=psdir ;;
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221 psdir=$ac_optarg ;;
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1225 silent=yes ;;
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228 ac_prev=sbindir ;;
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230 | --sbi=* | --sb=*)
1231 sbindir=$ac_optarg ;;
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1236 | --sha | --sh)
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241 | --sha=* | --sh=*)
1242 sharedstatedir=$ac_optarg ;;
1244 -site | --site | --sit)
1245 ac_prev=site ;;
1246 -site=* | --site=* | --sit=*)
1247 site=$ac_optarg ;;
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250 ac_prev=srcdir ;;
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267 verbose=yes ;;
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1272 -with-* | --with-*)
1273 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid package name: $ac_package" >&2
1277 { (exit 1); exit 1; }; }
1278 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1279 eval with_$ac_package=\$ac_optarg ;;
1281 -without-* | --without-*)
1282 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
1287 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1288 eval with_$ac_package=no ;;
1290 --x)
1291 # Obsolete; use --with-x.
1292 with_x=yes ;;
1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295 | --x-incl | --x-inc | --x-in | --x-i)
1296 ac_prev=x_includes ;;
1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299 x_includes=$ac_optarg ;;
1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303 ac_prev=x_libraries ;;
1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306 x_libraries=$ac_optarg ;;
1308 -*) { echo "$as_me: error: unrecognized option: $ac_option
1309 Try \`$0 --help' for more information." >&2
1310 { (exit 1); exit 1; }; }
1311 ;;
1313 *=*)
1314 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1317 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1318 { (exit 1); exit 1; }; }
1319 eval $ac_envvar=\$ac_optarg
1320 export $ac_envvar ;;
1322 *)
1323 # FIXME: should be removed in autoconf 3.0.
1324 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328 ;;
1330 esac
1331 done
1333 if test -n "$ac_prev"; then
1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335 { echo "$as_me: error: missing argument to $ac_option" >&2
1336 { (exit 1); exit 1; }; }
1337 fi
1339 # Be sure to have absolute directory names.
1340 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1344 do
1345 eval ac_val=\$$ac_var
1346 case $ac_val in
1347 [\\/$]* | ?:[\\/]* ) continue;;
1348 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1349 esac
1350 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1351 { (exit 1); exit 1; }; }
1352 done
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1357 build=$build_alias
1358 host=$host_alias
1359 target=$target_alias
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
1365 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1366 If a cross compiler is detected then cross compile mode will be used." >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370 fi
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375 test "$silent" = yes && exec 6>/dev/null
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 { echo "$as_me: error: Working directory cannot be determined" >&2
1382 { (exit 1); exit 1; }; }
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 { echo "$as_me: error: pwd does not report name of working directory" >&2
1385 { (exit 1); exit 1; }; }
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
1391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir=`$as_dirname -- "$0" ||
1393 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$0" : 'X\(//\)[^/]' \| \
1395 X"$0" : 'X\(//\)$' \| \
1396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1397 echo X"$0" |
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\).*/{
1411 s//\1/
1412 q
1413 }
1414 s/.*/./; q'`
1415 srcdir=$ac_confdir
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 srcdir=..
1418 fi
1419 else
1420 ac_srcdir_defaulted=no
1421 fi
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1425 { (exit 1); exit 1; }; }
1426 fi
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428 ac_abs_confdir=`(
1429 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1430 { (exit 1); exit 1; }; }
1431 pwd)`
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1435 fi
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1439 case $srcdir in
1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 esac
1442 for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447 done
1449 #
1450 # Report the --help message.
1451 #
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1455 cat <<_ACEOF
1456 \`configure' configures rrdtool 1.2.27 to adapt to many kinds of systems.
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1463 Defaults for the options are specified in brackets.
1465 Configuration:
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1480 [PREFIX]
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1487 For better control, use the options below.
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/rrdtool]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1509 _ACEOF
1511 cat <<\_ACEOF
1513 Program names:
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1518 System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522 _ACEOF
1523 fi
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive ) echo "Configuration of rrdtool 1.2.27:";;
1528 esac
1529 cat <<\_ACEOF
1531 Optional Features:
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --disable-rrdcgi disable building of rrdcgi
1535 --disable-mmap disable mmap in rrd_update, use seek+write instead
1536 --disable-pthread disable multithread support
1537 --disable-dependency-tracking speeds up one-time build
1538 --enable-dependency-tracking do not reject slow dependency extractors
1539 --enable-shared[=PKGS] build shared libraries [default=yes]
1540 --enable-static[=PKGS] build static libraries [default=yes]
1541 --enable-fast-install[=PKGS]
1542 optimize for fast installation [default=yes]
1543 --disable-libtool-lock avoid locking (might break parallel builds)
1544 --disable-perl do not build the perl modules
1545 --enable-perl-site-install by default the rrdtool perl modules are installed
1546 together with rrdtool in $prefix/lib/perl. You have to
1547 put a 'use lib qw($prefix/lib/perl)' into your scripts
1548 when you want to use them. When you set this option
1549 the perl modules will get installed wherever
1550 your perl setup thinks it is best.
1551 --disable-ruby do not build the ruby modules
1552 --enable-ruby-site-install by default the rrdtool ruby modules are installed
1553 together with rrdtool in $prefix/lib/ruby. You have to
1554 add $prefix/lib/ruby/$ruby_version/$sitearch to you $: variable
1555 for ruby to find the RRD.so file.
1556 --disable-tcl do not build the tcl modules
1557 --enable-tcl-site install the tcl extension in the tcl tree
1558 --disable-python do not build the python modules
1560 Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-rrd-default-font=OPTIONS set the full path to your default font.
1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1565 --with-pic try to use only PIC/non-PIC objects [default=use
1566 both]
1567 --with-tags[=TAGS] include additional configurations [automatic]
1568 --with-perl-options=OPTIONS options to pass on command-line when
1569 generating Makefile from Makefile.PL. If you set this
1570 option, interesting things may happen unless you know
1571 what you are doing!
1572 --with-ruby-options=OPTIONS options to pass on command-line when
1573 generating Makefile from extconf.rb. If you set this
1574 option, interesting things may happen unless you know
1575 what you are doing!
1576 --with-tcllib=DIR location of the tclConfig.sh
1578 Some influential environment variables:
1579 RRDGRAPH_YLEGEND_ANGLE
1580 Vertical label angle: 90.0 (default) or 270.0
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1588 CPP C preprocessor
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1591 CXXCPP C++ preprocessor
1592 F77 Fortran 77 compiler command
1593 FFLAGS Fortran 77 compiler flags
1594 PERLCC [] C compiler for Perl modules
1595 PERLCCFLAGS [] CC flags for Perl modules
1596 PERLLD [same], [as], [PERLCC] Linker for Perl modules
1597 PERLLDFLAGS [] LD flags for Perl modules
1598 RRDDOCDIR [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1603 _ACEOF
1604 ac_status=$?
1605 fi
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" || continue
1611 ac_builddir=.
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *)
1616 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1629 case $srcdir in
1630 .) # We are building in place.
1631 ac_srcdir=.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1653 else
1654 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1657 done
1658 fi
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662 cat <<\_ACEOF
1663 rrdtool configure 1.2.27
1664 generated by GNU Autoconf 2.61
1666 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1667 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671 exit
1672 fi
1673 cat >config.log <<_ACEOF
1674 This file contains any messages produced by compilers while
1675 running configure, to aid debugging if configure makes a mistake.
1677 It was created by rrdtool $as_me 1.2.27, which was
1678 generated by GNU Autoconf 2.61. Invocation command line was
1680 $ $0 $@
1682 _ACEOF
1683 exec 5>>config.log
1684 {
1685 cat <<_ASUNAME
1686 ## --------- ##
1687 ## Platform. ##
1688 ## --------- ##
1690 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1691 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1692 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1693 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1694 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1697 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1699 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1700 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1701 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1702 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1703 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1704 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1705 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707 _ASUNAME
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 echo "PATH: $as_dir"
1715 done
1716 IFS=$as_save_IFS
1718 } >&5
1720 cat >&5 <<_ACEOF
1723 ## ----------- ##
1724 ## Core tests. ##
1725 ## ----------- ##
1727 _ACEOF
1730 # Keep a trace of the command line.
1731 # Strip out --no-create and --no-recursion so they do not pile up.
1732 # Strip out --silent because we don't want to record it for future runs.
1733 # Also quote any args containing shell meta-characters.
1734 # Make two passes to allow for proper duplicate-argument suppression.
1735 ac_configure_args=
1736 ac_configure_args0=
1737 ac_configure_args1=
1738 ac_must_keep_next=false
1739 for ac_pass in 1 2
1740 do
1741 for ac_arg
1742 do
1743 case $ac_arg in
1744 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1746 | -silent | --silent | --silen | --sile | --sil)
1747 continue ;;
1748 *\'*)
1749 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1750 esac
1751 case $ac_pass in
1752 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1753 2)
1754 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1755 if test $ac_must_keep_next = true; then
1756 ac_must_keep_next=false # Got value, back to normal.
1757 else
1758 case $ac_arg in
1759 *=* | --config-cache | -C | -disable-* | --disable-* \
1760 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1761 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1762 | -with-* | --with-* | -without-* | --without-* | --x)
1763 case "$ac_configure_args0 " in
1764 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1765 esac
1766 ;;
1767 -* ) ac_must_keep_next=true ;;
1768 esac
1769 fi
1770 ac_configure_args="$ac_configure_args '$ac_arg'"
1771 ;;
1772 esac
1773 done
1774 done
1775 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1776 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778 # When interrupted or exit'd, cleanup temporary files, and complete
1779 # config.log. We remove comments because anyway the quotes in there
1780 # would cause problems or look ugly.
1781 # WARNING: Use '\'' to represent an apostrophe within the trap.
1782 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1783 trap 'exit_status=$?
1784 # Save into config.log some information that might help in debugging.
1785 {
1786 echo
1788 cat <<\_ASBOX
1789 ## ---------------- ##
1790 ## Cache variables. ##
1791 ## ---------------- ##
1792 _ASBOX
1793 echo
1794 # The following way of writing the cache mishandles newlines in values,
1795 (
1796 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1797 eval ac_val=\$$ac_var
1798 case $ac_val in #(
1799 *${as_nl}*)
1800 case $ac_var in #(
1801 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1802 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1803 esac
1804 case $ac_var in #(
1805 _ | IFS | as_nl) ;; #(
1806 *) $as_unset $ac_var ;;
1807 esac ;;
1808 esac
1809 done
1810 (set) 2>&1 |
1811 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1812 *${as_nl}ac_space=\ *)
1813 sed -n \
1814 "s/'\''/'\''\\\\'\'''\''/g;
1815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1816 ;; #(
1817 *)
1818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1819 ;;
1820 esac |
1821 sort
1822 )
1823 echo
1825 cat <<\_ASBOX
1826 ## ----------------- ##
1827 ## Output variables. ##
1828 ## ----------------- ##
1829 _ASBOX
1830 echo
1831 for ac_var in $ac_subst_vars
1832 do
1833 eval ac_val=\$$ac_var
1834 case $ac_val in
1835 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836 esac
1837 echo "$ac_var='\''$ac_val'\''"
1838 done | sort
1839 echo
1841 if test -n "$ac_subst_files"; then
1842 cat <<\_ASBOX
1843 ## ------------------- ##
1844 ## File substitutions. ##
1845 ## ------------------- ##
1846 _ASBOX
1847 echo
1848 for ac_var in $ac_subst_files
1849 do
1850 eval ac_val=\$$ac_var
1851 case $ac_val in
1852 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1853 esac
1854 echo "$ac_var='\''$ac_val'\''"
1855 done | sort
1856 echo
1857 fi
1859 if test -s confdefs.h; then
1860 cat <<\_ASBOX
1861 ## ----------- ##
1862 ## confdefs.h. ##
1863 ## ----------- ##
1864 _ASBOX
1865 echo
1866 cat confdefs.h
1867 echo
1868 fi
1869 test "$ac_signal" != 0 &&
1870 echo "$as_me: caught signal $ac_signal"
1871 echo "$as_me: exit $exit_status"
1872 } >&5
1873 rm -f core *.core core.conftest.* &&
1874 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1875 exit $exit_status
1876 ' 0
1877 for ac_signal in 1 2 13 15; do
1878 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1879 done
1880 ac_signal=0
1882 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1883 rm -f -r conftest* confdefs.h
1885 # Predefined preprocessor variables.
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_NAME "$PACKAGE_NAME"
1889 _ACEOF
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1894 _ACEOF
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1899 _ACEOF
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_STRING "$PACKAGE_STRING"
1904 _ACEOF
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1909 _ACEOF
1912 # Let the site file select an alternate cache file if it wants to.
1913 # Prefer explicitly selected file to automatically selected ones.
1914 if test -n "$CONFIG_SITE"; then
1915 set x "$CONFIG_SITE"
1916 elif test "x$prefix" != xNONE; then
1917 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1918 else
1919 set x "$ac_default_prefix/share/config.site" \
1920 "$ac_default_prefix/etc/config.site"
1921 fi
1922 shift
1923 for ac_site_file
1924 do
1925 if test -r "$ac_site_file"; then
1926 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1927 echo "$as_me: loading site script $ac_site_file" >&6;}
1928 sed 's/^/| /' "$ac_site_file" >&5
1929 . "$ac_site_file"
1930 fi
1931 done
1933 if test -r "$cache_file"; then
1934 # Some versions of bash will fail to source /dev/null (special
1935 # files actually), so we avoid doing that.
1936 if test -f "$cache_file"; then
1937 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1938 echo "$as_me: loading cache $cache_file" >&6;}
1939 case $cache_file in
1940 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1941 *) . "./$cache_file";;
1942 esac
1943 fi
1944 else
1945 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1946 echo "$as_me: creating cache $cache_file" >&6;}
1947 >$cache_file
1948 fi
1950 # Check that the precious variables saved in the cache have kept the same
1951 # value.
1952 ac_cache_corrupted=false
1953 for ac_var in $ac_precious_vars; do
1954 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1955 eval ac_new_set=\$ac_env_${ac_var}_set
1956 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1957 eval ac_new_val=\$ac_env_${ac_var}_value
1958 case $ac_old_set,$ac_new_set in
1959 set,)
1960 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1961 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1962 ac_cache_corrupted=: ;;
1963 ,set)
1964 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1965 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1966 ac_cache_corrupted=: ;;
1967 ,);;
1968 *)
1969 if test "x$ac_old_val" != "x$ac_new_val"; then
1970 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1971 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1972 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1973 echo "$as_me: former value: $ac_old_val" >&2;}
1974 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1975 echo "$as_me: current value: $ac_new_val" >&2;}
1976 ac_cache_corrupted=:
1977 fi;;
1978 esac
1979 # Pass precious variables to config.status.
1980 if test "$ac_new_set" = set; then
1981 case $ac_new_val in
1982 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1983 *) ac_arg=$ac_var=$ac_new_val ;;
1984 esac
1985 case " $ac_configure_args " in
1986 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1987 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1988 esac
1989 fi
1990 done
1991 if $ac_cache_corrupted; then
1992 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1993 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1994 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1995 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1996 { (exit 1); exit 1; }; }
1997 fi
2023 ac_ext=c
2024 ac_cpp='$CPP $CPPFLAGS'
2025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2030 NUMVERS=1.2027
2032 ac_aux_dir=
2033 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2034 if test -f "$ac_dir/install-sh"; then
2035 ac_aux_dir=$ac_dir
2036 ac_install_sh="$ac_aux_dir/install-sh -c"
2037 break
2038 elif test -f "$ac_dir/install.sh"; then
2039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/install.sh -c"
2041 break
2042 elif test -f "$ac_dir/shtool"; then
2043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/shtool install -c"
2045 break
2046 fi
2047 done
2048 if test -z "$ac_aux_dir"; then
2049 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2050 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2051 { (exit 1); exit 1; }; }
2052 fi
2054 # These three variables are undocumented and unsupported,
2055 # and are intended to be withdrawn in a future Autoconf release.
2056 # They can cause serious problems if a builder's source tree is in a directory
2057 # whose full name contains unusual characters.
2058 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2059 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2060 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2063 # Make sure we can run config.sub.
2064 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2065 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2066 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2067 { (exit 1); exit 1; }; }
2069 { echo "$as_me:$LINENO: checking build system type" >&5
2070 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2071 if test "${ac_cv_build+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074 ac_build_alias=$build_alias
2075 test "x$ac_build_alias" = x &&
2076 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2077 test "x$ac_build_alias" = x &&
2078 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2079 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2080 { (exit 1); exit 1; }; }
2081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2082 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2083 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2084 { (exit 1); exit 1; }; }
2086 fi
2087 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2088 echo "${ECHO_T}$ac_cv_build" >&6; }
2089 case $ac_cv_build in
2090 *-*-*) ;;
2091 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2092 echo "$as_me: error: invalid value of canonical build" >&2;}
2093 { (exit 1); exit 1; }; };;
2094 esac
2095 build=$ac_cv_build
2096 ac_save_IFS=$IFS; IFS='-'
2097 set x $ac_cv_build
2098 shift
2099 build_cpu=$1
2100 build_vendor=$2
2101 shift; shift
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2104 build_os=$*
2105 IFS=$ac_save_IFS
2106 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2109 { echo "$as_me:$LINENO: checking host system type" >&5
2110 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2111 if test "${ac_cv_host+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114 if test "x$host_alias" = x; then
2115 ac_cv_host=$ac_cv_build
2116 else
2117 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2118 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2119 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2120 { (exit 1); exit 1; }; }
2121 fi
2123 fi
2124 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2125 echo "${ECHO_T}$ac_cv_host" >&6; }
2126 case $ac_cv_host in
2127 *-*-*) ;;
2128 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2129 echo "$as_me: error: invalid value of canonical host" >&2;}
2130 { (exit 1); exit 1; }; };;
2131 esac
2132 host=$ac_cv_host
2133 ac_save_IFS=$IFS; IFS='-'
2134 set x $ac_cv_host
2135 shift
2136 host_cpu=$1
2137 host_vendor=$2
2138 shift; shift
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2141 host_os=$*
2142 IFS=$ac_save_IFS
2143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2146 { echo "$as_me:$LINENO: checking target system type" >&5
2147 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2148 if test "${ac_cv_target+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 if test "x$target_alias" = x; then
2152 ac_cv_target=$ac_cv_host
2153 else
2154 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2155 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2156 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2157 { (exit 1); exit 1; }; }
2158 fi
2160 fi
2161 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2162 echo "${ECHO_T}$ac_cv_target" >&6; }
2163 case $ac_cv_target in
2164 *-*-*) ;;
2165 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2166 echo "$as_me: error: invalid value of canonical target" >&2;}
2167 { (exit 1); exit 1; }; };;
2168 esac
2169 target=$ac_cv_target
2170 ac_save_IFS=$IFS; IFS='-'
2171 set x $ac_cv_target
2172 shift
2173 target_cpu=$1
2174 target_vendor=$2
2175 shift; shift
2176 # Remember, the first character of IFS is used to create $*,
2177 # except with old shells:
2178 target_os=$*
2179 IFS=$ac_save_IFS
2180 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2183 # The aliases save the names the user supplied, while $host etc.
2184 # will get canonicalized.
2185 test -n "$target_alias" &&
2186 test "$program_prefix$program_suffix$program_transform_name" = \
2187 NONENONEs,x,x, &&
2188 program_prefix=${target_alias}-
2189 am__api_version="1.9"
2190 # Find a good install program. We prefer a C program (faster),
2191 # so one script is as good as another. But avoid the broken or
2192 # incompatible versions:
2193 # SysV /etc/install, /usr/sbin/install
2194 # SunOS /usr/etc/install
2195 # IRIX /sbin/install
2196 # AIX /bin/install
2197 # AmigaOS /C/install, which installs bootblocks on floppy discs
2198 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2199 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2200 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2201 # OS/2's system install, which has a completely different semantic
2202 # ./install, which can be erroneously created by make from ./install.sh.
2203 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2204 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2205 if test -z "$INSTALL"; then
2206 if test "${ac_cv_path_install+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2211 do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 # Account for people who put trailing slashes in PATH elements.
2215 case $as_dir/ in
2216 ./ | .// | /cC/* | \
2217 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2218 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2219 /usr/ucb/* ) ;;
2220 *)
2221 # OSF1 and SCO ODT 3.0 have their own names for install.
2222 # Don't use installbsd from OSF since it installs stuff as root
2223 # by default.
2224 for ac_prog in ginstall scoinst install; do
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2227 if test $ac_prog = install &&
2228 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2229 # AIX install. It has an incompatible calling convention.
2230 :
2231 elif test $ac_prog = install &&
2232 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2233 # program-specific install script used by HP pwplus--don't use.
2234 :
2235 else
2236 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2237 break 3
2238 fi
2239 fi
2240 done
2241 done
2242 ;;
2243 esac
2244 done
2245 IFS=$as_save_IFS
2248 fi
2249 if test "${ac_cv_path_install+set}" = set; then
2250 INSTALL=$ac_cv_path_install
2251 else
2252 # As a last resort, use the slow shell script. Don't cache a
2253 # value for INSTALL within a source directory, because that will
2254 # break other packages using the cache if that directory is
2255 # removed, or if the value is a relative name.
2256 INSTALL=$ac_install_sh
2257 fi
2258 fi
2259 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2260 echo "${ECHO_T}$INSTALL" >&6; }
2262 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2263 # It thinks the first close brace ends the variable substitution.
2264 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2266 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2268 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2270 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2271 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2272 # Just in case
2273 sleep 1
2274 echo timestamp > conftest.file
2275 # Do `set' in a subshell so we don't clobber the current shell's
2276 # arguments. Must try -L first in case configure is actually a
2277 # symlink; some systems play weird games with the mod time of symlinks
2278 # (eg FreeBSD returns the mod time of the symlink's containing
2279 # directory).
2280 if (
2281 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2282 if test "$*" = "X"; then
2283 # -L didn't work.
2284 set X `ls -t $srcdir/configure conftest.file`
2285 fi
2286 rm -f conftest.file
2287 if test "$*" != "X $srcdir/configure conftest.file" \
2288 && test "$*" != "X conftest.file $srcdir/configure"; then
2290 # If neither matched, then we have a broken ls. This can happen
2291 # if, for instance, CONFIG_SHELL is bash and it inherits a
2292 # broken ls alias from the environment. This has actually
2293 # happened. Such a system could not be considered "sane".
2294 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2295 alias in your environment" >&5
2296 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2297 alias in your environment" >&2;}
2298 { (exit 1); exit 1; }; }
2299 fi
2301 test "$2" = conftest.file
2302 )
2303 then
2304 # Ok.
2305 :
2306 else
2307 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2308 Check your system clock" >&5
2309 echo "$as_me: error: newly created file is older than distributed files!
2310 Check your system clock" >&2;}
2311 { (exit 1); exit 1; }; }
2312 fi
2313 { echo "$as_me:$LINENO: result: yes" >&5
2314 echo "${ECHO_T}yes" >&6; }
2315 test "$program_prefix" != NONE &&
2316 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2317 # Use a double $ so make ignores it.
2318 test "$program_suffix" != NONE &&
2319 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2320 # Double any \ or $. echo might interpret backslashes.
2321 # By default was `s,x,x', remove it if useless.
2322 cat <<\_ACEOF >conftest.sed
2323 s/[\\$]/&&/g;s/;s,x,x,$//
2324 _ACEOF
2325 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2326 rm -f conftest.sed
2328 # expand $ac_aux_dir to an absolute path
2329 am_aux_dir=`cd $ac_aux_dir && pwd`
2331 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2332 # Use eval to expand $SHELL
2333 if eval "$MISSING --run true"; then
2334 am_missing_run="$MISSING --run "
2335 else
2336 am_missing_run=
2337 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2338 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2339 fi
2341 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2342 # We used to keeping the `.' as first argument, in order to
2343 # allow $(mkdir_p) to be used without argument. As in
2344 # $(mkdir_p) $(somedir)
2345 # where $(somedir) is conditionally defined. However this is wrong
2346 # for two reasons:
2347 # 1. if the package is installed by a user who cannot write `.'
2348 # make install will fail,
2349 # 2. the above comment should most certainly read
2350 # $(mkdir_p) $(DESTDIR)$(somedir)
2351 # so it does not work when $(somedir) is undefined and
2352 # $(DESTDIR) is not.
2353 # To support the latter case, we have to write
2354 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2355 # so the `.' trick is pointless.
2356 mkdir_p='mkdir -p --'
2357 else
2358 # On NextStep and OpenStep, the `mkdir' command does not
2359 # recognize any option. It will interpret all options as
2360 # directories to create, and then abort because `.' already
2361 # exists.
2362 for d in ./-p ./--version;
2363 do
2364 test -d $d && rmdir $d
2365 done
2366 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2367 if test -f "$ac_aux_dir/mkinstalldirs"; then
2368 mkdir_p='$(mkinstalldirs)'
2369 else
2370 mkdir_p='$(install_sh) -d'
2371 fi
2372 fi
2374 for ac_prog in gawk mawk nawk awk
2375 do
2376 # Extract the first word of "$ac_prog", so it can be a program name with args.
2377 set dummy $ac_prog; ac_word=$2
2378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2380 if test "${ac_cv_prog_AWK+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383 if test -n "$AWK"; then
2384 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393 ac_cv_prog_AWK="$ac_prog"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2396 fi
2397 done
2398 done
2399 IFS=$as_save_IFS
2401 fi
2402 fi
2403 AWK=$ac_cv_prog_AWK
2404 if test -n "$AWK"; then
2405 { echo "$as_me:$LINENO: result: $AWK" >&5
2406 echo "${ECHO_T}$AWK" >&6; }
2407 else
2408 { echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6; }
2410 fi
2413 test -n "$AWK" && break
2414 done
2416 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2417 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2418 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2419 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 cat >conftest.make <<\_ACEOF
2423 SHELL = /bin/sh
2424 all:
2425 @echo '@@@%%%=$(MAKE)=@@@%%%'
2426 _ACEOF
2427 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2428 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2429 *@@@%%%=?*=@@@%%%*)
2430 eval ac_cv_prog_make_${ac_make}_set=yes;;
2431 *)
2432 eval ac_cv_prog_make_${ac_make}_set=no;;
2433 esac
2434 rm -f conftest.make
2435 fi
2436 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2437 { echo "$as_me:$LINENO: result: yes" >&5
2438 echo "${ECHO_T}yes" >&6; }
2439 SET_MAKE=
2440 else
2441 { echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6; }
2443 SET_MAKE="MAKE=${MAKE-make}"
2444 fi
2446 rm -rf .tst 2>/dev/null
2447 mkdir .tst 2>/dev/null
2448 if test -d .tst; then
2449 am__leading_dot=.
2450 else
2451 am__leading_dot=_
2452 fi
2453 rmdir .tst 2>/dev/null
2455 # test to see if srcdir already configured
2456 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2457 test -f $srcdir/config.status; then
2458 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2459 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2460 { (exit 1); exit 1; }; }
2461 fi
2463 # test whether we have cygpath
2464 if test -z "$CYGPATH_W"; then
2465 if (cygpath --version) >/dev/null 2>/dev/null; then
2466 CYGPATH_W='cygpath -w'
2467 else
2468 CYGPATH_W=echo
2469 fi
2470 fi
2473 # Define the identity of the package.
2474 PACKAGE='rrdtool'
2475 VERSION='1.2.27'
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE "$PACKAGE"
2480 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define VERSION "$VERSION"
2485 _ACEOF
2487 # Some tools Automake needs.
2489 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2492 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2495 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2498 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2501 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2503 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2505 # Installed binaries are usually stripped using `strip' when the user
2506 # run `make install-strip'. However `strip' might not be the right
2507 # tool to use in cross-compilation environments, therefore Automake
2508 # will honor the `STRIP' environment variable to overrule this program.
2509 if test "$cross_compiling" != no; then
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}strip; ac_word=$2
2513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_STRIP+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518 if test -n "$STRIP"; then
2519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2531 fi
2532 done
2533 done
2534 IFS=$as_save_IFS
2536 fi
2537 fi
2538 STRIP=$ac_cv_prog_STRIP
2539 if test -n "$STRIP"; then
2540 { echo "$as_me:$LINENO: result: $STRIP" >&5
2541 echo "${ECHO_T}$STRIP" >&6; }
2542 else
2543 { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2545 fi
2548 fi
2549 if test -z "$ac_cv_prog_STRIP"; then
2550 ac_ct_STRIP=$STRIP
2551 # Extract the first word of "strip", so it can be a program name with args.
2552 set dummy strip; ac_word=$2
2553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558 if test -n "$ac_ct_STRIP"; then
2559 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_ac_ct_STRIP="strip"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2576 fi
2577 fi
2578 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2579 if test -n "$ac_ct_STRIP"; then
2580 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2581 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2582 else
2583 { echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6; }
2585 fi
2587 if test "x$ac_ct_STRIP" = x; then
2588 STRIP=":"
2589 else
2590 case $cross_compiling:$ac_tool_warned in
2591 yes:)
2592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2593 whose name does not start with the host triplet. If you think this
2594 configuration is useful to you, please write to autoconf@gnu.org." >&5
2595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2596 whose name does not start with the host triplet. If you think this
2597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2598 ac_tool_warned=yes ;;
2599 esac
2600 STRIP=$ac_ct_STRIP
2601 fi
2602 else
2603 STRIP="$ac_cv_prog_STRIP"
2604 fi
2606 fi
2607 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2609 # We need awk for the "check" target. The system "awk" is bad on
2610 # some platforms.
2611 # Always define AMTAR for backward compatibility.
2613 AMTAR=${AMTAR-"${am_missing_run}tar"}
2615 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2621 ac_config_headers="$ac_config_headers rrd_config.h"
2643 cat >>confdefs.h <<_ACEOF
2644 #define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
2645 _ACEOF
2648 # Check whether --enable-rrdcgi was given.
2649 if test "${enable_rrdcgi+set}" = set; then
2650 enableval=$enable_rrdcgi;
2651 else
2652 enable_rrdcgi=yes
2653 fi
2657 # Check whether --with-rrd-default-font was given.
2658 if test "${with_rrd_default_font+set}" = set; then
2659 withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
2660 else
2662 if test -d ${WINDIR:-nodir}/cour.ttf ; then
2663 RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
2664 else
2665 RRD_DEFAULT_FONT='$(fontsdir)/$(fonts_DATA)'
2666 fi
2668 fi
2671 # Check whether --enable-mmap was given.
2672 if test "${enable_mmap+set}" = set; then
2673 enableval=$enable_mmap;
2674 else
2675 enable_mmap=yes
2676 fi
2680 # Check whether --enable-pthread was given.
2681 if test "${enable_pthread+set}" = set; then
2682 enableval=$enable_pthread;
2683 else
2684 enable_pthread=yes
2685 fi
2691 case $TERM in
2692 # for the most important terminal types we directly know the sequences
2693 xterm|xterm*|vt220|vt220*)
2694 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
2695 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
2696 ;;
2697 vt100|vt100*|cygwin)
2698 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
2699 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
2700 ;;
2701 *)
2702 T_MD=''
2703 T_ME=''
2704 ;;
2705 esac
2706 { echo "$as_me:$LINENO: result: " >&5
2707 echo "${ECHO_T}" >&6; }
2708 { echo "$as_me:$LINENO: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
2709 echo "${ECHO_T}${T_MD}Audit Compilation Environment${T_ME}" >&6; }
2713 ac_ext=c
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 if test -n "$ac_tool_prefix"; then
2719 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2723 if test "${ac_cv_prog_CC+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742 IFS=$as_save_IFS
2744 fi
2745 fi
2746 CC=$ac_cv_prog_CC
2747 if test -n "$CC"; then
2748 { echo "$as_me:$LINENO: result: $CC" >&5
2749 echo "${ECHO_T}$CC" >&6; }
2750 else
2751 { echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6; }
2753 fi
2756 fi
2757 if test -z "$ac_cv_prog_CC"; then
2758 ac_ct_CC=$CC
2759 # Extract the first word of "gcc", so it can be a program name with args.
2760 set dummy gcc; ac_word=$2
2761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766 if test -n "$ac_ct_CC"; then
2767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_ac_ct_CC="gcc"
2777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780 done
2781 done
2782 IFS=$as_save_IFS
2784 fi
2785 fi
2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2787 if test -n "$ac_ct_CC"; then
2788 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2789 echo "${ECHO_T}$ac_ct_CC" >&6; }
2790 else
2791 { echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6; }
2793 fi
2795 if test "x$ac_ct_CC" = x; then
2796 CC=""
2797 else
2798 case $cross_compiling:$ac_tool_warned in
2799 yes:)
2800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2801 whose name does not start with the host triplet. If you think this
2802 configuration is useful to you, please write to autoconf@gnu.org." >&5
2803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2804 whose name does not start with the host triplet. If you think this
2805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2806 ac_tool_warned=yes ;;
2807 esac
2808 CC=$ac_ct_CC
2809 fi
2810 else
2811 CC="$ac_cv_prog_CC"
2812 fi
2814 if test -z "$CC"; then
2815 if test -n "$ac_tool_prefix"; then
2816 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2817 set dummy ${ac_tool_prefix}cc; ac_word=$2
2818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2820 if test "${ac_cv_prog_CC+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823 if test -n "$CC"; then
2824 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_CC="${ac_tool_prefix}cc"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2841 fi
2842 fi
2843 CC=$ac_cv_prog_CC
2844 if test -n "$CC"; then
2845 { echo "$as_me:$LINENO: result: $CC" >&5
2846 echo "${ECHO_T}$CC" >&6; }
2847 else
2848 { echo "$as_me:$LINENO: result: no" >&5
2849 echo "${ECHO_T}no" >&6; }
2850 fi
2853 fi
2854 fi
2855 if test -z "$CC"; then
2856 # Extract the first word of "cc", so it can be a program name with args.
2857 set dummy cc; ac_word=$2
2858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2860 if test "${ac_cv_prog_CC+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 if test -n "$CC"; then
2864 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 else
2866 ac_prog_rejected=no
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2875 ac_prog_rejected=yes
2876 continue
2877 fi
2878 ac_cv_prog_CC="cc"
2879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2881 fi
2882 done
2883 done
2884 IFS=$as_save_IFS
2886 if test $ac_prog_rejected = yes; then
2887 # We found a bogon in the path, so make sure we never use it.
2888 set dummy $ac_cv_prog_CC
2889 shift
2890 if test $# != 0; then
2891 # We chose a different compiler from the bogus one.
2892 # However, it has the same basename, so the bogon will be chosen
2893 # first if we set CC to just the basename; use the full file name.
2894 shift
2895 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2896 fi
2897 fi
2898 fi
2899 fi
2900 CC=$ac_cv_prog_CC
2901 if test -n "$CC"; then
2902 { echo "$as_me:$LINENO: result: $CC" >&5
2903 echo "${ECHO_T}$CC" >&6; }
2904 else
2905 { echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6; }
2907 fi
2910 fi
2911 if test -z "$CC"; then
2912 if test -n "$ac_tool_prefix"; then
2913 for ac_prog in cl.exe
2914 do
2915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2919 if test "${ac_cv_prog_CC+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2940 fi
2941 fi
2942 CC=$ac_cv_prog_CC
2943 if test -n "$CC"; then
2944 { echo "$as_me:$LINENO: result: $CC" >&5
2945 echo "${ECHO_T}$CC" >&6; }
2946 else
2947 { echo "$as_me:$LINENO: result: no" >&5
2948 echo "${ECHO_T}no" >&6; }
2949 fi
2952 test -n "$CC" && break
2953 done
2954 fi
2955 if test -z "$CC"; then
2956 ac_ct_CC=$CC
2957 for ac_prog in cl.exe
2958 do
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy $ac_prog; ac_word=$2
2961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_ac_ct_CC="$ac_prog"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980 done
2981 done
2982 IFS=$as_save_IFS
2984 fi
2985 fi
2986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987 if test -n "$ac_ct_CC"; then
2988 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2989 echo "${ECHO_T}$ac_ct_CC" >&6; }
2990 else
2991 { echo "$as_me:$LINENO: result: no" >&5
2992 echo "${ECHO_T}no" >&6; }
2993 fi
2996 test -n "$ac_ct_CC" && break
2997 done
2999 if test "x$ac_ct_CC" = x; then
3000 CC=""
3001 else
3002 case $cross_compiling:$ac_tool_warned in
3003 yes:)
3004 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3005 whose name does not start with the host triplet. If you think this
3006 configuration is useful to you, please write to autoconf@gnu.org." >&5
3007 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3008 whose name does not start with the host triplet. If you think this
3009 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3010 ac_tool_warned=yes ;;
3011 esac
3012 CC=$ac_ct_CC
3013 fi
3014 fi
3016 fi
3019 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3020 See \`config.log' for more details." >&5
3021 echo "$as_me: error: no acceptable C compiler found in \$PATH
3022 See \`config.log' for more details." >&2;}
3023 { (exit 1); exit 1; }; }
3025 # Provide some information about the compiler.
3026 echo "$as_me:$LINENO: checking for C compiler version" >&5
3027 ac_compiler=`set X $ac_compile; echo $2`
3028 { (ac_try="$ac_compiler --version >&5"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compiler --version >&5") 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (ac_try="$ac_compiler -v >&5"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compiler -v >&5") 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3048 { (ac_try="$ac_compiler -V >&5"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_compiler -V >&5") 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }
3059 cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h. */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3066 int
3067 main ()
3068 {
3070 ;
3071 return 0;
3072 }
3073 _ACEOF
3074 ac_clean_files_save=$ac_clean_files
3075 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3076 # Try to create an executable without -o first, disregard a.out.
3077 # It will help us diagnose broken compilers, and finding out an intuition
3078 # of exeext.
3079 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3080 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3081 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3082 #
3083 # List of possible output files, starting from the most likely.
3084 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3085 # only as a last resort. b.out is created by i960 compilers.
3086 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3087 #
3088 # The IRIX 6 linker writes into existing files which may not be
3089 # executable, retaining their permissions. Remove them first so a
3090 # subsequent execution test works.
3091 ac_rmfiles=
3092 for ac_file in $ac_files
3093 do
3094 case $ac_file in
3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3096 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3097 esac
3098 done
3099 rm -f $ac_rmfiles
3101 if { (ac_try="$ac_link_default"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_link_default") 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; then
3111 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3112 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3113 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3114 # so that the user can short-circuit this test for compilers unknown to
3115 # Autoconf.
3116 for ac_file in $ac_files ''
3117 do
3118 test -f "$ac_file" || continue
3119 case $ac_file in
3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3121 ;;
3122 [ab].out )
3123 # We found the default executable, but exeext='' is most
3124 # certainly right.
3125 break;;
3126 *.* )
3127 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3128 then :; else
3129 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130 fi
3131 # We set ac_cv_exeext here because the later test for it is not
3132 # safe: cross compilers may not add the suffix if given an `-o'
3133 # argument, so we may need to know it at that point already.
3134 # Even if this section looks crufty: it has the advantage of
3135 # actually working.
3136 break;;
3137 * )
3138 break;;
3139 esac
3140 done
3141 test "$ac_cv_exeext" = no && ac_cv_exeext=
3143 else
3144 ac_file=''
3145 fi
3147 { echo "$as_me:$LINENO: result: $ac_file" >&5
3148 echo "${ECHO_T}$ac_file" >&6; }
3149 if test -z "$ac_file"; then
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3154 See \`config.log' for more details." >&5
3155 echo "$as_me: error: C compiler cannot create executables
3156 See \`config.log' for more details." >&2;}
3157 { (exit 77); exit 77; }; }
3158 fi
3160 ac_exeext=$ac_cv_exeext
3162 # Check that the compiler produces executables we can run. If not, either
3163 # the compiler is broken, or we cross compile.
3164 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3165 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3166 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3167 # If not cross compiling, check that we can run a simple program.
3168 if test "$cross_compiling" != yes; then
3169 if { ac_try='./$ac_file'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3179 cross_compiling=no
3180 else
3181 if test "$cross_compiling" = maybe; then
3182 cross_compiling=yes
3183 else
3184 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3185 If you meant to cross compile, use \`--host'.
3186 See \`config.log' for more details." >&5
3187 echo "$as_me: error: cannot run C compiled programs.
3188 If you meant to cross compile, use \`--host'.
3189 See \`config.log' for more details." >&2;}
3190 { (exit 1); exit 1; }; }
3191 fi
3192 fi
3193 fi
3194 { echo "$as_me:$LINENO: result: yes" >&5
3195 echo "${ECHO_T}yes" >&6; }
3197 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3198 ac_clean_files=$ac_clean_files_save
3199 # Check that the compiler produces executables we can run. If not, either
3200 # the compiler is broken, or we cross compile.
3201 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3202 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3203 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3204 echo "${ECHO_T}$cross_compiling" >&6; }
3206 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3207 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3208 if { (ac_try="$ac_link"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_link") 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; then
3218 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3219 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3220 # work properly (i.e., refer to `conftest.exe'), while it won't with
3221 # `rm'.
3222 for ac_file in conftest.exe conftest conftest.*; do
3223 test -f "$ac_file" || continue
3224 case $ac_file in
3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227 break;;
3228 * ) break;;
3229 esac
3230 done
3231 else
3232 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3233 See \`config.log' for more details." >&5
3234 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3235 See \`config.log' for more details." >&2;}
3236 { (exit 1); exit 1; }; }
3237 fi
3239 rm -f conftest$ac_cv_exeext
3240 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3241 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3243 rm -f conftest.$ac_ext
3244 EXEEXT=$ac_cv_exeext
3245 ac_exeext=$EXEEXT
3246 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3247 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3248 if test "${ac_cv_objext+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 cat >conftest.$ac_ext <<_ACEOF
3252 /* confdefs.h. */
3253 _ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h. */
3258 int
3259 main ()
3260 {
3262 ;
3263 return 0;
3264 }
3265 _ACEOF
3266 rm -f conftest.o conftest.obj
3267 if { (ac_try="$ac_compile"
3268 case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271 esac
3272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_compile") 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; then
3277 for ac_file in conftest.o conftest.obj conftest.*; do
3278 test -f "$ac_file" || continue;
3279 case $ac_file in
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3282 break;;
3283 esac
3284 done
3285 else
3286 echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3289 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3290 See \`config.log' for more details." >&5
3291 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3292 See \`config.log' for more details." >&2;}
3293 { (exit 1); exit 1; }; }
3294 fi
3296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3297 fi
3298 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3299 echo "${ECHO_T}$ac_cv_objext" >&6; }
3300 OBJEXT=$ac_cv_objext
3301 ac_objext=$OBJEXT
3302 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3303 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3304 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3314 int
3315 main ()
3316 {
3317 #ifndef __GNUC__
3318 choke me
3319 #endif
3321 ;
3322 return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332 (eval "$ac_compile") 2>conftest.er1
3333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } && {
3339 test -z "$ac_c_werror_flag" ||
3340 test ! -s conftest.err
3341 } && test -s conftest.$ac_objext; then
3342 ac_compiler_gnu=yes
3343 else
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3347 ac_compiler_gnu=no
3348 fi
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3353 fi
3354 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3355 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3356 GCC=`test $ac_compiler_gnu = yes && echo yes`
3357 ac_test_CFLAGS=${CFLAGS+set}
3358 ac_save_CFLAGS=$CFLAGS
3359 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3361 if test "${ac_cv_prog_cc_g+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364 ac_save_c_werror_flag=$ac_c_werror_flag
3365 ac_c_werror_flag=yes
3366 ac_cv_prog_cc_g=no
3367 CFLAGS="-g"
3368 cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h. */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3375 int
3376 main ()
3377 {
3379 ;
3380 return 0;
3381 }
3382 _ACEOF
3383 rm -f conftest.$ac_objext
3384 if { (ac_try="$ac_compile"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_compile") 2>conftest.er1
3391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } && {
3397 test -z "$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 } && test -s conftest.$ac_objext; then
3400 ac_cv_prog_cc_g=yes
3401 else
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 CFLAGS=""
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h. */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3413 int
3414 main ()
3415 {
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (ac_try="$ac_compile"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_compile") 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } && {
3435 test -z "$ac_c_werror_flag" ||
3436 test ! -s conftest.err
3437 } && test -s conftest.$ac_objext; then
3438 :
3439 else
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 ac_c_werror_flag=$ac_save_c_werror_flag
3444 CFLAGS="-g"
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3452 int
3453 main ()
3454 {
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 rm -f conftest.$ac_objext
3461 if { (ac_try="$ac_compile"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_compile") 2>conftest.er1
3468 ac_status=$?
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } && {
3474 test -z "$ac_c_werror_flag" ||
3475 test ! -s conftest.err
3476 } && test -s conftest.$ac_objext; then
3477 ac_cv_prog_cc_g=yes
3478 else
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3483 fi
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 fi
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 ac_c_werror_flag=$ac_save_c_werror_flag
3493 fi
3494 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3495 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3496 if test "$ac_test_CFLAGS" = set; then
3497 CFLAGS=$ac_save_CFLAGS
3498 elif test $ac_cv_prog_cc_g = yes; then
3499 if test "$GCC" = yes; then
3500 CFLAGS="-g -O2"
3501 else
3502 CFLAGS="-g"
3503 fi
3504 else
3505 if test "$GCC" = yes; then
3506 CFLAGS="-O2"
3507 else
3508 CFLAGS=
3509 fi
3510 fi
3511 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3512 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3513 if test "${ac_cv_prog_cc_c89+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516 ac_cv_prog_cc_c89=no
3517 ac_save_CC=$CC
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include <stdarg.h>
3525 #include <stdio.h>
3526 #include <sys/types.h>
3527 #include <sys/stat.h>
3528 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3529 struct buf { int x; };
3530 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3531 static char *e (p, i)
3532 char **p;
3533 int i;
3534 {
3535 return p[i];
3536 }
3537 static char *f (char * (*g) (char **, int), char **p, ...)
3538 {
3539 char *s;
3540 va_list v;
3541 va_start (v,p);
3542 s = g (p, va_arg (v,int));
3543 va_end (v);
3544 return s;
3545 }
3547 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3548 function prototypes and stuff, but not '\xHH' hex character constants.
3549 These don't provoke an error unfortunately, instead are silently treated
3550 as 'x'. The following induces an error, until -std is added to get
3551 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3552 array size at least. It's necessary to write '\x00'==0 to get something
3553 that's true only with -std. */
3554 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3556 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3557 inside strings and character constants. */
3558 #define FOO(x) 'x'
3559 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3561 int test (int i, double x);
3562 struct s1 {int (*f) (int a);};
3563 struct s2 {int (*f) (double a);};
3564 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3565 int argc;
3566 char **argv;
3567 int
3568 main ()
3569 {
3570 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3576 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3577 do
3578 CC="$ac_save_CC $ac_arg"
3579 rm -f conftest.$ac_objext
3580 if { (ac_try="$ac_compile"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_compile") 2>conftest.er1
3587 ac_status=$?
3588 grep -v '^ *+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } && {
3593 test -z "$ac_c_werror_flag" ||
3594 test ! -s conftest.err
3595 } && test -s conftest.$ac_objext; then
3596 ac_cv_prog_cc_c89=$ac_arg
3597 else
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3602 fi
3604 rm -f core conftest.err conftest.$ac_objext
3605 test "x$ac_cv_prog_cc_c89" != "xno" && break
3606 done
3607 rm -f conftest.$ac_ext
3608 CC=$ac_save_CC
3610 fi
3611 # AC_CACHE_VAL
3612 case "x$ac_cv_prog_cc_c89" in
3613 x)
3614 { echo "$as_me:$LINENO: result: none needed" >&5
3615 echo "${ECHO_T}none needed" >&6; } ;;
3616 xno)
3617 { echo "$as_me:$LINENO: result: unsupported" >&5
3618 echo "${ECHO_T}unsupported" >&6; } ;;
3619 *)
3620 CC="$CC $ac_cv_prog_cc_c89"
3621 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3622 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3623 esac
3626 ac_ext=c
3627 ac_cpp='$CPP $CPPFLAGS'
3628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631 DEPDIR="${am__leading_dot}deps"
3633 ac_config_commands="$ac_config_commands depfiles"
3636 am_make=${MAKE-make}
3637 cat > confinc << 'END'
3638 am__doit:
3639 @echo done
3640 .PHONY: am__doit
3641 END
3642 # If we don't find an include directive, just comment out the code.
3643 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3644 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3645 am__include="#"
3646 am__quote=
3647 _am_result=none
3648 # First try GNU make style include.
3649 echo "include confinc" > confmf
3650 # We grep out `Entering directory' and `Leaving directory'
3651 # messages which can occur if `w' ends up in MAKEFLAGS.
3652 # In particular we don't look at `^make:' because GNU make might
3653 # be invoked under some other name (usually "gmake"), in which
3654 # case it prints its new name instead of `make'.
3655 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3656 am__include=include
3657 am__quote=
3658 _am_result=GNU
3659 fi
3660 # Now try BSD make style include.
3661 if test "$am__include" = "#"; then
3662 echo '.include "confinc"' > confmf
3663 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3664 am__include=.include
3665 am__quote="\""
3666 _am_result=BSD
3667 fi
3668 fi
3671 { echo "$as_me:$LINENO: result: $_am_result" >&5
3672 echo "${ECHO_T}$_am_result" >&6; }
3673 rm -f confinc confmf
3675 # Check whether --enable-dependency-tracking was given.
3676 if test "${enable_dependency_tracking+set}" = set; then
3677 enableval=$enable_dependency_tracking;
3678 fi
3680 if test "x$enable_dependency_tracking" != xno; then
3681 am_depcomp="$ac_aux_dir/depcomp"
3682 AMDEPBACKSLASH='\'
3683 fi
3686 if test "x$enable_dependency_tracking" != xno; then
3687 AMDEP_TRUE=
3688 AMDEP_FALSE='#'
3689 else
3690 AMDEP_TRUE='#'
3691 AMDEP_FALSE=
3692 fi
3697 depcc="$CC" am_compiler_list=
3699 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3700 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3701 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3705 # We make a subdir and do the tests there. Otherwise we can end up
3706 # making bogus files that we don't know about and never remove. For
3707 # instance it was reported that on HP-UX the gcc test will end up
3708 # making a dummy file named `D' -- because `-MD' means `put the output
3709 # in D'.
3710 mkdir conftest.dir
3711 # Copy depcomp to subdir because otherwise we won't find it if we're
3712 # using a relative directory.
3713 cp "$am_depcomp" conftest.dir
3714 cd conftest.dir
3715 # We will build objects and dependencies in a subdirectory because
3716 # it helps to detect inapplicable dependency modes. For instance
3717 # both Tru64's cc and ICC support -MD to output dependencies as a
3718 # side effect of compilation, but ICC will put the dependencies in
3719 # the current directory while Tru64 will put them in the object
3720 # directory.
3721 mkdir sub
3723 am_cv_CC_dependencies_compiler_type=none
3724 if test "$am_compiler_list" = ""; then
3725 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3726 fi
3727 for depmode in $am_compiler_list; do
3728 # Setup a source with many dependencies, because some compilers
3729 # like to wrap large dependency lists on column 80 (with \), and
3730 # we should not choose a depcomp mode which is confused by this.
3731 #
3732 # We need to recreate these files for each test, as the compiler may
3733 # overwrite some of them when testing with obscure command lines.
3734 # This happens at least with the AIX C compiler.
3735 : > sub/conftest.c
3736 for i in 1 2 3 4 5 6; do
3737 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3738 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3739 # Solaris 8's {/usr,}/bin/sh.
3740 touch sub/conftst$i.h
3741 done
3742 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3744 case $depmode in
3745 nosideeffect)
3746 # after this tag, mechanisms are not by side-effect, so they'll
3747 # only be used when explicitly requested
3748 if test "x$enable_dependency_tracking" = xyes; then
3749 continue
3750 else
3751 break
3752 fi
3753 ;;
3754 none) break ;;
3755 esac
3756 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3757 # mode. It turns out that the SunPro C++ compiler does not properly
3758 # handle `-M -o', and we need to detect this.
3759 if depmode=$depmode \
3760 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3761 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3762 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3763 >/dev/null 2>conftest.err &&
3764 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3765 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3766 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3767 # icc doesn't choke on unknown options, it will just issue warnings
3768 # or remarks (even with -Werror). So we grep stderr for any message
3769 # that says an option was ignored or not supported.
3770 # When given -MP, icc 7.0 and 7.1 complain thusly:
3771 # icc: Command line warning: ignoring option '-M'; no argument required
3772 # The diagnosis changed in icc 8.0:
3773 # icc: Command line remark: option '-MP' not supported
3774 if (grep 'ignoring option' conftest.err ||
3775 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3776 am_cv_CC_dependencies_compiler_type=$depmode
3777 break
3778 fi
3779 fi
3780 done
3782 cd ..
3783 rm -rf conftest.dir
3784 else
3785 am_cv_CC_dependencies_compiler_type=none
3786 fi
3788 fi
3789 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3790 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3791 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3795 if
3796 test "x$enable_dependency_tracking" != xno \
3797 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3798 am__fastdepCC_TRUE=
3799 am__fastdepCC_FALSE='#'
3800 else
3801 am__fastdepCC_TRUE='#'
3802 am__fastdepCC_FALSE=
3803 fi
3806 ac_ext=c
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3812 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3813 # On Suns, sometimes $CPP names a directory.
3814 if test -n "$CPP" && test -d "$CPP"; then
3815 CPP=
3816 fi
3817 if test -z "$CPP"; then
3818 if test "${ac_cv_prog_CPP+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 # Double quotes because CPP needs to be expanded
3822 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3823 do
3824 ac_preproc_ok=false
3825 for ac_c_preproc_warn_flag in '' yes
3826 do
3827 # Use a header file that comes with gcc, so configuring glibc
3828 # with a fresh cross-compiler works.
3829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3830 # <limits.h> exists even on freestanding compilers.
3831 # On the NeXT, cc -E runs the code through the compiler's parser,
3832 # not just through cpp. "Syntax error" is here to catch this case.
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 #ifdef __STDC__
3840 # include <limits.h>
3841 #else
3842 # include <assert.h>
3843 #endif
3844 Syntax error
3845 _ACEOF
3846 if { (ac_try="$ac_cpp conftest.$ac_ext"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null && {
3859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3860 test ! -s conftest.err
3861 }; then
3862 :
3863 else
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3867 # Broken: fails on valid input.
3868 continue
3869 fi
3871 rm -f conftest.err conftest.$ac_ext
3873 # OK, works on sane cases. Now check whether nonexistent headers
3874 # can be detected and how.
3875 cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h. */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3881 #include <ac_nonexistent.h>
3882 _ACEOF
3883 if { (ac_try="$ac_cpp conftest.$ac_ext"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } >/dev/null && {
3896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3897 test ! -s conftest.err
3898 }; then
3899 # Broken: success on invalid input.
3900 continue
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 # Passes both tests.
3906 ac_preproc_ok=:
3907 break
3908 fi
3910 rm -f conftest.err conftest.$ac_ext
3912 done
3913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3914 rm -f conftest.err conftest.$ac_ext
3915 if $ac_preproc_ok; then
3916 break
3917 fi
3919 done
3920 ac_cv_prog_CPP=$CPP
3922 fi
3923 CPP=$ac_cv_prog_CPP
3924 else
3925 ac_cv_prog_CPP=$CPP
3926 fi
3927 { echo "$as_me:$LINENO: result: $CPP" >&5
3928 echo "${ECHO_T}$CPP" >&6; }
3929 ac_preproc_ok=false
3930 for ac_c_preproc_warn_flag in '' yes
3931 do
3932 # Use a header file that comes with gcc, so configuring glibc
3933 # with a fresh cross-compiler works.
3934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3935 # <limits.h> exists even on freestanding compilers.
3936 # On the NeXT, cc -E runs the code through the compiler's parser,
3937 # not just through cpp. "Syntax error" is here to catch this case.
3938 cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h. */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944 #ifdef __STDC__
3945 # include <limits.h>
3946 #else
3947 # include <assert.h>
3948 #endif
3949 Syntax error
3950 _ACEOF
3951 if { (ac_try="$ac_cpp conftest.$ac_ext"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } >/dev/null && {
3964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 }; then
3967 :
3968 else
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3972 # Broken: fails on valid input.
3973 continue
3974 fi
3976 rm -f conftest.err conftest.$ac_ext
3978 # OK, works on sane cases. Now check whether nonexistent headers
3979 # can be detected and how.
3980 cat >conftest.$ac_ext <<_ACEOF
3981 /* confdefs.h. */
3982 _ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986 #include <ac_nonexistent.h>
3987 _ACEOF
3988 if { (ac_try="$ac_cpp conftest.$ac_ext"
3989 case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3995 ac_status=$?
3996 grep -v '^ *+' conftest.er1 >conftest.err
3997 rm -f conftest.er1
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } >/dev/null && {
4001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4002 test ! -s conftest.err
4003 }; then
4004 # Broken: success on invalid input.
4005 continue
4006 else
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 # Passes both tests.
4011 ac_preproc_ok=:
4012 break
4013 fi
4015 rm -f conftest.err conftest.$ac_ext
4017 done
4018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4019 rm -f conftest.err conftest.$ac_ext
4020 if $ac_preproc_ok; then
4021 :
4022 else
4023 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4024 See \`config.log' for more details." >&5
4025 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4026 See \`config.log' for more details." >&2;}
4027 { (exit 1); exit 1; }; }
4028 fi
4030 ac_ext=c
4031 ac_cpp='$CPP $CPPFLAGS'
4032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036 # Check whether --enable-shared was given.
4037 if test "${enable_shared+set}" = set; then
4038 enableval=$enable_shared; p=${PACKAGE-default}
4039 case $enableval in
4040 yes) enable_shared=yes ;;
4041 no) enable_shared=no ;;
4042 *)
4043 enable_shared=no
4044 # Look at the argument we got. We use all the common list separators.
4045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4046 for pkg in $enableval; do
4047 IFS="$lt_save_ifs"
4048 if test "X$pkg" = "X$p"; then
4049 enable_shared=yes
4050 fi
4051 done
4052 IFS="$lt_save_ifs"
4053 ;;
4054 esac
4055 else
4056 enable_shared=yes
4057 fi
4060 # Check whether --enable-static was given.
4061 if test "${enable_static+set}" = set; then
4062 enableval=$enable_static; p=${PACKAGE-default}
4063 case $enableval in
4064 yes) enable_static=yes ;;
4065 no) enable_static=no ;;
4066 *)
4067 enable_static=no
4068 # Look at the argument we got. We use all the common list separators.
4069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4070 for pkg in $enableval; do
4071 IFS="$lt_save_ifs"
4072 if test "X$pkg" = "X$p"; then
4073 enable_static=yes
4074 fi
4075 done
4076 IFS="$lt_save_ifs"
4077 ;;
4078 esac
4079 else
4080 enable_static=yes
4081 fi
4084 # Check whether --enable-fast-install was given.
4085 if test "${enable_fast_install+set}" = set; then
4086 enableval=$enable_fast_install; p=${PACKAGE-default}
4087 case $enableval in
4088 yes) enable_fast_install=yes ;;
4089 no) enable_fast_install=no ;;
4090 *)
4091 enable_fast_install=no
4092 # Look at the argument we got. We use all the common list separators.
4093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4094 for pkg in $enableval; do
4095 IFS="$lt_save_ifs"
4096 if test "X$pkg" = "X$p"; then
4097 enable_fast_install=yes
4098 fi
4099 done
4100 IFS="$lt_save_ifs"
4101 ;;
4102 esac
4103 else
4104 enable_fast_install=yes
4105 fi
4108 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4109 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4110 if test "${lt_cv_path_SED+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113 # Loop through the user's path and test for sed and gsed.
4114 # Then use that list of sed's as ones to test for truncation.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4117 do
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for lt_ac_prog in sed gsed; do
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4123 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4124 fi
4125 done
4126 done
4127 done
4128 lt_ac_max=0
4129 lt_ac_count=0
4130 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4131 # along with /bin/sed that truncates output.
4132 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4133 test ! -f $lt_ac_sed && continue
4134 cat /dev/null > conftest.in
4135 lt_ac_count=0
4136 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4137 # Check for GNU sed and select it if it is found.
4138 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4139 lt_cv_path_SED=$lt_ac_sed
4140 break
4141 fi
4142 while true; do
4143 cat conftest.in conftest.in >conftest.tmp
4144 mv conftest.tmp conftest.in
4145 cp conftest.in conftest.nl
4146 echo >>conftest.nl
4147 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4148 cmp -s conftest.out conftest.nl || break
4149 # 10000 chars as input seems more than enough
4150 test $lt_ac_count -gt 10 && break
4151 lt_ac_count=`expr $lt_ac_count + 1`
4152 if test $lt_ac_count -gt $lt_ac_max; then
4153 lt_ac_max=$lt_ac_count
4154 lt_cv_path_SED=$lt_ac_sed
4155 fi
4156 done
4157 done
4159 fi
4161 SED=$lt_cv_path_SED
4162 { echo "$as_me:$LINENO: result: $SED" >&5
4163 echo "${ECHO_T}$SED" >&6; }
4165 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4166 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4167 if test "${ac_cv_path_GREP+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170 # Extract the first word of "grep ggrep" to use in msg output
4171 if test -z "$GREP"; then
4172 set dummy grep ggrep; ac_prog_name=$2
4173 if test "${ac_cv_path_GREP+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176 ac_path_GREP_found=false
4177 # Loop through the user's path and test for each of PROGNAME-LIST
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4180 do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in grep ggrep; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4186 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4187 # Check for GNU ac_path_GREP and select it if it is found.
4188 # Check for GNU $ac_path_GREP
4189 case `"$ac_path_GREP" --version 2>&1` in
4190 *GNU*)
4191 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4192 *)
4193 ac_count=0
4194 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4195 while :
4196 do
4197 cat "conftest.in" "conftest.in" >"conftest.tmp"
4198 mv "conftest.tmp" "conftest.in"
4199 cp "conftest.in" "conftest.nl"
4200 echo 'GREP' >> "conftest.nl"
4201 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203 ac_count=`expr $ac_count + 1`
4204 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4205 # Best one so far, save it but keep looking for a better one
4206 ac_cv_path_GREP="$ac_path_GREP"
4207 ac_path_GREP_max=$ac_count
4208 fi
4209 # 10*(2^10) chars as input seems more than enough
4210 test $ac_count -gt 10 && break
4211 done
4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4216 $ac_path_GREP_found && break 3
4217 done
4218 done
4220 done
4221 IFS=$as_save_IFS
4224 fi
4226 GREP="$ac_cv_path_GREP"
4227 if test -z "$GREP"; then
4228 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4229 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4230 { (exit 1); exit 1; }; }
4231 fi
4233 else
4234 ac_cv_path_GREP=$GREP
4235 fi
4238 fi
4239 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4240 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4241 GREP="$ac_cv_path_GREP"
4244 { echo "$as_me:$LINENO: checking for egrep" >&5
4245 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4246 if test "${ac_cv_path_EGREP+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4250 then ac_cv_path_EGREP="$GREP -E"
4251 else
4252 # Extract the first word of "egrep" to use in msg output
4253 if test -z "$EGREP"; then
4254 set dummy egrep; ac_prog_name=$2
4255 if test "${ac_cv_path_EGREP+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258 ac_path_EGREP_found=false
4259 # Loop through the user's path and test for each of PROGNAME-LIST
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4262 do
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_prog in egrep; do
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4268 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4269 # Check for GNU ac_path_EGREP and select it if it is found.
4270 # Check for GNU $ac_path_EGREP
4271 case `"$ac_path_EGREP" --version 2>&1` in
4272 *GNU*)
4273 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4274 *)
4275 ac_count=0
4276 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4277 while :
4278 do
4279 cat "conftest.in" "conftest.in" >"conftest.tmp"
4280 mv "conftest.tmp" "conftest.in"
4281 cp "conftest.in" "conftest.nl"
4282 echo 'EGREP' >> "conftest.nl"
4283 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4285 ac_count=`expr $ac_count + 1`
4286 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4287 # Best one so far, save it but keep looking for a better one
4288 ac_cv_path_EGREP="$ac_path_EGREP"
4289 ac_path_EGREP_max=$ac_count
4290 fi
4291 # 10*(2^10) chars as input seems more than enough
4292 test $ac_count -gt 10 && break
4293 done
4294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4295 esac
4298 $ac_path_EGREP_found && break 3
4299 done
4300 done
4302 done
4303 IFS=$as_save_IFS
4306 fi
4308 EGREP="$ac_cv_path_EGREP"
4309 if test -z "$EGREP"; then
4310 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4311 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4312 { (exit 1); exit 1; }; }
4313 fi
4315 else
4316 ac_cv_path_EGREP=$EGREP
4317 fi
4320 fi
4321 fi
4322 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4323 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4324 EGREP="$ac_cv_path_EGREP"
4328 # Check whether --with-gnu-ld was given.
4329 if test "${with_gnu_ld+set}" = set; then
4330 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4331 else
4332 with_gnu_ld=no
4333 fi
4335 ac_prog=ld
4336 if test "$GCC" = yes; then
4337 # Check if gcc -print-prog-name=ld gives a path.
4338 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4339 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4340 case $host in
4341 *-*-mingw*)
4342 # gcc leaves a trailing carriage return which upsets mingw
4343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4344 *)
4345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4346 esac
4347 case $ac_prog in
4348 # Accept absolute paths.
4349 [\\/]* | ?:[\\/]*)
4350 re_direlt='/[^/][^/]*/\.\./'
4351 # Canonicalize the pathname of ld
4352 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4353 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4354 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4355 done
4356 test -z "$LD" && LD="$ac_prog"
4357 ;;
4358 "")
4359 # If it fails, then pretend we aren't using GCC.
4360 ac_prog=ld
4361 ;;
4362 *)
4363 # If it is relative, then search for the first ld in PATH.
4364 with_gnu_ld=unknown
4365 ;;
4366 esac
4367 elif test "$with_gnu_ld" = yes; then
4368 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4369 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4370 else
4371 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4372 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4373 fi
4374 if test "${lt_cv_path_LD+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377 if test -z "$LD"; then
4378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4379 for ac_dir in $PATH; do
4380 IFS="$lt_save_ifs"
4381 test -z "$ac_dir" && ac_dir=.
4382 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4383 lt_cv_path_LD="$ac_dir/$ac_prog"
4384 # Check to see if the program is GNU ld. I'd rather use --version,
4385 # but apparently some variants of GNU ld only accept -v.
4386 # Break only if it was the GNU/non-GNU ld that we prefer.
4387 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4388 *GNU* | *'with BFD'*)
4389 test "$with_gnu_ld" != no && break
4390 ;;
4391 *)
4392 test "$with_gnu_ld" != yes && break
4393 ;;
4394 esac
4395 fi
4396 done
4397 IFS="$lt_save_ifs"
4398 else
4399 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4400 fi
4401 fi
4403 LD="$lt_cv_path_LD"
4404 if test -n "$LD"; then
4405 { echo "$as_me:$LINENO: result: $LD" >&5
4406 echo "${ECHO_T}$LD" >&6; }
4407 else
4408 { echo "$as_me:$LINENO: result: no" >&5
4409 echo "${ECHO_T}no" >&6; }
4410 fi
4411 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4412 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4413 { (exit 1); exit 1; }; }
4414 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4415 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4416 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4420 case `$LD -v 2>&1 </dev/null` in
4421 *GNU* | *'with BFD'*)
4422 lt_cv_prog_gnu_ld=yes
4423 ;;
4424 *)
4425 lt_cv_prog_gnu_ld=no
4426 ;;
4427 esac
4428 fi
4429 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4430 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4431 with_gnu_ld=$lt_cv_prog_gnu_ld
4434 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4435 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4436 if test "${lt_cv_ld_reload_flag+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 lt_cv_ld_reload_flag='-r'
4440 fi
4441 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4442 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4443 reload_flag=$lt_cv_ld_reload_flag
4444 case $reload_flag in
4445 "" | " "*) ;;
4446 *) reload_flag=" $reload_flag" ;;
4447 esac
4448 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4449 case $host_os in
4450 darwin*)
4451 if test "$GCC" = yes; then
4452 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4453 else
4454 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4455 fi
4456 ;;
4457 esac
4459 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4460 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4461 if test "${lt_cv_path_NM+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 if test -n "$NM"; then
4465 # Let the user override the test.
4466 lt_cv_path_NM="$NM"
4467 else
4468 lt_nm_to_check="${ac_tool_prefix}nm"
4469 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4470 lt_nm_to_check="$lt_nm_to_check nm"
4471 fi
4472 for lt_tmp_nm in $lt_nm_to_check; do
4473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4474 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4475 IFS="$lt_save_ifs"
4476 test -z "$ac_dir" && ac_dir=.
4477 tmp_nm="$ac_dir/$lt_tmp_nm"
4478 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4479 # Check to see if the nm accepts a BSD-compat flag.
4480 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4481 # nm: unknown option "B" ignored
4482 # Tru64's nm complains that /dev/null is an invalid object file
4483 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4484 */dev/null* | *'Invalid file or object type'*)
4485 lt_cv_path_NM="$tmp_nm -B"
4486 break
4487 ;;
4488 *)
4489 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4490 */dev/null*)
4491 lt_cv_path_NM="$tmp_nm -p"
4492 break
4493 ;;
4494 *)
4495 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4496 continue # so that we can try to find one that supports BSD flags
4497 ;;
4498 esac
4499 ;;
4500 esac
4501 fi
4502 done
4503 IFS="$lt_save_ifs"
4504 done
4505 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4506 fi
4507 fi
4508 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4509 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4510 NM="$lt_cv_path_NM"
4512 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4513 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4514 LN_S=$as_ln_s
4515 if test "$LN_S" = "ln -s"; then
4516 { echo "$as_me:$LINENO: result: yes" >&5
4517 echo "${ECHO_T}yes" >&6; }
4518 else
4519 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4520 echo "${ECHO_T}no, using $LN_S" >&6; }
4521 fi
4523 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4524 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4525 if test "${lt_cv_deplibs_check_method+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 lt_cv_file_magic_cmd='$MAGIC_CMD'
4529 lt_cv_file_magic_test_file=
4530 lt_cv_deplibs_check_method='unknown'
4531 # Need to set the preceding variable on all platforms that support
4532 # interlibrary dependencies.
4533 # 'none' -- dependencies not supported.
4534 # `unknown' -- same as none, but documents that we really don't know.
4535 # 'pass_all' -- all dependencies passed with no checks.
4536 # 'test_compile' -- check by making test program.
4537 # 'file_magic [[regex]]' -- check by looking for files in library path
4538 # which responds to the $file_magic_cmd with a given extended regex.
4539 # If you have `file' or equivalent on your system and you're not sure
4540 # whether `pass_all' will *always* work, you probably want this one.
4542 case $host_os in
4543 aix4* | aix5*)
4544 lt_cv_deplibs_check_method=pass_all
4545 ;;
4547 beos*)
4548 lt_cv_deplibs_check_method=pass_all
4549 ;;
4551 bsdi[45]*)
4552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4553 lt_cv_file_magic_cmd='/usr/bin/file -L'
4554 lt_cv_file_magic_test_file=/shlib/libc.so
4555 ;;
4557 cygwin*)
4558 # func_win32_libid is a shell function defined in ltmain.sh
4559 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4560 lt_cv_file_magic_cmd='func_win32_libid'
4561 ;;
4563 mingw* | pw32*)
4564 # Base MSYS/MinGW do not provide the 'file' command needed by
4565 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4566 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4567 lt_cv_file_magic_cmd='$OBJDUMP -f'
4568 ;;
4570 darwin* | rhapsody*)
4571 lt_cv_deplibs_check_method=pass_all
4572 ;;
4574 freebsd* | dragonfly*)
4575 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4576 case $host_cpu in
4577 i*86 )
4578 # Not sure whether the presence of OpenBSD here was a mistake.
4579 # Let's accept both of them until this is cleared up.
4580 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4581 lt_cv_file_magic_cmd=/usr/bin/file
4582 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4583 ;;
4584 esac
4585 else
4586 lt_cv_deplibs_check_method=pass_all
4587 fi
4588 ;;
4590 gnu*)
4591 lt_cv_deplibs_check_method=pass_all
4592 ;;
4594 hpux10.20* | hpux11*)
4595 lt_cv_file_magic_cmd=/usr/bin/file
4596 case $host_cpu in
4597 ia64*)
4598 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4599 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4600 ;;
4601 hppa*64*)
4602 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]'
4603 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4604 ;;
4605 *)
4606 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4607 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4608 ;;
4609 esac
4610 ;;
4612 interix3*)
4613 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4615 ;;
4617 irix5* | irix6* | nonstopux*)
4618 case $LD in
4619 *-32|*"-32 ") libmagic=32-bit;;
4620 *-n32|*"-n32 ") libmagic=N32;;
4621 *-64|*"-64 ") libmagic=64-bit;;
4622 *) libmagic=never-match;;
4623 esac
4624 lt_cv_deplibs_check_method=pass_all
4625 ;;
4627 # This must be Linux ELF.
4628 linux* | k*bsd*-gnu)
4629 lt_cv_deplibs_check_method=pass_all
4630 ;;
4632 netbsd* | netbsdelf*-gnu)
4633 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4635 else
4636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4637 fi
4638 ;;
4640 newos6*)
4641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4642 lt_cv_file_magic_cmd=/usr/bin/file
4643 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4644 ;;
4646 nto-qnx*)
4647 lt_cv_deplibs_check_method=unknown
4648 ;;
4650 openbsd*)
4651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4653 else
4654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4655 fi
4656 ;;
4658 osf3* | osf4* | osf5*)
4659 lt_cv_deplibs_check_method=pass_all
4660 ;;
4662 solaris*)
4663 lt_cv_deplibs_check_method=pass_all
4664 ;;
4666 sysv4 | sysv4.3*)
4667 case $host_vendor in
4668 motorola)
4669 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]'
4670 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4671 ;;
4672 ncr)
4673 lt_cv_deplibs_check_method=pass_all
4674 ;;
4675 sequent)
4676 lt_cv_file_magic_cmd='/bin/file'
4677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4678 ;;
4679 sni)
4680 lt_cv_file_magic_cmd='/bin/file'
4681 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4682 lt_cv_file_magic_test_file=/lib/libc.so
4683 ;;
4684 siemens)
4685 lt_cv_deplibs_check_method=pass_all
4686 ;;
4687 pc)
4688 lt_cv_deplibs_check_method=pass_all
4689 ;;
4690 esac
4691 ;;
4693 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4694 lt_cv_deplibs_check_method=pass_all
4695 ;;
4696 esac
4698 fi
4699 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4700 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4701 file_magic_cmd=$lt_cv_file_magic_cmd
4702 deplibs_check_method=$lt_cv_deplibs_check_method
4703 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4708 # If no C compiler was specified, use CC.
4709 LTCC=${LTCC-"$CC"}
4711 # If no C compiler flags were specified, use CFLAGS.
4712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4714 # Allow CC to be a program name with arguments.
4715 compiler=$CC
4718 # Check whether --enable-libtool-lock was given.
4719 if test "${enable_libtool_lock+set}" = set; then
4720 enableval=$enable_libtool_lock;
4721 fi
4723 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4725 # Some flags need to be propagated to the compiler or linker for good
4726 # libtool support.
4727 case $host in
4728 ia64-*-hpux*)
4729 # Find out which ABI we are using.
4730 echo 'int i;' > conftest.$ac_ext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732 (eval $ac_compile) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; then
4736 case `/usr/bin/file conftest.$ac_objext` in
4737 *ELF-32*)
4738 HPUX_IA64_MODE="32"
4739 ;;
4740 *ELF-64*)
4741 HPUX_IA64_MODE="64"
4742 ;;
4743 esac
4744 fi
4745 rm -rf conftest*
4746 ;;
4747 *-*-irix6*)
4748 # Find out which ABI we are using.
4749 echo '#line 4749 "configure"' > 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 if test "$lt_cv_prog_gnu_ld" = yes; then
4756 case `/usr/bin/file conftest.$ac_objext` in
4757 *32-bit*)
4758 LD="${LD-ld} -melf32bsmip"
4759 ;;
4760 *N32*)
4761 LD="${LD-ld} -melf32bmipn32"
4762 ;;
4763 *64-bit*)
4764 LD="${LD-ld} -melf64bmip"
4765 ;;
4766 esac
4767 else
4768 case `/usr/bin/file conftest.$ac_objext` in
4769 *32-bit*)
4770 LD="${LD-ld} -32"
4771 ;;
4772 *N32*)
4773 LD="${LD-ld} -n32"
4774 ;;
4775 *64-bit*)
4776 LD="${LD-ld} -64"
4777 ;;
4778 esac
4779 fi
4780 fi
4781 rm -rf conftest*
4782 ;;
4784 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4785 # Find out which ABI we are using.
4786 echo 'int i;' > conftest.$ac_ext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>&5
4789 ac_status=$?
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; then
4792 case `/usr/bin/file conftest.o` in
4793 *32-bit*)
4794 case $host in
4795 x86_64-*linux*)
4796 LD="${LD-ld} -m elf_i386"
4797 ;;
4798 ppc64-*linux*|powerpc64-*linux*)
4799 LD="${LD-ld} -m elf32ppclinux"
4800 ;;
4801 s390x-*linux*)
4802 LD="${LD-ld} -m elf_s390"
4803 ;;
4804 sparc64-*linux*)
4805 LD="${LD-ld} -m elf32_sparc"
4806 ;;
4807 esac
4808 ;;
4809 *64-bit*)
4810 case $host in
4811 x86_64-*linux*)
4812 LD="${LD-ld} -m elf_x86_64"
4813 ;;
4814 ppc*-*linux*|powerpc*-*linux*)
4815 LD="${LD-ld} -m elf64ppc"
4816 ;;
4817 s390*-*linux*)
4818 LD="${LD-ld} -m elf64_s390"
4819 ;;
4820 sparc*-*linux*)
4821 LD="${LD-ld} -m elf64_sparc"
4822 ;;
4823 esac
4824 ;;
4825 esac
4826 fi
4827 rm -rf conftest*
4828 ;;
4830 *-*-sco3.2v5*)
4831 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4832 SAVE_CFLAGS="$CFLAGS"
4833 CFLAGS="$CFLAGS -belf"
4834 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4835 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4836 if test "${lt_cv_cc_needs_belf+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839 ac_ext=c
4840 ac_cpp='$CPP $CPPFLAGS'
4841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h. */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4852 int
4853 main ()
4854 {
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (ac_try="$ac_link"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_link") 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest$ac_exeext &&
4877 $as_test_x conftest$ac_exeext; then
4878 lt_cv_cc_needs_belf=yes
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 lt_cv_cc_needs_belf=no
4884 fi
4886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4887 conftest$ac_exeext conftest.$ac_ext
4888 ac_ext=c
4889 ac_cpp='$CPP $CPPFLAGS'
4890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894 fi
4895 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4896 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4899 CFLAGS="$SAVE_CFLAGS"
4900 fi
4901 ;;
4902 sparc*-*solaris*)
4903 # Find out which ABI we are using.
4904 echo 'int i;' > conftest.$ac_ext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906 (eval $ac_compile) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; then
4910 case `/usr/bin/file conftest.o` in
4911 *64-bit*)
4912 case $lt_cv_prog_gnu_ld in
4913 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4914 *) LD="${LD-ld} -64" ;;
4915 esac
4916 ;;
4917 esac
4918 fi
4919 rm -rf conftest*
4920 ;;
4923 esac
4925 need_locks="$enable_libtool_lock"
4929 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4930 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4931 if test "${ac_cv_header_stdc+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h. */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 #include <stdlib.h>
4941 #include <stdarg.h>
4942 #include <string.h>
4943 #include <float.h>
4945 int
4946 main ()
4947 {
4949 ;
4950 return 0;
4951 }
4952 _ACEOF
4953 rm -f conftest.$ac_objext
4954 if { (ac_try="$ac_compile"
4955 case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_compile") 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } && {
4967 test -z "$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4969 } && test -s conftest.$ac_objext; then
4970 ac_cv_header_stdc=yes
4971 else
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4975 ac_cv_header_stdc=no
4976 fi
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 if test $ac_cv_header_stdc = yes; then
4981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4982 cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h. */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988 #include <string.h>
4990 _ACEOF
4991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992 $EGREP "memchr" >/dev/null 2>&1; then
4993 :
4994 else
4995 ac_cv_header_stdc=no
4996 fi
4997 rm -f conftest*
4999 fi
5001 if test $ac_cv_header_stdc = yes; then
5002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5003 cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h. */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5009 #include <stdlib.h>
5011 _ACEOF
5012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5013 $EGREP "free" >/dev/null 2>&1; then
5014 :
5015 else
5016 ac_cv_header_stdc=no
5017 fi
5018 rm -f conftest*
5020 fi
5022 if test $ac_cv_header_stdc = yes; then
5023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5024 if test "$cross_compiling" = yes; then
5025 :
5026 else
5027 cat >conftest.$ac_ext <<_ACEOF
5028 /* confdefs.h. */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5033 #include <ctype.h>
5034 #include <stdlib.h>
5035 #if ((' ' & 0x0FF) == 0x020)
5036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5038 #else
5039 # define ISLOWER(c) \
5040 (('a' <= (c) && (c) <= 'i') \
5041 || ('j' <= (c) && (c) <= 'r') \
5042 || ('s' <= (c) && (c) <= 'z'))
5043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5044 #endif
5046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5047 int
5048 main ()
5049 {
5050 int i;
5051 for (i = 0; i < 256; i++)
5052 if (XOR (islower (i), ISLOWER (i))
5053 || toupper (i) != TOUPPER (i))
5054 return 2;
5055 return 0;
5056 }
5057 _ACEOF
5058 rm -f conftest$ac_exeext
5059 if { (ac_try="$ac_link"
5060 case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_link") 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5069 { (case "(($ac_try" in
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5072 esac
5073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074 (eval "$ac_try") 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 :
5079 else
5080 echo "$as_me: program exited with status $ac_status" >&5
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5084 ( exit $ac_status )
5085 ac_cv_header_stdc=no
5086 fi
5087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5088 fi
5091 fi
5092 fi
5093 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5094 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5095 if test $ac_cv_header_stdc = yes; then
5097 cat >>confdefs.h <<\_ACEOF
5098 #define STDC_HEADERS 1
5099 _ACEOF
5101 fi
5103 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5113 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5114 inttypes.h stdint.h unistd.h
5115 do
5116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h. */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 $ac_includes_default
5130 #include <$ac_header>
5131 _ACEOF
5132 rm -f conftest.$ac_objext
5133 if { (ac_try="$ac_compile"
5134 case "(($ac_try" in
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5137 esac
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_compile") 2>conftest.er1
5140 ac_status=$?
5141 grep -v '^ *+' conftest.er1 >conftest.err
5142 rm -f conftest.er1
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } && {
5146 test -z "$ac_c_werror_flag" ||
5147 test ! -s conftest.err
5148 } && test -s conftest.$ac_objext; then
5149 eval "$as_ac_Header=yes"
5150 else
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 eval "$as_ac_Header=no"
5155 fi
5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158 fi
5159 ac_res=`eval echo '${'$as_ac_Header'}'`
5160 { echo "$as_me:$LINENO: result: $ac_res" >&5
5161 echo "${ECHO_T}$ac_res" >&6; }
5162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5163 cat >>confdefs.h <<_ACEOF
5164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5165 _ACEOF
5167 fi
5169 done
5173 for ac_header in dlfcn.h
5174 do
5175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 fi
5182 ac_res=`eval echo '${'$as_ac_Header'}'`
5183 { echo "$as_me:$LINENO: result: $ac_res" >&5
5184 echo "${ECHO_T}$ac_res" >&6; }
5185 else
5186 # Is the header compilable?
5187 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5189 cat >conftest.$ac_ext <<_ACEOF
5190 /* confdefs.h. */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 $ac_includes_default
5196 #include <$ac_header>
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (ac_try="$ac_compile"
5200 case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203 esac
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205 (eval "$ac_compile") 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } && {
5212 test -z "$ac_c_werror_flag" ||
5213 test ! -s conftest.err
5214 } && test -s conftest.$ac_objext; then
5215 ac_header_compiler=yes
5216 else
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5220 ac_header_compiler=no
5221 fi
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5225 echo "${ECHO_T}$ac_header_compiler" >&6; }
5227 # Is the header present?
5228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h. */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 #include <$ac_header>
5237 _ACEOF
5238 if { (ac_try="$ac_cpp conftest.$ac_ext"
5239 case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242 esac
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null && {
5251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5252 test ! -s conftest.err
5253 }; then
5254 ac_header_preproc=yes
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 ac_header_preproc=no
5260 fi
5262 rm -f conftest.err conftest.$ac_ext
5263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5264 echo "${ECHO_T}$ac_header_preproc" >&6; }
5266 # So? What about this header?
5267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5268 yes:no: )
5269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5273 ac_header_preproc=yes
5274 ;;
5275 no:yes:* )
5276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5289 ;;
5290 esac
5291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 eval "$as_ac_Header=\$ac_header_preproc"
5297 fi
5298 ac_res=`eval echo '${'$as_ac_Header'}'`
5299 { echo "$as_me:$LINENO: result: $ac_res" >&5
5300 echo "${ECHO_T}$ac_res" >&6; }
5302 fi
5303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5304 cat >>confdefs.h <<_ACEOF
5305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5306 _ACEOF
5308 fi
5310 done
5312 ac_ext=cpp
5313 ac_cpp='$CXXCPP $CPPFLAGS'
5314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5317 if test -z "$CXX"; then
5318 if test -n "$CCC"; then
5319 CXX=$CCC
5320 else
5321 if test -n "$ac_tool_prefix"; then
5322 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5323 do
5324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5328 if test "${ac_cv_prog_CXX+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331 if test -n "$CXX"; then
5332 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5344 fi
5345 done
5346 done
5347 IFS=$as_save_IFS
5349 fi
5350 fi
5351 CXX=$ac_cv_prog_CXX
5352 if test -n "$CXX"; then
5353 { echo "$as_me:$LINENO: result: $CXX" >&5
5354 echo "${ECHO_T}$CXX" >&6; }
5355 else
5356 { echo "$as_me:$LINENO: result: no" >&5
5357 echo "${ECHO_T}no" >&6; }
5358 fi
5361 test -n "$CXX" && break
5362 done
5363 fi
5364 if test -z "$CXX"; then
5365 ac_ct_CXX=$CXX
5366 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5367 do
5368 # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5372 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375 if test -n "$ac_ct_CXX"; then
5376 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385 ac_cv_prog_ac_ct_CXX="$ac_prog"
5386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5388 fi
5389 done
5390 done
5391 IFS=$as_save_IFS
5393 fi
5394 fi
5395 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5396 if test -n "$ac_ct_CXX"; then
5397 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5398 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5399 else
5400 { echo "$as_me:$LINENO: result: no" >&5
5401 echo "${ECHO_T}no" >&6; }
5402 fi
5405 test -n "$ac_ct_CXX" && break
5406 done
5408 if test "x$ac_ct_CXX" = x; then
5409 CXX="g++"
5410 else
5411 case $cross_compiling:$ac_tool_warned in
5412 yes:)
5413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5414 whose name does not start with the host triplet. If you think this
5415 configuration is useful to you, please write to autoconf@gnu.org." >&5
5416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5417 whose name does not start with the host triplet. If you think this
5418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5419 ac_tool_warned=yes ;;
5420 esac
5421 CXX=$ac_ct_CXX
5422 fi
5423 fi
5425 fi
5426 fi
5427 # Provide some information about the compiler.
5428 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5429 ac_compiler=`set X $ac_compile; echo $2`
5430 { (ac_try="$ac_compiler --version >&5"
5431 case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5434 esac
5435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_compiler --version >&5") 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }
5440 { (ac_try="$ac_compiler -v >&5"
5441 case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_compiler -v >&5") 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }
5450 { (ac_try="$ac_compiler -V >&5"
5451 case "(($ac_try" in
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5454 esac
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456 (eval "$ac_compiler -V >&5") 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }
5461 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5462 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5463 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5473 int
5474 main ()
5475 {
5476 #ifndef __GNUC__
5477 choke me
5478 #endif
5480 ;
5481 return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_cxx_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5501 ac_compiler_gnu=yes
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 ac_compiler_gnu=no
5507 fi
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5512 fi
5513 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5514 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5515 GXX=`test $ac_compiler_gnu = yes && echo yes`
5516 ac_test_CXXFLAGS=${CXXFLAGS+set}
5517 ac_save_CXXFLAGS=$CXXFLAGS
5518 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5519 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5520 if test "${ac_cv_prog_cxx_g+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5524 ac_cxx_werror_flag=yes
5525 ac_cv_prog_cxx_g=no
5526 CXXFLAGS="-g"
5527 cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5534 int
5535 main ()
5536 {
5538 ;
5539 return 0;
5540 }
5541 _ACEOF
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5544 case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && {
5556 test -z "$ac_cxx_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
5559 ac_cv_prog_cxx_g=yes
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 CXXFLAGS=""
5565 cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h. */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5572 int
5573 main ()
5574 {
5576 ;
5577 return 0;
5578 }
5579 _ACEOF
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5582 case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && {
5594 test -z "$ac_cxx_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest.$ac_objext; then
5597 :
5598 else
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5603 CXXFLAGS="-g"
5604 cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5611 int
5612 main ()
5613 {
5615 ;
5616 return 0;
5617 }
5618 _ACEOF
5619 rm -f conftest.$ac_objext
5620 if { (ac_try="$ac_compile"
5621 case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_compile") 2>conftest.er1
5627 ac_status=$?
5628 grep -v '^ *+' conftest.er1 >conftest.err
5629 rm -f conftest.er1
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && {
5633 test -z "$ac_cxx_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest.$ac_objext; then
5636 ac_cv_prog_cxx_g=yes
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5642 fi
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 fi
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 fi
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5652 fi
5653 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5654 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5655 if test "$ac_test_CXXFLAGS" = set; then
5656 CXXFLAGS=$ac_save_CXXFLAGS
5657 elif test $ac_cv_prog_cxx_g = yes; then
5658 if test "$GXX" = yes; then
5659 CXXFLAGS="-g -O2"
5660 else
5661 CXXFLAGS="-g"
5662 fi
5663 else
5664 if test "$GXX" = yes; then
5665 CXXFLAGS="-O2"
5666 else
5667 CXXFLAGS=
5668 fi
5669 fi
5670 ac_ext=cpp
5671 ac_cpp='$CXXCPP $CPPFLAGS'
5672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5676 depcc="$CXX" am_compiler_list=
5678 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5679 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5680 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5684 # We make a subdir and do the tests there. Otherwise we can end up
5685 # making bogus files that we don't know about and never remove. For
5686 # instance it was reported that on HP-UX the gcc test will end up
5687 # making a dummy file named `D' -- because `-MD' means `put the output
5688 # in D'.
5689 mkdir conftest.dir
5690 # Copy depcomp to subdir because otherwise we won't find it if we're
5691 # using a relative directory.
5692 cp "$am_depcomp" conftest.dir
5693 cd conftest.dir
5694 # We will build objects and dependencies in a subdirectory because
5695 # it helps to detect inapplicable dependency modes. For instance
5696 # both Tru64's cc and ICC support -MD to output dependencies as a
5697 # side effect of compilation, but ICC will put the dependencies in
5698 # the current directory while Tru64 will put them in the object
5699 # directory.
5700 mkdir sub
5702 am_cv_CXX_dependencies_compiler_type=none
5703 if test "$am_compiler_list" = ""; then
5704 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5705 fi
5706 for depmode in $am_compiler_list; do
5707 # Setup a source with many dependencies, because some compilers
5708 # like to wrap large dependency lists on column 80 (with \), and
5709 # we should not choose a depcomp mode which is confused by this.
5710 #
5711 # We need to recreate these files for each test, as the compiler may
5712 # overwrite some of them when testing with obscure command lines.
5713 # This happens at least with the AIX C compiler.
5714 : > sub/conftest.c
5715 for i in 1 2 3 4 5 6; do
5716 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5717 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5718 # Solaris 8's {/usr,}/bin/sh.
5719 touch sub/conftst$i.h
5720 done
5721 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5723 case $depmode in
5724 nosideeffect)
5725 # after this tag, mechanisms are not by side-effect, so they'll
5726 # only be used when explicitly requested
5727 if test "x$enable_dependency_tracking" = xyes; then
5728 continue
5729 else
5730 break
5731 fi
5732 ;;
5733 none) break ;;
5734 esac
5735 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5736 # mode. It turns out that the SunPro C++ compiler does not properly
5737 # handle `-M -o', and we need to detect this.
5738 if depmode=$depmode \
5739 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5740 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5741 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5742 >/dev/null 2>conftest.err &&
5743 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5744 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5745 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5746 # icc doesn't choke on unknown options, it will just issue warnings
5747 # or remarks (even with -Werror). So we grep stderr for any message
5748 # that says an option was ignored or not supported.
5749 # When given -MP, icc 7.0 and 7.1 complain thusly:
5750 # icc: Command line warning: ignoring option '-M'; no argument required
5751 # The diagnosis changed in icc 8.0:
5752 # icc: Command line remark: option '-MP' not supported
5753 if (grep 'ignoring option' conftest.err ||
5754 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5755 am_cv_CXX_dependencies_compiler_type=$depmode
5756 break
5757 fi
5758 fi
5759 done
5761 cd ..
5762 rm -rf conftest.dir
5763 else
5764 am_cv_CXX_dependencies_compiler_type=none
5765 fi
5767 fi
5768 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5769 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5770 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5774 if
5775 test "x$enable_dependency_tracking" != xno \
5776 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5777 am__fastdepCXX_TRUE=
5778 am__fastdepCXX_FALSE='#'
5779 else
5780 am__fastdepCXX_TRUE='#'
5781 am__fastdepCXX_FALSE=
5782 fi
5787 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5788 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5789 (test "X$CXX" != "Xg++"))) ; then
5790 ac_ext=cpp
5791 ac_cpp='$CXXCPP $CPPFLAGS'
5792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5795 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5796 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5797 if test -z "$CXXCPP"; then
5798 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801 # Double quotes because CXXCPP needs to be expanded
5802 for CXXCPP in "$CXX -E" "/lib/cpp"
5803 do
5804 ac_preproc_ok=false
5805 for ac_cxx_preproc_warn_flag in '' yes
5806 do
5807 # Use a header file that comes with gcc, so configuring glibc
5808 # with a fresh cross-compiler works.
5809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5810 # <limits.h> exists even on freestanding compilers.
5811 # On the NeXT, cc -E runs the code through the compiler's parser,
5812 # not just through cpp. "Syntax error" is here to catch this case.
5813 cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h. */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 #ifdef __STDC__
5820 # include <limits.h>
5821 #else
5822 # include <assert.h>
5823 #endif
5824 Syntax error
5825 _ACEOF
5826 if { (ac_try="$ac_cpp conftest.$ac_ext"
5827 case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830 esac
5831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5833 ac_status=$?
5834 grep -v '^ *+' conftest.er1 >conftest.err
5835 rm -f conftest.er1
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } >/dev/null && {
5839 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5840 test ! -s conftest.err
5841 }; then
5842 :
5843 else
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5847 # Broken: fails on valid input.
5848 continue
5849 fi
5851 rm -f conftest.err conftest.$ac_ext
5853 # OK, works on sane cases. Now check whether nonexistent headers
5854 # can be detected and how.
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h. */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <ac_nonexistent.h>
5862 _ACEOF
5863 if { (ac_try="$ac_cpp conftest.$ac_ext"
5864 case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867 esac
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } >/dev/null && {
5876 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5877 test ! -s conftest.err
5878 }; then
5879 # Broken: success on invalid input.
5880 continue
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 # Passes both tests.
5886 ac_preproc_ok=:
5887 break
5888 fi
5890 rm -f conftest.err conftest.$ac_ext
5892 done
5893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5894 rm -f conftest.err conftest.$ac_ext
5895 if $ac_preproc_ok; then
5896 break
5897 fi
5899 done
5900 ac_cv_prog_CXXCPP=$CXXCPP
5902 fi
5903 CXXCPP=$ac_cv_prog_CXXCPP
5904 else
5905 ac_cv_prog_CXXCPP=$CXXCPP
5906 fi
5907 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5908 echo "${ECHO_T}$CXXCPP" >&6; }
5909 ac_preproc_ok=false
5910 for ac_cxx_preproc_warn_flag in '' yes
5911 do
5912 # Use a header file that comes with gcc, so configuring glibc
5913 # with a fresh cross-compiler works.
5914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5915 # <limits.h> exists even on freestanding compilers.
5916 # On the NeXT, cc -E runs the code through the compiler's parser,
5917 # not just through cpp. "Syntax error" is here to catch this case.
5918 cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h. */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 #ifdef __STDC__
5925 # include <limits.h>
5926 #else
5927 # include <assert.h>
5928 #endif
5929 Syntax error
5930 _ACEOF
5931 if { (ac_try="$ac_cpp conftest.$ac_ext"
5932 case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935 esac
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } >/dev/null && {
5944 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5945 test ! -s conftest.err
5946 }; then
5947 :
5948 else
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5952 # Broken: fails on valid input.
5953 continue
5954 fi
5956 rm -f conftest.err conftest.$ac_ext
5958 # OK, works on sane cases. Now check whether nonexistent headers
5959 # can be detected and how.
5960 cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h. */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966 #include <ac_nonexistent.h>
5967 _ACEOF
5968 if { (ac_try="$ac_cpp conftest.$ac_ext"
5969 case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5972 esac
5973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5975 ac_status=$?
5976 grep -v '^ *+' conftest.er1 >conftest.err
5977 rm -f conftest.er1
5978 cat conftest.err >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } >/dev/null && {
5981 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5982 test ! -s conftest.err
5983 }; then
5984 # Broken: success on invalid input.
5985 continue
5986 else
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5990 # Passes both tests.
5991 ac_preproc_ok=:
5992 break
5993 fi
5995 rm -f conftest.err conftest.$ac_ext
5997 done
5998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5999 rm -f conftest.err conftest.$ac_ext
6000 if $ac_preproc_ok; then
6001 :
6002 else
6003 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6004 See \`config.log' for more details." >&5
6005 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6006 See \`config.log' for more details." >&2;}
6007 { (exit 1); exit 1; }; }
6008 fi
6010 ac_ext=cpp
6011 ac_cpp='$CXXCPP $CPPFLAGS'
6012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6016 fi
6019 ac_ext=f
6020 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6021 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6023 if test -n "$ac_tool_prefix"; then
6024 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6025 do
6026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6030 if test "${ac_cv_prog_F77+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033 if test -n "$F77"; then
6034 ac_cv_prog_F77="$F77" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6038 do
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6046 fi
6047 done
6048 done
6049 IFS=$as_save_IFS
6051 fi
6052 fi
6053 F77=$ac_cv_prog_F77
6054 if test -n "$F77"; then
6055 { echo "$as_me:$LINENO: result: $F77" >&5
6056 echo "${ECHO_T}$F77" >&6; }
6057 else
6058 { echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6; }
6060 fi
6063 test -n "$F77" && break
6064 done
6065 fi
6066 if test -z "$F77"; then
6067 ac_ct_F77=$F77
6068 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6069 do
6070 # Extract the first word of "$ac_prog", so it can be a program name with args.
6071 set dummy $ac_prog; ac_word=$2
6072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6074 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077 if test -n "$ac_ct_F77"; then
6078 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6079 else
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 for as_dir in $PATH
6082 do
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6087 ac_cv_prog_ac_ct_F77="$ac_prog"
6088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 break 2
6090 fi
6091 done
6092 done
6093 IFS=$as_save_IFS
6095 fi
6096 fi
6097 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6098 if test -n "$ac_ct_F77"; then
6099 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6100 echo "${ECHO_T}$ac_ct_F77" >&6; }
6101 else
6102 { echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6; }
6104 fi
6107 test -n "$ac_ct_F77" && break
6108 done
6110 if test "x$ac_ct_F77" = x; then
6111 F77=""
6112 else
6113 case $cross_compiling:$ac_tool_warned in
6114 yes:)
6115 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6116 whose name does not start with the host triplet. If you think this
6117 configuration is useful to you, please write to autoconf@gnu.org." >&5
6118 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6119 whose name does not start with the host triplet. If you think this
6120 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6121 ac_tool_warned=yes ;;
6122 esac
6123 F77=$ac_ct_F77
6124 fi
6125 fi
6128 # Provide some information about the compiler.
6129 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6130 ac_compiler=`set X $ac_compile; echo $2`
6131 { (ac_try="$ac_compiler --version >&5"
6132 case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135 esac
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_compiler --version >&5") 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }
6141 { (ac_try="$ac_compiler -v >&5"
6142 case "(($ac_try" in
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6145 esac
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_compiler -v >&5") 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }
6151 { (ac_try="$ac_compiler -V >&5"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_compiler -V >&5") 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }
6161 rm -f a.out
6163 # If we don't use `.F' as extension, the preprocessor is not run on the
6164 # input file. (Note that this only needs to work for GNU compilers.)
6165 ac_save_ext=$ac_ext
6166 ac_ext=F
6167 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6168 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6169 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 cat >conftest.$ac_ext <<_ACEOF
6173 program main
6174 #ifndef __GNUC__
6175 choke me
6176 #endif
6178 end
6179 _ACEOF
6180 rm -f conftest.$ac_objext
6181 if { (ac_try="$ac_compile"
6182 case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185 esac
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_compile") 2>conftest.er1
6188 ac_status=$?
6189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } && {
6194 test -z "$ac_f77_werror_flag" ||
6195 test ! -s conftest.err
6196 } && test -s conftest.$ac_objext; then
6197 ac_compiler_gnu=yes
6198 else
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6202 ac_compiler_gnu=no
6203 fi
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6208 fi
6209 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6210 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6211 ac_ext=$ac_save_ext
6212 ac_test_FFLAGS=${FFLAGS+set}
6213 ac_save_FFLAGS=$FFLAGS
6214 FFLAGS=
6215 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6216 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6217 if test "${ac_cv_prog_f77_g+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220 FFLAGS=-g
6221 cat >conftest.$ac_ext <<_ACEOF
6222 program main
6224 end
6225 _ACEOF
6226 rm -f conftest.$ac_objext
6227 if { (ac_try="$ac_compile"
6228 case "(($ac_try" in
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6231 esac
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_compile") 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } && {
6240 test -z "$ac_f77_werror_flag" ||
6241 test ! -s conftest.err
6242 } && test -s conftest.$ac_objext; then
6243 ac_cv_prog_f77_g=yes
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 ac_cv_prog_f77_g=no
6249 fi
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253 fi
6254 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6255 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6256 if test "$ac_test_FFLAGS" = set; then
6257 FFLAGS=$ac_save_FFLAGS
6258 elif test $ac_cv_prog_f77_g = yes; then
6259 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6260 FFLAGS="-g -O2"
6261 else
6262 FFLAGS="-g"
6263 fi
6264 else
6265 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6266 FFLAGS="-O2"
6267 else
6268 FFLAGS=
6269 fi
6270 fi
6272 G77=`test $ac_compiler_gnu = yes && echo yes`
6273 ac_ext=c
6274 ac_cpp='$CPP $CPPFLAGS'
6275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6281 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6283 # find the maximum length of command line arguments
6284 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6285 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6286 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289 i=0
6290 teststring="ABCD"
6292 case $build_os in
6293 msdosdjgpp*)
6294 # On DJGPP, this test can blow up pretty badly due to problems in libc
6295 # (any single argument exceeding 2000 bytes causes a buffer overrun
6296 # during glob expansion). Even if it were fixed, the result of this
6297 # check would be larger than it should be.
6298 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6299 ;;
6301 gnu*)
6302 # Under GNU Hurd, this test is not required because there is
6303 # no limit to the length of command line arguments.
6304 # Libtool will interpret -1 as no limit whatsoever
6305 lt_cv_sys_max_cmd_len=-1;
6306 ;;
6308 cygwin* | mingw*)
6309 # On Win9x/ME, this test blows up -- it succeeds, but takes
6310 # about 5 minutes as the teststring grows exponentially.
6311 # Worse, since 9x/ME are not pre-emptively multitasking,
6312 # you end up with a "frozen" computer, even though with patience
6313 # the test eventually succeeds (with a max line length of 256k).
6314 # Instead, let's just punt: use the minimum linelength reported by
6315 # all of the supported platforms: 8192 (on NT/2K/XP).
6316 lt_cv_sys_max_cmd_len=8192;
6317 ;;
6319 amigaos*)
6320 # On AmigaOS with pdksh, this test takes hours, literally.
6321 # So we just punt and use a minimum line length of 8192.
6322 lt_cv_sys_max_cmd_len=8192;
6323 ;;
6325 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6326 # This has been around since 386BSD, at least. Likely further.
6327 if test -x /sbin/sysctl; then
6328 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6329 elif test -x /usr/sbin/sysctl; then
6330 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6331 else
6332 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6333 fi
6334 # And add a safety zone
6335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6337 ;;
6339 interix*)
6340 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6341 lt_cv_sys_max_cmd_len=196608
6342 ;;
6344 osf*)
6345 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6346 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6347 # nice to cause kernel panics so lets avoid the loop below.
6348 # First set a reasonable default.
6349 lt_cv_sys_max_cmd_len=16384
6350 #
6351 if test -x /sbin/sysconfig; then
6352 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6353 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6354 esac
6355 fi
6356 ;;
6357 sco3.2v5*)
6358 lt_cv_sys_max_cmd_len=102400
6359 ;;
6360 sysv5* | sco5v6* | sysv4.2uw2*)
6361 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6362 if test -n "$kargmax"; then
6363 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6364 else
6365 lt_cv_sys_max_cmd_len=32768
6366 fi
6367 ;;
6368 *)
6369 # If test is not a shell built-in, we'll probably end up computing a
6370 # maximum length that is only half of the actual maximum length, but
6371 # we can't tell.
6372 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6373 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6374 = "XX$teststring") >/dev/null 2>&1 &&
6375 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6376 lt_cv_sys_max_cmd_len=$new_result &&
6377 test $i != 17 # 1/2 MB should be enough
6378 do
6379 i=`expr $i + 1`
6380 teststring=$teststring$teststring
6381 done
6382 teststring=
6383 # Add a significant safety factor because C++ compilers can tack on massive
6384 # amounts of additional arguments before passing them to the linker.
6385 # It appears as though 1/2 is a usable value.
6386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6387 ;;
6388 esac
6390 fi
6392 if test -n $lt_cv_sys_max_cmd_len ; then
6393 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6394 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6395 else
6396 { echo "$as_me:$LINENO: result: none" >&5
6397 echo "${ECHO_T}none" >&6; }
6398 fi
6403 # Check for command to grab the raw symbol name followed by C symbol from nm.
6404 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6405 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6406 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6410 # These are sane defaults that work on at least a few old systems.
6411 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6413 # Character class describing NM global symbol codes.
6414 symcode='[BCDEGRST]'
6416 # Regexp to match symbols that can be accessed directly from C.
6417 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6419 # Transform an extracted symbol line into a proper C declaration
6420 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6422 # Transform an extracted symbol line into symbol name and symbol address
6423 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'"
6425 # Define system-specific variables.
6426 case $host_os in
6427 aix*)
6428 symcode='[BCDT]'
6429 ;;
6430 cygwin* | mingw* | pw32*)
6431 symcode='[ABCDGISTW]'
6432 ;;
6433 hpux*) # Its linker distinguishes data from code symbols
6434 if test "$host_cpu" = ia64; then
6435 symcode='[ABCDEGRST]'
6436 fi
6437 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6438 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'"
6439 ;;
6440 linux* | k*bsd*-gnu)
6441 if test "$host_cpu" = ia64; then
6442 symcode='[ABCDGIRSTW]'
6443 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6444 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'"
6445 fi
6446 ;;
6447 irix* | nonstopux*)
6448 symcode='[BCDEGRST]'
6449 ;;
6450 osf*)
6451 symcode='[BCDEGQRST]'
6452 ;;
6453 solaris*)
6454 symcode='[BDRT]'
6455 ;;
6456 sco3.2v5*)
6457 symcode='[DT]'
6458 ;;
6459 sysv4.2uw2*)
6460 symcode='[DT]'
6461 ;;
6462 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6463 symcode='[ABDT]'
6464 ;;
6465 sysv4)
6466 symcode='[DFNSTU]'
6467 ;;
6468 esac
6470 # Handle CRLF in mingw tool chain
6471 opt_cr=
6472 case $build_os in
6473 mingw*)
6474 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6475 ;;
6476 esac
6478 # If we're using GNU nm, then use its standard symbol codes.
6479 case `$NM -V 2>&1` in
6480 *GNU* | *'with BFD'*)
6481 symcode='[ABCDGIRSTW]' ;;
6482 esac
6484 # Try without a prefix undercore, then with it.
6485 for ac_symprfx in "" "_"; do
6487 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6488 symxfrm="\\1 $ac_symprfx\\2 \\2"
6490 # Write the raw and C identifiers.
6491 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6493 # Check to see that the pipe works correctly.
6494 pipe_works=no
6496 rm -f conftest*
6497 cat > conftest.$ac_ext <<EOF
6498 #ifdef __cplusplus
6499 extern "C" {
6500 #endif
6501 char nm_test_var;
6502 void nm_test_func(){}
6503 #ifdef __cplusplus
6504 }
6505 #endif
6506 int main(){nm_test_var='a';nm_test_func();return(0);}
6507 EOF
6509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510 (eval $ac_compile) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; then
6514 # Now try to grab the symbols.
6515 nlist=conftest.nm
6516 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6517 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } && test -s "$nlist"; then
6521 # Try sorting and uniquifying the output.
6522 if sort "$nlist" | uniq > "$nlist"T; then
6523 mv -f "$nlist"T "$nlist"
6524 else
6525 rm -f "$nlist"T
6526 fi
6528 # Make sure that we snagged all the symbols we need.
6529 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6530 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6531 cat <<EOF > conftest.$ac_ext
6532 #ifdef __cplusplus
6533 extern "C" {
6534 #endif
6536 EOF
6537 # Now generate the symbol file.
6538 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6540 cat <<EOF >> conftest.$ac_ext
6541 #if defined (__STDC__) && __STDC__
6542 # define lt_ptr_t void *
6543 #else
6544 # define lt_ptr_t char *
6545 # define const
6546 #endif
6548 /* The mapping between symbol names and symbols. */
6549 const struct {
6550 const char *name;
6551 lt_ptr_t address;
6552 }
6553 lt_preloaded_symbols[] =
6554 {
6555 EOF
6556 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6557 cat <<\EOF >> conftest.$ac_ext
6558 {0, (lt_ptr_t) 0}
6559 };
6561 #ifdef __cplusplus
6562 }
6563 #endif
6564 EOF
6565 # Now try linking the two files.
6566 mv conftest.$ac_objext conftstm.$ac_objext
6567 lt_save_LIBS="$LIBS"
6568 lt_save_CFLAGS="$CFLAGS"
6569 LIBS="conftstm.$ac_objext"
6570 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572 (eval $ac_link) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6576 pipe_works=yes
6577 fi
6578 LIBS="$lt_save_LIBS"
6579 CFLAGS="$lt_save_CFLAGS"
6580 else
6581 echo "cannot find nm_test_func in $nlist" >&5
6582 fi
6583 else
6584 echo "cannot find nm_test_var in $nlist" >&5
6585 fi
6586 else
6587 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6588 fi
6589 else
6590 echo "$progname: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6592 fi
6593 rm -f conftest* conftst*
6595 # Do not use the global_symbol_pipe unless it works.
6596 if test "$pipe_works" = yes; then
6597 break
6598 else
6599 lt_cv_sys_global_symbol_pipe=
6600 fi
6601 done
6603 fi
6605 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6606 lt_cv_sys_global_symbol_to_cdecl=
6607 fi
6608 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6609 { echo "$as_me:$LINENO: result: failed" >&5
6610 echo "${ECHO_T}failed" >&6; }
6611 else
6612 { echo "$as_me:$LINENO: result: ok" >&5
6613 echo "${ECHO_T}ok" >&6; }
6614 fi
6616 { echo "$as_me:$LINENO: checking for objdir" >&5
6617 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6618 if test "${lt_cv_objdir+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 rm -f .libs 2>/dev/null
6622 mkdir .libs 2>/dev/null
6623 if test -d .libs; then
6624 lt_cv_objdir=.libs
6625 else
6626 # MS-DOS does not allow filenames that begin with a dot.
6627 lt_cv_objdir=_libs
6628 fi
6629 rmdir .libs 2>/dev/null
6630 fi
6631 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6632 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6633 objdir=$lt_cv_objdir
6639 case $host_os in
6640 aix3*)
6641 # AIX sometimes has problems with the GCC collect2 program. For some
6642 # reason, if we set the COLLECT_NAMES environment variable, the problems
6643 # vanish in a puff of smoke.
6644 if test "X${COLLECT_NAMES+set}" != Xset; then
6645 COLLECT_NAMES=
6646 export COLLECT_NAMES
6647 fi
6648 ;;
6649 esac
6651 # Sed substitution that helps us do robust quoting. It backslashifies
6652 # metacharacters that are still active within double-quoted strings.
6653 Xsed='sed -e 1s/^X//'
6654 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6656 # Same as above, but do not quote variable references.
6657 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6659 # Sed substitution to delay expansion of an escaped shell variable in a
6660 # double_quote_subst'ed string.
6661 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6663 # Sed substitution to avoid accidental globbing in evaled expressions
6664 no_glob_subst='s/\*/\\\*/g'
6666 # Constants:
6667 rm="rm -f"
6669 # Global variables:
6670 default_ofile=libtool
6671 can_build_shared=yes
6673 # All known linkers require a `.a' archive for static linking (except MSVC,
6674 # which needs '.lib').
6675 libext=a
6676 ltmain="$ac_aux_dir/ltmain.sh"
6677 ofile="$default_ofile"
6678 with_gnu_ld="$lt_cv_prog_gnu_ld"
6680 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6682 set dummy ${ac_tool_prefix}ar; ac_word=$2
6683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685 if test "${ac_cv_prog_AR+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688 if test -n "$AR"; then
6689 ac_cv_prog_AR="$AR" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694 IFS=$as_save_IFS
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698 ac_cv_prog_AR="${ac_tool_prefix}ar"
6699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 break 2
6701 fi
6702 done
6703 done
6704 IFS=$as_save_IFS
6706 fi
6707 fi
6708 AR=$ac_cv_prog_AR
6709 if test -n "$AR"; then
6710 { echo "$as_me:$LINENO: result: $AR" >&5
6711 echo "${ECHO_T}$AR" >&6; }
6712 else
6713 { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6715 fi
6718 fi
6719 if test -z "$ac_cv_prog_AR"; then
6720 ac_ct_AR=$AR
6721 # Extract the first word of "ar", so it can be a program name with args.
6722 set dummy ar; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728 if test -n "$ac_ct_AR"; then
6729 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_ac_ct_AR="ar"
6739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6746 fi
6747 fi
6748 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6749 if test -n "$ac_ct_AR"; then
6750 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6751 echo "${ECHO_T}$ac_ct_AR" >&6; }
6752 else
6753 { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6755 fi
6757 if test "x$ac_ct_AR" = x; then
6758 AR="false"
6759 else
6760 case $cross_compiling:$ac_tool_warned in
6761 yes:)
6762 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6763 whose name does not start with the host triplet. If you think this
6764 configuration is useful to you, please write to autoconf@gnu.org." >&5
6765 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6766 whose name does not start with the host triplet. If you think this
6767 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6768 ac_tool_warned=yes ;;
6769 esac
6770 AR=$ac_ct_AR
6771 fi
6772 else
6773 AR="$ac_cv_prog_AR"
6774 fi
6776 if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_prog_RANLIB+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784 if test -n "$RANLIB"; then
6785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798 done
6799 done
6800 IFS=$as_save_IFS
6802 fi
6803 fi
6804 RANLIB=$ac_cv_prog_RANLIB
6805 if test -n "$RANLIB"; then
6806 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6807 echo "${ECHO_T}$RANLIB" >&6; }
6808 else
6809 { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6811 fi
6814 fi
6815 if test -z "$ac_cv_prog_RANLIB"; then
6816 ac_ct_RANLIB=$RANLIB
6817 # Extract the first word of "ranlib", so it can be a program name with args.
6818 set dummy ranlib; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824 if test -n "$ac_ct_RANLIB"; then
6825 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_ac_ct_RANLIB="ranlib"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6842 fi
6843 fi
6844 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6845 if test -n "$ac_ct_RANLIB"; then
6846 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6847 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6848 else
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6851 fi
6853 if test "x$ac_ct_RANLIB" = x; then
6854 RANLIB=":"
6855 else
6856 case $cross_compiling:$ac_tool_warned in
6857 yes:)
6858 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet. If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&5
6861 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet. If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866 RANLIB=$ac_ct_RANLIB
6867 fi
6868 else
6869 RANLIB="$ac_cv_prog_RANLIB"
6870 fi
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}strip; ac_word=$2
6875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6877 if test "${ac_cv_prog_STRIP+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880 if test -n "$STRIP"; then
6881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 break 2
6893 fi
6894 done
6895 done
6896 IFS=$as_save_IFS
6898 fi
6899 fi
6900 STRIP=$ac_cv_prog_STRIP
6901 if test -n "$STRIP"; then
6902 { echo "$as_me:$LINENO: result: $STRIP" >&5
6903 echo "${ECHO_T}$STRIP" >&6; }
6904 else
6905 { echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6; }
6907 fi
6910 fi
6911 if test -z "$ac_cv_prog_STRIP"; then
6912 ac_ct_STRIP=$STRIP
6913 # Extract the first word of "strip", so it can be a program name with args.
6914 set dummy strip; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 if test -n "$ac_ct_STRIP"; then
6921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_prog_ac_ct_STRIP="strip"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6938 fi
6939 fi
6940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6941 if test -n "$ac_ct_STRIP"; then
6942 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6943 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6944 else
6945 { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6947 fi
6949 if test "x$ac_ct_STRIP" = x; then
6950 STRIP=":"
6951 else
6952 case $cross_compiling:$ac_tool_warned in
6953 yes:)
6954 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6955 whose name does not start with the host triplet. If you think this
6956 configuration is useful to you, please write to autoconf@gnu.org." >&5
6957 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6958 whose name does not start with the host triplet. If you think this
6959 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6960 ac_tool_warned=yes ;;
6961 esac
6962 STRIP=$ac_ct_STRIP
6963 fi
6964 else
6965 STRIP="$ac_cv_prog_STRIP"
6966 fi
6969 old_CC="$CC"
6970 old_CFLAGS="$CFLAGS"
6972 # Set sane defaults for various variables
6973 test -z "$AR" && AR=ar
6974 test -z "$AR_FLAGS" && AR_FLAGS=cru
6975 test -z "$AS" && AS=as
6976 test -z "$CC" && CC=cc
6977 test -z "$LTCC" && LTCC=$CC
6978 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6979 test -z "$DLLTOOL" && DLLTOOL=dlltool
6980 test -z "$LD" && LD=ld
6981 test -z "$LN_S" && LN_S="ln -s"
6982 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6983 test -z "$NM" && NM=nm
6984 test -z "$SED" && SED=sed
6985 test -z "$OBJDUMP" && OBJDUMP=objdump
6986 test -z "$RANLIB" && RANLIB=:
6987 test -z "$STRIP" && STRIP=:
6988 test -z "$ac_objext" && ac_objext=o
6990 # Determine commands to create old-style static archives.
6991 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6992 old_postinstall_cmds='chmod 644 $oldlib'
6993 old_postuninstall_cmds=
6995 if test -n "$RANLIB"; then
6996 case $host_os in
6997 openbsd*)
6998 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6999 ;;
7000 *)
7001 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7002 ;;
7003 esac
7004 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7005 fi
7007 for cc_temp in $compiler""; do
7008 case $cc_temp in
7009 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7010 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7011 \-*) ;;
7012 *) break;;
7013 esac
7014 done
7015 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7018 # Only perform the check for file, if the check method requires it
7019 case $deplibs_check_method in
7020 file_magic*)
7021 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7022 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7023 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7024 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027 case $MAGIC_CMD in
7028 [\\/*] | ?:[\\/]*)
7029 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7030 ;;
7031 *)
7032 lt_save_MAGIC_CMD="$MAGIC_CMD"
7033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7034 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7035 for ac_dir in $ac_dummy; do
7036 IFS="$lt_save_ifs"
7037 test -z "$ac_dir" && ac_dir=.
7038 if test -f $ac_dir/${ac_tool_prefix}file; then
7039 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7040 if test -n "$file_magic_test_file"; then
7041 case $deplibs_check_method in
7042 "file_magic "*)
7043 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7044 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7045 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7046 $EGREP "$file_magic_regex" > /dev/null; then
7047 :
7048 else
7049 cat <<EOF 1>&2
7051 *** Warning: the command libtool uses to detect shared libraries,
7052 *** $file_magic_cmd, produces output that libtool cannot recognize.
7053 *** The result is that libtool may fail to recognize shared libraries
7054 *** as such. This will affect the creation of libtool libraries that
7055 *** depend on shared libraries, but programs linked with such libtool
7056 *** libraries will work regardless of this problem. Nevertheless, you
7057 *** may want to report the problem to your system manager and/or to
7058 *** bug-libtool@gnu.org
7060 EOF
7061 fi ;;
7062 esac
7063 fi
7064 break
7065 fi
7066 done
7067 IFS="$lt_save_ifs"
7068 MAGIC_CMD="$lt_save_MAGIC_CMD"
7069 ;;
7070 esac
7071 fi
7073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7074 if test -n "$MAGIC_CMD"; then
7075 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7076 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7077 else
7078 { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7080 fi
7082 if test -z "$lt_cv_path_MAGIC_CMD"; then
7083 if test -n "$ac_tool_prefix"; then
7084 { echo "$as_me:$LINENO: checking for file" >&5
7085 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7086 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089 case $MAGIC_CMD in
7090 [\\/*] | ?:[\\/]*)
7091 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7092 ;;
7093 *)
7094 lt_save_MAGIC_CMD="$MAGIC_CMD"
7095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7096 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7097 for ac_dir in $ac_dummy; do
7098 IFS="$lt_save_ifs"
7099 test -z "$ac_dir" && ac_dir=.
7100 if test -f $ac_dir/file; then
7101 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7102 if test -n "$file_magic_test_file"; then
7103 case $deplibs_check_method in
7104 "file_magic "*)
7105 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7107 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7108 $EGREP "$file_magic_regex" > /dev/null; then
7109 :
7110 else
7111 cat <<EOF 1>&2
7113 *** Warning: the command libtool uses to detect shared libraries,
7114 *** $file_magic_cmd, produces output that libtool cannot recognize.
7115 *** The result is that libtool may fail to recognize shared libraries
7116 *** as such. This will affect the creation of libtool libraries that
7117 *** depend on shared libraries, but programs linked with such libtool
7118 *** libraries will work regardless of this problem. Nevertheless, you
7119 *** may want to report the problem to your system manager and/or to
7120 *** bug-libtool@gnu.org
7122 EOF
7123 fi ;;
7124 esac
7125 fi
7126 break
7127 fi
7128 done
7129 IFS="$lt_save_ifs"
7130 MAGIC_CMD="$lt_save_MAGIC_CMD"
7131 ;;
7132 esac
7133 fi
7135 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7136 if test -n "$MAGIC_CMD"; then
7137 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7138 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7139 else
7140 { echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6; }
7142 fi
7144 else
7145 MAGIC_CMD=:
7146 fi
7147 fi
7149 fi
7150 ;;
7151 esac
7153 enable_dlopen=no
7154 enable_win32_dll=no
7156 # Check whether --enable-libtool-lock was given.
7157 if test "${enable_libtool_lock+set}" = set; then
7158 enableval=$enable_libtool_lock;
7159 fi
7161 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7164 # Check whether --with-pic was given.
7165 if test "${with_pic+set}" = set; then
7166 withval=$with_pic; pic_mode="$withval"
7167 else
7168 pic_mode=default
7169 fi
7171 test -z "$pic_mode" && pic_mode=default
7173 # Use C for the default configuration in the libtool script
7174 tagname=
7175 lt_save_CC="$CC"
7176 ac_ext=c
7177 ac_cpp='$CPP $CPPFLAGS'
7178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7183 # Source file extension for C test sources.
7184 ac_ext=c
7186 # Object file extension for compiled C test sources.
7187 objext=o
7188 objext=$objext
7190 # Code to be used in simple compile tests
7191 lt_simple_compile_test_code="int some_variable = 0;\n"
7193 # Code to be used in simple link tests
7194 lt_simple_link_test_code='int main(){return(0);}\n'
7197 # If no C compiler was specified, use CC.
7198 LTCC=${LTCC-"$CC"}
7200 # If no C compiler flags were specified, use CFLAGS.
7201 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7203 # Allow CC to be a program name with arguments.
7204 compiler=$CC
7207 # save warnings/boilerplate of simple test code
7208 ac_outfile=conftest.$ac_objext
7209 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7210 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7211 _lt_compiler_boilerplate=`cat conftest.err`
7212 $rm conftest*
7214 ac_outfile=conftest.$ac_objext
7215 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7216 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7217 _lt_linker_boilerplate=`cat conftest.err`
7218 $rm conftest*
7222 lt_prog_compiler_no_builtin_flag=
7224 if test "$GCC" = yes; then
7225 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7228 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7229 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7230 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233 lt_cv_prog_compiler_rtti_exceptions=no
7234 ac_outfile=conftest.$ac_objext
7235 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7236 lt_compiler_flag="-fno-rtti -fno-exceptions"
7237 # Insert the option either (1) after the last *FLAGS variable, or
7238 # (2) before a word containing "conftest.", or (3) at the end.
7239 # Note that $ac_compile itself does not contain backslashes and begins
7240 # with a dollar sign (not a hyphen), so the echo should work correctly.
7241 # The option is referenced via a variable to avoid confusing sed.
7242 lt_compile=`echo "$ac_compile" | $SED \
7243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7245 -e 's:$: $lt_compiler_flag:'`
7246 (eval echo "\"\$as_me:7246: $lt_compile\"" >&5)
7247 (eval "$lt_compile" 2>conftest.err)
7248 ac_status=$?
7249 cat conftest.err >&5
7250 echo "$as_me:7250: \$? = $ac_status" >&5
7251 if (exit $ac_status) && test -s "$ac_outfile"; then
7252 # The compiler can only warn and ignore the option if not recognized
7253 # So say no if there are warnings other than the usual output.
7254 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7256 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7257 lt_cv_prog_compiler_rtti_exceptions=yes
7258 fi
7259 fi
7260 $rm conftest*
7262 fi
7263 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7264 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7266 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7267 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7268 else
7269 :
7270 fi
7272 fi
7274 lt_prog_compiler_wl=
7275 lt_prog_compiler_pic=
7276 lt_prog_compiler_static=
7278 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7279 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7281 if test "$GCC" = yes; then
7282 lt_prog_compiler_wl='-Wl,'
7283 lt_prog_compiler_static='-static'
7285 case $host_os in
7286 aix*)
7287 # All AIX code is PIC.
7288 if test "$host_cpu" = ia64; then
7289 # AIX 5 now supports IA64 processor
7290 lt_prog_compiler_static='-Bstatic'
7291 fi
7292 ;;
7294 amigaos*)
7295 # FIXME: we need at least 68020 code to build shared libraries, but
7296 # adding the `-m68020' flag to GCC prevents building anything better,
7297 # like `-m68040'.
7298 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7299 ;;
7301 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7302 # PIC is the default for these OSes.
7303 ;;
7305 mingw* | pw32* | os2*)
7306 # This hack is so that the source file can tell whether it is being
7307 # built for inclusion in a dll (and should export symbols for example).
7308 lt_prog_compiler_pic='-DDLL_EXPORT'
7309 ;;
7311 darwin* | rhapsody*)
7312 # PIC is the default on this platform
7313 # Common symbols not allowed in MH_DYLIB files
7314 lt_prog_compiler_pic='-fno-common'
7315 ;;
7317 interix3*)
7318 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7319 # Instead, we relocate shared libraries at runtime.
7320 ;;
7322 msdosdjgpp*)
7323 # Just because we use GCC doesn't mean we suddenly get shared libraries
7324 # on systems that don't support them.
7325 lt_prog_compiler_can_build_shared=no
7326 enable_shared=no
7327 ;;
7329 sysv4*MP*)
7330 if test -d /usr/nec; then
7331 lt_prog_compiler_pic=-Kconform_pic
7332 fi
7333 ;;
7335 hpux*)
7336 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7337 # not for PA HP-UX.
7338 case $host_cpu in
7339 hppa*64*|ia64*)
7340 # +Z the default
7341 ;;
7342 *)
7343 lt_prog_compiler_pic='-fPIC'
7344 ;;
7345 esac
7346 ;;
7348 *)
7349 lt_prog_compiler_pic='-fPIC'
7350 ;;
7351 esac
7352 else
7353 # PORTME Check for flag to pass linker flags through the system compiler.
7354 case $host_os in
7355 aix*)
7356 lt_prog_compiler_wl='-Wl,'
7357 if test "$host_cpu" = ia64; then
7358 # AIX 5 now supports IA64 processor
7359 lt_prog_compiler_static='-Bstatic'
7360 else
7361 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7362 fi
7363 ;;
7364 darwin*)
7365 # PIC is the default on this platform
7366 # Common symbols not allowed in MH_DYLIB files
7367 case $cc_basename in
7368 xlc*)
7369 lt_prog_compiler_pic='-qnocommon'
7370 lt_prog_compiler_wl='-Wl,'
7371 ;;
7372 esac
7373 ;;
7375 mingw* | pw32* | os2*)
7376 # This hack is so that the source file can tell whether it is being
7377 # built for inclusion in a dll (and should export symbols for example).
7378 lt_prog_compiler_pic='-DDLL_EXPORT'
7379 ;;
7381 hpux9* | hpux10* | hpux11*)
7382 lt_prog_compiler_wl='-Wl,'
7383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7384 # not for PA HP-UX.
7385 case $host_cpu in
7386 hppa*64*|ia64*)
7387 # +Z the default
7388 ;;
7389 *)
7390 lt_prog_compiler_pic='+Z'
7391 ;;
7392 esac
7393 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7394 lt_prog_compiler_static='${wl}-a ${wl}archive'
7395 ;;
7397 irix5* | irix6* | nonstopux*)
7398 lt_prog_compiler_wl='-Wl,'
7399 # PIC (with -KPIC) is the default.
7400 lt_prog_compiler_static='-non_shared'
7401 ;;
7403 newsos6)
7404 lt_prog_compiler_pic='-KPIC'
7405 lt_prog_compiler_static='-Bstatic'
7406 ;;
7408 linux* | k*bsd*-gnu)
7409 case $cc_basename in
7410 icc* | ecc*)
7411 lt_prog_compiler_wl='-Wl,'
7412 lt_prog_compiler_pic='-KPIC'
7413 lt_prog_compiler_static='-static'
7414 ;;
7415 pgcc* | pgf77* | pgf90* | pgf95*)
7416 # Portland Group compilers (*not* the Pentium gcc compiler,
7417 # which looks to be a dead project)
7418 lt_prog_compiler_wl='-Wl,'
7419 lt_prog_compiler_pic='-fpic'
7420 lt_prog_compiler_static='-Bstatic'
7421 ;;
7422 ccc*)
7423 lt_prog_compiler_wl='-Wl,'
7424 # All Alpha code is PIC.
7425 lt_prog_compiler_static='-non_shared'
7426 ;;
7427 esac
7428 ;;
7430 osf3* | osf4* | osf5*)
7431 lt_prog_compiler_wl='-Wl,'
7432 # All OSF/1 code is PIC.
7433 lt_prog_compiler_static='-non_shared'
7434 ;;
7436 solaris*)
7437 lt_prog_compiler_pic='-KPIC'
7438 lt_prog_compiler_static='-Bstatic'
7439 case $cc_basename in
7440 f77* | f90* | f95*)
7441 lt_prog_compiler_wl='-Qoption ld ';;
7442 *)
7443 lt_prog_compiler_wl='-Wl,';;
7444 esac
7445 ;;
7447 sunos4*)
7448 lt_prog_compiler_wl='-Qoption ld '
7449 lt_prog_compiler_pic='-PIC'
7450 lt_prog_compiler_static='-Bstatic'
7451 ;;
7453 sysv4 | sysv4.2uw2* | sysv4.3*)
7454 lt_prog_compiler_wl='-Wl,'
7455 lt_prog_compiler_pic='-KPIC'
7456 lt_prog_compiler_static='-Bstatic'
7457 ;;
7459 sysv4*MP*)
7460 if test -d /usr/nec ;then
7461 lt_prog_compiler_pic='-Kconform_pic'
7462 lt_prog_compiler_static='-Bstatic'
7463 fi
7464 ;;
7466 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7467 lt_prog_compiler_wl='-Wl,'
7468 lt_prog_compiler_pic='-KPIC'
7469 lt_prog_compiler_static='-Bstatic'
7470 ;;
7472 unicos*)
7473 lt_prog_compiler_wl='-Wl,'
7474 lt_prog_compiler_can_build_shared=no
7475 ;;
7477 uts4*)
7478 lt_prog_compiler_pic='-pic'
7479 lt_prog_compiler_static='-Bstatic'
7480 ;;
7482 *)
7483 lt_prog_compiler_can_build_shared=no
7484 ;;
7485 esac
7486 fi
7488 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7489 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7491 #
7492 # Check to make sure the PIC flag actually works.
7493 #
7494 if test -n "$lt_prog_compiler_pic"; then
7496 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7497 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7498 if test "${lt_prog_compiler_pic_works+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 lt_prog_compiler_pic_works=no
7502 ac_outfile=conftest.$ac_objext
7503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7504 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7505 # Insert the option either (1) after the last *FLAGS variable, or
7506 # (2) before a word containing "conftest.", or (3) at the end.
7507 # Note that $ac_compile itself does not contain backslashes and begins
7508 # with a dollar sign (not a hyphen), so the echo should work correctly.
7509 # The option is referenced via a variable to avoid confusing sed.
7510 lt_compile=`echo "$ac_compile" | $SED \
7511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7513 -e 's:$: $lt_compiler_flag:'`
7514 (eval echo "\"\$as_me:7514: $lt_compile\"" >&5)
7515 (eval "$lt_compile" 2>conftest.err)
7516 ac_status=$?
7517 cat conftest.err >&5
7518 echo "$as_me:7518: \$? = $ac_status" >&5
7519 if (exit $ac_status) && test -s "$ac_outfile"; then
7520 # The compiler can only warn and ignore the option if not recognized
7521 # So say no if there are warnings other than the usual output.
7522 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7524 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7525 lt_prog_compiler_pic_works=yes
7526 fi
7527 fi
7528 $rm conftest*
7530 fi
7531 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7532 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7534 if test x"$lt_prog_compiler_pic_works" = xyes; then
7535 case $lt_prog_compiler_pic in
7536 "" | " "*) ;;
7537 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7538 esac
7539 else
7540 lt_prog_compiler_pic=
7541 lt_prog_compiler_can_build_shared=no
7542 fi
7544 fi
7545 case $host_os in
7546 # For platforms which do not support PIC, -DPIC is meaningless:
7547 *djgpp*)
7548 lt_prog_compiler_pic=
7549 ;;
7550 *)
7551 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7552 ;;
7553 esac
7555 #
7556 # Check to make sure the static flag actually works.
7557 #
7558 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7559 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7560 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7561 if test "${lt_prog_compiler_static_works+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564 lt_prog_compiler_static_works=no
7565 save_LDFLAGS="$LDFLAGS"
7566 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7567 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7569 # The linker can only warn and ignore the option if not recognized
7570 # So say no if there are warnings
7571 if test -s conftest.err; then
7572 # Append any errors to the config.log.
7573 cat conftest.err 1>&5
7574 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7576 if diff conftest.exp conftest.er2 >/dev/null; then
7577 lt_prog_compiler_static_works=yes
7578 fi
7579 else
7580 lt_prog_compiler_static_works=yes
7581 fi
7582 fi
7583 $rm conftest*
7584 LDFLAGS="$save_LDFLAGS"
7586 fi
7587 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7588 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7590 if test x"$lt_prog_compiler_static_works" = xyes; then
7591 :
7592 else
7593 lt_prog_compiler_static=
7594 fi
7597 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7598 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7599 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602 lt_cv_prog_compiler_c_o=no
7603 $rm -r conftest 2>/dev/null
7604 mkdir conftest
7605 cd conftest
7606 mkdir out
7607 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7609 lt_compiler_flag="-o out/conftest2.$ac_objext"
7610 # Insert the option either (1) after the last *FLAGS variable, or
7611 # (2) before a word containing "conftest.", or (3) at the end.
7612 # Note that $ac_compile itself does not contain backslashes and begins
7613 # with a dollar sign (not a hyphen), so the echo should work correctly.
7614 lt_compile=`echo "$ac_compile" | $SED \
7615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7617 -e 's:$: $lt_compiler_flag:'`
7618 (eval echo "\"\$as_me:7618: $lt_compile\"" >&5)
7619 (eval "$lt_compile" 2>out/conftest.err)
7620 ac_status=$?
7621 cat out/conftest.err >&5
7622 echo "$as_me:7622: \$? = $ac_status" >&5
7623 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7624 then
7625 # The compiler can only warn and ignore the option if not recognized
7626 # So say no if there are warnings
7627 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7630 lt_cv_prog_compiler_c_o=yes
7631 fi
7632 fi
7633 chmod u+w . 2>&5
7634 $rm conftest*
7635 # SGI C++ compiler will create directory out/ii_files/ for
7636 # template instantiation
7637 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7638 $rm out/* && rmdir out
7639 cd ..
7640 rmdir conftest
7641 $rm conftest*
7643 fi
7644 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7645 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7648 hard_links="nottested"
7649 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7650 # do not overwrite the value of need_locks provided by the user
7651 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7652 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7653 hard_links=yes
7654 $rm conftest*
7655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7656 touch conftest.a
7657 ln conftest.a conftest.b 2>&5 || hard_links=no
7658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7659 { echo "$as_me:$LINENO: result: $hard_links" >&5
7660 echo "${ECHO_T}$hard_links" >&6; }
7661 if test "$hard_links" = no; then
7662 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7663 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7664 need_locks=warn
7665 fi
7666 else
7667 need_locks=no
7668 fi
7670 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7671 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7673 runpath_var=
7674 allow_undefined_flag=
7675 enable_shared_with_static_runtimes=no
7676 archive_cmds=
7677 archive_expsym_cmds=
7678 old_archive_From_new_cmds=
7679 old_archive_from_expsyms_cmds=
7680 export_dynamic_flag_spec=
7681 whole_archive_flag_spec=
7682 thread_safe_flag_spec=
7683 hardcode_libdir_flag_spec=
7684 hardcode_libdir_flag_spec_ld=
7685 hardcode_libdir_separator=
7686 hardcode_direct=no
7687 hardcode_minus_L=no
7688 hardcode_shlibpath_var=unsupported
7689 link_all_deplibs=unknown
7690 hardcode_automatic=no
7691 module_cmds=
7692 module_expsym_cmds=
7693 always_export_symbols=no
7694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7695 # include_expsyms should be a list of space-separated symbols to be *always*
7696 # included in the symbol list
7697 include_expsyms=
7698 # exclude_expsyms can be an extended regexp of symbols to exclude
7699 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7700 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7701 # as well as any symbol that contains `d'.
7702 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7703 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7704 # platforms (ab)use it in PIC code, but their linkers get confused if
7705 # the symbol is explicitly referenced. Since portable code cannot
7706 # rely on this symbol name, it's probably fine to never include it in
7707 # preloaded symbol tables.
7708 extract_expsyms_cmds=
7709 # Just being paranoid about ensuring that cc_basename is set.
7710 for cc_temp in $compiler""; do
7711 case $cc_temp in
7712 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7713 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7714 \-*) ;;
7715 *) break;;
7716 esac
7717 done
7718 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7720 case $host_os in
7721 cygwin* | mingw* | pw32*)
7722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7723 # When not using gcc, we currently assume that we are using
7724 # Microsoft Visual C++.
7725 if test "$GCC" != yes; then
7726 with_gnu_ld=no
7727 fi
7728 ;;
7729 interix*)
7730 # we just hope/assume this is gcc and not c89 (= MSVC++)
7731 with_gnu_ld=yes
7732 ;;
7733 openbsd*)
7734 with_gnu_ld=no
7735 ;;
7736 esac
7738 ld_shlibs=yes
7739 if test "$with_gnu_ld" = yes; then
7740 # If archive_cmds runs LD, not CC, wlarc should be empty
7741 wlarc='${wl}'
7743 # Set some defaults for GNU ld with shared library support. These
7744 # are reset later if shared libraries are not supported. Putting them
7745 # here allows them to be overridden if necessary.
7746 runpath_var=LD_RUN_PATH
7747 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7748 export_dynamic_flag_spec='${wl}--export-dynamic'
7749 # ancient GNU ld didn't support --whole-archive et. al.
7750 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7751 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7752 else
7753 whole_archive_flag_spec=
7754 fi
7755 supports_anon_versioning=no
7756 case `$LD -v 2>/dev/null` in
7757 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7758 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7759 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7760 *\ 2.11.*) ;; # other 2.11 versions
7761 *) supports_anon_versioning=yes ;;
7762 esac
7764 # See if GNU ld supports shared libraries.
7765 case $host_os in
7766 aix3* | aix4* | aix5*)
7767 # On AIX/PPC, the GNU linker is very broken
7768 if test "$host_cpu" != ia64; then
7769 ld_shlibs=no
7770 cat <<EOF 1>&2
7772 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7773 *** to be unable to reliably create shared libraries on AIX.
7774 *** Therefore, libtool is disabling shared libraries support. If you
7775 *** really care for shared libraries, you may want to modify your PATH
7776 *** so that a non-GNU linker is found, and then restart.
7778 EOF
7779 fi
7780 ;;
7782 amigaos*)
7783 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)'
7784 hardcode_libdir_flag_spec='-L$libdir'
7785 hardcode_minus_L=yes
7787 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7788 # that the semantics of dynamic libraries on AmigaOS, at least up
7789 # to version 4, is to share data among multiple programs linked
7790 # with the same dynamic library. Since this doesn't match the
7791 # behavior of shared libraries on other platforms, we can't use
7792 # them.
7793 ld_shlibs=no
7794 ;;
7796 beos*)
7797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7798 allow_undefined_flag=unsupported
7799 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7800 # support --undefined. This deserves some investigation. FIXME
7801 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7802 else
7803 ld_shlibs=no
7804 fi
7805 ;;
7807 cygwin* | mingw* | pw32*)
7808 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7809 # as there is no search path for DLLs.
7810 hardcode_libdir_flag_spec='-L$libdir'
7811 allow_undefined_flag=unsupported
7812 always_export_symbols=no
7813 enable_shared_with_static_runtimes=yes
7814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7816 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7818 # If the export-symbols file already is a .def file (1st line
7819 # is EXPORTS), use it as is; otherwise, prepend...
7820 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7821 cp $export_symbols $output_objdir/$soname.def;
7822 else
7823 echo EXPORTS > $output_objdir/$soname.def;
7824 cat $export_symbols >> $output_objdir/$soname.def;
7825 fi~
7826 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7827 else
7828 ld_shlibs=no
7829 fi
7830 ;;
7832 interix3*)
7833 hardcode_direct=no
7834 hardcode_shlibpath_var=no
7835 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7836 export_dynamic_flag_spec='${wl}-E'
7837 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7838 # Instead, shared libraries are loaded at an image base (0x10000000 by
7839 # default) and relocated if they conflict, which is a slow very memory
7840 # consuming and fragmenting process. To avoid this, we pick a random,
7841 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7842 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7843 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7844 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'
7845 ;;
7847 linux* | k*bsd*-gnu)
7848 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7849 tmp_addflag=
7850 case $cc_basename,$host_cpu in
7851 pgcc*) # Portland Group C compiler
7852 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'
7853 tmp_addflag=' $pic_flag'
7854 ;;
7855 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7856 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'
7857 tmp_addflag=' $pic_flag -Mnomain' ;;
7858 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7859 tmp_addflag=' -i_dynamic' ;;
7860 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7861 tmp_addflag=' -i_dynamic -nofor_main' ;;
7862 ifc* | ifort*) # Intel Fortran compiler
7863 tmp_addflag=' -nofor_main' ;;
7864 esac
7865 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7867 if test $supports_anon_versioning = yes; then
7868 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7870 $echo "local: *; };" >> $output_objdir/$libname.ver~
7871 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7872 fi
7873 link_all_deplibs=no
7874 else
7875 ld_shlibs=no
7876 fi
7877 ;;
7879 netbsd* | netbsdelf*-gnu)
7880 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7881 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7882 wlarc=
7883 else
7884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7885 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7886 fi
7887 ;;
7889 solaris*)
7890 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7891 ld_shlibs=no
7892 cat <<EOF 1>&2
7894 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7895 *** create shared libraries on Solaris systems. Therefore, libtool
7896 *** is disabling shared libraries support. We urge you to upgrade GNU
7897 *** binutils to release 2.9.1 or newer. Another option is to modify
7898 *** your PATH or compiler configuration so that the native linker is
7899 *** used, and then restart.
7901 EOF
7902 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7904 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7905 else
7906 ld_shlibs=no
7907 fi
7908 ;;
7910 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7911 case `$LD -v 2>&1` in
7912 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7913 ld_shlibs=no
7914 cat <<_LT_EOF 1>&2
7916 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7917 *** reliably create shared libraries on SCO systems. Therefore, libtool
7918 *** is disabling shared libraries support. We urge you to upgrade GNU
7919 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7920 *** your PATH or compiler configuration so that the native linker is
7921 *** used, and then restart.
7923 _LT_EOF
7924 ;;
7925 *)
7926 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7927 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7930 else
7931 ld_shlibs=no
7932 fi
7933 ;;
7934 esac
7935 ;;
7937 sunos4*)
7938 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7939 wlarc=
7940 hardcode_direct=yes
7941 hardcode_shlibpath_var=no
7942 ;;
7944 *)
7945 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7947 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7948 else
7949 ld_shlibs=no
7950 fi
7951 ;;
7952 esac
7954 if test "$ld_shlibs" = no; then
7955 runpath_var=
7956 hardcode_libdir_flag_spec=
7957 export_dynamic_flag_spec=
7958 whole_archive_flag_spec=
7959 fi
7960 else
7961 # PORTME fill in a description of your system's linker (not GNU ld)
7962 case $host_os in
7963 aix3*)
7964 allow_undefined_flag=unsupported
7965 always_export_symbols=yes
7966 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'
7967 # Note: this linker hardcodes the directories in LIBPATH if there
7968 # are no directories specified by -L.
7969 hardcode_minus_L=yes
7970 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7971 # Neither direct hardcoding nor static linking is supported with a
7972 # broken collect2.
7973 hardcode_direct=unsupported
7974 fi
7975 ;;
7977 aix4* | aix5*)
7978 if test "$host_cpu" = ia64; then
7979 # On IA64, the linker does run time linking by default, so we don't
7980 # have to do anything special.
7981 aix_use_runtimelinking=no
7982 exp_sym_flag='-Bexport'
7983 no_entry_flag=""
7984 else
7985 # If we're using GNU nm, then we don't want the "-C" option.
7986 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7987 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7988 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'
7989 else
7990 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'
7991 fi
7992 aix_use_runtimelinking=no
7994 # Test if we are trying to use run time linking or normal
7995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7996 # need to do runtime linking.
7997 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7998 for ld_flag in $LDFLAGS; do
7999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8000 aix_use_runtimelinking=yes
8001 break
8002 fi
8003 done
8004 ;;
8005 esac
8007 exp_sym_flag='-bexport'
8008 no_entry_flag='-bnoentry'
8009 fi
8011 # When large executables or shared objects are built, AIX ld can
8012 # have problems creating the table of contents. If linking a library
8013 # or program results in "error TOC overflow" add -mminimal-toc to
8014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8017 archive_cmds=''
8018 hardcode_direct=yes
8019 hardcode_libdir_separator=':'
8020 link_all_deplibs=yes
8022 if test "$GCC" = yes; then
8023 case $host_os in aix4.[012]|aix4.[012].*)
8024 # We only want to do this on AIX 4.2 and lower, the check
8025 # below for broken collect2 doesn't work under 4.3+
8026 collect2name=`${CC} -print-prog-name=collect2`
8027 if test -f "$collect2name" && \
8028 strings "$collect2name" | grep resolve_lib_name >/dev/null
8029 then
8030 # We have reworked collect2
8031 hardcode_direct=yes
8032 else
8033 # We have old collect2
8034 hardcode_direct=unsupported
8035 # It fails to find uninstalled libraries when the uninstalled
8036 # path is not listed in the libpath. Setting hardcode_minus_L
8037 # to unsupported forces relinking
8038 hardcode_minus_L=yes
8039 hardcode_libdir_flag_spec='-L$libdir'
8040 hardcode_libdir_separator=
8041 fi
8042 ;;
8043 esac
8044 shared_flag='-shared'
8045 if test "$aix_use_runtimelinking" = yes; then
8046 shared_flag="$shared_flag "'${wl}-G'
8047 fi
8048 else
8049 # not using gcc
8050 if test "$host_cpu" = ia64; then
8051 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8052 # chokes on -Wl,-G. The following line is correct:
8053 shared_flag='-G'
8054 else
8055 if test "$aix_use_runtimelinking" = yes; then
8056 shared_flag='${wl}-G'
8057 else
8058 shared_flag='${wl}-bM:SRE'
8059 fi
8060 fi
8061 fi
8063 # It seems that -bexpall does not export symbols beginning with
8064 # underscore (_), so it is better to generate a list of symbols to export.
8065 always_export_symbols=yes
8066 if test "$aix_use_runtimelinking" = yes; then
8067 # Warning - without using the other runtime loading flags (-brtl),
8068 # -berok will link without error, but may produce a broken library.
8069 allow_undefined_flag='-berok'
8070 # Determine the default libpath from the value encoded in an empty executable.
8071 cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h. */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8078 int
8079 main ()
8080 {
8082 ;
8083 return 0;
8084 }
8085 _ACEOF
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (ac_try="$ac_link"
8088 case "(($ac_try" in
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8091 esac
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093 (eval "$ac_link") 2>conftest.er1
8094 ac_status=$?
8095 grep -v '^ *+' conftest.er1 >conftest.err
8096 rm -f conftest.er1
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } && {
8100 test -z "$ac_c_werror_flag" ||
8101 test ! -s conftest.err
8102 } && test -s conftest$ac_exeext &&
8103 $as_test_x conftest$ac_exeext; then
8105 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8106 }'`
8107 # Check for a 64-bit object if we didn't find anything.
8108 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; }
8109 }'`; fi
8110 else
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8115 fi
8117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8118 conftest$ac_exeext conftest.$ac_ext
8119 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8121 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8122 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"
8123 else
8124 if test "$host_cpu" = ia64; then
8125 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8126 allow_undefined_flag="-z nodefs"
8127 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"
8128 else
8129 # Determine the default libpath from the value encoded in an empty executable.
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h. */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8137 int
8138 main ()
8139 {
8141 ;
8142 return 0;
8143 }
8144 _ACEOF
8145 rm -f conftest.$ac_objext conftest$ac_exeext
8146 if { (ac_try="$ac_link"
8147 case "(($ac_try" in
8148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149 *) ac_try_echo=$ac_try;;
8150 esac
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152 (eval "$ac_link") 2>conftest.er1
8153 ac_status=$?
8154 grep -v '^ *+' conftest.er1 >conftest.err
8155 rm -f conftest.er1
8156 cat conftest.err >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } && {
8159 test -z "$ac_c_werror_flag" ||
8160 test ! -s conftest.err
8161 } && test -s conftest$ac_exeext &&
8162 $as_test_x conftest$ac_exeext; then
8164 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8165 }'`
8166 # Check for a 64-bit object if we didn't find anything.
8167 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; }
8168 }'`; fi
8169 else
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8174 fi
8176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8177 conftest$ac_exeext conftest.$ac_ext
8178 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8180 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8181 # Warning - without using the other run time loading flags,
8182 # -berok will link without error, but may produce a broken library.
8183 no_undefined_flag=' ${wl}-bernotok'
8184 allow_undefined_flag=' ${wl}-berok'
8185 # Exported symbols can be pulled into shared objects from archives
8186 whole_archive_flag_spec='$convenience'
8187 archive_cmds_need_lc=yes
8188 # This is similar to how AIX traditionally builds its shared libraries.
8189 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'
8190 fi
8191 fi
8192 ;;
8194 amigaos*)
8195 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)'
8196 hardcode_libdir_flag_spec='-L$libdir'
8197 hardcode_minus_L=yes
8198 # see comment about different semantics on the GNU ld section
8199 ld_shlibs=no
8200 ;;
8202 bsdi[45]*)
8203 export_dynamic_flag_spec=-rdynamic
8204 ;;
8206 cygwin* | mingw* | pw32*)
8207 # When not using gcc, we currently assume that we are using
8208 # Microsoft Visual C++.
8209 # hardcode_libdir_flag_spec is actually meaningless, as there is
8210 # no search path for DLLs.
8211 hardcode_libdir_flag_spec=' '
8212 allow_undefined_flag=unsupported
8213 # Tell ltmain to make .lib files, not .a files.
8214 libext=lib
8215 # Tell ltmain to make .dll files, not .so files.
8216 shrext_cmds=".dll"
8217 # FIXME: Setting linknames here is a bad hack.
8218 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8219 # The linker will automatically build a .lib file if we build a DLL.
8220 old_archive_From_new_cmds='true'
8221 # FIXME: Should let the user specify the lib program.
8222 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8223 fix_srcfile_path='`cygpath -w "$srcfile"`'
8224 enable_shared_with_static_runtimes=yes
8225 ;;
8227 darwin* | rhapsody*)
8228 case $host_os in
8229 rhapsody* | darwin1.[012])
8230 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8231 ;;
8232 *) # Darwin 1.3 on
8233 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8234 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8235 else
8236 case ${MACOSX_DEPLOYMENT_TARGET} in
8237 10.[012])
8238 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8239 ;;
8240 10.*)
8241 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8242 ;;
8243 esac
8244 fi
8245 ;;
8246 esac
8247 archive_cmds_need_lc=no
8248 hardcode_direct=no
8249 hardcode_automatic=yes
8250 hardcode_shlibpath_var=unsupported
8251 whole_archive_flag_spec=''
8252 link_all_deplibs=yes
8253 if test "$GCC" = yes ; then
8254 output_verbose_link_cmd='echo'
8255 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8256 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8258 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}'
8259 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}'
8260 else
8261 case $cc_basename in
8262 xlc*)
8263 output_verbose_link_cmd='echo'
8264 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8265 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8266 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8267 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}'
8268 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}'
8269 ;;
8270 *)
8271 ld_shlibs=no
8272 ;;
8273 esac
8274 fi
8275 ;;
8277 dgux*)
8278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8279 hardcode_libdir_flag_spec='-L$libdir'
8280 hardcode_shlibpath_var=no
8281 ;;
8283 freebsd1*)
8284 ld_shlibs=no
8285 ;;
8287 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8288 # support. Future versions do this automatically, but an explicit c++rt0.o
8289 # does not break anything, and helps significantly (at the cost of a little
8290 # extra space).
8291 freebsd2.2*)
8292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8293 hardcode_libdir_flag_spec='-R$libdir'
8294 hardcode_direct=yes
8295 hardcode_shlibpath_var=no
8296 ;;
8298 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8299 freebsd2*)
8300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8301 hardcode_direct=yes
8302 hardcode_minus_L=yes
8303 hardcode_shlibpath_var=no
8304 ;;
8306 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8307 freebsd* | dragonfly*)
8308 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8309 hardcode_libdir_flag_spec='-R$libdir'
8310 hardcode_direct=yes
8311 hardcode_shlibpath_var=no
8312 ;;
8314 hpux9*)
8315 if test "$GCC" = yes; then
8316 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'
8317 else
8318 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'
8319 fi
8320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8321 hardcode_libdir_separator=:
8322 hardcode_direct=yes
8324 # hardcode_minus_L: Not really in the search PATH,
8325 # but as the default location of the library.
8326 hardcode_minus_L=yes
8327 export_dynamic_flag_spec='${wl}-E'
8328 ;;
8330 hpux10*)
8331 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8332 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8333 else
8334 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8335 fi
8336 if test "$with_gnu_ld" = no; then
8337 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8338 hardcode_libdir_separator=:
8340 hardcode_direct=yes
8341 export_dynamic_flag_spec='${wl}-E'
8343 # hardcode_minus_L: Not really in the search PATH,
8344 # but as the default location of the library.
8345 hardcode_minus_L=yes
8346 fi
8347 ;;
8349 hpux11*)
8350 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8351 case $host_cpu in
8352 hppa*64*)
8353 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8354 ;;
8355 ia64*)
8356 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8357 ;;
8358 *)
8359 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8360 ;;
8361 esac
8362 else
8363 case $host_cpu in
8364 hppa*64*)
8365 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8366 ;;
8367 ia64*)
8368 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8369 ;;
8370 *)
8371 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8372 ;;
8373 esac
8374 fi
8375 if test "$with_gnu_ld" = no; then
8376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8377 hardcode_libdir_separator=:
8379 case $host_cpu in
8380 hppa*64*|ia64*)
8381 hardcode_libdir_flag_spec_ld='+b $libdir'
8382 hardcode_direct=no
8383 hardcode_shlibpath_var=no
8384 ;;
8385 *)
8386 hardcode_direct=yes
8387 export_dynamic_flag_spec='${wl}-E'
8389 # hardcode_minus_L: Not really in the search PATH,
8390 # but as the default location of the library.
8391 hardcode_minus_L=yes
8392 ;;
8393 esac
8394 fi
8395 ;;
8397 irix5* | irix6* | nonstopux*)
8398 if test "$GCC" = yes; then
8399 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'
8400 else
8401 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'
8402 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8403 fi
8404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8405 hardcode_libdir_separator=:
8406 link_all_deplibs=yes
8407 ;;
8409 netbsd* | netbsdelf*-gnu)
8410 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8412 else
8413 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8414 fi
8415 hardcode_libdir_flag_spec='-R$libdir'
8416 hardcode_direct=yes
8417 hardcode_shlibpath_var=no
8418 ;;
8420 newsos6)
8421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8422 hardcode_direct=yes
8423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8424 hardcode_libdir_separator=:
8425 hardcode_shlibpath_var=no
8426 ;;
8428 openbsd*)
8429 hardcode_direct=yes
8430 hardcode_shlibpath_var=no
8431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8433 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8434 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8435 export_dynamic_flag_spec='${wl}-E'
8436 else
8437 case $host_os in
8438 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8440 hardcode_libdir_flag_spec='-R$libdir'
8441 ;;
8442 *)
8443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8445 ;;
8446 esac
8447 fi
8448 ;;
8450 os2*)
8451 hardcode_libdir_flag_spec='-L$libdir'
8452 hardcode_minus_L=yes
8453 allow_undefined_flag=unsupported
8454 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'
8455 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8456 ;;
8458 osf3*)
8459 if test "$GCC" = yes; then
8460 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8461 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'
8462 else
8463 allow_undefined_flag=' -expect_unresolved \*'
8464 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'
8465 fi
8466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8467 hardcode_libdir_separator=:
8468 ;;
8470 osf4* | osf5*) # as osf3* with the addition of -msym flag
8471 if test "$GCC" = yes; then
8472 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8473 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'
8474 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8475 else
8476 allow_undefined_flag=' -expect_unresolved \*'
8477 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'
8478 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8479 $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'
8481 # Both c and cxx compiler support -rpath directly
8482 hardcode_libdir_flag_spec='-rpath $libdir'
8483 fi
8484 hardcode_libdir_separator=:
8485 ;;
8487 solaris*)
8488 no_undefined_flag=' -z text'
8489 if test "$GCC" = yes; then
8490 wlarc='${wl}'
8491 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8492 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8493 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8494 else
8495 wlarc=''
8496 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8497 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8498 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8499 fi
8500 hardcode_libdir_flag_spec='-R$libdir'
8501 hardcode_shlibpath_var=no
8502 case $host_os in
8503 solaris2.[0-5] | solaris2.[0-5].*) ;;
8504 *)
8505 # The compiler driver will combine linker options so we
8506 # cannot just pass the convience library names through
8507 # without $wl, iff we do not link with $LD.
8508 # Luckily, gcc supports the same syntax we need for Sun Studio.
8509 # Supported since Solaris 2.6 (maybe 2.5.1?)
8510 case $wlarc in
8511 '')
8512 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8513 *)
8514 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' ;;
8515 esac ;;
8516 esac
8517 link_all_deplibs=yes
8518 ;;
8520 sunos4*)
8521 if test "x$host_vendor" = xsequent; then
8522 # Use $CC to link under sequent, because it throws in some extra .o
8523 # files that make .init and .fini sections work.
8524 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8525 else
8526 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8527 fi
8528 hardcode_libdir_flag_spec='-L$libdir'
8529 hardcode_direct=yes
8530 hardcode_minus_L=yes
8531 hardcode_shlibpath_var=no
8532 ;;
8534 sysv4)
8535 case $host_vendor in
8536 sni)
8537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8538 hardcode_direct=yes # is this really true???
8539 ;;
8540 siemens)
8541 ## LD is ld it makes a PLAMLIB
8542 ## CC just makes a GrossModule.
8543 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8544 reload_cmds='$CC -r -o $output$reload_objs'
8545 hardcode_direct=no
8546 ;;
8547 motorola)
8548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8549 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8550 ;;
8551 esac
8552 runpath_var='LD_RUN_PATH'
8553 hardcode_shlibpath_var=no
8554 ;;
8556 sysv4.3*)
8557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8558 hardcode_shlibpath_var=no
8559 export_dynamic_flag_spec='-Bexport'
8560 ;;
8562 sysv4*MP*)
8563 if test -d /usr/nec; then
8564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8565 hardcode_shlibpath_var=no
8566 runpath_var=LD_RUN_PATH
8567 hardcode_runpath_var=yes
8568 ld_shlibs=yes
8569 fi
8570 ;;
8572 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8573 no_undefined_flag='${wl}-z,text'
8574 archive_cmds_need_lc=no
8575 hardcode_shlibpath_var=no
8576 runpath_var='LD_RUN_PATH'
8578 if test "$GCC" = yes; then
8579 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8580 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8581 else
8582 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8583 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8584 fi
8585 ;;
8587 sysv5* | sco3.2v5* | sco5v6*)
8588 # Note: We can NOT use -z defs as we might desire, because we do not
8589 # link with -lc, and that would cause any symbols used from libc to
8590 # always be unresolved, which means just about no library would
8591 # ever link correctly. If we're not using GNU ld we use -z text
8592 # though, which does catch some bad symbols but isn't as heavy-handed
8593 # as -z defs.
8594 no_undefined_flag='${wl}-z,text'
8595 allow_undefined_flag='${wl}-z,nodefs'
8596 archive_cmds_need_lc=no
8597 hardcode_shlibpath_var=no
8598 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8599 hardcode_libdir_separator=':'
8600 link_all_deplibs=yes
8601 export_dynamic_flag_spec='${wl}-Bexport'
8602 runpath_var='LD_RUN_PATH'
8604 if test "$GCC" = yes; then
8605 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8606 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8607 else
8608 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8609 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8610 fi
8611 ;;
8613 uts4*)
8614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8615 hardcode_libdir_flag_spec='-L$libdir'
8616 hardcode_shlibpath_var=no
8617 ;;
8619 *)
8620 ld_shlibs=no
8621 ;;
8622 esac
8623 fi
8625 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8626 echo "${ECHO_T}$ld_shlibs" >&6; }
8627 test "$ld_shlibs" = no && can_build_shared=no
8629 #
8630 # Do we need to explicitly link libc?
8631 #
8632 case "x$archive_cmds_need_lc" in
8633 x|xyes)
8634 # Assume -lc should be added
8635 archive_cmds_need_lc=yes
8637 if test "$enable_shared" = yes && test "$GCC" = yes; then
8638 case $archive_cmds in
8639 *'~'*)
8640 # FIXME: we may have to deal with multi-command sequences.
8641 ;;
8642 '$CC '*)
8643 # Test whether the compiler implicitly links with -lc since on some
8644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8645 # to ld, don't add -lc before -lgcc.
8646 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8647 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8648 $rm conftest*
8649 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652 (eval $ac_compile) 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } 2>conftest.err; then
8656 soname=conftest
8657 lib=conftest
8658 libobjs=conftest.$ac_objext
8659 deplibs=
8660 wl=$lt_prog_compiler_wl
8661 pic_flag=$lt_prog_compiler_pic
8662 compiler_flags=-v
8663 linker_flags=-v
8664 verstring=
8665 output_objdir=.
8666 libname=conftest
8667 lt_save_allow_undefined_flag=$allow_undefined_flag
8668 allow_undefined_flag=
8669 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8670 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }
8674 then
8675 archive_cmds_need_lc=no
8676 else
8677 archive_cmds_need_lc=yes
8678 fi
8679 allow_undefined_flag=$lt_save_allow_undefined_flag
8680 else
8681 cat conftest.err 1>&5
8682 fi
8683 $rm conftest*
8684 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8685 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8686 ;;
8687 esac
8688 fi
8689 ;;
8690 esac
8692 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8693 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8694 library_names_spec=
8695 libname_spec='lib$name'
8696 soname_spec=
8697 shrext_cmds=".so"
8698 postinstall_cmds=
8699 postuninstall_cmds=
8700 finish_cmds=
8701 finish_eval=
8702 shlibpath_var=
8703 shlibpath_overrides_runpath=unknown
8704 version_type=none
8705 dynamic_linker="$host_os ld.so"
8706 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8707 if test "$GCC" = yes; then
8708 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8709 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8710 # if the path contains ";" then we assume it to be the separator
8711 # otherwise default to the standard path separator (i.e. ":") - it is
8712 # assumed that no part of a normal pathname contains ";" but that should
8713 # okay in the real world where ";" in dirpaths is itself problematic.
8714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8715 else
8716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8717 fi
8718 else
8719 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8720 fi
8721 need_lib_prefix=unknown
8722 hardcode_into_libs=no
8724 # when you set need_version to no, make sure it does not cause -set_version
8725 # flags to be left without arguments
8726 need_version=unknown
8728 case $host_os in
8729 aix3*)
8730 version_type=linux
8731 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8732 shlibpath_var=LIBPATH
8734 # AIX 3 has no versioning support, so we append a major version to the name.
8735 soname_spec='${libname}${release}${shared_ext}$major'
8736 ;;
8738 aix4* | aix5*)
8739 version_type=linux
8740 need_lib_prefix=no
8741 need_version=no
8742 hardcode_into_libs=yes
8743 if test "$host_cpu" = ia64; then
8744 # AIX 5 supports IA64
8745 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8746 shlibpath_var=LD_LIBRARY_PATH
8747 else
8748 # With GCC up to 2.95.x, collect2 would create an import file
8749 # for dependence libraries. The import file would start with
8750 # the line `#! .'. This would cause the generated library to
8751 # depend on `.', always an invalid library. This was fixed in
8752 # development snapshots of GCC prior to 3.0.
8753 case $host_os in
8754 aix4 | aix4.[01] | aix4.[01].*)
8755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8756 echo ' yes '
8757 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8758 :
8759 else
8760 can_build_shared=no
8761 fi
8762 ;;
8763 esac
8764 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8765 # soname into executable. Probably we can add versioning support to
8766 # collect2, so additional links can be useful in future.
8767 if test "$aix_use_runtimelinking" = yes; then
8768 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8769 # instead of lib<name>.a to let people know that these are not
8770 # typical AIX shared libraries.
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8772 else
8773 # We preserve .a as extension for shared libraries through AIX4.2
8774 # and later when we are not doing run time linking.
8775 library_names_spec='${libname}${release}.a $libname.a'
8776 soname_spec='${libname}${release}${shared_ext}$major'
8777 fi
8778 shlibpath_var=LIBPATH
8779 fi
8780 ;;
8782 amigaos*)
8783 library_names_spec='$libname.ixlibrary $libname.a'
8784 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8785 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'
8786 ;;
8788 beos*)
8789 library_names_spec='${libname}${shared_ext}'
8790 dynamic_linker="$host_os ld.so"
8791 shlibpath_var=LIBRARY_PATH
8792 ;;
8794 bsdi[45]*)
8795 version_type=linux
8796 need_version=no
8797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8798 soname_spec='${libname}${release}${shared_ext}$major'
8799 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8800 shlibpath_var=LD_LIBRARY_PATH
8801 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8802 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8803 # the default ld.so.conf also contains /usr/contrib/lib and
8804 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8805 # libtool to hard-code these into programs
8806 ;;
8808 cygwin* | mingw* | pw32*)
8809 version_type=windows
8810 shrext_cmds=".dll"
8811 need_version=no
8812 need_lib_prefix=no
8814 case $GCC,$host_os in
8815 yes,cygwin* | yes,mingw* | yes,pw32*)
8816 library_names_spec='$libname.dll.a'
8817 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8818 postinstall_cmds='base_file=`basename \${file}`~
8819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8820 dldir=$destdir/`dirname \$dlpath`~
8821 test -d \$dldir || mkdir -p \$dldir~
8822 $install_prog $dir/$dlname \$dldir/$dlname~
8823 chmod a+x \$dldir/$dlname'
8824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8825 dlpath=$dir/\$dldll~
8826 $rm \$dlpath'
8827 shlibpath_overrides_runpath=yes
8829 case $host_os in
8830 cygwin*)
8831 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8832 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8833 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8834 ;;
8835 mingw*)
8836 # MinGW DLLs use traditional 'lib' prefix
8837 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8838 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8839 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8840 # It is most probably a Windows format PATH printed by
8841 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8842 # path with ; separators, and with drive letters. We can handle the
8843 # drive letters (cygwin fileutils understands them), so leave them,
8844 # especially as we might pass files found there to a mingw objdump,
8845 # which wouldn't understand a cygwinified path. Ahh.
8846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8847 else
8848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8849 fi
8850 ;;
8851 pw32*)
8852 # pw32 DLLs use 'pw' prefix rather than 'lib'
8853 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8854 ;;
8855 esac
8856 ;;
8858 *)
8859 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8860 ;;
8861 esac
8862 dynamic_linker='Win32 ld.exe'
8863 # FIXME: first we should search . and the directory the executable is in
8864 shlibpath_var=PATH
8865 ;;
8867 darwin* | rhapsody*)
8868 dynamic_linker="$host_os dyld"
8869 version_type=darwin
8870 need_lib_prefix=no
8871 need_version=no
8872 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8873 soname_spec='${libname}${release}${major}$shared_ext'
8874 shlibpath_overrides_runpath=yes
8875 shlibpath_var=DYLD_LIBRARY_PATH
8876 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8877 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8878 if test "$GCC" = yes; then
8879 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"`
8880 else
8881 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8882 fi
8883 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8884 ;;
8886 dgux*)
8887 version_type=linux
8888 need_lib_prefix=no
8889 need_version=no
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8891 soname_spec='${libname}${release}${shared_ext}$major'
8892 shlibpath_var=LD_LIBRARY_PATH
8893 ;;
8895 freebsd1*)
8896 dynamic_linker=no
8897 ;;
8899 freebsd* | dragonfly*)
8900 # DragonFly does not have aout. When/if they implement a new
8901 # versioning mechanism, adjust this.
8902 if test -x /usr/bin/objformat; then
8903 objformat=`/usr/bin/objformat`
8904 else
8905 case $host_os in
8906 freebsd[123]*) objformat=aout ;;
8907 *) objformat=elf ;;
8908 esac
8909 fi
8910 version_type=freebsd-$objformat
8911 case $version_type in
8912 freebsd-elf*)
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8914 need_version=no
8915 need_lib_prefix=no
8916 ;;
8917 freebsd-*)
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8919 need_version=yes
8920 ;;
8921 esac
8922 shlibpath_var=LD_LIBRARY_PATH
8923 case $host_os in
8924 freebsd2*)
8925 shlibpath_overrides_runpath=yes
8926 ;;
8927 freebsd3.[01]* | freebsdelf3.[01]*)
8928 shlibpath_overrides_runpath=yes
8929 hardcode_into_libs=yes
8930 ;;
8931 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8932 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8933 shlibpath_overrides_runpath=no
8934 hardcode_into_libs=yes
8935 ;;
8936 freebsd*) # from 4.6 on
8937 shlibpath_overrides_runpath=yes
8938 hardcode_into_libs=yes
8939 ;;
8940 esac
8941 ;;
8943 gnu*)
8944 version_type=linux
8945 need_lib_prefix=no
8946 need_version=no
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 hardcode_into_libs=yes
8951 ;;
8953 hpux9* | hpux10* | hpux11*)
8954 # Give a soname corresponding to the major version so that dld.sl refuses to
8955 # link against other versions.
8956 version_type=sunos
8957 need_lib_prefix=no
8958 need_version=no
8959 case $host_cpu in
8960 ia64*)
8961 shrext_cmds='.so'
8962 hardcode_into_libs=yes
8963 dynamic_linker="$host_os dld.so"
8964 shlibpath_var=LD_LIBRARY_PATH
8965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 if test "X$HPUX_IA64_MODE" = X32; then
8969 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8970 else
8971 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8972 fi
8973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8974 ;;
8975 hppa*64*)
8976 shrext_cmds='.sl'
8977 hardcode_into_libs=yes
8978 dynamic_linker="$host_os dld.sl"
8979 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8985 ;;
8986 *)
8987 shrext_cmds='.sl'
8988 dynamic_linker="$host_os dld.sl"
8989 shlibpath_var=SHLIB_PATH
8990 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992 soname_spec='${libname}${release}${shared_ext}$major'
8993 ;;
8994 esac
8995 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8996 postinstall_cmds='chmod 555 $lib'
8997 ;;
8999 interix3*)
9000 version_type=linux
9001 need_lib_prefix=no
9002 need_version=no
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 shlibpath_overrides_runpath=no
9008 hardcode_into_libs=yes
9009 ;;
9011 irix5* | irix6* | nonstopux*)
9012 case $host_os in
9013 nonstopux*) version_type=nonstopux ;;
9014 *)
9015 if test "$lt_cv_prog_gnu_ld" = yes; then
9016 version_type=linux
9017 else
9018 version_type=irix
9019 fi ;;
9020 esac
9021 need_lib_prefix=no
9022 need_version=no
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9025 case $host_os in
9026 irix5* | nonstopux*)
9027 libsuff= shlibsuff=
9028 ;;
9029 *)
9030 case $LD in # libtool.m4 will add one of these switches to LD
9031 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9032 libsuff= shlibsuff= libmagic=32-bit;;
9033 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9034 libsuff=32 shlibsuff=N32 libmagic=N32;;
9035 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9036 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9037 *) libsuff= shlibsuff= libmagic=never-match;;
9038 esac
9039 ;;
9040 esac
9041 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9042 shlibpath_overrides_runpath=no
9043 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9044 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9045 hardcode_into_libs=yes
9046 ;;
9048 # No shared lib support for Linux oldld, aout, or coff.
9049 linux*oldld* | linux*aout* | linux*coff*)
9050 dynamic_linker=no
9051 ;;
9053 # This must be Linux ELF.
9054 linux* | k*bsd*-gnu)
9055 version_type=linux
9056 need_lib_prefix=no
9057 need_version=no
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 shlibpath_overrides_runpath=no
9063 # This implies no fast_install, which is unacceptable.
9064 # Some rework will be needed to allow for fast_install
9065 # before this can be enabled.
9066 hardcode_into_libs=yes
9068 # Append ld.so.conf contents to the search path
9069 if test -f /etc/ld.so.conf; then
9070 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' ' '`
9071 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9072 fi
9074 # We used to test for /lib/ld.so.1 and disable shared libraries on
9075 # powerpc, because MkLinux only supported shared libraries with the
9076 # GNU dynamic linker. Since this was broken with cross compilers,
9077 # most powerpc-linux boxes support dynamic linking these days and
9078 # people can always --disable-shared, the test was removed, and we
9079 # assume the GNU/Linux dynamic linker is in use.
9080 dynamic_linker='GNU/Linux ld.so'
9081 ;;
9083 netbsdelf*-gnu)
9084 version_type=linux
9085 need_lib_prefix=no
9086 need_version=no
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 shlibpath_var=LD_LIBRARY_PATH
9090 shlibpath_overrides_runpath=no
9091 hardcode_into_libs=yes
9092 dynamic_linker='NetBSD ld.elf_so'
9093 ;;
9095 netbsd*)
9096 version_type=sunos
9097 need_lib_prefix=no
9098 need_version=no
9099 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9102 dynamic_linker='NetBSD (a.out) ld.so'
9103 else
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 dynamic_linker='NetBSD ld.elf_so'
9107 fi
9108 shlibpath_var=LD_LIBRARY_PATH
9109 shlibpath_overrides_runpath=yes
9110 hardcode_into_libs=yes
9111 ;;
9113 newsos6)
9114 version_type=linux
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=yes
9118 ;;
9120 nto-qnx*)
9121 version_type=linux
9122 need_lib_prefix=no
9123 need_version=no
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 shlibpath_overrides_runpath=yes
9128 ;;
9130 openbsd*)
9131 version_type=sunos
9132 sys_lib_dlsearch_path_spec="/usr/lib"
9133 need_lib_prefix=no
9134 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9135 case $host_os in
9136 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9137 *) need_version=no ;;
9138 esac
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9143 case $host_os in
9144 openbsd2.[89] | openbsd2.[89].*)
9145 shlibpath_overrides_runpath=no
9146 ;;
9147 *)
9148 shlibpath_overrides_runpath=yes
9149 ;;
9150 esac
9151 else
9152 shlibpath_overrides_runpath=yes
9153 fi
9154 ;;
9156 os2*)
9157 libname_spec='$name'
9158 shrext_cmds=".dll"
9159 need_lib_prefix=no
9160 library_names_spec='$libname${shared_ext} $libname.a'
9161 dynamic_linker='OS/2 ld.exe'
9162 shlibpath_var=LIBPATH
9163 ;;
9165 osf3* | osf4* | osf5*)
9166 version_type=osf
9167 need_lib_prefix=no
9168 need_version=no
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9173 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9174 ;;
9176 solaris*)
9177 version_type=linux
9178 need_lib_prefix=no
9179 need_version=no
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 shlibpath_overrides_runpath=yes
9184 hardcode_into_libs=yes
9185 # ldd complains unless libraries are executable
9186 postinstall_cmds='chmod +x $lib'
9187 ;;
9189 sunos4*)
9190 version_type=sunos
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9193 shlibpath_var=LD_LIBRARY_PATH
9194 shlibpath_overrides_runpath=yes
9195 if test "$with_gnu_ld" = yes; then
9196 need_lib_prefix=no
9197 fi
9198 need_version=yes
9199 ;;
9201 sysv4 | sysv4.3*)
9202 version_type=linux
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 case $host_vendor in
9207 sni)
9208 shlibpath_overrides_runpath=no
9209 need_lib_prefix=no
9210 export_dynamic_flag_spec='${wl}-Blargedynsym'
9211 runpath_var=LD_RUN_PATH
9212 ;;
9213 siemens)
9214 need_lib_prefix=no
9215 ;;
9216 motorola)
9217 need_lib_prefix=no
9218 need_version=no
9219 shlibpath_overrides_runpath=no
9220 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9221 ;;
9222 esac
9223 ;;
9225 sysv4*MP*)
9226 if test -d /usr/nec ;then
9227 version_type=linux
9228 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9229 soname_spec='$libname${shared_ext}.$major'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 fi
9232 ;;
9234 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9235 version_type=freebsd-elf
9236 need_lib_prefix=no
9237 need_version=no
9238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9239 soname_spec='${libname}${release}${shared_ext}$major'
9240 shlibpath_var=LD_LIBRARY_PATH
9241 hardcode_into_libs=yes
9242 if test "$with_gnu_ld" = yes; then
9243 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9244 shlibpath_overrides_runpath=no
9245 else
9246 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9247 shlibpath_overrides_runpath=yes
9248 case $host_os in
9249 sco3.2v5*)
9250 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9251 ;;
9252 esac
9253 fi
9254 sys_lib_dlsearch_path_spec='/usr/lib'
9255 ;;
9257 uts4*)
9258 version_type=linux
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 ;;
9264 *)
9265 dynamic_linker=no
9266 ;;
9267 esac
9268 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9269 echo "${ECHO_T}$dynamic_linker" >&6; }
9270 test "$dynamic_linker" = no && can_build_shared=no
9272 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9273 if test "$GCC" = yes; then
9274 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9275 fi
9277 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9278 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9279 hardcode_action=
9280 if test -n "$hardcode_libdir_flag_spec" || \
9281 test -n "$runpath_var" || \
9282 test "X$hardcode_automatic" = "Xyes" ; then
9284 # We can hardcode non-existant directories.
9285 if test "$hardcode_direct" != no &&
9286 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9287 # have to relink, otherwise we might link with an installed library
9288 # when we should be linking with a yet-to-be-installed one
9289 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9290 test "$hardcode_minus_L" != no; then
9291 # Linking always hardcodes the temporary library directory.
9292 hardcode_action=relink
9293 else
9294 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9295 hardcode_action=immediate
9296 fi
9297 else
9298 # We cannot hardcode anything, or else we can only hardcode existing
9299 # directories.
9300 hardcode_action=unsupported
9301 fi
9302 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9303 echo "${ECHO_T}$hardcode_action" >&6; }
9305 if test "$hardcode_action" = relink; then
9306 # Fast installation is not supported
9307 enable_fast_install=no
9308 elif test "$shlibpath_overrides_runpath" = yes ||
9309 test "$enable_shared" = no; then
9310 # Fast installation is not necessary
9311 enable_fast_install=needless
9312 fi
9314 striplib=
9315 old_striplib=
9316 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9317 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9318 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9319 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9320 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9321 { echo "$as_me:$LINENO: result: yes" >&5
9322 echo "${ECHO_T}yes" >&6; }
9323 else
9324 # FIXME - insert some real tests, host_os isn't really good enough
9325 case $host_os in
9326 darwin*)
9327 if test -n "$STRIP" ; then
9328 striplib="$STRIP -x"
9329 { echo "$as_me:$LINENO: result: yes" >&5
9330 echo "${ECHO_T}yes" >&6; }
9331 else
9332 { echo "$as_me:$LINENO: result: no" >&5
9333 echo "${ECHO_T}no" >&6; }
9334 fi
9335 ;;
9336 *)
9337 { echo "$as_me:$LINENO: result: no" >&5
9338 echo "${ECHO_T}no" >&6; }
9339 ;;
9340 esac
9341 fi
9343 if test "x$enable_dlopen" != xyes; then
9344 enable_dlopen=unknown
9345 enable_dlopen_self=unknown
9346 enable_dlopen_self_static=unknown
9347 else
9348 lt_cv_dlopen=no
9349 lt_cv_dlopen_libs=
9351 case $host_os in
9352 beos*)
9353 lt_cv_dlopen="load_add_on"
9354 lt_cv_dlopen_libs=
9355 lt_cv_dlopen_self=yes
9356 ;;
9358 mingw* | pw32*)
9359 lt_cv_dlopen="LoadLibrary"
9360 lt_cv_dlopen_libs=
9361 ;;
9363 cygwin*)
9364 lt_cv_dlopen="dlopen"
9365 lt_cv_dlopen_libs=
9366 ;;
9368 darwin*)
9369 # if libdl is installed we need to link against it
9370 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9371 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9372 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375 ac_check_lib_save_LIBS=$LIBS
9376 LIBS="-ldl $LIBS"
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h. */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9384 /* Override any GCC internal prototype to avoid an error.
9385 Use char because int might match the return type of a GCC
9386 builtin and then its argument prototype would still apply. */
9387 #ifdef __cplusplus
9388 extern "C"
9389 #endif
9390 char dlopen ();
9391 int
9392 main ()
9393 {
9394 return dlopen ();
9395 ;
9396 return 0;
9397 }
9398 _ACEOF
9399 rm -f conftest.$ac_objext conftest$ac_exeext
9400 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9407 ac_status=$?
9408 grep -v '^ *+' conftest.er1 >conftest.err
9409 rm -f conftest.er1
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && {
9413 test -z "$ac_c_werror_flag" ||
9414 test ! -s conftest.err
9415 } && test -s conftest$ac_exeext &&
9416 $as_test_x conftest$ac_exeext; then
9417 ac_cv_lib_dl_dlopen=yes
9418 else
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 ac_cv_lib_dl_dlopen=no
9423 fi
9425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9426 conftest$ac_exeext conftest.$ac_ext
9427 LIBS=$ac_check_lib_save_LIBS
9428 fi
9429 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9430 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9431 if test $ac_cv_lib_dl_dlopen = yes; then
9432 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9433 else
9435 lt_cv_dlopen="dyld"
9436 lt_cv_dlopen_libs=
9437 lt_cv_dlopen_self=yes
9439 fi
9441 ;;
9443 *)
9444 { echo "$as_me:$LINENO: checking for shl_load" >&5
9445 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9446 if test "${ac_cv_func_shl_load+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449 cat >conftest.$ac_ext <<_ACEOF
9450 /* confdefs.h. */
9451 _ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h. */
9455 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9457 #define shl_load innocuous_shl_load
9459 /* System header to define __stub macros and hopefully few prototypes,
9460 which can conflict with char shl_load (); below.
9461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9462 <limits.h> exists even on freestanding compilers. */
9464 #ifdef __STDC__
9465 # include <limits.h>
9466 #else
9467 # include <assert.h>
9468 #endif
9470 #undef shl_load
9472 /* Override any GCC internal prototype to avoid an error.
9473 Use char because int might match the return type of a GCC
9474 builtin and then its argument prototype would still apply. */
9475 #ifdef __cplusplus
9476 extern "C"
9477 #endif
9478 char shl_load ();
9479 /* The GNU C library defines this for functions which it implements
9480 to always fail with ENOSYS. Some functions are actually named
9481 something starting with __ and the normal name is an alias. */
9482 #if defined __stub_shl_load || defined __stub___shl_load
9483 choke me
9484 #endif
9486 int
9487 main ()
9488 {
9489 return shl_load ();
9490 ;
9491 return 0;
9492 }
9493 _ACEOF
9494 rm -f conftest.$ac_objext conftest$ac_exeext
9495 if { (ac_try="$ac_link"
9496 case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9499 esac
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_link") 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && {
9508 test -z "$ac_c_werror_flag" ||
9509 test ! -s conftest.err
9510 } && test -s conftest$ac_exeext &&
9511 $as_test_x conftest$ac_exeext; then
9512 ac_cv_func_shl_load=yes
9513 else
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9517 ac_cv_func_shl_load=no
9518 fi
9520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521 conftest$ac_exeext conftest.$ac_ext
9522 fi
9523 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9524 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9525 if test $ac_cv_func_shl_load = yes; then
9526 lt_cv_dlopen="shl_load"
9527 else
9528 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9529 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9530 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533 ac_check_lib_save_LIBS=$LIBS
9534 LIBS="-ldld $LIBS"
9535 cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h. */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9542 /* Override any GCC internal prototype to avoid an error.
9543 Use char because int might match the return type of a GCC
9544 builtin and then its argument prototype would still apply. */
9545 #ifdef __cplusplus
9546 extern "C"
9547 #endif
9548 char shl_load ();
9549 int
9550 main ()
9551 {
9552 return shl_load ();
9553 ;
9554 return 0;
9555 }
9556 _ACEOF
9557 rm -f conftest.$ac_objext conftest$ac_exeext
9558 if { (ac_try="$ac_link"
9559 case "(($ac_try" in
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9562 esac
9563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564 (eval "$ac_link") 2>conftest.er1
9565 ac_status=$?
9566 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } && {
9571 test -z "$ac_c_werror_flag" ||
9572 test ! -s conftest.err
9573 } && test -s conftest$ac_exeext &&
9574 $as_test_x conftest$ac_exeext; then
9575 ac_cv_lib_dld_shl_load=yes
9576 else
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9580 ac_cv_lib_dld_shl_load=no
9581 fi
9583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9584 conftest$ac_exeext conftest.$ac_ext
9585 LIBS=$ac_check_lib_save_LIBS
9586 fi
9587 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9588 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9589 if test $ac_cv_lib_dld_shl_load = yes; then
9590 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9591 else
9592 { echo "$as_me:$LINENO: checking for dlopen" >&5
9593 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9594 if test "${ac_cv_func_dlopen+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597 cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h. */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9603 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9605 #define dlopen innocuous_dlopen
9607 /* System header to define __stub macros and hopefully few prototypes,
9608 which can conflict with char dlopen (); below.
9609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9610 <limits.h> exists even on freestanding compilers. */
9612 #ifdef __STDC__
9613 # include <limits.h>
9614 #else
9615 # include <assert.h>
9616 #endif
9618 #undef dlopen
9620 /* Override any GCC internal prototype to avoid an error.
9621 Use char because int might match the return type of a GCC
9622 builtin and then its argument prototype would still apply. */
9623 #ifdef __cplusplus
9624 extern "C"
9625 #endif
9626 char dlopen ();
9627 /* The GNU C library defines this for functions which it implements
9628 to always fail with ENOSYS. Some functions are actually named
9629 something starting with __ and the normal name is an alias. */
9630 #if defined __stub_dlopen || defined __stub___dlopen
9631 choke me
9632 #endif
9634 int
9635 main ()
9636 {
9637 return dlopen ();
9638 ;
9639 return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (ac_try="$ac_link"
9644 case "(($ac_try" in
9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9647 esac
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649 (eval "$ac_link") 2>conftest.er1
9650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } && {
9656 test -z "$ac_c_werror_flag" ||
9657 test ! -s conftest.err
9658 } && test -s conftest$ac_exeext &&
9659 $as_test_x conftest$ac_exeext; then
9660 ac_cv_func_dlopen=yes
9661 else
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9665 ac_cv_func_dlopen=no
9666 fi
9668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9669 conftest$ac_exeext conftest.$ac_ext
9670 fi
9671 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9672 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9673 if test $ac_cv_func_dlopen = yes; then
9674 lt_cv_dlopen="dlopen"
9675 else
9676 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9677 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9678 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 else
9681 ac_check_lib_save_LIBS=$LIBS
9682 LIBS="-ldl $LIBS"
9683 cat >conftest.$ac_ext <<_ACEOF
9684 /* confdefs.h. */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9690 /* Override any GCC internal prototype to avoid an error.
9691 Use char because int might match the return type of a GCC
9692 builtin and then its argument prototype would still apply. */
9693 #ifdef __cplusplus
9694 extern "C"
9695 #endif
9696 char dlopen ();
9697 int
9698 main ()
9699 {
9700 return dlopen ();
9701 ;
9702 return 0;
9703 }
9704 _ACEOF
9705 rm -f conftest.$ac_objext conftest$ac_exeext
9706 if { (ac_try="$ac_link"
9707 case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_link") 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest$ac_exeext &&
9722 $as_test_x conftest$ac_exeext; then
9723 ac_cv_lib_dl_dlopen=yes
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 ac_cv_lib_dl_dlopen=no
9729 fi
9731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9732 conftest$ac_exeext conftest.$ac_ext
9733 LIBS=$ac_check_lib_save_LIBS
9734 fi
9735 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9736 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9737 if test $ac_cv_lib_dl_dlopen = yes; then
9738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9739 else
9740 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9741 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9742 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745 ac_check_lib_save_LIBS=$LIBS
9746 LIBS="-lsvld $LIBS"
9747 cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h. */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9754 /* Override any GCC internal prototype to avoid an error.
9755 Use char because int might match the return type of a GCC
9756 builtin and then its argument prototype would still apply. */
9757 #ifdef __cplusplus
9758 extern "C"
9759 #endif
9760 char dlopen ();
9761 int
9762 main ()
9763 {
9764 return dlopen ();
9765 ;
9766 return 0;
9767 }
9768 _ACEOF
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9777 ac_status=$?
9778 grep -v '^ *+' conftest.er1 >conftest.err
9779 rm -f conftest.er1
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } && {
9783 test -z "$ac_c_werror_flag" ||
9784 test ! -s conftest.err
9785 } && test -s conftest$ac_exeext &&
9786 $as_test_x conftest$ac_exeext; then
9787 ac_cv_lib_svld_dlopen=yes
9788 else
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9792 ac_cv_lib_svld_dlopen=no
9793 fi
9795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9796 conftest$ac_exeext conftest.$ac_ext
9797 LIBS=$ac_check_lib_save_LIBS
9798 fi
9799 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9800 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9801 if test $ac_cv_lib_svld_dlopen = yes; then
9802 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9803 else
9804 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9805 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9806 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809 ac_check_lib_save_LIBS=$LIBS
9810 LIBS="-ldld $LIBS"
9811 cat >conftest.$ac_ext <<_ACEOF
9812 /* confdefs.h. */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9818 /* Override any GCC internal prototype to avoid an error.
9819 Use char because int might match the return type of a GCC
9820 builtin and then its argument prototype would still apply. */
9821 #ifdef __cplusplus
9822 extern "C"
9823 #endif
9824 char dld_link ();
9825 int
9826 main ()
9827 {
9828 return dld_link ();
9829 ;
9830 return 0;
9831 }
9832 _ACEOF
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (ac_try="$ac_link"
9835 case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_link") 2>conftest.er1
9841 ac_status=$?
9842 grep -v '^ *+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest$ac_exeext &&
9850 $as_test_x conftest$ac_exeext; then
9851 ac_cv_lib_dld_dld_link=yes
9852 else
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ac_cv_lib_dld_dld_link=no
9857 fi
9859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9860 conftest$ac_exeext conftest.$ac_ext
9861 LIBS=$ac_check_lib_save_LIBS
9862 fi
9863 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9864 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9865 if test $ac_cv_lib_dld_dld_link = yes; then
9866 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9867 fi
9870 fi
9873 fi
9876 fi
9879 fi
9882 fi
9884 ;;
9885 esac
9887 if test "x$lt_cv_dlopen" != xno; then
9888 enable_dlopen=yes
9889 else
9890 enable_dlopen=no
9891 fi
9893 case $lt_cv_dlopen in
9894 dlopen)
9895 save_CPPFLAGS="$CPPFLAGS"
9896 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9898 save_LDFLAGS="$LDFLAGS"
9899 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9901 save_LIBS="$LIBS"
9902 LIBS="$lt_cv_dlopen_libs $LIBS"
9904 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9905 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9906 if test "${lt_cv_dlopen_self+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909 if test "$cross_compiling" = yes; then :
9910 lt_cv_dlopen_self=cross
9911 else
9912 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9913 lt_status=$lt_dlunknown
9914 cat > conftest.$ac_ext <<EOF
9915 #line 9915 "configure"
9916 #include "confdefs.h"
9918 #if HAVE_DLFCN_H
9919 #include <dlfcn.h>
9920 #endif
9922 #include <stdio.h>
9924 #ifdef RTLD_GLOBAL
9925 # define LT_DLGLOBAL RTLD_GLOBAL
9926 #else
9927 # ifdef DL_GLOBAL
9928 # define LT_DLGLOBAL DL_GLOBAL
9929 # else
9930 # define LT_DLGLOBAL 0
9931 # endif
9932 #endif
9934 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9935 find out it does not work in some platform. */
9936 #ifndef LT_DLLAZY_OR_NOW
9937 # ifdef RTLD_LAZY
9938 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9939 # else
9940 # ifdef DL_LAZY
9941 # define LT_DLLAZY_OR_NOW DL_LAZY
9942 # else
9943 # ifdef RTLD_NOW
9944 # define LT_DLLAZY_OR_NOW RTLD_NOW
9945 # else
9946 # ifdef DL_NOW
9947 # define LT_DLLAZY_OR_NOW DL_NOW
9948 # else
9949 # define LT_DLLAZY_OR_NOW 0
9950 # endif
9951 # endif
9952 # endif
9953 # endif
9954 #endif
9956 #ifdef __cplusplus
9957 extern "C" void exit (int);
9958 #endif
9960 void fnord() { int i=42;}
9961 int main ()
9962 {
9963 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9964 int status = $lt_dlunknown;
9966 if (self)
9967 {
9968 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9969 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9970 /* dlclose (self); */
9971 }
9972 else
9973 puts (dlerror ());
9975 exit (status);
9976 }
9977 EOF
9978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9979 (eval $ac_link) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9983 (./conftest; exit; ) >&5 2>/dev/null
9984 lt_status=$?
9985 case x$lt_status in
9986 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9987 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9988 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9989 esac
9990 else :
9991 # compilation failed
9992 lt_cv_dlopen_self=no
9993 fi
9994 fi
9995 rm -fr conftest*
9998 fi
9999 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10000 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10002 if test "x$lt_cv_dlopen_self" = xyes; then
10003 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10004 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10005 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10006 if test "${lt_cv_dlopen_self_static+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009 if test "$cross_compiling" = yes; then :
10010 lt_cv_dlopen_self_static=cross
10011 else
10012 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10013 lt_status=$lt_dlunknown
10014 cat > conftest.$ac_ext <<EOF
10015 #line 10015 "configure"
10016 #include "confdefs.h"
10018 #if HAVE_DLFCN_H
10019 #include <dlfcn.h>
10020 #endif
10022 #include <stdio.h>
10024 #ifdef RTLD_GLOBAL
10025 # define LT_DLGLOBAL RTLD_GLOBAL
10026 #else
10027 # ifdef DL_GLOBAL
10028 # define LT_DLGLOBAL DL_GLOBAL
10029 # else
10030 # define LT_DLGLOBAL 0
10031 # endif
10032 #endif
10034 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10035 find out it does not work in some platform. */
10036 #ifndef LT_DLLAZY_OR_NOW
10037 # ifdef RTLD_LAZY
10038 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10039 # else
10040 # ifdef DL_LAZY
10041 # define LT_DLLAZY_OR_NOW DL_LAZY
10042 # else
10043 # ifdef RTLD_NOW
10044 # define LT_DLLAZY_OR_NOW RTLD_NOW
10045 # else
10046 # ifdef DL_NOW
10047 # define LT_DLLAZY_OR_NOW DL_NOW
10048 # else
10049 # define LT_DLLAZY_OR_NOW 0
10050 # endif
10051 # endif
10052 # endif
10053 # endif
10054 #endif
10056 #ifdef __cplusplus
10057 extern "C" void exit (int);
10058 #endif
10060 void fnord() { int i=42;}
10061 int main ()
10062 {
10063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10064 int status = $lt_dlunknown;
10066 if (self)
10067 {
10068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10069 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10070 /* dlclose (self); */
10071 }
10072 else
10073 puts (dlerror ());
10075 exit (status);
10076 }
10077 EOF
10078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10079 (eval $ac_link) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10083 (./conftest; exit; ) >&5 2>/dev/null
10084 lt_status=$?
10085 case x$lt_status in
10086 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10087 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10088 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10089 esac
10090 else :
10091 # compilation failed
10092 lt_cv_dlopen_self_static=no
10093 fi
10094 fi
10095 rm -fr conftest*
10098 fi
10099 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10100 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10101 fi
10103 CPPFLAGS="$save_CPPFLAGS"
10104 LDFLAGS="$save_LDFLAGS"
10105 LIBS="$save_LIBS"
10106 ;;
10107 esac
10109 case $lt_cv_dlopen_self in
10110 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10111 *) enable_dlopen_self=unknown ;;
10112 esac
10114 case $lt_cv_dlopen_self_static in
10115 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10116 *) enable_dlopen_self_static=unknown ;;
10117 esac
10118 fi
10121 # Report which library types will actually be built
10122 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10123 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10124 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10125 echo "${ECHO_T}$can_build_shared" >&6; }
10127 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10128 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10129 test "$can_build_shared" = "no" && enable_shared=no
10131 # On AIX, shared libraries and static libraries use the same namespace, and
10132 # are all built from PIC.
10133 case $host_os in
10134 aix3*)
10135 test "$enable_shared" = yes && enable_static=no
10136 if test -n "$RANLIB"; then
10137 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10138 postinstall_cmds='$RANLIB $lib'
10139 fi
10140 ;;
10142 aix4* | aix5*)
10143 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10144 test "$enable_shared" = yes && enable_static=no
10145 fi
10146 ;;
10147 esac
10148 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10149 echo "${ECHO_T}$enable_shared" >&6; }
10151 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10152 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10153 # Make sure either enable_shared or enable_static is yes.
10154 test "$enable_shared" = yes || enable_static=yes
10155 { echo "$as_me:$LINENO: result: $enable_static" >&5
10156 echo "${ECHO_T}$enable_static" >&6; }
10158 # The else clause should only fire when bootstrapping the
10159 # libtool distribution, otherwise you forgot to ship ltmain.sh
10160 # with your package, and you will get complaints that there are
10161 # no rules to generate ltmain.sh.
10162 if test -f "$ltmain"; then
10163 # See if we are running on zsh, and set the options which allow our commands through
10164 # without removal of \ escapes.
10165 if test -n "${ZSH_VERSION+set}" ; then
10166 setopt NO_GLOB_SUBST
10167 fi
10168 # Now quote all the things that may contain metacharacters while being
10169 # careful not to overquote the AC_SUBSTed values. We take copies of the
10170 # variables and quote the copies for generation of the libtool script.
10171 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10172 SED SHELL STRIP \
10173 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10174 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10175 deplibs_check_method reload_flag reload_cmds need_locks \
10176 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10177 lt_cv_sys_global_symbol_to_c_name_address \
10178 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10179 old_postinstall_cmds old_postuninstall_cmds \
10180 compiler \
10181 CC \
10182 LD \
10183 lt_prog_compiler_wl \
10184 lt_prog_compiler_pic \
10185 lt_prog_compiler_static \
10186 lt_prog_compiler_no_builtin_flag \
10187 export_dynamic_flag_spec \
10188 thread_safe_flag_spec \
10189 whole_archive_flag_spec \
10190 enable_shared_with_static_runtimes \
10191 old_archive_cmds \
10192 old_archive_from_new_cmds \
10193 predep_objects \
10194 postdep_objects \
10195 predeps \
10196 postdeps \
10197 compiler_lib_search_path \
10198 archive_cmds \
10199 archive_expsym_cmds \
10200 postinstall_cmds \
10201 postuninstall_cmds \
10202 old_archive_from_expsyms_cmds \
10203 allow_undefined_flag \
10204 no_undefined_flag \
10205 export_symbols_cmds \
10206 hardcode_libdir_flag_spec \
10207 hardcode_libdir_flag_spec_ld \
10208 hardcode_libdir_separator \
10209 hardcode_automatic \
10210 module_cmds \
10211 module_expsym_cmds \
10212 lt_cv_prog_compiler_c_o \
10213 exclude_expsyms \
10214 include_expsyms; do
10216 case $var in
10217 old_archive_cmds | \
10218 old_archive_from_new_cmds | \
10219 archive_cmds | \
10220 archive_expsym_cmds | \
10221 module_cmds | \
10222 module_expsym_cmds | \
10223 old_archive_from_expsyms_cmds | \
10224 export_symbols_cmds | \
10225 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10226 postinstall_cmds | postuninstall_cmds | \
10227 old_postinstall_cmds | old_postuninstall_cmds | \
10228 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10229 # Double-quote double-evaled strings.
10230 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10231 ;;
10232 *)
10233 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10234 ;;
10235 esac
10236 done
10238 case $lt_echo in
10239 *'\$0 --fallback-echo"')
10240 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10241 ;;
10242 esac
10244 cfgfile="${ofile}T"
10245 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10246 $rm -f "$cfgfile"
10247 { echo "$as_me:$LINENO: creating $ofile" >&5
10248 echo "$as_me: creating $ofile" >&6;}
10250 cat <<__EOF__ >> "$cfgfile"
10251 #! $SHELL
10253 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10254 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10255 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10256 #
10257 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10258 # Free Software Foundation, Inc.
10259 #
10260 # This file is part of GNU Libtool:
10261 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10262 #
10263 # This program is free software; you can redistribute it and/or modify
10264 # it under the terms of the GNU General Public License as published by
10265 # the Free Software Foundation; either version 2 of the License, or
10266 # (at your option) any later version.
10267 #
10268 # This program is distributed in the hope that it will be useful, but
10269 # WITHOUT ANY WARRANTY; without even the implied warranty of
10270 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10271 # General Public License for more details.
10272 #
10273 # You should have received a copy of the GNU General Public License
10274 # along with this program; if not, write to the Free Software
10275 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10276 #
10277 # As a special exception to the GNU General Public License, if you
10278 # distribute this file as part of a program that contains a
10279 # configuration script generated by Autoconf, you may include it under
10280 # the same distribution terms that you use for the rest of that program.
10282 # A sed program that does not truncate output.
10283 SED=$lt_SED
10285 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10286 Xsed="$SED -e 1s/^X//"
10288 # The HP-UX ksh and POSIX shell print the target directory to stdout
10289 # if CDPATH is set.
10290 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10292 # The names of the tagged configurations supported by this script.
10293 available_tags=
10295 # ### BEGIN LIBTOOL CONFIG
10297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10299 # Shell to use when invoking shell scripts.
10300 SHELL=$lt_SHELL
10302 # Whether or not to build shared libraries.
10303 build_libtool_libs=$enable_shared
10305 # Whether or not to build static libraries.
10306 build_old_libs=$enable_static
10308 # Whether or not to add -lc for building shared libraries.
10309 build_libtool_need_lc=$archive_cmds_need_lc
10311 # Whether or not to disallow shared libs when runtime libs are static
10312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10314 # Whether or not to optimize for fast installation.
10315 fast_install=$enable_fast_install
10317 # The host system.
10318 host_alias=$host_alias
10319 host=$host
10320 host_os=$host_os
10322 # The build system.
10323 build_alias=$build_alias
10324 build=$build
10325 build_os=$build_os
10327 # An echo program that does not interpret backslashes.
10328 echo=$lt_echo
10330 # The archiver.
10331 AR=$lt_AR
10332 AR_FLAGS=$lt_AR_FLAGS
10334 # A C compiler.
10335 LTCC=$lt_LTCC
10337 # LTCC compiler flags.
10338 LTCFLAGS=$lt_LTCFLAGS
10340 # A language-specific compiler.
10341 CC=$lt_compiler
10343 # Is the compiler the GNU C compiler?
10344 with_gcc=$GCC
10346 # An ERE matcher.
10347 EGREP=$lt_EGREP
10349 # The linker used to build libraries.
10350 LD=$lt_LD
10352 # Whether we need hard or soft links.
10353 LN_S=$lt_LN_S
10355 # A BSD-compatible nm program.
10356 NM=$lt_NM
10358 # A symbol stripping program
10359 STRIP=$lt_STRIP
10361 # Used to examine libraries when file_magic_cmd begins "file"
10362 MAGIC_CMD=$MAGIC_CMD
10364 # Used on cygwin: DLL creation program.
10365 DLLTOOL="$DLLTOOL"
10367 # Used on cygwin: object dumper.
10368 OBJDUMP="$OBJDUMP"
10370 # Used on cygwin: assembler.
10371 AS="$AS"
10373 # The name of the directory that contains temporary libtool files.
10374 objdir=$objdir
10376 # How to create reloadable object files.
10377 reload_flag=$lt_reload_flag
10378 reload_cmds=$lt_reload_cmds
10380 # How to pass a linker flag through the compiler.
10381 wl=$lt_lt_prog_compiler_wl
10383 # Object file suffix (normally "o").
10384 objext="$ac_objext"
10386 # Old archive suffix (normally "a").
10387 libext="$libext"
10389 # Shared library suffix (normally ".so").
10390 shrext_cmds='$shrext_cmds'
10392 # Executable file suffix (normally "").
10393 exeext="$exeext"
10395 # Additional compiler flags for building library objects.
10396 pic_flag=$lt_lt_prog_compiler_pic
10397 pic_mode=$pic_mode
10399 # What is the maximum length of a command?
10400 max_cmd_len=$lt_cv_sys_max_cmd_len
10402 # Does compiler simultaneously support -c and -o options?
10403 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10405 # Must we lock files when doing compilation?
10406 need_locks=$lt_need_locks
10408 # Do we need the lib prefix for modules?
10409 need_lib_prefix=$need_lib_prefix
10411 # Do we need a version for libraries?
10412 need_version=$need_version
10414 # Whether dlopen is supported.
10415 dlopen_support=$enable_dlopen
10417 # Whether dlopen of programs is supported.
10418 dlopen_self=$enable_dlopen_self
10420 # Whether dlopen of statically linked programs is supported.
10421 dlopen_self_static=$enable_dlopen_self_static
10423 # Compiler flag to prevent dynamic linking.
10424 link_static_flag=$lt_lt_prog_compiler_static
10426 # Compiler flag to turn off builtin functions.
10427 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10429 # Compiler flag to allow reflexive dlopens.
10430 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10432 # Compiler flag to generate shared objects directly from archives.
10433 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10435 # Compiler flag to generate thread-safe objects.
10436 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10438 # Library versioning type.
10439 version_type=$version_type
10441 # Format of library name prefix.
10442 libname_spec=$lt_libname_spec
10444 # List of archive names. First name is the real one, the rest are links.
10445 # The last name is the one that the linker finds with -lNAME.
10446 library_names_spec=$lt_library_names_spec
10448 # The coded name of the library, if different from the real name.
10449 soname_spec=$lt_soname_spec
10451 # Commands used to build and install an old-style archive.
10452 RANLIB=$lt_RANLIB
10453 old_archive_cmds=$lt_old_archive_cmds
10454 old_postinstall_cmds=$lt_old_postinstall_cmds
10455 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10457 # Create an old-style archive from a shared archive.
10458 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10460 # Create a temporary old-style archive to link instead of a shared archive.
10461 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10463 # Commands used to build and install a shared archive.
10464 archive_cmds=$lt_archive_cmds
10465 archive_expsym_cmds=$lt_archive_expsym_cmds
10466 postinstall_cmds=$lt_postinstall_cmds
10467 postuninstall_cmds=$lt_postuninstall_cmds
10469 # Commands used to build a loadable module (assumed same as above if empty)
10470 module_cmds=$lt_module_cmds
10471 module_expsym_cmds=$lt_module_expsym_cmds
10473 # Commands to strip libraries.
10474 old_striplib=$lt_old_striplib
10475 striplib=$lt_striplib
10477 # Dependencies to place before the objects being linked to create a
10478 # shared library.
10479 predep_objects=$lt_predep_objects
10481 # Dependencies to place after the objects being linked to create a
10482 # shared library.
10483 postdep_objects=$lt_postdep_objects
10485 # Dependencies to place before the objects being linked to create a
10486 # shared library.
10487 predeps=$lt_predeps
10489 # Dependencies to place after the objects being linked to create a
10490 # shared library.
10491 postdeps=$lt_postdeps
10493 # The library search path used internally by the compiler when linking
10494 # a shared library.
10495 compiler_lib_search_path=$lt_compiler_lib_search_path
10497 # Method to check whether dependent libraries are shared objects.
10498 deplibs_check_method=$lt_deplibs_check_method
10500 # Command to use when deplibs_check_method == file_magic.
10501 file_magic_cmd=$lt_file_magic_cmd
10503 # Flag that allows shared libraries with undefined symbols to be built.
10504 allow_undefined_flag=$lt_allow_undefined_flag
10506 # Flag that forces no undefined symbols.
10507 no_undefined_flag=$lt_no_undefined_flag
10509 # Commands used to finish a libtool library installation in a directory.
10510 finish_cmds=$lt_finish_cmds
10512 # Same as above, but a single script fragment to be evaled but not shown.
10513 finish_eval=$lt_finish_eval
10515 # Take the output of nm and produce a listing of raw symbols and C names.
10516 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10518 # Transform the output of nm in a proper C declaration
10519 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10521 # Transform the output of nm in a C name address pair
10522 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10524 # This is the shared library runtime path variable.
10525 runpath_var=$runpath_var
10527 # This is the shared library path variable.
10528 shlibpath_var=$shlibpath_var
10530 # Is shlibpath searched before the hard-coded library search path?
10531 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10533 # How to hardcode a shared library path into an executable.
10534 hardcode_action=$hardcode_action
10536 # Whether we should hardcode library paths into libraries.
10537 hardcode_into_libs=$hardcode_into_libs
10539 # Flag to hardcode \$libdir into a binary during linking.
10540 # This must work even if \$libdir does not exist.
10541 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10543 # If ld is used when linking, flag to hardcode \$libdir into
10544 # a binary during linking. This must work even if \$libdir does
10545 # not exist.
10546 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10548 # Whether we need a single -rpath flag with a separated argument.
10549 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10551 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10552 # resulting binary.
10553 hardcode_direct=$hardcode_direct
10555 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10556 # resulting binary.
10557 hardcode_minus_L=$hardcode_minus_L
10559 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10560 # the resulting binary.
10561 hardcode_shlibpath_var=$hardcode_shlibpath_var
10563 # Set to yes if building a shared library automatically hardcodes DIR into the library
10564 # and all subsequent libraries and executables linked against it.
10565 hardcode_automatic=$hardcode_automatic
10567 # Variables whose values should be saved in libtool wrapper scripts and
10568 # restored at relink time.
10569 variables_saved_for_relink="$variables_saved_for_relink"
10571 # Whether libtool must link a program against all its dependency libraries.
10572 link_all_deplibs=$link_all_deplibs
10574 # Compile-time system search path for libraries
10575 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10577 # Run-time system search path for libraries
10578 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10580 # Fix the shell variable \$srcfile for the compiler.
10581 fix_srcfile_path="$fix_srcfile_path"
10583 # Set to yes if exported symbols are required.
10584 always_export_symbols=$always_export_symbols
10586 # The commands to list exported symbols.
10587 export_symbols_cmds=$lt_export_symbols_cmds
10589 # The commands to extract the exported symbol list from a shared archive.
10590 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10592 # Symbols that should not be listed in the preloaded symbols.
10593 exclude_expsyms=$lt_exclude_expsyms
10595 # Symbols that must always be exported.
10596 include_expsyms=$lt_include_expsyms
10598 # ### END LIBTOOL CONFIG
10600 __EOF__
10603 case $host_os in
10604 aix3*)
10605 cat <<\EOF >> "$cfgfile"
10607 # AIX sometimes has problems with the GCC collect2 program. For some
10608 # reason, if we set the COLLECT_NAMES environment variable, the problems
10609 # vanish in a puff of smoke.
10610 if test "X${COLLECT_NAMES+set}" != Xset; then
10611 COLLECT_NAMES=
10612 export COLLECT_NAMES
10613 fi
10614 EOF
10615 ;;
10616 esac
10618 # We use sed instead of cat because bash on DJGPP gets confused if
10619 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10620 # text mode, it properly converts lines to CR/LF. This bash problem
10621 # is reportedly fixed, but why not run on old versions too?
10622 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10624 mv -f "$cfgfile" "$ofile" || \
10625 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10626 chmod +x "$ofile"
10628 else
10629 # If there is no Makefile yet, we rely on a make rule to execute
10630 # `config.status --recheck' to rerun these tests and create the
10631 # libtool script then.
10632 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10633 if test -f "$ltmain_in"; then
10634 test -f Makefile && make "$ltmain"
10635 fi
10636 fi
10639 ac_ext=c
10640 ac_cpp='$CPP $CPPFLAGS'
10641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10645 CC="$lt_save_CC"
10648 # Check whether --with-tags was given.
10649 if test "${with_tags+set}" = set; then
10650 withval=$with_tags; tagnames="$withval"
10651 fi
10654 if test -f "$ltmain" && test -n "$tagnames"; then
10655 if test ! -f "${ofile}"; then
10656 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10657 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10658 fi
10660 if test -z "$LTCC"; then
10661 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10662 if test -z "$LTCC"; then
10663 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10664 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10665 else
10666 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10667 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10668 fi
10669 fi
10670 if test -z "$LTCFLAGS"; then
10671 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10672 fi
10674 # Extract list of available tagged configurations in $ofile.
10675 # Note that this assumes the entire list is on one line.
10676 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10679 for tagname in $tagnames; do
10680 IFS="$lt_save_ifs"
10681 # Check whether tagname contains only valid characters
10682 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10683 "") ;;
10684 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10685 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10686 { (exit 1); exit 1; }; }
10687 ;;
10688 esac
10690 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10691 then
10692 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10693 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10694 { (exit 1); exit 1; }; }
10695 fi
10697 # Update the list of available tags.
10698 if test -n "$tagname"; then
10699 echo appending configuration tag \"$tagname\" to $ofile
10701 case $tagname in
10702 CXX)
10703 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10704 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10705 (test "X$CXX" != "Xg++"))) ; then
10706 ac_ext=cpp
10707 ac_cpp='$CXXCPP $CPPFLAGS'
10708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10715 archive_cmds_need_lc_CXX=no
10716 allow_undefined_flag_CXX=
10717 always_export_symbols_CXX=no
10718 archive_expsym_cmds_CXX=
10719 export_dynamic_flag_spec_CXX=
10720 hardcode_direct_CXX=no
10721 hardcode_libdir_flag_spec_CXX=
10722 hardcode_libdir_flag_spec_ld_CXX=
10723 hardcode_libdir_separator_CXX=
10724 hardcode_minus_L_CXX=no
10725 hardcode_shlibpath_var_CXX=unsupported
10726 hardcode_automatic_CXX=no
10727 module_cmds_CXX=
10728 module_expsym_cmds_CXX=
10729 link_all_deplibs_CXX=unknown
10730 old_archive_cmds_CXX=$old_archive_cmds
10731 no_undefined_flag_CXX=
10732 whole_archive_flag_spec_CXX=
10733 enable_shared_with_static_runtimes_CXX=no
10735 # Dependencies to place before and after the object being linked:
10736 predep_objects_CXX=
10737 postdep_objects_CXX=
10738 predeps_CXX=
10739 postdeps_CXX=
10740 compiler_lib_search_path_CXX=
10742 # Source file extension for C++ test sources.
10743 ac_ext=cpp
10745 # Object file extension for compiled C++ test sources.
10746 objext=o
10747 objext_CXX=$objext
10749 # Code to be used in simple compile tests
10750 lt_simple_compile_test_code="int some_variable = 0;\n"
10752 # Code to be used in simple link tests
10753 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10755 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10757 # If no C compiler was specified, use CC.
10758 LTCC=${LTCC-"$CC"}
10760 # If no C compiler flags were specified, use CFLAGS.
10761 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10763 # Allow CC to be a program name with arguments.
10764 compiler=$CC
10767 # save warnings/boilerplate of simple test code
10768 ac_outfile=conftest.$ac_objext
10769 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10770 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10771 _lt_compiler_boilerplate=`cat conftest.err`
10772 $rm conftest*
10774 ac_outfile=conftest.$ac_objext
10775 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10776 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10777 _lt_linker_boilerplate=`cat conftest.err`
10778 $rm conftest*
10781 # Allow CC to be a program name with arguments.
10782 lt_save_CC=$CC
10783 lt_save_LD=$LD
10784 lt_save_GCC=$GCC
10785 GCC=$GXX
10786 lt_save_with_gnu_ld=$with_gnu_ld
10787 lt_save_path_LD=$lt_cv_path_LD
10788 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10789 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10790 else
10791 $as_unset lt_cv_prog_gnu_ld
10792 fi
10793 if test -n "${lt_cv_path_LDCXX+set}"; then
10794 lt_cv_path_LD=$lt_cv_path_LDCXX
10795 else
10796 $as_unset lt_cv_path_LD
10797 fi
10798 test -z "${LDCXX+set}" || LD=$LDCXX
10799 CC=${CXX-"c++"}
10800 compiler=$CC
10801 compiler_CXX=$CC
10802 for cc_temp in $compiler""; do
10803 case $cc_temp in
10804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10806 \-*) ;;
10807 *) break;;
10808 esac
10809 done
10810 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10813 # We don't want -fno-exception wen compiling C++ code, so set the
10814 # no_builtin_flag separately
10815 if test "$GXX" = yes; then
10816 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10817 else
10818 lt_prog_compiler_no_builtin_flag_CXX=
10819 fi
10821 if test "$GXX" = yes; then
10822 # Set up default GNU C++ configuration
10825 # Check whether --with-gnu-ld was given.
10826 if test "${with_gnu_ld+set}" = set; then
10827 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10828 else
10829 with_gnu_ld=no
10830 fi
10832 ac_prog=ld
10833 if test "$GCC" = yes; then
10834 # Check if gcc -print-prog-name=ld gives a path.
10835 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10836 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10837 case $host in
10838 *-*-mingw*)
10839 # gcc leaves a trailing carriage return which upsets mingw
10840 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10841 *)
10842 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10843 esac
10844 case $ac_prog in
10845 # Accept absolute paths.
10846 [\\/]* | ?:[\\/]*)
10847 re_direlt='/[^/][^/]*/\.\./'
10848 # Canonicalize the pathname of ld
10849 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10850 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10851 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10852 done
10853 test -z "$LD" && LD="$ac_prog"
10854 ;;
10855 "")
10856 # If it fails, then pretend we aren't using GCC.
10857 ac_prog=ld
10858 ;;
10859 *)
10860 # If it is relative, then search for the first ld in PATH.
10861 with_gnu_ld=unknown
10862 ;;
10863 esac
10864 elif test "$with_gnu_ld" = yes; then
10865 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10866 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10867 else
10868 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10869 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10870 fi
10871 if test "${lt_cv_path_LD+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 else
10874 if test -z "$LD"; then
10875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10876 for ac_dir in $PATH; do
10877 IFS="$lt_save_ifs"
10878 test -z "$ac_dir" && ac_dir=.
10879 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10880 lt_cv_path_LD="$ac_dir/$ac_prog"
10881 # Check to see if the program is GNU ld. I'd rather use --version,
10882 # but apparently some variants of GNU ld only accept -v.
10883 # Break only if it was the GNU/non-GNU ld that we prefer.
10884 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10885 *GNU* | *'with BFD'*)
10886 test "$with_gnu_ld" != no && break
10887 ;;
10888 *)
10889 test "$with_gnu_ld" != yes && break
10890 ;;
10891 esac
10892 fi
10893 done
10894 IFS="$lt_save_ifs"
10895 else
10896 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10897 fi
10898 fi
10900 LD="$lt_cv_path_LD"
10901 if test -n "$LD"; then
10902 { echo "$as_me:$LINENO: result: $LD" >&5
10903 echo "${ECHO_T}$LD" >&6; }
10904 else
10905 { echo "$as_me:$LINENO: result: no" >&5
10906 echo "${ECHO_T}no" >&6; }
10907 fi
10908 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10909 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10910 { (exit 1); exit 1; }; }
10911 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10912 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10913 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10917 case `$LD -v 2>&1 </dev/null` in
10918 *GNU* | *'with BFD'*)
10919 lt_cv_prog_gnu_ld=yes
10920 ;;
10921 *)
10922 lt_cv_prog_gnu_ld=no
10923 ;;
10924 esac
10925 fi
10926 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10927 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10928 with_gnu_ld=$lt_cv_prog_gnu_ld
10932 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10933 # archiving commands below assume that GNU ld is being used.
10934 if test "$with_gnu_ld" = yes; then
10935 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10936 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'
10938 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10939 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10941 # If archive_cmds runs LD, not CC, wlarc should be empty
10942 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10943 # investigate it a little bit more. (MM)
10944 wlarc='${wl}'
10946 # ancient GNU ld didn't support --whole-archive et. al.
10947 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10948 grep 'no-whole-archive' > /dev/null; then
10949 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10950 else
10951 whole_archive_flag_spec_CXX=
10952 fi
10953 else
10954 with_gnu_ld=no
10955 wlarc=
10957 # A generic and very simple default shared library creation
10958 # command for GNU C++ for the case where it uses the native
10959 # linker, instead of GNU ld. If possible, this setting should
10960 # overridden to take advantage of the native linker features on
10961 # the platform it is being used on.
10962 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10963 fi
10965 # Commands to make compiler produce verbose output that lists
10966 # what "hidden" libraries, object files and flags are used when
10967 # linking a shared library.
10968 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10970 else
10971 GXX=no
10972 with_gnu_ld=no
10973 wlarc=
10974 fi
10976 # PORTME: fill in a description of your system's C++ link characteristics
10977 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10978 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10979 ld_shlibs_CXX=yes
10980 case $host_os in
10981 aix3*)
10982 # FIXME: insert proper C++ library support
10983 ld_shlibs_CXX=no
10984 ;;
10985 aix4* | aix5*)
10986 if test "$host_cpu" = ia64; then
10987 # On IA64, the linker does run time linking by default, so we don't
10988 # have to do anything special.
10989 aix_use_runtimelinking=no
10990 exp_sym_flag='-Bexport'
10991 no_entry_flag=""
10992 else
10993 aix_use_runtimelinking=no
10995 # Test if we are trying to use run time linking or normal
10996 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10997 # need to do runtime linking.
10998 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10999 for ld_flag in $LDFLAGS; do
11000 case $ld_flag in
11001 *-brtl*)
11002 aix_use_runtimelinking=yes
11003 break
11004 ;;
11005 esac
11006 done
11007 ;;
11008 esac
11010 exp_sym_flag='-bexport'
11011 no_entry_flag='-bnoentry'
11012 fi
11014 # When large executables or shared objects are built, AIX ld can
11015 # have problems creating the table of contents. If linking a library
11016 # or program results in "error TOC overflow" add -mminimal-toc to
11017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11020 archive_cmds_CXX=''
11021 hardcode_direct_CXX=yes
11022 hardcode_libdir_separator_CXX=':'
11023 link_all_deplibs_CXX=yes
11025 if test "$GXX" = yes; then
11026 case $host_os in aix4.[012]|aix4.[012].*)
11027 # We only want to do this on AIX 4.2 and lower, the check
11028 # below for broken collect2 doesn't work under 4.3+
11029 collect2name=`${CC} -print-prog-name=collect2`
11030 if test -f "$collect2name" && \
11031 strings "$collect2name" | grep resolve_lib_name >/dev/null
11032 then
11033 # We have reworked collect2
11034 hardcode_direct_CXX=yes
11035 else
11036 # We have old collect2
11037 hardcode_direct_CXX=unsupported
11038 # It fails to find uninstalled libraries when the uninstalled
11039 # path is not listed in the libpath. Setting hardcode_minus_L
11040 # to unsupported forces relinking
11041 hardcode_minus_L_CXX=yes
11042 hardcode_libdir_flag_spec_CXX='-L$libdir'
11043 hardcode_libdir_separator_CXX=
11044 fi
11045 ;;
11046 esac
11047 shared_flag='-shared'
11048 if test "$aix_use_runtimelinking" = yes; then
11049 shared_flag="$shared_flag "'${wl}-G'
11050 fi
11051 else
11052 # not using gcc
11053 if test "$host_cpu" = ia64; then
11054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11055 # chokes on -Wl,-G. The following line is correct:
11056 shared_flag='-G'
11057 else
11058 if test "$aix_use_runtimelinking" = yes; then
11059 shared_flag='${wl}-G'
11060 else
11061 shared_flag='${wl}-bM:SRE'
11062 fi
11063 fi
11064 fi
11066 # It seems that -bexpall does not export symbols beginning with
11067 # underscore (_), so it is better to generate a list of symbols to export.
11068 always_export_symbols_CXX=yes
11069 if test "$aix_use_runtimelinking" = yes; then
11070 # Warning - without using the other runtime loading flags (-brtl),
11071 # -berok will link without error, but may produce a broken library.
11072 allow_undefined_flag_CXX='-berok'
11073 # Determine the default libpath from the value encoded in an empty executable.
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h. */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11081 int
11082 main ()
11083 {
11085 ;
11086 return 0;
11087 }
11088 _ACEOF
11089 rm -f conftest.$ac_objext conftest$ac_exeext
11090 if { (ac_try="$ac_link"
11091 case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094 esac
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_link") 2>conftest.er1
11097 ac_status=$?
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } && {
11103 test -z "$ac_cxx_werror_flag" ||
11104 test ! -s conftest.err
11105 } && test -s conftest$ac_exeext &&
11106 $as_test_x conftest$ac_exeext; then
11108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11109 }'`
11110 # Check for a 64-bit object if we didn't find anything.
11111 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; }
11112 }'`; fi
11113 else
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11118 fi
11120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11121 conftest$ac_exeext conftest.$ac_ext
11122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11124 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11126 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"
11127 else
11128 if test "$host_cpu" = ia64; then
11129 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11130 allow_undefined_flag_CXX="-z nodefs"
11131 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"
11132 else
11133 # Determine the default libpath from the value encoded in an empty executable.
11134 cat >conftest.$ac_ext <<_ACEOF
11135 /* confdefs.h. */
11136 _ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11141 int
11142 main ()
11143 {
11145 ;
11146 return 0;
11147 }
11148 _ACEOF
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (ac_try="$ac_link"
11151 case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11154 esac
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_link") 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } && {
11163 test -z "$ac_cxx_werror_flag" ||
11164 test ! -s conftest.err
11165 } && test -s conftest$ac_exeext &&
11166 $as_test_x conftest$ac_exeext; then
11168 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11169 }'`
11170 # Check for a 64-bit object if we didn't find anything.
11171 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; }
11172 }'`; fi
11173 else
11174 echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11178 fi
11180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11181 conftest$ac_exeext conftest.$ac_ext
11182 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11184 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11185 # Warning - without using the other run time loading flags,
11186 # -berok will link without error, but may produce a broken library.
11187 no_undefined_flag_CXX=' ${wl}-bernotok'
11188 allow_undefined_flag_CXX=' ${wl}-berok'
11189 # Exported symbols can be pulled into shared objects from archives
11190 whole_archive_flag_spec_CXX='$convenience'
11191 archive_cmds_need_lc_CXX=yes
11192 # This is similar to how AIX traditionally builds its shared libraries.
11193 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'
11194 fi
11195 fi
11196 ;;
11198 beos*)
11199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11200 allow_undefined_flag_CXX=unsupported
11201 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11202 # support --undefined. This deserves some investigation. FIXME
11203 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11204 else
11205 ld_shlibs_CXX=no
11206 fi
11207 ;;
11209 chorus*)
11210 case $cc_basename in
11211 *)
11212 # FIXME: insert proper C++ library support
11213 ld_shlibs_CXX=no
11214 ;;
11215 esac
11216 ;;
11218 cygwin* | mingw* | pw32*)
11219 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11220 # as there is no search path for DLLs.
11221 hardcode_libdir_flag_spec_CXX='-L$libdir'
11222 allow_undefined_flag_CXX=unsupported
11223 always_export_symbols_CXX=no
11224 enable_shared_with_static_runtimes_CXX=yes
11226 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11227 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'
11228 # If the export-symbols file already is a .def file (1st line
11229 # is EXPORTS), use it as is; otherwise, prepend...
11230 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11231 cp $export_symbols $output_objdir/$soname.def;
11232 else
11233 echo EXPORTS > $output_objdir/$soname.def;
11234 cat $export_symbols >> $output_objdir/$soname.def;
11235 fi~
11236 $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'
11237 else
11238 ld_shlibs_CXX=no
11239 fi
11240 ;;
11241 darwin* | rhapsody*)
11242 case $host_os in
11243 rhapsody* | darwin1.[012])
11244 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11245 ;;
11246 *) # Darwin 1.3 on
11247 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11248 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11249 else
11250 case ${MACOSX_DEPLOYMENT_TARGET} in
11251 10.[012])
11252 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11253 ;;
11254 10.*)
11255 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11256 ;;
11257 esac
11258 fi
11259 ;;
11260 esac
11261 archive_cmds_need_lc_CXX=no
11262 hardcode_direct_CXX=no
11263 hardcode_automatic_CXX=yes
11264 hardcode_shlibpath_var_CXX=unsupported
11265 whole_archive_flag_spec_CXX=''
11266 link_all_deplibs_CXX=yes
11268 if test "$GXX" = yes ; then
11269 lt_int_apple_cc_single_mod=no
11270 output_verbose_link_cmd='echo'
11271 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11272 lt_int_apple_cc_single_mod=yes
11273 fi
11274 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11275 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11276 else
11277 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'
11278 fi
11279 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11280 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11281 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11282 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}'
11283 else
11284 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}'
11285 fi
11286 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}'
11287 else
11288 case $cc_basename in
11289 xlc*)
11290 output_verbose_link_cmd='echo'
11291 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'
11292 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11293 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11294 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}'
11295 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}'
11296 ;;
11297 *)
11298 ld_shlibs_CXX=no
11299 ;;
11300 esac
11301 fi
11302 ;;
11304 dgux*)
11305 case $cc_basename in
11306 ec++*)
11307 # FIXME: insert proper C++ library support
11308 ld_shlibs_CXX=no
11309 ;;
11310 ghcx*)
11311 # Green Hills C++ Compiler
11312 # FIXME: insert proper C++ library support
11313 ld_shlibs_CXX=no
11314 ;;
11315 *)
11316 # FIXME: insert proper C++ library support
11317 ld_shlibs_CXX=no
11318 ;;
11319 esac
11320 ;;
11321 freebsd[12]*)
11322 # C++ shared libraries reported to be fairly broken before switch to ELF
11323 ld_shlibs_CXX=no
11324 ;;
11325 freebsd-elf*)
11326 archive_cmds_need_lc_CXX=no
11327 ;;
11328 freebsd* | dragonfly*)
11329 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11330 # conventions
11331 ld_shlibs_CXX=yes
11332 ;;
11333 gnu*)
11334 ;;
11335 hpux9*)
11336 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11337 hardcode_libdir_separator_CXX=:
11338 export_dynamic_flag_spec_CXX='${wl}-E'
11339 hardcode_direct_CXX=yes
11340 hardcode_minus_L_CXX=yes # Not in the search PATH,
11341 # but as the default
11342 # location of the library.
11344 case $cc_basename in
11345 CC*)
11346 # FIXME: insert proper C++ library support
11347 ld_shlibs_CXX=no
11348 ;;
11349 aCC*)
11350 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'
11351 # Commands to make compiler produce verbose output that lists
11352 # what "hidden" libraries, object files and flags are used when
11353 # linking a shared library.
11354 #
11355 # There doesn't appear to be a way to prevent this compiler from
11356 # explicitly linking system object files so we need to strip them
11357 # from the output so that they don't get included in the library
11358 # dependencies.
11359 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'
11360 ;;
11361 *)
11362 if test "$GXX" = yes; then
11363 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'
11364 else
11365 # FIXME: insert proper C++ library support
11366 ld_shlibs_CXX=no
11367 fi
11368 ;;
11369 esac
11370 ;;
11371 hpux10*|hpux11*)
11372 if test $with_gnu_ld = no; then
11373 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11374 hardcode_libdir_separator_CXX=:
11376 case $host_cpu in
11377 hppa*64*|ia64*)
11378 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11379 ;;
11380 *)
11381 export_dynamic_flag_spec_CXX='${wl}-E'
11382 ;;
11383 esac
11384 fi
11385 case $host_cpu in
11386 hppa*64*|ia64*)
11387 hardcode_direct_CXX=no
11388 hardcode_shlibpath_var_CXX=no
11389 ;;
11390 *)
11391 hardcode_direct_CXX=yes
11392 hardcode_minus_L_CXX=yes # Not in the search PATH,
11393 # but as the default
11394 # location of the library.
11395 ;;
11396 esac
11398 case $cc_basename in
11399 CC*)
11400 # FIXME: insert proper C++ library support
11401 ld_shlibs_CXX=no
11402 ;;
11403 aCC*)
11404 case $host_cpu in
11405 hppa*64*)
11406 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11407 ;;
11408 ia64*)
11409 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11410 ;;
11411 *)
11412 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11413 ;;
11414 esac
11415 # Commands to make compiler produce verbose output that lists
11416 # what "hidden" libraries, object files and flags are used when
11417 # linking a shared library.
11418 #
11419 # There doesn't appear to be a way to prevent this compiler from
11420 # explicitly linking system object files so we need to strip them
11421 # from the output so that they don't get included in the library
11422 # dependencies.
11423 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'
11424 ;;
11425 *)
11426 if test "$GXX" = yes; then
11427 if test $with_gnu_ld = no; then
11428 case $host_cpu in
11429 hppa*64*)
11430 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11431 ;;
11432 ia64*)
11433 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11434 ;;
11435 *)
11436 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'
11437 ;;
11438 esac
11439 fi
11440 else
11441 # FIXME: insert proper C++ library support
11442 ld_shlibs_CXX=no
11443 fi
11444 ;;
11445 esac
11446 ;;
11447 interix3*)
11448 hardcode_direct_CXX=no
11449 hardcode_shlibpath_var_CXX=no
11450 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11451 export_dynamic_flag_spec_CXX='${wl}-E'
11452 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11453 # Instead, shared libraries are loaded at an image base (0x10000000 by
11454 # default) and relocated if they conflict, which is a slow very memory
11455 # consuming and fragmenting process. To avoid this, we pick a random,
11456 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11457 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11458 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'
11459 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'
11460 ;;
11461 irix5* | irix6*)
11462 case $cc_basename in
11463 CC*)
11464 # SGI C++
11465 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'
11467 # Archives containing C++ object files must be created using
11468 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11469 # necessary to make sure instantiated templates are included
11470 # in the archive.
11471 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11472 ;;
11473 *)
11474 if test "$GXX" = yes; then
11475 if test "$with_gnu_ld" = no; then
11476 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'
11477 else
11478 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'
11479 fi
11480 fi
11481 link_all_deplibs_CXX=yes
11482 ;;
11483 esac
11484 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11485 hardcode_libdir_separator_CXX=:
11486 ;;
11487 linux* | k*bsd*-gnu)
11488 case $cc_basename in
11489 KCC*)
11490 # Kuck and Associates, Inc. (KAI) C++ Compiler
11492 # KCC will only create a shared library if the output file
11493 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11494 # to its proper name (with version) after linking.
11495 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'
11496 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'
11497 # Commands to make compiler produce verbose output that lists
11498 # what "hidden" libraries, object files and flags are used when
11499 # linking a shared library.
11500 #
11501 # There doesn't appear to be a way to prevent this compiler from
11502 # explicitly linking system object files so we need to strip them
11503 # from the output so that they don't get included in the library
11504 # dependencies.
11505 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'
11507 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11508 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11510 # Archives containing C++ object files must be created using
11511 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11512 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11513 ;;
11514 icpc*)
11515 # Intel C++
11516 with_gnu_ld=yes
11517 # version 8.0 and above of icpc choke on multiply defined symbols
11518 # if we add $predep_objects and $postdep_objects, however 7.1 and
11519 # earlier do not add the objects themselves.
11520 case `$CC -V 2>&1` in
11521 *"Version 7."*)
11522 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11523 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'
11524 ;;
11525 *) # Version 8.0 or newer
11526 tmp_idyn=
11527 case $host_cpu in
11528 ia64*) tmp_idyn=' -i_dynamic';;
11529 esac
11530 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11531 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'
11532 ;;
11533 esac
11534 archive_cmds_need_lc_CXX=no
11535 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11536 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11537 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11538 ;;
11539 pgCC*)
11540 # Portland Group C++ compiler
11541 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11542 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'
11544 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11546 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'
11547 ;;
11548 cxx*)
11549 # Compaq C++
11550 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11551 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'
11553 runpath_var=LD_RUN_PATH
11554 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11555 hardcode_libdir_separator_CXX=:
11557 # Commands to make compiler produce verbose output that lists
11558 # what "hidden" libraries, object files and flags are used when
11559 # linking a shared library.
11560 #
11561 # There doesn't appear to be a way to prevent this compiler from
11562 # explicitly linking system object files so we need to strip them
11563 # from the output so that they don't get included in the library
11564 # dependencies.
11565 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'
11566 ;;
11567 esac
11568 ;;
11569 lynxos*)
11570 # FIXME: insert proper C++ library support
11571 ld_shlibs_CXX=no
11572 ;;
11573 m88k*)
11574 # FIXME: insert proper C++ library support
11575 ld_shlibs_CXX=no
11576 ;;
11577 mvs*)
11578 case $cc_basename in
11579 cxx*)
11580 # FIXME: insert proper C++ library support
11581 ld_shlibs_CXX=no
11582 ;;
11583 *)
11584 # FIXME: insert proper C++ library support
11585 ld_shlibs_CXX=no
11586 ;;
11587 esac
11588 ;;
11589 netbsd* | netbsdelf*-gnu)
11590 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11591 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11592 wlarc=
11593 hardcode_libdir_flag_spec_CXX='-R$libdir'
11594 hardcode_direct_CXX=yes
11595 hardcode_shlibpath_var_CXX=no
11596 fi
11597 # Workaround some broken pre-1.5 toolchains
11598 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11599 ;;
11600 openbsd2*)
11601 # C++ shared libraries are fairly broken
11602 ld_shlibs_CXX=no
11603 ;;
11604 openbsd*)
11605 hardcode_direct_CXX=yes
11606 hardcode_shlibpath_var_CXX=no
11607 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11608 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11610 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11611 export_dynamic_flag_spec_CXX='${wl}-E'
11612 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11613 fi
11614 output_verbose_link_cmd='echo'
11615 ;;
11616 osf3*)
11617 case $cc_basename in
11618 KCC*)
11619 # Kuck and Associates, Inc. (KAI) C++ Compiler
11621 # KCC will only create a shared library if the output file
11622 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11623 # to its proper name (with version) after linking.
11624 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'
11626 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11627 hardcode_libdir_separator_CXX=:
11629 # Archives containing C++ object files must be created using
11630 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11631 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11633 ;;
11634 RCC*)
11635 # Rational C++ 2.4.1
11636 # FIXME: insert proper C++ library support
11637 ld_shlibs_CXX=no
11638 ;;
11639 cxx*)
11640 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11641 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'
11643 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11644 hardcode_libdir_separator_CXX=:
11646 # Commands to make compiler produce verbose output that lists
11647 # what "hidden" libraries, object files and flags are used when
11648 # linking a shared library.
11649 #
11650 # There doesn't appear to be a way to prevent this compiler from
11651 # explicitly linking system object files so we need to strip them
11652 # from the output so that they don't get included in the library
11653 # dependencies.
11654 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'
11655 ;;
11656 *)
11657 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11658 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11659 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'
11661 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11662 hardcode_libdir_separator_CXX=:
11664 # Commands to make compiler produce verbose output that lists
11665 # what "hidden" libraries, object files and flags are used when
11666 # linking a shared library.
11667 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11669 else
11670 # FIXME: insert proper C++ library support
11671 ld_shlibs_CXX=no
11672 fi
11673 ;;
11674 esac
11675 ;;
11676 osf4* | osf5*)
11677 case $cc_basename in
11678 KCC*)
11679 # Kuck and Associates, Inc. (KAI) C++ Compiler
11681 # KCC will only create a shared library if the output file
11682 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11683 # to its proper name (with version) after linking.
11684 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'
11686 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11687 hardcode_libdir_separator_CXX=:
11689 # Archives containing C++ object files must be created using
11690 # the KAI C++ compiler.
11691 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11692 ;;
11693 RCC*)
11694 # Rational C++ 2.4.1
11695 # FIXME: insert proper C++ library support
11696 ld_shlibs_CXX=no
11697 ;;
11698 cxx*)
11699 allow_undefined_flag_CXX=' -expect_unresolved \*'
11700 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'
11701 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11702 echo "-hidden">> $lib.exp~
11703 $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~
11704 $rm $lib.exp'
11706 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11707 hardcode_libdir_separator_CXX=:
11709 # Commands to make compiler produce verbose output that lists
11710 # what "hidden" libraries, object files and flags are used when
11711 # linking a shared library.
11712 #
11713 # There doesn't appear to be a way to prevent this compiler from
11714 # explicitly linking system object files so we need to strip them
11715 # from the output so that they don't get included in the library
11716 # dependencies.
11717 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'
11718 ;;
11719 *)
11720 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11721 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11722 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'
11724 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11725 hardcode_libdir_separator_CXX=:
11727 # Commands to make compiler produce verbose output that lists
11728 # what "hidden" libraries, object files and flags are used when
11729 # linking a shared library.
11730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11732 else
11733 # FIXME: insert proper C++ library support
11734 ld_shlibs_CXX=no
11735 fi
11736 ;;
11737 esac
11738 ;;
11739 psos*)
11740 # FIXME: insert proper C++ library support
11741 ld_shlibs_CXX=no
11742 ;;
11743 sunos4*)
11744 case $cc_basename in
11745 CC*)
11746 # Sun C++ 4.x
11747 # FIXME: insert proper C++ library support
11748 ld_shlibs_CXX=no
11749 ;;
11750 lcc*)
11751 # Lucid
11752 # FIXME: insert proper C++ library support
11753 ld_shlibs_CXX=no
11754 ;;
11755 *)
11756 # FIXME: insert proper C++ library support
11757 ld_shlibs_CXX=no
11758 ;;
11759 esac
11760 ;;
11761 solaris*)
11762 case $cc_basename in
11763 CC*)
11764 # Sun C++ 4.2, 5.x and Centerline C++
11765 archive_cmds_need_lc_CXX=yes
11766 no_undefined_flag_CXX=' -zdefs'
11767 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11768 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11769 $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'
11771 hardcode_libdir_flag_spec_CXX='-R$libdir'
11772 hardcode_shlibpath_var_CXX=no
11773 case $host_os in
11774 solaris2.[0-5] | solaris2.[0-5].*) ;;
11775 *)
11776 # The C++ compiler is used as linker so we must use $wl
11777 # flag to pass the commands to the underlying system
11778 # linker. We must also pass each convience library through
11779 # to the system linker between allextract/defaultextract.
11780 # The C++ compiler will combine linker options so we
11781 # cannot just pass the convience library names through
11782 # without $wl.
11783 # Supported since Solaris 2.6 (maybe 2.5.1?)
11784 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'
11785 ;;
11786 esac
11787 link_all_deplibs_CXX=yes
11789 output_verbose_link_cmd='echo'
11791 # Archives containing C++ object files must be created using
11792 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11793 # necessary to make sure instantiated templates are included
11794 # in the archive.
11795 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11796 ;;
11797 gcx*)
11798 # Green Hills C++ Compiler
11799 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11801 # The C++ compiler must be used to create the archive.
11802 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11803 ;;
11804 *)
11805 # GNU C++ compiler with Solaris linker
11806 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11807 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11808 if $CC --version | grep -v '^2\.7' > /dev/null; then
11809 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11810 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11811 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11813 # Commands to make compiler produce verbose output that lists
11814 # what "hidden" libraries, object files and flags are used when
11815 # linking a shared library.
11816 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11817 else
11818 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11819 # platform.
11820 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11821 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11822 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11824 # Commands to make compiler produce verbose output that lists
11825 # what "hidden" libraries, object files and flags are used when
11826 # linking a shared library.
11827 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11828 fi
11830 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11831 fi
11832 ;;
11833 esac
11834 ;;
11835 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11836 no_undefined_flag_CXX='${wl}-z,text'
11837 archive_cmds_need_lc_CXX=no
11838 hardcode_shlibpath_var_CXX=no
11839 runpath_var='LD_RUN_PATH'
11841 case $cc_basename in
11842 CC*)
11843 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11844 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11845 ;;
11846 *)
11847 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11848 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11849 ;;
11850 esac
11851 ;;
11852 sysv5* | sco3.2v5* | sco5v6*)
11853 # Note: We can NOT use -z defs as we might desire, because we do not
11854 # link with -lc, and that would cause any symbols used from libc to
11855 # always be unresolved, which means just about no library would
11856 # ever link correctly. If we're not using GNU ld we use -z text
11857 # though, which does catch some bad symbols but isn't as heavy-handed
11858 # as -z defs.
11859 # For security reasons, it is highly recommended that you always
11860 # use absolute paths for naming shared libraries, and exclude the
11861 # DT_RUNPATH tag from executables and libraries. But doing so
11862 # requires that you compile everything twice, which is a pain.
11863 # So that behaviour is only enabled if SCOABSPATH is set to a
11864 # non-empty value in the environment. Most likely only useful for
11865 # creating official distributions of packages.
11866 # This is a hack until libtool officially supports absolute path
11867 # names for shared libraries.
11868 no_undefined_flag_CXX='${wl}-z,text'
11869 allow_undefined_flag_CXX='${wl}-z,nodefs'
11870 archive_cmds_need_lc_CXX=no
11871 hardcode_shlibpath_var_CXX=no
11872 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11873 hardcode_libdir_separator_CXX=':'
11874 link_all_deplibs_CXX=yes
11875 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11876 runpath_var='LD_RUN_PATH'
11878 case $cc_basename in
11879 CC*)
11880 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11881 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11882 ;;
11883 *)
11884 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11885 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11886 ;;
11887 esac
11888 ;;
11889 tandem*)
11890 case $cc_basename in
11891 NCC*)
11892 # NonStop-UX NCC 3.20
11893 # FIXME: insert proper C++ library support
11894 ld_shlibs_CXX=no
11895 ;;
11896 *)
11897 # FIXME: insert proper C++ library support
11898 ld_shlibs_CXX=no
11899 ;;
11900 esac
11901 ;;
11902 vxworks*)
11903 # FIXME: insert proper C++ library support
11904 ld_shlibs_CXX=no
11905 ;;
11906 *)
11907 # FIXME: insert proper C++ library support
11908 ld_shlibs_CXX=no
11909 ;;
11910 esac
11911 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11912 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11913 test "$ld_shlibs_CXX" = no && can_build_shared=no
11915 GCC_CXX="$GXX"
11916 LD_CXX="$LD"
11919 cat > conftest.$ac_ext <<EOF
11920 class Foo
11921 {
11922 public:
11923 Foo (void) { a = 0; }
11924 private:
11925 int a;
11926 };
11927 EOF
11929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11930 (eval $ac_compile) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; then
11934 # Parse the compiler output and extract the necessary
11935 # objects, libraries and library flags.
11937 # Sentinel used to keep track of whether or not we are before
11938 # the conftest object file.
11939 pre_test_object_deps_done=no
11941 # The `*' in the case matches for architectures that use `case' in
11942 # $output_verbose_cmd can trigger glob expansion during the loop
11943 # eval without this substitution.
11944 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11946 for p in `eval $output_verbose_link_cmd`; do
11947 case $p in
11949 -L* | -R* | -l*)
11950 # Some compilers place space between "-{L,R}" and the path.
11951 # Remove the space.
11952 if test $p = "-L" \
11953 || test $p = "-R"; then
11954 prev=$p
11955 continue
11956 else
11957 prev=
11958 fi
11960 if test "$pre_test_object_deps_done" = no; then
11961 case $p in
11962 -L* | -R*)
11963 # Internal compiler library paths should come after those
11964 # provided the user. The postdeps already come after the
11965 # user supplied libs so there is no need to process them.
11966 if test -z "$compiler_lib_search_path_CXX"; then
11967 compiler_lib_search_path_CXX="${prev}${p}"
11968 else
11969 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11970 fi
11971 ;;
11972 # The "-l" case would never come before the object being
11973 # linked, so don't bother handling this case.
11974 esac
11975 else
11976 if test -z "$postdeps_CXX"; then
11977 postdeps_CXX="${prev}${p}"
11978 else
11979 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11980 fi
11981 fi
11982 ;;
11984 *.$objext)
11985 # This assumes that the test object file only shows up
11986 # once in the compiler output.
11987 if test "$p" = "conftest.$objext"; then
11988 pre_test_object_deps_done=yes
11989 continue
11990 fi
11992 if test "$pre_test_object_deps_done" = no; then
11993 if test -z "$predep_objects_CXX"; then
11994 predep_objects_CXX="$p"
11995 else
11996 predep_objects_CXX="$predep_objects_CXX $p"
11997 fi
11998 else
11999 if test -z "$postdep_objects_CXX"; then
12000 postdep_objects_CXX="$p"
12001 else
12002 postdep_objects_CXX="$postdep_objects_CXX $p"
12003 fi
12004 fi
12005 ;;
12007 *) ;; # Ignore the rest.
12009 esac
12010 done
12012 # Clean up.
12013 rm -f a.out a.exe
12014 else
12015 echo "libtool.m4: error: problem compiling CXX test program"
12016 fi
12018 $rm -f confest.$objext
12020 # PORTME: override above test on systems where it is broken
12021 case $host_os in
12022 interix3*)
12023 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12024 # hack all around it, let's just trust "g++" to DTRT.
12025 predep_objects_CXX=
12026 postdep_objects_CXX=
12027 postdeps_CXX=
12028 ;;
12030 solaris*)
12031 case $cc_basename in
12032 CC*)
12033 # Adding this requires a known-good setup of shared libraries for
12034 # Sun compiler versions before 5.6, else PIC objects from an old
12035 # archive will be linked into the output, leading to subtle bugs.
12036 postdeps_CXX='-lCstd -lCrun'
12037 ;;
12038 esac
12039 ;;
12040 esac
12043 case " $postdeps_CXX " in
12044 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12045 esac
12047 lt_prog_compiler_wl_CXX=
12048 lt_prog_compiler_pic_CXX=
12049 lt_prog_compiler_static_CXX=
12051 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12052 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12054 # C++ specific cases for pic, static, wl, etc.
12055 if test "$GXX" = yes; then
12056 lt_prog_compiler_wl_CXX='-Wl,'
12057 lt_prog_compiler_static_CXX='-static'
12059 case $host_os in
12060 aix*)
12061 # All AIX code is PIC.
12062 if test "$host_cpu" = ia64; then
12063 # AIX 5 now supports IA64 processor
12064 lt_prog_compiler_static_CXX='-Bstatic'
12065 fi
12066 ;;
12067 amigaos*)
12068 # FIXME: we need at least 68020 code to build shared libraries, but
12069 # adding the `-m68020' flag to GCC prevents building anything better,
12070 # like `-m68040'.
12071 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12072 ;;
12073 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12074 # PIC is the default for these OSes.
12075 ;;
12076 mingw* | os2* | pw32*)
12077 # This hack is so that the source file can tell whether it is being
12078 # built for inclusion in a dll (and should export symbols for example).
12079 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12080 ;;
12081 darwin* | rhapsody*)
12082 # PIC is the default on this platform
12083 # Common symbols not allowed in MH_DYLIB files
12084 lt_prog_compiler_pic_CXX='-fno-common'
12085 ;;
12086 *djgpp*)
12087 # DJGPP does not support shared libraries at all
12088 lt_prog_compiler_pic_CXX=
12089 ;;
12090 interix3*)
12091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12092 # Instead, we relocate shared libraries at runtime.
12093 ;;
12094 sysv4*MP*)
12095 if test -d /usr/nec; then
12096 lt_prog_compiler_pic_CXX=-Kconform_pic
12097 fi
12098 ;;
12099 hpux*)
12100 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12101 # not for PA HP-UX.
12102 case $host_cpu in
12103 hppa*64*|ia64*)
12104 ;;
12105 *)
12106 lt_prog_compiler_pic_CXX='-fPIC'
12107 ;;
12108 esac
12109 ;;
12110 *)
12111 lt_prog_compiler_pic_CXX='-fPIC'
12112 ;;
12113 esac
12114 else
12115 case $host_os in
12116 aix4* | aix5*)
12117 # All AIX code is PIC.
12118 if test "$host_cpu" = ia64; then
12119 # AIX 5 now supports IA64 processor
12120 lt_prog_compiler_static_CXX='-Bstatic'
12121 else
12122 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12123 fi
12124 ;;
12125 chorus*)
12126 case $cc_basename in
12127 cxch68*)
12128 # Green Hills C++ Compiler
12129 # _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"
12130 ;;
12131 esac
12132 ;;
12133 darwin*)
12134 # PIC is the default on this platform
12135 # Common symbols not allowed in MH_DYLIB files
12136 case $cc_basename in
12137 xlc*)
12138 lt_prog_compiler_pic_CXX='-qnocommon'
12139 lt_prog_compiler_wl_CXX='-Wl,'
12140 ;;
12141 esac
12142 ;;
12143 dgux*)
12144 case $cc_basename in
12145 ec++*)
12146 lt_prog_compiler_pic_CXX='-KPIC'
12147 ;;
12148 ghcx*)
12149 # Green Hills C++ Compiler
12150 lt_prog_compiler_pic_CXX='-pic'
12151 ;;
12152 *)
12153 ;;
12154 esac
12155 ;;
12156 freebsd* | dragonfly*)
12157 # FreeBSD uses GNU C++
12158 ;;
12159 hpux9* | hpux10* | hpux11*)
12160 case $cc_basename in
12161 CC*)
12162 lt_prog_compiler_wl_CXX='-Wl,'
12163 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12164 if test "$host_cpu" != ia64; then
12165 lt_prog_compiler_pic_CXX='+Z'
12166 fi
12167 ;;
12168 aCC*)
12169 lt_prog_compiler_wl_CXX='-Wl,'
12170 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12171 case $host_cpu in
12172 hppa*64*|ia64*)
12173 # +Z the default
12174 ;;
12175 *)
12176 lt_prog_compiler_pic_CXX='+Z'
12177 ;;
12178 esac
12179 ;;
12180 *)
12181 ;;
12182 esac
12183 ;;
12184 interix*)
12185 # This is c89, which is MS Visual C++ (no shared libs)
12186 # Anyone wants to do a port?
12187 ;;
12188 irix5* | irix6* | nonstopux*)
12189 case $cc_basename in
12190 CC*)
12191 lt_prog_compiler_wl_CXX='-Wl,'
12192 lt_prog_compiler_static_CXX='-non_shared'
12193 # CC pic flag -KPIC is the default.
12194 ;;
12195 *)
12196 ;;
12197 esac
12198 ;;
12199 linux* | k*bsd*-gnu)
12200 case $cc_basename in
12201 KCC*)
12202 # KAI C++ Compiler
12203 lt_prog_compiler_wl_CXX='--backend -Wl,'
12204 lt_prog_compiler_pic_CXX='-fPIC'
12205 ;;
12206 icpc* | ecpc*)
12207 # Intel C++
12208 lt_prog_compiler_wl_CXX='-Wl,'
12209 lt_prog_compiler_pic_CXX='-KPIC'
12210 lt_prog_compiler_static_CXX='-static'
12211 ;;
12212 pgCC*)
12213 # Portland Group C++ compiler.
12214 lt_prog_compiler_wl_CXX='-Wl,'
12215 lt_prog_compiler_pic_CXX='-fpic'
12216 lt_prog_compiler_static_CXX='-Bstatic'
12217 ;;
12218 cxx*)
12219 # Compaq C++
12220 # Make sure the PIC flag is empty. It appears that all Alpha
12221 # Linux and Compaq Tru64 Unix objects are PIC.
12222 lt_prog_compiler_pic_CXX=
12223 lt_prog_compiler_static_CXX='-non_shared'
12224 ;;
12225 *)
12226 ;;
12227 esac
12228 ;;
12229 lynxos*)
12230 ;;
12231 m88k*)
12232 ;;
12233 mvs*)
12234 case $cc_basename in
12235 cxx*)
12236 lt_prog_compiler_pic_CXX='-W c,exportall'
12237 ;;
12238 *)
12239 ;;
12240 esac
12241 ;;
12242 netbsd* | netbsdelf*-gnu)
12243 ;;
12244 osf3* | osf4* | osf5*)
12245 case $cc_basename in
12246 KCC*)
12247 lt_prog_compiler_wl_CXX='--backend -Wl,'
12248 ;;
12249 RCC*)
12250 # Rational C++ 2.4.1
12251 lt_prog_compiler_pic_CXX='-pic'
12252 ;;
12253 cxx*)
12254 # Digital/Compaq C++
12255 lt_prog_compiler_wl_CXX='-Wl,'
12256 # Make sure the PIC flag is empty. It appears that all Alpha
12257 # Linux and Compaq Tru64 Unix objects are PIC.
12258 lt_prog_compiler_pic_CXX=
12259 lt_prog_compiler_static_CXX='-non_shared'
12260 ;;
12261 *)
12262 ;;
12263 esac
12264 ;;
12265 psos*)
12266 ;;
12267 solaris*)
12268 case $cc_basename in
12269 CC*)
12270 # Sun C++ 4.2, 5.x and Centerline C++
12271 lt_prog_compiler_pic_CXX='-KPIC'
12272 lt_prog_compiler_static_CXX='-Bstatic'
12273 lt_prog_compiler_wl_CXX='-Qoption ld '
12274 ;;
12275 gcx*)
12276 # Green Hills C++ Compiler
12277 lt_prog_compiler_pic_CXX='-PIC'
12278 ;;
12279 *)
12280 ;;
12281 esac
12282 ;;
12283 sunos4*)
12284 case $cc_basename in
12285 CC*)
12286 # Sun C++ 4.x
12287 lt_prog_compiler_pic_CXX='-pic'
12288 lt_prog_compiler_static_CXX='-Bstatic'
12289 ;;
12290 lcc*)
12291 # Lucid
12292 lt_prog_compiler_pic_CXX='-pic'
12293 ;;
12294 *)
12295 ;;
12296 esac
12297 ;;
12298 tandem*)
12299 case $cc_basename in
12300 NCC*)
12301 # NonStop-UX NCC 3.20
12302 lt_prog_compiler_pic_CXX='-KPIC'
12303 ;;
12304 *)
12305 ;;
12306 esac
12307 ;;
12308 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12309 case $cc_basename in
12310 CC*)
12311 lt_prog_compiler_wl_CXX='-Wl,'
12312 lt_prog_compiler_pic_CXX='-KPIC'
12313 lt_prog_compiler_static_CXX='-Bstatic'
12314 ;;
12315 esac
12316 ;;
12317 vxworks*)
12318 ;;
12319 *)
12320 lt_prog_compiler_can_build_shared_CXX=no
12321 ;;
12322 esac
12323 fi
12325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12326 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12328 #
12329 # Check to make sure the PIC flag actually works.
12330 #
12331 if test -n "$lt_prog_compiler_pic_CXX"; then
12333 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12334 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12335 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338 lt_prog_compiler_pic_works_CXX=no
12339 ac_outfile=conftest.$ac_objext
12340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12341 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12342 # Insert the option either (1) after the last *FLAGS variable, or
12343 # (2) before a word containing "conftest.", or (3) at the end.
12344 # Note that $ac_compile itself does not contain backslashes and begins
12345 # with a dollar sign (not a hyphen), so the echo should work correctly.
12346 # The option is referenced via a variable to avoid confusing sed.
12347 lt_compile=`echo "$ac_compile" | $SED \
12348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12350 -e 's:$: $lt_compiler_flag:'`
12351 (eval echo "\"\$as_me:12351: $lt_compile\"" >&5)
12352 (eval "$lt_compile" 2>conftest.err)
12353 ac_status=$?
12354 cat conftest.err >&5
12355 echo "$as_me:12355: \$? = $ac_status" >&5
12356 if (exit $ac_status) && test -s "$ac_outfile"; then
12357 # The compiler can only warn and ignore the option if not recognized
12358 # So say no if there are warnings other than the usual output.
12359 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12362 lt_prog_compiler_pic_works_CXX=yes
12363 fi
12364 fi
12365 $rm conftest*
12367 fi
12368 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12369 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12371 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12372 case $lt_prog_compiler_pic_CXX in
12373 "" | " "*) ;;
12374 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12375 esac
12376 else
12377 lt_prog_compiler_pic_CXX=
12378 lt_prog_compiler_can_build_shared_CXX=no
12379 fi
12381 fi
12382 case $host_os in
12383 # For platforms which do not support PIC, -DPIC is meaningless:
12384 *djgpp*)
12385 lt_prog_compiler_pic_CXX=
12386 ;;
12387 *)
12388 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12389 ;;
12390 esac
12392 #
12393 # Check to make sure the static flag actually works.
12394 #
12395 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12396 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12397 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12398 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401 lt_prog_compiler_static_works_CXX=no
12402 save_LDFLAGS="$LDFLAGS"
12403 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12404 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12405 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12406 # The linker can only warn and ignore the option if not recognized
12407 # So say no if there are warnings
12408 if test -s conftest.err; then
12409 # Append any errors to the config.log.
12410 cat conftest.err 1>&5
12411 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12413 if diff conftest.exp conftest.er2 >/dev/null; then
12414 lt_prog_compiler_static_works_CXX=yes
12415 fi
12416 else
12417 lt_prog_compiler_static_works_CXX=yes
12418 fi
12419 fi
12420 $rm conftest*
12421 LDFLAGS="$save_LDFLAGS"
12423 fi
12424 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12425 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12427 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12428 :
12429 else
12430 lt_prog_compiler_static_CXX=
12431 fi
12434 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12435 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12436 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 else
12439 lt_cv_prog_compiler_c_o_CXX=no
12440 $rm -r conftest 2>/dev/null
12441 mkdir conftest
12442 cd conftest
12443 mkdir out
12444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12446 lt_compiler_flag="-o out/conftest2.$ac_objext"
12447 # Insert the option either (1) after the last *FLAGS variable, or
12448 # (2) before a word containing "conftest.", or (3) at the end.
12449 # Note that $ac_compile itself does not contain backslashes and begins
12450 # with a dollar sign (not a hyphen), so the echo should work correctly.
12451 lt_compile=`echo "$ac_compile" | $SED \
12452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12454 -e 's:$: $lt_compiler_flag:'`
12455 (eval echo "\"\$as_me:12455: $lt_compile\"" >&5)
12456 (eval "$lt_compile" 2>out/conftest.err)
12457 ac_status=$?
12458 cat out/conftest.err >&5
12459 echo "$as_me:12459: \$? = $ac_status" >&5
12460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12461 then
12462 # The compiler can only warn and ignore the option if not recognized
12463 # So say no if there are warnings
12464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12467 lt_cv_prog_compiler_c_o_CXX=yes
12468 fi
12469 fi
12470 chmod u+w . 2>&5
12471 $rm conftest*
12472 # SGI C++ compiler will create directory out/ii_files/ for
12473 # template instantiation
12474 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12475 $rm out/* && rmdir out
12476 cd ..
12477 rmdir conftest
12478 $rm conftest*
12480 fi
12481 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12482 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12485 hard_links="nottested"
12486 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12487 # do not overwrite the value of need_locks provided by the user
12488 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12489 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12490 hard_links=yes
12491 $rm conftest*
12492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12493 touch conftest.a
12494 ln conftest.a conftest.b 2>&5 || hard_links=no
12495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12496 { echo "$as_me:$LINENO: result: $hard_links" >&5
12497 echo "${ECHO_T}$hard_links" >&6; }
12498 if test "$hard_links" = no; then
12499 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12500 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12501 need_locks=warn
12502 fi
12503 else
12504 need_locks=no
12505 fi
12507 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12508 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12510 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12511 case $host_os in
12512 aix4* | aix5*)
12513 # If we're using GNU nm, then we don't want the "-C" option.
12514 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12515 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12516 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'
12517 else
12518 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'
12519 fi
12520 ;;
12521 pw32*)
12522 export_symbols_cmds_CXX="$ltdll_cmds"
12523 ;;
12524 cygwin* | mingw*)
12525 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'
12526 ;;
12527 linux* | k*bsd*-gnu)
12528 link_all_deplibs_CXX=no
12529 ;;
12530 *)
12531 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12532 ;;
12533 esac
12535 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12536 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12537 test "$ld_shlibs_CXX" = no && can_build_shared=no
12539 #
12540 # Do we need to explicitly link libc?
12541 #
12542 case "x$archive_cmds_need_lc_CXX" in
12543 x|xyes)
12544 # Assume -lc should be added
12545 archive_cmds_need_lc_CXX=yes
12547 if test "$enable_shared" = yes && test "$GCC" = yes; then
12548 case $archive_cmds_CXX in
12549 *'~'*)
12550 # FIXME: we may have to deal with multi-command sequences.
12551 ;;
12552 '$CC '*)
12553 # Test whether the compiler implicitly links with -lc since on some
12554 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12555 # to ld, don't add -lc before -lgcc.
12556 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12557 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12558 $rm conftest*
12559 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12562 (eval $ac_compile) 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } 2>conftest.err; then
12566 soname=conftest
12567 lib=conftest
12568 libobjs=conftest.$ac_objext
12569 deplibs=
12570 wl=$lt_prog_compiler_wl_CXX
12571 pic_flag=$lt_prog_compiler_pic_CXX
12572 compiler_flags=-v
12573 linker_flags=-v
12574 verstring=
12575 output_objdir=.
12576 libname=conftest
12577 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12578 allow_undefined_flag_CXX=
12579 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12580 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }
12584 then
12585 archive_cmds_need_lc_CXX=no
12586 else
12587 archive_cmds_need_lc_CXX=yes
12588 fi
12589 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12590 else
12591 cat conftest.err 1>&5
12592 fi
12593 $rm conftest*
12594 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12595 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12596 ;;
12597 esac
12598 fi
12599 ;;
12600 esac
12602 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12603 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12604 library_names_spec=
12605 libname_spec='lib$name'
12606 soname_spec=
12607 shrext_cmds=".so"
12608 postinstall_cmds=
12609 postuninstall_cmds=
12610 finish_cmds=
12611 finish_eval=
12612 shlibpath_var=
12613 shlibpath_overrides_runpath=unknown
12614 version_type=none
12615 dynamic_linker="$host_os ld.so"
12616 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12617 if test "$GCC" = yes; then
12618 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12619 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12620 # if the path contains ";" then we assume it to be the separator
12621 # otherwise default to the standard path separator (i.e. ":") - it is
12622 # assumed that no part of a normal pathname contains ";" but that should
12623 # okay in the real world where ";" in dirpaths is itself problematic.
12624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12625 else
12626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12627 fi
12628 else
12629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12630 fi
12631 need_lib_prefix=unknown
12632 hardcode_into_libs=no
12634 # when you set need_version to no, make sure it does not cause -set_version
12635 # flags to be left without arguments
12636 need_version=unknown
12638 case $host_os in
12639 aix3*)
12640 version_type=linux
12641 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12642 shlibpath_var=LIBPATH
12644 # AIX 3 has no versioning support, so we append a major version to the name.
12645 soname_spec='${libname}${release}${shared_ext}$major'
12646 ;;
12648 aix4* | aix5*)
12649 version_type=linux
12650 need_lib_prefix=no
12651 need_version=no
12652 hardcode_into_libs=yes
12653 if test "$host_cpu" = ia64; then
12654 # AIX 5 supports IA64
12655 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12656 shlibpath_var=LD_LIBRARY_PATH
12657 else
12658 # With GCC up to 2.95.x, collect2 would create an import file
12659 # for dependence libraries. The import file would start with
12660 # the line `#! .'. This would cause the generated library to
12661 # depend on `.', always an invalid library. This was fixed in
12662 # development snapshots of GCC prior to 3.0.
12663 case $host_os in
12664 aix4 | aix4.[01] | aix4.[01].*)
12665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12666 echo ' yes '
12667 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12668 :
12669 else
12670 can_build_shared=no
12671 fi
12672 ;;
12673 esac
12674 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12675 # soname into executable. Probably we can add versioning support to
12676 # collect2, so additional links can be useful in future.
12677 if test "$aix_use_runtimelinking" = yes; then
12678 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12679 # instead of lib<name>.a to let people know that these are not
12680 # typical AIX shared libraries.
12681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12682 else
12683 # We preserve .a as extension for shared libraries through AIX4.2
12684 # and later when we are not doing run time linking.
12685 library_names_spec='${libname}${release}.a $libname.a'
12686 soname_spec='${libname}${release}${shared_ext}$major'
12687 fi
12688 shlibpath_var=LIBPATH
12689 fi
12690 ;;
12692 amigaos*)
12693 library_names_spec='$libname.ixlibrary $libname.a'
12694 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12695 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'
12696 ;;
12698 beos*)
12699 library_names_spec='${libname}${shared_ext}'
12700 dynamic_linker="$host_os ld.so"
12701 shlibpath_var=LIBRARY_PATH
12702 ;;
12704 bsdi[45]*)
12705 version_type=linux
12706 need_version=no
12707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12708 soname_spec='${libname}${release}${shared_ext}$major'
12709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12710 shlibpath_var=LD_LIBRARY_PATH
12711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12713 # the default ld.so.conf also contains /usr/contrib/lib and
12714 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12715 # libtool to hard-code these into programs
12716 ;;
12718 cygwin* | mingw* | pw32*)
12719 version_type=windows
12720 shrext_cmds=".dll"
12721 need_version=no
12722 need_lib_prefix=no
12724 case $GCC,$host_os in
12725 yes,cygwin* | yes,mingw* | yes,pw32*)
12726 library_names_spec='$libname.dll.a'
12727 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12728 postinstall_cmds='base_file=`basename \${file}`~
12729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12730 dldir=$destdir/`dirname \$dlpath`~
12731 test -d \$dldir || mkdir -p \$dldir~
12732 $install_prog $dir/$dlname \$dldir/$dlname~
12733 chmod a+x \$dldir/$dlname'
12734 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12735 dlpath=$dir/\$dldll~
12736 $rm \$dlpath'
12737 shlibpath_overrides_runpath=yes
12739 case $host_os in
12740 cygwin*)
12741 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12742 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12743 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12744 ;;
12745 mingw*)
12746 # MinGW DLLs use traditional 'lib' prefix
12747 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12748 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12749 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12750 # It is most probably a Windows format PATH printed by
12751 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12752 # path with ; separators, and with drive letters. We can handle the
12753 # drive letters (cygwin fileutils understands them), so leave them,
12754 # especially as we might pass files found there to a mingw objdump,
12755 # which wouldn't understand a cygwinified path. Ahh.
12756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12757 else
12758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12759 fi
12760 ;;
12761 pw32*)
12762 # pw32 DLLs use 'pw' prefix rather than 'lib'
12763 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12764 ;;
12765 esac
12766 ;;
12768 *)
12769 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12770 ;;
12771 esac
12772 dynamic_linker='Win32 ld.exe'
12773 # FIXME: first we should search . and the directory the executable is in
12774 shlibpath_var=PATH
12775 ;;
12777 darwin* | rhapsody*)
12778 dynamic_linker="$host_os dyld"
12779 version_type=darwin
12780 need_lib_prefix=no
12781 need_version=no
12782 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12783 soname_spec='${libname}${release}${major}$shared_ext'
12784 shlibpath_overrides_runpath=yes
12785 shlibpath_var=DYLD_LIBRARY_PATH
12786 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12787 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12788 if test "$GCC" = yes; then
12789 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"`
12790 else
12791 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12792 fi
12793 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12794 ;;
12796 dgux*)
12797 version_type=linux
12798 need_lib_prefix=no
12799 need_version=no
12800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12801 soname_spec='${libname}${release}${shared_ext}$major'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 ;;
12805 freebsd1*)
12806 dynamic_linker=no
12807 ;;
12809 freebsd* | dragonfly*)
12810 # DragonFly does not have aout. When/if they implement a new
12811 # versioning mechanism, adjust this.
12812 if test -x /usr/bin/objformat; then
12813 objformat=`/usr/bin/objformat`
12814 else
12815 case $host_os in
12816 freebsd[123]*) objformat=aout ;;
12817 *) objformat=elf ;;
12818 esac
12819 fi
12820 version_type=freebsd-$objformat
12821 case $version_type in
12822 freebsd-elf*)
12823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12824 need_version=no
12825 need_lib_prefix=no
12826 ;;
12827 freebsd-*)
12828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12829 need_version=yes
12830 ;;
12831 esac
12832 shlibpath_var=LD_LIBRARY_PATH
12833 case $host_os in
12834 freebsd2*)
12835 shlibpath_overrides_runpath=yes
12836 ;;
12837 freebsd3.[01]* | freebsdelf3.[01]*)
12838 shlibpath_overrides_runpath=yes
12839 hardcode_into_libs=yes
12840 ;;
12841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12843 shlibpath_overrides_runpath=no
12844 hardcode_into_libs=yes
12845 ;;
12846 freebsd*) # from 4.6 on
12847 shlibpath_overrides_runpath=yes
12848 hardcode_into_libs=yes
12849 ;;
12850 esac
12851 ;;
12853 gnu*)
12854 version_type=linux
12855 need_lib_prefix=no
12856 need_version=no
12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12858 soname_spec='${libname}${release}${shared_ext}$major'
12859 shlibpath_var=LD_LIBRARY_PATH
12860 hardcode_into_libs=yes
12861 ;;
12863 hpux9* | hpux10* | hpux11*)
12864 # Give a soname corresponding to the major version so that dld.sl refuses to
12865 # link against other versions.
12866 version_type=sunos
12867 need_lib_prefix=no
12868 need_version=no
12869 case $host_cpu in
12870 ia64*)
12871 shrext_cmds='.so'
12872 hardcode_into_libs=yes
12873 dynamic_linker="$host_os dld.so"
12874 shlibpath_var=LD_LIBRARY_PATH
12875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877 soname_spec='${libname}${release}${shared_ext}$major'
12878 if test "X$HPUX_IA64_MODE" = X32; then
12879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12880 else
12881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12882 fi
12883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12884 ;;
12885 hppa*64*)
12886 shrext_cmds='.sl'
12887 hardcode_into_libs=yes
12888 dynamic_linker="$host_os dld.sl"
12889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12892 soname_spec='${libname}${release}${shared_ext}$major'
12893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12895 ;;
12896 *)
12897 shrext_cmds='.sl'
12898 dynamic_linker="$host_os dld.sl"
12899 shlibpath_var=SHLIB_PATH
12900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12902 soname_spec='${libname}${release}${shared_ext}$major'
12903 ;;
12904 esac
12905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12906 postinstall_cmds='chmod 555 $lib'
12907 ;;
12909 interix3*)
12910 version_type=linux
12911 need_lib_prefix=no
12912 need_version=no
12913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12914 soname_spec='${libname}${release}${shared_ext}$major'
12915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12916 shlibpath_var=LD_LIBRARY_PATH
12917 shlibpath_overrides_runpath=no
12918 hardcode_into_libs=yes
12919 ;;
12921 irix5* | irix6* | nonstopux*)
12922 case $host_os in
12923 nonstopux*) version_type=nonstopux ;;
12924 *)
12925 if test "$lt_cv_prog_gnu_ld" = yes; then
12926 version_type=linux
12927 else
12928 version_type=irix
12929 fi ;;
12930 esac
12931 need_lib_prefix=no
12932 need_version=no
12933 soname_spec='${libname}${release}${shared_ext}$major'
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12935 case $host_os in
12936 irix5* | nonstopux*)
12937 libsuff= shlibsuff=
12938 ;;
12939 *)
12940 case $LD in # libtool.m4 will add one of these switches to LD
12941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12942 libsuff= shlibsuff= libmagic=32-bit;;
12943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12944 libsuff=32 shlibsuff=N32 libmagic=N32;;
12945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12947 *) libsuff= shlibsuff= libmagic=never-match;;
12948 esac
12949 ;;
12950 esac
12951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12952 shlibpath_overrides_runpath=no
12953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12955 hardcode_into_libs=yes
12956 ;;
12958 # No shared lib support for Linux oldld, aout, or coff.
12959 linux*oldld* | linux*aout* | linux*coff*)
12960 dynamic_linker=no
12961 ;;
12963 # This must be Linux ELF.
12964 linux* | k*bsd*-gnu)
12965 version_type=linux
12966 need_lib_prefix=no
12967 need_version=no
12968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12969 soname_spec='${libname}${release}${shared_ext}$major'
12970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12971 shlibpath_var=LD_LIBRARY_PATH
12972 shlibpath_overrides_runpath=no
12973 # This implies no fast_install, which is unacceptable.
12974 # Some rework will be needed to allow for fast_install
12975 # before this can be enabled.
12976 hardcode_into_libs=yes
12978 # Append ld.so.conf contents to the search path
12979 if test -f /etc/ld.so.conf; then
12980 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' ' '`
12981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12982 fi
12984 # We used to test for /lib/ld.so.1 and disable shared libraries on
12985 # powerpc, because MkLinux only supported shared libraries with the
12986 # GNU dynamic linker. Since this was broken with cross compilers,
12987 # most powerpc-linux boxes support dynamic linking these days and
12988 # people can always --disable-shared, the test was removed, and we
12989 # assume the GNU/Linux dynamic linker is in use.
12990 dynamic_linker='GNU/Linux ld.so'
12991 ;;
12993 netbsdelf*-gnu)
12994 version_type=linux
12995 need_lib_prefix=no
12996 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
13000 shlibpath_overrides_runpath=no
13001 hardcode_into_libs=yes
13002 dynamic_linker='NetBSD ld.elf_so'
13003 ;;
13005 netbsd*)
13006 version_type=sunos
13007 need_lib_prefix=no
13008 need_version=no
13009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13012 dynamic_linker='NetBSD (a.out) ld.so'
13013 else
13014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13015 soname_spec='${libname}${release}${shared_ext}$major'
13016 dynamic_linker='NetBSD ld.elf_so'
13017 fi
13018 shlibpath_var=LD_LIBRARY_PATH
13019 shlibpath_overrides_runpath=yes
13020 hardcode_into_libs=yes
13021 ;;
13023 newsos6)
13024 version_type=linux
13025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13026 shlibpath_var=LD_LIBRARY_PATH
13027 shlibpath_overrides_runpath=yes
13028 ;;
13030 nto-qnx*)
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 shlibpath_var=LD_LIBRARY_PATH
13037 shlibpath_overrides_runpath=yes
13038 ;;
13040 openbsd*)
13041 version_type=sunos
13042 sys_lib_dlsearch_path_spec="/usr/lib"
13043 need_lib_prefix=no
13044 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13045 case $host_os in
13046 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13047 *) need_version=no ;;
13048 esac
13049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13051 shlibpath_var=LD_LIBRARY_PATH
13052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13053 case $host_os in
13054 openbsd2.[89] | openbsd2.[89].*)
13055 shlibpath_overrides_runpath=no
13056 ;;
13057 *)
13058 shlibpath_overrides_runpath=yes
13059 ;;
13060 esac
13061 else
13062 shlibpath_overrides_runpath=yes
13063 fi
13064 ;;
13066 os2*)
13067 libname_spec='$name'
13068 shrext_cmds=".dll"
13069 need_lib_prefix=no
13070 library_names_spec='$libname${shared_ext} $libname.a'
13071 dynamic_linker='OS/2 ld.exe'
13072 shlibpath_var=LIBPATH
13073 ;;
13075 osf3* | osf4* | osf5*)
13076 version_type=osf
13077 need_lib_prefix=no
13078 need_version=no
13079 soname_spec='${libname}${release}${shared_ext}$major'
13080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13081 shlibpath_var=LD_LIBRARY_PATH
13082 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13083 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13084 ;;
13086 solaris*)
13087 version_type=linux
13088 need_lib_prefix=no
13089 need_version=no
13090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13091 soname_spec='${libname}${release}${shared_ext}$major'
13092 shlibpath_var=LD_LIBRARY_PATH
13093 shlibpath_overrides_runpath=yes
13094 hardcode_into_libs=yes
13095 # ldd complains unless libraries are executable
13096 postinstall_cmds='chmod +x $lib'
13097 ;;
13099 sunos4*)
13100 version_type=sunos
13101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13102 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13103 shlibpath_var=LD_LIBRARY_PATH
13104 shlibpath_overrides_runpath=yes
13105 if test "$with_gnu_ld" = yes; then
13106 need_lib_prefix=no
13107 fi
13108 need_version=yes
13109 ;;
13111 sysv4 | sysv4.3*)
13112 version_type=linux
13113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13114 soname_spec='${libname}${release}${shared_ext}$major'
13115 shlibpath_var=LD_LIBRARY_PATH
13116 case $host_vendor in
13117 sni)
13118 shlibpath_overrides_runpath=no
13119 need_lib_prefix=no
13120 export_dynamic_flag_spec='${wl}-Blargedynsym'
13121 runpath_var=LD_RUN_PATH
13122 ;;
13123 siemens)
13124 need_lib_prefix=no
13125 ;;
13126 motorola)
13127 need_lib_prefix=no
13128 need_version=no
13129 shlibpath_overrides_runpath=no
13130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13131 ;;
13132 esac
13133 ;;
13135 sysv4*MP*)
13136 if test -d /usr/nec ;then
13137 version_type=linux
13138 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13139 soname_spec='$libname${shared_ext}.$major'
13140 shlibpath_var=LD_LIBRARY_PATH
13141 fi
13142 ;;
13144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13145 version_type=freebsd-elf
13146 need_lib_prefix=no
13147 need_version=no
13148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13149 soname_spec='${libname}${release}${shared_ext}$major'
13150 shlibpath_var=LD_LIBRARY_PATH
13151 hardcode_into_libs=yes
13152 if test "$with_gnu_ld" = yes; then
13153 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13154 shlibpath_overrides_runpath=no
13155 else
13156 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13157 shlibpath_overrides_runpath=yes
13158 case $host_os in
13159 sco3.2v5*)
13160 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13161 ;;
13162 esac
13163 fi
13164 sys_lib_dlsearch_path_spec='/usr/lib'
13165 ;;
13167 uts4*)
13168 version_type=linux
13169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13170 soname_spec='${libname}${release}${shared_ext}$major'
13171 shlibpath_var=LD_LIBRARY_PATH
13172 ;;
13174 *)
13175 dynamic_linker=no
13176 ;;
13177 esac
13178 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13179 echo "${ECHO_T}$dynamic_linker" >&6; }
13180 test "$dynamic_linker" = no && can_build_shared=no
13182 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13183 if test "$GCC" = yes; then
13184 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13185 fi
13187 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13188 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13189 hardcode_action_CXX=
13190 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13191 test -n "$runpath_var_CXX" || \
13192 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13194 # We can hardcode non-existant directories.
13195 if test "$hardcode_direct_CXX" != no &&
13196 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13197 # have to relink, otherwise we might link with an installed library
13198 # when we should be linking with a yet-to-be-installed one
13199 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13200 test "$hardcode_minus_L_CXX" != no; then
13201 # Linking always hardcodes the temporary library directory.
13202 hardcode_action_CXX=relink
13203 else
13204 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13205 hardcode_action_CXX=immediate
13206 fi
13207 else
13208 # We cannot hardcode anything, or else we can only hardcode existing
13209 # directories.
13210 hardcode_action_CXX=unsupported
13211 fi
13212 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13213 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13215 if test "$hardcode_action_CXX" = relink; then
13216 # Fast installation is not supported
13217 enable_fast_install=no
13218 elif test "$shlibpath_overrides_runpath" = yes ||
13219 test "$enable_shared" = no; then
13220 # Fast installation is not necessary
13221 enable_fast_install=needless
13222 fi
13225 # The else clause should only fire when bootstrapping the
13226 # libtool distribution, otherwise you forgot to ship ltmain.sh
13227 # with your package, and you will get complaints that there are
13228 # no rules to generate ltmain.sh.
13229 if test -f "$ltmain"; then
13230 # See if we are running on zsh, and set the options which allow our commands through
13231 # without removal of \ escapes.
13232 if test -n "${ZSH_VERSION+set}" ; then
13233 setopt NO_GLOB_SUBST
13234 fi
13235 # Now quote all the things that may contain metacharacters while being
13236 # careful not to overquote the AC_SUBSTed values. We take copies of the
13237 # variables and quote the copies for generation of the libtool script.
13238 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13239 SED SHELL STRIP \
13240 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13241 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13242 deplibs_check_method reload_flag reload_cmds need_locks \
13243 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13244 lt_cv_sys_global_symbol_to_c_name_address \
13245 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13246 old_postinstall_cmds old_postuninstall_cmds \
13247 compiler_CXX \
13248 CC_CXX \
13249 LD_CXX \
13250 lt_prog_compiler_wl_CXX \
13251 lt_prog_compiler_pic_CXX \
13252 lt_prog_compiler_static_CXX \
13253 lt_prog_compiler_no_builtin_flag_CXX \
13254 export_dynamic_flag_spec_CXX \
13255 thread_safe_flag_spec_CXX \
13256 whole_archive_flag_spec_CXX \
13257 enable_shared_with_static_runtimes_CXX \
13258 old_archive_cmds_CXX \
13259 old_archive_from_new_cmds_CXX \
13260 predep_objects_CXX \
13261 postdep_objects_CXX \
13262 predeps_CXX \
13263 postdeps_CXX \
13264 compiler_lib_search_path_CXX \
13265 archive_cmds_CXX \
13266 archive_expsym_cmds_CXX \
13267 postinstall_cmds_CXX \
13268 postuninstall_cmds_CXX \
13269 old_archive_from_expsyms_cmds_CXX \
13270 allow_undefined_flag_CXX \
13271 no_undefined_flag_CXX \
13272 export_symbols_cmds_CXX \
13273 hardcode_libdir_flag_spec_CXX \
13274 hardcode_libdir_flag_spec_ld_CXX \
13275 hardcode_libdir_separator_CXX \
13276 hardcode_automatic_CXX \
13277 module_cmds_CXX \
13278 module_expsym_cmds_CXX \
13279 lt_cv_prog_compiler_c_o_CXX \
13280 exclude_expsyms_CXX \
13281 include_expsyms_CXX; do
13283 case $var in
13284 old_archive_cmds_CXX | \
13285 old_archive_from_new_cmds_CXX | \
13286 archive_cmds_CXX | \
13287 archive_expsym_cmds_CXX | \
13288 module_cmds_CXX | \
13289 module_expsym_cmds_CXX | \
13290 old_archive_from_expsyms_cmds_CXX | \
13291 export_symbols_cmds_CXX | \
13292 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13293 postinstall_cmds | postuninstall_cmds | \
13294 old_postinstall_cmds | old_postuninstall_cmds | \
13295 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13296 # Double-quote double-evaled strings.
13297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13298 ;;
13299 *)
13300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13301 ;;
13302 esac
13303 done
13305 case $lt_echo in
13306 *'\$0 --fallback-echo"')
13307 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13308 ;;
13309 esac
13311 cfgfile="$ofile"
13313 cat <<__EOF__ >> "$cfgfile"
13314 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13316 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13318 # Shell to use when invoking shell scripts.
13319 SHELL=$lt_SHELL
13321 # Whether or not to build shared libraries.
13322 build_libtool_libs=$enable_shared
13324 # Whether or not to build static libraries.
13325 build_old_libs=$enable_static
13327 # Whether or not to add -lc for building shared libraries.
13328 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13330 # Whether or not to disallow shared libs when runtime libs are static
13331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13333 # Whether or not to optimize for fast installation.
13334 fast_install=$enable_fast_install
13336 # The host system.
13337 host_alias=$host_alias
13338 host=$host
13339 host_os=$host_os
13341 # The build system.
13342 build_alias=$build_alias
13343 build=$build
13344 build_os=$build_os
13346 # An echo program that does not interpret backslashes.
13347 echo=$lt_echo
13349 # The archiver.
13350 AR=$lt_AR
13351 AR_FLAGS=$lt_AR_FLAGS
13353 # A C compiler.
13354 LTCC=$lt_LTCC
13356 # LTCC compiler flags.
13357 LTCFLAGS=$lt_LTCFLAGS
13359 # A language-specific compiler.
13360 CC=$lt_compiler_CXX
13362 # Is the compiler the GNU C compiler?
13363 with_gcc=$GCC_CXX
13365 # An ERE matcher.
13366 EGREP=$lt_EGREP
13368 # The linker used to build libraries.
13369 LD=$lt_LD_CXX
13371 # Whether we need hard or soft links.
13372 LN_S=$lt_LN_S
13374 # A BSD-compatible nm program.
13375 NM=$lt_NM
13377 # A symbol stripping program
13378 STRIP=$lt_STRIP
13380 # Used to examine libraries when file_magic_cmd begins "file"
13381 MAGIC_CMD=$MAGIC_CMD
13383 # Used on cygwin: DLL creation program.
13384 DLLTOOL="$DLLTOOL"
13386 # Used on cygwin: object dumper.
13387 OBJDUMP="$OBJDUMP"
13389 # Used on cygwin: assembler.
13390 AS="$AS"
13392 # The name of the directory that contains temporary libtool files.
13393 objdir=$objdir
13395 # How to create reloadable object files.
13396 reload_flag=$lt_reload_flag
13397 reload_cmds=$lt_reload_cmds
13399 # How to pass a linker flag through the compiler.
13400 wl=$lt_lt_prog_compiler_wl_CXX
13402 # Object file suffix (normally "o").
13403 objext="$ac_objext"
13405 # Old archive suffix (normally "a").
13406 libext="$libext"
13408 # Shared library suffix (normally ".so").
13409 shrext_cmds='$shrext_cmds'
13411 # Executable file suffix (normally "").
13412 exeext="$exeext"
13414 # Additional compiler flags for building library objects.
13415 pic_flag=$lt_lt_prog_compiler_pic_CXX
13416 pic_mode=$pic_mode
13418 # What is the maximum length of a command?
13419 max_cmd_len=$lt_cv_sys_max_cmd_len
13421 # Does compiler simultaneously support -c and -o options?
13422 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13424 # Must we lock files when doing compilation?
13425 need_locks=$lt_need_locks
13427 # Do we need the lib prefix for modules?
13428 need_lib_prefix=$need_lib_prefix
13430 # Do we need a version for libraries?
13431 need_version=$need_version
13433 # Whether dlopen is supported.
13434 dlopen_support=$enable_dlopen
13436 # Whether dlopen of programs is supported.
13437 dlopen_self=$enable_dlopen_self
13439 # Whether dlopen of statically linked programs is supported.
13440 dlopen_self_static=$enable_dlopen_self_static
13442 # Compiler flag to prevent dynamic linking.
13443 link_static_flag=$lt_lt_prog_compiler_static_CXX
13445 # Compiler flag to turn off builtin functions.
13446 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13448 # Compiler flag to allow reflexive dlopens.
13449 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13451 # Compiler flag to generate shared objects directly from archives.
13452 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13454 # Compiler flag to generate thread-safe objects.
13455 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13457 # Library versioning type.
13458 version_type=$version_type
13460 # Format of library name prefix.
13461 libname_spec=$lt_libname_spec
13463 # List of archive names. First name is the real one, the rest are links.
13464 # The last name is the one that the linker finds with -lNAME.
13465 library_names_spec=$lt_library_names_spec
13467 # The coded name of the library, if different from the real name.
13468 soname_spec=$lt_soname_spec
13470 # Commands used to build and install an old-style archive.
13471 RANLIB=$lt_RANLIB
13472 old_archive_cmds=$lt_old_archive_cmds_CXX
13473 old_postinstall_cmds=$lt_old_postinstall_cmds
13474 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13476 # Create an old-style archive from a shared archive.
13477 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13479 # Create a temporary old-style archive to link instead of a shared archive.
13480 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13482 # Commands used to build and install a shared archive.
13483 archive_cmds=$lt_archive_cmds_CXX
13484 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13485 postinstall_cmds=$lt_postinstall_cmds
13486 postuninstall_cmds=$lt_postuninstall_cmds
13488 # Commands used to build a loadable module (assumed same as above if empty)
13489 module_cmds=$lt_module_cmds_CXX
13490 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13492 # Commands to strip libraries.
13493 old_striplib=$lt_old_striplib
13494 striplib=$lt_striplib
13496 # Dependencies to place before the objects being linked to create a
13497 # shared library.
13498 predep_objects=$lt_predep_objects_CXX
13500 # Dependencies to place after the objects being linked to create a
13501 # shared library.
13502 postdep_objects=$lt_postdep_objects_CXX
13504 # Dependencies to place before the objects being linked to create a
13505 # shared library.
13506 predeps=$lt_predeps_CXX
13508 # Dependencies to place after the objects being linked to create a
13509 # shared library.
13510 postdeps=$lt_postdeps_CXX
13512 # The library search path used internally by the compiler when linking
13513 # a shared library.
13514 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13516 # Method to check whether dependent libraries are shared objects.
13517 deplibs_check_method=$lt_deplibs_check_method
13519 # Command to use when deplibs_check_method == file_magic.
13520 file_magic_cmd=$lt_file_magic_cmd
13522 # Flag that allows shared libraries with undefined symbols to be built.
13523 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13525 # Flag that forces no undefined symbols.
13526 no_undefined_flag=$lt_no_undefined_flag_CXX
13528 # Commands used to finish a libtool library installation in a directory.
13529 finish_cmds=$lt_finish_cmds
13531 # Same as above, but a single script fragment to be evaled but not shown.
13532 finish_eval=$lt_finish_eval
13534 # Take the output of nm and produce a listing of raw symbols and C names.
13535 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13537 # Transform the output of nm in a proper C declaration
13538 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13540 # Transform the output of nm in a C name address pair
13541 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13543 # This is the shared library runtime path variable.
13544 runpath_var=$runpath_var
13546 # This is the shared library path variable.
13547 shlibpath_var=$shlibpath_var
13549 # Is shlibpath searched before the hard-coded library search path?
13550 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13552 # How to hardcode a shared library path into an executable.
13553 hardcode_action=$hardcode_action_CXX
13555 # Whether we should hardcode library paths into libraries.
13556 hardcode_into_libs=$hardcode_into_libs
13558 # Flag to hardcode \$libdir into a binary during linking.
13559 # This must work even if \$libdir does not exist.
13560 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13562 # If ld is used when linking, flag to hardcode \$libdir into
13563 # a binary during linking. This must work even if \$libdir does
13564 # not exist.
13565 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13567 # Whether we need a single -rpath flag with a separated argument.
13568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13570 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13571 # resulting binary.
13572 hardcode_direct=$hardcode_direct_CXX
13574 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13575 # resulting binary.
13576 hardcode_minus_L=$hardcode_minus_L_CXX
13578 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13579 # the resulting binary.
13580 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13582 # Set to yes if building a shared library automatically hardcodes DIR into the library
13583 # and all subsequent libraries and executables linked against it.
13584 hardcode_automatic=$hardcode_automatic_CXX
13586 # Variables whose values should be saved in libtool wrapper scripts and
13587 # restored at relink time.
13588 variables_saved_for_relink="$variables_saved_for_relink"
13590 # Whether libtool must link a program against all its dependency libraries.
13591 link_all_deplibs=$link_all_deplibs_CXX
13593 # Compile-time system search path for libraries
13594 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13596 # Run-time system search path for libraries
13597 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13599 # Fix the shell variable \$srcfile for the compiler.
13600 fix_srcfile_path="$fix_srcfile_path_CXX"
13602 # Set to yes if exported symbols are required.
13603 always_export_symbols=$always_export_symbols_CXX
13605 # The commands to list exported symbols.
13606 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13608 # The commands to extract the exported symbol list from a shared archive.
13609 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13611 # Symbols that should not be listed in the preloaded symbols.
13612 exclude_expsyms=$lt_exclude_expsyms_CXX
13614 # Symbols that must always be exported.
13615 include_expsyms=$lt_include_expsyms_CXX
13617 # ### END LIBTOOL TAG CONFIG: $tagname
13619 __EOF__
13622 else
13623 # If there is no Makefile yet, we rely on a make rule to execute
13624 # `config.status --recheck' to rerun these tests and create the
13625 # libtool script then.
13626 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13627 if test -f "$ltmain_in"; then
13628 test -f Makefile && make "$ltmain"
13629 fi
13630 fi
13633 ac_ext=c
13634 ac_cpp='$CPP $CPPFLAGS'
13635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13639 CC=$lt_save_CC
13640 LDCXX=$LD
13641 LD=$lt_save_LD
13642 GCC=$lt_save_GCC
13643 with_gnu_ldcxx=$with_gnu_ld
13644 with_gnu_ld=$lt_save_with_gnu_ld
13645 lt_cv_path_LDCXX=$lt_cv_path_LD
13646 lt_cv_path_LD=$lt_save_path_LD
13647 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13648 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13650 else
13651 tagname=""
13652 fi
13653 ;;
13655 F77)
13656 if test -n "$F77" && test "X$F77" != "Xno"; then
13658 ac_ext=f
13659 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13660 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13661 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13664 archive_cmds_need_lc_F77=no
13665 allow_undefined_flag_F77=
13666 always_export_symbols_F77=no
13667 archive_expsym_cmds_F77=
13668 export_dynamic_flag_spec_F77=
13669 hardcode_direct_F77=no
13670 hardcode_libdir_flag_spec_F77=
13671 hardcode_libdir_flag_spec_ld_F77=
13672 hardcode_libdir_separator_F77=
13673 hardcode_minus_L_F77=no
13674 hardcode_automatic_F77=no
13675 module_cmds_F77=
13676 module_expsym_cmds_F77=
13677 link_all_deplibs_F77=unknown
13678 old_archive_cmds_F77=$old_archive_cmds
13679 no_undefined_flag_F77=
13680 whole_archive_flag_spec_F77=
13681 enable_shared_with_static_runtimes_F77=no
13683 # Source file extension for f77 test sources.
13684 ac_ext=f
13686 # Object file extension for compiled f77 test sources.
13687 objext=o
13688 objext_F77=$objext
13690 # Code to be used in simple compile tests
13691 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13693 # Code to be used in simple link tests
13694 lt_simple_link_test_code=" program t\n end\n"
13696 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13698 # If no C compiler was specified, use CC.
13699 LTCC=${LTCC-"$CC"}
13701 # If no C compiler flags were specified, use CFLAGS.
13702 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13704 # Allow CC to be a program name with arguments.
13705 compiler=$CC
13708 # save warnings/boilerplate of simple test code
13709 ac_outfile=conftest.$ac_objext
13710 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13711 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13712 _lt_compiler_boilerplate=`cat conftest.err`
13713 $rm conftest*
13715 ac_outfile=conftest.$ac_objext
13716 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13717 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13718 _lt_linker_boilerplate=`cat conftest.err`
13719 $rm conftest*
13722 # Allow CC to be a program name with arguments.
13723 lt_save_CC="$CC"
13724 CC=${F77-"f77"}
13725 compiler=$CC
13726 compiler_F77=$CC
13727 for cc_temp in $compiler""; do
13728 case $cc_temp in
13729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13731 \-*) ;;
13732 *) break;;
13733 esac
13734 done
13735 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13738 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13739 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13740 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13741 echo "${ECHO_T}$can_build_shared" >&6; }
13743 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13744 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13745 test "$can_build_shared" = "no" && enable_shared=no
13747 # On AIX, shared libraries and static libraries use the same namespace, and
13748 # are all built from PIC.
13749 case $host_os in
13750 aix3*)
13751 test "$enable_shared" = yes && enable_static=no
13752 if test -n "$RANLIB"; then
13753 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13754 postinstall_cmds='$RANLIB $lib'
13755 fi
13756 ;;
13757 aix4* | aix5*)
13758 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13759 test "$enable_shared" = yes && enable_static=no
13760 fi
13761 ;;
13762 esac
13763 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13764 echo "${ECHO_T}$enable_shared" >&6; }
13766 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13767 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13768 # Make sure either enable_shared or enable_static is yes.
13769 test "$enable_shared" = yes || enable_static=yes
13770 { echo "$as_me:$LINENO: result: $enable_static" >&5
13771 echo "${ECHO_T}$enable_static" >&6; }
13773 GCC_F77="$G77"
13774 LD_F77="$LD"
13776 lt_prog_compiler_wl_F77=
13777 lt_prog_compiler_pic_F77=
13778 lt_prog_compiler_static_F77=
13780 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13781 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13783 if test "$GCC" = yes; then
13784 lt_prog_compiler_wl_F77='-Wl,'
13785 lt_prog_compiler_static_F77='-static'
13787 case $host_os in
13788 aix*)
13789 # All AIX code is PIC.
13790 if test "$host_cpu" = ia64; then
13791 # AIX 5 now supports IA64 processor
13792 lt_prog_compiler_static_F77='-Bstatic'
13793 fi
13794 ;;
13796 amigaos*)
13797 # FIXME: we need at least 68020 code to build shared libraries, but
13798 # adding the `-m68020' flag to GCC prevents building anything better,
13799 # like `-m68040'.
13800 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13801 ;;
13803 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13804 # PIC is the default for these OSes.
13805 ;;
13807 mingw* | pw32* | os2*)
13808 # This hack is so that the source file can tell whether it is being
13809 # built for inclusion in a dll (and should export symbols for example).
13810 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13811 ;;
13813 darwin* | rhapsody*)
13814 # PIC is the default on this platform
13815 # Common symbols not allowed in MH_DYLIB files
13816 lt_prog_compiler_pic_F77='-fno-common'
13817 ;;
13819 interix3*)
13820 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13821 # Instead, we relocate shared libraries at runtime.
13822 ;;
13824 msdosdjgpp*)
13825 # Just because we use GCC doesn't mean we suddenly get shared libraries
13826 # on systems that don't support them.
13827 lt_prog_compiler_can_build_shared_F77=no
13828 enable_shared=no
13829 ;;
13831 sysv4*MP*)
13832 if test -d /usr/nec; then
13833 lt_prog_compiler_pic_F77=-Kconform_pic
13834 fi
13835 ;;
13837 hpux*)
13838 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13839 # not for PA HP-UX.
13840 case $host_cpu in
13841 hppa*64*|ia64*)
13842 # +Z the default
13843 ;;
13844 *)
13845 lt_prog_compiler_pic_F77='-fPIC'
13846 ;;
13847 esac
13848 ;;
13850 *)
13851 lt_prog_compiler_pic_F77='-fPIC'
13852 ;;
13853 esac
13854 else
13855 # PORTME Check for flag to pass linker flags through the system compiler.
13856 case $host_os in
13857 aix*)
13858 lt_prog_compiler_wl_F77='-Wl,'
13859 if test "$host_cpu" = ia64; then
13860 # AIX 5 now supports IA64 processor
13861 lt_prog_compiler_static_F77='-Bstatic'
13862 else
13863 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13864 fi
13865 ;;
13866 darwin*)
13867 # PIC is the default on this platform
13868 # Common symbols not allowed in MH_DYLIB files
13869 case $cc_basename in
13870 xlc*)
13871 lt_prog_compiler_pic_F77='-qnocommon'
13872 lt_prog_compiler_wl_F77='-Wl,'
13873 ;;
13874 esac
13875 ;;
13877 mingw* | pw32* | os2*)
13878 # This hack is so that the source file can tell whether it is being
13879 # built for inclusion in a dll (and should export symbols for example).
13880 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13881 ;;
13883 hpux9* | hpux10* | hpux11*)
13884 lt_prog_compiler_wl_F77='-Wl,'
13885 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13886 # not for PA HP-UX.
13887 case $host_cpu in
13888 hppa*64*|ia64*)
13889 # +Z the default
13890 ;;
13891 *)
13892 lt_prog_compiler_pic_F77='+Z'
13893 ;;
13894 esac
13895 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13896 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13897 ;;
13899 irix5* | irix6* | nonstopux*)
13900 lt_prog_compiler_wl_F77='-Wl,'
13901 # PIC (with -KPIC) is the default.
13902 lt_prog_compiler_static_F77='-non_shared'
13903 ;;
13905 newsos6)
13906 lt_prog_compiler_pic_F77='-KPIC'
13907 lt_prog_compiler_static_F77='-Bstatic'
13908 ;;
13910 linux* | k*bsd*-gnu)
13911 case $cc_basename in
13912 icc* | ecc*)
13913 lt_prog_compiler_wl_F77='-Wl,'
13914 lt_prog_compiler_pic_F77='-KPIC'
13915 lt_prog_compiler_static_F77='-static'
13916 ;;
13917 pgcc* | pgf77* | pgf90* | pgf95*)
13918 # Portland Group compilers (*not* the Pentium gcc compiler,
13919 # which looks to be a dead project)
13920 lt_prog_compiler_wl_F77='-Wl,'
13921 lt_prog_compiler_pic_F77='-fpic'
13922 lt_prog_compiler_static_F77='-Bstatic'
13923 ;;
13924 ccc*)
13925 lt_prog_compiler_wl_F77='-Wl,'
13926 # All Alpha code is PIC.
13927 lt_prog_compiler_static_F77='-non_shared'
13928 ;;
13929 esac
13930 ;;
13932 osf3* | osf4* | osf5*)
13933 lt_prog_compiler_wl_F77='-Wl,'
13934 # All OSF/1 code is PIC.
13935 lt_prog_compiler_static_F77='-non_shared'
13936 ;;
13938 solaris*)
13939 lt_prog_compiler_pic_F77='-KPIC'
13940 lt_prog_compiler_static_F77='-Bstatic'
13941 case $cc_basename in
13942 f77* | f90* | f95*)
13943 lt_prog_compiler_wl_F77='-Qoption ld ';;
13944 *)
13945 lt_prog_compiler_wl_F77='-Wl,';;
13946 esac
13947 ;;
13949 sunos4*)
13950 lt_prog_compiler_wl_F77='-Qoption ld '
13951 lt_prog_compiler_pic_F77='-PIC'
13952 lt_prog_compiler_static_F77='-Bstatic'
13953 ;;
13955 sysv4 | sysv4.2uw2* | sysv4.3*)
13956 lt_prog_compiler_wl_F77='-Wl,'
13957 lt_prog_compiler_pic_F77='-KPIC'
13958 lt_prog_compiler_static_F77='-Bstatic'
13959 ;;
13961 sysv4*MP*)
13962 if test -d /usr/nec ;then
13963 lt_prog_compiler_pic_F77='-Kconform_pic'
13964 lt_prog_compiler_static_F77='-Bstatic'
13965 fi
13966 ;;
13968 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13969 lt_prog_compiler_wl_F77='-Wl,'
13970 lt_prog_compiler_pic_F77='-KPIC'
13971 lt_prog_compiler_static_F77='-Bstatic'
13972 ;;
13974 unicos*)
13975 lt_prog_compiler_wl_F77='-Wl,'
13976 lt_prog_compiler_can_build_shared_F77=no
13977 ;;
13979 uts4*)
13980 lt_prog_compiler_pic_F77='-pic'
13981 lt_prog_compiler_static_F77='-Bstatic'
13982 ;;
13984 *)
13985 lt_prog_compiler_can_build_shared_F77=no
13986 ;;
13987 esac
13988 fi
13990 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13991 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13993 #
13994 # Check to make sure the PIC flag actually works.
13995 #
13996 if test -n "$lt_prog_compiler_pic_F77"; then
13998 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13999 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14000 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003 lt_prog_compiler_pic_works_F77=no
14004 ac_outfile=conftest.$ac_objext
14005 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14006 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14007 # Insert the option either (1) after the last *FLAGS variable, or
14008 # (2) before a word containing "conftest.", or (3) at the end.
14009 # Note that $ac_compile itself does not contain backslashes and begins
14010 # with a dollar sign (not a hyphen), so the echo should work correctly.
14011 # The option is referenced via a variable to avoid confusing sed.
14012 lt_compile=`echo "$ac_compile" | $SED \
14013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14015 -e 's:$: $lt_compiler_flag:'`
14016 (eval echo "\"\$as_me:14016: $lt_compile\"" >&5)
14017 (eval "$lt_compile" 2>conftest.err)
14018 ac_status=$?
14019 cat conftest.err >&5
14020 echo "$as_me:14020: \$? = $ac_status" >&5
14021 if (exit $ac_status) && test -s "$ac_outfile"; then
14022 # The compiler can only warn and ignore the option if not recognized
14023 # So say no if there are warnings other than the usual output.
14024 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14027 lt_prog_compiler_pic_works_F77=yes
14028 fi
14029 fi
14030 $rm conftest*
14032 fi
14033 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14034 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14036 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14037 case $lt_prog_compiler_pic_F77 in
14038 "" | " "*) ;;
14039 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14040 esac
14041 else
14042 lt_prog_compiler_pic_F77=
14043 lt_prog_compiler_can_build_shared_F77=no
14044 fi
14046 fi
14047 case $host_os in
14048 # For platforms which do not support PIC, -DPIC is meaningless:
14049 *djgpp*)
14050 lt_prog_compiler_pic_F77=
14051 ;;
14052 *)
14053 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14054 ;;
14055 esac
14057 #
14058 # Check to make sure the static flag actually works.
14059 #
14060 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14061 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14062 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14063 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066 lt_prog_compiler_static_works_F77=no
14067 save_LDFLAGS="$LDFLAGS"
14068 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14069 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14070 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14071 # The linker can only warn and ignore the option if not recognized
14072 # So say no if there are warnings
14073 if test -s conftest.err; then
14074 # Append any errors to the config.log.
14075 cat conftest.err 1>&5
14076 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14078 if diff conftest.exp conftest.er2 >/dev/null; then
14079 lt_prog_compiler_static_works_F77=yes
14080 fi
14081 else
14082 lt_prog_compiler_static_works_F77=yes
14083 fi
14084 fi
14085 $rm conftest*
14086 LDFLAGS="$save_LDFLAGS"
14088 fi
14089 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14090 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14092 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14093 :
14094 else
14095 lt_prog_compiler_static_F77=
14096 fi
14099 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14100 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14101 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104 lt_cv_prog_compiler_c_o_F77=no
14105 $rm -r conftest 2>/dev/null
14106 mkdir conftest
14107 cd conftest
14108 mkdir out
14109 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14111 lt_compiler_flag="-o out/conftest2.$ac_objext"
14112 # Insert the option either (1) after the last *FLAGS variable, or
14113 # (2) before a word containing "conftest.", or (3) at the end.
14114 # Note that $ac_compile itself does not contain backslashes and begins
14115 # with a dollar sign (not a hyphen), so the echo should work correctly.
14116 lt_compile=`echo "$ac_compile" | $SED \
14117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14119 -e 's:$: $lt_compiler_flag:'`
14120 (eval echo "\"\$as_me:14120: $lt_compile\"" >&5)
14121 (eval "$lt_compile" 2>out/conftest.err)
14122 ac_status=$?
14123 cat out/conftest.err >&5
14124 echo "$as_me:14124: \$? = $ac_status" >&5
14125 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14126 then
14127 # The compiler can only warn and ignore the option if not recognized
14128 # So say no if there are warnings
14129 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14130 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14131 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14132 lt_cv_prog_compiler_c_o_F77=yes
14133 fi
14134 fi
14135 chmod u+w . 2>&5
14136 $rm conftest*
14137 # SGI C++ compiler will create directory out/ii_files/ for
14138 # template instantiation
14139 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14140 $rm out/* && rmdir out
14141 cd ..
14142 rmdir conftest
14143 $rm conftest*
14145 fi
14146 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14147 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14150 hard_links="nottested"
14151 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14152 # do not overwrite the value of need_locks provided by the user
14153 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14154 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14155 hard_links=yes
14156 $rm conftest*
14157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14158 touch conftest.a
14159 ln conftest.a conftest.b 2>&5 || hard_links=no
14160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14161 { echo "$as_me:$LINENO: result: $hard_links" >&5
14162 echo "${ECHO_T}$hard_links" >&6; }
14163 if test "$hard_links" = no; then
14164 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14165 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14166 need_locks=warn
14167 fi
14168 else
14169 need_locks=no
14170 fi
14172 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14173 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14175 runpath_var=
14176 allow_undefined_flag_F77=
14177 enable_shared_with_static_runtimes_F77=no
14178 archive_cmds_F77=
14179 archive_expsym_cmds_F77=
14180 old_archive_From_new_cmds_F77=
14181 old_archive_from_expsyms_cmds_F77=
14182 export_dynamic_flag_spec_F77=
14183 whole_archive_flag_spec_F77=
14184 thread_safe_flag_spec_F77=
14185 hardcode_libdir_flag_spec_F77=
14186 hardcode_libdir_flag_spec_ld_F77=
14187 hardcode_libdir_separator_F77=
14188 hardcode_direct_F77=no
14189 hardcode_minus_L_F77=no
14190 hardcode_shlibpath_var_F77=unsupported
14191 link_all_deplibs_F77=unknown
14192 hardcode_automatic_F77=no
14193 module_cmds_F77=
14194 module_expsym_cmds_F77=
14195 always_export_symbols_F77=no
14196 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14197 # include_expsyms should be a list of space-separated symbols to be *always*
14198 # included in the symbol list
14199 include_expsyms_F77=
14200 # exclude_expsyms can be an extended regexp of symbols to exclude
14201 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14202 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14203 # as well as any symbol that contains `d'.
14204 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14205 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14206 # platforms (ab)use it in PIC code, but their linkers get confused if
14207 # the symbol is explicitly referenced. Since portable code cannot
14208 # rely on this symbol name, it's probably fine to never include it in
14209 # preloaded symbol tables.
14210 extract_expsyms_cmds=
14211 # Just being paranoid about ensuring that cc_basename is set.
14212 for cc_temp in $compiler""; do
14213 case $cc_temp in
14214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14216 \-*) ;;
14217 *) break;;
14218 esac
14219 done
14220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14222 case $host_os in
14223 cygwin* | mingw* | pw32*)
14224 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14225 # When not using gcc, we currently assume that we are using
14226 # Microsoft Visual C++.
14227 if test "$GCC" != yes; then
14228 with_gnu_ld=no
14229 fi
14230 ;;
14231 interix*)
14232 # we just hope/assume this is gcc and not c89 (= MSVC++)
14233 with_gnu_ld=yes
14234 ;;
14235 openbsd*)
14236 with_gnu_ld=no
14237 ;;
14238 esac
14240 ld_shlibs_F77=yes
14241 if test "$with_gnu_ld" = yes; then
14242 # If archive_cmds runs LD, not CC, wlarc should be empty
14243 wlarc='${wl}'
14245 # Set some defaults for GNU ld with shared library support. These
14246 # are reset later if shared libraries are not supported. Putting them
14247 # here allows them to be overridden if necessary.
14248 runpath_var=LD_RUN_PATH
14249 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14250 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14251 # ancient GNU ld didn't support --whole-archive et. al.
14252 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14253 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14254 else
14255 whole_archive_flag_spec_F77=
14256 fi
14257 supports_anon_versioning=no
14258 case `$LD -v 2>/dev/null` in
14259 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14260 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14261 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14262 *\ 2.11.*) ;; # other 2.11 versions
14263 *) supports_anon_versioning=yes ;;
14264 esac
14266 # See if GNU ld supports shared libraries.
14267 case $host_os in
14268 aix3* | aix4* | aix5*)
14269 # On AIX/PPC, the GNU linker is very broken
14270 if test "$host_cpu" != ia64; then
14271 ld_shlibs_F77=no
14272 cat <<EOF 1>&2
14274 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14275 *** to be unable to reliably create shared libraries on AIX.
14276 *** Therefore, libtool is disabling shared libraries support. If you
14277 *** really care for shared libraries, you may want to modify your PATH
14278 *** so that a non-GNU linker is found, and then restart.
14280 EOF
14281 fi
14282 ;;
14284 amigaos*)
14285 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)'
14286 hardcode_libdir_flag_spec_F77='-L$libdir'
14287 hardcode_minus_L_F77=yes
14289 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14290 # that the semantics of dynamic libraries on AmigaOS, at least up
14291 # to version 4, is to share data among multiple programs linked
14292 # with the same dynamic library. Since this doesn't match the
14293 # behavior of shared libraries on other platforms, we can't use
14294 # them.
14295 ld_shlibs_F77=no
14296 ;;
14298 beos*)
14299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14300 allow_undefined_flag_F77=unsupported
14301 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14302 # support --undefined. This deserves some investigation. FIXME
14303 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14304 else
14305 ld_shlibs_F77=no
14306 fi
14307 ;;
14309 cygwin* | mingw* | pw32*)
14310 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14311 # as there is no search path for DLLs.
14312 hardcode_libdir_flag_spec_F77='-L$libdir'
14313 allow_undefined_flag_F77=unsupported
14314 always_export_symbols_F77=no
14315 enable_shared_with_static_runtimes_F77=yes
14316 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14318 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14319 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14320 # If the export-symbols file already is a .def file (1st line
14321 # is EXPORTS), use it as is; otherwise, prepend...
14322 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14323 cp $export_symbols $output_objdir/$soname.def;
14324 else
14325 echo EXPORTS > $output_objdir/$soname.def;
14326 cat $export_symbols >> $output_objdir/$soname.def;
14327 fi~
14328 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14329 else
14330 ld_shlibs_F77=no
14331 fi
14332 ;;
14334 interix3*)
14335 hardcode_direct_F77=no
14336 hardcode_shlibpath_var_F77=no
14337 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14338 export_dynamic_flag_spec_F77='${wl}-E'
14339 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14340 # Instead, shared libraries are loaded at an image base (0x10000000 by
14341 # default) and relocated if they conflict, which is a slow very memory
14342 # consuming and fragmenting process. To avoid this, we pick a random,
14343 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14344 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14345 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'
14346 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'
14347 ;;
14349 linux* | k*bsd*-gnu)
14350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14351 tmp_addflag=
14352 case $cc_basename,$host_cpu in
14353 pgcc*) # Portland Group C compiler
14354 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'
14355 tmp_addflag=' $pic_flag'
14356 ;;
14357 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14358 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'
14359 tmp_addflag=' $pic_flag -Mnomain' ;;
14360 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14361 tmp_addflag=' -i_dynamic' ;;
14362 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14363 tmp_addflag=' -i_dynamic -nofor_main' ;;
14364 ifc* | ifort*) # Intel Fortran compiler
14365 tmp_addflag=' -nofor_main' ;;
14366 esac
14367 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14369 if test $supports_anon_versioning = yes; then
14370 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14371 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14372 $echo "local: *; };" >> $output_objdir/$libname.ver~
14373 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14374 fi
14375 link_all_deplibs_F77=no
14376 else
14377 ld_shlibs_F77=no
14378 fi
14379 ;;
14381 netbsd* | netbsdelf*-gnu)
14382 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14383 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14384 wlarc=
14385 else
14386 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14387 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14388 fi
14389 ;;
14391 solaris*)
14392 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14393 ld_shlibs_F77=no
14394 cat <<EOF 1>&2
14396 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14397 *** create shared libraries on Solaris systems. Therefore, libtool
14398 *** is disabling shared libraries support. We urge you to upgrade GNU
14399 *** binutils to release 2.9.1 or newer. Another option is to modify
14400 *** your PATH or compiler configuration so that the native linker is
14401 *** used, and then restart.
14403 EOF
14404 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14405 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14406 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14407 else
14408 ld_shlibs_F77=no
14409 fi
14410 ;;
14412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14413 case `$LD -v 2>&1` in
14414 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14415 ld_shlibs_F77=no
14416 cat <<_LT_EOF 1>&2
14418 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14419 *** reliably create shared libraries on SCO systems. Therefore, libtool
14420 *** is disabling shared libraries support. We urge you to upgrade GNU
14421 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14422 *** your PATH or compiler configuration so that the native linker is
14423 *** used, and then restart.
14425 _LT_EOF
14426 ;;
14427 *)
14428 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14429 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14430 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14431 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14432 else
14433 ld_shlibs_F77=no
14434 fi
14435 ;;
14436 esac
14437 ;;
14439 sunos4*)
14440 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14441 wlarc=
14442 hardcode_direct_F77=yes
14443 hardcode_shlibpath_var_F77=no
14444 ;;
14446 *)
14447 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14448 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14449 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14450 else
14451 ld_shlibs_F77=no
14452 fi
14453 ;;
14454 esac
14456 if test "$ld_shlibs_F77" = no; then
14457 runpath_var=
14458 hardcode_libdir_flag_spec_F77=
14459 export_dynamic_flag_spec_F77=
14460 whole_archive_flag_spec_F77=
14461 fi
14462 else
14463 # PORTME fill in a description of your system's linker (not GNU ld)
14464 case $host_os in
14465 aix3*)
14466 allow_undefined_flag_F77=unsupported
14467 always_export_symbols_F77=yes
14468 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'
14469 # Note: this linker hardcodes the directories in LIBPATH if there
14470 # are no directories specified by -L.
14471 hardcode_minus_L_F77=yes
14472 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14473 # Neither direct hardcoding nor static linking is supported with a
14474 # broken collect2.
14475 hardcode_direct_F77=unsupported
14476 fi
14477 ;;
14479 aix4* | aix5*)
14480 if test "$host_cpu" = ia64; then
14481 # On IA64, the linker does run time linking by default, so we don't
14482 # have to do anything special.
14483 aix_use_runtimelinking=no
14484 exp_sym_flag='-Bexport'
14485 no_entry_flag=""
14486 else
14487 # If we're using GNU nm, then we don't want the "-C" option.
14488 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14489 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14490 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'
14491 else
14492 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'
14493 fi
14494 aix_use_runtimelinking=no
14496 # Test if we are trying to use run time linking or normal
14497 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14498 # need to do runtime linking.
14499 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14500 for ld_flag in $LDFLAGS; do
14501 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14502 aix_use_runtimelinking=yes
14503 break
14504 fi
14505 done
14506 ;;
14507 esac
14509 exp_sym_flag='-bexport'
14510 no_entry_flag='-bnoentry'
14511 fi
14513 # When large executables or shared objects are built, AIX ld can
14514 # have problems creating the table of contents. If linking a library
14515 # or program results in "error TOC overflow" add -mminimal-toc to
14516 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14517 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14519 archive_cmds_F77=''
14520 hardcode_direct_F77=yes
14521 hardcode_libdir_separator_F77=':'
14522 link_all_deplibs_F77=yes
14524 if test "$GCC" = yes; then
14525 case $host_os in aix4.[012]|aix4.[012].*)
14526 # We only want to do this on AIX 4.2 and lower, the check
14527 # below for broken collect2 doesn't work under 4.3+
14528 collect2name=`${CC} -print-prog-name=collect2`
14529 if test -f "$collect2name" && \
14530 strings "$collect2name" | grep resolve_lib_name >/dev/null
14531 then
14532 # We have reworked collect2
14533 hardcode_direct_F77=yes
14534 else
14535 # We have old collect2
14536 hardcode_direct_F77=unsupported
14537 # It fails to find uninstalled libraries when the uninstalled
14538 # path is not listed in the libpath. Setting hardcode_minus_L
14539 # to unsupported forces relinking
14540 hardcode_minus_L_F77=yes
14541 hardcode_libdir_flag_spec_F77='-L$libdir'
14542 hardcode_libdir_separator_F77=
14543 fi
14544 ;;
14545 esac
14546 shared_flag='-shared'
14547 if test "$aix_use_runtimelinking" = yes; then
14548 shared_flag="$shared_flag "'${wl}-G'
14549 fi
14550 else
14551 # not using gcc
14552 if test "$host_cpu" = ia64; then
14553 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14554 # chokes on -Wl,-G. The following line is correct:
14555 shared_flag='-G'
14556 else
14557 if test "$aix_use_runtimelinking" = yes; then
14558 shared_flag='${wl}-G'
14559 else
14560 shared_flag='${wl}-bM:SRE'
14561 fi
14562 fi
14563 fi
14565 # It seems that -bexpall does not export symbols beginning with
14566 # underscore (_), so it is better to generate a list of symbols to export.
14567 always_export_symbols_F77=yes
14568 if test "$aix_use_runtimelinking" = yes; then
14569 # Warning - without using the other runtime loading flags (-brtl),
14570 # -berok will link without error, but may produce a broken library.
14571 allow_undefined_flag_F77='-berok'
14572 # Determine the default libpath from the value encoded in an empty executable.
14573 cat >conftest.$ac_ext <<_ACEOF
14574 program main
14576 end
14577 _ACEOF
14578 rm -f conftest.$ac_objext conftest$ac_exeext
14579 if { (ac_try="$ac_link"
14580 case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14583 esac
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_link") 2>conftest.er1
14586 ac_status=$?
14587 grep -v '^ *+' conftest.er1 >conftest.err
14588 rm -f conftest.er1
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } && {
14592 test -z "$ac_f77_werror_flag" ||
14593 test ! -s conftest.err
14594 } && test -s conftest$ac_exeext &&
14595 $as_test_x conftest$ac_exeext; then
14597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14598 }'`
14599 # Check for a 64-bit object if we didn't find anything.
14600 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; }
14601 }'`; fi
14602 else
14603 echo "$as_me: failed program was:" >&5
14604 sed 's/^/| /' conftest.$ac_ext >&5
14607 fi
14609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14610 conftest$ac_exeext conftest.$ac_ext
14611 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14613 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14614 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"
14615 else
14616 if test "$host_cpu" = ia64; then
14617 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14618 allow_undefined_flag_F77="-z nodefs"
14619 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"
14620 else
14621 # Determine the default libpath from the value encoded in an empty executable.
14622 cat >conftest.$ac_ext <<_ACEOF
14623 program main
14625 end
14626 _ACEOF
14627 rm -f conftest.$ac_objext conftest$ac_exeext
14628 if { (ac_try="$ac_link"
14629 case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14632 esac
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_link") 2>conftest.er1
14635 ac_status=$?
14636 grep -v '^ *+' conftest.er1 >conftest.err
14637 rm -f conftest.er1
14638 cat conftest.err >&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } && {
14641 test -z "$ac_f77_werror_flag" ||
14642 test ! -s conftest.err
14643 } && test -s conftest$ac_exeext &&
14644 $as_test_x conftest$ac_exeext; then
14646 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14647 }'`
14648 # Check for a 64-bit object if we didn't find anything.
14649 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; }
14650 }'`; fi
14651 else
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14656 fi
14658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14659 conftest$ac_exeext conftest.$ac_ext
14660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14662 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14663 # Warning - without using the other run time loading flags,
14664 # -berok will link without error, but may produce a broken library.
14665 no_undefined_flag_F77=' ${wl}-bernotok'
14666 allow_undefined_flag_F77=' ${wl}-berok'
14667 # Exported symbols can be pulled into shared objects from archives
14668 whole_archive_flag_spec_F77='$convenience'
14669 archive_cmds_need_lc_F77=yes
14670 # This is similar to how AIX traditionally builds its shared libraries.
14671 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'
14672 fi
14673 fi
14674 ;;
14676 amigaos*)
14677 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)'
14678 hardcode_libdir_flag_spec_F77='-L$libdir'
14679 hardcode_minus_L_F77=yes
14680 # see comment about different semantics on the GNU ld section
14681 ld_shlibs_F77=no
14682 ;;
14684 bsdi[45]*)
14685 export_dynamic_flag_spec_F77=-rdynamic
14686 ;;
14688 cygwin* | mingw* | pw32*)
14689 # When not using gcc, we currently assume that we are using
14690 # Microsoft Visual C++.
14691 # hardcode_libdir_flag_spec is actually meaningless, as there is
14692 # no search path for DLLs.
14693 hardcode_libdir_flag_spec_F77=' '
14694 allow_undefined_flag_F77=unsupported
14695 # Tell ltmain to make .lib files, not .a files.
14696 libext=lib
14697 # Tell ltmain to make .dll files, not .so files.
14698 shrext_cmds=".dll"
14699 # FIXME: Setting linknames here is a bad hack.
14700 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14701 # The linker will automatically build a .lib file if we build a DLL.
14702 old_archive_From_new_cmds_F77='true'
14703 # FIXME: Should let the user specify the lib program.
14704 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14705 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14706 enable_shared_with_static_runtimes_F77=yes
14707 ;;
14709 darwin* | rhapsody*)
14710 case $host_os in
14711 rhapsody* | darwin1.[012])
14712 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14713 ;;
14714 *) # Darwin 1.3 on
14715 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14716 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14717 else
14718 case ${MACOSX_DEPLOYMENT_TARGET} in
14719 10.[012])
14720 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14721 ;;
14722 10.*)
14723 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14724 ;;
14725 esac
14726 fi
14727 ;;
14728 esac
14729 archive_cmds_need_lc_F77=no
14730 hardcode_direct_F77=no
14731 hardcode_automatic_F77=yes
14732 hardcode_shlibpath_var_F77=unsupported
14733 whole_archive_flag_spec_F77=''
14734 link_all_deplibs_F77=yes
14735 if test "$GCC" = yes ; then
14736 output_verbose_link_cmd='echo'
14737 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14738 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14740 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}'
14741 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}'
14742 else
14743 case $cc_basename in
14744 xlc*)
14745 output_verbose_link_cmd='echo'
14746 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14747 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14748 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14749 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}'
14750 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}'
14751 ;;
14752 *)
14753 ld_shlibs_F77=no
14754 ;;
14755 esac
14756 fi
14757 ;;
14759 dgux*)
14760 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14761 hardcode_libdir_flag_spec_F77='-L$libdir'
14762 hardcode_shlibpath_var_F77=no
14763 ;;
14765 freebsd1*)
14766 ld_shlibs_F77=no
14767 ;;
14769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14770 # support. Future versions do this automatically, but an explicit c++rt0.o
14771 # does not break anything, and helps significantly (at the cost of a little
14772 # extra space).
14773 freebsd2.2*)
14774 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14775 hardcode_libdir_flag_spec_F77='-R$libdir'
14776 hardcode_direct_F77=yes
14777 hardcode_shlibpath_var_F77=no
14778 ;;
14780 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14781 freebsd2*)
14782 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14783 hardcode_direct_F77=yes
14784 hardcode_minus_L_F77=yes
14785 hardcode_shlibpath_var_F77=no
14786 ;;
14788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14789 freebsd* | dragonfly*)
14790 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14791 hardcode_libdir_flag_spec_F77='-R$libdir'
14792 hardcode_direct_F77=yes
14793 hardcode_shlibpath_var_F77=no
14794 ;;
14796 hpux9*)
14797 if test "$GCC" = yes; then
14798 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'
14799 else
14800 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'
14801 fi
14802 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14803 hardcode_libdir_separator_F77=:
14804 hardcode_direct_F77=yes
14806 # hardcode_minus_L: Not really in the search PATH,
14807 # but as the default location of the library.
14808 hardcode_minus_L_F77=yes
14809 export_dynamic_flag_spec_F77='${wl}-E'
14810 ;;
14812 hpux10*)
14813 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14814 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14815 else
14816 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14817 fi
14818 if test "$with_gnu_ld" = no; then
14819 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14820 hardcode_libdir_separator_F77=:
14822 hardcode_direct_F77=yes
14823 export_dynamic_flag_spec_F77='${wl}-E'
14825 # hardcode_minus_L: Not really in the search PATH,
14826 # but as the default location of the library.
14827 hardcode_minus_L_F77=yes
14828 fi
14829 ;;
14831 hpux11*)
14832 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14833 case $host_cpu in
14834 hppa*64*)
14835 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14836 ;;
14837 ia64*)
14838 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14839 ;;
14840 *)
14841 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14842 ;;
14843 esac
14844 else
14845 case $host_cpu in
14846 hppa*64*)
14847 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14848 ;;
14849 ia64*)
14850 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14851 ;;
14852 *)
14853 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14854 ;;
14855 esac
14856 fi
14857 if test "$with_gnu_ld" = no; then
14858 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14859 hardcode_libdir_separator_F77=:
14861 case $host_cpu in
14862 hppa*64*|ia64*)
14863 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14864 hardcode_direct_F77=no
14865 hardcode_shlibpath_var_F77=no
14866 ;;
14867 *)
14868 hardcode_direct_F77=yes
14869 export_dynamic_flag_spec_F77='${wl}-E'
14871 # hardcode_minus_L: Not really in the search PATH,
14872 # but as the default location of the library.
14873 hardcode_minus_L_F77=yes
14874 ;;
14875 esac
14876 fi
14877 ;;
14879 irix5* | irix6* | nonstopux*)
14880 if test "$GCC" = yes; then
14881 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'
14882 else
14883 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'
14884 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14885 fi
14886 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14887 hardcode_libdir_separator_F77=:
14888 link_all_deplibs_F77=yes
14889 ;;
14891 netbsd* | netbsdelf*-gnu)
14892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14893 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14894 else
14895 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14896 fi
14897 hardcode_libdir_flag_spec_F77='-R$libdir'
14898 hardcode_direct_F77=yes
14899 hardcode_shlibpath_var_F77=no
14900 ;;
14902 newsos6)
14903 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14904 hardcode_direct_F77=yes
14905 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14906 hardcode_libdir_separator_F77=:
14907 hardcode_shlibpath_var_F77=no
14908 ;;
14910 openbsd*)
14911 hardcode_direct_F77=yes
14912 hardcode_shlibpath_var_F77=no
14913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14914 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14915 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14916 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14917 export_dynamic_flag_spec_F77='${wl}-E'
14918 else
14919 case $host_os in
14920 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14921 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14922 hardcode_libdir_flag_spec_F77='-R$libdir'
14923 ;;
14924 *)
14925 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14926 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14927 ;;
14928 esac
14929 fi
14930 ;;
14932 os2*)
14933 hardcode_libdir_flag_spec_F77='-L$libdir'
14934 hardcode_minus_L_F77=yes
14935 allow_undefined_flag_F77=unsupported
14936 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'
14937 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14938 ;;
14940 osf3*)
14941 if test "$GCC" = yes; then
14942 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14943 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'
14944 else
14945 allow_undefined_flag_F77=' -expect_unresolved \*'
14946 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'
14947 fi
14948 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14949 hardcode_libdir_separator_F77=:
14950 ;;
14952 osf4* | osf5*) # as osf3* with the addition of -msym flag
14953 if test "$GCC" = yes; then
14954 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14955 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'
14956 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14957 else
14958 allow_undefined_flag_F77=' -expect_unresolved \*'
14959 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'
14960 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~
14961 $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'
14963 # Both c and cxx compiler support -rpath directly
14964 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14965 fi
14966 hardcode_libdir_separator_F77=:
14967 ;;
14969 solaris*)
14970 no_undefined_flag_F77=' -z text'
14971 if test "$GCC" = yes; then
14972 wlarc='${wl}'
14973 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14974 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14975 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14976 else
14977 wlarc=''
14978 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14979 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14980 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14981 fi
14982 hardcode_libdir_flag_spec_F77='-R$libdir'
14983 hardcode_shlibpath_var_F77=no
14984 case $host_os in
14985 solaris2.[0-5] | solaris2.[0-5].*) ;;
14986 *)
14987 # The compiler driver will combine linker options so we
14988 # cannot just pass the convience library names through
14989 # without $wl, iff we do not link with $LD.
14990 # Luckily, gcc supports the same syntax we need for Sun Studio.
14991 # Supported since Solaris 2.6 (maybe 2.5.1?)
14992 case $wlarc in
14993 '')
14994 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14995 *)
14996 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' ;;
14997 esac ;;
14998 esac
14999 link_all_deplibs_F77=yes
15000 ;;
15002 sunos4*)
15003 if test "x$host_vendor" = xsequent; then
15004 # Use $CC to link under sequent, because it throws in some extra .o
15005 # files that make .init and .fini sections work.
15006 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15007 else
15008 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15009 fi
15010 hardcode_libdir_flag_spec_F77='-L$libdir'
15011 hardcode_direct_F77=yes
15012 hardcode_minus_L_F77=yes
15013 hardcode_shlibpath_var_F77=no
15014 ;;
15016 sysv4)
15017 case $host_vendor in
15018 sni)
15019 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15020 hardcode_direct_F77=yes # is this really true???
15021 ;;
15022 siemens)
15023 ## LD is ld it makes a PLAMLIB
15024 ## CC just makes a GrossModule.
15025 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15026 reload_cmds_F77='$CC -r -o $output$reload_objs'
15027 hardcode_direct_F77=no
15028 ;;
15029 motorola)
15030 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15031 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15032 ;;
15033 esac
15034 runpath_var='LD_RUN_PATH'
15035 hardcode_shlibpath_var_F77=no
15036 ;;
15038 sysv4.3*)
15039 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15040 hardcode_shlibpath_var_F77=no
15041 export_dynamic_flag_spec_F77='-Bexport'
15042 ;;
15044 sysv4*MP*)
15045 if test -d /usr/nec; then
15046 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15047 hardcode_shlibpath_var_F77=no
15048 runpath_var=LD_RUN_PATH
15049 hardcode_runpath_var=yes
15050 ld_shlibs_F77=yes
15051 fi
15052 ;;
15054 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15055 no_undefined_flag_F77='${wl}-z,text'
15056 archive_cmds_need_lc_F77=no
15057 hardcode_shlibpath_var_F77=no
15058 runpath_var='LD_RUN_PATH'
15060 if test "$GCC" = yes; then
15061 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15062 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15063 else
15064 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15065 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15066 fi
15067 ;;
15069 sysv5* | sco3.2v5* | sco5v6*)
15070 # Note: We can NOT use -z defs as we might desire, because we do not
15071 # link with -lc, and that would cause any symbols used from libc to
15072 # always be unresolved, which means just about no library would
15073 # ever link correctly. If we're not using GNU ld we use -z text
15074 # though, which does catch some bad symbols but isn't as heavy-handed
15075 # as -z defs.
15076 no_undefined_flag_F77='${wl}-z,text'
15077 allow_undefined_flag_F77='${wl}-z,nodefs'
15078 archive_cmds_need_lc_F77=no
15079 hardcode_shlibpath_var_F77=no
15080 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15081 hardcode_libdir_separator_F77=':'
15082 link_all_deplibs_F77=yes
15083 export_dynamic_flag_spec_F77='${wl}-Bexport'
15084 runpath_var='LD_RUN_PATH'
15086 if test "$GCC" = yes; then
15087 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15088 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15089 else
15090 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15091 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15092 fi
15093 ;;
15095 uts4*)
15096 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15097 hardcode_libdir_flag_spec_F77='-L$libdir'
15098 hardcode_shlibpath_var_F77=no
15099 ;;
15101 *)
15102 ld_shlibs_F77=no
15103 ;;
15104 esac
15105 fi
15107 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15108 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15109 test "$ld_shlibs_F77" = no && can_build_shared=no
15111 #
15112 # Do we need to explicitly link libc?
15113 #
15114 case "x$archive_cmds_need_lc_F77" in
15115 x|xyes)
15116 # Assume -lc should be added
15117 archive_cmds_need_lc_F77=yes
15119 if test "$enable_shared" = yes && test "$GCC" = yes; then
15120 case $archive_cmds_F77 in
15121 *'~'*)
15122 # FIXME: we may have to deal with multi-command sequences.
15123 ;;
15124 '$CC '*)
15125 # Test whether the compiler implicitly links with -lc since on some
15126 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15127 # to ld, don't add -lc before -lgcc.
15128 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15129 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15130 $rm conftest*
15131 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15134 (eval $ac_compile) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } 2>conftest.err; then
15138 soname=conftest
15139 lib=conftest
15140 libobjs=conftest.$ac_objext
15141 deplibs=
15142 wl=$lt_prog_compiler_wl_F77
15143 pic_flag=$lt_prog_compiler_pic_F77
15144 compiler_flags=-v
15145 linker_flags=-v
15146 verstring=
15147 output_objdir=.
15148 libname=conftest
15149 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15150 allow_undefined_flag_F77=
15151 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15152 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }
15156 then
15157 archive_cmds_need_lc_F77=no
15158 else
15159 archive_cmds_need_lc_F77=yes
15160 fi
15161 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15162 else
15163 cat conftest.err 1>&5
15164 fi
15165 $rm conftest*
15166 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15167 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15168 ;;
15169 esac
15170 fi
15171 ;;
15172 esac
15174 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15175 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15176 library_names_spec=
15177 libname_spec='lib$name'
15178 soname_spec=
15179 shrext_cmds=".so"
15180 postinstall_cmds=
15181 postuninstall_cmds=
15182 finish_cmds=
15183 finish_eval=
15184 shlibpath_var=
15185 shlibpath_overrides_runpath=unknown
15186 version_type=none
15187 dynamic_linker="$host_os ld.so"
15188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15189 if test "$GCC" = yes; then
15190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15191 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15192 # if the path contains ";" then we assume it to be the separator
15193 # otherwise default to the standard path separator (i.e. ":") - it is
15194 # assumed that no part of a normal pathname contains ";" but that should
15195 # okay in the real world where ";" in dirpaths is itself problematic.
15196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15197 else
15198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15199 fi
15200 else
15201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15202 fi
15203 need_lib_prefix=unknown
15204 hardcode_into_libs=no
15206 # when you set need_version to no, make sure it does not cause -set_version
15207 # flags to be left without arguments
15208 need_version=unknown
15210 case $host_os in
15211 aix3*)
15212 version_type=linux
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15214 shlibpath_var=LIBPATH
15216 # AIX 3 has no versioning support, so we append a major version to the name.
15217 soname_spec='${libname}${release}${shared_ext}$major'
15218 ;;
15220 aix4* | aix5*)
15221 version_type=linux
15222 need_lib_prefix=no
15223 need_version=no
15224 hardcode_into_libs=yes
15225 if test "$host_cpu" = ia64; then
15226 # AIX 5 supports IA64
15227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15228 shlibpath_var=LD_LIBRARY_PATH
15229 else
15230 # With GCC up to 2.95.x, collect2 would create an import file
15231 # for dependence libraries. The import file would start with
15232 # the line `#! .'. This would cause the generated library to
15233 # depend on `.', always an invalid library. This was fixed in
15234 # development snapshots of GCC prior to 3.0.
15235 case $host_os in
15236 aix4 | aix4.[01] | aix4.[01].*)
15237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15238 echo ' yes '
15239 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15240 :
15241 else
15242 can_build_shared=no
15243 fi
15244 ;;
15245 esac
15246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15247 # soname into executable. Probably we can add versioning support to
15248 # collect2, so additional links can be useful in future.
15249 if test "$aix_use_runtimelinking" = yes; then
15250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15251 # instead of lib<name>.a to let people know that these are not
15252 # typical AIX shared libraries.
15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 else
15255 # We preserve .a as extension for shared libraries through AIX4.2
15256 # and later when we are not doing run time linking.
15257 library_names_spec='${libname}${release}.a $libname.a'
15258 soname_spec='${libname}${release}${shared_ext}$major'
15259 fi
15260 shlibpath_var=LIBPATH
15261 fi
15262 ;;
15264 amigaos*)
15265 library_names_spec='$libname.ixlibrary $libname.a'
15266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15267 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'
15268 ;;
15270 beos*)
15271 library_names_spec='${libname}${shared_ext}'
15272 dynamic_linker="$host_os ld.so"
15273 shlibpath_var=LIBRARY_PATH
15274 ;;
15276 bsdi[45]*)
15277 version_type=linux
15278 need_version=no
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15282 shlibpath_var=LD_LIBRARY_PATH
15283 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15284 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15285 # the default ld.so.conf also contains /usr/contrib/lib and
15286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15287 # libtool to hard-code these into programs
15288 ;;
15290 cygwin* | mingw* | pw32*)
15291 version_type=windows
15292 shrext_cmds=".dll"
15293 need_version=no
15294 need_lib_prefix=no
15296 case $GCC,$host_os in
15297 yes,cygwin* | yes,mingw* | yes,pw32*)
15298 library_names_spec='$libname.dll.a'
15299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15300 postinstall_cmds='base_file=`basename \${file}`~
15301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15302 dldir=$destdir/`dirname \$dlpath`~
15303 test -d \$dldir || mkdir -p \$dldir~
15304 $install_prog $dir/$dlname \$dldir/$dlname~
15305 chmod a+x \$dldir/$dlname'
15306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15307 dlpath=$dir/\$dldll~
15308 $rm \$dlpath'
15309 shlibpath_overrides_runpath=yes
15311 case $host_os in
15312 cygwin*)
15313 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15314 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15315 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15316 ;;
15317 mingw*)
15318 # MinGW DLLs use traditional 'lib' prefix
15319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15320 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15321 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15322 # It is most probably a Windows format PATH printed by
15323 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15324 # path with ; separators, and with drive letters. We can handle the
15325 # drive letters (cygwin fileutils understands them), so leave them,
15326 # especially as we might pass files found there to a mingw objdump,
15327 # which wouldn't understand a cygwinified path. Ahh.
15328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15329 else
15330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15331 fi
15332 ;;
15333 pw32*)
15334 # pw32 DLLs use 'pw' prefix rather than 'lib'
15335 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15336 ;;
15337 esac
15338 ;;
15340 *)
15341 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15342 ;;
15343 esac
15344 dynamic_linker='Win32 ld.exe'
15345 # FIXME: first we should search . and the directory the executable is in
15346 shlibpath_var=PATH
15347 ;;
15349 darwin* | rhapsody*)
15350 dynamic_linker="$host_os dyld"
15351 version_type=darwin
15352 need_lib_prefix=no
15353 need_version=no
15354 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15355 soname_spec='${libname}${release}${major}$shared_ext'
15356 shlibpath_overrides_runpath=yes
15357 shlibpath_var=DYLD_LIBRARY_PATH
15358 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15359 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15360 if test "$GCC" = yes; then
15361 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"`
15362 else
15363 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15364 fi
15365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15366 ;;
15368 dgux*)
15369 version_type=linux
15370 need_lib_prefix=no
15371 need_version=no
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 ;;
15377 freebsd1*)
15378 dynamic_linker=no
15379 ;;
15381 freebsd* | dragonfly*)
15382 # DragonFly does not have aout. When/if they implement a new
15383 # versioning mechanism, adjust this.
15384 if test -x /usr/bin/objformat; then
15385 objformat=`/usr/bin/objformat`
15386 else
15387 case $host_os in
15388 freebsd[123]*) objformat=aout ;;
15389 *) objformat=elf ;;
15390 esac
15391 fi
15392 version_type=freebsd-$objformat
15393 case $version_type in
15394 freebsd-elf*)
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15396 need_version=no
15397 need_lib_prefix=no
15398 ;;
15399 freebsd-*)
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15401 need_version=yes
15402 ;;
15403 esac
15404 shlibpath_var=LD_LIBRARY_PATH
15405 case $host_os in
15406 freebsd2*)
15407 shlibpath_overrides_runpath=yes
15408 ;;
15409 freebsd3.[01]* | freebsdelf3.[01]*)
15410 shlibpath_overrides_runpath=yes
15411 hardcode_into_libs=yes
15412 ;;
15413 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15414 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15415 shlibpath_overrides_runpath=no
15416 hardcode_into_libs=yes
15417 ;;
15418 freebsd*) # from 4.6 on
15419 shlibpath_overrides_runpath=yes
15420 hardcode_into_libs=yes
15421 ;;
15422 esac
15423 ;;
15425 gnu*)
15426 version_type=linux
15427 need_lib_prefix=no
15428 need_version=no
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15430 soname_spec='${libname}${release}${shared_ext}$major'
15431 shlibpath_var=LD_LIBRARY_PATH
15432 hardcode_into_libs=yes
15433 ;;
15435 hpux9* | hpux10* | hpux11*)
15436 # Give a soname corresponding to the major version so that dld.sl refuses to
15437 # link against other versions.
15438 version_type=sunos
15439 need_lib_prefix=no
15440 need_version=no
15441 case $host_cpu in
15442 ia64*)
15443 shrext_cmds='.so'
15444 hardcode_into_libs=yes
15445 dynamic_linker="$host_os dld.so"
15446 shlibpath_var=LD_LIBRARY_PATH
15447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 if test "X$HPUX_IA64_MODE" = X32; then
15451 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15452 else
15453 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15454 fi
15455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15456 ;;
15457 hppa*64*)
15458 shrext_cmds='.sl'
15459 hardcode_into_libs=yes
15460 dynamic_linker="$host_os dld.sl"
15461 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15467 ;;
15468 *)
15469 shrext_cmds='.sl'
15470 dynamic_linker="$host_os dld.sl"
15471 shlibpath_var=SHLIB_PATH
15472 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474 soname_spec='${libname}${release}${shared_ext}$major'
15475 ;;
15476 esac
15477 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15478 postinstall_cmds='chmod 555 $lib'
15479 ;;
15481 interix3*)
15482 version_type=linux
15483 need_lib_prefix=no
15484 need_version=no
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15486 soname_spec='${libname}${release}${shared_ext}$major'
15487 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15488 shlibpath_var=LD_LIBRARY_PATH
15489 shlibpath_overrides_runpath=no
15490 hardcode_into_libs=yes
15491 ;;
15493 irix5* | irix6* | nonstopux*)
15494 case $host_os in
15495 nonstopux*) version_type=nonstopux ;;
15496 *)
15497 if test "$lt_cv_prog_gnu_ld" = yes; then
15498 version_type=linux
15499 else
15500 version_type=irix
15501 fi ;;
15502 esac
15503 need_lib_prefix=no
15504 need_version=no
15505 soname_spec='${libname}${release}${shared_ext}$major'
15506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15507 case $host_os in
15508 irix5* | nonstopux*)
15509 libsuff= shlibsuff=
15510 ;;
15511 *)
15512 case $LD in # libtool.m4 will add one of these switches to LD
15513 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15514 libsuff= shlibsuff= libmagic=32-bit;;
15515 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15516 libsuff=32 shlibsuff=N32 libmagic=N32;;
15517 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15518 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15519 *) libsuff= shlibsuff= libmagic=never-match;;
15520 esac
15521 ;;
15522 esac
15523 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15524 shlibpath_overrides_runpath=no
15525 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15526 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15527 hardcode_into_libs=yes
15528 ;;
15530 # No shared lib support for Linux oldld, aout, or coff.
15531 linux*oldld* | linux*aout* | linux*coff*)
15532 dynamic_linker=no
15533 ;;
15535 # This must be Linux ELF.
15536 linux* | k*bsd*-gnu)
15537 version_type=linux
15538 need_lib_prefix=no
15539 need_version=no
15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15541 soname_spec='${libname}${release}${shared_ext}$major'
15542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15543 shlibpath_var=LD_LIBRARY_PATH
15544 shlibpath_overrides_runpath=no
15545 # This implies no fast_install, which is unacceptable.
15546 # Some rework will be needed to allow for fast_install
15547 # before this can be enabled.
15548 hardcode_into_libs=yes
15550 # Append ld.so.conf contents to the search path
15551 if test -f /etc/ld.so.conf; then
15552 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' ' '`
15553 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15554 fi
15556 # We used to test for /lib/ld.so.1 and disable shared libraries on
15557 # powerpc, because MkLinux only supported shared libraries with the
15558 # GNU dynamic linker. Since this was broken with cross compilers,
15559 # most powerpc-linux boxes support dynamic linking these days and
15560 # people can always --disable-shared, the test was removed, and we
15561 # assume the GNU/Linux dynamic linker is in use.
15562 dynamic_linker='GNU/Linux ld.so'
15563 ;;
15565 netbsdelf*-gnu)
15566 version_type=linux
15567 need_lib_prefix=no
15568 need_version=no
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 shlibpath_overrides_runpath=no
15573 hardcode_into_libs=yes
15574 dynamic_linker='NetBSD ld.elf_so'
15575 ;;
15577 netbsd*)
15578 version_type=sunos
15579 need_lib_prefix=no
15580 need_version=no
15581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15584 dynamic_linker='NetBSD (a.out) ld.so'
15585 else
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 dynamic_linker='NetBSD ld.elf_so'
15589 fi
15590 shlibpath_var=LD_LIBRARY_PATH
15591 shlibpath_overrides_runpath=yes
15592 hardcode_into_libs=yes
15593 ;;
15595 newsos6)
15596 version_type=linux
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15598 shlibpath_var=LD_LIBRARY_PATH
15599 shlibpath_overrides_runpath=yes
15600 ;;
15602 nto-qnx*)
15603 version_type=linux
15604 need_lib_prefix=no
15605 need_version=no
15606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15607 soname_spec='${libname}${release}${shared_ext}$major'
15608 shlibpath_var=LD_LIBRARY_PATH
15609 shlibpath_overrides_runpath=yes
15610 ;;
15612 openbsd*)
15613 version_type=sunos
15614 sys_lib_dlsearch_path_spec="/usr/lib"
15615 need_lib_prefix=no
15616 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15617 case $host_os in
15618 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15619 *) need_version=no ;;
15620 esac
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15623 shlibpath_var=LD_LIBRARY_PATH
15624 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15625 case $host_os in
15626 openbsd2.[89] | openbsd2.[89].*)
15627 shlibpath_overrides_runpath=no
15628 ;;
15629 *)
15630 shlibpath_overrides_runpath=yes
15631 ;;
15632 esac
15633 else
15634 shlibpath_overrides_runpath=yes
15635 fi
15636 ;;
15638 os2*)
15639 libname_spec='$name'
15640 shrext_cmds=".dll"
15641 need_lib_prefix=no
15642 library_names_spec='$libname${shared_ext} $libname.a'
15643 dynamic_linker='OS/2 ld.exe'
15644 shlibpath_var=LIBPATH
15645 ;;
15647 osf3* | osf4* | osf5*)
15648 version_type=osf
15649 need_lib_prefix=no
15650 need_version=no
15651 soname_spec='${libname}${release}${shared_ext}$major'
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 shlibpath_var=LD_LIBRARY_PATH
15654 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15655 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15656 ;;
15658 solaris*)
15659 version_type=linux
15660 need_lib_prefix=no
15661 need_version=no
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 shlibpath_overrides_runpath=yes
15666 hardcode_into_libs=yes
15667 # ldd complains unless libraries are executable
15668 postinstall_cmds='chmod +x $lib'
15669 ;;
15671 sunos4*)
15672 version_type=sunos
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15674 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15675 shlibpath_var=LD_LIBRARY_PATH
15676 shlibpath_overrides_runpath=yes
15677 if test "$with_gnu_ld" = yes; then
15678 need_lib_prefix=no
15679 fi
15680 need_version=yes
15681 ;;
15683 sysv4 | sysv4.3*)
15684 version_type=linux
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686 soname_spec='${libname}${release}${shared_ext}$major'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 case $host_vendor in
15689 sni)
15690 shlibpath_overrides_runpath=no
15691 need_lib_prefix=no
15692 export_dynamic_flag_spec='${wl}-Blargedynsym'
15693 runpath_var=LD_RUN_PATH
15694 ;;
15695 siemens)
15696 need_lib_prefix=no
15697 ;;
15698 motorola)
15699 need_lib_prefix=no
15700 need_version=no
15701 shlibpath_overrides_runpath=no
15702 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15703 ;;
15704 esac
15705 ;;
15707 sysv4*MP*)
15708 if test -d /usr/nec ;then
15709 version_type=linux
15710 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15711 soname_spec='$libname${shared_ext}.$major'
15712 shlibpath_var=LD_LIBRARY_PATH
15713 fi
15714 ;;
15716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15717 version_type=freebsd-elf
15718 need_lib_prefix=no
15719 need_version=no
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 hardcode_into_libs=yes
15724 if test "$with_gnu_ld" = yes; then
15725 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15726 shlibpath_overrides_runpath=no
15727 else
15728 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15729 shlibpath_overrides_runpath=yes
15730 case $host_os in
15731 sco3.2v5*)
15732 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15733 ;;
15734 esac
15735 fi
15736 sys_lib_dlsearch_path_spec='/usr/lib'
15737 ;;
15739 uts4*)
15740 version_type=linux
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15742 soname_spec='${libname}${release}${shared_ext}$major'
15743 shlibpath_var=LD_LIBRARY_PATH
15744 ;;
15746 *)
15747 dynamic_linker=no
15748 ;;
15749 esac
15750 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15751 echo "${ECHO_T}$dynamic_linker" >&6; }
15752 test "$dynamic_linker" = no && can_build_shared=no
15754 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15755 if test "$GCC" = yes; then
15756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15757 fi
15759 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15760 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15761 hardcode_action_F77=
15762 if test -n "$hardcode_libdir_flag_spec_F77" || \
15763 test -n "$runpath_var_F77" || \
15764 test "X$hardcode_automatic_F77" = "Xyes" ; then
15766 # We can hardcode non-existant directories.
15767 if test "$hardcode_direct_F77" != no &&
15768 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15769 # have to relink, otherwise we might link with an installed library
15770 # when we should be linking with a yet-to-be-installed one
15771 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15772 test "$hardcode_minus_L_F77" != no; then
15773 # Linking always hardcodes the temporary library directory.
15774 hardcode_action_F77=relink
15775 else
15776 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15777 hardcode_action_F77=immediate
15778 fi
15779 else
15780 # We cannot hardcode anything, or else we can only hardcode existing
15781 # directories.
15782 hardcode_action_F77=unsupported
15783 fi
15784 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15785 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15787 if test "$hardcode_action_F77" = relink; then
15788 # Fast installation is not supported
15789 enable_fast_install=no
15790 elif test "$shlibpath_overrides_runpath" = yes ||
15791 test "$enable_shared" = no; then
15792 # Fast installation is not necessary
15793 enable_fast_install=needless
15794 fi
15797 # The else clause should only fire when bootstrapping the
15798 # libtool distribution, otherwise you forgot to ship ltmain.sh
15799 # with your package, and you will get complaints that there are
15800 # no rules to generate ltmain.sh.
15801 if test -f "$ltmain"; then
15802 # See if we are running on zsh, and set the options which allow our commands through
15803 # without removal of \ escapes.
15804 if test -n "${ZSH_VERSION+set}" ; then
15805 setopt NO_GLOB_SUBST
15806 fi
15807 # Now quote all the things that may contain metacharacters while being
15808 # careful not to overquote the AC_SUBSTed values. We take copies of the
15809 # variables and quote the copies for generation of the libtool script.
15810 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15811 SED SHELL STRIP \
15812 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15813 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15814 deplibs_check_method reload_flag reload_cmds need_locks \
15815 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15816 lt_cv_sys_global_symbol_to_c_name_address \
15817 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15818 old_postinstall_cmds old_postuninstall_cmds \
15819 compiler_F77 \
15820 CC_F77 \
15821 LD_F77 \
15822 lt_prog_compiler_wl_F77 \
15823 lt_prog_compiler_pic_F77 \
15824 lt_prog_compiler_static_F77 \
15825 lt_prog_compiler_no_builtin_flag_F77 \
15826 export_dynamic_flag_spec_F77 \
15827 thread_safe_flag_spec_F77 \
15828 whole_archive_flag_spec_F77 \
15829 enable_shared_with_static_runtimes_F77 \
15830 old_archive_cmds_F77 \
15831 old_archive_from_new_cmds_F77 \
15832 predep_objects_F77 \
15833 postdep_objects_F77 \
15834 predeps_F77 \
15835 postdeps_F77 \
15836 compiler_lib_search_path_F77 \
15837 archive_cmds_F77 \
15838 archive_expsym_cmds_F77 \
15839 postinstall_cmds_F77 \
15840 postuninstall_cmds_F77 \
15841 old_archive_from_expsyms_cmds_F77 \
15842 allow_undefined_flag_F77 \
15843 no_undefined_flag_F77 \
15844 export_symbols_cmds_F77 \
15845 hardcode_libdir_flag_spec_F77 \
15846 hardcode_libdir_flag_spec_ld_F77 \
15847 hardcode_libdir_separator_F77 \
15848 hardcode_automatic_F77 \
15849 module_cmds_F77 \
15850 module_expsym_cmds_F77 \
15851 lt_cv_prog_compiler_c_o_F77 \
15852 exclude_expsyms_F77 \
15853 include_expsyms_F77; do
15855 case $var in
15856 old_archive_cmds_F77 | \
15857 old_archive_from_new_cmds_F77 | \
15858 archive_cmds_F77 | \
15859 archive_expsym_cmds_F77 | \
15860 module_cmds_F77 | \
15861 module_expsym_cmds_F77 | \
15862 old_archive_from_expsyms_cmds_F77 | \
15863 export_symbols_cmds_F77 | \
15864 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15865 postinstall_cmds | postuninstall_cmds | \
15866 old_postinstall_cmds | old_postuninstall_cmds | \
15867 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15868 # Double-quote double-evaled strings.
15869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15870 ;;
15871 *)
15872 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15873 ;;
15874 esac
15875 done
15877 case $lt_echo in
15878 *'\$0 --fallback-echo"')
15879 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15880 ;;
15881 esac
15883 cfgfile="$ofile"
15885 cat <<__EOF__ >> "$cfgfile"
15886 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15888 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15890 # Shell to use when invoking shell scripts.
15891 SHELL=$lt_SHELL
15893 # Whether or not to build shared libraries.
15894 build_libtool_libs=$enable_shared
15896 # Whether or not to build static libraries.
15897 build_old_libs=$enable_static
15899 # Whether or not to add -lc for building shared libraries.
15900 build_libtool_need_lc=$archive_cmds_need_lc_F77
15902 # Whether or not to disallow shared libs when runtime libs are static
15903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15905 # Whether or not to optimize for fast installation.
15906 fast_install=$enable_fast_install
15908 # The host system.
15909 host_alias=$host_alias
15910 host=$host
15911 host_os=$host_os
15913 # The build system.
15914 build_alias=$build_alias
15915 build=$build
15916 build_os=$build_os
15918 # An echo program that does not interpret backslashes.
15919 echo=$lt_echo
15921 # The archiver.
15922 AR=$lt_AR
15923 AR_FLAGS=$lt_AR_FLAGS
15925 # A C compiler.
15926 LTCC=$lt_LTCC
15928 # LTCC compiler flags.
15929 LTCFLAGS=$lt_LTCFLAGS
15931 # A language-specific compiler.
15932 CC=$lt_compiler_F77
15934 # Is the compiler the GNU C compiler?
15935 with_gcc=$GCC_F77
15937 # An ERE matcher.
15938 EGREP=$lt_EGREP
15940 # The linker used to build libraries.
15941 LD=$lt_LD_F77
15943 # Whether we need hard or soft links.
15944 LN_S=$lt_LN_S
15946 # A BSD-compatible nm program.
15947 NM=$lt_NM
15949 # A symbol stripping program
15950 STRIP=$lt_STRIP
15952 # Used to examine libraries when file_magic_cmd begins "file"
15953 MAGIC_CMD=$MAGIC_CMD
15955 # Used on cygwin: DLL creation program.
15956 DLLTOOL="$DLLTOOL"
15958 # Used on cygwin: object dumper.
15959 OBJDUMP="$OBJDUMP"
15961 # Used on cygwin: assembler.
15962 AS="$AS"
15964 # The name of the directory that contains temporary libtool files.
15965 objdir=$objdir
15967 # How to create reloadable object files.
15968 reload_flag=$lt_reload_flag
15969 reload_cmds=$lt_reload_cmds
15971 # How to pass a linker flag through the compiler.
15972 wl=$lt_lt_prog_compiler_wl_F77
15974 # Object file suffix (normally "o").
15975 objext="$ac_objext"
15977 # Old archive suffix (normally "a").
15978 libext="$libext"
15980 # Shared library suffix (normally ".so").
15981 shrext_cmds='$shrext_cmds'
15983 # Executable file suffix (normally "").
15984 exeext="$exeext"
15986 # Additional compiler flags for building library objects.
15987 pic_flag=$lt_lt_prog_compiler_pic_F77
15988 pic_mode=$pic_mode
15990 # What is the maximum length of a command?
15991 max_cmd_len=$lt_cv_sys_max_cmd_len
15993 # Does compiler simultaneously support -c and -o options?
15994 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15996 # Must we lock files when doing compilation?
15997 need_locks=$lt_need_locks
15999 # Do we need the lib prefix for modules?
16000 need_lib_prefix=$need_lib_prefix
16002 # Do we need a version for libraries?
16003 need_version=$need_version
16005 # Whether dlopen is supported.
16006 dlopen_support=$enable_dlopen
16008 # Whether dlopen of programs is supported.
16009 dlopen_self=$enable_dlopen_self
16011 # Whether dlopen of statically linked programs is supported.
16012 dlopen_self_static=$enable_dlopen_self_static
16014 # Compiler flag to prevent dynamic linking.
16015 link_static_flag=$lt_lt_prog_compiler_static_F77
16017 # Compiler flag to turn off builtin functions.
16018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16020 # Compiler flag to allow reflexive dlopens.
16021 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16023 # Compiler flag to generate shared objects directly from archives.
16024 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16026 # Compiler flag to generate thread-safe objects.
16027 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16029 # Library versioning type.
16030 version_type=$version_type
16032 # Format of library name prefix.
16033 libname_spec=$lt_libname_spec
16035 # List of archive names. First name is the real one, the rest are links.
16036 # The last name is the one that the linker finds with -lNAME.
16037 library_names_spec=$lt_library_names_spec
16039 # The coded name of the library, if different from the real name.
16040 soname_spec=$lt_soname_spec
16042 # Commands used to build and install an old-style archive.
16043 RANLIB=$lt_RANLIB
16044 old_archive_cmds=$lt_old_archive_cmds_F77
16045 old_postinstall_cmds=$lt_old_postinstall_cmds
16046 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16048 # Create an old-style archive from a shared archive.
16049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16051 # Create a temporary old-style archive to link instead of a shared archive.
16052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16054 # Commands used to build and install a shared archive.
16055 archive_cmds=$lt_archive_cmds_F77
16056 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16057 postinstall_cmds=$lt_postinstall_cmds
16058 postuninstall_cmds=$lt_postuninstall_cmds
16060 # Commands used to build a loadable module (assumed same as above if empty)
16061 module_cmds=$lt_module_cmds_F77
16062 module_expsym_cmds=$lt_module_expsym_cmds_F77
16064 # Commands to strip libraries.
16065 old_striplib=$lt_old_striplib
16066 striplib=$lt_striplib
16068 # Dependencies to place before the objects being linked to create a
16069 # shared library.
16070 predep_objects=$lt_predep_objects_F77
16072 # Dependencies to place after the objects being linked to create a
16073 # shared library.
16074 postdep_objects=$lt_postdep_objects_F77
16076 # Dependencies to place before the objects being linked to create a
16077 # shared library.
16078 predeps=$lt_predeps_F77
16080 # Dependencies to place after the objects being linked to create a
16081 # shared library.
16082 postdeps=$lt_postdeps_F77
16084 # The library search path used internally by the compiler when linking
16085 # a shared library.
16086 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16088 # Method to check whether dependent libraries are shared objects.
16089 deplibs_check_method=$lt_deplibs_check_method
16091 # Command to use when deplibs_check_method == file_magic.
16092 file_magic_cmd=$lt_file_magic_cmd
16094 # Flag that allows shared libraries with undefined symbols to be built.
16095 allow_undefined_flag=$lt_allow_undefined_flag_F77
16097 # Flag that forces no undefined symbols.
16098 no_undefined_flag=$lt_no_undefined_flag_F77
16100 # Commands used to finish a libtool library installation in a directory.
16101 finish_cmds=$lt_finish_cmds
16103 # Same as above, but a single script fragment to be evaled but not shown.
16104 finish_eval=$lt_finish_eval
16106 # Take the output of nm and produce a listing of raw symbols and C names.
16107 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16109 # Transform the output of nm in a proper C declaration
16110 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16112 # Transform the output of nm in a C name address pair
16113 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16115 # This is the shared library runtime path variable.
16116 runpath_var=$runpath_var
16118 # This is the shared library path variable.
16119 shlibpath_var=$shlibpath_var
16121 # Is shlibpath searched before the hard-coded library search path?
16122 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16124 # How to hardcode a shared library path into an executable.
16125 hardcode_action=$hardcode_action_F77
16127 # Whether we should hardcode library paths into libraries.
16128 hardcode_into_libs=$hardcode_into_libs
16130 # Flag to hardcode \$libdir into a binary during linking.
16131 # This must work even if \$libdir does not exist.
16132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16134 # If ld is used when linking, flag to hardcode \$libdir into
16135 # a binary during linking. This must work even if \$libdir does
16136 # not exist.
16137 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16139 # Whether we need a single -rpath flag with a separated argument.
16140 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16142 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16143 # resulting binary.
16144 hardcode_direct=$hardcode_direct_F77
16146 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16147 # resulting binary.
16148 hardcode_minus_L=$hardcode_minus_L_F77
16150 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16151 # the resulting binary.
16152 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16154 # Set to yes if building a shared library automatically hardcodes DIR into the library
16155 # and all subsequent libraries and executables linked against it.
16156 hardcode_automatic=$hardcode_automatic_F77
16158 # Variables whose values should be saved in libtool wrapper scripts and
16159 # restored at relink time.
16160 variables_saved_for_relink="$variables_saved_for_relink"
16162 # Whether libtool must link a program against all its dependency libraries.
16163 link_all_deplibs=$link_all_deplibs_F77
16165 # Compile-time system search path for libraries
16166 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16168 # Run-time system search path for libraries
16169 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16171 # Fix the shell variable \$srcfile for the compiler.
16172 fix_srcfile_path="$fix_srcfile_path_F77"
16174 # Set to yes if exported symbols are required.
16175 always_export_symbols=$always_export_symbols_F77
16177 # The commands to list exported symbols.
16178 export_symbols_cmds=$lt_export_symbols_cmds_F77
16180 # The commands to extract the exported symbol list from a shared archive.
16181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16183 # Symbols that should not be listed in the preloaded symbols.
16184 exclude_expsyms=$lt_exclude_expsyms_F77
16186 # Symbols that must always be exported.
16187 include_expsyms=$lt_include_expsyms_F77
16189 # ### END LIBTOOL TAG CONFIG: $tagname
16191 __EOF__
16194 else
16195 # If there is no Makefile yet, we rely on a make rule to execute
16196 # `config.status --recheck' to rerun these tests and create the
16197 # libtool script then.
16198 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16199 if test -f "$ltmain_in"; then
16200 test -f Makefile && make "$ltmain"
16201 fi
16202 fi
16205 ac_ext=c
16206 ac_cpp='$CPP $CPPFLAGS'
16207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16211 CC="$lt_save_CC"
16213 else
16214 tagname=""
16215 fi
16216 ;;
16218 GCJ)
16219 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16222 # Source file extension for Java test sources.
16223 ac_ext=java
16225 # Object file extension for compiled Java test sources.
16226 objext=o
16227 objext_GCJ=$objext
16229 # Code to be used in simple compile tests
16230 lt_simple_compile_test_code="class foo {}\n"
16232 # Code to be used in simple link tests
16233 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16235 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16237 # If no C compiler was specified, use CC.
16238 LTCC=${LTCC-"$CC"}
16240 # If no C compiler flags were specified, use CFLAGS.
16241 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16243 # Allow CC to be a program name with arguments.
16244 compiler=$CC
16247 # save warnings/boilerplate of simple test code
16248 ac_outfile=conftest.$ac_objext
16249 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16250 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16251 _lt_compiler_boilerplate=`cat conftest.err`
16252 $rm conftest*
16254 ac_outfile=conftest.$ac_objext
16255 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16256 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16257 _lt_linker_boilerplate=`cat conftest.err`
16258 $rm conftest*
16261 # Allow CC to be a program name with arguments.
16262 lt_save_CC="$CC"
16263 CC=${GCJ-"gcj"}
16264 compiler=$CC
16265 compiler_GCJ=$CC
16266 for cc_temp in $compiler""; do
16267 case $cc_temp in
16268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16270 \-*) ;;
16271 *) break;;
16272 esac
16273 done
16274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16277 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16278 archive_cmds_need_lc_GCJ=no
16280 old_archive_cmds_GCJ=$old_archive_cmds
16283 lt_prog_compiler_no_builtin_flag_GCJ=
16285 if test "$GCC" = yes; then
16286 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16289 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16290 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16291 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16293 else
16294 lt_cv_prog_compiler_rtti_exceptions=no
16295 ac_outfile=conftest.$ac_objext
16296 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16297 lt_compiler_flag="-fno-rtti -fno-exceptions"
16298 # Insert the option either (1) after the last *FLAGS variable, or
16299 # (2) before a word containing "conftest.", or (3) at the end.
16300 # Note that $ac_compile itself does not contain backslashes and begins
16301 # with a dollar sign (not a hyphen), so the echo should work correctly.
16302 # The option is referenced via a variable to avoid confusing sed.
16303 lt_compile=`echo "$ac_compile" | $SED \
16304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16306 -e 's:$: $lt_compiler_flag:'`
16307 (eval echo "\"\$as_me:16307: $lt_compile\"" >&5)
16308 (eval "$lt_compile" 2>conftest.err)
16309 ac_status=$?
16310 cat conftest.err >&5
16311 echo "$as_me:16311: \$? = $ac_status" >&5
16312 if (exit $ac_status) && test -s "$ac_outfile"; then
16313 # The compiler can only warn and ignore the option if not recognized
16314 # So say no if there are warnings other than the usual output.
16315 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16317 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16318 lt_cv_prog_compiler_rtti_exceptions=yes
16319 fi
16320 fi
16321 $rm conftest*
16323 fi
16324 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16325 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16327 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16328 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16329 else
16330 :
16331 fi
16333 fi
16335 lt_prog_compiler_wl_GCJ=
16336 lt_prog_compiler_pic_GCJ=
16337 lt_prog_compiler_static_GCJ=
16339 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16340 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16342 if test "$GCC" = yes; then
16343 lt_prog_compiler_wl_GCJ='-Wl,'
16344 lt_prog_compiler_static_GCJ='-static'
16346 case $host_os in
16347 aix*)
16348 # All AIX code is PIC.
16349 if test "$host_cpu" = ia64; then
16350 # AIX 5 now supports IA64 processor
16351 lt_prog_compiler_static_GCJ='-Bstatic'
16352 fi
16353 ;;
16355 amigaos*)
16356 # FIXME: we need at least 68020 code to build shared libraries, but
16357 # adding the `-m68020' flag to GCC prevents building anything better,
16358 # like `-m68040'.
16359 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16360 ;;
16362 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16363 # PIC is the default for these OSes.
16364 ;;
16366 mingw* | pw32* | os2*)
16367 # This hack is so that the source file can tell whether it is being
16368 # built for inclusion in a dll (and should export symbols for example).
16369 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16370 ;;
16372 darwin* | rhapsody*)
16373 # PIC is the default on this platform
16374 # Common symbols not allowed in MH_DYLIB files
16375 lt_prog_compiler_pic_GCJ='-fno-common'
16376 ;;
16378 interix3*)
16379 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16380 # Instead, we relocate shared libraries at runtime.
16381 ;;
16383 msdosdjgpp*)
16384 # Just because we use GCC doesn't mean we suddenly get shared libraries
16385 # on systems that don't support them.
16386 lt_prog_compiler_can_build_shared_GCJ=no
16387 enable_shared=no
16388 ;;
16390 sysv4*MP*)
16391 if test -d /usr/nec; then
16392 lt_prog_compiler_pic_GCJ=-Kconform_pic
16393 fi
16394 ;;
16396 hpux*)
16397 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16398 # not for PA HP-UX.
16399 case $host_cpu in
16400 hppa*64*|ia64*)
16401 # +Z the default
16402 ;;
16403 *)
16404 lt_prog_compiler_pic_GCJ='-fPIC'
16405 ;;
16406 esac
16407 ;;
16409 *)
16410 lt_prog_compiler_pic_GCJ='-fPIC'
16411 ;;
16412 esac
16413 else
16414 # PORTME Check for flag to pass linker flags through the system compiler.
16415 case $host_os in
16416 aix*)
16417 lt_prog_compiler_wl_GCJ='-Wl,'
16418 if test "$host_cpu" = ia64; then
16419 # AIX 5 now supports IA64 processor
16420 lt_prog_compiler_static_GCJ='-Bstatic'
16421 else
16422 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16423 fi
16424 ;;
16425 darwin*)
16426 # PIC is the default on this platform
16427 # Common symbols not allowed in MH_DYLIB files
16428 case $cc_basename in
16429 xlc*)
16430 lt_prog_compiler_pic_GCJ='-qnocommon'
16431 lt_prog_compiler_wl_GCJ='-Wl,'
16432 ;;
16433 esac
16434 ;;
16436 mingw* | pw32* | os2*)
16437 # This hack is so that the source file can tell whether it is being
16438 # built for inclusion in a dll (and should export symbols for example).
16439 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16440 ;;
16442 hpux9* | hpux10* | hpux11*)
16443 lt_prog_compiler_wl_GCJ='-Wl,'
16444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16445 # not for PA HP-UX.
16446 case $host_cpu in
16447 hppa*64*|ia64*)
16448 # +Z the default
16449 ;;
16450 *)
16451 lt_prog_compiler_pic_GCJ='+Z'
16452 ;;
16453 esac
16454 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16455 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16456 ;;
16458 irix5* | irix6* | nonstopux*)
16459 lt_prog_compiler_wl_GCJ='-Wl,'
16460 # PIC (with -KPIC) is the default.
16461 lt_prog_compiler_static_GCJ='-non_shared'
16462 ;;
16464 newsos6)
16465 lt_prog_compiler_pic_GCJ='-KPIC'
16466 lt_prog_compiler_static_GCJ='-Bstatic'
16467 ;;
16469 linux* | k*bsd*-gnu)
16470 case $cc_basename in
16471 icc* | ecc*)
16472 lt_prog_compiler_wl_GCJ='-Wl,'
16473 lt_prog_compiler_pic_GCJ='-KPIC'
16474 lt_prog_compiler_static_GCJ='-static'
16475 ;;
16476 pgcc* | pgf77* | pgf90* | pgf95*)
16477 # Portland Group compilers (*not* the Pentium gcc compiler,
16478 # which looks to be a dead project)
16479 lt_prog_compiler_wl_GCJ='-Wl,'
16480 lt_prog_compiler_pic_GCJ='-fpic'
16481 lt_prog_compiler_static_GCJ='-Bstatic'
16482 ;;
16483 ccc*)
16484 lt_prog_compiler_wl_GCJ='-Wl,'
16485 # All Alpha code is PIC.
16486 lt_prog_compiler_static_GCJ='-non_shared'
16487 ;;
16488 esac
16489 ;;
16491 osf3* | osf4* | osf5*)
16492 lt_prog_compiler_wl_GCJ='-Wl,'
16493 # All OSF/1 code is PIC.
16494 lt_prog_compiler_static_GCJ='-non_shared'
16495 ;;
16497 solaris*)
16498 lt_prog_compiler_pic_GCJ='-KPIC'
16499 lt_prog_compiler_static_GCJ='-Bstatic'
16500 case $cc_basename in
16501 f77* | f90* | f95*)
16502 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16503 *)
16504 lt_prog_compiler_wl_GCJ='-Wl,';;
16505 esac
16506 ;;
16508 sunos4*)
16509 lt_prog_compiler_wl_GCJ='-Qoption ld '
16510 lt_prog_compiler_pic_GCJ='-PIC'
16511 lt_prog_compiler_static_GCJ='-Bstatic'
16512 ;;
16514 sysv4 | sysv4.2uw2* | sysv4.3*)
16515 lt_prog_compiler_wl_GCJ='-Wl,'
16516 lt_prog_compiler_pic_GCJ='-KPIC'
16517 lt_prog_compiler_static_GCJ='-Bstatic'
16518 ;;
16520 sysv4*MP*)
16521 if test -d /usr/nec ;then
16522 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16523 lt_prog_compiler_static_GCJ='-Bstatic'
16524 fi
16525 ;;
16527 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16528 lt_prog_compiler_wl_GCJ='-Wl,'
16529 lt_prog_compiler_pic_GCJ='-KPIC'
16530 lt_prog_compiler_static_GCJ='-Bstatic'
16531 ;;
16533 unicos*)
16534 lt_prog_compiler_wl_GCJ='-Wl,'
16535 lt_prog_compiler_can_build_shared_GCJ=no
16536 ;;
16538 uts4*)
16539 lt_prog_compiler_pic_GCJ='-pic'
16540 lt_prog_compiler_static_GCJ='-Bstatic'
16541 ;;
16543 *)
16544 lt_prog_compiler_can_build_shared_GCJ=no
16545 ;;
16546 esac
16547 fi
16549 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16550 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16552 #
16553 # Check to make sure the PIC flag actually works.
16554 #
16555 if test -n "$lt_prog_compiler_pic_GCJ"; then
16557 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16558 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16559 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16560 echo $ECHO_N "(cached) $ECHO_C" >&6
16561 else
16562 lt_prog_compiler_pic_works_GCJ=no
16563 ac_outfile=conftest.$ac_objext
16564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16565 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16566 # Insert the option either (1) after the last *FLAGS variable, or
16567 # (2) before a word containing "conftest.", or (3) at the end.
16568 # Note that $ac_compile itself does not contain backslashes and begins
16569 # with a dollar sign (not a hyphen), so the echo should work correctly.
16570 # The option is referenced via a variable to avoid confusing sed.
16571 lt_compile=`echo "$ac_compile" | $SED \
16572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16574 -e 's:$: $lt_compiler_flag:'`
16575 (eval echo "\"\$as_me:16575: $lt_compile\"" >&5)
16576 (eval "$lt_compile" 2>conftest.err)
16577 ac_status=$?
16578 cat conftest.err >&5
16579 echo "$as_me:16579: \$? = $ac_status" >&5
16580 if (exit $ac_status) && test -s "$ac_outfile"; then
16581 # The compiler can only warn and ignore the option if not recognized
16582 # So say no if there are warnings other than the usual output.
16583 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16586 lt_prog_compiler_pic_works_GCJ=yes
16587 fi
16588 fi
16589 $rm conftest*
16591 fi
16592 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16593 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16595 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16596 case $lt_prog_compiler_pic_GCJ in
16597 "" | " "*) ;;
16598 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16599 esac
16600 else
16601 lt_prog_compiler_pic_GCJ=
16602 lt_prog_compiler_can_build_shared_GCJ=no
16603 fi
16605 fi
16606 case $host_os in
16607 # For platforms which do not support PIC, -DPIC is meaningless:
16608 *djgpp*)
16609 lt_prog_compiler_pic_GCJ=
16610 ;;
16611 *)
16612 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16613 ;;
16614 esac
16616 #
16617 # Check to make sure the static flag actually works.
16618 #
16619 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16620 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16621 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16622 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16624 else
16625 lt_prog_compiler_static_works_GCJ=no
16626 save_LDFLAGS="$LDFLAGS"
16627 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16628 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16629 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16630 # The linker can only warn and ignore the option if not recognized
16631 # So say no if there are warnings
16632 if test -s conftest.err; then
16633 # Append any errors to the config.log.
16634 cat conftest.err 1>&5
16635 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16637 if diff conftest.exp conftest.er2 >/dev/null; then
16638 lt_prog_compiler_static_works_GCJ=yes
16639 fi
16640 else
16641 lt_prog_compiler_static_works_GCJ=yes
16642 fi
16643 fi
16644 $rm conftest*
16645 LDFLAGS="$save_LDFLAGS"
16647 fi
16648 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16649 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16651 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16652 :
16653 else
16654 lt_prog_compiler_static_GCJ=
16655 fi
16658 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16659 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16660 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16662 else
16663 lt_cv_prog_compiler_c_o_GCJ=no
16664 $rm -r conftest 2>/dev/null
16665 mkdir conftest
16666 cd conftest
16667 mkdir out
16668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16670 lt_compiler_flag="-o out/conftest2.$ac_objext"
16671 # Insert the option either (1) after the last *FLAGS variable, or
16672 # (2) before a word containing "conftest.", or (3) at the end.
16673 # Note that $ac_compile itself does not contain backslashes and begins
16674 # with a dollar sign (not a hyphen), so the echo should work correctly.
16675 lt_compile=`echo "$ac_compile" | $SED \
16676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16678 -e 's:$: $lt_compiler_flag:'`
16679 (eval echo "\"\$as_me:16679: $lt_compile\"" >&5)
16680 (eval "$lt_compile" 2>out/conftest.err)
16681 ac_status=$?
16682 cat out/conftest.err >&5
16683 echo "$as_me:16683: \$? = $ac_status" >&5
16684 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16685 then
16686 # The compiler can only warn and ignore the option if not recognized
16687 # So say no if there are warnings
16688 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16689 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16690 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16691 lt_cv_prog_compiler_c_o_GCJ=yes
16692 fi
16693 fi
16694 chmod u+w . 2>&5
16695 $rm conftest*
16696 # SGI C++ compiler will create directory out/ii_files/ for
16697 # template instantiation
16698 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16699 $rm out/* && rmdir out
16700 cd ..
16701 rmdir conftest
16702 $rm conftest*
16704 fi
16705 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16706 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16709 hard_links="nottested"
16710 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16711 # do not overwrite the value of need_locks provided by the user
16712 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16713 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16714 hard_links=yes
16715 $rm conftest*
16716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16717 touch conftest.a
16718 ln conftest.a conftest.b 2>&5 || hard_links=no
16719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16720 { echo "$as_me:$LINENO: result: $hard_links" >&5
16721 echo "${ECHO_T}$hard_links" >&6; }
16722 if test "$hard_links" = no; then
16723 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16724 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16725 need_locks=warn
16726 fi
16727 else
16728 need_locks=no
16729 fi
16731 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16732 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16734 runpath_var=
16735 allow_undefined_flag_GCJ=
16736 enable_shared_with_static_runtimes_GCJ=no
16737 archive_cmds_GCJ=
16738 archive_expsym_cmds_GCJ=
16739 old_archive_From_new_cmds_GCJ=
16740 old_archive_from_expsyms_cmds_GCJ=
16741 export_dynamic_flag_spec_GCJ=
16742 whole_archive_flag_spec_GCJ=
16743 thread_safe_flag_spec_GCJ=
16744 hardcode_libdir_flag_spec_GCJ=
16745 hardcode_libdir_flag_spec_ld_GCJ=
16746 hardcode_libdir_separator_GCJ=
16747 hardcode_direct_GCJ=no
16748 hardcode_minus_L_GCJ=no
16749 hardcode_shlibpath_var_GCJ=unsupported
16750 link_all_deplibs_GCJ=unknown
16751 hardcode_automatic_GCJ=no
16752 module_cmds_GCJ=
16753 module_expsym_cmds_GCJ=
16754 always_export_symbols_GCJ=no
16755 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16756 # include_expsyms should be a list of space-separated symbols to be *always*
16757 # included in the symbol list
16758 include_expsyms_GCJ=
16759 # exclude_expsyms can be an extended regexp of symbols to exclude
16760 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16761 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16762 # as well as any symbol that contains `d'.
16763 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16764 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16765 # platforms (ab)use it in PIC code, but their linkers get confused if
16766 # the symbol is explicitly referenced. Since portable code cannot
16767 # rely on this symbol name, it's probably fine to never include it in
16768 # preloaded symbol tables.
16769 extract_expsyms_cmds=
16770 # Just being paranoid about ensuring that cc_basename is set.
16771 for cc_temp in $compiler""; do
16772 case $cc_temp in
16773 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16774 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16775 \-*) ;;
16776 *) break;;
16777 esac
16778 done
16779 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16781 case $host_os in
16782 cygwin* | mingw* | pw32*)
16783 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16784 # When not using gcc, we currently assume that we are using
16785 # Microsoft Visual C++.
16786 if test "$GCC" != yes; then
16787 with_gnu_ld=no
16788 fi
16789 ;;
16790 interix*)
16791 # we just hope/assume this is gcc and not c89 (= MSVC++)
16792 with_gnu_ld=yes
16793 ;;
16794 openbsd*)
16795 with_gnu_ld=no
16796 ;;
16797 esac
16799 ld_shlibs_GCJ=yes
16800 if test "$with_gnu_ld" = yes; then
16801 # If archive_cmds runs LD, not CC, wlarc should be empty
16802 wlarc='${wl}'
16804 # Set some defaults for GNU ld with shared library support. These
16805 # are reset later if shared libraries are not supported. Putting them
16806 # here allows them to be overridden if necessary.
16807 runpath_var=LD_RUN_PATH
16808 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16809 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16810 # ancient GNU ld didn't support --whole-archive et. al.
16811 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16812 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16813 else
16814 whole_archive_flag_spec_GCJ=
16815 fi
16816 supports_anon_versioning=no
16817 case `$LD -v 2>/dev/null` in
16818 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16819 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16820 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16821 *\ 2.11.*) ;; # other 2.11 versions
16822 *) supports_anon_versioning=yes ;;
16823 esac
16825 # See if GNU ld supports shared libraries.
16826 case $host_os in
16827 aix3* | aix4* | aix5*)
16828 # On AIX/PPC, the GNU linker is very broken
16829 if test "$host_cpu" != ia64; then
16830 ld_shlibs_GCJ=no
16831 cat <<EOF 1>&2
16833 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16834 *** to be unable to reliably create shared libraries on AIX.
16835 *** Therefore, libtool is disabling shared libraries support. If you
16836 *** really care for shared libraries, you may want to modify your PATH
16837 *** so that a non-GNU linker is found, and then restart.
16839 EOF
16840 fi
16841 ;;
16843 amigaos*)
16844 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)'
16845 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16846 hardcode_minus_L_GCJ=yes
16848 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16849 # that the semantics of dynamic libraries on AmigaOS, at least up
16850 # to version 4, is to share data among multiple programs linked
16851 # with the same dynamic library. Since this doesn't match the
16852 # behavior of shared libraries on other platforms, we can't use
16853 # them.
16854 ld_shlibs_GCJ=no
16855 ;;
16857 beos*)
16858 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16859 allow_undefined_flag_GCJ=unsupported
16860 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16861 # support --undefined. This deserves some investigation. FIXME
16862 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16863 else
16864 ld_shlibs_GCJ=no
16865 fi
16866 ;;
16868 cygwin* | mingw* | pw32*)
16869 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16870 # as there is no search path for DLLs.
16871 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16872 allow_undefined_flag_GCJ=unsupported
16873 always_export_symbols_GCJ=no
16874 enable_shared_with_static_runtimes_GCJ=yes
16875 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16877 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16878 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16879 # If the export-symbols file already is a .def file (1st line
16880 # is EXPORTS), use it as is; otherwise, prepend...
16881 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16882 cp $export_symbols $output_objdir/$soname.def;
16883 else
16884 echo EXPORTS > $output_objdir/$soname.def;
16885 cat $export_symbols >> $output_objdir/$soname.def;
16886 fi~
16887 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16888 else
16889 ld_shlibs_GCJ=no
16890 fi
16891 ;;
16893 interix3*)
16894 hardcode_direct_GCJ=no
16895 hardcode_shlibpath_var_GCJ=no
16896 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16897 export_dynamic_flag_spec_GCJ='${wl}-E'
16898 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16899 # Instead, shared libraries are loaded at an image base (0x10000000 by
16900 # default) and relocated if they conflict, which is a slow very memory
16901 # consuming and fragmenting process. To avoid this, we pick a random,
16902 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16903 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16904 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'
16905 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'
16906 ;;
16908 linux* | k*bsd*-gnu)
16909 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16910 tmp_addflag=
16911 case $cc_basename,$host_cpu in
16912 pgcc*) # Portland Group C compiler
16913 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'
16914 tmp_addflag=' $pic_flag'
16915 ;;
16916 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16917 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'
16918 tmp_addflag=' $pic_flag -Mnomain' ;;
16919 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16920 tmp_addflag=' -i_dynamic' ;;
16921 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16922 tmp_addflag=' -i_dynamic -nofor_main' ;;
16923 ifc* | ifort*) # Intel Fortran compiler
16924 tmp_addflag=' -nofor_main' ;;
16925 esac
16926 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16928 if test $supports_anon_versioning = yes; then
16929 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16930 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16931 $echo "local: *; };" >> $output_objdir/$libname.ver~
16932 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16933 fi
16934 link_all_deplibs_GCJ=no
16935 else
16936 ld_shlibs_GCJ=no
16937 fi
16938 ;;
16940 netbsd* | netbsdelf*-gnu)
16941 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16942 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16943 wlarc=
16944 else
16945 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16946 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16947 fi
16948 ;;
16950 solaris*)
16951 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16952 ld_shlibs_GCJ=no
16953 cat <<EOF 1>&2
16955 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16956 *** create shared libraries on Solaris systems. Therefore, libtool
16957 *** is disabling shared libraries support. We urge you to upgrade GNU
16958 *** binutils to release 2.9.1 or newer. Another option is to modify
16959 *** your PATH or compiler configuration so that the native linker is
16960 *** used, and then restart.
16962 EOF
16963 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16964 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16965 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16966 else
16967 ld_shlibs_GCJ=no
16968 fi
16969 ;;
16971 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16972 case `$LD -v 2>&1` in
16973 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16974 ld_shlibs_GCJ=no
16975 cat <<_LT_EOF 1>&2
16977 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16978 *** reliably create shared libraries on SCO systems. Therefore, libtool
16979 *** is disabling shared libraries support. We urge you to upgrade GNU
16980 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16981 *** your PATH or compiler configuration so that the native linker is
16982 *** used, and then restart.
16984 _LT_EOF
16985 ;;
16986 *)
16987 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16988 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16989 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16990 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16991 else
16992 ld_shlibs_GCJ=no
16993 fi
16994 ;;
16995 esac
16996 ;;
16998 sunos4*)
16999 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17000 wlarc=
17001 hardcode_direct_GCJ=yes
17002 hardcode_shlibpath_var_GCJ=no
17003 ;;
17005 *)
17006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17007 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17008 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17009 else
17010 ld_shlibs_GCJ=no
17011 fi
17012 ;;
17013 esac
17015 if test "$ld_shlibs_GCJ" = no; then
17016 runpath_var=
17017 hardcode_libdir_flag_spec_GCJ=
17018 export_dynamic_flag_spec_GCJ=
17019 whole_archive_flag_spec_GCJ=
17020 fi
17021 else
17022 # PORTME fill in a description of your system's linker (not GNU ld)
17023 case $host_os in
17024 aix3*)
17025 allow_undefined_flag_GCJ=unsupported
17026 always_export_symbols_GCJ=yes
17027 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'
17028 # Note: this linker hardcodes the directories in LIBPATH if there
17029 # are no directories specified by -L.
17030 hardcode_minus_L_GCJ=yes
17031 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17032 # Neither direct hardcoding nor static linking is supported with a
17033 # broken collect2.
17034 hardcode_direct_GCJ=unsupported
17035 fi
17036 ;;
17038 aix4* | aix5*)
17039 if test "$host_cpu" = ia64; then
17040 # On IA64, the linker does run time linking by default, so we don't
17041 # have to do anything special.
17042 aix_use_runtimelinking=no
17043 exp_sym_flag='-Bexport'
17044 no_entry_flag=""
17045 else
17046 # If we're using GNU nm, then we don't want the "-C" option.
17047 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17048 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17049 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'
17050 else
17051 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'
17052 fi
17053 aix_use_runtimelinking=no
17055 # Test if we are trying to use run time linking or normal
17056 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17057 # need to do runtime linking.
17058 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17059 for ld_flag in $LDFLAGS; do
17060 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17061 aix_use_runtimelinking=yes
17062 break
17063 fi
17064 done
17065 ;;
17066 esac
17068 exp_sym_flag='-bexport'
17069 no_entry_flag='-bnoentry'
17070 fi
17072 # When large executables or shared objects are built, AIX ld can
17073 # have problems creating the table of contents. If linking a library
17074 # or program results in "error TOC overflow" add -mminimal-toc to
17075 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17076 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17078 archive_cmds_GCJ=''
17079 hardcode_direct_GCJ=yes
17080 hardcode_libdir_separator_GCJ=':'
17081 link_all_deplibs_GCJ=yes
17083 if test "$GCC" = yes; then
17084 case $host_os in aix4.[012]|aix4.[012].*)
17085 # We only want to do this on AIX 4.2 and lower, the check
17086 # below for broken collect2 doesn't work under 4.3+
17087 collect2name=`${CC} -print-prog-name=collect2`
17088 if test -f "$collect2name" && \
17089 strings "$collect2name" | grep resolve_lib_name >/dev/null
17090 then
17091 # We have reworked collect2
17092 hardcode_direct_GCJ=yes
17093 else
17094 # We have old collect2
17095 hardcode_direct_GCJ=unsupported
17096 # It fails to find uninstalled libraries when the uninstalled
17097 # path is not listed in the libpath. Setting hardcode_minus_L
17098 # to unsupported forces relinking
17099 hardcode_minus_L_GCJ=yes
17100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17101 hardcode_libdir_separator_GCJ=
17102 fi
17103 ;;
17104 esac
17105 shared_flag='-shared'
17106 if test "$aix_use_runtimelinking" = yes; then
17107 shared_flag="$shared_flag "'${wl}-G'
17108 fi
17109 else
17110 # not using gcc
17111 if test "$host_cpu" = ia64; then
17112 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17113 # chokes on -Wl,-G. The following line is correct:
17114 shared_flag='-G'
17115 else
17116 if test "$aix_use_runtimelinking" = yes; then
17117 shared_flag='${wl}-G'
17118 else
17119 shared_flag='${wl}-bM:SRE'
17120 fi
17121 fi
17122 fi
17124 # It seems that -bexpall does not export symbols beginning with
17125 # underscore (_), so it is better to generate a list of symbols to export.
17126 always_export_symbols_GCJ=yes
17127 if test "$aix_use_runtimelinking" = yes; then
17128 # Warning - without using the other runtime loading flags (-brtl),
17129 # -berok will link without error, but may produce a broken library.
17130 allow_undefined_flag_GCJ='-berok'
17131 # Determine the default libpath from the value encoded in an empty executable.
17132 cat >conftest.$ac_ext <<_ACEOF
17133 /* confdefs.h. */
17134 _ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17139 int
17140 main ()
17141 {
17143 ;
17144 return 0;
17145 }
17146 _ACEOF
17147 rm -f conftest.$ac_objext conftest$ac_exeext
17148 if { (ac_try="$ac_link"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152 esac
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_link") 2>conftest.er1
17155 ac_status=$?
17156 grep -v '^ *+' conftest.er1 >conftest.err
17157 rm -f conftest.er1
17158 cat conftest.err >&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } && {
17161 test -z "$ac_c_werror_flag" ||
17162 test ! -s conftest.err
17163 } && test -s conftest$ac_exeext &&
17164 $as_test_x conftest$ac_exeext; then
17166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17167 }'`
17168 # Check for a 64-bit object if we didn't find anything.
17169 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; }
17170 }'`; fi
17171 else
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17176 fi
17178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17179 conftest$ac_exeext conftest.$ac_ext
17180 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17182 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17183 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"
17184 else
17185 if test "$host_cpu" = ia64; then
17186 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17187 allow_undefined_flag_GCJ="-z nodefs"
17188 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"
17189 else
17190 # Determine the default libpath from the value encoded in an empty executable.
17191 cat >conftest.$ac_ext <<_ACEOF
17192 /* confdefs.h. */
17193 _ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17198 int
17199 main ()
17200 {
17202 ;
17203 return 0;
17204 }
17205 _ACEOF
17206 rm -f conftest.$ac_objext conftest$ac_exeext
17207 if { (ac_try="$ac_link"
17208 case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17211 esac
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_link") 2>conftest.er1
17214 ac_status=$?
17215 grep -v '^ *+' conftest.er1 >conftest.err
17216 rm -f conftest.er1
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } && {
17220 test -z "$ac_c_werror_flag" ||
17221 test ! -s conftest.err
17222 } && test -s conftest$ac_exeext &&
17223 $as_test_x conftest$ac_exeext; then
17225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17226 }'`
17227 # Check for a 64-bit object if we didn't find anything.
17228 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; }
17229 }'`; fi
17230 else
17231 echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17235 fi
17237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17238 conftest$ac_exeext conftest.$ac_ext
17239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17241 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17242 # Warning - without using the other run time loading flags,
17243 # -berok will link without error, but may produce a broken library.
17244 no_undefined_flag_GCJ=' ${wl}-bernotok'
17245 allow_undefined_flag_GCJ=' ${wl}-berok'
17246 # Exported symbols can be pulled into shared objects from archives
17247 whole_archive_flag_spec_GCJ='$convenience'
17248 archive_cmds_need_lc_GCJ=yes
17249 # This is similar to how AIX traditionally builds its shared libraries.
17250 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'
17251 fi
17252 fi
17253 ;;
17255 amigaos*)
17256 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)'
17257 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17258 hardcode_minus_L_GCJ=yes
17259 # see comment about different semantics on the GNU ld section
17260 ld_shlibs_GCJ=no
17261 ;;
17263 bsdi[45]*)
17264 export_dynamic_flag_spec_GCJ=-rdynamic
17265 ;;
17267 cygwin* | mingw* | pw32*)
17268 # When not using gcc, we currently assume that we are using
17269 # Microsoft Visual C++.
17270 # hardcode_libdir_flag_spec is actually meaningless, as there is
17271 # no search path for DLLs.
17272 hardcode_libdir_flag_spec_GCJ=' '
17273 allow_undefined_flag_GCJ=unsupported
17274 # Tell ltmain to make .lib files, not .a files.
17275 libext=lib
17276 # Tell ltmain to make .dll files, not .so files.
17277 shrext_cmds=".dll"
17278 # FIXME: Setting linknames here is a bad hack.
17279 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17280 # The linker will automatically build a .lib file if we build a DLL.
17281 old_archive_From_new_cmds_GCJ='true'
17282 # FIXME: Should let the user specify the lib program.
17283 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17284 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17285 enable_shared_with_static_runtimes_GCJ=yes
17286 ;;
17288 darwin* | rhapsody*)
17289 case $host_os in
17290 rhapsody* | darwin1.[012])
17291 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17292 ;;
17293 *) # Darwin 1.3 on
17294 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17295 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17296 else
17297 case ${MACOSX_DEPLOYMENT_TARGET} in
17298 10.[012])
17299 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17300 ;;
17301 10.*)
17302 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17303 ;;
17304 esac
17305 fi
17306 ;;
17307 esac
17308 archive_cmds_need_lc_GCJ=no
17309 hardcode_direct_GCJ=no
17310 hardcode_automatic_GCJ=yes
17311 hardcode_shlibpath_var_GCJ=unsupported
17312 whole_archive_flag_spec_GCJ=''
17313 link_all_deplibs_GCJ=yes
17314 if test "$GCC" = yes ; then
17315 output_verbose_link_cmd='echo'
17316 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17317 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17318 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17319 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}'
17320 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}'
17321 else
17322 case $cc_basename in
17323 xlc*)
17324 output_verbose_link_cmd='echo'
17325 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17326 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17327 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17328 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}'
17329 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}'
17330 ;;
17331 *)
17332 ld_shlibs_GCJ=no
17333 ;;
17334 esac
17335 fi
17336 ;;
17338 dgux*)
17339 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17340 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17341 hardcode_shlibpath_var_GCJ=no
17342 ;;
17344 freebsd1*)
17345 ld_shlibs_GCJ=no
17346 ;;
17348 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17349 # support. Future versions do this automatically, but an explicit c++rt0.o
17350 # does not break anything, and helps significantly (at the cost of a little
17351 # extra space).
17352 freebsd2.2*)
17353 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17354 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17355 hardcode_direct_GCJ=yes
17356 hardcode_shlibpath_var_GCJ=no
17357 ;;
17359 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17360 freebsd2*)
17361 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17362 hardcode_direct_GCJ=yes
17363 hardcode_minus_L_GCJ=yes
17364 hardcode_shlibpath_var_GCJ=no
17365 ;;
17367 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17368 freebsd* | dragonfly*)
17369 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17370 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17371 hardcode_direct_GCJ=yes
17372 hardcode_shlibpath_var_GCJ=no
17373 ;;
17375 hpux9*)
17376 if test "$GCC" = yes; then
17377 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'
17378 else
17379 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'
17380 fi
17381 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17382 hardcode_libdir_separator_GCJ=:
17383 hardcode_direct_GCJ=yes
17385 # hardcode_minus_L: Not really in the search PATH,
17386 # but as the default location of the library.
17387 hardcode_minus_L_GCJ=yes
17388 export_dynamic_flag_spec_GCJ='${wl}-E'
17389 ;;
17391 hpux10*)
17392 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17393 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17394 else
17395 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17396 fi
17397 if test "$with_gnu_ld" = no; then
17398 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17399 hardcode_libdir_separator_GCJ=:
17401 hardcode_direct_GCJ=yes
17402 export_dynamic_flag_spec_GCJ='${wl}-E'
17404 # hardcode_minus_L: Not really in the search PATH,
17405 # but as the default location of the library.
17406 hardcode_minus_L_GCJ=yes
17407 fi
17408 ;;
17410 hpux11*)
17411 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17412 case $host_cpu in
17413 hppa*64*)
17414 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17415 ;;
17416 ia64*)
17417 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17418 ;;
17419 *)
17420 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17421 ;;
17422 esac
17423 else
17424 case $host_cpu in
17425 hppa*64*)
17426 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17427 ;;
17428 ia64*)
17429 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17430 ;;
17431 *)
17432 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17433 ;;
17434 esac
17435 fi
17436 if test "$with_gnu_ld" = no; then
17437 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17438 hardcode_libdir_separator_GCJ=:
17440 case $host_cpu in
17441 hppa*64*|ia64*)
17442 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17443 hardcode_direct_GCJ=no
17444 hardcode_shlibpath_var_GCJ=no
17445 ;;
17446 *)
17447 hardcode_direct_GCJ=yes
17448 export_dynamic_flag_spec_GCJ='${wl}-E'
17450 # hardcode_minus_L: Not really in the search PATH,
17451 # but as the default location of the library.
17452 hardcode_minus_L_GCJ=yes
17453 ;;
17454 esac
17455 fi
17456 ;;
17458 irix5* | irix6* | nonstopux*)
17459 if test "$GCC" = yes; then
17460 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'
17461 else
17462 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'
17463 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17464 fi
17465 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17466 hardcode_libdir_separator_GCJ=:
17467 link_all_deplibs_GCJ=yes
17468 ;;
17470 netbsd* | netbsdelf*-gnu)
17471 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17472 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17473 else
17474 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17475 fi
17476 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17477 hardcode_direct_GCJ=yes
17478 hardcode_shlibpath_var_GCJ=no
17479 ;;
17481 newsos6)
17482 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17483 hardcode_direct_GCJ=yes
17484 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17485 hardcode_libdir_separator_GCJ=:
17486 hardcode_shlibpath_var_GCJ=no
17487 ;;
17489 openbsd*)
17490 hardcode_direct_GCJ=yes
17491 hardcode_shlibpath_var_GCJ=no
17492 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17493 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17494 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17495 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17496 export_dynamic_flag_spec_GCJ='${wl}-E'
17497 else
17498 case $host_os in
17499 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17500 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17501 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17502 ;;
17503 *)
17504 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17505 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17506 ;;
17507 esac
17508 fi
17509 ;;
17511 os2*)
17512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17513 hardcode_minus_L_GCJ=yes
17514 allow_undefined_flag_GCJ=unsupported
17515 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'
17516 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17517 ;;
17519 osf3*)
17520 if test "$GCC" = yes; then
17521 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17522 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'
17523 else
17524 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17525 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'
17526 fi
17527 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17528 hardcode_libdir_separator_GCJ=:
17529 ;;
17531 osf4* | osf5*) # as osf3* with the addition of -msym flag
17532 if test "$GCC" = yes; then
17533 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17534 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'
17535 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17536 else
17537 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17538 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'
17539 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~
17540 $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'
17542 # Both c and cxx compiler support -rpath directly
17543 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17544 fi
17545 hardcode_libdir_separator_GCJ=:
17546 ;;
17548 solaris*)
17549 no_undefined_flag_GCJ=' -z text'
17550 if test "$GCC" = yes; then
17551 wlarc='${wl}'
17552 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17553 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17554 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17555 else
17556 wlarc=''
17557 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17558 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17559 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17560 fi
17561 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17562 hardcode_shlibpath_var_GCJ=no
17563 case $host_os in
17564 solaris2.[0-5] | solaris2.[0-5].*) ;;
17565 *)
17566 # The compiler driver will combine linker options so we
17567 # cannot just pass the convience library names through
17568 # without $wl, iff we do not link with $LD.
17569 # Luckily, gcc supports the same syntax we need for Sun Studio.
17570 # Supported since Solaris 2.6 (maybe 2.5.1?)
17571 case $wlarc in
17572 '')
17573 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17574 *)
17575 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' ;;
17576 esac ;;
17577 esac
17578 link_all_deplibs_GCJ=yes
17579 ;;
17581 sunos4*)
17582 if test "x$host_vendor" = xsequent; then
17583 # Use $CC to link under sequent, because it throws in some extra .o
17584 # files that make .init and .fini sections work.
17585 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17586 else
17587 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17588 fi
17589 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17590 hardcode_direct_GCJ=yes
17591 hardcode_minus_L_GCJ=yes
17592 hardcode_shlibpath_var_GCJ=no
17593 ;;
17595 sysv4)
17596 case $host_vendor in
17597 sni)
17598 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599 hardcode_direct_GCJ=yes # is this really true???
17600 ;;
17601 siemens)
17602 ## LD is ld it makes a PLAMLIB
17603 ## CC just makes a GrossModule.
17604 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17605 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17606 hardcode_direct_GCJ=no
17607 ;;
17608 motorola)
17609 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17610 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17611 ;;
17612 esac
17613 runpath_var='LD_RUN_PATH'
17614 hardcode_shlibpath_var_GCJ=no
17615 ;;
17617 sysv4.3*)
17618 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17619 hardcode_shlibpath_var_GCJ=no
17620 export_dynamic_flag_spec_GCJ='-Bexport'
17621 ;;
17623 sysv4*MP*)
17624 if test -d /usr/nec; then
17625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626 hardcode_shlibpath_var_GCJ=no
17627 runpath_var=LD_RUN_PATH
17628 hardcode_runpath_var=yes
17629 ld_shlibs_GCJ=yes
17630 fi
17631 ;;
17633 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17634 no_undefined_flag_GCJ='${wl}-z,text'
17635 archive_cmds_need_lc_GCJ=no
17636 hardcode_shlibpath_var_GCJ=no
17637 runpath_var='LD_RUN_PATH'
17639 if test "$GCC" = yes; then
17640 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17641 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17642 else
17643 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17644 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17645 fi
17646 ;;
17648 sysv5* | sco3.2v5* | sco5v6*)
17649 # Note: We can NOT use -z defs as we might desire, because we do not
17650 # link with -lc, and that would cause any symbols used from libc to
17651 # always be unresolved, which means just about no library would
17652 # ever link correctly. If we're not using GNU ld we use -z text
17653 # though, which does catch some bad symbols but isn't as heavy-handed
17654 # as -z defs.
17655 no_undefined_flag_GCJ='${wl}-z,text'
17656 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17657 archive_cmds_need_lc_GCJ=no
17658 hardcode_shlibpath_var_GCJ=no
17659 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17660 hardcode_libdir_separator_GCJ=':'
17661 link_all_deplibs_GCJ=yes
17662 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17663 runpath_var='LD_RUN_PATH'
17665 if test "$GCC" = yes; then
17666 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17667 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17668 else
17669 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17670 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17671 fi
17672 ;;
17674 uts4*)
17675 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17676 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17677 hardcode_shlibpath_var_GCJ=no
17678 ;;
17680 *)
17681 ld_shlibs_GCJ=no
17682 ;;
17683 esac
17684 fi
17686 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17687 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17688 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17690 #
17691 # Do we need to explicitly link libc?
17692 #
17693 case "x$archive_cmds_need_lc_GCJ" in
17694 x|xyes)
17695 # Assume -lc should be added
17696 archive_cmds_need_lc_GCJ=yes
17698 if test "$enable_shared" = yes && test "$GCC" = yes; then
17699 case $archive_cmds_GCJ in
17700 *'~'*)
17701 # FIXME: we may have to deal with multi-command sequences.
17702 ;;
17703 '$CC '*)
17704 # Test whether the compiler implicitly links with -lc since on some
17705 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17706 # to ld, don't add -lc before -lgcc.
17707 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17708 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17709 $rm conftest*
17710 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17713 (eval $ac_compile) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } 2>conftest.err; then
17717 soname=conftest
17718 lib=conftest
17719 libobjs=conftest.$ac_objext
17720 deplibs=
17721 wl=$lt_prog_compiler_wl_GCJ
17722 pic_flag=$lt_prog_compiler_pic_GCJ
17723 compiler_flags=-v
17724 linker_flags=-v
17725 verstring=
17726 output_objdir=.
17727 libname=conftest
17728 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17729 allow_undefined_flag_GCJ=
17730 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17731 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }
17735 then
17736 archive_cmds_need_lc_GCJ=no
17737 else
17738 archive_cmds_need_lc_GCJ=yes
17739 fi
17740 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17741 else
17742 cat conftest.err 1>&5
17743 fi
17744 $rm conftest*
17745 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17746 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17747 ;;
17748 esac
17749 fi
17750 ;;
17751 esac
17753 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17754 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17755 library_names_spec=
17756 libname_spec='lib$name'
17757 soname_spec=
17758 shrext_cmds=".so"
17759 postinstall_cmds=
17760 postuninstall_cmds=
17761 finish_cmds=
17762 finish_eval=
17763 shlibpath_var=
17764 shlibpath_overrides_runpath=unknown
17765 version_type=none
17766 dynamic_linker="$host_os ld.so"
17767 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17768 if test "$GCC" = yes; then
17769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17770 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17771 # if the path contains ";" then we assume it to be the separator
17772 # otherwise default to the standard path separator (i.e. ":") - it is
17773 # assumed that no part of a normal pathname contains ";" but that should
17774 # okay in the real world where ";" in dirpaths is itself problematic.
17775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17776 else
17777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17778 fi
17779 else
17780 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17781 fi
17782 need_lib_prefix=unknown
17783 hardcode_into_libs=no
17785 # when you set need_version to no, make sure it does not cause -set_version
17786 # flags to be left without arguments
17787 need_version=unknown
17789 case $host_os in
17790 aix3*)
17791 version_type=linux
17792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17793 shlibpath_var=LIBPATH
17795 # AIX 3 has no versioning support, so we append a major version to the name.
17796 soname_spec='${libname}${release}${shared_ext}$major'
17797 ;;
17799 aix4* | aix5*)
17800 version_type=linux
17801 need_lib_prefix=no
17802 need_version=no
17803 hardcode_into_libs=yes
17804 if test "$host_cpu" = ia64; then
17805 # AIX 5 supports IA64
17806 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17807 shlibpath_var=LD_LIBRARY_PATH
17808 else
17809 # With GCC up to 2.95.x, collect2 would create an import file
17810 # for dependence libraries. The import file would start with
17811 # the line `#! .'. This would cause the generated library to
17812 # depend on `.', always an invalid library. This was fixed in
17813 # development snapshots of GCC prior to 3.0.
17814 case $host_os in
17815 aix4 | aix4.[01] | aix4.[01].*)
17816 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17817 echo ' yes '
17818 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17819 :
17820 else
17821 can_build_shared=no
17822 fi
17823 ;;
17824 esac
17825 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17826 # soname into executable. Probably we can add versioning support to
17827 # collect2, so additional links can be useful in future.
17828 if test "$aix_use_runtimelinking" = yes; then
17829 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17830 # instead of lib<name>.a to let people know that these are not
17831 # typical AIX shared libraries.
17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17833 else
17834 # We preserve .a as extension for shared libraries through AIX4.2
17835 # and later when we are not doing run time linking.
17836 library_names_spec='${libname}${release}.a $libname.a'
17837 soname_spec='${libname}${release}${shared_ext}$major'
17838 fi
17839 shlibpath_var=LIBPATH
17840 fi
17841 ;;
17843 amigaos*)
17844 library_names_spec='$libname.ixlibrary $libname.a'
17845 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17846 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'
17847 ;;
17849 beos*)
17850 library_names_spec='${libname}${shared_ext}'
17851 dynamic_linker="$host_os ld.so"
17852 shlibpath_var=LIBRARY_PATH
17853 ;;
17855 bsdi[45]*)
17856 version_type=linux
17857 need_version=no
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859 soname_spec='${libname}${release}${shared_ext}$major'
17860 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17861 shlibpath_var=LD_LIBRARY_PATH
17862 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17863 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17864 # the default ld.so.conf also contains /usr/contrib/lib and
17865 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17866 # libtool to hard-code these into programs
17867 ;;
17869 cygwin* | mingw* | pw32*)
17870 version_type=windows
17871 shrext_cmds=".dll"
17872 need_version=no
17873 need_lib_prefix=no
17875 case $GCC,$host_os in
17876 yes,cygwin* | yes,mingw* | yes,pw32*)
17877 library_names_spec='$libname.dll.a'
17878 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17879 postinstall_cmds='base_file=`basename \${file}`~
17880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17881 dldir=$destdir/`dirname \$dlpath`~
17882 test -d \$dldir || mkdir -p \$dldir~
17883 $install_prog $dir/$dlname \$dldir/$dlname~
17884 chmod a+x \$dldir/$dlname'
17885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17886 dlpath=$dir/\$dldll~
17887 $rm \$dlpath'
17888 shlibpath_overrides_runpath=yes
17890 case $host_os in
17891 cygwin*)
17892 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17893 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17894 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17895 ;;
17896 mingw*)
17897 # MinGW DLLs use traditional 'lib' prefix
17898 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17899 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17900 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17901 # It is most probably a Windows format PATH printed by
17902 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17903 # path with ; separators, and with drive letters. We can handle the
17904 # drive letters (cygwin fileutils understands them), so leave them,
17905 # especially as we might pass files found there to a mingw objdump,
17906 # which wouldn't understand a cygwinified path. Ahh.
17907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17908 else
17909 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17910 fi
17911 ;;
17912 pw32*)
17913 # pw32 DLLs use 'pw' prefix rather than 'lib'
17914 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17915 ;;
17916 esac
17917 ;;
17919 *)
17920 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17921 ;;
17922 esac
17923 dynamic_linker='Win32 ld.exe'
17924 # FIXME: first we should search . and the directory the executable is in
17925 shlibpath_var=PATH
17926 ;;
17928 darwin* | rhapsody*)
17929 dynamic_linker="$host_os dyld"
17930 version_type=darwin
17931 need_lib_prefix=no
17932 need_version=no
17933 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17934 soname_spec='${libname}${release}${major}$shared_ext'
17935 shlibpath_overrides_runpath=yes
17936 shlibpath_var=DYLD_LIBRARY_PATH
17937 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17938 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17939 if test "$GCC" = yes; then
17940 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"`
17941 else
17942 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17943 fi
17944 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17945 ;;
17947 dgux*)
17948 version_type=linux
17949 need_lib_prefix=no
17950 need_version=no
17951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17952 soname_spec='${libname}${release}${shared_ext}$major'
17953 shlibpath_var=LD_LIBRARY_PATH
17954 ;;
17956 freebsd1*)
17957 dynamic_linker=no
17958 ;;
17960 freebsd* | dragonfly*)
17961 # DragonFly does not have aout. When/if they implement a new
17962 # versioning mechanism, adjust this.
17963 if test -x /usr/bin/objformat; then
17964 objformat=`/usr/bin/objformat`
17965 else
17966 case $host_os in
17967 freebsd[123]*) objformat=aout ;;
17968 *) objformat=elf ;;
17969 esac
17970 fi
17971 version_type=freebsd-$objformat
17972 case $version_type in
17973 freebsd-elf*)
17974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17975 need_version=no
17976 need_lib_prefix=no
17977 ;;
17978 freebsd-*)
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17980 need_version=yes
17981 ;;
17982 esac
17983 shlibpath_var=LD_LIBRARY_PATH
17984 case $host_os in
17985 freebsd2*)
17986 shlibpath_overrides_runpath=yes
17987 ;;
17988 freebsd3.[01]* | freebsdelf3.[01]*)
17989 shlibpath_overrides_runpath=yes
17990 hardcode_into_libs=yes
17991 ;;
17992 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17993 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17994 shlibpath_overrides_runpath=no
17995 hardcode_into_libs=yes
17996 ;;
17997 freebsd*) # from 4.6 on
17998 shlibpath_overrides_runpath=yes
17999 hardcode_into_libs=yes
18000 ;;
18001 esac
18002 ;;
18004 gnu*)
18005 version_type=linux
18006 need_lib_prefix=no
18007 need_version=no
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18009 soname_spec='${libname}${release}${shared_ext}$major'
18010 shlibpath_var=LD_LIBRARY_PATH
18011 hardcode_into_libs=yes
18012 ;;
18014 hpux9* | hpux10* | hpux11*)
18015 # Give a soname corresponding to the major version so that dld.sl refuses to
18016 # link against other versions.
18017 version_type=sunos
18018 need_lib_prefix=no
18019 need_version=no
18020 case $host_cpu in
18021 ia64*)
18022 shrext_cmds='.so'
18023 hardcode_into_libs=yes
18024 dynamic_linker="$host_os dld.so"
18025 shlibpath_var=LD_LIBRARY_PATH
18026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18028 soname_spec='${libname}${release}${shared_ext}$major'
18029 if test "X$HPUX_IA64_MODE" = X32; then
18030 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18031 else
18032 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18033 fi
18034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18035 ;;
18036 hppa*64*)
18037 shrext_cmds='.sl'
18038 hardcode_into_libs=yes
18039 dynamic_linker="$host_os dld.sl"
18040 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18043 soname_spec='${libname}${release}${shared_ext}$major'
18044 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18046 ;;
18047 *)
18048 shrext_cmds='.sl'
18049 dynamic_linker="$host_os dld.sl"
18050 shlibpath_var=SHLIB_PATH
18051 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053 soname_spec='${libname}${release}${shared_ext}$major'
18054 ;;
18055 esac
18056 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18057 postinstall_cmds='chmod 555 $lib'
18058 ;;
18060 interix3*)
18061 version_type=linux
18062 need_lib_prefix=no
18063 need_version=no
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18065 soname_spec='${libname}${release}${shared_ext}$major'
18066 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18067 shlibpath_var=LD_LIBRARY_PATH
18068 shlibpath_overrides_runpath=no
18069 hardcode_into_libs=yes
18070 ;;
18072 irix5* | irix6* | nonstopux*)
18073 case $host_os in
18074 nonstopux*) version_type=nonstopux ;;
18075 *)
18076 if test "$lt_cv_prog_gnu_ld" = yes; then
18077 version_type=linux
18078 else
18079 version_type=irix
18080 fi ;;
18081 esac
18082 need_lib_prefix=no
18083 need_version=no
18084 soname_spec='${libname}${release}${shared_ext}$major'
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18086 case $host_os in
18087 irix5* | nonstopux*)
18088 libsuff= shlibsuff=
18089 ;;
18090 *)
18091 case $LD in # libtool.m4 will add one of these switches to LD
18092 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18093 libsuff= shlibsuff= libmagic=32-bit;;
18094 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18095 libsuff=32 shlibsuff=N32 libmagic=N32;;
18096 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18097 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18098 *) libsuff= shlibsuff= libmagic=never-match;;
18099 esac
18100 ;;
18101 esac
18102 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18103 shlibpath_overrides_runpath=no
18104 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18105 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18106 hardcode_into_libs=yes
18107 ;;
18109 # No shared lib support for Linux oldld, aout, or coff.
18110 linux*oldld* | linux*aout* | linux*coff*)
18111 dynamic_linker=no
18112 ;;
18114 # This must be Linux ELF.
18115 linux* | k*bsd*-gnu)
18116 version_type=linux
18117 need_lib_prefix=no
18118 need_version=no
18119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18120 soname_spec='${libname}${release}${shared_ext}$major'
18121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18122 shlibpath_var=LD_LIBRARY_PATH
18123 shlibpath_overrides_runpath=no
18124 # This implies no fast_install, which is unacceptable.
18125 # Some rework will be needed to allow for fast_install
18126 # before this can be enabled.
18127 hardcode_into_libs=yes
18129 # Append ld.so.conf contents to the search path
18130 if test -f /etc/ld.so.conf; then
18131 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' ' '`
18132 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18133 fi
18135 # We used to test for /lib/ld.so.1 and disable shared libraries on
18136 # powerpc, because MkLinux only supported shared libraries with the
18137 # GNU dynamic linker. Since this was broken with cross compilers,
18138 # most powerpc-linux boxes support dynamic linking these days and
18139 # people can always --disable-shared, the test was removed, and we
18140 # assume the GNU/Linux dynamic linker is in use.
18141 dynamic_linker='GNU/Linux ld.so'
18142 ;;
18144 netbsdelf*-gnu)
18145 version_type=linux
18146 need_lib_prefix=no
18147 need_version=no
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 shlibpath_var=LD_LIBRARY_PATH
18151 shlibpath_overrides_runpath=no
18152 hardcode_into_libs=yes
18153 dynamic_linker='NetBSD ld.elf_so'
18154 ;;
18156 netbsd*)
18157 version_type=sunos
18158 need_lib_prefix=no
18159 need_version=no
18160 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18163 dynamic_linker='NetBSD (a.out) ld.so'
18164 else
18165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18166 soname_spec='${libname}${release}${shared_ext}$major'
18167 dynamic_linker='NetBSD ld.elf_so'
18168 fi
18169 shlibpath_var=LD_LIBRARY_PATH
18170 shlibpath_overrides_runpath=yes
18171 hardcode_into_libs=yes
18172 ;;
18174 newsos6)
18175 version_type=linux
18176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177 shlibpath_var=LD_LIBRARY_PATH
18178 shlibpath_overrides_runpath=yes
18179 ;;
18181 nto-qnx*)
18182 version_type=linux
18183 need_lib_prefix=no
18184 need_version=no
18185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18186 soname_spec='${libname}${release}${shared_ext}$major'
18187 shlibpath_var=LD_LIBRARY_PATH
18188 shlibpath_overrides_runpath=yes
18189 ;;
18191 openbsd*)
18192 version_type=sunos
18193 sys_lib_dlsearch_path_spec="/usr/lib"
18194 need_lib_prefix=no
18195 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18196 case $host_os in
18197 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18198 *) need_version=no ;;
18199 esac
18200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18202 shlibpath_var=LD_LIBRARY_PATH
18203 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18204 case $host_os in
18205 openbsd2.[89] | openbsd2.[89].*)
18206 shlibpath_overrides_runpath=no
18207 ;;
18208 *)
18209 shlibpath_overrides_runpath=yes
18210 ;;
18211 esac
18212 else
18213 shlibpath_overrides_runpath=yes
18214 fi
18215 ;;
18217 os2*)
18218 libname_spec='$name'
18219 shrext_cmds=".dll"
18220 need_lib_prefix=no
18221 library_names_spec='$libname${shared_ext} $libname.a'
18222 dynamic_linker='OS/2 ld.exe'
18223 shlibpath_var=LIBPATH
18224 ;;
18226 osf3* | osf4* | osf5*)
18227 version_type=osf
18228 need_lib_prefix=no
18229 need_version=no
18230 soname_spec='${libname}${release}${shared_ext}$major'
18231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18232 shlibpath_var=LD_LIBRARY_PATH
18233 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18234 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18235 ;;
18237 solaris*)
18238 version_type=linux
18239 need_lib_prefix=no
18240 need_version=no
18241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18242 soname_spec='${libname}${release}${shared_ext}$major'
18243 shlibpath_var=LD_LIBRARY_PATH
18244 shlibpath_overrides_runpath=yes
18245 hardcode_into_libs=yes
18246 # ldd complains unless libraries are executable
18247 postinstall_cmds='chmod +x $lib'
18248 ;;
18250 sunos4*)
18251 version_type=sunos
18252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18253 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18254 shlibpath_var=LD_LIBRARY_PATH
18255 shlibpath_overrides_runpath=yes
18256 if test "$with_gnu_ld" = yes; then
18257 need_lib_prefix=no
18258 fi
18259 need_version=yes
18260 ;;
18262 sysv4 | sysv4.3*)
18263 version_type=linux
18264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18265 soname_spec='${libname}${release}${shared_ext}$major'
18266 shlibpath_var=LD_LIBRARY_PATH
18267 case $host_vendor in
18268 sni)
18269 shlibpath_overrides_runpath=no
18270 need_lib_prefix=no
18271 export_dynamic_flag_spec='${wl}-Blargedynsym'
18272 runpath_var=LD_RUN_PATH
18273 ;;
18274 siemens)
18275 need_lib_prefix=no
18276 ;;
18277 motorola)
18278 need_lib_prefix=no
18279 need_version=no
18280 shlibpath_overrides_runpath=no
18281 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18282 ;;
18283 esac
18284 ;;
18286 sysv4*MP*)
18287 if test -d /usr/nec ;then
18288 version_type=linux
18289 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18290 soname_spec='$libname${shared_ext}.$major'
18291 shlibpath_var=LD_LIBRARY_PATH
18292 fi
18293 ;;
18295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18296 version_type=freebsd-elf
18297 need_lib_prefix=no
18298 need_version=no
18299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18300 soname_spec='${libname}${release}${shared_ext}$major'
18301 shlibpath_var=LD_LIBRARY_PATH
18302 hardcode_into_libs=yes
18303 if test "$with_gnu_ld" = yes; then
18304 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18305 shlibpath_overrides_runpath=no
18306 else
18307 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18308 shlibpath_overrides_runpath=yes
18309 case $host_os in
18310 sco3.2v5*)
18311 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18312 ;;
18313 esac
18314 fi
18315 sys_lib_dlsearch_path_spec='/usr/lib'
18316 ;;
18318 uts4*)
18319 version_type=linux
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18321 soname_spec='${libname}${release}${shared_ext}$major'
18322 shlibpath_var=LD_LIBRARY_PATH
18323 ;;
18325 *)
18326 dynamic_linker=no
18327 ;;
18328 esac
18329 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18330 echo "${ECHO_T}$dynamic_linker" >&6; }
18331 test "$dynamic_linker" = no && can_build_shared=no
18333 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18334 if test "$GCC" = yes; then
18335 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18336 fi
18338 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18339 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18340 hardcode_action_GCJ=
18341 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18342 test -n "$runpath_var_GCJ" || \
18343 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18345 # We can hardcode non-existant directories.
18346 if test "$hardcode_direct_GCJ" != no &&
18347 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18348 # have to relink, otherwise we might link with an installed library
18349 # when we should be linking with a yet-to-be-installed one
18350 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18351 test "$hardcode_minus_L_GCJ" != no; then
18352 # Linking always hardcodes the temporary library directory.
18353 hardcode_action_GCJ=relink
18354 else
18355 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18356 hardcode_action_GCJ=immediate
18357 fi
18358 else
18359 # We cannot hardcode anything, or else we can only hardcode existing
18360 # directories.
18361 hardcode_action_GCJ=unsupported
18362 fi
18363 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18364 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18366 if test "$hardcode_action_GCJ" = relink; then
18367 # Fast installation is not supported
18368 enable_fast_install=no
18369 elif test "$shlibpath_overrides_runpath" = yes ||
18370 test "$enable_shared" = no; then
18371 # Fast installation is not necessary
18372 enable_fast_install=needless
18373 fi
18376 # The else clause should only fire when bootstrapping the
18377 # libtool distribution, otherwise you forgot to ship ltmain.sh
18378 # with your package, and you will get complaints that there are
18379 # no rules to generate ltmain.sh.
18380 if test -f "$ltmain"; then
18381 # See if we are running on zsh, and set the options which allow our commands through
18382 # without removal of \ escapes.
18383 if test -n "${ZSH_VERSION+set}" ; then
18384 setopt NO_GLOB_SUBST
18385 fi
18386 # Now quote all the things that may contain metacharacters while being
18387 # careful not to overquote the AC_SUBSTed values. We take copies of the
18388 # variables and quote the copies for generation of the libtool script.
18389 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18390 SED SHELL STRIP \
18391 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18392 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18393 deplibs_check_method reload_flag reload_cmds need_locks \
18394 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18395 lt_cv_sys_global_symbol_to_c_name_address \
18396 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18397 old_postinstall_cmds old_postuninstall_cmds \
18398 compiler_GCJ \
18399 CC_GCJ \
18400 LD_GCJ \
18401 lt_prog_compiler_wl_GCJ \
18402 lt_prog_compiler_pic_GCJ \
18403 lt_prog_compiler_static_GCJ \
18404 lt_prog_compiler_no_builtin_flag_GCJ \
18405 export_dynamic_flag_spec_GCJ \
18406 thread_safe_flag_spec_GCJ \
18407 whole_archive_flag_spec_GCJ \
18408 enable_shared_with_static_runtimes_GCJ \
18409 old_archive_cmds_GCJ \
18410 old_archive_from_new_cmds_GCJ \
18411 predep_objects_GCJ \
18412 postdep_objects_GCJ \
18413 predeps_GCJ \
18414 postdeps_GCJ \
18415 compiler_lib_search_path_GCJ \
18416 archive_cmds_GCJ \
18417 archive_expsym_cmds_GCJ \
18418 postinstall_cmds_GCJ \
18419 postuninstall_cmds_GCJ \
18420 old_archive_from_expsyms_cmds_GCJ \
18421 allow_undefined_flag_GCJ \
18422 no_undefined_flag_GCJ \
18423 export_symbols_cmds_GCJ \
18424 hardcode_libdir_flag_spec_GCJ \
18425 hardcode_libdir_flag_spec_ld_GCJ \
18426 hardcode_libdir_separator_GCJ \
18427 hardcode_automatic_GCJ \
18428 module_cmds_GCJ \
18429 module_expsym_cmds_GCJ \
18430 lt_cv_prog_compiler_c_o_GCJ \
18431 exclude_expsyms_GCJ \
18432 include_expsyms_GCJ; do
18434 case $var in
18435 old_archive_cmds_GCJ | \
18436 old_archive_from_new_cmds_GCJ | \
18437 archive_cmds_GCJ | \
18438 archive_expsym_cmds_GCJ | \
18439 module_cmds_GCJ | \
18440 module_expsym_cmds_GCJ | \
18441 old_archive_from_expsyms_cmds_GCJ | \
18442 export_symbols_cmds_GCJ | \
18443 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18444 postinstall_cmds | postuninstall_cmds | \
18445 old_postinstall_cmds | old_postuninstall_cmds | \
18446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18447 # Double-quote double-evaled strings.
18448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18449 ;;
18450 *)
18451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18452 ;;
18453 esac
18454 done
18456 case $lt_echo in
18457 *'\$0 --fallback-echo"')
18458 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18459 ;;
18460 esac
18462 cfgfile="$ofile"
18464 cat <<__EOF__ >> "$cfgfile"
18465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18469 # Shell to use when invoking shell scripts.
18470 SHELL=$lt_SHELL
18472 # Whether or not to build shared libraries.
18473 build_libtool_libs=$enable_shared
18475 # Whether or not to build static libraries.
18476 build_old_libs=$enable_static
18478 # Whether or not to add -lc for building shared libraries.
18479 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18481 # Whether or not to disallow shared libs when runtime libs are static
18482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18484 # Whether or not to optimize for fast installation.
18485 fast_install=$enable_fast_install
18487 # The host system.
18488 host_alias=$host_alias
18489 host=$host
18490 host_os=$host_os
18492 # The build system.
18493 build_alias=$build_alias
18494 build=$build
18495 build_os=$build_os
18497 # An echo program that does not interpret backslashes.
18498 echo=$lt_echo
18500 # The archiver.
18501 AR=$lt_AR
18502 AR_FLAGS=$lt_AR_FLAGS
18504 # A C compiler.
18505 LTCC=$lt_LTCC
18507 # LTCC compiler flags.
18508 LTCFLAGS=$lt_LTCFLAGS
18510 # A language-specific compiler.
18511 CC=$lt_compiler_GCJ
18513 # Is the compiler the GNU C compiler?
18514 with_gcc=$GCC_GCJ
18516 # An ERE matcher.
18517 EGREP=$lt_EGREP
18519 # The linker used to build libraries.
18520 LD=$lt_LD_GCJ
18522 # Whether we need hard or soft links.
18523 LN_S=$lt_LN_S
18525 # A BSD-compatible nm program.
18526 NM=$lt_NM
18528 # A symbol stripping program
18529 STRIP=$lt_STRIP
18531 # Used to examine libraries when file_magic_cmd begins "file"
18532 MAGIC_CMD=$MAGIC_CMD
18534 # Used on cygwin: DLL creation program.
18535 DLLTOOL="$DLLTOOL"
18537 # Used on cygwin: object dumper.
18538 OBJDUMP="$OBJDUMP"
18540 # Used on cygwin: assembler.
18541 AS="$AS"
18543 # The name of the directory that contains temporary libtool files.
18544 objdir=$objdir
18546 # How to create reloadable object files.
18547 reload_flag=$lt_reload_flag
18548 reload_cmds=$lt_reload_cmds
18550 # How to pass a linker flag through the compiler.
18551 wl=$lt_lt_prog_compiler_wl_GCJ
18553 # Object file suffix (normally "o").
18554 objext="$ac_objext"
18556 # Old archive suffix (normally "a").
18557 libext="$libext"
18559 # Shared library suffix (normally ".so").
18560 shrext_cmds='$shrext_cmds'
18562 # Executable file suffix (normally "").
18563 exeext="$exeext"
18565 # Additional compiler flags for building library objects.
18566 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18567 pic_mode=$pic_mode
18569 # What is the maximum length of a command?
18570 max_cmd_len=$lt_cv_sys_max_cmd_len
18572 # Does compiler simultaneously support -c and -o options?
18573 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18575 # Must we lock files when doing compilation?
18576 need_locks=$lt_need_locks
18578 # Do we need the lib prefix for modules?
18579 need_lib_prefix=$need_lib_prefix
18581 # Do we need a version for libraries?
18582 need_version=$need_version
18584 # Whether dlopen is supported.
18585 dlopen_support=$enable_dlopen
18587 # Whether dlopen of programs is supported.
18588 dlopen_self=$enable_dlopen_self
18590 # Whether dlopen of statically linked programs is supported.
18591 dlopen_self_static=$enable_dlopen_self_static
18593 # Compiler flag to prevent dynamic linking.
18594 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18596 # Compiler flag to turn off builtin functions.
18597 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18599 # Compiler flag to allow reflexive dlopens.
18600 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18602 # Compiler flag to generate shared objects directly from archives.
18603 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18605 # Compiler flag to generate thread-safe objects.
18606 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18608 # Library versioning type.
18609 version_type=$version_type
18611 # Format of library name prefix.
18612 libname_spec=$lt_libname_spec
18614 # List of archive names. First name is the real one, the rest are links.
18615 # The last name is the one that the linker finds with -lNAME.
18616 library_names_spec=$lt_library_names_spec
18618 # The coded name of the library, if different from the real name.
18619 soname_spec=$lt_soname_spec
18621 # Commands used to build and install an old-style archive.
18622 RANLIB=$lt_RANLIB
18623 old_archive_cmds=$lt_old_archive_cmds_GCJ
18624 old_postinstall_cmds=$lt_old_postinstall_cmds
18625 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18627 # Create an old-style archive from a shared archive.
18628 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18630 # Create a temporary old-style archive to link instead of a shared archive.
18631 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18633 # Commands used to build and install a shared archive.
18634 archive_cmds=$lt_archive_cmds_GCJ
18635 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18636 postinstall_cmds=$lt_postinstall_cmds
18637 postuninstall_cmds=$lt_postuninstall_cmds
18639 # Commands used to build a loadable module (assumed same as above if empty)
18640 module_cmds=$lt_module_cmds_GCJ
18641 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18643 # Commands to strip libraries.
18644 old_striplib=$lt_old_striplib
18645 striplib=$lt_striplib
18647 # Dependencies to place before the objects being linked to create a
18648 # shared library.
18649 predep_objects=$lt_predep_objects_GCJ
18651 # Dependencies to place after the objects being linked to create a
18652 # shared library.
18653 postdep_objects=$lt_postdep_objects_GCJ
18655 # Dependencies to place before the objects being linked to create a
18656 # shared library.
18657 predeps=$lt_predeps_GCJ
18659 # Dependencies to place after the objects being linked to create a
18660 # shared library.
18661 postdeps=$lt_postdeps_GCJ
18663 # The library search path used internally by the compiler when linking
18664 # a shared library.
18665 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18667 # Method to check whether dependent libraries are shared objects.
18668 deplibs_check_method=$lt_deplibs_check_method
18670 # Command to use when deplibs_check_method == file_magic.
18671 file_magic_cmd=$lt_file_magic_cmd
18673 # Flag that allows shared libraries with undefined symbols to be built.
18674 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18676 # Flag that forces no undefined symbols.
18677 no_undefined_flag=$lt_no_undefined_flag_GCJ
18679 # Commands used to finish a libtool library installation in a directory.
18680 finish_cmds=$lt_finish_cmds
18682 # Same as above, but a single script fragment to be evaled but not shown.
18683 finish_eval=$lt_finish_eval
18685 # Take the output of nm and produce a listing of raw symbols and C names.
18686 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18688 # Transform the output of nm in a proper C declaration
18689 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18691 # Transform the output of nm in a C name address pair
18692 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18694 # This is the shared library runtime path variable.
18695 runpath_var=$runpath_var
18697 # This is the shared library path variable.
18698 shlibpath_var=$shlibpath_var
18700 # Is shlibpath searched before the hard-coded library search path?
18701 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18703 # How to hardcode a shared library path into an executable.
18704 hardcode_action=$hardcode_action_GCJ
18706 # Whether we should hardcode library paths into libraries.
18707 hardcode_into_libs=$hardcode_into_libs
18709 # Flag to hardcode \$libdir into a binary during linking.
18710 # This must work even if \$libdir does not exist.
18711 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18713 # If ld is used when linking, flag to hardcode \$libdir into
18714 # a binary during linking. This must work even if \$libdir does
18715 # not exist.
18716 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18718 # Whether we need a single -rpath flag with a separated argument.
18719 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18721 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18722 # resulting binary.
18723 hardcode_direct=$hardcode_direct_GCJ
18725 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18726 # resulting binary.
18727 hardcode_minus_L=$hardcode_minus_L_GCJ
18729 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18730 # the resulting binary.
18731 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18733 # Set to yes if building a shared library automatically hardcodes DIR into the library
18734 # and all subsequent libraries and executables linked against it.
18735 hardcode_automatic=$hardcode_automatic_GCJ
18737 # Variables whose values should be saved in libtool wrapper scripts and
18738 # restored at relink time.
18739 variables_saved_for_relink="$variables_saved_for_relink"
18741 # Whether libtool must link a program against all its dependency libraries.
18742 link_all_deplibs=$link_all_deplibs_GCJ
18744 # Compile-time system search path for libraries
18745 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18747 # Run-time system search path for libraries
18748 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18750 # Fix the shell variable \$srcfile for the compiler.
18751 fix_srcfile_path="$fix_srcfile_path_GCJ"
18753 # Set to yes if exported symbols are required.
18754 always_export_symbols=$always_export_symbols_GCJ
18756 # The commands to list exported symbols.
18757 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18759 # The commands to extract the exported symbol list from a shared archive.
18760 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18762 # Symbols that should not be listed in the preloaded symbols.
18763 exclude_expsyms=$lt_exclude_expsyms_GCJ
18765 # Symbols that must always be exported.
18766 include_expsyms=$lt_include_expsyms_GCJ
18768 # ### END LIBTOOL TAG CONFIG: $tagname
18770 __EOF__
18773 else
18774 # If there is no Makefile yet, we rely on a make rule to execute
18775 # `config.status --recheck' to rerun these tests and create the
18776 # libtool script then.
18777 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18778 if test -f "$ltmain_in"; then
18779 test -f Makefile && make "$ltmain"
18780 fi
18781 fi
18784 ac_ext=c
18785 ac_cpp='$CPP $CPPFLAGS'
18786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18790 CC="$lt_save_CC"
18792 else
18793 tagname=""
18794 fi
18795 ;;
18797 RC)
18800 # Source file extension for RC test sources.
18801 ac_ext=rc
18803 # Object file extension for compiled RC test sources.
18804 objext=o
18805 objext_RC=$objext
18807 # Code to be used in simple compile tests
18808 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18810 # Code to be used in simple link tests
18811 lt_simple_link_test_code="$lt_simple_compile_test_code"
18813 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18815 # If no C compiler was specified, use CC.
18816 LTCC=${LTCC-"$CC"}
18818 # If no C compiler flags were specified, use CFLAGS.
18819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18821 # Allow CC to be a program name with arguments.
18822 compiler=$CC
18825 # save warnings/boilerplate of simple test code
18826 ac_outfile=conftest.$ac_objext
18827 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18828 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18829 _lt_compiler_boilerplate=`cat conftest.err`
18830 $rm conftest*
18832 ac_outfile=conftest.$ac_objext
18833 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18834 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18835 _lt_linker_boilerplate=`cat conftest.err`
18836 $rm conftest*
18839 # Allow CC to be a program name with arguments.
18840 lt_save_CC="$CC"
18841 CC=${RC-"windres"}
18842 compiler=$CC
18843 compiler_RC=$CC
18844 for cc_temp in $compiler""; do
18845 case $cc_temp in
18846 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18847 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18848 \-*) ;;
18849 *) break;;
18850 esac
18851 done
18852 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18854 lt_cv_prog_compiler_c_o_RC=yes
18856 # The else clause should only fire when bootstrapping the
18857 # libtool distribution, otherwise you forgot to ship ltmain.sh
18858 # with your package, and you will get complaints that there are
18859 # no rules to generate ltmain.sh.
18860 if test -f "$ltmain"; then
18861 # See if we are running on zsh, and set the options which allow our commands through
18862 # without removal of \ escapes.
18863 if test -n "${ZSH_VERSION+set}" ; then
18864 setopt NO_GLOB_SUBST
18865 fi
18866 # Now quote all the things that may contain metacharacters while being
18867 # careful not to overquote the AC_SUBSTed values. We take copies of the
18868 # variables and quote the copies for generation of the libtool script.
18869 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18870 SED SHELL STRIP \
18871 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18872 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18873 deplibs_check_method reload_flag reload_cmds need_locks \
18874 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18875 lt_cv_sys_global_symbol_to_c_name_address \
18876 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18877 old_postinstall_cmds old_postuninstall_cmds \
18878 compiler_RC \
18879 CC_RC \
18880 LD_RC \
18881 lt_prog_compiler_wl_RC \
18882 lt_prog_compiler_pic_RC \
18883 lt_prog_compiler_static_RC \
18884 lt_prog_compiler_no_builtin_flag_RC \
18885 export_dynamic_flag_spec_RC \
18886 thread_safe_flag_spec_RC \
18887 whole_archive_flag_spec_RC \
18888 enable_shared_with_static_runtimes_RC \
18889 old_archive_cmds_RC \
18890 old_archive_from_new_cmds_RC \
18891 predep_objects_RC \
18892 postdep_objects_RC \
18893 predeps_RC \
18894 postdeps_RC \
18895 compiler_lib_search_path_RC \
18896 archive_cmds_RC \
18897 archive_expsym_cmds_RC \
18898 postinstall_cmds_RC \
18899 postuninstall_cmds_RC \
18900 old_archive_from_expsyms_cmds_RC \
18901 allow_undefined_flag_RC \
18902 no_undefined_flag_RC \
18903 export_symbols_cmds_RC \
18904 hardcode_libdir_flag_spec_RC \
18905 hardcode_libdir_flag_spec_ld_RC \
18906 hardcode_libdir_separator_RC \
18907 hardcode_automatic_RC \
18908 module_cmds_RC \
18909 module_expsym_cmds_RC \
18910 lt_cv_prog_compiler_c_o_RC \
18911 exclude_expsyms_RC \
18912 include_expsyms_RC; do
18914 case $var in
18915 old_archive_cmds_RC | \
18916 old_archive_from_new_cmds_RC | \
18917 archive_cmds_RC | \
18918 archive_expsym_cmds_RC | \
18919 module_cmds_RC | \
18920 module_expsym_cmds_RC | \
18921 old_archive_from_expsyms_cmds_RC | \
18922 export_symbols_cmds_RC | \
18923 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18924 postinstall_cmds | postuninstall_cmds | \
18925 old_postinstall_cmds | old_postuninstall_cmds | \
18926 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18927 # Double-quote double-evaled strings.
18928 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18929 ;;
18930 *)
18931 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18932 ;;
18933 esac
18934 done
18936 case $lt_echo in
18937 *'\$0 --fallback-echo"')
18938 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18939 ;;
18940 esac
18942 cfgfile="$ofile"
18944 cat <<__EOF__ >> "$cfgfile"
18945 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18947 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18949 # Shell to use when invoking shell scripts.
18950 SHELL=$lt_SHELL
18952 # Whether or not to build shared libraries.
18953 build_libtool_libs=$enable_shared
18955 # Whether or not to build static libraries.
18956 build_old_libs=$enable_static
18958 # Whether or not to add -lc for building shared libraries.
18959 build_libtool_need_lc=$archive_cmds_need_lc_RC
18961 # Whether or not to disallow shared libs when runtime libs are static
18962 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18964 # Whether or not to optimize for fast installation.
18965 fast_install=$enable_fast_install
18967 # The host system.
18968 host_alias=$host_alias
18969 host=$host
18970 host_os=$host_os
18972 # The build system.
18973 build_alias=$build_alias
18974 build=$build
18975 build_os=$build_os
18977 # An echo program that does not interpret backslashes.
18978 echo=$lt_echo
18980 # The archiver.
18981 AR=$lt_AR
18982 AR_FLAGS=$lt_AR_FLAGS
18984 # A C compiler.
18985 LTCC=$lt_LTCC
18987 # LTCC compiler flags.
18988 LTCFLAGS=$lt_LTCFLAGS
18990 # A language-specific compiler.
18991 CC=$lt_compiler_RC
18993 # Is the compiler the GNU C compiler?
18994 with_gcc=$GCC_RC
18996 # An ERE matcher.
18997 EGREP=$lt_EGREP
18999 # The linker used to build libraries.
19000 LD=$lt_LD_RC
19002 # Whether we need hard or soft links.
19003 LN_S=$lt_LN_S
19005 # A BSD-compatible nm program.
19006 NM=$lt_NM
19008 # A symbol stripping program
19009 STRIP=$lt_STRIP
19011 # Used to examine libraries when file_magic_cmd begins "file"
19012 MAGIC_CMD=$MAGIC_CMD
19014 # Used on cygwin: DLL creation program.
19015 DLLTOOL="$DLLTOOL"
19017 # Used on cygwin: object dumper.
19018 OBJDUMP="$OBJDUMP"
19020 # Used on cygwin: assembler.
19021 AS="$AS"
19023 # The name of the directory that contains temporary libtool files.
19024 objdir=$objdir
19026 # How to create reloadable object files.
19027 reload_flag=$lt_reload_flag
19028 reload_cmds=$lt_reload_cmds
19030 # How to pass a linker flag through the compiler.
19031 wl=$lt_lt_prog_compiler_wl_RC
19033 # Object file suffix (normally "o").
19034 objext="$ac_objext"
19036 # Old archive suffix (normally "a").
19037 libext="$libext"
19039 # Shared library suffix (normally ".so").
19040 shrext_cmds='$shrext_cmds'
19042 # Executable file suffix (normally "").
19043 exeext="$exeext"
19045 # Additional compiler flags for building library objects.
19046 pic_flag=$lt_lt_prog_compiler_pic_RC
19047 pic_mode=$pic_mode
19049 # What is the maximum length of a command?
19050 max_cmd_len=$lt_cv_sys_max_cmd_len
19052 # Does compiler simultaneously support -c and -o options?
19053 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19055 # Must we lock files when doing compilation?
19056 need_locks=$lt_need_locks
19058 # Do we need the lib prefix for modules?
19059 need_lib_prefix=$need_lib_prefix
19061 # Do we need a version for libraries?
19062 need_version=$need_version
19064 # Whether dlopen is supported.
19065 dlopen_support=$enable_dlopen
19067 # Whether dlopen of programs is supported.
19068 dlopen_self=$enable_dlopen_self
19070 # Whether dlopen of statically linked programs is supported.
19071 dlopen_self_static=$enable_dlopen_self_static
19073 # Compiler flag to prevent dynamic linking.
19074 link_static_flag=$lt_lt_prog_compiler_static_RC
19076 # Compiler flag to turn off builtin functions.
19077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19079 # Compiler flag to allow reflexive dlopens.
19080 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19082 # Compiler flag to generate shared objects directly from archives.
19083 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19085 # Compiler flag to generate thread-safe objects.
19086 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19088 # Library versioning type.
19089 version_type=$version_type
19091 # Format of library name prefix.
19092 libname_spec=$lt_libname_spec
19094 # List of archive names. First name is the real one, the rest are links.
19095 # The last name is the one that the linker finds with -lNAME.
19096 library_names_spec=$lt_library_names_spec
19098 # The coded name of the library, if different from the real name.
19099 soname_spec=$lt_soname_spec
19101 # Commands used to build and install an old-style archive.
19102 RANLIB=$lt_RANLIB
19103 old_archive_cmds=$lt_old_archive_cmds_RC
19104 old_postinstall_cmds=$lt_old_postinstall_cmds
19105 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19107 # Create an old-style archive from a shared archive.
19108 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19110 # Create a temporary old-style archive to link instead of a shared archive.
19111 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19113 # Commands used to build and install a shared archive.
19114 archive_cmds=$lt_archive_cmds_RC
19115 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19116 postinstall_cmds=$lt_postinstall_cmds
19117 postuninstall_cmds=$lt_postuninstall_cmds
19119 # Commands used to build a loadable module (assumed same as above if empty)
19120 module_cmds=$lt_module_cmds_RC
19121 module_expsym_cmds=$lt_module_expsym_cmds_RC
19123 # Commands to strip libraries.
19124 old_striplib=$lt_old_striplib
19125 striplib=$lt_striplib
19127 # Dependencies to place before the objects being linked to create a
19128 # shared library.
19129 predep_objects=$lt_predep_objects_RC
19131 # Dependencies to place after the objects being linked to create a
19132 # shared library.
19133 postdep_objects=$lt_postdep_objects_RC
19135 # Dependencies to place before the objects being linked to create a
19136 # shared library.
19137 predeps=$lt_predeps_RC
19139 # Dependencies to place after the objects being linked to create a
19140 # shared library.
19141 postdeps=$lt_postdeps_RC
19143 # The library search path used internally by the compiler when linking
19144 # a shared library.
19145 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19147 # Method to check whether dependent libraries are shared objects.
19148 deplibs_check_method=$lt_deplibs_check_method
19150 # Command to use when deplibs_check_method == file_magic.
19151 file_magic_cmd=$lt_file_magic_cmd
19153 # Flag that allows shared libraries with undefined symbols to be built.
19154 allow_undefined_flag=$lt_allow_undefined_flag_RC
19156 # Flag that forces no undefined symbols.
19157 no_undefined_flag=$lt_no_undefined_flag_RC
19159 # Commands used to finish a libtool library installation in a directory.
19160 finish_cmds=$lt_finish_cmds
19162 # Same as above, but a single script fragment to be evaled but not shown.
19163 finish_eval=$lt_finish_eval
19165 # Take the output of nm and produce a listing of raw symbols and C names.
19166 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19168 # Transform the output of nm in a proper C declaration
19169 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19171 # Transform the output of nm in a C name address pair
19172 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19174 # This is the shared library runtime path variable.
19175 runpath_var=$runpath_var
19177 # This is the shared library path variable.
19178 shlibpath_var=$shlibpath_var
19180 # Is shlibpath searched before the hard-coded library search path?
19181 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19183 # How to hardcode a shared library path into an executable.
19184 hardcode_action=$hardcode_action_RC
19186 # Whether we should hardcode library paths into libraries.
19187 hardcode_into_libs=$hardcode_into_libs
19189 # Flag to hardcode \$libdir into a binary during linking.
19190 # This must work even if \$libdir does not exist.
19191 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19193 # If ld is used when linking, flag to hardcode \$libdir into
19194 # a binary during linking. This must work even if \$libdir does
19195 # not exist.
19196 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19198 # Whether we need a single -rpath flag with a separated argument.
19199 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19201 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19202 # resulting binary.
19203 hardcode_direct=$hardcode_direct_RC
19205 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19206 # resulting binary.
19207 hardcode_minus_L=$hardcode_minus_L_RC
19209 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19210 # the resulting binary.
19211 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19213 # Set to yes if building a shared library automatically hardcodes DIR into the library
19214 # and all subsequent libraries and executables linked against it.
19215 hardcode_automatic=$hardcode_automatic_RC
19217 # Variables whose values should be saved in libtool wrapper scripts and
19218 # restored at relink time.
19219 variables_saved_for_relink="$variables_saved_for_relink"
19221 # Whether libtool must link a program against all its dependency libraries.
19222 link_all_deplibs=$link_all_deplibs_RC
19224 # Compile-time system search path for libraries
19225 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19227 # Run-time system search path for libraries
19228 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19230 # Fix the shell variable \$srcfile for the compiler.
19231 fix_srcfile_path="$fix_srcfile_path_RC"
19233 # Set to yes if exported symbols are required.
19234 always_export_symbols=$always_export_symbols_RC
19236 # The commands to list exported symbols.
19237 export_symbols_cmds=$lt_export_symbols_cmds_RC
19239 # The commands to extract the exported symbol list from a shared archive.
19240 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19242 # Symbols that should not be listed in the preloaded symbols.
19243 exclude_expsyms=$lt_exclude_expsyms_RC
19245 # Symbols that must always be exported.
19246 include_expsyms=$lt_include_expsyms_RC
19248 # ### END LIBTOOL TAG CONFIG: $tagname
19250 __EOF__
19253 else
19254 # If there is no Makefile yet, we rely on a make rule to execute
19255 # `config.status --recheck' to rerun these tests and create the
19256 # libtool script then.
19257 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19258 if test -f "$ltmain_in"; then
19259 test -f Makefile && make "$ltmain"
19260 fi
19261 fi
19264 ac_ext=c
19265 ac_cpp='$CPP $CPPFLAGS'
19266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19270 CC="$lt_save_CC"
19272 ;;
19274 *)
19275 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19276 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19277 { (exit 1); exit 1; }; }
19278 ;;
19279 esac
19281 # Append the new tag name to the list of available tags.
19282 if test -n "$tagname" ; then
19283 available_tags="$available_tags $tagname"
19284 fi
19285 fi
19286 done
19287 IFS="$lt_save_ifs"
19289 # Now substitute the updated list of available tags.
19290 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19291 mv "${ofile}T" "$ofile"
19292 chmod +x "$ofile"
19293 else
19294 rm -f "${ofile}T"
19295 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19296 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19297 { (exit 1); exit 1; }; }
19298 fi
19299 fi
19303 # This can be used to rebuild libtool when needed
19304 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19306 # Always use our own libtool.
19307 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19309 # Prevent multiple expansion
19331 if test "$GCC" = "yes"; then
19332 for flag in -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W; do
19333 oCFLAGS=$CFLAGS
19334 CFLAGS="$CFLAGS $flag"
19335 cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
19336 { echo "$as_me:$LINENO: checking if gcc likes the $flag flag" >&5
19337 echo $ECHO_N "checking if gcc likes the $flag flag... $ECHO_C" >&6; }
19338 if { as_var=$cachename; eval "test \"\${$as_var+set}\" = set"; }; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19341 cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h. */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19348 int
19349 main ()
19350 {
19351 return 0
19352 ;
19353 return 0;
19354 }
19355 _ACEOF
19356 rm -f conftest.$ac_objext
19357 if { (ac_try="$ac_compile"
19358 case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19361 esac
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_compile") 2>conftest.er1
19364 ac_status=$?
19365 grep -v '^ *+' conftest.er1 >conftest.err
19366 rm -f conftest.er1
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } && {
19370 test -z "$ac_c_werror_flag" ||
19371 test ! -s conftest.err
19372 } && test -s conftest.$ac_objext; then
19373 eval $cachename=yes
19374 else
19375 echo "$as_me: failed program was:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19378 eval $cachename=no
19379 fi
19381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19382 fi
19383 ac_res=`eval echo '${'$cachename'}'`
19384 { echo "$as_me:$LINENO: result: $ac_res" >&5
19385 echo "${ECHO_T}$ac_res" >&6; }
19386 if eval test \$$cachename = no; then
19387 CFLAGS=$oCFLAGS
19388 fi
19389 done
19390 fi
19397 case $TERM in
19398 # for the most important terminal types we directly know the sequences
19399 xterm|xterm*|vt220|vt220*)
19400 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
19401 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
19402 ;;
19403 vt100|vt100*|cygwin)
19404 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
19405 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
19406 ;;
19407 *)
19408 T_MD=''
19409 T_ME=''
19410 ;;
19411 esac
19412 { echo "$as_me:$LINENO: result: " >&5
19413 echo "${ECHO_T}" >&6; }
19414 { echo "$as_me:$LINENO: result: ${T_MD}Checking for Header Files${T_ME}" >&5
19415 echo "${ECHO_T}${T_MD}Checking for Header Files${T_ME}" >&6; }
19418 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19420 if test "${ac_cv_header_stdc+set}" = set; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19422 else
19423 cat >conftest.$ac_ext <<_ACEOF
19424 /* confdefs.h. */
19425 _ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h. */
19429 #include <stdlib.h>
19430 #include <stdarg.h>
19431 #include <string.h>
19432 #include <float.h>
19434 int
19435 main ()
19436 {
19438 ;
19439 return 0;
19440 }
19441 _ACEOF
19442 rm -f conftest.$ac_objext
19443 if { (ac_try="$ac_compile"
19444 case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19447 esac
19448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449 (eval "$ac_compile") 2>conftest.er1
19450 ac_status=$?
19451 grep -v '^ *+' conftest.er1 >conftest.err
19452 rm -f conftest.er1
19453 cat conftest.err >&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } && {
19456 test -z "$ac_c_werror_flag" ||
19457 test ! -s conftest.err
19458 } && test -s conftest.$ac_objext; then
19459 ac_cv_header_stdc=yes
19460 else
19461 echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19464 ac_cv_header_stdc=no
19465 fi
19467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19469 if test $ac_cv_header_stdc = yes; then
19470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19471 cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h. */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19477 #include <string.h>
19479 _ACEOF
19480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19481 $EGREP "memchr" >/dev/null 2>&1; then
19482 :
19483 else
19484 ac_cv_header_stdc=no
19485 fi
19486 rm -f conftest*
19488 fi
19490 if test $ac_cv_header_stdc = yes; then
19491 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19492 cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h. */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19498 #include <stdlib.h>
19500 _ACEOF
19501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19502 $EGREP "free" >/dev/null 2>&1; then
19503 :
19504 else
19505 ac_cv_header_stdc=no
19506 fi
19507 rm -f conftest*
19509 fi
19511 if test $ac_cv_header_stdc = yes; then
19512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19513 if test "$cross_compiling" = yes; then
19514 :
19515 else
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h. */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 #include <ctype.h>
19523 #include <stdlib.h>
19524 #if ((' ' & 0x0FF) == 0x020)
19525 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19526 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19527 #else
19528 # define ISLOWER(c) \
19529 (('a' <= (c) && (c) <= 'i') \
19530 || ('j' <= (c) && (c) <= 'r') \
19531 || ('s' <= (c) && (c) <= 'z'))
19532 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19533 #endif
19535 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19536 int
19537 main ()
19538 {
19539 int i;
19540 for (i = 0; i < 256; i++)
19541 if (XOR (islower (i), ISLOWER (i))
19542 || toupper (i) != TOUPPER (i))
19543 return 2;
19544 return 0;
19545 }
19546 _ACEOF
19547 rm -f conftest$ac_exeext
19548 if { (ac_try="$ac_link"
19549 case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_link") 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19558 { (case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19561 esac
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_try") 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; }; then
19567 :
19568 else
19569 echo "$as_me: program exited with status $ac_status" >&5
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 ( exit $ac_status )
19574 ac_cv_header_stdc=no
19575 fi
19576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19577 fi
19580 fi
19581 fi
19582 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19583 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19584 if test $ac_cv_header_stdc = yes; then
19586 cat >>confdefs.h <<\_ACEOF
19587 #define STDC_HEADERS 1
19588 _ACEOF
19590 fi
19597 ac_header_dirent=no
19598 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19599 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19600 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19601 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605 cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h. */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611 #include <sys/types.h>
19612 #include <$ac_hdr>
19614 int
19615 main ()
19616 {
19617 if ((DIR *) 0)
19618 return 0;
19619 ;
19620 return 0;
19621 }
19622 _ACEOF
19623 rm -f conftest.$ac_objext
19624 if { (ac_try="$ac_compile"
19625 case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19628 esac
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_compile") 2>conftest.er1
19631 ac_status=$?
19632 grep -v '^ *+' conftest.er1 >conftest.err
19633 rm -f conftest.er1
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } && {
19637 test -z "$ac_c_werror_flag" ||
19638 test ! -s conftest.err
19639 } && test -s conftest.$ac_objext; then
19640 eval "$as_ac_Header=yes"
19641 else
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19645 eval "$as_ac_Header=no"
19646 fi
19648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649 fi
19650 ac_res=`eval echo '${'$as_ac_Header'}'`
19651 { echo "$as_me:$LINENO: result: $ac_res" >&5
19652 echo "${ECHO_T}$ac_res" >&6; }
19653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19654 cat >>confdefs.h <<_ACEOF
19655 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19656 _ACEOF
19658 ac_header_dirent=$ac_hdr; break
19659 fi
19661 done
19662 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19663 if test $ac_header_dirent = dirent.h; then
19664 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19665 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19666 if test "${ac_cv_search_opendir+set}" = set; then
19667 echo $ECHO_N "(cached) $ECHO_C" >&6
19668 else
19669 ac_func_search_save_LIBS=$LIBS
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h. */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19677 /* Override any GCC internal prototype to avoid an error.
19678 Use char because int might match the return type of a GCC
19679 builtin and then its argument prototype would still apply. */
19680 #ifdef __cplusplus
19681 extern "C"
19682 #endif
19683 char opendir ();
19684 int
19685 main ()
19686 {
19687 return opendir ();
19688 ;
19689 return 0;
19690 }
19691 _ACEOF
19692 for ac_lib in '' dir; do
19693 if test -z "$ac_lib"; then
19694 ac_res="none required"
19695 else
19696 ac_res=-l$ac_lib
19697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19698 fi
19699 rm -f conftest.$ac_objext conftest$ac_exeext
19700 if { (ac_try="$ac_link"
19701 case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19704 esac
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_link") 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } && {
19713 test -z "$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 } && test -s conftest$ac_exeext &&
19716 $as_test_x conftest$ac_exeext; then
19717 ac_cv_search_opendir=$ac_res
19718 else
19719 echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19723 fi
19725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19726 conftest$ac_exeext
19727 if test "${ac_cv_search_opendir+set}" = set; then
19728 break
19729 fi
19730 done
19731 if test "${ac_cv_search_opendir+set}" = set; then
19732 :
19733 else
19734 ac_cv_search_opendir=no
19735 fi
19736 rm conftest.$ac_ext
19737 LIBS=$ac_func_search_save_LIBS
19738 fi
19739 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19740 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19741 ac_res=$ac_cv_search_opendir
19742 if test "$ac_res" != no; then
19743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19745 fi
19747 else
19748 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19749 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19750 if test "${ac_cv_search_opendir+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753 ac_func_search_save_LIBS=$LIBS
19754 cat >conftest.$ac_ext <<_ACEOF
19755 /* confdefs.h. */
19756 _ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19761 /* Override any GCC internal prototype to avoid an error.
19762 Use char because int might match the return type of a GCC
19763 builtin and then its argument prototype would still apply. */
19764 #ifdef __cplusplus
19765 extern "C"
19766 #endif
19767 char opendir ();
19768 int
19769 main ()
19770 {
19771 return opendir ();
19772 ;
19773 return 0;
19774 }
19775 _ACEOF
19776 for ac_lib in '' x; do
19777 if test -z "$ac_lib"; then
19778 ac_res="none required"
19779 else
19780 ac_res=-l$ac_lib
19781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19782 fi
19783 rm -f conftest.$ac_objext conftest$ac_exeext
19784 if { (ac_try="$ac_link"
19785 case "(($ac_try" in
19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19788 esac
19789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790 (eval "$ac_link") 2>conftest.er1
19791 ac_status=$?
19792 grep -v '^ *+' conftest.er1 >conftest.err
19793 rm -f conftest.er1
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } && {
19797 test -z "$ac_c_werror_flag" ||
19798 test ! -s conftest.err
19799 } && test -s conftest$ac_exeext &&
19800 $as_test_x conftest$ac_exeext; then
19801 ac_cv_search_opendir=$ac_res
19802 else
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19807 fi
19809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19810 conftest$ac_exeext
19811 if test "${ac_cv_search_opendir+set}" = set; then
19812 break
19813 fi
19814 done
19815 if test "${ac_cv_search_opendir+set}" = set; then
19816 :
19817 else
19818 ac_cv_search_opendir=no
19819 fi
19820 rm conftest.$ac_ext
19821 LIBS=$ac_func_search_save_LIBS
19822 fi
19823 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19824 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19825 ac_res=$ac_cv_search_opendir
19826 if test "$ac_res" != no; then
19827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19829 fi
19831 fi
19848 for ac_header in features.h sys/stat.h sys/types.h fcntl.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h float.h strings.h
19849 do
19850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19856 fi
19857 ac_res=`eval echo '${'$as_ac_Header'}'`
19858 { echo "$as_me:$LINENO: result: $ac_res" >&5
19859 echo "${ECHO_T}$ac_res" >&6; }
19860 else
19861 # Is the header compilable?
19862 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19864 cat >conftest.$ac_ext <<_ACEOF
19865 /* confdefs.h. */
19866 _ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870 $ac_includes_default
19871 #include <$ac_header>
19872 _ACEOF
19873 rm -f conftest.$ac_objext
19874 if { (ac_try="$ac_compile"
19875 case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19878 esac
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_compile") 2>conftest.er1
19881 ac_status=$?
19882 grep -v '^ *+' conftest.er1 >conftest.err
19883 rm -f conftest.er1
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } && {
19887 test -z "$ac_c_werror_flag" ||
19888 test ! -s conftest.err
19889 } && test -s conftest.$ac_objext; then
19890 ac_header_compiler=yes
19891 else
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 ac_header_compiler=no
19896 fi
19898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19900 echo "${ECHO_T}$ac_header_compiler" >&6; }
19902 # Is the header present?
19903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19905 cat >conftest.$ac_ext <<_ACEOF
19906 /* confdefs.h. */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19911 #include <$ac_header>
19912 _ACEOF
19913 if { (ac_try="$ac_cpp conftest.$ac_ext"
19914 case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19917 esac
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19920 ac_status=$?
19921 grep -v '^ *+' conftest.er1 >conftest.err
19922 rm -f conftest.er1
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } >/dev/null && {
19926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19927 test ! -s conftest.err
19928 }; then
19929 ac_header_preproc=yes
19930 else
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19934 ac_header_preproc=no
19935 fi
19937 rm -f conftest.err conftest.$ac_ext
19938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19939 echo "${ECHO_T}$ac_header_preproc" >&6; }
19941 # So? What about this header?
19942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19943 yes:no: )
19944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19948 ac_header_preproc=yes
19949 ;;
19950 no:yes:* )
19951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19964 ;;
19965 esac
19966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 else
19971 eval "$as_ac_Header=\$ac_header_preproc"
19972 fi
19973 ac_res=`eval echo '${'$as_ac_Header'}'`
19974 { echo "$as_me:$LINENO: result: $ac_res" >&5
19975 echo "${ECHO_T}$ac_res" >&6; }
19977 fi
19978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19979 cat >>confdefs.h <<_ACEOF
19980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19981 _ACEOF
19983 fi
19985 done
19988 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19989 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19990 if test "${ac_cv_c_const+set}" = set; then
19991 echo $ECHO_N "(cached) $ECHO_C" >&6
19992 else
19993 cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h. */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h. */
20000 int
20001 main ()
20002 {
20003 /* FIXME: Include the comments suggested by Paul. */
20004 #ifndef __cplusplus
20005 /* Ultrix mips cc rejects this. */
20006 typedef int charset[2];
20007 const charset cs;
20008 /* SunOS 4.1.1 cc rejects this. */
20009 char const *const *pcpcc;
20010 char **ppc;
20011 /* NEC SVR4.0.2 mips cc rejects this. */
20012 struct point {int x, y;};
20013 static struct point const zero = {0,0};
20014 /* AIX XL C 1.02.0.0 rejects this.
20015 It does not let you subtract one const X* pointer from another in
20016 an arm of an if-expression whose if-part is not a constant
20017 expression */
20018 const char *g = "string";
20019 pcpcc = &g + (g ? g-g : 0);
20020 /* HPUX 7.0 cc rejects these. */
20021 ++pcpcc;
20022 ppc = (char**) pcpcc;
20023 pcpcc = (char const *const *) ppc;
20024 { /* SCO 3.2v4 cc rejects this. */
20025 char *t;
20026 char const *s = 0 ? (char *) 0 : (char const *) 0;
20028 *t++ = 0;
20029 if (s) return 0;
20030 }
20031 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20032 int x[] = {25, 17};
20033 const int *foo = &x[0];
20034 ++foo;
20035 }
20036 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20037 typedef const int *iptr;
20038 iptr p = 0;
20039 ++p;
20040 }
20041 { /* AIX XL C 1.02.0.0 rejects this saying
20042 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20043 struct s { int j; const int *ap[3]; };
20044 struct s *b; b->j = 5;
20045 }
20046 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20047 const int foo = 10;
20048 if (!foo) return 0;
20049 }
20050 return !cs[0] && !zero.x;
20051 #endif
20053 ;
20054 return 0;
20055 }
20056 _ACEOF
20057 rm -f conftest.$ac_objext
20058 if { (ac_try="$ac_compile"
20059 case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20062 esac
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_compile") 2>conftest.er1
20065 ac_status=$?
20066 grep -v '^ *+' conftest.er1 >conftest.err
20067 rm -f conftest.er1
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } && {
20071 test -z "$ac_c_werror_flag" ||
20072 test ! -s conftest.err
20073 } && test -s conftest.$ac_objext; then
20074 ac_cv_c_const=yes
20075 else
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 ac_cv_c_const=no
20080 fi
20082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20083 fi
20084 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20085 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20086 if test $ac_cv_c_const = no; then
20088 cat >>confdefs.h <<\_ACEOF
20089 #define const
20090 _ACEOF
20092 fi
20094 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20095 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20096 if test "${ac_cv_header_time+set}" = set; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 else
20099 cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h. */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20105 #include <sys/types.h>
20106 #include <sys/time.h>
20107 #include <time.h>
20109 int
20110 main ()
20111 {
20112 if ((struct tm *) 0)
20113 return 0;
20114 ;
20115 return 0;
20116 }
20117 _ACEOF
20118 rm -f conftest.$ac_objext
20119 if { (ac_try="$ac_compile"
20120 case "(($ac_try" in
20121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20122 *) ac_try_echo=$ac_try;;
20123 esac
20124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20125 (eval "$ac_compile") 2>conftest.er1
20126 ac_status=$?
20127 grep -v '^ *+' conftest.er1 >conftest.err
20128 rm -f conftest.er1
20129 cat conftest.err >&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } && {
20132 test -z "$ac_c_werror_flag" ||
20133 test ! -s conftest.err
20134 } && test -s conftest.$ac_objext; then
20135 ac_cv_header_time=yes
20136 else
20137 echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20140 ac_cv_header_time=no
20141 fi
20143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20144 fi
20145 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20146 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20147 if test $ac_cv_header_time = yes; then
20149 cat >>confdefs.h <<\_ACEOF
20150 #define TIME_WITH_SYS_TIME 1
20151 _ACEOF
20153 fi
20155 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20156 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20157 if test "${ac_cv_struct_tm+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20159 else
20160 cat >conftest.$ac_ext <<_ACEOF
20161 /* confdefs.h. */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 #include <sys/types.h>
20167 #include <time.h>
20169 int
20170 main ()
20171 {
20172 struct tm tm;
20173 int *p = &tm.tm_sec;
20174 return !p;
20175 ;
20176 return 0;
20177 }
20178 _ACEOF
20179 rm -f conftest.$ac_objext
20180 if { (ac_try="$ac_compile"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20184 esac
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_compile") 2>conftest.er1
20187 ac_status=$?
20188 grep -v '^ *+' conftest.er1 >conftest.err
20189 rm -f conftest.er1
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } && {
20193 test -z "$ac_c_werror_flag" ||
20194 test ! -s conftest.err
20195 } && test -s conftest.$ac_objext; then
20196 ac_cv_struct_tm=time.h
20197 else
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20201 ac_cv_struct_tm=sys/time.h
20202 fi
20204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20205 fi
20206 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20207 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20208 if test $ac_cv_struct_tm = sys/time.h; then
20210 cat >>confdefs.h <<\_ACEOF
20211 #define TM_IN_SYS_TIME 1
20212 _ACEOF
20214 fi
20217 { echo "$as_me:$LINENO: checking for acos" >&5
20218 echo $ECHO_N "checking for acos... $ECHO_C" >&6; }
20219 if test "${ac_cv_func_acos+set}" = set; then
20220 echo $ECHO_N "(cached) $ECHO_C" >&6
20221 else
20222 cat >conftest.$ac_ext <<_ACEOF
20223 /* confdefs.h. */
20224 _ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20228 /* Define acos to an innocuous variant, in case <limits.h> declares acos.
20229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20230 #define acos innocuous_acos
20232 /* System header to define __stub macros and hopefully few prototypes,
20233 which can conflict with char acos (); below.
20234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20235 <limits.h> exists even on freestanding compilers. */
20237 #ifdef __STDC__
20238 # include <limits.h>
20239 #else
20240 # include <assert.h>
20241 #endif
20243 #undef acos
20245 /* Override any GCC internal prototype to avoid an error.
20246 Use char because int might match the return type of a GCC
20247 builtin and then its argument prototype would still apply. */
20248 #ifdef __cplusplus
20249 extern "C"
20250 #endif
20251 char acos ();
20252 /* The GNU C library defines this for functions which it implements
20253 to always fail with ENOSYS. Some functions are actually named
20254 something starting with __ and the normal name is an alias. */
20255 #if defined __stub_acos || defined __stub___acos
20256 choke me
20257 #endif
20259 int
20260 main ()
20261 {
20262 return acos ();
20263 ;
20264 return 0;
20265 }
20266 _ACEOF
20267 rm -f conftest.$ac_objext conftest$ac_exeext
20268 if { (ac_try="$ac_link"
20269 case "(($ac_try" in
20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20272 esac
20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274 (eval "$ac_link") 2>conftest.er1
20275 ac_status=$?
20276 grep -v '^ *+' conftest.er1 >conftest.err
20277 rm -f conftest.er1
20278 cat conftest.err >&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } && {
20281 test -z "$ac_c_werror_flag" ||
20282 test ! -s conftest.err
20283 } && test -s conftest$ac_exeext &&
20284 $as_test_x conftest$ac_exeext; then
20285 ac_cv_func_acos=yes
20286 else
20287 echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20290 ac_cv_func_acos=no
20291 fi
20293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20294 conftest$ac_exeext conftest.$ac_ext
20295 fi
20296 { echo "$as_me:$LINENO: result: $ac_cv_func_acos" >&5
20297 echo "${ECHO_T}$ac_cv_func_acos" >&6; }
20298 if test $ac_cv_func_acos = yes; then
20299 :
20300 else
20302 { echo "$as_me:$LINENO: checking for acos in -lm" >&5
20303 echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6; }
20304 if test "${ac_cv_lib_m_acos+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20306 else
20307 ac_check_lib_save_LIBS=$LIBS
20308 LIBS="-lm $LIBS"
20309 cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h. */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20316 /* Override any GCC internal prototype to avoid an error.
20317 Use char because int might match the return type of a GCC
20318 builtin and then its argument prototype would still apply. */
20319 #ifdef __cplusplus
20320 extern "C"
20321 #endif
20322 char acos ();
20323 int
20324 main ()
20325 {
20326 return acos ();
20327 ;
20328 return 0;
20329 }
20330 _ACEOF
20331 rm -f conftest.$ac_objext conftest$ac_exeext
20332 if { (ac_try="$ac_link"
20333 case "(($ac_try" in
20334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335 *) ac_try_echo=$ac_try;;
20336 esac
20337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338 (eval "$ac_link") 2>conftest.er1
20339 ac_status=$?
20340 grep -v '^ *+' conftest.er1 >conftest.err
20341 rm -f conftest.er1
20342 cat conftest.err >&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } && {
20345 test -z "$ac_c_werror_flag" ||
20346 test ! -s conftest.err
20347 } && test -s conftest$ac_exeext &&
20348 $as_test_x conftest$ac_exeext; then
20349 ac_cv_lib_m_acos=yes
20350 else
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20354 ac_cv_lib_m_acos=no
20355 fi
20357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20358 conftest$ac_exeext conftest.$ac_ext
20359 LIBS=$ac_check_lib_save_LIBS
20360 fi
20361 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5
20362 echo "${ECHO_T}$ac_cv_lib_m_acos" >&6; }
20363 if test $ac_cv_lib_m_acos = yes; then
20364 cat >>confdefs.h <<_ACEOF
20365 #define HAVE_LIBM 1
20366 _ACEOF
20368 LIBS="-lm $LIBS"
20370 fi
20372 fi
20375 eval `./libtool --config | grep pic_flag`
20376 CFLAGS="$CFLAGS $pic_flag"
20379 case $TERM in
20380 # for the most important terminal types we directly know the sequences
20381 xterm|xterm*|vt220|vt220*)
20382 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
20383 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
20384 ;;
20385 vt100|vt100*|cygwin)
20386 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
20387 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
20388 ;;
20389 *)
20390 T_MD=''
20391 T_ME=''
20392 ;;
20393 esac
20394 { echo "$as_me:$LINENO: result: " >&5
20395 echo "${ECHO_T}" >&6; }
20396 { echo "$as_me:$LINENO: result: ${T_MD}Test Library Functions${T_ME}" >&5
20397 echo "${ECHO_T}${T_MD}Test Library Functions${T_ME}" >&6; }
20401 for ac_func in strftime
20402 do
20403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409 cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h. */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20417 #define $ac_func innocuous_$ac_func
20419 /* System header to define __stub macros and hopefully few prototypes,
20420 which can conflict with char $ac_func (); below.
20421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20422 <limits.h> exists even on freestanding compilers. */
20424 #ifdef __STDC__
20425 # include <limits.h>
20426 #else
20427 # include <assert.h>
20428 #endif
20430 #undef $ac_func
20432 /* Override any GCC internal prototype to avoid an error.
20433 Use char because int might match the return type of a GCC
20434 builtin and then its argument prototype would still apply. */
20435 #ifdef __cplusplus
20436 extern "C"
20437 #endif
20438 char $ac_func ();
20439 /* The GNU C library defines this for functions which it implements
20440 to always fail with ENOSYS. Some functions are actually named
20441 something starting with __ and the normal name is an alias. */
20442 #if defined __stub_$ac_func || defined __stub___$ac_func
20443 choke me
20444 #endif
20446 int
20447 main ()
20448 {
20449 return $ac_func ();
20450 ;
20451 return 0;
20452 }
20453 _ACEOF
20454 rm -f conftest.$ac_objext conftest$ac_exeext
20455 if { (ac_try="$ac_link"
20456 case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20459 esac
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_link") 2>conftest.er1
20462 ac_status=$?
20463 grep -v '^ *+' conftest.er1 >conftest.err
20464 rm -f conftest.er1
20465 cat conftest.err >&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } && {
20468 test -z "$ac_c_werror_flag" ||
20469 test ! -s conftest.err
20470 } && test -s conftest$ac_exeext &&
20471 $as_test_x conftest$ac_exeext; then
20472 eval "$as_ac_var=yes"
20473 else
20474 echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20477 eval "$as_ac_var=no"
20478 fi
20480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20481 conftest$ac_exeext conftest.$ac_ext
20482 fi
20483 ac_res=`eval echo '${'$as_ac_var'}'`
20484 { echo "$as_me:$LINENO: result: $ac_res" >&5
20485 echo "${ECHO_T}$ac_res" >&6; }
20486 if test `eval echo '${'$as_ac_var'}'` = yes; then
20487 cat >>confdefs.h <<_ACEOF
20488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20489 _ACEOF
20491 else
20492 # strftime is in -lintl on SCO UNIX.
20493 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20494 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
20495 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20497 else
20498 ac_check_lib_save_LIBS=$LIBS
20499 LIBS="-lintl $LIBS"
20500 cat >conftest.$ac_ext <<_ACEOF
20501 /* confdefs.h. */
20502 _ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20507 /* Override any GCC internal prototype to avoid an error.
20508 Use char because int might match the return type of a GCC
20509 builtin and then its argument prototype would still apply. */
20510 #ifdef __cplusplus
20511 extern "C"
20512 #endif
20513 char strftime ();
20514 int
20515 main ()
20516 {
20517 return strftime ();
20518 ;
20519 return 0;
20520 }
20521 _ACEOF
20522 rm -f conftest.$ac_objext conftest$ac_exeext
20523 if { (ac_try="$ac_link"
20524 case "(($ac_try" in
20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526 *) ac_try_echo=$ac_try;;
20527 esac
20528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529 (eval "$ac_link") 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } && {
20536 test -z "$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20538 } && test -s conftest$ac_exeext &&
20539 $as_test_x conftest$ac_exeext; then
20540 ac_cv_lib_intl_strftime=yes
20541 else
20542 echo "$as_me: failed program was:" >&5
20543 sed 's/^/| /' conftest.$ac_ext >&5
20545 ac_cv_lib_intl_strftime=no
20546 fi
20548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20549 conftest$ac_exeext conftest.$ac_ext
20550 LIBS=$ac_check_lib_save_LIBS
20551 fi
20552 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20553 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
20554 if test $ac_cv_lib_intl_strftime = yes; then
20555 cat >>confdefs.h <<\_ACEOF
20556 #define HAVE_STRFTIME 1
20557 _ACEOF
20559 LIBS="-lintl $LIBS"
20560 fi
20562 fi
20563 done
20566 for ac_func in vprintf
20567 do
20568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20573 else
20574 cat >conftest.$ac_ext <<_ACEOF
20575 /* confdefs.h. */
20576 _ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h. */
20580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20582 #define $ac_func innocuous_$ac_func
20584 /* System header to define __stub macros and hopefully few prototypes,
20585 which can conflict with char $ac_func (); below.
20586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20587 <limits.h> exists even on freestanding compilers. */
20589 #ifdef __STDC__
20590 # include <limits.h>
20591 #else
20592 # include <assert.h>
20593 #endif
20595 #undef $ac_func
20597 /* Override any GCC internal prototype to avoid an error.
20598 Use char because int might match the return type of a GCC
20599 builtin and then its argument prototype would still apply. */
20600 #ifdef __cplusplus
20601 extern "C"
20602 #endif
20603 char $ac_func ();
20604 /* The GNU C library defines this for functions which it implements
20605 to always fail with ENOSYS. Some functions are actually named
20606 something starting with __ and the normal name is an alias. */
20607 #if defined __stub_$ac_func || defined __stub___$ac_func
20608 choke me
20609 #endif
20611 int
20612 main ()
20613 {
20614 return $ac_func ();
20615 ;
20616 return 0;
20617 }
20618 _ACEOF
20619 rm -f conftest.$ac_objext conftest$ac_exeext
20620 if { (ac_try="$ac_link"
20621 case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_link") 2>conftest.er1
20627 ac_status=$?
20628 grep -v '^ *+' conftest.er1 >conftest.err
20629 rm -f conftest.er1
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } && {
20633 test -z "$ac_c_werror_flag" ||
20634 test ! -s conftest.err
20635 } && test -s conftest$ac_exeext &&
20636 $as_test_x conftest$ac_exeext; then
20637 eval "$as_ac_var=yes"
20638 else
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20642 eval "$as_ac_var=no"
20643 fi
20645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20646 conftest$ac_exeext conftest.$ac_ext
20647 fi
20648 ac_res=`eval echo '${'$as_ac_var'}'`
20649 { echo "$as_me:$LINENO: result: $ac_res" >&5
20650 echo "${ECHO_T}$ac_res" >&6; }
20651 if test `eval echo '${'$as_ac_var'}'` = yes; then
20652 cat >>confdefs.h <<_ACEOF
20653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20654 _ACEOF
20656 { echo "$as_me:$LINENO: checking for _doprnt" >&5
20657 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
20658 if test "${ac_cv_func__doprnt+set}" = set; then
20659 echo $ECHO_N "(cached) $ECHO_C" >&6
20660 else
20661 cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h. */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20667 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
20668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20669 #define _doprnt innocuous__doprnt
20671 /* System header to define __stub macros and hopefully few prototypes,
20672 which can conflict with char _doprnt (); below.
20673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20674 <limits.h> exists even on freestanding compilers. */
20676 #ifdef __STDC__
20677 # include <limits.h>
20678 #else
20679 # include <assert.h>
20680 #endif
20682 #undef _doprnt
20684 /* Override any GCC internal prototype to avoid an error.
20685 Use char because int might match the return type of a GCC
20686 builtin and then its argument prototype would still apply. */
20687 #ifdef __cplusplus
20688 extern "C"
20689 #endif
20690 char _doprnt ();
20691 /* The GNU C library defines this for functions which it implements
20692 to always fail with ENOSYS. Some functions are actually named
20693 something starting with __ and the normal name is an alias. */
20694 #if defined __stub__doprnt || defined __stub____doprnt
20695 choke me
20696 #endif
20698 int
20699 main ()
20700 {
20701 return _doprnt ();
20702 ;
20703 return 0;
20704 }
20705 _ACEOF
20706 rm -f conftest.$ac_objext conftest$ac_exeext
20707 if { (ac_try="$ac_link"
20708 case "(($ac_try" in
20709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710 *) ac_try_echo=$ac_try;;
20711 esac
20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713 (eval "$ac_link") 2>conftest.er1
20714 ac_status=$?
20715 grep -v '^ *+' conftest.er1 >conftest.err
20716 rm -f conftest.er1
20717 cat conftest.err >&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } && {
20720 test -z "$ac_c_werror_flag" ||
20721 test ! -s conftest.err
20722 } && test -s conftest$ac_exeext &&
20723 $as_test_x conftest$ac_exeext; then
20724 ac_cv_func__doprnt=yes
20725 else
20726 echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20729 ac_cv_func__doprnt=no
20730 fi
20732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20733 conftest$ac_exeext conftest.$ac_ext
20734 fi
20735 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
20736 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
20737 if test $ac_cv_func__doprnt = yes; then
20739 cat >>confdefs.h <<\_ACEOF
20740 #define HAVE_DOPRNT 1
20741 _ACEOF
20743 fi
20745 fi
20746 done
20750 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20751 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20752 if test "${ac_cv_c_bigendian+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20754 else
20755 # See if sys/param.h defines the BYTE_ORDER macro.
20756 cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h. */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20762 #include <sys/types.h>
20763 #include <sys/param.h>
20765 int
20766 main ()
20767 {
20768 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20769 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20770 bogus endian macros
20771 #endif
20773 ;
20774 return 0;
20775 }
20776 _ACEOF
20777 rm -f conftest.$ac_objext
20778 if { (ac_try="$ac_compile"
20779 case "(($ac_try" in
20780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781 *) ac_try_echo=$ac_try;;
20782 esac
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784 (eval "$ac_compile") 2>conftest.er1
20785 ac_status=$?
20786 grep -v '^ *+' conftest.er1 >conftest.err
20787 rm -f conftest.er1
20788 cat conftest.err >&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } && {
20791 test -z "$ac_c_werror_flag" ||
20792 test ! -s conftest.err
20793 } && test -s conftest.$ac_objext; then
20794 # It does; now see whether it defined to BIG_ENDIAN or not.
20795 cat >conftest.$ac_ext <<_ACEOF
20796 /* confdefs.h. */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20801 #include <sys/types.h>
20802 #include <sys/param.h>
20804 int
20805 main ()
20806 {
20807 #if BYTE_ORDER != BIG_ENDIAN
20808 not big endian
20809 #endif
20811 ;
20812 return 0;
20813 }
20814 _ACEOF
20815 rm -f conftest.$ac_objext
20816 if { (ac_try="$ac_compile"
20817 case "(($ac_try" in
20818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819 *) ac_try_echo=$ac_try;;
20820 esac
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822 (eval "$ac_compile") 2>conftest.er1
20823 ac_status=$?
20824 grep -v '^ *+' conftest.er1 >conftest.err
20825 rm -f conftest.er1
20826 cat conftest.err >&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); } && {
20829 test -z "$ac_c_werror_flag" ||
20830 test ! -s conftest.err
20831 } && test -s conftest.$ac_objext; then
20832 ac_cv_c_bigendian=yes
20833 else
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20837 ac_cv_c_bigendian=no
20838 fi
20840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20841 else
20842 echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20845 # It does not; compile a test program.
20846 if test "$cross_compiling" = yes; then
20847 # try to guess the endianness by grepping values into an object file
20848 ac_cv_c_bigendian=unknown
20849 cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h. */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20856 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20857 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20858 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20859 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20860 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20861 int
20862 main ()
20863 {
20864 _ascii (); _ebcdic ();
20865 ;
20866 return 0;
20867 }
20868 _ACEOF
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20874 esac
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_compile") 2>conftest.er1
20877 ac_status=$?
20878 grep -v '^ *+' conftest.er1 >conftest.err
20879 rm -f conftest.er1
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } && {
20883 test -z "$ac_c_werror_flag" ||
20884 test ! -s conftest.err
20885 } && test -s conftest.$ac_objext; then
20886 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20887 ac_cv_c_bigendian=yes
20888 fi
20889 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20890 if test "$ac_cv_c_bigendian" = unknown; then
20891 ac_cv_c_bigendian=no
20892 else
20893 # finding both strings is unlikely to happen, but who knows?
20894 ac_cv_c_bigendian=unknown
20895 fi
20896 fi
20897 else
20898 echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20902 fi
20904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20905 else
20906 cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h. */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 $ac_includes_default
20913 int
20914 main ()
20915 {
20917 /* Are we little or big endian? From Harbison&Steele. */
20918 union
20919 {
20920 long int l;
20921 char c[sizeof (long int)];
20922 } u;
20923 u.l = 1;
20924 return u.c[sizeof (long int) - 1] == 1;
20926 ;
20927 return 0;
20928 }
20929 _ACEOF
20930 rm -f conftest$ac_exeext
20931 if { (ac_try="$ac_link"
20932 case "(($ac_try" in
20933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934 *) ac_try_echo=$ac_try;;
20935 esac
20936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20937 (eval "$ac_link") 2>&5
20938 ac_status=$?
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20941 { (case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20944 esac
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_try") 2>&5
20947 ac_status=$?
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; }; then
20950 ac_cv_c_bigendian=no
20951 else
20952 echo "$as_me: program exited with status $ac_status" >&5
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 ( exit $ac_status )
20957 ac_cv_c_bigendian=yes
20958 fi
20959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20960 fi
20963 fi
20965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20966 fi
20967 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20968 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
20969 case $ac_cv_c_bigendian in
20970 yes)
20972 cat >>confdefs.h <<\_ACEOF
20973 #define WORDS_BIGENDIAN 1
20974 _ACEOF
20975 ;;
20976 no)
20977 ;;
20978 *)
20979 { { echo "$as_me:$LINENO: error: unknown endianness
20980 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20981 echo "$as_me: error: unknown endianness
20982 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20983 { (exit 1); exit 1; }; } ;;
20984 esac
21011 for ac_func in tzset mbstowcs opendir readdir chdir chroot getuid setlocale strerror strerror_r snprintf vsnprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday posix_fadvise madvise
21012 do
21013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21017 echo $ECHO_N "(cached) $ECHO_C" >&6
21018 else
21019 cat >conftest.$ac_ext <<_ACEOF
21020 /* confdefs.h. */
21021 _ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21027 #define $ac_func innocuous_$ac_func
21029 /* System header to define __stub macros and hopefully few prototypes,
21030 which can conflict with char $ac_func (); below.
21031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21032 <limits.h> exists even on freestanding compilers. */
21034 #ifdef __STDC__
21035 # include <limits.h>
21036 #else
21037 # include <assert.h>
21038 #endif
21040 #undef $ac_func
21042 /* Override any GCC internal prototype to avoid an error.
21043 Use char because int might match the return type of a GCC
21044 builtin and then its argument prototype would still apply. */
21045 #ifdef __cplusplus
21046 extern "C"
21047 #endif
21048 char $ac_func ();
21049 /* The GNU C library defines this for functions which it implements
21050 to always fail with ENOSYS. Some functions are actually named
21051 something starting with __ and the normal name is an alias. */
21052 #if defined __stub_$ac_func || defined __stub___$ac_func
21053 choke me
21054 #endif
21056 int
21057 main ()
21058 {
21059 return $ac_func ();
21060 ;
21061 return 0;
21062 }
21063 _ACEOF
21064 rm -f conftest.$ac_objext conftest$ac_exeext
21065 if { (ac_try="$ac_link"
21066 case "(($ac_try" in
21067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068 *) ac_try_echo=$ac_try;;
21069 esac
21070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071 (eval "$ac_link") 2>conftest.er1
21072 ac_status=$?
21073 grep -v '^ *+' conftest.er1 >conftest.err
21074 rm -f conftest.er1
21075 cat conftest.err >&5
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); } && {
21078 test -z "$ac_c_werror_flag" ||
21079 test ! -s conftest.err
21080 } && test -s conftest$ac_exeext &&
21081 $as_test_x conftest$ac_exeext; then
21082 eval "$as_ac_var=yes"
21083 else
21084 echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21087 eval "$as_ac_var=no"
21088 fi
21090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21091 conftest$ac_exeext conftest.$ac_ext
21092 fi
21093 ac_res=`eval echo '${'$as_ac_var'}'`
21094 { echo "$as_me:$LINENO: result: $ac_res" >&5
21095 echo "${ECHO_T}$ac_res" >&6; }
21096 if test `eval echo '${'$as_ac_var'}'` = yes; then
21097 cat >>confdefs.h <<_ACEOF
21098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21099 _ACEOF
21101 fi
21102 done
21105 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
21106 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
21107 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 else
21110 cat >conftest.$ac_ext <<_ACEOF
21111 /* confdefs.h. */
21112 _ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21116 #include <unistd.h>
21118 int
21119 main ()
21120 {
21121 #ifndef fdatasync
21122 (void) fdatasync;
21123 #endif
21125 ;
21126 return 0;
21127 }
21128 _ACEOF
21129 rm -f conftest.$ac_objext
21130 if { (ac_try="$ac_compile"
21131 case "(($ac_try" in
21132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21133 *) ac_try_echo=$ac_try;;
21134 esac
21135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21136 (eval "$ac_compile") 2>conftest.er1
21137 ac_status=$?
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } && {
21143 test -z "$ac_c_werror_flag" ||
21144 test ! -s conftest.err
21145 } && test -s conftest.$ac_objext; then
21146 ac_cv_have_decl_fdatasync=yes
21147 else
21148 echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21151 ac_cv_have_decl_fdatasync=no
21152 fi
21154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21155 fi
21156 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
21157 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
21158 if test $ac_cv_have_decl_fdatasync = yes; then
21160 cat >>confdefs.h <<_ACEOF
21161 #define HAVE_DECL_FDATASYNC 1
21162 _ACEOF
21165 else
21166 cat >>confdefs.h <<_ACEOF
21167 #define HAVE_DECL_FDATASYNC 0
21168 _ACEOF
21171 fi
21175 if test "x$enable_mmap" = "xyes"; then
21176 case "$host" in
21177 *cygwin*)
21178 # the normal mmap test does not work in cygwin
21180 for ac_func in mmap
21181 do
21182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21186 echo $ECHO_N "(cached) $ECHO_C" >&6
21187 else
21188 cat >conftest.$ac_ext <<_ACEOF
21189 /* confdefs.h. */
21190 _ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21196 #define $ac_func innocuous_$ac_func
21198 /* System header to define __stub macros and hopefully few prototypes,
21199 which can conflict with char $ac_func (); below.
21200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21201 <limits.h> exists even on freestanding compilers. */
21203 #ifdef __STDC__
21204 # include <limits.h>
21205 #else
21206 # include <assert.h>
21207 #endif
21209 #undef $ac_func
21211 /* Override any GCC internal prototype to avoid an error.
21212 Use char because int might match the return type of a GCC
21213 builtin and then its argument prototype would still apply. */
21214 #ifdef __cplusplus
21215 extern "C"
21216 #endif
21217 char $ac_func ();
21218 /* The GNU C library defines this for functions which it implements
21219 to always fail with ENOSYS. Some functions are actually named
21220 something starting with __ and the normal name is an alias. */
21221 #if defined __stub_$ac_func || defined __stub___$ac_func
21222 choke me
21223 #endif
21225 int
21226 main ()
21227 {
21228 return $ac_func ();
21229 ;
21230 return 0;
21231 }
21232 _ACEOF
21233 rm -f conftest.$ac_objext conftest$ac_exeext
21234 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
21241 ac_status=$?
21242 grep -v '^ *+' conftest.er1 >conftest.err
21243 rm -f conftest.er1
21244 cat conftest.err >&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } && {
21247 test -z "$ac_c_werror_flag" ||
21248 test ! -s conftest.err
21249 } && test -s conftest$ac_exeext &&
21250 $as_test_x conftest$ac_exeext; then
21251 eval "$as_ac_var=yes"
21252 else
21253 echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21256 eval "$as_ac_var=no"
21257 fi
21259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21260 conftest$ac_exeext conftest.$ac_ext
21261 fi
21262 ac_res=`eval echo '${'$as_ac_var'}'`
21263 { echo "$as_me:$LINENO: result: $ac_res" >&5
21264 echo "${ECHO_T}$ac_res" >&6; }
21265 if test `eval echo '${'$as_ac_var'}'` = yes; then
21266 cat >>confdefs.h <<_ACEOF
21267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21268 _ACEOF
21270 fi
21271 done
21273 if test "x$ac_cv_func_mmap" = "xyes"; then
21274 ac_cv_func_mmap_fixed_mapped=yes
21275 fi
21276 ;;
21277 *)
21279 for ac_header in sys/mman.h
21280 do
21281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21286 echo $ECHO_N "(cached) $ECHO_C" >&6
21287 fi
21288 ac_res=`eval echo '${'$as_ac_Header'}'`
21289 { echo "$as_me:$LINENO: result: $ac_res" >&5
21290 echo "${ECHO_T}$ac_res" >&6; }
21291 else
21292 # Is the header compilable?
21293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21295 cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h. */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 $ac_includes_default
21302 #include <$ac_header>
21303 _ACEOF
21304 rm -f conftest.$ac_objext
21305 if { (ac_try="$ac_compile"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309 esac
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311 (eval "$ac_compile") 2>conftest.er1
21312 ac_status=$?
21313 grep -v '^ *+' conftest.er1 >conftest.err
21314 rm -f conftest.er1
21315 cat conftest.err >&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); } && {
21318 test -z "$ac_c_werror_flag" ||
21319 test ! -s conftest.err
21320 } && test -s conftest.$ac_objext; then
21321 ac_header_compiler=yes
21322 else
21323 echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21326 ac_header_compiler=no
21327 fi
21329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21331 echo "${ECHO_T}$ac_header_compiler" >&6; }
21333 # Is the header present?
21334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21336 cat >conftest.$ac_ext <<_ACEOF
21337 /* confdefs.h. */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21342 #include <$ac_header>
21343 _ACEOF
21344 if { (ac_try="$ac_cpp conftest.$ac_ext"
21345 case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21348 esac
21349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21351 ac_status=$?
21352 grep -v '^ *+' conftest.er1 >conftest.err
21353 rm -f conftest.er1
21354 cat conftest.err >&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } >/dev/null && {
21357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21358 test ! -s conftest.err
21359 }; then
21360 ac_header_preproc=yes
21361 else
21362 echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21365 ac_header_preproc=no
21366 fi
21368 rm -f conftest.err conftest.$ac_ext
21369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21370 echo "${ECHO_T}$ac_header_preproc" >&6; }
21372 # So? What about this header?
21373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21374 yes:no: )
21375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21379 ac_header_preproc=yes
21380 ;;
21381 no:yes:* )
21382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21395 ;;
21396 esac
21397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21401 else
21402 eval "$as_ac_Header=\$ac_header_preproc"
21403 fi
21404 ac_res=`eval echo '${'$as_ac_Header'}'`
21405 { echo "$as_me:$LINENO: result: $ac_res" >&5
21406 echo "${ECHO_T}$ac_res" >&6; }
21408 fi
21409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21410 cat >>confdefs.h <<_ACEOF
21411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21412 _ACEOF
21414 fi
21416 done
21420 for ac_header in stdlib.h unistd.h
21421 do
21422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 fi
21429 ac_res=`eval echo '${'$as_ac_Header'}'`
21430 { echo "$as_me:$LINENO: result: $ac_res" >&5
21431 echo "${ECHO_T}$ac_res" >&6; }
21432 else
21433 # Is the header compilable?
21434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h. */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 $ac_includes_default
21443 #include <$ac_header>
21444 _ACEOF
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_compile") 2>conftest.er1
21453 ac_status=$?
21454 grep -v '^ *+' conftest.er1 >conftest.err
21455 rm -f conftest.er1
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } && {
21459 test -z "$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21461 } && test -s conftest.$ac_objext; then
21462 ac_header_compiler=yes
21463 else
21464 echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21467 ac_header_compiler=no
21468 fi
21470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21472 echo "${ECHO_T}$ac_header_compiler" >&6; }
21474 # Is the header present?
21475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21477 cat >conftest.$ac_ext <<_ACEOF
21478 /* confdefs.h. */
21479 _ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21483 #include <$ac_header>
21484 _ACEOF
21485 if { (ac_try="$ac_cpp conftest.$ac_ext"
21486 case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21489 esac
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21492 ac_status=$?
21493 grep -v '^ *+' conftest.er1 >conftest.err
21494 rm -f conftest.er1
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } >/dev/null && {
21498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21500 }; then
21501 ac_header_preproc=yes
21502 else
21503 echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21506 ac_header_preproc=no
21507 fi
21509 rm -f conftest.err conftest.$ac_ext
21510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21511 echo "${ECHO_T}$ac_header_preproc" >&6; }
21513 # So? What about this header?
21514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21515 yes:no: )
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21520 ac_header_preproc=yes
21521 ;;
21522 no:yes:* )
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21536 ;;
21537 esac
21538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 else
21543 eval "$as_ac_Header=\$ac_header_preproc"
21544 fi
21545 ac_res=`eval echo '${'$as_ac_Header'}'`
21546 { echo "$as_me:$LINENO: result: $ac_res" >&5
21547 echo "${ECHO_T}$ac_res" >&6; }
21549 fi
21550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21551 cat >>confdefs.h <<_ACEOF
21552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21553 _ACEOF
21555 fi
21557 done
21560 for ac_func in getpagesize
21561 do
21562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21567 else
21568 cat >conftest.$ac_ext <<_ACEOF
21569 /* confdefs.h. */
21570 _ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h. */
21574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21576 #define $ac_func innocuous_$ac_func
21578 /* System header to define __stub macros and hopefully few prototypes,
21579 which can conflict with char $ac_func (); below.
21580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21581 <limits.h> exists even on freestanding compilers. */
21583 #ifdef __STDC__
21584 # include <limits.h>
21585 #else
21586 # include <assert.h>
21587 #endif
21589 #undef $ac_func
21591 /* Override any GCC internal prototype to avoid an error.
21592 Use char because int might match the return type of a GCC
21593 builtin and then its argument prototype would still apply. */
21594 #ifdef __cplusplus
21595 extern "C"
21596 #endif
21597 char $ac_func ();
21598 /* The GNU C library defines this for functions which it implements
21599 to always fail with ENOSYS. Some functions are actually named
21600 something starting with __ and the normal name is an alias. */
21601 #if defined __stub_$ac_func || defined __stub___$ac_func
21602 choke me
21603 #endif
21605 int
21606 main ()
21607 {
21608 return $ac_func ();
21609 ;
21610 return 0;
21611 }
21612 _ACEOF
21613 rm -f conftest.$ac_objext conftest$ac_exeext
21614 if { (ac_try="$ac_link"
21615 case "(($ac_try" in
21616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21617 *) ac_try_echo=$ac_try;;
21618 esac
21619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21620 (eval "$ac_link") 2>conftest.er1
21621 ac_status=$?
21622 grep -v '^ *+' conftest.er1 >conftest.err
21623 rm -f conftest.er1
21624 cat conftest.err >&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } && {
21627 test -z "$ac_c_werror_flag" ||
21628 test ! -s conftest.err
21629 } && test -s conftest$ac_exeext &&
21630 $as_test_x conftest$ac_exeext; then
21631 eval "$as_ac_var=yes"
21632 else
21633 echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.$ac_ext >&5
21636 eval "$as_ac_var=no"
21637 fi
21639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21640 conftest$ac_exeext conftest.$ac_ext
21641 fi
21642 ac_res=`eval echo '${'$as_ac_var'}'`
21643 { echo "$as_me:$LINENO: result: $ac_res" >&5
21644 echo "${ECHO_T}$ac_res" >&6; }
21645 if test `eval echo '${'$as_ac_var'}'` = yes; then
21646 cat >>confdefs.h <<_ACEOF
21647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21648 _ACEOF
21650 fi
21651 done
21653 { echo "$as_me:$LINENO: checking for working mmap" >&5
21654 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21655 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21656 echo $ECHO_N "(cached) $ECHO_C" >&6
21657 else
21658 if test "$cross_compiling" = yes; then
21659 ac_cv_func_mmap_fixed_mapped=no
21660 else
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h. */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21667 $ac_includes_default
21668 /* malloc might have been renamed as rpl_malloc. */
21669 #undef malloc
21671 /* Thanks to Mike Haertel and Jim Avera for this test.
21672 Here is a matrix of mmap possibilities:
21673 mmap private not fixed
21674 mmap private fixed at somewhere currently unmapped
21675 mmap private fixed at somewhere already mapped
21676 mmap shared not fixed
21677 mmap shared fixed at somewhere currently unmapped
21678 mmap shared fixed at somewhere already mapped
21679 For private mappings, we should verify that changes cannot be read()
21680 back from the file, nor mmap's back from the file at a different
21681 address. (There have been systems where private was not correctly
21682 implemented like the infamous i386 svr4.0, and systems where the
21683 VM page cache was not coherent with the file system buffer cache
21684 like early versions of FreeBSD and possibly contemporary NetBSD.)
21685 For shared mappings, we should conversely verify that changes get
21686 propagated back to all the places they're supposed to be.
21688 Grep wants private fixed already mapped.
21689 The main things grep needs to know about mmap are:
21690 * does it exist and is it safe to write into the mmap'd area
21691 * how to use it (BSD variants) */
21693 #include <fcntl.h>
21694 #include <sys/mman.h>
21696 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21697 char *malloc ();
21698 #endif
21700 /* This mess was copied from the GNU getpagesize.h. */
21701 #ifndef HAVE_GETPAGESIZE
21702 /* Assume that all systems that can run configure have sys/param.h. */
21703 # ifndef HAVE_SYS_PARAM_H
21704 # define HAVE_SYS_PARAM_H 1
21705 # endif
21707 # ifdef _SC_PAGESIZE
21708 # define getpagesize() sysconf(_SC_PAGESIZE)
21709 # else /* no _SC_PAGESIZE */
21710 # ifdef HAVE_SYS_PARAM_H
21711 # include <sys/param.h>
21712 # ifdef EXEC_PAGESIZE
21713 # define getpagesize() EXEC_PAGESIZE
21714 # else /* no EXEC_PAGESIZE */
21715 # ifdef NBPG
21716 # define getpagesize() NBPG * CLSIZE
21717 # ifndef CLSIZE
21718 # define CLSIZE 1
21719 # endif /* no CLSIZE */
21720 # else /* no NBPG */
21721 # ifdef NBPC
21722 # define getpagesize() NBPC
21723 # else /* no NBPC */
21724 # ifdef PAGESIZE
21725 # define getpagesize() PAGESIZE
21726 # endif /* PAGESIZE */
21727 # endif /* no NBPC */
21728 # endif /* no NBPG */
21729 # endif /* no EXEC_PAGESIZE */
21730 # else /* no HAVE_SYS_PARAM_H */
21731 # define getpagesize() 8192 /* punt totally */
21732 # endif /* no HAVE_SYS_PARAM_H */
21733 # endif /* no _SC_PAGESIZE */
21735 #endif /* no HAVE_GETPAGESIZE */
21737 int
21738 main ()
21739 {
21740 char *data, *data2, *data3;
21741 int i, pagesize;
21742 int fd;
21744 pagesize = getpagesize ();
21746 /* First, make a file with some known garbage in it. */
21747 data = (char *) malloc (pagesize);
21748 if (!data)
21749 return 1;
21750 for (i = 0; i < pagesize; ++i)
21751 *(data + i) = rand ();
21752 umask (0);
21753 fd = creat ("conftest.mmap", 0600);
21754 if (fd < 0)
21755 return 1;
21756 if (write (fd, data, pagesize) != pagesize)
21757 return 1;
21758 close (fd);
21760 /* Next, try to mmap the file at a fixed address which already has
21761 something else allocated at it. If we can, also make sure that
21762 we see the same garbage. */
21763 fd = open ("conftest.mmap", O_RDWR);
21764 if (fd < 0)
21765 return 1;
21766 data2 = (char *) malloc (2 * pagesize);
21767 if (!data2)
21768 return 1;
21769 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21770 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21771 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21772 return 1;
21773 for (i = 0; i < pagesize; ++i)
21774 if (*(data + i) != *(data2 + i))
21775 return 1;
21777 /* Finally, make sure that changes to the mapped area do not
21778 percolate back to the file as seen by read(). (This is a bug on
21779 some variants of i386 svr4.0.) */
21780 for (i = 0; i < pagesize; ++i)
21781 *(data2 + i) = *(data2 + i) + 1;
21782 data3 = (char *) malloc (pagesize);
21783 if (!data3)
21784 return 1;
21785 if (read (fd, data3, pagesize) != pagesize)
21786 return 1;
21787 for (i = 0; i < pagesize; ++i)
21788 if (*(data + i) != *(data3 + i))
21789 return 1;
21790 close (fd);
21791 return 0;
21792 }
21793 _ACEOF
21794 rm -f conftest$ac_exeext
21795 if { (ac_try="$ac_link"
21796 case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799 esac
21800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_link") 2>&5
21802 ac_status=$?
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21805 { (case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21808 esac
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810 (eval "$ac_try") 2>&5
21811 ac_status=$?
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; }; then
21814 ac_cv_func_mmap_fixed_mapped=yes
21815 else
21816 echo "$as_me: program exited with status $ac_status" >&5
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 ( exit $ac_status )
21821 ac_cv_func_mmap_fixed_mapped=no
21822 fi
21823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21824 fi
21827 fi
21828 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21829 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21830 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21832 cat >>confdefs.h <<\_ACEOF
21833 #define HAVE_MMAP 1
21834 _ACEOF
21836 fi
21837 rm -f conftest.mmap
21842 for ac_func in mmap munmap msync
21843 do
21844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21849 else
21850 cat >conftest.$ac_ext <<_ACEOF
21851 /* confdefs.h. */
21852 _ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h. */
21856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21858 #define $ac_func innocuous_$ac_func
21860 /* System header to define __stub macros and hopefully few prototypes,
21861 which can conflict with char $ac_func (); below.
21862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21863 <limits.h> exists even on freestanding compilers. */
21865 #ifdef __STDC__
21866 # include <limits.h>
21867 #else
21868 # include <assert.h>
21869 #endif
21871 #undef $ac_func
21873 /* Override any GCC internal prototype to avoid an error.
21874 Use char because int might match the return type of a GCC
21875 builtin and then its argument prototype would still apply. */
21876 #ifdef __cplusplus
21877 extern "C"
21878 #endif
21879 char $ac_func ();
21880 /* The GNU C library defines this for functions which it implements
21881 to always fail with ENOSYS. Some functions are actually named
21882 something starting with __ and the normal name is an alias. */
21883 #if defined __stub_$ac_func || defined __stub___$ac_func
21884 choke me
21885 #endif
21887 int
21888 main ()
21889 {
21890 return $ac_func ();
21891 ;
21892 return 0;
21893 }
21894 _ACEOF
21895 rm -f conftest.$ac_objext conftest$ac_exeext
21896 if { (ac_try="$ac_link"
21897 case "(($ac_try" in
21898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899 *) ac_try_echo=$ac_try;;
21900 esac
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902 (eval "$ac_link") 2>conftest.er1
21903 ac_status=$?
21904 grep -v '^ *+' conftest.er1 >conftest.err
21905 rm -f conftest.er1
21906 cat conftest.err >&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } && {
21909 test -z "$ac_c_werror_flag" ||
21910 test ! -s conftest.err
21911 } && test -s conftest$ac_exeext &&
21912 $as_test_x conftest$ac_exeext; then
21913 eval "$as_ac_var=yes"
21914 else
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 eval "$as_ac_var=no"
21919 fi
21921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21922 conftest$ac_exeext conftest.$ac_ext
21923 fi
21924 ac_res=`eval echo '${'$as_ac_var'}'`
21925 { echo "$as_me:$LINENO: result: $ac_res" >&5
21926 echo "${ECHO_T}$ac_res" >&6; }
21927 if test `eval echo '${'$as_ac_var'}'` = yes; then
21928 cat >>confdefs.h <<_ACEOF
21929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21930 _ACEOF
21932 fi
21933 done
21935 { echo "$as_me:$LINENO: checking whether madvise is declared" >&5
21936 echo $ECHO_N "checking whether madvise is declared... $ECHO_C" >&6; }
21937 if test "${ac_cv_have_decl_madvise+set}" = set; then
21938 echo $ECHO_N "(cached) $ECHO_C" >&6
21939 else
21940 cat >conftest.$ac_ext <<_ACEOF
21941 /* confdefs.h. */
21942 _ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
21946 #ifdef HAVE_SYS_MMAN_H
21947 # include <sys/mman.h>
21948 #endif
21950 int
21951 main ()
21952 {
21953 #ifndef madvise
21954 (void) madvise;
21955 #endif
21957 ;
21958 return 0;
21959 }
21960 _ACEOF
21961 rm -f conftest.$ac_objext
21962 if { (ac_try="$ac_compile"
21963 case "(($ac_try" in
21964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965 *) ac_try_echo=$ac_try;;
21966 esac
21967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968 (eval "$ac_compile") 2>conftest.er1
21969 ac_status=$?
21970 grep -v '^ *+' conftest.er1 >conftest.err
21971 rm -f conftest.er1
21972 cat conftest.err >&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } && {
21975 test -z "$ac_c_werror_flag" ||
21976 test ! -s conftest.err
21977 } && test -s conftest.$ac_objext; then
21978 ac_cv_have_decl_madvise=yes
21979 else
21980 echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21983 ac_cv_have_decl_madvise=no
21984 fi
21986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21987 fi
21988 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_madvise" >&5
21989 echo "${ECHO_T}$ac_cv_have_decl_madvise" >&6; }
21990 if test $ac_cv_have_decl_madvise = yes; then
21992 cat >>confdefs.h <<_ACEOF
21993 #define HAVE_DECL_MADVISE 1
21994 _ACEOF
21997 else
21998 cat >>confdefs.h <<_ACEOF
21999 #define HAVE_DECL_MADVISE 0
22000 _ACEOF
22003 fi
22006 if test "x$ac_cv_have_decl_madvise" = "xyes";
22007 then
22009 for ac_func in madvise
22010 do
22011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22016 else
22017 cat >conftest.$ac_ext <<_ACEOF
22018 /* confdefs.h. */
22019 _ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22025 #define $ac_func innocuous_$ac_func
22027 /* System header to define __stub macros and hopefully few prototypes,
22028 which can conflict with char $ac_func (); below.
22029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22030 <limits.h> exists even on freestanding compilers. */
22032 #ifdef __STDC__
22033 # include <limits.h>
22034 #else
22035 # include <assert.h>
22036 #endif
22038 #undef $ac_func
22040 /* Override any GCC internal prototype to avoid an error.
22041 Use char because int might match the return type of a GCC
22042 builtin and then its argument prototype would still apply. */
22043 #ifdef __cplusplus
22044 extern "C"
22045 #endif
22046 char $ac_func ();
22047 /* The GNU C library defines this for functions which it implements
22048 to always fail with ENOSYS. Some functions are actually named
22049 something starting with __ and the normal name is an alias. */
22050 #if defined __stub_$ac_func || defined __stub___$ac_func
22051 choke me
22052 #endif
22054 int
22055 main ()
22056 {
22057 return $ac_func ();
22058 ;
22059 return 0;
22060 }
22061 _ACEOF
22062 rm -f conftest.$ac_objext conftest$ac_exeext
22063 if { (ac_try="$ac_link"
22064 case "(($ac_try" in
22065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22067 esac
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069 (eval "$ac_link") 2>conftest.er1
22070 ac_status=$?
22071 grep -v '^ *+' conftest.er1 >conftest.err
22072 rm -f conftest.er1
22073 cat conftest.err >&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); } && {
22076 test -z "$ac_c_werror_flag" ||
22077 test ! -s conftest.err
22078 } && test -s conftest$ac_exeext &&
22079 $as_test_x conftest$ac_exeext; then
22080 eval "$as_ac_var=yes"
22081 else
22082 echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22085 eval "$as_ac_var=no"
22086 fi
22088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22089 conftest$ac_exeext conftest.$ac_ext
22090 fi
22091 ac_res=`eval echo '${'$as_ac_var'}'`
22092 { echo "$as_me:$LINENO: result: $ac_res" >&5
22093 echo "${ECHO_T}$ac_res" >&6; }
22094 if test `eval echo '${'$as_ac_var'}'` = yes; then
22095 cat >>confdefs.h <<_ACEOF
22096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22097 _ACEOF
22099 fi
22100 done
22102 else
22104 for ac_func in posix_madvise
22105 do
22106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22111 else
22112 cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h. */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22120 #define $ac_func innocuous_$ac_func
22122 /* System header to define __stub macros and hopefully few prototypes,
22123 which can conflict with char $ac_func (); below.
22124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22125 <limits.h> exists even on freestanding compilers. */
22127 #ifdef __STDC__
22128 # include <limits.h>
22129 #else
22130 # include <assert.h>
22131 #endif
22133 #undef $ac_func
22135 /* Override any GCC internal prototype to avoid an error.
22136 Use char because int might match the return type of a GCC
22137 builtin and then its argument prototype would still apply. */
22138 #ifdef __cplusplus
22139 extern "C"
22140 #endif
22141 char $ac_func ();
22142 /* The GNU C library defines this for functions which it implements
22143 to always fail with ENOSYS. Some functions are actually named
22144 something starting with __ and the normal name is an alias. */
22145 #if defined __stub_$ac_func || defined __stub___$ac_func
22146 choke me
22147 #endif
22149 int
22150 main ()
22151 {
22152 return $ac_func ();
22153 ;
22154 return 0;
22155 }
22156 _ACEOF
22157 rm -f conftest.$ac_objext conftest$ac_exeext
22158 if { (ac_try="$ac_link"
22159 case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22162 esac
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_link") 2>conftest.er1
22165 ac_status=$?
22166 grep -v '^ *+' conftest.er1 >conftest.err
22167 rm -f conftest.er1
22168 cat conftest.err >&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && {
22171 test -z "$ac_c_werror_flag" ||
22172 test ! -s conftest.err
22173 } && test -s conftest$ac_exeext &&
22174 $as_test_x conftest$ac_exeext; then
22175 eval "$as_ac_var=yes"
22176 else
22177 echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22180 eval "$as_ac_var=no"
22181 fi
22183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22184 conftest$ac_exeext conftest.$ac_ext
22185 fi
22186 ac_res=`eval echo '${'$as_ac_var'}'`
22187 { echo "$as_me:$LINENO: result: $ac_res" >&5
22188 echo "${ECHO_T}$ac_res" >&6; }
22189 if test `eval echo '${'$as_ac_var'}'` = yes; then
22190 cat >>confdefs.h <<_ACEOF
22191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22192 _ACEOF
22194 fi
22195 done
22197 if test "x$ac_cv_func_posix_madvise" != "xyes"; then
22198 { echo "$as_me:$LINENO: WARNING: madvise() nor posix_madvise() found." >&5
22199 echo "$as_me: WARNING: madvise() nor posix_madvise() found." >&2;}
22200 fi
22201 fi
22202 ;;
22203 esac
22204 if test "x$ac_cv_func_mmap" != "xyes";
22205 then
22206 { { echo "$as_me:$LINENO: error: --enable-mmap requested but mmap() was not detected" >&5
22207 echo "$as_me: error: --enable-mmap requested but mmap() was not detected" >&2;}
22208 { (exit 1); exit 1; }; }
22209 fi
22210 fi
22212 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
22213 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
22214 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22216 else
22217 cat >conftest.$ac_ext <<_ACEOF
22218 /* confdefs.h. */
22219 _ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22223 #define _XOPEN_SOURCE 600
22224 #include <fcntl.h>
22226 int
22227 main ()
22228 {
22229 #ifndef posix_fadvise
22230 (void) posix_fadvise;
22231 #endif
22233 ;
22234 return 0;
22235 }
22236 _ACEOF
22237 rm -f conftest.$ac_objext
22238 if { (ac_try="$ac_compile"
22239 case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_compile") 2>conftest.er1
22245 ac_status=$?
22246 grep -v '^ *+' conftest.er1 >conftest.err
22247 rm -f conftest.er1
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } && {
22251 test -z "$ac_c_werror_flag" ||
22252 test ! -s conftest.err
22253 } && test -s conftest.$ac_objext; then
22254 ac_cv_have_decl_posix_fadvise=yes
22255 else
22256 echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22259 ac_cv_have_decl_posix_fadvise=no
22260 fi
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 fi
22264 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
22265 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
22266 if test $ac_cv_have_decl_posix_fadvise = yes; then
22268 cat >>confdefs.h <<_ACEOF
22269 #define HAVE_DECL_POSIX_FADVISE 1
22270 _ACEOF
22273 else
22274 cat >>confdefs.h <<_ACEOF
22275 #define HAVE_DECL_POSIX_FADVISE 0
22276 _ACEOF
22279 fi
22283 for ac_func in posix_fadvise
22284 do
22285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22289 echo $ECHO_N "(cached) $ECHO_C" >&6
22290 else
22291 cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h. */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22299 #define $ac_func innocuous_$ac_func
22301 /* System header to define __stub macros and hopefully few prototypes,
22302 which can conflict with char $ac_func (); below.
22303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22304 <limits.h> exists even on freestanding compilers. */
22306 #ifdef __STDC__
22307 # include <limits.h>
22308 #else
22309 # include <assert.h>
22310 #endif
22312 #undef $ac_func
22314 /* Override any GCC internal prototype to avoid an error.
22315 Use char because int might match the return type of a GCC
22316 builtin and then its argument prototype would still apply. */
22317 #ifdef __cplusplus
22318 extern "C"
22319 #endif
22320 char $ac_func ();
22321 /* The GNU C library defines this for functions which it implements
22322 to always fail with ENOSYS. Some functions are actually named
22323 something starting with __ and the normal name is an alias. */
22324 #if defined __stub_$ac_func || defined __stub___$ac_func
22325 choke me
22326 #endif
22328 int
22329 main ()
22330 {
22331 return $ac_func ();
22332 ;
22333 return 0;
22334 }
22335 _ACEOF
22336 rm -f conftest.$ac_objext conftest$ac_exeext
22337 if { (ac_try="$ac_link"
22338 case "(($ac_try" in
22339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340 *) ac_try_echo=$ac_try;;
22341 esac
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343 (eval "$ac_link") 2>conftest.er1
22344 ac_status=$?
22345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && {
22350 test -z "$ac_c_werror_flag" ||
22351 test ! -s conftest.err
22352 } && test -s conftest$ac_exeext &&
22353 $as_test_x conftest$ac_exeext; then
22354 eval "$as_ac_var=yes"
22355 else
22356 echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22359 eval "$as_ac_var=no"
22360 fi
22362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22363 conftest$ac_exeext conftest.$ac_ext
22364 fi
22365 ac_res=`eval echo '${'$as_ac_var'}'`
22366 { echo "$as_me:$LINENO: result: $ac_res" >&5
22367 echo "${ECHO_T}$ac_res" >&6; }
22368 if test `eval echo '${'$as_ac_var'}'` = yes; then
22369 cat >>confdefs.h <<_ACEOF
22370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22371 _ACEOF
22373 fi
22374 done
22377 if test "x$enable_mmap" = xyes; then
22378 case "$host" in
22379 *cygwin*)
22380 # the normal mmap test does not work in cygwin
22382 for ac_func in mmap
22383 do
22384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22388 echo $ECHO_N "(cached) $ECHO_C" >&6
22389 else
22390 cat >conftest.$ac_ext <<_ACEOF
22391 /* confdefs.h. */
22392 _ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h. */
22396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22398 #define $ac_func innocuous_$ac_func
22400 /* System header to define __stub macros and hopefully few prototypes,
22401 which can conflict with char $ac_func (); below.
22402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22403 <limits.h> exists even on freestanding compilers. */
22405 #ifdef __STDC__
22406 # include <limits.h>
22407 #else
22408 # include <assert.h>
22409 #endif
22411 #undef $ac_func
22413 /* Override any GCC internal prototype to avoid an error.
22414 Use char because int might match the return type of a GCC
22415 builtin and then its argument prototype would still apply. */
22416 #ifdef __cplusplus
22417 extern "C"
22418 #endif
22419 char $ac_func ();
22420 /* The GNU C library defines this for functions which it implements
22421 to always fail with ENOSYS. Some functions are actually named
22422 something starting with __ and the normal name is an alias. */
22423 #if defined __stub_$ac_func || defined __stub___$ac_func
22424 choke me
22425 #endif
22427 int
22428 main ()
22429 {
22430 return $ac_func ();
22431 ;
22432 return 0;
22433 }
22434 _ACEOF
22435 rm -f conftest.$ac_objext conftest$ac_exeext
22436 if { (ac_try="$ac_link"
22437 case "(($ac_try" in
22438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22439 *) ac_try_echo=$ac_try;;
22440 esac
22441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22442 (eval "$ac_link") 2>conftest.er1
22443 ac_status=$?
22444 grep -v '^ *+' conftest.er1 >conftest.err
22445 rm -f conftest.er1
22446 cat conftest.err >&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); } && {
22449 test -z "$ac_c_werror_flag" ||
22450 test ! -s conftest.err
22451 } && test -s conftest$ac_exeext &&
22452 $as_test_x conftest$ac_exeext; then
22453 eval "$as_ac_var=yes"
22454 else
22455 echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22458 eval "$as_ac_var=no"
22459 fi
22461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22462 conftest$ac_exeext conftest.$ac_ext
22463 fi
22464 ac_res=`eval echo '${'$as_ac_var'}'`
22465 { echo "$as_me:$LINENO: result: $ac_res" >&5
22466 echo "${ECHO_T}$ac_res" >&6; }
22467 if test `eval echo '${'$as_ac_var'}'` = yes; then
22468 cat >>confdefs.h <<_ACEOF
22469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22470 _ACEOF
22472 fi
22473 done
22475 if "x${ac_cv_func_mmap}" = xyes ; then
22476 ac_cv_func_mmap_fixed_mapped=yes
22477 fi
22478 ;;
22479 *)
22482 for ac_header in stdlib.h unistd.h
22483 do
22484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22489 echo $ECHO_N "(cached) $ECHO_C" >&6
22490 fi
22491 ac_res=`eval echo '${'$as_ac_Header'}'`
22492 { echo "$as_me:$LINENO: result: $ac_res" >&5
22493 echo "${ECHO_T}$ac_res" >&6; }
22494 else
22495 # Is the header compilable?
22496 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22498 cat >conftest.$ac_ext <<_ACEOF
22499 /* confdefs.h. */
22500 _ACEOF
22501 cat confdefs.h >>conftest.$ac_ext
22502 cat >>conftest.$ac_ext <<_ACEOF
22503 /* end confdefs.h. */
22504 $ac_includes_default
22505 #include <$ac_header>
22506 _ACEOF
22507 rm -f conftest.$ac_objext
22508 if { (ac_try="$ac_compile"
22509 case "(($ac_try" in
22510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511 *) ac_try_echo=$ac_try;;
22512 esac
22513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514 (eval "$ac_compile") 2>conftest.er1
22515 ac_status=$?
22516 grep -v '^ *+' conftest.er1 >conftest.err
22517 rm -f conftest.er1
22518 cat conftest.err >&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); } && {
22521 test -z "$ac_c_werror_flag" ||
22522 test ! -s conftest.err
22523 } && test -s conftest.$ac_objext; then
22524 ac_header_compiler=yes
22525 else
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22529 ac_header_compiler=no
22530 fi
22532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22534 echo "${ECHO_T}$ac_header_compiler" >&6; }
22536 # Is the header present?
22537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22539 cat >conftest.$ac_ext <<_ACEOF
22540 /* confdefs.h. */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22545 #include <$ac_header>
22546 _ACEOF
22547 if { (ac_try="$ac_cpp conftest.$ac_ext"
22548 case "(($ac_try" in
22549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550 *) ac_try_echo=$ac_try;;
22551 esac
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22554 ac_status=$?
22555 grep -v '^ *+' conftest.er1 >conftest.err
22556 rm -f conftest.er1
22557 cat conftest.err >&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } >/dev/null && {
22560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22561 test ! -s conftest.err
22562 }; then
22563 ac_header_preproc=yes
22564 else
22565 echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22568 ac_header_preproc=no
22569 fi
22571 rm -f conftest.err conftest.$ac_ext
22572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22573 echo "${ECHO_T}$ac_header_preproc" >&6; }
22575 # So? What about this header?
22576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22577 yes:no: )
22578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22582 ac_header_preproc=yes
22583 ;;
22584 no:yes:* )
22585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22592 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22598 ;;
22599 esac
22600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22603 echo $ECHO_N "(cached) $ECHO_C" >&6
22604 else
22605 eval "$as_ac_Header=\$ac_header_preproc"
22606 fi
22607 ac_res=`eval echo '${'$as_ac_Header'}'`
22608 { echo "$as_me:$LINENO: result: $ac_res" >&5
22609 echo "${ECHO_T}$ac_res" >&6; }
22611 fi
22612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22613 cat >>confdefs.h <<_ACEOF
22614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22615 _ACEOF
22617 fi
22619 done
22622 for ac_func in getpagesize
22623 do
22624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22625 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22628 echo $ECHO_N "(cached) $ECHO_C" >&6
22629 else
22630 cat >conftest.$ac_ext <<_ACEOF
22631 /* confdefs.h. */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22638 #define $ac_func innocuous_$ac_func
22640 /* System header to define __stub macros and hopefully few prototypes,
22641 which can conflict with char $ac_func (); below.
22642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22643 <limits.h> exists even on freestanding compilers. */
22645 #ifdef __STDC__
22646 # include <limits.h>
22647 #else
22648 # include <assert.h>
22649 #endif
22651 #undef $ac_func
22653 /* Override any GCC internal prototype to avoid an error.
22654 Use char because int might match the return type of a GCC
22655 builtin and then its argument prototype would still apply. */
22656 #ifdef __cplusplus
22657 extern "C"
22658 #endif
22659 char $ac_func ();
22660 /* The GNU C library defines this for functions which it implements
22661 to always fail with ENOSYS. Some functions are actually named
22662 something starting with __ and the normal name is an alias. */
22663 #if defined __stub_$ac_func || defined __stub___$ac_func
22664 choke me
22665 #endif
22667 int
22668 main ()
22669 {
22670 return $ac_func ();
22671 ;
22672 return 0;
22673 }
22674 _ACEOF
22675 rm -f conftest.$ac_objext conftest$ac_exeext
22676 if { (ac_try="$ac_link"
22677 case "(($ac_try" in
22678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679 *) ac_try_echo=$ac_try;;
22680 esac
22681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22682 (eval "$ac_link") 2>conftest.er1
22683 ac_status=$?
22684 grep -v '^ *+' conftest.er1 >conftest.err
22685 rm -f conftest.er1
22686 cat conftest.err >&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } && {
22689 test -z "$ac_c_werror_flag" ||
22690 test ! -s conftest.err
22691 } && test -s conftest$ac_exeext &&
22692 $as_test_x conftest$ac_exeext; then
22693 eval "$as_ac_var=yes"
22694 else
22695 echo "$as_me: failed program was:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22698 eval "$as_ac_var=no"
22699 fi
22701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22702 conftest$ac_exeext conftest.$ac_ext
22703 fi
22704 ac_res=`eval echo '${'$as_ac_var'}'`
22705 { echo "$as_me:$LINENO: result: $ac_res" >&5
22706 echo "${ECHO_T}$ac_res" >&6; }
22707 if test `eval echo '${'$as_ac_var'}'` = yes; then
22708 cat >>confdefs.h <<_ACEOF
22709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22710 _ACEOF
22712 fi
22713 done
22715 { echo "$as_me:$LINENO: checking for working mmap" >&5
22716 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
22717 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
22719 else
22720 if test "$cross_compiling" = yes; then
22721 ac_cv_func_mmap_fixed_mapped=no
22722 else
22723 cat >conftest.$ac_ext <<_ACEOF
22724 /* confdefs.h. */
22725 _ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22729 $ac_includes_default
22730 /* malloc might have been renamed as rpl_malloc. */
22731 #undef malloc
22733 /* Thanks to Mike Haertel and Jim Avera for this test.
22734 Here is a matrix of mmap possibilities:
22735 mmap private not fixed
22736 mmap private fixed at somewhere currently unmapped
22737 mmap private fixed at somewhere already mapped
22738 mmap shared not fixed
22739 mmap shared fixed at somewhere currently unmapped
22740 mmap shared fixed at somewhere already mapped
22741 For private mappings, we should verify that changes cannot be read()
22742 back from the file, nor mmap's back from the file at a different
22743 address. (There have been systems where private was not correctly
22744 implemented like the infamous i386 svr4.0, and systems where the
22745 VM page cache was not coherent with the file system buffer cache
22746 like early versions of FreeBSD and possibly contemporary NetBSD.)
22747 For shared mappings, we should conversely verify that changes get
22748 propagated back to all the places they're supposed to be.
22750 Grep wants private fixed already mapped.
22751 The main things grep needs to know about mmap are:
22752 * does it exist and is it safe to write into the mmap'd area
22753 * how to use it (BSD variants) */
22755 #include <fcntl.h>
22756 #include <sys/mman.h>
22758 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22759 char *malloc ();
22760 #endif
22762 /* This mess was copied from the GNU getpagesize.h. */
22763 #ifndef HAVE_GETPAGESIZE
22764 /* Assume that all systems that can run configure have sys/param.h. */
22765 # ifndef HAVE_SYS_PARAM_H
22766 # define HAVE_SYS_PARAM_H 1
22767 # endif
22769 # ifdef _SC_PAGESIZE
22770 # define getpagesize() sysconf(_SC_PAGESIZE)
22771 # else /* no _SC_PAGESIZE */
22772 # ifdef HAVE_SYS_PARAM_H
22773 # include <sys/param.h>
22774 # ifdef EXEC_PAGESIZE
22775 # define getpagesize() EXEC_PAGESIZE
22776 # else /* no EXEC_PAGESIZE */
22777 # ifdef NBPG
22778 # define getpagesize() NBPG * CLSIZE
22779 # ifndef CLSIZE
22780 # define CLSIZE 1
22781 # endif /* no CLSIZE */
22782 # else /* no NBPG */
22783 # ifdef NBPC
22784 # define getpagesize() NBPC
22785 # else /* no NBPC */
22786 # ifdef PAGESIZE
22787 # define getpagesize() PAGESIZE
22788 # endif /* PAGESIZE */
22789 # endif /* no NBPC */
22790 # endif /* no NBPG */
22791 # endif /* no EXEC_PAGESIZE */
22792 # else /* no HAVE_SYS_PARAM_H */
22793 # define getpagesize() 8192 /* punt totally */
22794 # endif /* no HAVE_SYS_PARAM_H */
22795 # endif /* no _SC_PAGESIZE */
22797 #endif /* no HAVE_GETPAGESIZE */
22799 int
22800 main ()
22801 {
22802 char *data, *data2, *data3;
22803 int i, pagesize;
22804 int fd;
22806 pagesize = getpagesize ();
22808 /* First, make a file with some known garbage in it. */
22809 data = (char *) malloc (pagesize);
22810 if (!data)
22811 return 1;
22812 for (i = 0; i < pagesize; ++i)
22813 *(data + i) = rand ();
22814 umask (0);
22815 fd = creat ("conftest.mmap", 0600);
22816 if (fd < 0)
22817 return 1;
22818 if (write (fd, data, pagesize) != pagesize)
22819 return 1;
22820 close (fd);
22822 /* Next, try to mmap the file at a fixed address which already has
22823 something else allocated at it. If we can, also make sure that
22824 we see the same garbage. */
22825 fd = open ("conftest.mmap", O_RDWR);
22826 if (fd < 0)
22827 return 1;
22828 data2 = (char *) malloc (2 * pagesize);
22829 if (!data2)
22830 return 1;
22831 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
22832 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22833 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22834 return 1;
22835 for (i = 0; i < pagesize; ++i)
22836 if (*(data + i) != *(data2 + i))
22837 return 1;
22839 /* Finally, make sure that changes to the mapped area do not
22840 percolate back to the file as seen by read(). (This is a bug on
22841 some variants of i386 svr4.0.) */
22842 for (i = 0; i < pagesize; ++i)
22843 *(data2 + i) = *(data2 + i) + 1;
22844 data3 = (char *) malloc (pagesize);
22845 if (!data3)
22846 return 1;
22847 if (read (fd, data3, pagesize) != pagesize)
22848 return 1;
22849 for (i = 0; i < pagesize; ++i)
22850 if (*(data + i) != *(data3 + i))
22851 return 1;
22852 close (fd);
22853 return 0;
22854 }
22855 _ACEOF
22856 rm -f conftest$ac_exeext
22857 if { (ac_try="$ac_link"
22858 case "(($ac_try" in
22859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860 *) ac_try_echo=$ac_try;;
22861 esac
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863 (eval "$ac_link") 2>&5
22864 ac_status=$?
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22867 { (case "(($ac_try" in
22868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22869 *) ac_try_echo=$ac_try;;
22870 esac
22871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872 (eval "$ac_try") 2>&5
22873 ac_status=$?
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; }; then
22876 ac_cv_func_mmap_fixed_mapped=yes
22877 else
22878 echo "$as_me: program exited with status $ac_status" >&5
22879 echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.$ac_ext >&5
22882 ( exit $ac_status )
22883 ac_cv_func_mmap_fixed_mapped=no
22884 fi
22885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22886 fi
22889 fi
22890 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22891 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
22892 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22894 cat >>confdefs.h <<\_ACEOF
22895 #define HAVE_MMAP 1
22896 _ACEOF
22898 fi
22899 rm -f conftest.mmap
22901 ;;
22902 esac
22903 fi
22907 case $TERM in
22908 # for the most important terminal types we directly know the sequences
22909 xterm|xterm*|vt220|vt220*)
22910 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
22911 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
22912 ;;
22913 vt100|vt100*|cygwin)
22914 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
22915 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
22916 ;;
22917 *)
22918 T_MD=''
22919 T_ME=''
22920 ;;
22921 esac
22922 { echo "$as_me:$LINENO: result: " >&5
22923 echo "${ECHO_T}" >&6; }
22924 { echo "$as_me:$LINENO: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
22925 echo "${ECHO_T}${T_MD}IEEE Math Checks${T_ME}" >&6; }
22929 for ac_func in fpclassify
22930 do
22931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22935 echo $ECHO_N "(cached) $ECHO_C" >&6
22936 else
22937 cat >conftest.$ac_ext <<_ACEOF
22938 /* confdefs.h. */
22939 _ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h. */
22943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22945 #define $ac_func innocuous_$ac_func
22947 /* System header to define __stub macros and hopefully few prototypes,
22948 which can conflict with char $ac_func (); below.
22949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22950 <limits.h> exists even on freestanding compilers. */
22952 #ifdef __STDC__
22953 # include <limits.h>
22954 #else
22955 # include <assert.h>
22956 #endif
22958 #undef $ac_func
22960 /* Override any GCC internal prototype to avoid an error.
22961 Use char because int might match the return type of a GCC
22962 builtin and then its argument prototype would still apply. */
22963 #ifdef __cplusplus
22964 extern "C"
22965 #endif
22966 char $ac_func ();
22967 /* The GNU C library defines this for functions which it implements
22968 to always fail with ENOSYS. Some functions are actually named
22969 something starting with __ and the normal name is an alias. */
22970 #if defined __stub_$ac_func || defined __stub___$ac_func
22971 choke me
22972 #endif
22974 int
22975 main ()
22976 {
22977 return $ac_func ();
22978 ;
22979 return 0;
22980 }
22981 _ACEOF
22982 rm -f conftest.$ac_objext conftest$ac_exeext
22983 if { (ac_try="$ac_link"
22984 case "(($ac_try" in
22985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22986 *) ac_try_echo=$ac_try;;
22987 esac
22988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22989 (eval "$ac_link") 2>conftest.er1
22990 ac_status=$?
22991 grep -v '^ *+' conftest.er1 >conftest.err
22992 rm -f conftest.er1
22993 cat conftest.err >&5
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); } && {
22996 test -z "$ac_c_werror_flag" ||
22997 test ! -s conftest.err
22998 } && test -s conftest$ac_exeext &&
22999 $as_test_x conftest$ac_exeext; then
23000 eval "$as_ac_var=yes"
23001 else
23002 echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23005 eval "$as_ac_var=no"
23006 fi
23008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23009 conftest$ac_exeext conftest.$ac_ext
23010 fi
23011 ac_res=`eval echo '${'$as_ac_var'}'`
23012 { echo "$as_me:$LINENO: result: $ac_res" >&5
23013 echo "${ECHO_T}$ac_res" >&6; }
23014 if test `eval echo '${'$as_ac_var'}'` = yes; then
23015 cat >>confdefs.h <<_ACEOF
23016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23017 _ACEOF
23019 else
23020 { echo "$as_me:$LINENO: checking for fpclassify with <math.h>" >&5
23021 echo $ECHO_N "checking for fpclassify with <math.h>... $ECHO_C" >&6; }
23022 cat >conftest.$ac_ext <<_ACEOF
23023 /* confdefs.h. */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 #include <math.h>
23029 volatile int x;volatile float f;
23030 int
23031 main ()
23032 {
23033 x = fpclassify(f)
23034 ;
23035 return 0;
23036 }
23037 _ACEOF
23038 rm -f conftest.$ac_objext conftest$ac_exeext
23039 if { (ac_try="$ac_link"
23040 case "(($ac_try" in
23041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042 *) ac_try_echo=$ac_try;;
23043 esac
23044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23045 (eval "$ac_link") 2>conftest.er1
23046 ac_status=$?
23047 grep -v '^ *+' conftest.er1 >conftest.err
23048 rm -f conftest.er1
23049 cat conftest.err >&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } && {
23052 test -z "$ac_c_werror_flag" ||
23053 test ! -s conftest.err
23054 } && test -s conftest$ac_exeext &&
23055 $as_test_x conftest$ac_exeext; then
23056 { echo "$as_me:$LINENO: result: yes" >&5
23057 echo "${ECHO_T}yes" >&6; }
23058 cat >>confdefs.h <<\_ACEOF
23059 #define HAVE_FPCLASSIFY 1
23060 _ACEOF
23062 else
23063 echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23066 { echo "$as_me:$LINENO: result: no" >&5
23067 echo "${ECHO_T}no" >&6; }
23068 fi
23070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23071 conftest$ac_exeext conftest.$ac_ext
23072 fi
23073 done
23076 for ac_func in finite
23077 do
23078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 else
23084 cat >conftest.$ac_ext <<_ACEOF
23085 /* confdefs.h. */
23086 _ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h. */
23090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23092 #define $ac_func innocuous_$ac_func
23094 /* System header to define __stub macros and hopefully few prototypes,
23095 which can conflict with char $ac_func (); below.
23096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23097 <limits.h> exists even on freestanding compilers. */
23099 #ifdef __STDC__
23100 # include <limits.h>
23101 #else
23102 # include <assert.h>
23103 #endif
23105 #undef $ac_func
23107 /* Override any GCC internal prototype to avoid an error.
23108 Use char because int might match the return type of a GCC
23109 builtin and then its argument prototype would still apply. */
23110 #ifdef __cplusplus
23111 extern "C"
23112 #endif
23113 char $ac_func ();
23114 /* The GNU C library defines this for functions which it implements
23115 to always fail with ENOSYS. Some functions are actually named
23116 something starting with __ and the normal name is an alias. */
23117 #if defined __stub_$ac_func || defined __stub___$ac_func
23118 choke me
23119 #endif
23121 int
23122 main ()
23123 {
23124 return $ac_func ();
23125 ;
23126 return 0;
23127 }
23128 _ACEOF
23129 rm -f conftest.$ac_objext conftest$ac_exeext
23130 if { (ac_try="$ac_link"
23131 case "(($ac_try" in
23132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23133 *) ac_try_echo=$ac_try;;
23134 esac
23135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23136 (eval "$ac_link") 2>conftest.er1
23137 ac_status=$?
23138 grep -v '^ *+' conftest.er1 >conftest.err
23139 rm -f conftest.er1
23140 cat conftest.err >&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } && {
23143 test -z "$ac_c_werror_flag" ||
23144 test ! -s conftest.err
23145 } && test -s conftest$ac_exeext &&
23146 $as_test_x conftest$ac_exeext; then
23147 eval "$as_ac_var=yes"
23148 else
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23152 eval "$as_ac_var=no"
23153 fi
23155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23156 conftest$ac_exeext conftest.$ac_ext
23157 fi
23158 ac_res=`eval echo '${'$as_ac_var'}'`
23159 { echo "$as_me:$LINENO: result: $ac_res" >&5
23160 echo "${ECHO_T}$ac_res" >&6; }
23161 if test `eval echo '${'$as_ac_var'}'` = yes; then
23162 cat >>confdefs.h <<_ACEOF
23163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23164 _ACEOF
23166 else
23168 for ac_func in isfinite
23169 do
23170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23174 echo $ECHO_N "(cached) $ECHO_C" >&6
23175 else
23176 cat >conftest.$ac_ext <<_ACEOF
23177 /* confdefs.h. */
23178 _ACEOF
23179 cat confdefs.h >>conftest.$ac_ext
23180 cat >>conftest.$ac_ext <<_ACEOF
23181 /* end confdefs.h. */
23182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23184 #define $ac_func innocuous_$ac_func
23186 /* System header to define __stub macros and hopefully few prototypes,
23187 which can conflict with char $ac_func (); below.
23188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23189 <limits.h> exists even on freestanding compilers. */
23191 #ifdef __STDC__
23192 # include <limits.h>
23193 #else
23194 # include <assert.h>
23195 #endif
23197 #undef $ac_func
23199 /* Override any GCC internal prototype to avoid an error.
23200 Use char because int might match the return type of a GCC
23201 builtin and then its argument prototype would still apply. */
23202 #ifdef __cplusplus
23203 extern "C"
23204 #endif
23205 char $ac_func ();
23206 /* The GNU C library defines this for functions which it implements
23207 to always fail with ENOSYS. Some functions are actually named
23208 something starting with __ and the normal name is an alias. */
23209 #if defined __stub_$ac_func || defined __stub___$ac_func
23210 choke me
23211 #endif
23213 int
23214 main ()
23215 {
23216 return $ac_func ();
23217 ;
23218 return 0;
23219 }
23220 _ACEOF
23221 rm -f conftest.$ac_objext conftest$ac_exeext
23222 if { (ac_try="$ac_link"
23223 case "(($ac_try" in
23224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225 *) ac_try_echo=$ac_try;;
23226 esac
23227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23228 (eval "$ac_link") 2>conftest.er1
23229 ac_status=$?
23230 grep -v '^ *+' conftest.er1 >conftest.err
23231 rm -f conftest.er1
23232 cat conftest.err >&5
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } && {
23235 test -z "$ac_c_werror_flag" ||
23236 test ! -s conftest.err
23237 } && test -s conftest$ac_exeext &&
23238 $as_test_x conftest$ac_exeext; then
23239 eval "$as_ac_var=yes"
23240 else
23241 echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23244 eval "$as_ac_var=no"
23245 fi
23247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23248 conftest$ac_exeext conftest.$ac_ext
23249 fi
23250 ac_res=`eval echo '${'$as_ac_var'}'`
23251 { echo "$as_me:$LINENO: result: $ac_res" >&5
23252 echo "${ECHO_T}$ac_res" >&6; }
23253 if test `eval echo '${'$as_ac_var'}'` = yes; then
23254 cat >>confdefs.h <<_ACEOF
23255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23256 _ACEOF
23258 else
23259 { echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
23260 echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6; }
23261 cat >conftest.$ac_ext <<_ACEOF
23262 /* confdefs.h. */
23263 _ACEOF
23264 cat confdefs.h >>conftest.$ac_ext
23265 cat >>conftest.$ac_ext <<_ACEOF
23266 /* end confdefs.h. */
23267 #include <math.h>
23268 volatile int x;volatile float f;
23269 int
23270 main ()
23271 {
23272 x = isfinite(f)
23273 ;
23274 return 0;
23275 }
23276 _ACEOF
23277 rm -f conftest.$ac_objext conftest$ac_exeext
23278 if { (ac_try="$ac_link"
23279 case "(($ac_try" in
23280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281 *) ac_try_echo=$ac_try;;
23282 esac
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284 (eval "$ac_link") 2>conftest.er1
23285 ac_status=$?
23286 grep -v '^ *+' conftest.er1 >conftest.err
23287 rm -f conftest.er1
23288 cat conftest.err >&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); } && {
23291 test -z "$ac_c_werror_flag" ||
23292 test ! -s conftest.err
23293 } && test -s conftest$ac_exeext &&
23294 $as_test_x conftest$ac_exeext; then
23295 { echo "$as_me:$LINENO: result: yes" >&5
23296 echo "${ECHO_T}yes" >&6; }
23297 cat >>confdefs.h <<\_ACEOF
23298 #define HAVE_ISFINITE 1
23299 _ACEOF
23301 else
23302 echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23305 { echo "$as_me:$LINENO: result: no" >&5
23306 echo "${ECHO_T}no" >&6; }
23307 fi
23309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23310 conftest$ac_exeext conftest.$ac_ext
23311 fi
23312 done
23314 fi
23315 done
23318 for ac_func in isinf
23319 do
23320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23325 else
23326 cat >conftest.$ac_ext <<_ACEOF
23327 /* confdefs.h. */
23328 _ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h. */
23332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23334 #define $ac_func innocuous_$ac_func
23336 /* System header to define __stub macros and hopefully few prototypes,
23337 which can conflict with char $ac_func (); below.
23338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23339 <limits.h> exists even on freestanding compilers. */
23341 #ifdef __STDC__
23342 # include <limits.h>
23343 #else
23344 # include <assert.h>
23345 #endif
23347 #undef $ac_func
23349 /* Override any GCC internal prototype to avoid an error.
23350 Use char because int might match the return type of a GCC
23351 builtin and then its argument prototype would still apply. */
23352 #ifdef __cplusplus
23353 extern "C"
23354 #endif
23355 char $ac_func ();
23356 /* The GNU C library defines this for functions which it implements
23357 to always fail with ENOSYS. Some functions are actually named
23358 something starting with __ and the normal name is an alias. */
23359 #if defined __stub_$ac_func || defined __stub___$ac_func
23360 choke me
23361 #endif
23363 int
23364 main ()
23365 {
23366 return $ac_func ();
23367 ;
23368 return 0;
23369 }
23370 _ACEOF
23371 rm -f conftest.$ac_objext conftest$ac_exeext
23372 if { (ac_try="$ac_link"
23373 case "(($ac_try" in
23374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375 *) ac_try_echo=$ac_try;;
23376 esac
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378 (eval "$ac_link") 2>conftest.er1
23379 ac_status=$?
23380 grep -v '^ *+' conftest.er1 >conftest.err
23381 rm -f conftest.er1
23382 cat conftest.err >&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } && {
23385 test -z "$ac_c_werror_flag" ||
23386 test ! -s conftest.err
23387 } && test -s conftest$ac_exeext &&
23388 $as_test_x conftest$ac_exeext; then
23389 eval "$as_ac_var=yes"
23390 else
23391 echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23394 eval "$as_ac_var=no"
23395 fi
23397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23398 conftest$ac_exeext conftest.$ac_ext
23399 fi
23400 ac_res=`eval echo '${'$as_ac_var'}'`
23401 { echo "$as_me:$LINENO: result: $ac_res" >&5
23402 echo "${ECHO_T}$ac_res" >&6; }
23403 if test `eval echo '${'$as_ac_var'}'` = yes; then
23404 cat >>confdefs.h <<_ACEOF
23405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23406 _ACEOF
23408 else
23409 { echo "$as_me:$LINENO: checking for isinf with <math.h>" >&5
23410 echo $ECHO_N "checking for isinf with <math.h>... $ECHO_C" >&6; }
23411 cat >conftest.$ac_ext <<_ACEOF
23412 /* confdefs.h. */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h. */
23417 #include <math.h>
23418 volatile int x;volatile float f;
23419 int
23420 main ()
23421 {
23422 x = isinf(f)
23423 ;
23424 return 0;
23425 }
23426 _ACEOF
23427 rm -f conftest.$ac_objext conftest$ac_exeext
23428 if { (ac_try="$ac_link"
23429 case "(($ac_try" in
23430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23431 *) ac_try_echo=$ac_try;;
23432 esac
23433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23434 (eval "$ac_link") 2>conftest.er1
23435 ac_status=$?
23436 grep -v '^ *+' conftest.er1 >conftest.err
23437 rm -f conftest.er1
23438 cat conftest.err >&5
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); } && {
23441 test -z "$ac_c_werror_flag" ||
23442 test ! -s conftest.err
23443 } && test -s conftest$ac_exeext &&
23444 $as_test_x conftest$ac_exeext; then
23445 { echo "$as_me:$LINENO: result: yes" >&5
23446 echo "${ECHO_T}yes" >&6; }
23447 cat >>confdefs.h <<\_ACEOF
23448 #define HAVE_ISINF 1
23449 _ACEOF
23451 else
23452 echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23455 { echo "$as_me:$LINENO: result: no" >&5
23456 echo "${ECHO_T}no" >&6; }
23457 fi
23459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23460 conftest$ac_exeext conftest.$ac_ext
23461 fi
23462 done
23466 ac_ext=c
23467 ac_cpp='$CPP $CPPFLAGS'
23468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23472 _cflags=${CFLAGS}
23474 { echo "$as_me:$LINENO: checking if IEEE math works out of the box" >&5
23475 echo $ECHO_N "checking if IEEE math works out of the box... $ECHO_C" >&6; }
23476 if test "${rd_cv_ieee_works+set}" = set; then
23477 echo $ECHO_N "(cached) $ECHO_C" >&6
23478 else
23479 if test "$cross_compiling" = yes; then
23480 :
23481 else
23482 cat >conftest.$ac_ext <<_ACEOF
23483 /* confdefs.h. */
23484 _ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h. */
23490 #if HAVE_MATH_H
23491 # include <math.h>
23492 #endif
23494 #if HAVE_FLOAT_H
23495 # include <float.h>
23496 #endif
23498 #if HAVE_IEEEFP_H
23499 # include <ieeefp.h>
23500 #endif
23502 #if HAVE_FP_CLASS_H
23503 # include <fp_class.h>
23504 #endif
23506 /* Solaris */
23507 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
23508 # define HAVE_ISINF 1
23509 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
23510 #endif
23512 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
23513 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
23514 # undef isnan
23515 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
23516 #endif
23518 /* Digital UNIX */
23519 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
23520 # define HAVE_ISINF 1
23521 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
23522 #endif
23524 /* AIX */
23525 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
23526 # define HAVE_ISINF 1
23527 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
23528 #endif
23530 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
23531 # define HAVE_ISINF 1
23532 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
23533 #endif
23535 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
23536 # define HAVE_ISINF 1
23537 # define isinf(a) (fpclassify(a) == FP_INFINITE)
23538 #endif
23540 #include <stdio.h>
23541 int main(void){
23542 double rrdnan,rrdinf,rrdc,rrdzero;
23543 ;
23544 /* some math to see if we get a floating point exception */
23545 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
23546 rrdnan=0.0/rrdzero; /* especially here */
23547 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
23548 /* at run time without sig fpe */
23549 rrdc = rrdinf + rrdnan;
23550 rrdc = rrdinf / rrdnan;
23551 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
23552 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
23553 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
23554 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
23555 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
23556 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
23557 return 0;
23558 }
23559 _ACEOF
23560 rm -f conftest$ac_exeext
23561 if { (ac_try="$ac_link"
23562 case "(($ac_try" in
23563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23564 *) ac_try_echo=$ac_try;;
23565 esac
23566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23567 (eval "$ac_link") 2>&5
23568 ac_status=$?
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23571 { (case "(($ac_try" in
23572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23574 esac
23575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23576 (eval "$ac_try") 2>&5
23577 ac_status=$?
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; }; then
23580 rd_cv_ieee_works=yes
23581 else
23582 echo "$as_me: program exited with status $ac_status" >&5
23583 echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23586 ( exit $ac_status )
23587 rd_cv_ieee_works=no
23588 fi
23589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23590 fi
23593 fi
23595 if test x${rd_cv_ieee_works} = "xyes"; then
23596 { echo "$as_me:$LINENO: result: yes" >&5
23597 echo "${ECHO_T}yes" >&6; }
23599 else
23600 { echo "$as_me:$LINENO: result: no" >&5
23601 echo "${ECHO_T}no" >&6; }
23602 CFLAGS="$_cflags -ieee"
23604 { echo "$as_me:$LINENO: checking if IEEE math works with the -ieee switch" >&5
23605 echo $ECHO_N "checking if IEEE math works with the -ieee switch... $ECHO_C" >&6; }
23606 if test "${rd_cv_ieee_switch+set}" = set; then
23607 echo $ECHO_N "(cached) $ECHO_C" >&6
23608 else
23609 if test "$cross_compiling" = yes; then
23610 :
23611 else
23612 cat >conftest.$ac_ext <<_ACEOF
23613 /* confdefs.h. */
23614 _ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h. */
23620 #if HAVE_MATH_H
23621 # include <math.h>
23622 #endif
23624 #if HAVE_FLOAT_H
23625 # include <float.h>
23626 #endif
23628 #if HAVE_IEEEFP_H
23629 # include <ieeefp.h>
23630 #endif
23632 #if HAVE_FP_CLASS_H
23633 # include <fp_class.h>
23634 #endif
23636 /* Solaris */
23637 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
23638 # define HAVE_ISINF 1
23639 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
23640 #endif
23642 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
23643 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
23644 # undef isnan
23645 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
23646 #endif
23648 /* Digital UNIX */
23649 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
23650 # define HAVE_ISINF 1
23651 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
23652 #endif
23654 /* AIX */
23655 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
23656 # define HAVE_ISINF 1
23657 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
23658 #endif
23660 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
23661 # define HAVE_ISINF 1
23662 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
23663 #endif
23665 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
23666 # define HAVE_ISINF 1
23667 # define isinf(a) (fpclassify(a) == FP_INFINITE)
23668 #endif
23670 #include <stdio.h>
23671 int main(void){
23672 double rrdnan,rrdinf,rrdc,rrdzero;
23673 ;
23674 /* some math to see if we get a floating point exception */
23675 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
23676 rrdnan=0.0/rrdzero; /* especially here */
23677 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
23678 /* at run time without sig fpe */
23679 rrdc = rrdinf + rrdnan;
23680 rrdc = rrdinf / rrdnan;
23681 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
23682 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
23683 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
23684 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
23685 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
23686 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
23687 return 0;
23688 }
23689 _ACEOF
23690 rm -f conftest$ac_exeext
23691 if { (ac_try="$ac_link"
23692 case "(($ac_try" in
23693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23695 esac
23696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697 (eval "$ac_link") 2>&5
23698 ac_status=$?
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23701 { (case "(($ac_try" in
23702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23703 *) ac_try_echo=$ac_try;;
23704 esac
23705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23706 (eval "$ac_try") 2>&5
23707 ac_status=$?
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); }; }; then
23710 rd_cv_ieee_switch=yes
23711 else
23712 echo "$as_me: program exited with status $ac_status" >&5
23713 echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23716 ( exit $ac_status )
23717 rd_cv_ieee_switch=no
23718 fi
23719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23720 fi
23723 fi
23725 if test x${rd_cv_ieee_switch} = "xyes"; then
23726 { echo "$as_me:$LINENO: result: yes" >&5
23727 echo "${ECHO_T}yes" >&6; }
23729 else
23730 { echo "$as_me:$LINENO: result: no" >&5
23731 echo "${ECHO_T}no" >&6; }
23732 CFLAGS="$_cflags -qfloat=nofold"
23734 { echo "$as_me:$LINENO: checking if IEEE math works with the -qfloat=nofold switch" >&5
23735 echo $ECHO_N "checking if IEEE math works with the -qfloat=nofold switch... $ECHO_C" >&6; }
23736 if test "${rd_cv_ieee_nofold+set}" = set; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23738 else
23739 if test "$cross_compiling" = yes; then
23740 :
23741 else
23742 cat >conftest.$ac_ext <<_ACEOF
23743 /* confdefs.h. */
23744 _ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h. */
23750 #if HAVE_MATH_H
23751 # include <math.h>
23752 #endif
23754 #if HAVE_FLOAT_H
23755 # include <float.h>
23756 #endif
23758 #if HAVE_IEEEFP_H
23759 # include <ieeefp.h>
23760 #endif
23762 #if HAVE_FP_CLASS_H
23763 # include <fp_class.h>
23764 #endif
23766 /* Solaris */
23767 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
23768 # define HAVE_ISINF 1
23769 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
23770 #endif
23772 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
23773 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
23774 # undef isnan
23775 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
23776 #endif
23778 /* Digital UNIX */
23779 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
23780 # define HAVE_ISINF 1
23781 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
23782 #endif
23784 /* AIX */
23785 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
23786 # define HAVE_ISINF 1
23787 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
23788 #endif
23790 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
23791 # define HAVE_ISINF 1
23792 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
23793 #endif
23795 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
23796 # define HAVE_ISINF 1
23797 # define isinf(a) (fpclassify(a) == FP_INFINITE)
23798 #endif
23800 #include <stdio.h>
23801 int main(void){
23802 double rrdnan,rrdinf,rrdc,rrdzero;
23803 ;
23804 /* some math to see if we get a floating point exception */
23805 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
23806 rrdnan=0.0/rrdzero; /* especially here */
23807 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
23808 /* at run time without sig fpe */
23809 rrdc = rrdinf + rrdnan;
23810 rrdc = rrdinf / rrdnan;
23811 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
23812 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
23813 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
23814 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
23815 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
23816 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
23817 return 0;
23818 }
23819 _ACEOF
23820 rm -f conftest$ac_exeext
23821 if { (ac_try="$ac_link"
23822 case "(($ac_try" in
23823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824 *) ac_try_echo=$ac_try;;
23825 esac
23826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23827 (eval "$ac_link") 2>&5
23828 ac_status=$?
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23831 { (case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23834 esac
23835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23836 (eval "$ac_try") 2>&5
23837 ac_status=$?
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); }; }; then
23840 rd_cv_ieee_nofold=yes
23841 else
23842 echo "$as_me: program exited with status $ac_status" >&5
23843 echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23846 ( exit $ac_status )
23847 rd_cv_ieee_nofold=no
23848 fi
23849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23850 fi
23853 fi
23855 if test x${rd_cv_ieee_nofold} = "xyes"; then
23856 { echo "$as_me:$LINENO: result: yes" >&5
23857 echo "${ECHO_T}yes" >&6; }
23859 else
23860 { echo "$as_me:$LINENO: result: no" >&5
23861 echo "${ECHO_T}no" >&6; }
23862 CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
23864 { echo "$as_me:$LINENO: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
23865 echo $ECHO_N "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... $ECHO_C" >&6; }
23866 if test "${rd_cv_ieee_flttrap+set}" = set; then
23867 echo $ECHO_N "(cached) $ECHO_C" >&6
23868 else
23869 if test "$cross_compiling" = yes; then
23870 :
23871 else
23872 cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h. */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23880 #if HAVE_MATH_H
23881 # include <math.h>
23882 #endif
23884 #if HAVE_FLOAT_H
23885 # include <float.h>
23886 #endif
23888 #if HAVE_IEEEFP_H
23889 # include <ieeefp.h>
23890 #endif
23892 #if HAVE_FP_CLASS_H
23893 # include <fp_class.h>
23894 #endif
23896 /* Solaris */
23897 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
23898 # define HAVE_ISINF 1
23899 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
23900 #endif
23902 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
23903 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
23904 # undef isnan
23905 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
23906 #endif
23908 /* Digital UNIX */
23909 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
23910 # define HAVE_ISINF 1
23911 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
23912 #endif
23914 /* AIX */
23915 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
23916 # define HAVE_ISINF 1
23917 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
23918 #endif
23920 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
23921 # define HAVE_ISINF 1
23922 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
23923 #endif
23925 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
23926 # define HAVE_ISINF 1
23927 # define isinf(a) (fpclassify(a) == FP_INFINITE)
23928 #endif
23930 #include <stdio.h>
23931 int main(void){
23932 double rrdnan,rrdinf,rrdc,rrdzero;
23933 ;
23934 /* some math to see if we get a floating point exception */
23935 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
23936 rrdnan=0.0/rrdzero; /* especially here */
23937 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
23938 /* at run time without sig fpe */
23939 rrdc = rrdinf + rrdnan;
23940 rrdc = rrdinf / rrdnan;
23941 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
23942 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
23943 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
23944 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
23945 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
23946 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
23947 return 0;
23948 }
23949 _ACEOF
23950 rm -f conftest$ac_exeext
23951 if { (ac_try="$ac_link"
23952 case "(($ac_try" in
23953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954 *) ac_try_echo=$ac_try;;
23955 esac
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957 (eval "$ac_link") 2>&5
23958 ac_status=$?
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23961 { (case "(($ac_try" in
23962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23963 *) ac_try_echo=$ac_try;;
23964 esac
23965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23966 (eval "$ac_try") 2>&5
23967 ac_status=$?
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; }; then
23970 rd_cv_ieee_flttrap=yes
23971 else
23972 echo "$as_me: program exited with status $ac_status" >&5
23973 echo "$as_me: failed program was:" >&5
23974 sed 's/^/| /' conftest.$ac_ext >&5
23976 ( exit $ac_status )
23977 rd_cv_ieee_flttrap=no
23978 fi
23979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23980 fi
23983 fi
23985 if test x${rd_cv_ieee_flttrap} = "xyes"; then
23986 { echo "$as_me:$LINENO: result: yes" >&5
23987 echo "${ECHO_T}yes" >&6; }
23989 else
23990 { echo "$as_me:$LINENO: result: no" >&5
23991 echo "${ECHO_T}no" >&6; }
23992 CFLAGS="$_cflags -mieee"
23994 { echo "$as_me:$LINENO: checking if IEEE math works with the -mieee switch" >&5
23995 echo $ECHO_N "checking if IEEE math works with the -mieee switch... $ECHO_C" >&6; }
23996 if test "${rd_cv_ieee_mswitch+set}" = set; then
23997 echo $ECHO_N "(cached) $ECHO_C" >&6
23998 else
23999 if test "$cross_compiling" = yes; then
24000 :
24001 else
24002 cat >conftest.$ac_ext <<_ACEOF
24003 /* confdefs.h. */
24004 _ACEOF
24005 cat confdefs.h >>conftest.$ac_ext
24006 cat >>conftest.$ac_ext <<_ACEOF
24007 /* end confdefs.h. */
24010 #if HAVE_MATH_H
24011 # include <math.h>
24012 #endif
24014 #if HAVE_FLOAT_H
24015 # include <float.h>
24016 #endif
24018 #if HAVE_IEEEFP_H
24019 # include <ieeefp.h>
24020 #endif
24022 #if HAVE_FP_CLASS_H
24023 # include <fp_class.h>
24024 #endif
24026 /* Solaris */
24027 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24028 # define HAVE_ISINF 1
24029 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24030 #endif
24032 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
24033 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24034 # undef isnan
24035 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24036 #endif
24038 /* Digital UNIX */
24039 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24040 # define HAVE_ISINF 1
24041 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24042 #endif
24044 /* AIX */
24045 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24046 # define HAVE_ISINF 1
24047 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24048 #endif
24050 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24051 # define HAVE_ISINF 1
24052 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24053 #endif
24055 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24056 # define HAVE_ISINF 1
24057 # define isinf(a) (fpclassify(a) == FP_INFINITE)
24058 #endif
24060 #include <stdio.h>
24061 int main(void){
24062 double rrdnan,rrdinf,rrdc,rrdzero;
24063 ;
24064 /* some math to see if we get a floating point exception */
24065 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24066 rrdnan=0.0/rrdzero; /* especially here */
24067 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24068 /* at run time without sig fpe */
24069 rrdc = rrdinf + rrdnan;
24070 rrdc = rrdinf / rrdnan;
24071 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24072 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24073 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24074 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24075 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24076 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24077 return 0;
24078 }
24079 _ACEOF
24080 rm -f conftest$ac_exeext
24081 if { (ac_try="$ac_link"
24082 case "(($ac_try" in
24083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24084 *) ac_try_echo=$ac_try;;
24085 esac
24086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24087 (eval "$ac_link") 2>&5
24088 ac_status=$?
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24091 { (case "(($ac_try" in
24092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24093 *) ac_try_echo=$ac_try;;
24094 esac
24095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24096 (eval "$ac_try") 2>&5
24097 ac_status=$?
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); }; }; then
24100 rd_cv_ieee_mswitch=yes
24101 else
24102 echo "$as_me: program exited with status $ac_status" >&5
24103 echo "$as_me: failed program was:" >&5
24104 sed 's/^/| /' conftest.$ac_ext >&5
24106 ( exit $ac_status )
24107 rd_cv_ieee_mswitch=no
24108 fi
24109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24110 fi
24113 fi
24115 if test x${rd_cv_ieee_mswitch} = "xyes"; then
24116 { echo "$as_me:$LINENO: result: yes" >&5
24117 echo "${ECHO_T}yes" >&6; }
24119 else
24120 { echo "$as_me:$LINENO: result: no" >&5
24121 echo "${ECHO_T}no" >&6; }
24122 CFLAGS="$_cflags -q float=rndsngl"
24124 { echo "$as_me:$LINENO: checking if IEEE math works with the -q float=rndsngl switch" >&5
24125 echo $ECHO_N "checking if IEEE math works with the -q float=rndsngl switch... $ECHO_C" >&6; }
24126 if test "${rd_cv_ieee_qswitch+set}" = set; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
24128 else
24129 if test "$cross_compiling" = yes; then
24130 :
24131 else
24132 cat >conftest.$ac_ext <<_ACEOF
24133 /* confdefs.h. */
24134 _ACEOF
24135 cat confdefs.h >>conftest.$ac_ext
24136 cat >>conftest.$ac_ext <<_ACEOF
24137 /* end confdefs.h. */
24140 #if HAVE_MATH_H
24141 # include <math.h>
24142 #endif
24144 #if HAVE_FLOAT_H
24145 # include <float.h>
24146 #endif
24148 #if HAVE_IEEEFP_H
24149 # include <ieeefp.h>
24150 #endif
24152 #if HAVE_FP_CLASS_H
24153 # include <fp_class.h>
24154 #endif
24156 /* Solaris */
24157 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24158 # define HAVE_ISINF 1
24159 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24160 #endif
24162 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
24163 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24164 # undef isnan
24165 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24166 #endif
24168 /* Digital UNIX */
24169 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24170 # define HAVE_ISINF 1
24171 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24172 #endif
24174 /* AIX */
24175 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24176 # define HAVE_ISINF 1
24177 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24178 #endif
24180 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24181 # define HAVE_ISINF 1
24182 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24183 #endif
24185 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24186 # define HAVE_ISINF 1
24187 # define isinf(a) (fpclassify(a) == FP_INFINITE)
24188 #endif
24190 #include <stdio.h>
24191 int main(void){
24192 double rrdnan,rrdinf,rrdc,rrdzero;
24193 ;
24194 /* some math to see if we get a floating point exception */
24195 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24196 rrdnan=0.0/rrdzero; /* especially here */
24197 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24198 /* at run time without sig fpe */
24199 rrdc = rrdinf + rrdnan;
24200 rrdc = rrdinf / rrdnan;
24201 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24202 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24203 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24204 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24205 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24206 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24207 return 0;
24208 }
24209 _ACEOF
24210 rm -f conftest$ac_exeext
24211 if { (ac_try="$ac_link"
24212 case "(($ac_try" in
24213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24214 *) ac_try_echo=$ac_try;;
24215 esac
24216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24217 (eval "$ac_link") 2>&5
24218 ac_status=$?
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24221 { (case "(($ac_try" in
24222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24223 *) ac_try_echo=$ac_try;;
24224 esac
24225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24226 (eval "$ac_try") 2>&5
24227 ac_status=$?
24228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); }; }; then
24230 rd_cv_ieee_qswitch=yes
24231 else
24232 echo "$as_me: program exited with status $ac_status" >&5
24233 echo "$as_me: failed program was:" >&5
24234 sed 's/^/| /' conftest.$ac_ext >&5
24236 ( exit $ac_status )
24237 rd_cv_ieee_qswitch=no
24238 fi
24239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24240 fi
24243 fi
24245 if test x${rd_cv_ieee_qswitch} = "xyes"; then
24246 { echo "$as_me:$LINENO: result: yes" >&5
24247 echo "${ECHO_T}yes" >&6; }
24249 else
24250 { echo "$as_me:$LINENO: result: no" >&5
24251 echo "${ECHO_T}no" >&6; }
24252 CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
24254 { echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
24255 echo $ECHO_N "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... $ECHO_C" >&6; }
24256 if test "${rd_cv_ieee_ieeenaninfswitch+set}" = set; then
24257 echo $ECHO_N "(cached) $ECHO_C" >&6
24258 else
24259 if test "$cross_compiling" = yes; then
24260 :
24261 else
24262 cat >conftest.$ac_ext <<_ACEOF
24263 /* confdefs.h. */
24264 _ACEOF
24265 cat confdefs.h >>conftest.$ac_ext
24266 cat >>conftest.$ac_ext <<_ACEOF
24267 /* end confdefs.h. */
24270 #if HAVE_MATH_H
24271 # include <math.h>
24272 #endif
24274 #if HAVE_FLOAT_H
24275 # include <float.h>
24276 #endif
24278 #if HAVE_IEEEFP_H
24279 # include <ieeefp.h>
24280 #endif
24282 #if HAVE_FP_CLASS_H
24283 # include <fp_class.h>
24284 #endif
24286 /* Solaris */
24287 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24288 # define HAVE_ISINF 1
24289 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24290 #endif
24292 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
24293 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24294 # undef isnan
24295 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24296 #endif
24298 /* Digital UNIX */
24299 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24300 # define HAVE_ISINF 1
24301 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24302 #endif
24304 /* AIX */
24305 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24306 # define HAVE_ISINF 1
24307 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24308 #endif
24310 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24311 # define HAVE_ISINF 1
24312 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24313 #endif
24315 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24316 # define HAVE_ISINF 1
24317 # define isinf(a) (fpclassify(a) == FP_INFINITE)
24318 #endif
24320 #include <stdio.h>
24321 int main(void){
24322 double rrdnan,rrdinf,rrdc,rrdzero;
24323 ;
24324 /* some math to see if we get a floating point exception */
24325 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24326 rrdnan=0.0/rrdzero; /* especially here */
24327 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24328 /* at run time without sig fpe */
24329 rrdc = rrdinf + rrdnan;
24330 rrdc = rrdinf / rrdnan;
24331 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24332 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24333 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24334 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24335 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24336 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24337 return 0;
24338 }
24339 _ACEOF
24340 rm -f conftest$ac_exeext
24341 if { (ac_try="$ac_link"
24342 case "(($ac_try" in
24343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344 *) ac_try_echo=$ac_try;;
24345 esac
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347 (eval "$ac_link") 2>&5
24348 ac_status=$?
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24351 { (case "(($ac_try" in
24352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24353 *) ac_try_echo=$ac_try;;
24354 esac
24355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24356 (eval "$ac_try") 2>&5
24357 ac_status=$?
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); }; }; then
24360 rd_cv_ieee_ieeenaninfswitch=yes
24361 else
24362 echo "$as_me: program exited with status $ac_status" >&5
24363 echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24366 ( exit $ac_status )
24367 rd_cv_ieee_ieeenaninfswitch=no
24368 fi
24369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24370 fi
24373 fi
24375 if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
24376 { echo "$as_me:$LINENO: result: yes" >&5
24377 echo "${ECHO_T}yes" >&6; }
24379 else
24380 { echo "$as_me:$LINENO: result: no" >&5
24381 echo "${ECHO_T}no" >&6; }
24382 CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
24384 { echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
24385 echo $ECHO_N "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... $ECHO_C" >&6; }
24386 if test "${rd_cv_ieee_ieeecmpswitch+set}" = set; then
24387 echo $ECHO_N "(cached) $ECHO_C" >&6
24388 else
24389 if test "$cross_compiling" = yes; then
24390 :
24391 else
24392 cat >conftest.$ac_ext <<_ACEOF
24393 /* confdefs.h. */
24394 _ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h. */
24400 #if HAVE_MATH_H
24401 # include <math.h>
24402 #endif
24404 #if HAVE_FLOAT_H
24405 # include <float.h>
24406 #endif
24408 #if HAVE_IEEEFP_H
24409 # include <ieeefp.h>
24410 #endif
24412 #if HAVE_FP_CLASS_H
24413 # include <fp_class.h>
24414 #endif
24416 /* Solaris */
24417 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24418 # define HAVE_ISINF 1
24419 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24420 #endif
24422 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
24423 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24424 # undef isnan
24425 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24426 #endif
24428 /* Digital UNIX */
24429 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24430 # define HAVE_ISINF 1
24431 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24432 #endif
24434 /* AIX */
24435 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24436 # define HAVE_ISINF 1
24437 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24438 #endif
24440 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24441 # define HAVE_ISINF 1
24442 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24443 #endif
24445 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24446 # define HAVE_ISINF 1
24447 # define isinf(a) (fpclassify(a) == FP_INFINITE)
24448 #endif
24450 #include <stdio.h>
24451 int main(void){
24452 double rrdnan,rrdinf,rrdc,rrdzero;
24453 ;
24454 /* some math to see if we get a floating point exception */
24455 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24456 rrdnan=0.0/rrdzero; /* especially here */
24457 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24458 /* at run time without sig fpe */
24459 rrdc = rrdinf + rrdnan;
24460 rrdc = rrdinf / rrdnan;
24461 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24462 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24463 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24464 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24465 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24466 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24467 return 0;
24468 }
24469 _ACEOF
24470 rm -f conftest$ac_exeext
24471 if { (ac_try="$ac_link"
24472 case "(($ac_try" in
24473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24474 *) ac_try_echo=$ac_try;;
24475 esac
24476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24477 (eval "$ac_link") 2>&5
24478 ac_status=$?
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24481 { (case "(($ac_try" in
24482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483 *) ac_try_echo=$ac_try;;
24484 esac
24485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24486 (eval "$ac_try") 2>&5
24487 ac_status=$?
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); }; }; then
24490 rd_cv_ieee_ieeecmpswitch=yes
24491 else
24492 echo "$as_me: program exited with status $ac_status" >&5
24493 echo "$as_me: failed program was:" >&5
24494 sed 's/^/| /' conftest.$ac_ext >&5
24496 ( exit $ac_status )
24497 rd_cv_ieee_ieeecmpswitch=no
24498 fi
24499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24500 fi
24503 fi
24505 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
24506 { echo "$as_me:$LINENO: result: yes" >&5
24507 echo "${ECHO_T}yes" >&6; }
24509 else
24510 { echo "$as_me:$LINENO: result: no" >&5
24511 echo "${ECHO_T}no" >&6; }
24512 CFLAGS=$_cflags
24514 { echo "$as_me:$LINENO: checking if IEEE math works with fpsetmask(0)" >&5
24515 echo $ECHO_N "checking if IEEE math works with fpsetmask(0)... $ECHO_C" >&6; }
24516 if test "${rd_cv_ieee_mask+set}" = set; then
24517 echo $ECHO_N "(cached) $ECHO_C" >&6
24518 else
24519 if test "$cross_compiling" = yes; then
24520 :
24521 else
24522 cat >conftest.$ac_ext <<_ACEOF
24523 /* confdefs.h. */
24524 _ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h. */
24528 #include <floatingpoint.h>
24530 #if HAVE_MATH_H
24531 # include <math.h>
24532 #endif
24534 #if HAVE_FLOAT_H
24535 # include <float.h>
24536 #endif
24538 #if HAVE_IEEEFP_H
24539 # include <ieeefp.h>
24540 #endif
24542 #if HAVE_FP_CLASS_H
24543 # include <fp_class.h>
24544 #endif
24546 /* Solaris */
24547 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24548 # define HAVE_ISINF 1
24549 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24550 #endif
24552 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
24553 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24554 # undef isnan
24555 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24556 #endif
24558 /* Digital UNIX */
24559 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24560 # define HAVE_ISINF 1
24561 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24562 #endif
24564 /* AIX */
24565 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24566 # define HAVE_ISINF 1
24567 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24568 #endif
24570 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24571 # define HAVE_ISINF 1
24572 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24573 #endif
24575 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24576 # define HAVE_ISINF 1
24577 # define isinf(a) (fpclassify(a) == FP_INFINITE)
24578 #endif
24580 #include <stdio.h>
24581 int main(void){
24582 double rrdnan,rrdinf,rrdc,rrdzero;
24583 fpsetmask(0);
24584 /* some math to see if we get a floating point exception */
24585 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24586 rrdnan=0.0/rrdzero; /* especially here */
24587 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24588 /* at run time without sig fpe */
24589 rrdc = rrdinf + rrdnan;
24590 rrdc = rrdinf / rrdnan;
24591 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24592 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24593 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24594 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24595 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24596 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24597 return 0;
24598 }
24599 _ACEOF
24600 rm -f conftest$ac_exeext
24601 if { (ac_try="$ac_link"
24602 case "(($ac_try" in
24603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24604 *) ac_try_echo=$ac_try;;
24605 esac
24606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24607 (eval "$ac_link") 2>&5
24608 ac_status=$?
24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24611 { (case "(($ac_try" in
24612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24613 *) ac_try_echo=$ac_try;;
24614 esac
24615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24616 (eval "$ac_try") 2>&5
24617 ac_status=$?
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); }; }; then
24620 rd_cv_ieee_mask=yes
24621 else
24622 echo "$as_me: program exited with status $ac_status" >&5
24623 echo "$as_me: failed program was:" >&5
24624 sed 's/^/| /' conftest.$ac_ext >&5
24626 ( exit $ac_status )
24627 rd_cv_ieee_mask=no
24628 fi
24629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24630 fi
24633 fi
24635 if test x${rd_cv_ieee_mask} = "xyes"; then
24636 { echo "$as_me:$LINENO: result: yes" >&5
24637 echo "${ECHO_T}yes" >&6; }
24638 cat >>confdefs.h <<\_ACEOF
24639 #define MUST_DISABLE_FPMASK 1
24640 _ACEOF
24642 PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
24643 else
24644 { echo "$as_me:$LINENO: result: no" >&5
24645 echo "${ECHO_T}no" >&6; }
24647 { echo "$as_me:$LINENO: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
24648 echo $ECHO_N "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... $ECHO_C" >&6; }
24649 if test "${rd_cv_ieee_sigfpe+set}" = set; then
24650 echo $ECHO_N "(cached) $ECHO_C" >&6
24651 else
24652 if test "$cross_compiling" = yes; then
24653 :
24654 else
24655 cat >conftest.$ac_ext <<_ACEOF
24656 /* confdefs.h. */
24657 _ACEOF
24658 cat confdefs.h >>conftest.$ac_ext
24659 cat >>conftest.$ac_ext <<_ACEOF
24660 /* end confdefs.h. */
24661 #include <signal.h>
24663 #if HAVE_MATH_H
24664 # include <math.h>
24665 #endif
24667 #if HAVE_FLOAT_H
24668 # include <float.h>
24669 #endif
24671 #if HAVE_IEEEFP_H
24672 # include <ieeefp.h>
24673 #endif
24675 #if HAVE_FP_CLASS_H
24676 # include <fp_class.h>
24677 #endif
24679 /* Solaris */
24680 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24681 # define HAVE_ISINF 1
24682 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24683 #endif
24685 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
24686 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24687 # undef isnan
24688 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24689 #endif
24691 /* Digital UNIX */
24692 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24693 # define HAVE_ISINF 1
24694 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24695 #endif
24697 /* AIX */
24698 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24699 # define HAVE_ISINF 1
24700 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24701 #endif
24703 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24704 # define HAVE_ISINF 1
24705 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24706 #endif
24708 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24709 # define HAVE_ISINF 1
24710 # define isinf(a) (fpclassify(a) == FP_INFINITE)
24711 #endif
24713 #include <stdio.h>
24714 int main(void){
24715 double rrdnan,rrdinf,rrdc,rrdzero;
24716 signal(SIGFPE,SIG_IGN);
24717 /* some math to see if we get a floating point exception */
24718 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24719 rrdnan=0.0/rrdzero; /* especially here */
24720 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24721 /* at run time without sig fpe */
24722 rrdc = rrdinf + rrdnan;
24723 rrdc = rrdinf / rrdnan;
24724 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24725 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24726 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24727 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24728 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24729 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24730 return 0;
24731 }
24732 _ACEOF
24733 rm -f conftest$ac_exeext
24734 if { (ac_try="$ac_link"
24735 case "(($ac_try" in
24736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737 *) ac_try_echo=$ac_try;;
24738 esac
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740 (eval "$ac_link") 2>&5
24741 ac_status=$?
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24744 { (case "(($ac_try" in
24745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24746 *) ac_try_echo=$ac_try;;
24747 esac
24748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24749 (eval "$ac_try") 2>&5
24750 ac_status=$?
24751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752 (exit $ac_status); }; }; then
24753 rd_cv_ieee_sigfpe=yes
24754 else
24755 echo "$as_me: program exited with status $ac_status" >&5
24756 echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24759 ( exit $ac_status )
24760 rd_cv_ieee_sigfpe=no
24761 fi
24762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24763 fi
24766 fi
24768 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
24769 { echo "$as_me:$LINENO: result: yes" >&5
24770 echo "${ECHO_T}yes" >&6; }
24771 cat >>confdefs.h <<\_ACEOF
24772 #define MUST_DISABLE_SIGFPE 1
24773 _ACEOF
24775 PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
24776 else
24777 { echo "$as_me:$LINENO: result: no" >&5
24778 echo "${ECHO_T}no" >&6; }
24779 { { echo "$as_me:$LINENO: error:
24780 Your Compiler does not do propper IEEE math ... Please find out how to
24781 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
24782 Check config.log to see what went wrong ...
24783 " >&5
24784 echo "$as_me: error:
24785 Your Compiler does not do propper IEEE math ... Please find out how to
24786 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
24787 Check config.log to see what went wrong ...
24788 " >&2;}
24789 { (exit 1); exit 1; }; }
24790 fi
24793 fi
24796 fi
24799 fi
24802 fi
24805 fi
24808 fi
24811 fi
24814 fi
24817 fi
24821 ac_ext=c
24822 ac_cpp='$CPP $CPPFLAGS'
24823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24831 case $TERM in
24832 # for the most important terminal types we directly know the sequences
24833 xterm|xterm*|vt220|vt220*)
24834 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
24835 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
24836 ;;
24837 vt100|vt100*|cygwin)
24838 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
24839 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
24840 ;;
24841 *)
24842 T_MD=''
24843 T_ME=''
24844 ;;
24845 esac
24846 { echo "$as_me:$LINENO: result: " >&5
24847 echo "${ECHO_T}" >&6; }
24848 { echo "$as_me:$LINENO: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
24849 echo "${ECHO_T}${T_MD}Resolve Portability Issues${T_ME}" >&6; }
24853 { echo "$as_me:$LINENO: checking if realloc can deal with NULL" >&5
24854 echo $ECHO_N "checking if realloc can deal with NULL... $ECHO_C" >&6; }
24855 if test "${rd_cv_null_realloc+set}" = set; then
24856 echo $ECHO_N "(cached) $ECHO_C" >&6
24857 else
24858 if test "$cross_compiling" = yes; then
24859 :
24860 else
24861 cat >conftest.$ac_ext <<_ACEOF
24862 /* confdefs.h. */
24863 _ACEOF
24864 cat confdefs.h >>conftest.$ac_ext
24865 cat >>conftest.$ac_ext <<_ACEOF
24866 /* end confdefs.h. */
24867 #include <stdlib.h>
24868 int main(void){
24869 char *x = NULL;
24870 x = realloc (x,10);
24871 if (x==NULL) return 1;
24872 return 0;
24873 }
24874 _ACEOF
24875 rm -f conftest$ac_exeext
24876 if { (ac_try="$ac_link"
24877 case "(($ac_try" in
24878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24879 *) ac_try_echo=$ac_try;;
24880 esac
24881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24882 (eval "$ac_link") 2>&5
24883 ac_status=$?
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24886 { (case "(($ac_try" in
24887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888 *) ac_try_echo=$ac_try;;
24889 esac
24890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891 (eval "$ac_try") 2>&5
24892 ac_status=$?
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); }; }; then
24895 rd_cv_null_realloc=yes
24896 else
24897 echo "$as_me: program exited with status $ac_status" >&5
24898 echo "$as_me: failed program was:" >&5
24899 sed 's/^/| /' conftest.$ac_ext >&5
24901 ( exit $ac_status )
24902 rd_cv_null_realloc=nope
24903 fi
24904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24905 fi
24908 fi
24909 { echo "$as_me:$LINENO: result: $rd_cv_null_realloc" >&5
24910 echo "${ECHO_T}$rd_cv_null_realloc" >&6; }
24912 if test x"$rd_cv_null_realloc" = xnope; then
24913 cat >>confdefs.h <<\_ACEOF
24914 #define NO_NULL_REALLOC 1
24915 _ACEOF
24917 fi
24919 ac_ext=c
24920 ac_cpp='$CPP $CPPFLAGS'
24921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24925 { echo "$as_me:$LINENO: checking if ctime_r need special care to act posixly correct" >&5
24926 echo $ECHO_N "checking if ctime_r need special care to act posixly correct... $ECHO_C" >&6; }
24927 cat >conftest.$ac_ext <<_ACEOF
24928 /* confdefs.h. */
24929 _ACEOF
24930 cat confdefs.h >>conftest.$ac_ext
24931 cat >>conftest.$ac_ext <<_ACEOF
24932 /* end confdefs.h. */
24933 #include <time.h>
24934 int
24935 main ()
24936 {
24937 ctime_r(NULL,NULL,0)
24939 ;
24940 return 0;
24941 }
24942 _ACEOF
24943 rm -f conftest.$ac_objext conftest$ac_exeext
24944 if { (ac_try="$ac_link"
24945 case "(($ac_try" in
24946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24947 *) ac_try_echo=$ac_try;;
24948 esac
24949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24950 (eval "$ac_link") 2>conftest.er1
24951 ac_status=$?
24952 grep -v '^ *+' conftest.er1 >conftest.err
24953 rm -f conftest.er1
24954 cat conftest.err >&5
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); } && {
24957 test -z "$ac_c_werror_flag" ||
24958 test ! -s conftest.err
24959 } && test -s conftest$ac_exeext &&
24960 $as_test_x conftest$ac_exeext; then
24961 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
24962 cat >conftest.$ac_ext <<_ACEOF
24963 /* confdefs.h. */
24964 _ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h. */
24968 #include <time.h>
24969 int
24970 main ()
24971 {
24972 ctime_r(NULL,NULL)
24974 ;
24975 return 0;
24976 }
24977 _ACEOF
24978 rm -f conftest.$ac_objext conftest$ac_exeext
24979 if { (ac_try="$ac_link"
24980 case "(($ac_try" in
24981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24982 *) ac_try_echo=$ac_try;;
24983 esac
24984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985 (eval "$ac_link") 2>conftest.er1
24986 ac_status=$?
24987 grep -v '^ *+' conftest.er1 >conftest.err
24988 rm -f conftest.er1
24989 cat conftest.err >&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } && {
24992 test -z "$ac_c_werror_flag" ||
24993 test ! -s conftest.err
24994 } && test -s conftest$ac_exeext &&
24995 $as_test_x conftest$ac_exeext; then
24996 { echo "$as_me:$LINENO: result: yes, this seems to be solaris style" >&5
24997 echo "${ECHO_T}yes, this seems to be solaris style" >&6; }
24998 else
24999 echo "$as_me: failed program was:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25002 { { echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
25003 echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
25004 { (exit 1); exit 1; }; }
25006 fi
25008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25009 conftest$ac_exeext conftest.$ac_ext
25011 else
25012 echo "$as_me: failed program was:" >&5
25013 sed 's/^/| /' conftest.$ac_ext >&5
25015 cat >conftest.$ac_ext <<_ACEOF
25016 /* confdefs.h. */
25017 _ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25021 #include <time.h>
25022 int
25023 main ()
25024 {
25025 ctime_r(NULL,NULL)
25027 ;
25028 return 0;
25029 }
25030 _ACEOF
25031 rm -f conftest.$ac_objext conftest$ac_exeext
25032 if { (ac_try="$ac_link"
25033 case "(($ac_try" in
25034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25035 *) ac_try_echo=$ac_try;;
25036 esac
25037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25038 (eval "$ac_link") 2>conftest.er1
25039 ac_status=$?
25040 grep -v '^ *+' conftest.er1 >conftest.err
25041 rm -f conftest.er1
25042 cat conftest.err >&5
25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); } && {
25045 test -z "$ac_c_werror_flag" ||
25046 test ! -s conftest.err
25047 } && test -s conftest$ac_exeext &&
25048 $as_test_x conftest$ac_exeext; then
25049 { echo "$as_me:$LINENO: result: no" >&5
25050 echo "${ECHO_T}no" >&6; }
25051 else
25052 echo "$as_me: failed program was:" >&5
25053 sed 's/^/| /' conftest.$ac_ext >&5
25055 { { echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
25056 echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
25057 { (exit 1); exit 1; }; }
25059 fi
25061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25062 conftest$ac_exeext conftest.$ac_ext
25065 fi
25067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25068 conftest$ac_exeext conftest.$ac_ext
25069 ac_ext=c
25070 ac_cpp='$CPP $CPPFLAGS'
25071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25080 if test $enable_pthread != no; then
25083 ac_ext=c
25084 ac_cpp='$CPP $CPPFLAGS'
25085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25089 acx_pthread_ok=no
25091 # We used to check for pthread.h first, but this fails if pthread.h
25092 # requires special compiler flags (e.g. on True64 or Sequent).
25093 # It gets checked for in the link test anyway.
25095 # First of all, check if the user has set any of the PTHREAD_LIBS,
25096 # etcetera environment variables, and if threads linking works using
25097 # them:
25098 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
25099 save_CFLAGS="$CFLAGS"
25100 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25101 save_LIBS="$LIBS"
25102 LIBS="$PTHREAD_LIBS $LIBS"
25103 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
25104 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
25105 cat >conftest.$ac_ext <<_ACEOF
25106 /* confdefs.h. */
25107 _ACEOF
25108 cat confdefs.h >>conftest.$ac_ext
25109 cat >>conftest.$ac_ext <<_ACEOF
25110 /* end confdefs.h. */
25112 /* Override any GCC internal prototype to avoid an error.
25113 Use char because int might match the return type of a GCC
25114 builtin and then its argument prototype would still apply. */
25115 #ifdef __cplusplus
25116 extern "C"
25117 #endif
25118 char pthread_join ();
25119 int
25120 main ()
25121 {
25122 return pthread_join ();
25123 ;
25124 return 0;
25125 }
25126 _ACEOF
25127 rm -f conftest.$ac_objext conftest$ac_exeext
25128 if { (ac_try="$ac_link"
25129 case "(($ac_try" in
25130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131 *) ac_try_echo=$ac_try;;
25132 esac
25133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25134 (eval "$ac_link") 2>conftest.er1
25135 ac_status=$?
25136 grep -v '^ *+' conftest.er1 >conftest.err
25137 rm -f conftest.er1
25138 cat conftest.err >&5
25139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140 (exit $ac_status); } && {
25141 test -z "$ac_c_werror_flag" ||
25142 test ! -s conftest.err
25143 } && test -s conftest$ac_exeext &&
25144 $as_test_x conftest$ac_exeext; then
25145 acx_pthread_ok=yes
25146 else
25147 echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25151 fi
25153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25154 conftest$ac_exeext conftest.$ac_ext
25155 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
25156 echo "${ECHO_T}$acx_pthread_ok" >&6; }
25157 if test x"$acx_pthread_ok" = xno; then
25158 PTHREAD_LIBS=""
25159 PTHREAD_CFLAGS=""
25160 fi
25161 LIBS="$save_LIBS"
25162 CFLAGS="$save_CFLAGS"
25163 fi
25165 # We must check for the threads library under a number of different
25166 # names; the ordering is very important because some systems
25167 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
25168 # libraries is broken (non-POSIX).
25170 # Create a list of thread flags to try. Items starting with a "-" are
25171 # C compiler flags, and other items are library names, except for "none"
25172 # which indicates that we try without any flags at all, and "pthread-config"
25173 # which is a program returning the flags for the Pth emulation library.
25175 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
25177 # The ordering *is* (sometimes) important. Some notes on the
25178 # individual items follow:
25180 # pthreads: AIX (must check this before -lpthread)
25181 # none: in case threads are in libc; should be tried before -Kthread and
25182 # other compiler flags to prevent continual compiler warnings
25183 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
25184 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
25185 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
25186 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
25187 # -pthreads: Solaris/gcc
25188 # -mthreads: Mingw32/gcc, Lynx/gcc
25189 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
25190 # doesn't hurt to check since this sometimes defines pthreads too;
25191 # also defines -D_REENTRANT)
25192 # pthread: Linux, etcetera
25193 # --thread-safe: KAI C++
25194 # pthread-config: use pthread-config program (for GNU Pth library)
25196 case "${host_cpu}-${host_os}" in
25197 *solaris*)
25199 # On Solaris (at least, for some versions), libc contains stubbed
25200 # (non-functional) versions of the pthreads routines, so link-based
25201 # tests will erroneously succeed. (We need to link with -pthread or
25202 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
25203 # a function called by this macro, so we could check for that, but
25204 # who knows whether they'll stub that too in a future libc.) So,
25205 # we'll just look for -pthreads and -lpthread first:
25207 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
25208 ;;
25209 esac
25211 if test x"$acx_pthread_ok" = xno; then
25212 for flag in $acx_pthread_flags; do
25214 case $flag in
25215 none)
25216 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
25217 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
25218 ;;
25220 -*)
25221 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
25222 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
25223 PTHREAD_CFLAGS="$flag"
25224 ;;
25226 pthread-config)
25227 # Extract the first word of "pthread-config", so it can be a program name with args.
25228 set dummy pthread-config; ac_word=$2
25229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25231 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
25232 echo $ECHO_N "(cached) $ECHO_C" >&6
25233 else
25234 if test -n "$acx_pthread_config"; then
25235 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
25236 else
25237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25238 for as_dir in $PATH
25239 do
25240 IFS=$as_save_IFS
25241 test -z "$as_dir" && as_dir=.
25242 for ac_exec_ext in '' $ac_executable_extensions; do
25243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25244 ac_cv_prog_acx_pthread_config="yes"
25245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25246 break 2
25247 fi
25248 done
25249 done
25250 IFS=$as_save_IFS
25252 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
25253 fi
25254 fi
25255 acx_pthread_config=$ac_cv_prog_acx_pthread_config
25256 if test -n "$acx_pthread_config"; then
25257 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
25258 echo "${ECHO_T}$acx_pthread_config" >&6; }
25259 else
25260 { echo "$as_me:$LINENO: result: no" >&5
25261 echo "${ECHO_T}no" >&6; }
25262 fi
25265 if test x"$acx_pthread_config" = xno; then continue; fi
25266 PTHREAD_CFLAGS="`pthread-config --cflags`"
25267 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
25268 ;;
25270 *)
25271 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
25272 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
25273 PTHREAD_LIBS="-l$flag"
25274 ;;
25275 esac
25277 save_LIBS="$LIBS"
25278 save_CFLAGS="$CFLAGS"
25279 LIBS="$PTHREAD_LIBS $LIBS"
25280 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25282 # Check for various functions. We must include pthread.h,
25283 # since some functions may be macros. (On the Sequent, we
25284 # need a special flag -Kthread to make this header compile.)
25285 # We check for pthread_join because it is in -lpthread on IRIX
25286 # while pthread_create is in libc. We check for pthread_attr_init
25287 # due to DEC craziness with -lpthreads. We check for
25288 # pthread_cleanup_push because it is one of the few pthread
25289 # functions on Solaris that doesn't have a non-functional libc stub.
25290 # We try pthread_create on general principles.
25291 cat >conftest.$ac_ext <<_ACEOF
25292 /* confdefs.h. */
25293 _ACEOF
25294 cat confdefs.h >>conftest.$ac_ext
25295 cat >>conftest.$ac_ext <<_ACEOF
25296 /* end confdefs.h. */
25297 #include <pthread.h>
25298 int
25299 main ()
25300 {
25301 pthread_t th; pthread_join(th, 0);
25302 pthread_attr_init(0); pthread_cleanup_push(0, 0);
25303 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
25304 ;
25305 return 0;
25306 }
25307 _ACEOF
25308 rm -f conftest.$ac_objext conftest$ac_exeext
25309 if { (ac_try="$ac_link"
25310 case "(($ac_try" in
25311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25312 *) ac_try_echo=$ac_try;;
25313 esac
25314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25315 (eval "$ac_link") 2>conftest.er1
25316 ac_status=$?
25317 grep -v '^ *+' conftest.er1 >conftest.err
25318 rm -f conftest.er1
25319 cat conftest.err >&5
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); } && {
25322 test -z "$ac_c_werror_flag" ||
25323 test ! -s conftest.err
25324 } && test -s conftest$ac_exeext &&
25325 $as_test_x conftest$ac_exeext; then
25326 acx_pthread_ok=yes
25327 else
25328 echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25332 fi
25334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25335 conftest$ac_exeext conftest.$ac_ext
25337 LIBS="$save_LIBS"
25338 CFLAGS="$save_CFLAGS"
25340 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
25341 echo "${ECHO_T}$acx_pthread_ok" >&6; }
25342 if test "x$acx_pthread_ok" = xyes; then
25343 break;
25344 fi
25346 PTHREAD_LIBS=""
25347 PTHREAD_CFLAGS=""
25348 done
25349 fi
25351 # Various other checks:
25352 if test "x$acx_pthread_ok" = xyes; then
25353 save_LIBS="$LIBS"
25354 LIBS="$PTHREAD_LIBS $LIBS"
25355 save_CFLAGS="$CFLAGS"
25356 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25358 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
25359 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
25360 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
25361 attr_name=unknown
25362 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
25363 cat >conftest.$ac_ext <<_ACEOF
25364 /* confdefs.h. */
25365 _ACEOF
25366 cat confdefs.h >>conftest.$ac_ext
25367 cat >>conftest.$ac_ext <<_ACEOF
25368 /* end confdefs.h. */
25369 #include <pthread.h>
25370 int
25371 main ()
25372 {
25373 int attr=$attr;
25374 ;
25375 return 0;
25376 }
25377 _ACEOF
25378 rm -f conftest.$ac_objext conftest$ac_exeext
25379 if { (ac_try="$ac_link"
25380 case "(($ac_try" in
25381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25382 *) ac_try_echo=$ac_try;;
25383 esac
25384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25385 (eval "$ac_link") 2>conftest.er1
25386 ac_status=$?
25387 grep -v '^ *+' conftest.er1 >conftest.err
25388 rm -f conftest.er1
25389 cat conftest.err >&5
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); } && {
25392 test -z "$ac_c_werror_flag" ||
25393 test ! -s conftest.err
25394 } && test -s conftest$ac_exeext &&
25395 $as_test_x conftest$ac_exeext; then
25396 attr_name=$attr; break
25397 else
25398 echo "$as_me: failed program was:" >&5
25399 sed 's/^/| /' conftest.$ac_ext >&5
25402 fi
25404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25405 conftest$ac_exeext conftest.$ac_ext
25406 done
25407 { echo "$as_me:$LINENO: result: $attr_name" >&5
25408 echo "${ECHO_T}$attr_name" >&6; }
25409 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
25411 cat >>confdefs.h <<_ACEOF
25412 #define PTHREAD_CREATE_JOINABLE $attr_name
25413 _ACEOF
25415 fi
25417 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
25418 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
25419 x_rflag=no
25420 case "${host_cpu}-${host_os}" in
25421 *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
25422 *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
25423 *-linux*)
25424 if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
25425 # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
25426 # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
25427 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
25428 fi;;
25429 esac
25430 { echo "$as_me:$LINENO: result: ${x_rflag}" >&5
25431 echo "${ECHO_T}${x_rflag}" >&6; }
25432 if test "x$x_rflag" != xno; then
25433 PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
25434 fi
25436 LIBS="$save_LIBS"
25437 CFLAGS="$save_CFLAGS"
25439 # More AIX lossage: must compile with cc_r
25440 # Extract the first word of "cc_r", so it can be a program name with args.
25441 set dummy cc_r; ac_word=$2
25442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25444 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
25446 else
25447 if test -n "$PTHREAD_CC"; then
25448 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
25449 else
25450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25451 for as_dir in $PATH
25452 do
25453 IFS=$as_save_IFS
25454 test -z "$as_dir" && as_dir=.
25455 for ac_exec_ext in '' $ac_executable_extensions; do
25456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25457 ac_cv_prog_PTHREAD_CC="cc_r"
25458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25459 break 2
25460 fi
25461 done
25462 done
25463 IFS=$as_save_IFS
25465 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
25466 fi
25467 fi
25468 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
25469 if test -n "$PTHREAD_CC"; then
25470 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
25471 echo "${ECHO_T}$PTHREAD_CC" >&6; }
25472 else
25473 { echo "$as_me:$LINENO: result: no" >&5
25474 echo "${ECHO_T}no" >&6; }
25475 fi
25478 else
25479 PTHREAD_CC="$CC"
25480 fi
25486 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
25487 if test x"$acx_pthread_ok" = xyes; then
25489 MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
25490 MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
25492 :
25493 else
25494 acx_pthread_ok=no
25496 fi
25497 ac_ext=c
25498 ac_cpp='$CPP $CPPFLAGS'
25499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25504 fi
25507 if test "x$x_rflag" != "xno"; then
25508 CPPFLAGS="$CPPFLAGS $x_rflag"
25509 fi
25513 if test $enable_pthread != no; then
25514 BUILD_MULTITHREAD_TRUE=
25515 BUILD_MULTITHREAD_FALSE='#'
25516 else
25517 BUILD_MULTITHREAD_TRUE='#'
25518 BUILD_MULTITHREAD_FALSE=
25519 fi
25522 ac_ext=c
25523 ac_cpp='$CPP $CPPFLAGS'
25524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25528 { echo "$as_me:$LINENO: checking do we need malloc/malloc.h" >&5
25529 echo $ECHO_N "checking do we need malloc/malloc.h... $ECHO_C" >&6; }
25530 cat >conftest.$ac_ext <<_ACEOF
25531 /* confdefs.h. */
25532 _ACEOF
25533 cat confdefs.h >>conftest.$ac_ext
25534 cat >>conftest.$ac_ext <<_ACEOF
25535 /* end confdefs.h. */
25536 #include <stdlib.h>
25537 int
25538 main ()
25539 {
25540 malloc(1)
25542 ;
25543 return 0;
25544 }
25545 _ACEOF
25546 rm -f conftest.$ac_objext conftest$ac_exeext
25547 if { (ac_try="$ac_link"
25548 case "(($ac_try" in
25549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25550 *) ac_try_echo=$ac_try;;
25551 esac
25552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25553 (eval "$ac_link") 2>conftest.er1
25554 ac_status=$?
25555 grep -v '^ *+' conftest.er1 >conftest.err
25556 rm -f conftest.er1
25557 cat conftest.err >&5
25558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); } && {
25560 test -z "$ac_c_werror_flag" ||
25561 test ! -s conftest.err
25562 } && test -s conftest$ac_exeext &&
25563 $as_test_x conftest$ac_exeext; then
25564 { echo "$as_me:$LINENO: result: nope, works out of the box" >&5
25565 echo "${ECHO_T}nope, works out of the box" >&6; }
25566 else
25567 echo "$as_me: failed program was:" >&5
25568 sed 's/^/| /' conftest.$ac_ext >&5
25570 cat >conftest.$ac_ext <<_ACEOF
25571 /* confdefs.h. */
25572 _ACEOF
25573 cat confdefs.h >>conftest.$ac_ext
25574 cat >>conftest.$ac_ext <<_ACEOF
25575 /* end confdefs.h. */
25576 #include <stdlib.h>
25577 #include <malloc/malloc.h>
25578 int
25579 main ()
25580 {
25581 malloc(1)
25583 ;
25584 return 0;
25585 }
25586 _ACEOF
25587 rm -f conftest.$ac_objext conftest$ac_exeext
25588 if { (ac_try="$ac_link"
25589 case "(($ac_try" in
25590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25591 *) ac_try_echo=$ac_try;;
25592 esac
25593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25594 (eval "$ac_link") 2>conftest.er1
25595 ac_status=$?
25596 grep -v '^ *+' conftest.er1 >conftest.err
25597 rm -f conftest.er1
25598 cat conftest.err >&5
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); } && {
25601 test -z "$ac_c_werror_flag" ||
25602 test ! -s conftest.err
25603 } && test -s conftest$ac_exeext &&
25604 $as_test_x conftest$ac_exeext; then
25605 cat >>confdefs.h <<\_ACEOF
25606 #define NEED_MALLOC_MALLOC_H 1
25607 _ACEOF
25609 { echo "$as_me:$LINENO: result: yes we do" >&5
25610 echo "${ECHO_T}yes we do" >&6; }
25611 else
25612 echo "$as_me: failed program was:" >&5
25613 sed 's/^/| /' conftest.$ac_ext >&5
25615 { { echo "$as_me:$LINENO: error: Can not figure how to compile malloc" >&5
25616 echo "$as_me: error: Can not figure how to compile malloc" >&2;}
25617 { (exit 1); exit 1; }; }
25619 fi
25621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25622 conftest$ac_exeext conftest.$ac_ext
25625 fi
25627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25628 conftest$ac_exeext conftest.$ac_ext
25629 ac_ext=c
25630 ac_cpp='$CPP $CPPFLAGS'
25631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25637 case $TERM in
25638 # for the most important terminal types we directly know the sequences
25639 xterm|xterm*|vt220|vt220*)
25640 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
25641 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
25642 ;;
25643 vt100|vt100*|cygwin)
25644 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
25645 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
25646 ;;
25647 *)
25648 T_MD=''
25649 T_ME=''
25650 ;;
25651 esac
25652 { echo "$as_me:$LINENO: result: " >&5
25653 echo "${ECHO_T}" >&6; }
25654 { echo "$as_me:$LINENO: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
25655 echo "${ECHO_T}${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
25661 if test $enable_rrdcgi != no; then
25662 BUILD_RRDCGI_TRUE=
25663 BUILD_RRDCGI_FALSE='#'
25664 else
25665 BUILD_RRDCGI_TRUE='#'
25666 BUILD_RRDCGI_FALSE=
25667 fi
25670 CORE_LIBS="$LIBS"
25673 ac_ext=c
25674 ac_cpp='$CPP $CPPFLAGS'
25675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25679 EX_CHECK_STATE=NO
25680 ex_check_save_LIBS=${LIBS}
25681 ex_check_save_CPPFLAGS=${CPPFLAGS}
25682 ex_check_save_LDFLAGS=${LDFLAGS}
25683 if test "x/usr/include/libart-2.0" != "x"; then
25684 CPPFLAGS="$CPPFLAGS -I/usr/include/libart-2.0"
25685 fi
25686 { echo "$as_me:$LINENO: checking for art_vpath_add_point in -lart_lgpl_2" >&5
25687 echo $ECHO_N "checking for art_vpath_add_point in -lart_lgpl_2... $ECHO_C" >&6; }
25688 if test "${ac_cv_lib_art_lgpl_2_art_vpath_add_point+set}" = set; then
25689 echo $ECHO_N "(cached) $ECHO_C" >&6
25690 else
25691 ac_check_lib_save_LIBS=$LIBS
25692 LIBS="-lart_lgpl_2 $LIBS"
25693 cat >conftest.$ac_ext <<_ACEOF
25694 /* confdefs.h. */
25695 _ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h. */
25700 /* Override any GCC internal prototype to avoid an error.
25701 Use char because int might match the return type of a GCC
25702 builtin and then its argument prototype would still apply. */
25703 #ifdef __cplusplus
25704 extern "C"
25705 #endif
25706 char art_vpath_add_point ();
25707 int
25708 main ()
25709 {
25710 return art_vpath_add_point ();
25711 ;
25712 return 0;
25713 }
25714 _ACEOF
25715 rm -f conftest.$ac_objext conftest$ac_exeext
25716 if { (ac_try="$ac_link"
25717 case "(($ac_try" in
25718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25719 *) ac_try_echo=$ac_try;;
25720 esac
25721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25722 (eval "$ac_link") 2>conftest.er1
25723 ac_status=$?
25724 grep -v '^ *+' conftest.er1 >conftest.err
25725 rm -f conftest.er1
25726 cat conftest.err >&5
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); } && {
25729 test -z "$ac_c_werror_flag" ||
25730 test ! -s conftest.err
25731 } && test -s conftest$ac_exeext &&
25732 $as_test_x conftest$ac_exeext; then
25733 ac_cv_lib_art_lgpl_2_art_vpath_add_point=yes
25734 else
25735 echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25738 ac_cv_lib_art_lgpl_2_art_vpath_add_point=no
25739 fi
25741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25742 conftest$ac_exeext conftest.$ac_ext
25743 LIBS=$ac_check_lib_save_LIBS
25744 fi
25745 { echo "$as_me:$LINENO: result: $ac_cv_lib_art_lgpl_2_art_vpath_add_point" >&5
25746 echo "${ECHO_T}$ac_cv_lib_art_lgpl_2_art_vpath_add_point" >&6; }
25747 if test $ac_cv_lib_art_lgpl_2_art_vpath_add_point = yes; then
25749 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
25750 { echo "$as_me:$LINENO: checking for libart_lgpl/libart.h" >&5
25751 echo $ECHO_N "checking for libart_lgpl/libart.h... $ECHO_C" >&6; }
25752 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
25753 echo $ECHO_N "(cached) $ECHO_C" >&6
25754 fi
25755 { echo "$as_me:$LINENO: result: $ac_cv_header_libart_lgpl_libart_h" >&5
25756 echo "${ECHO_T}$ac_cv_header_libart_lgpl_libart_h" >&6; }
25757 else
25758 # Is the header compilable?
25759 { echo "$as_me:$LINENO: checking libart_lgpl/libart.h usability" >&5
25760 echo $ECHO_N "checking libart_lgpl/libart.h usability... $ECHO_C" >&6; }
25761 cat >conftest.$ac_ext <<_ACEOF
25762 /* confdefs.h. */
25763 _ACEOF
25764 cat confdefs.h >>conftest.$ac_ext
25765 cat >>conftest.$ac_ext <<_ACEOF
25766 /* end confdefs.h. */
25767 $ac_includes_default
25768 #include <libart_lgpl/libart.h>
25769 _ACEOF
25770 rm -f conftest.$ac_objext
25771 if { (ac_try="$ac_compile"
25772 case "(($ac_try" in
25773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25774 *) ac_try_echo=$ac_try;;
25775 esac
25776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25777 (eval "$ac_compile") 2>conftest.er1
25778 ac_status=$?
25779 grep -v '^ *+' conftest.er1 >conftest.err
25780 rm -f conftest.er1
25781 cat conftest.err >&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); } && {
25784 test -z "$ac_c_werror_flag" ||
25785 test ! -s conftest.err
25786 } && test -s conftest.$ac_objext; then
25787 ac_header_compiler=yes
25788 else
25789 echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25792 ac_header_compiler=no
25793 fi
25795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25797 echo "${ECHO_T}$ac_header_compiler" >&6; }
25799 # Is the header present?
25800 { echo "$as_me:$LINENO: checking libart_lgpl/libart.h presence" >&5
25801 echo $ECHO_N "checking libart_lgpl/libart.h presence... $ECHO_C" >&6; }
25802 cat >conftest.$ac_ext <<_ACEOF
25803 /* confdefs.h. */
25804 _ACEOF
25805 cat confdefs.h >>conftest.$ac_ext
25806 cat >>conftest.$ac_ext <<_ACEOF
25807 /* end confdefs.h. */
25808 #include <libart_lgpl/libart.h>
25809 _ACEOF
25810 if { (ac_try="$ac_cpp conftest.$ac_ext"
25811 case "(($ac_try" in
25812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813 *) ac_try_echo=$ac_try;;
25814 esac
25815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25817 ac_status=$?
25818 grep -v '^ *+' conftest.er1 >conftest.err
25819 rm -f conftest.er1
25820 cat conftest.err >&5
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); } >/dev/null && {
25823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25824 test ! -s conftest.err
25825 }; then
25826 ac_header_preproc=yes
25827 else
25828 echo "$as_me: failed program was:" >&5
25829 sed 's/^/| /' conftest.$ac_ext >&5
25831 ac_header_preproc=no
25832 fi
25834 rm -f conftest.err conftest.$ac_ext
25835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25836 echo "${ECHO_T}$ac_header_preproc" >&6; }
25838 # So? What about this header?
25839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25840 yes:no: )
25841 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: accepted by the compiler, rejected by the preprocessor!" >&5
25842 echo "$as_me: WARNING: libart_lgpl/libart.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25843 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: proceeding with the compiler's result" >&5
25844 echo "$as_me: WARNING: libart_lgpl/libart.h: proceeding with the compiler's result" >&2;}
25845 ac_header_preproc=yes
25846 ;;
25847 no:yes:* )
25848 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: present but cannot be compiled" >&5
25849 echo "$as_me: WARNING: libart_lgpl/libart.h: present but cannot be compiled" >&2;}
25850 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: check for missing prerequisite headers?" >&5
25851 echo "$as_me: WARNING: libart_lgpl/libart.h: check for missing prerequisite headers?" >&2;}
25852 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: see the Autoconf documentation" >&5
25853 echo "$as_me: WARNING: libart_lgpl/libart.h: see the Autoconf documentation" >&2;}
25854 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: section \"Present But Cannot Be Compiled\"" >&5
25855 echo "$as_me: WARNING: libart_lgpl/libart.h: section \"Present But Cannot Be Compiled\"" >&2;}
25856 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&5
25857 echo "$as_me: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&2;}
25858 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: in the future, the compiler will take precedence" >&5
25859 echo "$as_me: WARNING: libart_lgpl/libart.h: in the future, the compiler will take precedence" >&2;}
25861 ;;
25862 esac
25863 { echo "$as_me:$LINENO: checking for libart_lgpl/libart.h" >&5
25864 echo $ECHO_N "checking for libart_lgpl/libart.h... $ECHO_C" >&6; }
25865 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
25866 echo $ECHO_N "(cached) $ECHO_C" >&6
25867 else
25868 ac_cv_header_libart_lgpl_libart_h=$ac_header_preproc
25869 fi
25870 { echo "$as_me:$LINENO: result: $ac_cv_header_libart_lgpl_libart_h" >&5
25871 echo "${ECHO_T}$ac_cv_header_libart_lgpl_libart_h" >&6; }
25873 fi
25874 if test $ac_cv_header_libart_lgpl_libart_h = yes; then
25875 LIBS="-lart_lgpl_2 ${LIBS}";EX_CHECK_STATE=YES
25876 fi
25879 fi
25881 if test $EX_CHECK_STATE = NO; then
25882 for ac_prog in pkg-config
25883 do
25884 # Extract the first word of "$ac_prog", so it can be a program name with args.
25885 set dummy $ac_prog; ac_word=$2
25886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25888 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
25889 echo $ECHO_N "(cached) $ECHO_C" >&6
25890 else
25891 if test -n "$PKGCONFIG"; then
25892 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
25893 else
25894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25895 for as_dir in $PATH
25896 do
25897 IFS=$as_save_IFS
25898 test -z "$as_dir" && as_dir=.
25899 for ac_exec_ext in '' $ac_executable_extensions; do
25900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25901 ac_cv_prog_PKGCONFIG="$ac_prog"
25902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25903 break 2
25904 fi
25905 done
25906 done
25907 IFS=$as_save_IFS
25909 fi
25910 fi
25911 PKGCONFIG=$ac_cv_prog_PKGCONFIG
25912 if test -n "$PKGCONFIG"; then
25913 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
25914 echo "${ECHO_T}$PKGCONFIG" >&6; }
25915 else
25916 { echo "$as_me:$LINENO: result: no" >&5
25917 echo "${ECHO_T}no" >&6; }
25918 fi
25921 test -n "$PKGCONFIG" && break
25922 done
25923 test -n "$PKGCONFIG" || PKGCONFIG="no"
25925 if test "$PKGCONFIG" != "no"; then
25926 if $PKGCONFIG --exists libart-2.0; then
25927 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libart-2.0`
25928 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libart-2.0`
25929 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libart-2.0`
25930 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libart-2.0`
25931 unset ac_cv_lib_art_lgpl_2_art_vpath_add_point
25932 { echo "$as_me:$LINENO: checking for art_vpath_add_point in -lart_lgpl_2" >&5
25933 echo $ECHO_N "checking for art_vpath_add_point in -lart_lgpl_2... $ECHO_C" >&6; }
25934 if test "${ac_cv_lib_art_lgpl_2_art_vpath_add_point+set}" = set; then
25935 echo $ECHO_N "(cached) $ECHO_C" >&6
25936 else
25937 ac_check_lib_save_LIBS=$LIBS
25938 LIBS="-lart_lgpl_2 $LIBS"
25939 cat >conftest.$ac_ext <<_ACEOF
25940 /* confdefs.h. */
25941 _ACEOF
25942 cat confdefs.h >>conftest.$ac_ext
25943 cat >>conftest.$ac_ext <<_ACEOF
25944 /* end confdefs.h. */
25946 /* Override any GCC internal prototype to avoid an error.
25947 Use char because int might match the return type of a GCC
25948 builtin and then its argument prototype would still apply. */
25949 #ifdef __cplusplus
25950 extern "C"
25951 #endif
25952 char art_vpath_add_point ();
25953 int
25954 main ()
25955 {
25956 return art_vpath_add_point ();
25957 ;
25958 return 0;
25959 }
25960 _ACEOF
25961 rm -f conftest.$ac_objext conftest$ac_exeext
25962 if { (ac_try="$ac_link"
25963 case "(($ac_try" in
25964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25965 *) ac_try_echo=$ac_try;;
25966 esac
25967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25968 (eval "$ac_link") 2>conftest.er1
25969 ac_status=$?
25970 grep -v '^ *+' conftest.er1 >conftest.err
25971 rm -f conftest.er1
25972 cat conftest.err >&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); } && {
25975 test -z "$ac_c_werror_flag" ||
25976 test ! -s conftest.err
25977 } && test -s conftest$ac_exeext &&
25978 $as_test_x conftest$ac_exeext; then
25979 ac_cv_lib_art_lgpl_2_art_vpath_add_point=yes
25980 else
25981 echo "$as_me: failed program was:" >&5
25982 sed 's/^/| /' conftest.$ac_ext >&5
25984 ac_cv_lib_art_lgpl_2_art_vpath_add_point=no
25985 fi
25987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25988 conftest$ac_exeext conftest.$ac_ext
25989 LIBS=$ac_check_lib_save_LIBS
25990 fi
25991 { echo "$as_me:$LINENO: result: $ac_cv_lib_art_lgpl_2_art_vpath_add_point" >&5
25992 echo "${ECHO_T}$ac_cv_lib_art_lgpl_2_art_vpath_add_point" >&6; }
25993 if test $ac_cv_lib_art_lgpl_2_art_vpath_add_point = yes; then
25995 unset ac_cv_header_`echo libart_lgpl/libart.h | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
25996 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
25997 { echo "$as_me:$LINENO: checking for libart_lgpl/libart.h" >&5
25998 echo $ECHO_N "checking for libart_lgpl/libart.h... $ECHO_C" >&6; }
25999 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
26000 echo $ECHO_N "(cached) $ECHO_C" >&6
26001 fi
26002 { echo "$as_me:$LINENO: result: $ac_cv_header_libart_lgpl_libart_h" >&5
26003 echo "${ECHO_T}$ac_cv_header_libart_lgpl_libart_h" >&6; }
26004 else
26005 # Is the header compilable?
26006 { echo "$as_me:$LINENO: checking libart_lgpl/libart.h usability" >&5
26007 echo $ECHO_N "checking libart_lgpl/libart.h usability... $ECHO_C" >&6; }
26008 cat >conftest.$ac_ext <<_ACEOF
26009 /* confdefs.h. */
26010 _ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 $ac_includes_default
26015 #include <libart_lgpl/libart.h>
26016 _ACEOF
26017 rm -f conftest.$ac_objext
26018 if { (ac_try="$ac_compile"
26019 case "(($ac_try" in
26020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021 *) ac_try_echo=$ac_try;;
26022 esac
26023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26024 (eval "$ac_compile") 2>conftest.er1
26025 ac_status=$?
26026 grep -v '^ *+' conftest.er1 >conftest.err
26027 rm -f conftest.er1
26028 cat conftest.err >&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); } && {
26031 test -z "$ac_c_werror_flag" ||
26032 test ! -s conftest.err
26033 } && test -s conftest.$ac_objext; then
26034 ac_header_compiler=yes
26035 else
26036 echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26039 ac_header_compiler=no
26040 fi
26042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26044 echo "${ECHO_T}$ac_header_compiler" >&6; }
26046 # Is the header present?
26047 { echo "$as_me:$LINENO: checking libart_lgpl/libart.h presence" >&5
26048 echo $ECHO_N "checking libart_lgpl/libart.h presence... $ECHO_C" >&6; }
26049 cat >conftest.$ac_ext <<_ACEOF
26050 /* confdefs.h. */
26051 _ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
26054 /* end confdefs.h. */
26055 #include <libart_lgpl/libart.h>
26056 _ACEOF
26057 if { (ac_try="$ac_cpp conftest.$ac_ext"
26058 case "(($ac_try" in
26059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26060 *) ac_try_echo=$ac_try;;
26061 esac
26062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26064 ac_status=$?
26065 grep -v '^ *+' conftest.er1 >conftest.err
26066 rm -f conftest.er1
26067 cat conftest.err >&5
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } >/dev/null && {
26070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26071 test ! -s conftest.err
26072 }; then
26073 ac_header_preproc=yes
26074 else
26075 echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26078 ac_header_preproc=no
26079 fi
26081 rm -f conftest.err conftest.$ac_ext
26082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26083 echo "${ECHO_T}$ac_header_preproc" >&6; }
26085 # So? What about this header?
26086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26087 yes:no: )
26088 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: accepted by the compiler, rejected by the preprocessor!" >&5
26089 echo "$as_me: WARNING: libart_lgpl/libart.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26090 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: proceeding with the compiler's result" >&5
26091 echo "$as_me: WARNING: libart_lgpl/libart.h: proceeding with the compiler's result" >&2;}
26092 ac_header_preproc=yes
26093 ;;
26094 no:yes:* )
26095 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: present but cannot be compiled" >&5
26096 echo "$as_me: WARNING: libart_lgpl/libart.h: present but cannot be compiled" >&2;}
26097 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: check for missing prerequisite headers?" >&5
26098 echo "$as_me: WARNING: libart_lgpl/libart.h: check for missing prerequisite headers?" >&2;}
26099 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: see the Autoconf documentation" >&5
26100 echo "$as_me: WARNING: libart_lgpl/libart.h: see the Autoconf documentation" >&2;}
26101 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: section \"Present But Cannot Be Compiled\"" >&5
26102 echo "$as_me: WARNING: libart_lgpl/libart.h: section \"Present But Cannot Be Compiled\"" >&2;}
26103 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&5
26104 echo "$as_me: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&2;}
26105 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: in the future, the compiler will take precedence" >&5
26106 echo "$as_me: WARNING: libart_lgpl/libart.h: in the future, the compiler will take precedence" >&2;}
26108 ;;
26109 esac
26110 { echo "$as_me:$LINENO: checking for libart_lgpl/libart.h" >&5
26111 echo $ECHO_N "checking for libart_lgpl/libart.h... $ECHO_C" >&6; }
26112 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
26113 echo $ECHO_N "(cached) $ECHO_C" >&6
26114 else
26115 ac_cv_header_libart_lgpl_libart_h=$ac_header_preproc
26116 fi
26117 { echo "$as_me:$LINENO: result: $ac_cv_header_libart_lgpl_libart_h" >&5
26118 echo "${ECHO_T}$ac_cv_header_libart_lgpl_libart_h" >&6; }
26120 fi
26121 if test $ac_cv_header_libart_lgpl_libart_h = yes; then
26122 EX_CHECK_STATE=YES
26123 fi
26127 fi
26129 else
26130 { echo "$as_me:$LINENO: WARNING:
26131 ----------------------------------------------------------------------------
26132 * I found a copy of pkgconfig, but there is no libart-2.0.pc file around.
26133 You may want to set the PKG_CONFIG_PATH variable to point to its
26134 location.
26135 ----------------------------------------------------------------------------
26136 " >&5
26137 echo "$as_me: WARNING:
26138 ----------------------------------------------------------------------------
26139 * I found a copy of pkgconfig, but there is no libart-2.0.pc file around.
26140 You may want to set the PKG_CONFIG_PATH variable to point to its
26141 location.
26142 ----------------------------------------------------------------------------
26143 " >&2;}
26144 fi
26145 fi
26146 fi
26148 if test ${EX_CHECK_STATE} = NO; then
26149 { echo "$as_me:$LINENO: WARNING:
26150 ----------------------------------------------------------------------------
26151 * I could not find a working copy of libart-2.0. Check config.log for hints on why
26152 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26153 so that compiler and the linker can find libart_lgpl_2 and its header files. If
26154 you have not installed libart-2.0, you can get it either from its original home on
26156 ftp://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/2.3/
26158 You can find also find an archive copy on
26160 http://oss.oetiker.ch/rrdtool/pub/libs
26162 The last tested version of libart-2.0 is 2.3.17.
26164 LIBS=$LIBS
26165 LDFLAGS=$LDFLAGS
26166 CPPFLAGS=$CPPFLAGS
26168 ----------------------------------------------------------------------------
26169 " >&5
26170 echo "$as_me: WARNING:
26171 ----------------------------------------------------------------------------
26172 * I could not find a working copy of libart-2.0. Check config.log for hints on why
26173 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26174 so that compiler and the linker can find libart_lgpl_2 and its header files. If
26175 you have not installed libart-2.0, you can get it either from its original home on
26177 ftp://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/2.3/
26179 You can find also find an archive copy on
26181 http://oss.oetiker.ch/rrdtool/pub/libs
26183 The last tested version of libart-2.0 is 2.3.17.
26185 LIBS=$LIBS
26186 LDFLAGS=$LDFLAGS
26187 CPPFLAGS=$CPPFLAGS
26189 ----------------------------------------------------------------------------
26190 " >&2;}
26191 EX_CHECK_ALL_ERR=YES
26192 LIBS="${ex_check_save_LIBS}"
26193 CPPFLAGS="${ex_check_save_CPPFLAGS}"
26194 LDFLAGS="${ex_check_save_LDFLAGS}"
26195 fi
26196 ac_ext=c
26197 ac_cpp='$CPP $CPPFLAGS'
26198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26205 ac_ext=c
26206 ac_cpp='$CPP $CPPFLAGS'
26207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26211 EX_CHECK_STATE=NO
26212 ex_check_save_LIBS=${LIBS}
26213 ex_check_save_CPPFLAGS=${CPPFLAGS}
26214 ex_check_save_LDFLAGS=${LDFLAGS}
26215 if test "x""" != "x"; then
26216 CPPFLAGS="$CPPFLAGS -I"""
26217 fi
26218 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
26219 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
26220 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
26221 echo $ECHO_N "(cached) $ECHO_C" >&6
26222 else
26223 ac_check_lib_save_LIBS=$LIBS
26224 LIBS="-lz $LIBS"
26225 cat >conftest.$ac_ext <<_ACEOF
26226 /* confdefs.h. */
26227 _ACEOF
26228 cat confdefs.h >>conftest.$ac_ext
26229 cat >>conftest.$ac_ext <<_ACEOF
26230 /* end confdefs.h. */
26232 /* Override any GCC internal prototype to avoid an error.
26233 Use char because int might match the return type of a GCC
26234 builtin and then its argument prototype would still apply. */
26235 #ifdef __cplusplus
26236 extern "C"
26237 #endif
26238 char zlibVersion ();
26239 int
26240 main ()
26241 {
26242 return zlibVersion ();
26243 ;
26244 return 0;
26245 }
26246 _ACEOF
26247 rm -f conftest.$ac_objext conftest$ac_exeext
26248 if { (ac_try="$ac_link"
26249 case "(($ac_try" in
26250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26251 *) ac_try_echo=$ac_try;;
26252 esac
26253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26254 (eval "$ac_link") 2>conftest.er1
26255 ac_status=$?
26256 grep -v '^ *+' conftest.er1 >conftest.err
26257 rm -f conftest.er1
26258 cat conftest.err >&5
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); } && {
26261 test -z "$ac_c_werror_flag" ||
26262 test ! -s conftest.err
26263 } && test -s conftest$ac_exeext &&
26264 $as_test_x conftest$ac_exeext; then
26265 ac_cv_lib_z_zlibVersion=yes
26266 else
26267 echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26270 ac_cv_lib_z_zlibVersion=no
26271 fi
26273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26274 conftest$ac_exeext conftest.$ac_ext
26275 LIBS=$ac_check_lib_save_LIBS
26276 fi
26277 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
26278 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
26279 if test $ac_cv_lib_z_zlibVersion = yes; then
26281 if test "${ac_cv_header_zlib_h+set}" = set; then
26282 { echo "$as_me:$LINENO: checking for zlib.h" >&5
26283 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26284 if test "${ac_cv_header_zlib_h+set}" = set; then
26285 echo $ECHO_N "(cached) $ECHO_C" >&6
26286 fi
26287 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26288 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26289 else
26290 # Is the header compilable?
26291 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
26292 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
26293 cat >conftest.$ac_ext <<_ACEOF
26294 /* confdefs.h. */
26295 _ACEOF
26296 cat confdefs.h >>conftest.$ac_ext
26297 cat >>conftest.$ac_ext <<_ACEOF
26298 /* end confdefs.h. */
26299 $ac_includes_default
26300 #include <zlib.h>
26301 _ACEOF
26302 rm -f conftest.$ac_objext
26303 if { (ac_try="$ac_compile"
26304 case "(($ac_try" in
26305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26306 *) ac_try_echo=$ac_try;;
26307 esac
26308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26309 (eval "$ac_compile") 2>conftest.er1
26310 ac_status=$?
26311 grep -v '^ *+' conftest.er1 >conftest.err
26312 rm -f conftest.er1
26313 cat conftest.err >&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); } && {
26316 test -z "$ac_c_werror_flag" ||
26317 test ! -s conftest.err
26318 } && test -s conftest.$ac_objext; then
26319 ac_header_compiler=yes
26320 else
26321 echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26324 ac_header_compiler=no
26325 fi
26327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26329 echo "${ECHO_T}$ac_header_compiler" >&6; }
26331 # Is the header present?
26332 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
26333 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
26334 cat >conftest.$ac_ext <<_ACEOF
26335 /* confdefs.h. */
26336 _ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h. */
26340 #include <zlib.h>
26341 _ACEOF
26342 if { (ac_try="$ac_cpp conftest.$ac_ext"
26343 case "(($ac_try" in
26344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26345 *) ac_try_echo=$ac_try;;
26346 esac
26347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26349 ac_status=$?
26350 grep -v '^ *+' conftest.er1 >conftest.err
26351 rm -f conftest.er1
26352 cat conftest.err >&5
26353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); } >/dev/null && {
26355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26356 test ! -s conftest.err
26357 }; then
26358 ac_header_preproc=yes
26359 else
26360 echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26363 ac_header_preproc=no
26364 fi
26366 rm -f conftest.err conftest.$ac_ext
26367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26368 echo "${ECHO_T}$ac_header_preproc" >&6; }
26370 # So? What about this header?
26371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26372 yes:no: )
26373 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26374 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26375 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
26376 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
26377 ac_header_preproc=yes
26378 ;;
26379 no:yes:* )
26380 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
26381 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
26383 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
26385 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
26387 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26388 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
26389 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
26390 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
26391 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
26393 ;;
26394 esac
26395 { echo "$as_me:$LINENO: checking for zlib.h" >&5
26396 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26397 if test "${ac_cv_header_zlib_h+set}" = set; then
26398 echo $ECHO_N "(cached) $ECHO_C" >&6
26399 else
26400 ac_cv_header_zlib_h=$ac_header_preproc
26401 fi
26402 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26403 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26405 fi
26406 if test $ac_cv_header_zlib_h = yes; then
26407 LIBS="-lz ${LIBS}";EX_CHECK_STATE=YES
26408 fi
26411 fi
26413 if test $EX_CHECK_STATE = NO; then
26414 for ac_prog in pkg-config
26415 do
26416 # Extract the first word of "$ac_prog", so it can be a program name with args.
26417 set dummy $ac_prog; ac_word=$2
26418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26420 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
26421 echo $ECHO_N "(cached) $ECHO_C" >&6
26422 else
26423 if test -n "$PKGCONFIG"; then
26424 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
26425 else
26426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26427 for as_dir in $PATH
26428 do
26429 IFS=$as_save_IFS
26430 test -z "$as_dir" && as_dir=.
26431 for ac_exec_ext in '' $ac_executable_extensions; do
26432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26433 ac_cv_prog_PKGCONFIG="$ac_prog"
26434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26435 break 2
26436 fi
26437 done
26438 done
26439 IFS=$as_save_IFS
26441 fi
26442 fi
26443 PKGCONFIG=$ac_cv_prog_PKGCONFIG
26444 if test -n "$PKGCONFIG"; then
26445 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
26446 echo "${ECHO_T}$PKGCONFIG" >&6; }
26447 else
26448 { echo "$as_me:$LINENO: result: no" >&5
26449 echo "${ECHO_T}no" >&6; }
26450 fi
26453 test -n "$PKGCONFIG" && break
26454 done
26455 test -n "$PKGCONFIG" || PKGCONFIG="no"
26457 if test "$PKGCONFIG" != "no"; then
26458 if $PKGCONFIG --exists zlib; then
26459 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags zlib`
26460 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L zlib`
26461 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other zlib`
26462 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l zlib`
26463 unset ac_cv_lib_z_zlibVersion
26464 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
26465 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
26466 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
26467 echo $ECHO_N "(cached) $ECHO_C" >&6
26468 else
26469 ac_check_lib_save_LIBS=$LIBS
26470 LIBS="-lz $LIBS"
26471 cat >conftest.$ac_ext <<_ACEOF
26472 /* confdefs.h. */
26473 _ACEOF
26474 cat confdefs.h >>conftest.$ac_ext
26475 cat >>conftest.$ac_ext <<_ACEOF
26476 /* end confdefs.h. */
26478 /* Override any GCC internal prototype to avoid an error.
26479 Use char because int might match the return type of a GCC
26480 builtin and then its argument prototype would still apply. */
26481 #ifdef __cplusplus
26482 extern "C"
26483 #endif
26484 char zlibVersion ();
26485 int
26486 main ()
26487 {
26488 return zlibVersion ();
26489 ;
26490 return 0;
26491 }
26492 _ACEOF
26493 rm -f conftest.$ac_objext conftest$ac_exeext
26494 if { (ac_try="$ac_link"
26495 case "(($ac_try" in
26496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497 *) ac_try_echo=$ac_try;;
26498 esac
26499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26500 (eval "$ac_link") 2>conftest.er1
26501 ac_status=$?
26502 grep -v '^ *+' conftest.er1 >conftest.err
26503 rm -f conftest.er1
26504 cat conftest.err >&5
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); } && {
26507 test -z "$ac_c_werror_flag" ||
26508 test ! -s conftest.err
26509 } && test -s conftest$ac_exeext &&
26510 $as_test_x conftest$ac_exeext; then
26511 ac_cv_lib_z_zlibVersion=yes
26512 else
26513 echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26516 ac_cv_lib_z_zlibVersion=no
26517 fi
26519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26520 conftest$ac_exeext conftest.$ac_ext
26521 LIBS=$ac_check_lib_save_LIBS
26522 fi
26523 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
26524 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
26525 if test $ac_cv_lib_z_zlibVersion = yes; then
26527 unset ac_cv_header_`echo zlib.h | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
26528 if test "${ac_cv_header_zlib_h+set}" = set; then
26529 { echo "$as_me:$LINENO: checking for zlib.h" >&5
26530 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26531 if test "${ac_cv_header_zlib_h+set}" = set; then
26532 echo $ECHO_N "(cached) $ECHO_C" >&6
26533 fi
26534 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26535 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26536 else
26537 # Is the header compilable?
26538 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
26539 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
26540 cat >conftest.$ac_ext <<_ACEOF
26541 /* confdefs.h. */
26542 _ACEOF
26543 cat confdefs.h >>conftest.$ac_ext
26544 cat >>conftest.$ac_ext <<_ACEOF
26545 /* end confdefs.h. */
26546 $ac_includes_default
26547 #include <zlib.h>
26548 _ACEOF
26549 rm -f conftest.$ac_objext
26550 if { (ac_try="$ac_compile"
26551 case "(($ac_try" in
26552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26553 *) ac_try_echo=$ac_try;;
26554 esac
26555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26556 (eval "$ac_compile") 2>conftest.er1
26557 ac_status=$?
26558 grep -v '^ *+' conftest.er1 >conftest.err
26559 rm -f conftest.er1
26560 cat conftest.err >&5
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); } && {
26563 test -z "$ac_c_werror_flag" ||
26564 test ! -s conftest.err
26565 } && test -s conftest.$ac_objext; then
26566 ac_header_compiler=yes
26567 else
26568 echo "$as_me: failed program was:" >&5
26569 sed 's/^/| /' conftest.$ac_ext >&5
26571 ac_header_compiler=no
26572 fi
26574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26576 echo "${ECHO_T}$ac_header_compiler" >&6; }
26578 # Is the header present?
26579 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
26580 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
26581 cat >conftest.$ac_ext <<_ACEOF
26582 /* confdefs.h. */
26583 _ACEOF
26584 cat confdefs.h >>conftest.$ac_ext
26585 cat >>conftest.$ac_ext <<_ACEOF
26586 /* end confdefs.h. */
26587 #include <zlib.h>
26588 _ACEOF
26589 if { (ac_try="$ac_cpp conftest.$ac_ext"
26590 case "(($ac_try" in
26591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26592 *) ac_try_echo=$ac_try;;
26593 esac
26594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26596 ac_status=$?
26597 grep -v '^ *+' conftest.er1 >conftest.err
26598 rm -f conftest.er1
26599 cat conftest.err >&5
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); } >/dev/null && {
26602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26603 test ! -s conftest.err
26604 }; then
26605 ac_header_preproc=yes
26606 else
26607 echo "$as_me: failed program was:" >&5
26608 sed 's/^/| /' conftest.$ac_ext >&5
26610 ac_header_preproc=no
26611 fi
26613 rm -f conftest.err conftest.$ac_ext
26614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26615 echo "${ECHO_T}$ac_header_preproc" >&6; }
26617 # So? What about this header?
26618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26619 yes:no: )
26620 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26621 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26622 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
26623 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
26624 ac_header_preproc=yes
26625 ;;
26626 no:yes:* )
26627 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
26628 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
26629 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
26630 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
26631 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
26632 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
26633 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
26634 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26635 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
26636 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
26637 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
26638 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
26640 ;;
26641 esac
26642 { echo "$as_me:$LINENO: checking for zlib.h" >&5
26643 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26644 if test "${ac_cv_header_zlib_h+set}" = set; then
26645 echo $ECHO_N "(cached) $ECHO_C" >&6
26646 else
26647 ac_cv_header_zlib_h=$ac_header_preproc
26648 fi
26649 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26650 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26652 fi
26653 if test $ac_cv_header_zlib_h = yes; then
26654 EX_CHECK_STATE=YES
26655 fi
26659 fi
26661 else
26662 { echo "$as_me:$LINENO: WARNING:
26663 ----------------------------------------------------------------------------
26664 * I found a copy of pkgconfig, but there is no zlib.pc file around.
26665 You may want to set the PKG_CONFIG_PATH variable to point to its
26666 location.
26667 ----------------------------------------------------------------------------
26668 " >&5
26669 echo "$as_me: WARNING:
26670 ----------------------------------------------------------------------------
26671 * I found a copy of pkgconfig, but there is no zlib.pc file around.
26672 You may want to set the PKG_CONFIG_PATH variable to point to its
26673 location.
26674 ----------------------------------------------------------------------------
26675 " >&2;}
26676 fi
26677 fi
26678 fi
26680 if test ${EX_CHECK_STATE} = NO; then
26681 { echo "$as_me:$LINENO: WARNING:
26682 ----------------------------------------------------------------------------
26683 * I could not find a working copy of zlib. Check config.log for hints on why
26684 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26685 so that compiler and the linker can find libz and its header files. If
26686 you have not installed zlib, you can get it either from its original home on
26688 http://www.gzip.org/zlib/
26690 You can find also find an archive copy on
26692 http://oss.oetiker.ch/rrdtool/pub/libs
26694 The last tested version of zlib is 1.2.3.
26696 LIBS=$LIBS
26697 LDFLAGS=$LDFLAGS
26698 CPPFLAGS=$CPPFLAGS
26700 ----------------------------------------------------------------------------
26701 " >&5
26702 echo "$as_me: WARNING:
26703 ----------------------------------------------------------------------------
26704 * I could not find a working copy of zlib. Check config.log for hints on why
26705 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26706 so that compiler and the linker can find libz and its header files. If
26707 you have not installed zlib, you can get it either from its original home on
26709 http://www.gzip.org/zlib/
26711 You can find also find an archive copy on
26713 http://oss.oetiker.ch/rrdtool/pub/libs
26715 The last tested version of zlib is 1.2.3.
26717 LIBS=$LIBS
26718 LDFLAGS=$LDFLAGS
26719 CPPFLAGS=$CPPFLAGS
26721 ----------------------------------------------------------------------------
26722 " >&2;}
26723 EX_CHECK_ALL_ERR=YES
26724 LIBS="${ex_check_save_LIBS}"
26725 CPPFLAGS="${ex_check_save_CPPFLAGS}"
26726 LDFLAGS="${ex_check_save_LDFLAGS}"
26727 fi
26728 ac_ext=c
26729 ac_cpp='$CPP $CPPFLAGS'
26730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26737 ac_ext=c
26738 ac_cpp='$CPP $CPPFLAGS'
26739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26743 EX_CHECK_STATE=NO
26744 ex_check_save_LIBS=${LIBS}
26745 ex_check_save_CPPFLAGS=${CPPFLAGS}
26746 ex_check_save_LDFLAGS=${LDFLAGS}
26747 if test "x""" != "x"; then
26748 CPPFLAGS="$CPPFLAGS -I"""
26749 fi
26750 { echo "$as_me:$LINENO: checking for png_access_version_number in -lpng" >&5
26751 echo $ECHO_N "checking for png_access_version_number in -lpng... $ECHO_C" >&6; }
26752 if test "${ac_cv_lib_png_png_access_version_number+set}" = set; then
26753 echo $ECHO_N "(cached) $ECHO_C" >&6
26754 else
26755 ac_check_lib_save_LIBS=$LIBS
26756 LIBS="-lpng $LIBS"
26757 cat >conftest.$ac_ext <<_ACEOF
26758 /* confdefs.h. */
26759 _ACEOF
26760 cat confdefs.h >>conftest.$ac_ext
26761 cat >>conftest.$ac_ext <<_ACEOF
26762 /* end confdefs.h. */
26764 /* Override any GCC internal prototype to avoid an error.
26765 Use char because int might match the return type of a GCC
26766 builtin and then its argument prototype would still apply. */
26767 #ifdef __cplusplus
26768 extern "C"
26769 #endif
26770 char png_access_version_number ();
26771 int
26772 main ()
26773 {
26774 return png_access_version_number ();
26775 ;
26776 return 0;
26777 }
26778 _ACEOF
26779 rm -f conftest.$ac_objext conftest$ac_exeext
26780 if { (ac_try="$ac_link"
26781 case "(($ac_try" in
26782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26783 *) ac_try_echo=$ac_try;;
26784 esac
26785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26786 (eval "$ac_link") 2>conftest.er1
26787 ac_status=$?
26788 grep -v '^ *+' conftest.er1 >conftest.err
26789 rm -f conftest.er1
26790 cat conftest.err >&5
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); } && {
26793 test -z "$ac_c_werror_flag" ||
26794 test ! -s conftest.err
26795 } && test -s conftest$ac_exeext &&
26796 $as_test_x conftest$ac_exeext; then
26797 ac_cv_lib_png_png_access_version_number=yes
26798 else
26799 echo "$as_me: failed program was:" >&5
26800 sed 's/^/| /' conftest.$ac_ext >&5
26802 ac_cv_lib_png_png_access_version_number=no
26803 fi
26805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26806 conftest$ac_exeext conftest.$ac_ext
26807 LIBS=$ac_check_lib_save_LIBS
26808 fi
26809 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_access_version_number" >&5
26810 echo "${ECHO_T}$ac_cv_lib_png_png_access_version_number" >&6; }
26811 if test $ac_cv_lib_png_png_access_version_number = yes; then
26813 if test "${ac_cv_header_png_h+set}" = set; then
26814 { echo "$as_me:$LINENO: checking for png.h" >&5
26815 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26816 if test "${ac_cv_header_png_h+set}" = set; then
26817 echo $ECHO_N "(cached) $ECHO_C" >&6
26818 fi
26819 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26820 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26821 else
26822 # Is the header compilable?
26823 { echo "$as_me:$LINENO: checking png.h usability" >&5
26824 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
26825 cat >conftest.$ac_ext <<_ACEOF
26826 /* confdefs.h. */
26827 _ACEOF
26828 cat confdefs.h >>conftest.$ac_ext
26829 cat >>conftest.$ac_ext <<_ACEOF
26830 /* end confdefs.h. */
26831 $ac_includes_default
26832 #include <png.h>
26833 _ACEOF
26834 rm -f conftest.$ac_objext
26835 if { (ac_try="$ac_compile"
26836 case "(($ac_try" in
26837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26838 *) ac_try_echo=$ac_try;;
26839 esac
26840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26841 (eval "$ac_compile") 2>conftest.er1
26842 ac_status=$?
26843 grep -v '^ *+' conftest.er1 >conftest.err
26844 rm -f conftest.er1
26845 cat conftest.err >&5
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); } && {
26848 test -z "$ac_c_werror_flag" ||
26849 test ! -s conftest.err
26850 } && test -s conftest.$ac_objext; then
26851 ac_header_compiler=yes
26852 else
26853 echo "$as_me: failed program was:" >&5
26854 sed 's/^/| /' conftest.$ac_ext >&5
26856 ac_header_compiler=no
26857 fi
26859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26861 echo "${ECHO_T}$ac_header_compiler" >&6; }
26863 # Is the header present?
26864 { echo "$as_me:$LINENO: checking png.h presence" >&5
26865 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
26866 cat >conftest.$ac_ext <<_ACEOF
26867 /* confdefs.h. */
26868 _ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h. */
26872 #include <png.h>
26873 _ACEOF
26874 if { (ac_try="$ac_cpp conftest.$ac_ext"
26875 case "(($ac_try" in
26876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26877 *) ac_try_echo=$ac_try;;
26878 esac
26879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26881 ac_status=$?
26882 grep -v '^ *+' conftest.er1 >conftest.err
26883 rm -f conftest.er1
26884 cat conftest.err >&5
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); } >/dev/null && {
26887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26888 test ! -s conftest.err
26889 }; then
26890 ac_header_preproc=yes
26891 else
26892 echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.$ac_ext >&5
26895 ac_header_preproc=no
26896 fi
26898 rm -f conftest.err conftest.$ac_ext
26899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26900 echo "${ECHO_T}$ac_header_preproc" >&6; }
26902 # So? What about this header?
26903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26904 yes:no: )
26905 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
26906 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26907 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
26908 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
26909 ac_header_preproc=yes
26910 ;;
26911 no:yes:* )
26912 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
26913 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
26914 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
26915 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
26916 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
26917 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
26918 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
26919 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
26920 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
26921 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
26922 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
26923 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
26925 ;;
26926 esac
26927 { echo "$as_me:$LINENO: checking for png.h" >&5
26928 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26929 if test "${ac_cv_header_png_h+set}" = set; then
26930 echo $ECHO_N "(cached) $ECHO_C" >&6
26931 else
26932 ac_cv_header_png_h=$ac_header_preproc
26933 fi
26934 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26935 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26937 fi
26938 if test $ac_cv_header_png_h = yes; then
26939 LIBS="-lpng ${LIBS}";EX_CHECK_STATE=YES
26940 fi
26943 fi
26945 if test $EX_CHECK_STATE = NO; then
26946 for ac_prog in pkg-config
26947 do
26948 # Extract the first word of "$ac_prog", so it can be a program name with args.
26949 set dummy $ac_prog; ac_word=$2
26950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26952 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
26953 echo $ECHO_N "(cached) $ECHO_C" >&6
26954 else
26955 if test -n "$PKGCONFIG"; then
26956 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
26957 else
26958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26959 for as_dir in $PATH
26960 do
26961 IFS=$as_save_IFS
26962 test -z "$as_dir" && as_dir=.
26963 for ac_exec_ext in '' $ac_executable_extensions; do
26964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26965 ac_cv_prog_PKGCONFIG="$ac_prog"
26966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26967 break 2
26968 fi
26969 done
26970 done
26971 IFS=$as_save_IFS
26973 fi
26974 fi
26975 PKGCONFIG=$ac_cv_prog_PKGCONFIG
26976 if test -n "$PKGCONFIG"; then
26977 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
26978 echo "${ECHO_T}$PKGCONFIG" >&6; }
26979 else
26980 { echo "$as_me:$LINENO: result: no" >&5
26981 echo "${ECHO_T}no" >&6; }
26982 fi
26985 test -n "$PKGCONFIG" && break
26986 done
26987 test -n "$PKGCONFIG" || PKGCONFIG="no"
26989 if test "$PKGCONFIG" != "no"; then
26990 if $PKGCONFIG --exists libpng; then
26991 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libpng`
26992 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libpng`
26993 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libpng`
26994 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libpng`
26995 unset ac_cv_lib_png_png_access_version_number
26996 { echo "$as_me:$LINENO: checking for png_access_version_number in -lpng" >&5
26997 echo $ECHO_N "checking for png_access_version_number in -lpng... $ECHO_C" >&6; }
26998 if test "${ac_cv_lib_png_png_access_version_number+set}" = set; then
26999 echo $ECHO_N "(cached) $ECHO_C" >&6
27000 else
27001 ac_check_lib_save_LIBS=$LIBS
27002 LIBS="-lpng $LIBS"
27003 cat >conftest.$ac_ext <<_ACEOF
27004 /* confdefs.h. */
27005 _ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h. */
27010 /* Override any GCC internal prototype to avoid an error.
27011 Use char because int might match the return type of a GCC
27012 builtin and then its argument prototype would still apply. */
27013 #ifdef __cplusplus
27014 extern "C"
27015 #endif
27016 char png_access_version_number ();
27017 int
27018 main ()
27019 {
27020 return png_access_version_number ();
27021 ;
27022 return 0;
27023 }
27024 _ACEOF
27025 rm -f conftest.$ac_objext conftest$ac_exeext
27026 if { (ac_try="$ac_link"
27027 case "(($ac_try" in
27028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27029 *) ac_try_echo=$ac_try;;
27030 esac
27031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27032 (eval "$ac_link") 2>conftest.er1
27033 ac_status=$?
27034 grep -v '^ *+' conftest.er1 >conftest.err
27035 rm -f conftest.er1
27036 cat conftest.err >&5
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); } && {
27039 test -z "$ac_c_werror_flag" ||
27040 test ! -s conftest.err
27041 } && test -s conftest$ac_exeext &&
27042 $as_test_x conftest$ac_exeext; then
27043 ac_cv_lib_png_png_access_version_number=yes
27044 else
27045 echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27048 ac_cv_lib_png_png_access_version_number=no
27049 fi
27051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27052 conftest$ac_exeext conftest.$ac_ext
27053 LIBS=$ac_check_lib_save_LIBS
27054 fi
27055 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_access_version_number" >&5
27056 echo "${ECHO_T}$ac_cv_lib_png_png_access_version_number" >&6; }
27057 if test $ac_cv_lib_png_png_access_version_number = yes; then
27059 unset ac_cv_header_`echo png.h | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
27060 if test "${ac_cv_header_png_h+set}" = set; then
27061 { echo "$as_me:$LINENO: checking for png.h" >&5
27062 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
27063 if test "${ac_cv_header_png_h+set}" = set; then
27064 echo $ECHO_N "(cached) $ECHO_C" >&6
27065 fi
27066 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27067 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
27068 else
27069 # Is the header compilable?
27070 { echo "$as_me:$LINENO: checking png.h usability" >&5
27071 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
27072 cat >conftest.$ac_ext <<_ACEOF
27073 /* confdefs.h. */
27074 _ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h. */
27078 $ac_includes_default
27079 #include <png.h>
27080 _ACEOF
27081 rm -f conftest.$ac_objext
27082 if { (ac_try="$ac_compile"
27083 case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27086 esac
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088 (eval "$ac_compile") 2>conftest.er1
27089 ac_status=$?
27090 grep -v '^ *+' conftest.er1 >conftest.err
27091 rm -f conftest.er1
27092 cat conftest.err >&5
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); } && {
27095 test -z "$ac_c_werror_flag" ||
27096 test ! -s conftest.err
27097 } && test -s conftest.$ac_objext; then
27098 ac_header_compiler=yes
27099 else
27100 echo "$as_me: failed program was:" >&5
27101 sed 's/^/| /' conftest.$ac_ext >&5
27103 ac_header_compiler=no
27104 fi
27106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27107 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27108 echo "${ECHO_T}$ac_header_compiler" >&6; }
27110 # Is the header present?
27111 { echo "$as_me:$LINENO: checking png.h presence" >&5
27112 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
27113 cat >conftest.$ac_ext <<_ACEOF
27114 /* confdefs.h. */
27115 _ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h. */
27119 #include <png.h>
27120 _ACEOF
27121 if { (ac_try="$ac_cpp conftest.$ac_ext"
27122 case "(($ac_try" in
27123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27124 *) ac_try_echo=$ac_try;;
27125 esac
27126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27128 ac_status=$?
27129 grep -v '^ *+' conftest.er1 >conftest.err
27130 rm -f conftest.er1
27131 cat conftest.err >&5
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); } >/dev/null && {
27134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27135 test ! -s conftest.err
27136 }; then
27137 ac_header_preproc=yes
27138 else
27139 echo "$as_me: failed program was:" >&5
27140 sed 's/^/| /' conftest.$ac_ext >&5
27142 ac_header_preproc=no
27143 fi
27145 rm -f conftest.err conftest.$ac_ext
27146 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27147 echo "${ECHO_T}$ac_header_preproc" >&6; }
27149 # So? What about this header?
27150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27151 yes:no: )
27152 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
27153 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27154 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
27155 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
27156 ac_header_preproc=yes
27157 ;;
27158 no:yes:* )
27159 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
27160 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
27161 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
27162 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
27163 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
27164 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
27165 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
27166 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
27167 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
27168 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
27169 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
27170 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
27172 ;;
27173 esac
27174 { echo "$as_me:$LINENO: checking for png.h" >&5
27175 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
27176 if test "${ac_cv_header_png_h+set}" = set; then
27177 echo $ECHO_N "(cached) $ECHO_C" >&6
27178 else
27179 ac_cv_header_png_h=$ac_header_preproc
27180 fi
27181 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27182 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
27184 fi
27185 if test $ac_cv_header_png_h = yes; then
27186 EX_CHECK_STATE=YES
27187 fi
27191 fi
27193 else
27194 { echo "$as_me:$LINENO: WARNING:
27195 ----------------------------------------------------------------------------
27196 * I found a copy of pkgconfig, but there is no libpng.pc file around.
27197 You may want to set the PKG_CONFIG_PATH variable to point to its
27198 location.
27199 ----------------------------------------------------------------------------
27200 " >&5
27201 echo "$as_me: WARNING:
27202 ----------------------------------------------------------------------------
27203 * I found a copy of pkgconfig, but there is no libpng.pc file around.
27204 You may want to set the PKG_CONFIG_PATH variable to point to its
27205 location.
27206 ----------------------------------------------------------------------------
27207 " >&2;}
27208 fi
27209 fi
27210 fi
27212 if test ${EX_CHECK_STATE} = NO; then
27213 { echo "$as_me:$LINENO: WARNING:
27214 ----------------------------------------------------------------------------
27215 * I could not find a working copy of libpng. Check config.log for hints on why
27216 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27217 so that compiler and the linker can find libpng and its header files. If
27218 you have not installed libpng, you can get it either from its original home on
27220 http://prdownloads.sourceforge.net/libpng/
27222 You can find also find an archive copy on
27224 http://oss.oetiker.ch/rrdtool/pub/libs
27226 The last tested version of libpng is 1.2.10.
27228 LIBS=$LIBS
27229 LDFLAGS=$LDFLAGS
27230 CPPFLAGS=$CPPFLAGS
27232 ----------------------------------------------------------------------------
27233 " >&5
27234 echo "$as_me: WARNING:
27235 ----------------------------------------------------------------------------
27236 * I could not find a working copy of libpng. Check config.log for hints on why
27237 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27238 so that compiler and the linker can find libpng and its header files. If
27239 you have not installed libpng, you can get it either from its original home on
27241 http://prdownloads.sourceforge.net/libpng/
27243 You can find also find an archive copy on
27245 http://oss.oetiker.ch/rrdtool/pub/libs
27247 The last tested version of libpng is 1.2.10.
27249 LIBS=$LIBS
27250 LDFLAGS=$LDFLAGS
27251 CPPFLAGS=$CPPFLAGS
27253 ----------------------------------------------------------------------------
27254 " >&2;}
27255 EX_CHECK_ALL_ERR=YES
27256 LIBS="${ex_check_save_LIBS}"
27257 CPPFLAGS="${ex_check_save_CPPFLAGS}"
27258 LDFLAGS="${ex_check_save_LDFLAGS}"
27259 fi
27260 ac_ext=c
27261 ac_cpp='$CPP $CPPFLAGS'
27262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27269 ac_ext=c
27270 ac_cpp='$CPP $CPPFLAGS'
27271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27275 EX_CHECK_STATE=NO
27276 ex_check_save_LIBS=${LIBS}
27277 ex_check_save_CPPFLAGS=${CPPFLAGS}
27278 ex_check_save_LDFLAGS=${LDFLAGS}
27279 if test "x/usr/include/freetype2" != "x"; then
27280 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
27281 fi
27282 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
27283 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
27284 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
27285 echo $ECHO_N "(cached) $ECHO_C" >&6
27286 else
27287 ac_check_lib_save_LIBS=$LIBS
27288 LIBS="-lfreetype $LIBS"
27289 cat >conftest.$ac_ext <<_ACEOF
27290 /* confdefs.h. */
27291 _ACEOF
27292 cat confdefs.h >>conftest.$ac_ext
27293 cat >>conftest.$ac_ext <<_ACEOF
27294 /* end confdefs.h. */
27296 /* Override any GCC internal prototype to avoid an error.
27297 Use char because int might match the return type of a GCC
27298 builtin and then its argument prototype would still apply. */
27299 #ifdef __cplusplus
27300 extern "C"
27301 #endif
27302 char FT_Init_FreeType ();
27303 int
27304 main ()
27305 {
27306 return FT_Init_FreeType ();
27307 ;
27308 return 0;
27309 }
27310 _ACEOF
27311 rm -f conftest.$ac_objext conftest$ac_exeext
27312 if { (ac_try="$ac_link"
27313 case "(($ac_try" in
27314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315 *) ac_try_echo=$ac_try;;
27316 esac
27317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27318 (eval "$ac_link") 2>conftest.er1
27319 ac_status=$?
27320 grep -v '^ *+' conftest.er1 >conftest.err
27321 rm -f conftest.er1
27322 cat conftest.err >&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } && {
27325 test -z "$ac_c_werror_flag" ||
27326 test ! -s conftest.err
27327 } && test -s conftest$ac_exeext &&
27328 $as_test_x conftest$ac_exeext; then
27329 ac_cv_lib_freetype_FT_Init_FreeType=yes
27330 else
27331 echo "$as_me: failed program was:" >&5
27332 sed 's/^/| /' conftest.$ac_ext >&5
27334 ac_cv_lib_freetype_FT_Init_FreeType=no
27335 fi
27337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27338 conftest$ac_exeext conftest.$ac_ext
27339 LIBS=$ac_check_lib_save_LIBS
27340 fi
27341 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27342 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27343 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
27345 if test "${ac_cv_header_ft2build_h+set}" = set; then
27346 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
27347 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
27348 if test "${ac_cv_header_ft2build_h+set}" = set; then
27349 echo $ECHO_N "(cached) $ECHO_C" >&6
27350 fi
27351 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
27352 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
27353 else
27354 # Is the header compilable?
27355 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
27356 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
27357 cat >conftest.$ac_ext <<_ACEOF
27358 /* confdefs.h. */
27359 _ACEOF
27360 cat confdefs.h >>conftest.$ac_ext
27361 cat >>conftest.$ac_ext <<_ACEOF
27362 /* end confdefs.h. */
27363 $ac_includes_default
27364 #include <ft2build.h>
27365 _ACEOF
27366 rm -f conftest.$ac_objext
27367 if { (ac_try="$ac_compile"
27368 case "(($ac_try" in
27369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370 *) ac_try_echo=$ac_try;;
27371 esac
27372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27373 (eval "$ac_compile") 2>conftest.er1
27374 ac_status=$?
27375 grep -v '^ *+' conftest.er1 >conftest.err
27376 rm -f conftest.er1
27377 cat conftest.err >&5
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); } && {
27380 test -z "$ac_c_werror_flag" ||
27381 test ! -s conftest.err
27382 } && test -s conftest.$ac_objext; then
27383 ac_header_compiler=yes
27384 else
27385 echo "$as_me: failed program was:" >&5
27386 sed 's/^/| /' conftest.$ac_ext >&5
27388 ac_header_compiler=no
27389 fi
27391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27393 echo "${ECHO_T}$ac_header_compiler" >&6; }
27395 # Is the header present?
27396 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
27397 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
27398 cat >conftest.$ac_ext <<_ACEOF
27399 /* confdefs.h. */
27400 _ACEOF
27401 cat confdefs.h >>conftest.$ac_ext
27402 cat >>conftest.$ac_ext <<_ACEOF
27403 /* end confdefs.h. */
27404 #include <ft2build.h>
27405 _ACEOF
27406 if { (ac_try="$ac_cpp conftest.$ac_ext"
27407 case "(($ac_try" in
27408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27409 *) ac_try_echo=$ac_try;;
27410 esac
27411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27413 ac_status=$?
27414 grep -v '^ *+' conftest.er1 >conftest.err
27415 rm -f conftest.er1
27416 cat conftest.err >&5
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); } >/dev/null && {
27419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27420 test ! -s conftest.err
27421 }; then
27422 ac_header_preproc=yes
27423 else
27424 echo "$as_me: failed program was:" >&5
27425 sed 's/^/| /' conftest.$ac_ext >&5
27427 ac_header_preproc=no
27428 fi
27430 rm -f conftest.err conftest.$ac_ext
27431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27432 echo "${ECHO_T}$ac_header_preproc" >&6; }
27434 # So? What about this header?
27435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27436 yes:no: )
27437 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
27438 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27439 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
27440 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
27441 ac_header_preproc=yes
27442 ;;
27443 no:yes:* )
27444 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
27445 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
27446 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
27447 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
27448 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
27449 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
27450 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
27451 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
27452 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
27453 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
27454 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
27455 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
27457 ;;
27458 esac
27459 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
27460 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
27461 if test "${ac_cv_header_ft2build_h+set}" = set; then
27462 echo $ECHO_N "(cached) $ECHO_C" >&6
27463 else
27464 ac_cv_header_ft2build_h=$ac_header_preproc
27465 fi
27466 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
27467 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
27469 fi
27470 if test $ac_cv_header_ft2build_h = yes; then
27471 LIBS="-lfreetype ${LIBS}";EX_CHECK_STATE=YES
27472 fi
27475 fi
27477 if test $EX_CHECK_STATE = NO; then
27478 for ac_prog in pkg-config
27479 do
27480 # Extract the first word of "$ac_prog", so it can be a program name with args.
27481 set dummy $ac_prog; ac_word=$2
27482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27484 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
27485 echo $ECHO_N "(cached) $ECHO_C" >&6
27486 else
27487 if test -n "$PKGCONFIG"; then
27488 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
27489 else
27490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27491 for as_dir in $PATH
27492 do
27493 IFS=$as_save_IFS
27494 test -z "$as_dir" && as_dir=.
27495 for ac_exec_ext in '' $ac_executable_extensions; do
27496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27497 ac_cv_prog_PKGCONFIG="$ac_prog"
27498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27499 break 2
27500 fi
27501 done
27502 done
27503 IFS=$as_save_IFS
27505 fi
27506 fi
27507 PKGCONFIG=$ac_cv_prog_PKGCONFIG
27508 if test -n "$PKGCONFIG"; then
27509 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
27510 echo "${ECHO_T}$PKGCONFIG" >&6; }
27511 else
27512 { echo "$as_me:$LINENO: result: no" >&5
27513 echo "${ECHO_T}no" >&6; }
27514 fi
27517 test -n "$PKGCONFIG" && break
27518 done
27519 test -n "$PKGCONFIG" || PKGCONFIG="no"
27521 if test "$PKGCONFIG" != "no"; then
27522 if $PKGCONFIG --exists freetype2; then
27523 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags freetype2`
27524 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L freetype2`
27525 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other freetype2`
27526 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l freetype2`
27527 unset ac_cv_lib_freetype_FT_Init_FreeType
27528 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
27529 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
27530 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
27531 echo $ECHO_N "(cached) $ECHO_C" >&6
27532 else
27533 ac_check_lib_save_LIBS=$LIBS
27534 LIBS="-lfreetype $LIBS"
27535 cat >conftest.$ac_ext <<_ACEOF
27536 /* confdefs.h. */
27537 _ACEOF
27538 cat confdefs.h >>conftest.$ac_ext
27539 cat >>conftest.$ac_ext <<_ACEOF
27540 /* end confdefs.h. */
27542 /* Override any GCC internal prototype to avoid an error.
27543 Use char because int might match the return type of a GCC
27544 builtin and then its argument prototype would still apply. */
27545 #ifdef __cplusplus
27546 extern "C"
27547 #endif
27548 char FT_Init_FreeType ();
27549 int
27550 main ()
27551 {
27552 return FT_Init_FreeType ();
27553 ;
27554 return 0;
27555 }
27556 _ACEOF
27557 rm -f conftest.$ac_objext conftest$ac_exeext
27558 if { (ac_try="$ac_link"
27559 case "(($ac_try" in
27560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561 *) ac_try_echo=$ac_try;;
27562 esac
27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564 (eval "$ac_link") 2>conftest.er1
27565 ac_status=$?
27566 grep -v '^ *+' conftest.er1 >conftest.err
27567 rm -f conftest.er1
27568 cat conftest.err >&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); } && {
27571 test -z "$ac_c_werror_flag" ||
27572 test ! -s conftest.err
27573 } && test -s conftest$ac_exeext &&
27574 $as_test_x conftest$ac_exeext; then
27575 ac_cv_lib_freetype_FT_Init_FreeType=yes
27576 else
27577 echo "$as_me: failed program was:" >&5
27578 sed 's/^/| /' conftest.$ac_ext >&5
27580 ac_cv_lib_freetype_FT_Init_FreeType=no
27581 fi
27583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27584 conftest$ac_exeext conftest.$ac_ext
27585 LIBS=$ac_check_lib_save_LIBS
27586 fi
27587 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27588 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27589 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
27591 unset ac_cv_header_`echo ft2build.h | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
27592 if test "${ac_cv_header_ft2build_h+set}" = set; then
27593 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
27594 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
27595 if test "${ac_cv_header_ft2build_h+set}" = set; then
27596 echo $ECHO_N "(cached) $ECHO_C" >&6
27597 fi
27598 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
27599 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
27600 else
27601 # Is the header compilable?
27602 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
27603 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
27604 cat >conftest.$ac_ext <<_ACEOF
27605 /* confdefs.h. */
27606 _ACEOF
27607 cat confdefs.h >>conftest.$ac_ext
27608 cat >>conftest.$ac_ext <<_ACEOF
27609 /* end confdefs.h. */
27610 $ac_includes_default
27611 #include <ft2build.h>
27612 _ACEOF
27613 rm -f conftest.$ac_objext
27614 if { (ac_try="$ac_compile"
27615 case "(($ac_try" in
27616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617 *) ac_try_echo=$ac_try;;
27618 esac
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620 (eval "$ac_compile") 2>conftest.er1
27621 ac_status=$?
27622 grep -v '^ *+' conftest.er1 >conftest.err
27623 rm -f conftest.er1
27624 cat conftest.err >&5
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } && {
27627 test -z "$ac_c_werror_flag" ||
27628 test ! -s conftest.err
27629 } && test -s conftest.$ac_objext; then
27630 ac_header_compiler=yes
27631 else
27632 echo "$as_me: failed program was:" >&5
27633 sed 's/^/| /' conftest.$ac_ext >&5
27635 ac_header_compiler=no
27636 fi
27638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27640 echo "${ECHO_T}$ac_header_compiler" >&6; }
27642 # Is the header present?
27643 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
27644 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
27645 cat >conftest.$ac_ext <<_ACEOF
27646 /* confdefs.h. */
27647 _ACEOF
27648 cat confdefs.h >>conftest.$ac_ext
27649 cat >>conftest.$ac_ext <<_ACEOF
27650 /* end confdefs.h. */
27651 #include <ft2build.h>
27652 _ACEOF
27653 if { (ac_try="$ac_cpp conftest.$ac_ext"
27654 case "(($ac_try" in
27655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656 *) ac_try_echo=$ac_try;;
27657 esac
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27660 ac_status=$?
27661 grep -v '^ *+' conftest.er1 >conftest.err
27662 rm -f conftest.er1
27663 cat conftest.err >&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); } >/dev/null && {
27666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27667 test ! -s conftest.err
27668 }; then
27669 ac_header_preproc=yes
27670 else
27671 echo "$as_me: failed program was:" >&5
27672 sed 's/^/| /' conftest.$ac_ext >&5
27674 ac_header_preproc=no
27675 fi
27677 rm -f conftest.err conftest.$ac_ext
27678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27679 echo "${ECHO_T}$ac_header_preproc" >&6; }
27681 # So? What about this header?
27682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27683 yes:no: )
27684 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
27685 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27686 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
27687 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
27688 ac_header_preproc=yes
27689 ;;
27690 no:yes:* )
27691 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
27692 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
27693 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
27694 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
27695 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
27696 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
27697 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
27698 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
27699 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
27700 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
27701 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
27702 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
27704 ;;
27705 esac
27706 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
27707 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
27708 if test "${ac_cv_header_ft2build_h+set}" = set; then
27709 echo $ECHO_N "(cached) $ECHO_C" >&6
27710 else
27711 ac_cv_header_ft2build_h=$ac_header_preproc
27712 fi
27713 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
27714 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
27716 fi
27717 if test $ac_cv_header_ft2build_h = yes; then
27718 EX_CHECK_STATE=YES
27719 fi
27723 fi
27725 else
27726 { echo "$as_me:$LINENO: WARNING:
27727 ----------------------------------------------------------------------------
27728 * I found a copy of pkgconfig, but there is no freetype2.pc file around.
27729 You may want to set the PKG_CONFIG_PATH variable to point to its
27730 location.
27731 ----------------------------------------------------------------------------
27732 " >&5
27733 echo "$as_me: WARNING:
27734 ----------------------------------------------------------------------------
27735 * I found a copy of pkgconfig, but there is no freetype2.pc file around.
27736 You may want to set the PKG_CONFIG_PATH variable to point to its
27737 location.
27738 ----------------------------------------------------------------------------
27739 " >&2;}
27740 fi
27741 fi
27742 fi
27744 if test ${EX_CHECK_STATE} = NO; then
27745 { echo "$as_me:$LINENO: WARNING:
27746 ----------------------------------------------------------------------------
27747 * I could not find a working copy of freetype2. Check config.log for hints on why
27748 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27749 so that compiler and the linker can find libfreetype and its header files. If
27750 you have not installed freetype2, you can get it either from its original home on
27752 http://prdownloads.sourceforge.net/freetype/
27754 You can find also find an archive copy on
27756 http://oss.oetiker.ch/rrdtool/pub/libs
27758 The last tested version of freetype2 is 2.1.10.
27760 LIBS=$LIBS
27761 LDFLAGS=$LDFLAGS
27762 CPPFLAGS=$CPPFLAGS
27764 ----------------------------------------------------------------------------
27765 " >&5
27766 echo "$as_me: WARNING:
27767 ----------------------------------------------------------------------------
27768 * I could not find a working copy of freetype2. Check config.log for hints on why
27769 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27770 so that compiler and the linker can find libfreetype and its header files. If
27771 you have not installed freetype2, you can get it either from its original home on
27773 http://prdownloads.sourceforge.net/freetype/
27775 You can find also find an archive copy on
27777 http://oss.oetiker.ch/rrdtool/pub/libs
27779 The last tested version of freetype2 is 2.1.10.
27781 LIBS=$LIBS
27782 LDFLAGS=$LDFLAGS
27783 CPPFLAGS=$CPPFLAGS
27785 ----------------------------------------------------------------------------
27786 " >&2;}
27787 EX_CHECK_ALL_ERR=YES
27788 LIBS="${ex_check_save_LIBS}"
27789 CPPFLAGS="${ex_check_save_CPPFLAGS}"
27790 LDFLAGS="${ex_check_save_LDFLAGS}"
27791 fi
27792 ac_ext=c
27793 ac_cpp='$CPP $CPPFLAGS'
27794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27801 if test "$EX_CHECK_ALL_ERR" = "YES"; then
27802 { { echo "$as_me:$LINENO: error: Please fix the library issues listed above and try again." >&5
27803 echo "$as_me: error: Please fix the library issues listed above and try again." >&2;}
27804 { (exit 1); exit 1; }; }
27805 fi
27807 ALL_LIBS="$LIBS"
27808 LIBS=
27814 case $TERM in
27815 # for the most important terminal types we directly know the sequences
27816 xterm|xterm*|vt220|vt220*)
27817 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
27818 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
27819 ;;
27820 vt100|vt100*|cygwin)
27821 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
27822 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
27823 ;;
27824 *)
27825 T_MD=''
27826 T_ME=''
27827 ;;
27828 esac
27829 { echo "$as_me:$LINENO: result: " >&5
27830 echo "${ECHO_T}" >&6; }
27831 { echo "$as_me:$LINENO: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
27832 echo "${ECHO_T}${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
27835 # Extract the first word of "perl", so it can be a program name with args.
27836 set dummy perl; ac_word=$2
27837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27839 if test "${ac_cv_path_PERL+set}" = set; then
27840 echo $ECHO_N "(cached) $ECHO_C" >&6
27841 else
27842 case $PERL in
27843 [\\/]* | ?:[\\/]*)
27844 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
27845 ;;
27846 *)
27847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27848 for as_dir in $PATH
27849 do
27850 IFS=$as_save_IFS
27851 test -z "$as_dir" && as_dir=.
27852 for ac_exec_ext in '' $ac_executable_extensions; do
27853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27854 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
27855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27856 break 2
27857 fi
27858 done
27859 done
27860 IFS=$as_save_IFS
27862 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
27863 ;;
27864 esac
27865 fi
27866 PERL=$ac_cv_path_PERL
27867 if test -n "$PERL"; then
27868 { echo "$as_me:$LINENO: result: $PERL" >&5
27869 echo "${ECHO_T}$PERL" >&6; }
27870 else
27871 { echo "$as_me:$LINENO: result: no" >&5
27872 echo "${ECHO_T}no" >&6; }
27873 fi
27877 # Check whether --enable-perl was given.
27878 if test "${enable_perl+set}" = set; then
27879 enableval=$enable_perl;
27880 else
27881 enable_perl=yes
27882 fi
27891 if test "x$PERL" = "xno" -o x$enable_perl = xno; then
27892 COMP_PERL=
27893 else
27894 COMP_PERL="perl_piped perl_shared"
27895 { echo "$as_me:$LINENO: checking for the perl version you are running" >&5
27896 echo $ECHO_N "checking for the perl version you are running... $ECHO_C" >&6; }
27897 PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
27898 { echo "$as_me:$LINENO: result: $PERL_VERSION" >&5
27899 echo "${ECHO_T}$PERL_VERSION" >&6; }
27900 if test -z "$PERLCC"; then
27901 { echo "$as_me:$LINENO: checking for the C compiler perl wants to use to build its modules" >&5
27902 echo $ECHO_N "checking for the C compiler perl wants to use to build its modules... $ECHO_C" >&6; }
27903 perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
27904 { echo "$as_me:$LINENO: result: $perlcc" >&5
27905 echo "${ECHO_T}$perlcc" >&6; }
27906 if test ! -x "$perlcc"; then
27907 # Extract the first word of "${perlcc}", so it can be a program name with args.
27908 set dummy ${perlcc}; ac_word=$2
27909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27911 if test "${ac_cv_path_PERL_CC+set}" = set; then
27912 echo $ECHO_N "(cached) $ECHO_C" >&6
27913 else
27914 case $PERL_CC in
27915 [\\/]* | ?:[\\/]*)
27916 ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
27917 ;;
27918 *)
27919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27920 for as_dir in $PATH
27921 do
27922 IFS=$as_save_IFS
27923 test -z "$as_dir" && as_dir=.
27924 for ac_exec_ext in '' $ac_executable_extensions; do
27925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27926 ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
27927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27928 break 2
27929 fi
27930 done
27931 done
27932 IFS=$as_save_IFS
27934 test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
27935 ;;
27936 esac
27937 fi
27938 PERL_CC=$ac_cv_path_PERL_CC
27939 if test -n "$PERL_CC"; then
27940 { echo "$as_me:$LINENO: result: $PERL_CC" >&5
27941 echo "${ECHO_T}$PERL_CC" >&6; }
27942 else
27943 { echo "$as_me:$LINENO: result: no" >&5
27944 echo "${ECHO_T}no" >&6; }
27945 fi
27948 if test "$PERL_CC" = "no"; then
27949 { echo "$as_me:$LINENO: WARNING:
27950 I would not find the Compiler ($perlcc) that was originally used to compile
27951 your perl binary. You should either make sure that this compiler is
27952 available on your system, pick an other compiler and set PERLCC
27953 appropriately, or use a different perl setup that was compiled locally.
27955 I will disable the compilation of the RRDs perl module for now.
27956 " >&5
27957 echo "$as_me: WARNING:
27958 I would not find the Compiler ($perlcc) that was originally used to compile
27959 your perl binary. You should either make sure that this compiler is
27960 available on your system, pick an other compiler and set PERLCC
27961 appropriately, or use a different perl setup that was compiled locally.
27963 I will disable the compilation of the RRDs perl module for now.
27964 " >&2;}
27965 COMP_PERL="perl_piped"
27966 fi
27967 fi
27968 fi
27969 fi
27971 { echo "$as_me:$LINENO: checking Perl Modules to build" >&5
27972 echo $ECHO_N "checking Perl Modules to build... $ECHO_C" >&6; }
27973 { echo "$as_me:$LINENO: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
27974 echo "${ECHO_T}${COMP_PERL:-No Perl Modules will be built}" >&6; }
27976 # Options to pass when configuring perl module
27977 ppref=$prefix
27978 test "$ppref" = "NONE" && ppref=$ac_default_prefix
27980 PERL_MAKE_OPTIONS="PREFIX=$ppref LIB=$ppref/lib/perl/$PERL_VERSION"
27982 # Check whether --enable-perl-site-install was given.
27983 if test "${enable_perl_site_install+set}" = set; then
27984 enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
27985 fi
27988 if test ! -z "$PERLCC"; then
27989 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
27991 if test ! -z "$PERLCCFLAGS"; then
27992 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
27993 fi
27995 if test -z "$PERLLD"; then
27996 PERLLD=$PERLCC
27997 fi
27998 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
28000 if test ! -z "$PERLLDFLAGS"; then
28001 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
28002 fi
28003 fi
28006 # Check whether --with-perl-options was given.
28007 if test "${with_perl_options+set}" = set; then
28008 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
28009 fi
28017 # Extract the first word of "ruby", so it can be a program name with args.
28018 set dummy ruby; ac_word=$2
28019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28021 if test "${ac_cv_path_RUBY+set}" = set; then
28022 echo $ECHO_N "(cached) $ECHO_C" >&6
28023 else
28024 case $RUBY in
28025 [\\/]* | ?:[\\/]*)
28026 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
28027 ;;
28028 *)
28029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28030 for as_dir in $PATH
28031 do
28032 IFS=$as_save_IFS
28033 test -z "$as_dir" && as_dir=.
28034 for ac_exec_ext in '' $ac_executable_extensions; do
28035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28036 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
28037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28038 break 2
28039 fi
28040 done
28041 done
28042 IFS=$as_save_IFS
28044 test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
28045 ;;
28046 esac
28047 fi
28048 RUBY=$ac_cv_path_RUBY
28049 if test -n "$RUBY"; then
28050 { echo "$as_me:$LINENO: result: $RUBY" >&5
28051 echo "${ECHO_T}$RUBY" >&6; }
28052 else
28053 { echo "$as_me:$LINENO: result: no" >&5
28054 echo "${ECHO_T}no" >&6; }
28055 fi
28059 # Check whether --enable-ruby was given.
28060 if test "${enable_ruby+set}" = set; then
28061 enableval=$enable_ruby;
28062 else
28063 enable_ruby=yes
28064 fi
28067 { echo "$as_me:$LINENO: checking if ruby modules can be built" >&5
28068 echo $ECHO_N "checking if ruby modules can be built... $ECHO_C" >&6; }
28070 if test "x$RUBY" = "xno" -o x$enable_ruby = xno; then
28071 COMP_RUBY=
28072 { echo "$as_me:$LINENO: result: No .. Ruby not found or disabled" >&5
28073 echo "${ECHO_T}No .. Ruby not found or disabled" >&6; }
28074 else
28075 if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
28076 COMP_RUBY="ruby"
28077 { echo "$as_me:$LINENO: result: YES" >&5
28078 echo "${ECHO_T}YES" >&6; }
28079 else
28080 COMP_RUBY=
28081 { echo "$as_me:$LINENO: result: Ruby found but mkmf is missing! Install the -dev package" >&5
28082 echo "${ECHO_T}Ruby found but mkmf is missing! Install the -dev package" >&6; }
28083 fi
28084 fi
28087 # Check whether --enable-ruby-site-install was given.
28088 if test "${enable_ruby_site_install+set}" = set; then
28089 enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
28090 else
28091 RUBY_MAKE_OPTIONS="sitedir=$prefix/lib/ruby"
28092 fi
28097 # Check whether --with-ruby-options was given.
28098 if test "${with_ruby_options+set}" = set; then
28099 withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
28100 fi
28108 enable_tcl_site=no
28110 # Check whether --enable-tcl was given.
28111 if test "${enable_tcl+set}" = set; then
28112 enableval=$enable_tcl;
28113 else
28114 enable_tcl=yes
28115 fi
28118 if test "$enable_tcl" = "yes"; then
28119 withval=""
28121 # Check whether --with-tcllib was given.
28122 if test "${with_tcllib+set}" = set; then
28123 withval=$with_tcllib;
28124 fi
28126 enable_tcl=no
28127 for dir in $withval /usr/lib /usr/local/lib; do
28128 { echo "$as_me:$LINENO: checking for tclConfig.sh in $dir" >&5
28129 echo $ECHO_N "checking for tclConfig.sh in $dir... $ECHO_C" >&6; }
28130 if test -f "$dir/tclConfig.sh" ; then
28131 tcl_config=$dir/tclConfig.sh
28132 enable_tcl=yes
28133 { echo "$as_me:$LINENO: result: yes" >&5
28134 echo "${ECHO_T}yes" >&6; }
28135 break
28136 else
28137 { echo "$as_me:$LINENO: result: no" >&5
28138 echo "${ECHO_T}no" >&6; }
28139 fi
28140 done
28142 if test "$enable_tcl" = "no"; then
28143 { echo "$as_me:$LINENO: WARNING: tclConfig.sh not found - Tcl interface won't be built" >&5
28144 echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface won't be built" >&2;}
28145 else
28146 . $tcl_config
28147 TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
28148 fi
28149 # Check whether --enable-tcl was given.
28150 if test "${enable_tcl+set}" = set; then
28151 enableval=$enable_tcl;
28152 else
28153 enable_tcl_site=yes
28154 fi
28157 fi
28161 if test "$enable_tcl" = "yes" ; then
28162 BUILD_TCL_TRUE=
28163 BUILD_TCL_FALSE='#'
28164 else
28165 BUILD_TCL_TRUE='#'
28166 BUILD_TCL_FALSE=
28167 fi
28171 if test "$enable_tcl_site" = "yes" ; then
28172 BUILD_TCL_SITE_TRUE=
28173 BUILD_TCL_SITE_FALSE='#'
28174 else
28175 BUILD_TCL_SITE_TRUE='#'
28176 BUILD_TCL_SITE_FALSE=
28177 fi
28190 # Check whether --enable-python was given.
28191 if test "${enable_python+set}" = set; then
28192 enableval=$enable_python;
28193 else
28194 enable_python=yes
28195 fi
28198 if test "$enable_python" = "yes"; then
28203 if test -n "$PYTHON"; then
28204 # If the user set $PYTHON, use it and don't search something else.
28205 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
28206 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6; }
28207 prog="import sys, string
28208 # split strings by '.' and convert to numeric. Append some zeros
28209 # because we need at least 4 digits for the hex conversion.
28210 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
28211 minverhex = 0
28212 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
28213 sys.exit(sys.hexversion < minverhex)"
28214 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
28215 ($PYTHON -c "$prog") >&5 2>&5
28216 ac_status=$?
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); }; then
28219 { echo "$as_me:$LINENO: result: yes" >&5
28220 echo "${ECHO_T}yes" >&6; }
28221 else
28222 { { echo "$as_me:$LINENO: error: too old" >&5
28223 echo "$as_me: error: too old" >&2;}
28224 { (exit 1); exit 1; }; }
28225 fi
28227 am_display_PYTHON=$PYTHON
28228 else
28229 # Otherwise, try each interpreter until we find one that satisfies
28230 # VERSION.
28231 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
28232 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6; }
28233 if test "${am_cv_pathless_PYTHON+set}" = set; then
28234 echo $ECHO_N "(cached) $ECHO_C" >&6
28235 else
28237 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
28238 test "$am_cv_pathless_PYTHON" = none && break
28239 prog="import sys, string
28240 # split strings by '.' and convert to numeric. Append some zeros
28241 # because we need at least 4 digits for the hex conversion.
28242 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
28243 minverhex = 0
28244 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
28245 sys.exit(sys.hexversion < minverhex)"
28246 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
28247 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
28248 ac_status=$?
28249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250 (exit $ac_status); }; then
28251 break
28252 fi
28254 done
28255 fi
28256 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
28257 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
28258 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
28259 if test "$am_cv_pathless_PYTHON" = none; then
28260 PYTHON=:
28261 else
28262 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
28263 set dummy $am_cv_pathless_PYTHON; ac_word=$2
28264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28266 if test "${ac_cv_path_PYTHON+set}" = set; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28268 else
28269 case $PYTHON in
28270 [\\/]* | ?:[\\/]*)
28271 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
28272 ;;
28273 *)
28274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28275 for as_dir in $PATH
28276 do
28277 IFS=$as_save_IFS
28278 test -z "$as_dir" && as_dir=.
28279 for ac_exec_ext in '' $ac_executable_extensions; do
28280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28281 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
28282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28283 break 2
28284 fi
28285 done
28286 done
28287 IFS=$as_save_IFS
28289 ;;
28290 esac
28291 fi
28292 PYTHON=$ac_cv_path_PYTHON
28293 if test -n "$PYTHON"; then
28294 { echo "$as_me:$LINENO: result: $PYTHON" >&5
28295 echo "${ECHO_T}$PYTHON" >&6; }
28296 else
28297 { echo "$as_me:$LINENO: result: no" >&5
28298 echo "${ECHO_T}no" >&6; }
28299 fi
28302 fi
28303 am_display_PYTHON=$am_cv_pathless_PYTHON
28304 fi
28307 if test "$PYTHON" = :; then
28308 enable_python=no
28309 else
28312 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
28313 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
28314 if test "${am_cv_python_version+set}" = set; then
28315 echo $ECHO_N "(cached) $ECHO_C" >&6
28316 else
28317 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
28318 fi
28319 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
28320 echo "${ECHO_T}$am_cv_python_version" >&6; }
28321 PYTHON_VERSION=$am_cv_python_version
28325 PYTHON_PREFIX='${prefix}'
28327 PYTHON_EXEC_PREFIX='${exec_prefix}'
28331 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
28332 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
28333 if test "${am_cv_python_platform+set}" = set; then
28334 echo $ECHO_N "(cached) $ECHO_C" >&6
28335 else
28336 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
28337 fi
28338 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
28339 echo "${ECHO_T}$am_cv_python_platform" >&6; }
28340 PYTHON_PLATFORM=$am_cv_python_platform
28345 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
28346 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
28347 if test "${am_cv_python_pythondir+set}" = set; then
28348 echo $ECHO_N "(cached) $ECHO_C" >&6
28349 else
28350 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
28351 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
28352 fi
28353 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
28354 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
28355 pythondir=$am_cv_python_pythondir
28359 pkgpythondir=\${pythondir}/$PACKAGE
28362 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
28363 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
28364 if test "${am_cv_python_pyexecdir+set}" = set; then
28365 echo $ECHO_N "(cached) $ECHO_C" >&6
28366 else
28367 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
28368 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
28369 fi
28370 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
28371 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
28372 pyexecdir=$am_cv_python_pyexecdir
28376 pkgpyexecdir=\${pyexecdir}/$PACKAGE
28380 fi
28384 { echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
28385 echo $ECHO_N "checking for headers required to compile python extensions... $ECHO_C" >&6; }
28386 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
28387 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
28388 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
28389 if test "$py_prefix" != "$py_exec_prefix"; then
28390 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
28391 fi
28393 save_CPPFLAGS="$CPPFLAGS"
28394 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
28395 cat >conftest.$ac_ext <<_ACEOF
28396 /* confdefs.h. */
28397 _ACEOF
28398 cat confdefs.h >>conftest.$ac_ext
28399 cat >>conftest.$ac_ext <<_ACEOF
28400 /* end confdefs.h. */
28401 #include <Python.h>
28402 _ACEOF
28403 if { (ac_try="$ac_cpp conftest.$ac_ext"
28404 case "(($ac_try" in
28405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406 *) ac_try_echo=$ac_try;;
28407 esac
28408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28410 ac_status=$?
28411 grep -v '^ *+' conftest.er1 >conftest.err
28412 rm -f conftest.er1
28413 cat conftest.err >&5
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); } >/dev/null && {
28416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28417 test ! -s conftest.err
28418 }; then
28419 { echo "$as_me:$LINENO: result: found" >&5
28420 echo "${ECHO_T}found" >&6; }
28422 else
28423 echo "$as_me: failed program was:" >&5
28424 sed 's/^/| /' conftest.$ac_ext >&5
28426 { echo "$as_me:$LINENO: result: not found" >&5
28427 echo "${ECHO_T}not found" >&6; }
28428 enable_python=no;{ echo "$as_me:$LINENO: WARNING: could not find Python headers" >&5
28429 echo "$as_me: WARNING: could not find Python headers" >&2;}
28430 fi
28432 rm -f conftest.err conftest.$ac_ext
28433 CPPFLAGS="$save_CPPFLAGS"
28435 fi
28437 if test x$enable_python = xno; then
28438 COMP_PYTHON=
28439 else
28440 COMP_PYTHON="python"
28441 fi
28445 for ac_prog in gnroff nroff
28446 do
28447 # Extract the first word of "$ac_prog", so it can be a program name with args.
28448 set dummy $ac_prog; ac_word=$2
28449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28451 if test "${ac_cv_path_NROFF+set}" = set; then
28452 echo $ECHO_N "(cached) $ECHO_C" >&6
28453 else
28454 case $NROFF in
28455 [\\/]* | ?:[\\/]*)
28456 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
28457 ;;
28458 *)
28459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28460 for as_dir in $PATH
28461 do
28462 IFS=$as_save_IFS
28463 test -z "$as_dir" && as_dir=.
28464 for ac_exec_ext in '' $ac_executable_extensions; do
28465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28466 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
28467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28468 break 2
28469 fi
28470 done
28471 done
28472 IFS=$as_save_IFS
28474 ;;
28475 esac
28476 fi
28477 NROFF=$ac_cv_path_NROFF
28478 if test -n "$NROFF"; then
28479 { echo "$as_me:$LINENO: result: $NROFF" >&5
28480 echo "${ECHO_T}$NROFF" >&6; }
28481 else
28482 { echo "$as_me:$LINENO: result: no" >&5
28483 echo "${ECHO_T}no" >&6; }
28484 fi
28487 test -n "$NROFF" && break
28488 done
28490 for ac_prog in groff troff
28491 do
28492 # Extract the first word of "$ac_prog", so it can be a program name with args.
28493 set dummy $ac_prog; ac_word=$2
28494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28496 if test "${ac_cv_path_TROFF+set}" = set; then
28497 echo $ECHO_N "(cached) $ECHO_C" >&6
28498 else
28499 case $TROFF in
28500 [\\/]* | ?:[\\/]*)
28501 ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
28502 ;;
28503 *)
28504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28505 for as_dir in $PATH
28506 do
28507 IFS=$as_save_IFS
28508 test -z "$as_dir" && as_dir=.
28509 for ac_exec_ext in '' $ac_executable_extensions; do
28510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28511 ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
28512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28513 break 2
28514 fi
28515 done
28516 done
28517 IFS=$as_save_IFS
28519 ;;
28520 esac
28521 fi
28522 TROFF=$ac_cv_path_TROFF
28523 if test -n "$TROFF"; then
28524 { echo "$as_me:$LINENO: result: $TROFF" >&5
28525 echo "${ECHO_T}$TROFF" >&6; }
28526 else
28527 { echo "$as_me:$LINENO: result: no" >&5
28528 echo "${ECHO_T}no" >&6; }
28529 fi
28532 test -n "$TROFF" && break
28533 done
28537 if test -z "$RRDDOCDIR"; then
28538 RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
28542 case $TERM in
28543 # for the most important terminal types we directly know the sequences
28544 xterm|xterm*|vt220|vt220*)
28545 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
28546 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
28547 ;;
28548 vt100|vt100*|cygwin)
28549 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
28550 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
28551 ;;
28552 *)
28553 T_MD=''
28554 T_ME=''
28555 ;;
28556 esac
28557 { echo "$as_me:$LINENO: result: " >&5
28558 echo "${ECHO_T}" >&6; }
28559 { echo "$as_me:$LINENO: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
28560 echo "${ECHO_T}${T_MD}Apply Configuration Information${T_ME}" >&6; }
28563 ac_config_files="$ac_config_files examples/shared-demo.pl"
28565 ac_config_files="$ac_config_files examples/piped-demo.pl"
28567 ac_config_files="$ac_config_files examples/stripes.pl"
28569 ac_config_files="$ac_config_files examples/bigtops.pl"
28571 ac_config_files="$ac_config_files examples/minmax.pl"
28573 ac_config_files="$ac_config_files examples/4charts.pl"
28575 ac_config_files="$ac_config_files examples/perftest.pl"
28577 ac_config_files="$ac_config_files examples/Makefile"
28579 ac_config_files="$ac_config_files doc/Makefile"
28581 ac_config_files="$ac_config_files src/Makefile"
28583 ac_config_files="$ac_config_files bindings/Makefile"
28585 ac_config_files="$ac_config_files bindings/tcl/Makefile"
28587 ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
28589 ac_config_files="$ac_config_files Makefile"
28592 ac_config_commands="$ac_config_commands default"
28594 cat >confcache <<\_ACEOF
28595 # This file is a shell script that caches the results of configure
28596 # tests run on this system so they can be shared between configure
28597 # scripts and configure runs, see configure's option --config-cache.
28598 # It is not useful on other systems. If it contains results you don't
28599 # want to keep, you may remove or edit it.
28600 #
28601 # config.status only pays attention to the cache file if you give it
28602 # the --recheck option to rerun configure.
28603 #
28604 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28605 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28606 # following values.
28608 _ACEOF
28610 # The following way of writing the cache mishandles newlines in values,
28611 # but we know of no workaround that is simple, portable, and efficient.
28612 # So, we kill variables containing newlines.
28613 # Ultrix sh set writes to stderr and can't be redirected directly,
28614 # and sets the high bit in the cache file unless we assign to the vars.
28615 (
28616 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28617 eval ac_val=\$$ac_var
28618 case $ac_val in #(
28619 *${as_nl}*)
28620 case $ac_var in #(
28621 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28622 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28623 esac
28624 case $ac_var in #(
28625 _ | IFS | as_nl) ;; #(
28626 *) $as_unset $ac_var ;;
28627 esac ;;
28628 esac
28629 done
28631 (set) 2>&1 |
28632 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28633 *${as_nl}ac_space=\ *)
28634 # `set' does not quote correctly, so add quotes (double-quote
28635 # substitution turns \\\\ into \\, and sed turns \\ into \).
28636 sed -n \
28637 "s/'/'\\\\''/g;
28638 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28639 ;; #(
28640 *)
28641 # `set' quotes correctly as required by POSIX, so do not add quotes.
28642 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28643 ;;
28644 esac |
28645 sort
28646 ) |
28647 sed '
28648 /^ac_cv_env_/b end
28649 t clear
28650 :clear
28651 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28652 t end
28653 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28654 :end' >>confcache
28655 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28656 if test -w "$cache_file"; then
28657 test "x$cache_file" != "x/dev/null" &&
28658 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28659 echo "$as_me: updating cache $cache_file" >&6;}
28660 cat confcache >$cache_file
28661 else
28662 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28663 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28664 fi
28665 fi
28666 rm -f confcache
28668 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28669 # Let make expand exec_prefix.
28670 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28672 DEFS=-DHAVE_CONFIG_H
28674 ac_libobjs=
28675 ac_ltlibobjs=
28676 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28677 # 1. Remove the extension, and $U if already installed.
28678 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28679 ac_i=`echo "$ac_i" | sed "$ac_script"`
28680 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28681 # will be set to the directory where LIBOBJS objects are built.
28682 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28683 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28684 done
28685 LIBOBJS=$ac_libobjs
28687 LTLIBOBJS=$ac_ltlibobjs
28690 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28691 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28692 Usually this means the macro was only invoked conditionally." >&5
28693 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28694 Usually this means the macro was only invoked conditionally." >&2;}
28695 { (exit 1); exit 1; }; }
28696 fi
28697 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28698 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28699 Usually this means the macro was only invoked conditionally." >&5
28700 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28701 Usually this means the macro was only invoked conditionally." >&2;}
28702 { (exit 1); exit 1; }; }
28703 fi
28704 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28705 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28706 Usually this means the macro was only invoked conditionally." >&5
28707 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28708 Usually this means the macro was only invoked conditionally." >&2;}
28709 { (exit 1); exit 1; }; }
28710 fi
28711 if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
28712 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MULTITHREAD\" was never defined.
28713 Usually this means the macro was only invoked conditionally." >&5
28714 echo "$as_me: error: conditional \"BUILD_MULTITHREAD\" was never defined.
28715 Usually this means the macro was only invoked conditionally." >&2;}
28716 { (exit 1); exit 1; }; }
28717 fi
28718 if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
28719 { { echo "$as_me:$LINENO: error: conditional \"BUILD_RRDCGI\" was never defined.
28720 Usually this means the macro was only invoked conditionally." >&5
28721 echo "$as_me: error: conditional \"BUILD_RRDCGI\" was never defined.
28722 Usually this means the macro was only invoked conditionally." >&2;}
28723 { (exit 1); exit 1; }; }
28724 fi
28725 if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
28726 { { echo "$as_me:$LINENO: error: conditional \"BUILD_TCL\" was never defined.
28727 Usually this means the macro was only invoked conditionally." >&5
28728 echo "$as_me: error: conditional \"BUILD_TCL\" was never defined.
28729 Usually this means the macro was only invoked conditionally." >&2;}
28730 { (exit 1); exit 1; }; }
28731 fi
28732 if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
28733 { { echo "$as_me:$LINENO: error: conditional \"BUILD_TCL_SITE\" was never defined.
28734 Usually this means the macro was only invoked conditionally." >&5
28735 echo "$as_me: error: conditional \"BUILD_TCL_SITE\" was never defined.
28736 Usually this means the macro was only invoked conditionally." >&2;}
28737 { (exit 1); exit 1; }; }
28738 fi
28740 : ${CONFIG_STATUS=./config.status}
28741 ac_clean_files_save=$ac_clean_files
28742 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28743 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28744 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28745 cat >$CONFIG_STATUS <<_ACEOF
28746 #! $SHELL
28747 # Generated by $as_me.
28748 # Run this file to recreate the current configuration.
28749 # Compiler output produced by configure, useful for debugging
28750 # configure, is in config.log if it exists.
28752 debug=false
28753 ac_cs_recheck=false
28754 ac_cs_silent=false
28755 SHELL=\${CONFIG_SHELL-$SHELL}
28756 _ACEOF
28758 cat >>$CONFIG_STATUS <<\_ACEOF
28759 ## --------------------- ##
28760 ## M4sh Initialization. ##
28761 ## --------------------- ##
28763 # Be more Bourne compatible
28764 DUALCASE=1; export DUALCASE # for MKS sh
28765 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28766 emulate sh
28767 NULLCMD=:
28768 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28769 # is contrary to our usage. Disable this feature.
28770 alias -g '${1+"$@"}'='"$@"'
28771 setopt NO_GLOB_SUBST
28772 else
28773 case `(set -o) 2>/dev/null` in
28774 *posix*) set -o posix ;;
28775 esac
28777 fi
28782 # PATH needs CR
28783 # Avoid depending upon Character Ranges.
28784 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28785 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28786 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28787 as_cr_digits='0123456789'
28788 as_cr_alnum=$as_cr_Letters$as_cr_digits
28790 # The user is always right.
28791 if test "${PATH_SEPARATOR+set}" != set; then
28792 echo "#! /bin/sh" >conf$$.sh
28793 echo "exit 0" >>conf$$.sh
28794 chmod +x conf$$.sh
28795 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28796 PATH_SEPARATOR=';'
28797 else
28798 PATH_SEPARATOR=:
28799 fi
28800 rm -f conf$$.sh
28801 fi
28803 # Support unset when possible.
28804 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28805 as_unset=unset
28806 else
28807 as_unset=false
28808 fi
28811 # IFS
28812 # We need space, tab and new line, in precisely that order. Quoting is
28813 # there to prevent editors from complaining about space-tab.
28814 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28815 # splitting by setting IFS to empty value.)
28816 as_nl='
28817 '
28818 IFS=" "" $as_nl"
28820 # Find who we are. Look in the path if we contain no directory separator.
28821 case $0 in
28822 *[\\/]* ) as_myself=$0 ;;
28823 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28824 for as_dir in $PATH
28825 do
28826 IFS=$as_save_IFS
28827 test -z "$as_dir" && as_dir=.
28828 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28829 done
28830 IFS=$as_save_IFS
28832 ;;
28833 esac
28834 # We did not find ourselves, most probably we were run as `sh COMMAND'
28835 # in which case we are not to be found in the path.
28836 if test "x$as_myself" = x; then
28837 as_myself=$0
28838 fi
28839 if test ! -f "$as_myself"; then
28840 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28841 { (exit 1); exit 1; }
28842 fi
28844 # Work around bugs in pre-3.0 UWIN ksh.
28845 for as_var in ENV MAIL MAILPATH
28846 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28847 done
28848 PS1='$ '
28849 PS2='> '
28850 PS4='+ '
28852 # NLS nuisances.
28853 for as_var in \
28854 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28855 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28856 LC_TELEPHONE LC_TIME
28857 do
28858 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28859 eval $as_var=C; export $as_var
28860 else
28861 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28862 fi
28863 done
28865 # Required to use basename.
28866 if expr a : '\(a\)' >/dev/null 2>&1 &&
28867 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28868 as_expr=expr
28869 else
28870 as_expr=false
28871 fi
28873 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28874 as_basename=basename
28875 else
28876 as_basename=false
28877 fi
28880 # Name of the executable.
28881 as_me=`$as_basename -- "$0" ||
28882 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28883 X"$0" : 'X\(//\)$' \| \
28884 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28885 echo X/"$0" |
28886 sed '/^.*\/\([^/][^/]*\)\/*$/{
28887 s//\1/
28888 q
28889 }
28890 /^X\/\(\/\/\)$/{
28891 s//\1/
28892 q
28893 }
28894 /^X\/\(\/\).*/{
28895 s//\1/
28896 q
28897 }
28898 s/.*/./; q'`
28900 # CDPATH.
28901 $as_unset CDPATH
28905 as_lineno_1=$LINENO
28906 as_lineno_2=$LINENO
28907 test "x$as_lineno_1" != "x$as_lineno_2" &&
28908 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28910 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28911 # uniformly replaced by the line number. The first 'sed' inserts a
28912 # line-number line after each line using $LINENO; the second 'sed'
28913 # does the real work. The second script uses 'N' to pair each
28914 # line-number line with the line containing $LINENO, and appends
28915 # trailing '-' during substitution so that $LINENO is not a special
28916 # case at line end.
28917 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28918 # scripts with optimization help from Paolo Bonzini. Blame Lee
28919 # E. McMahon (1931-1989) for sed's syntax. :-)
28920 sed -n '
28921 p
28922 /[$]LINENO/=
28923 ' <$as_myself |
28924 sed '
28925 s/[$]LINENO.*/&-/
28926 t lineno
28927 b
28928 :lineno
28929 N
28930 :loop
28931 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28932 t loop
28933 s/-\n.*//
28934 ' >$as_me.lineno &&
28935 chmod +x "$as_me.lineno" ||
28936 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28937 { (exit 1); exit 1; }; }
28939 # Don't try to exec as it changes $[0], causing all sort of problems
28940 # (the dirname of $[0] is not the place where we might find the
28941 # original and so on. Autoconf is especially sensitive to this).
28942 . "./$as_me.lineno"
28943 # Exit status is that of the last command.
28944 exit
28945 }
28948 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28949 as_dirname=dirname
28950 else
28951 as_dirname=false
28952 fi
28954 ECHO_C= ECHO_N= ECHO_T=
28955 case `echo -n x` in
28956 -n*)
28957 case `echo 'x\c'` in
28958 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28959 *) ECHO_C='\c';;
28960 esac;;
28961 *)
28962 ECHO_N='-n';;
28963 esac
28965 if expr a : '\(a\)' >/dev/null 2>&1 &&
28966 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28967 as_expr=expr
28968 else
28969 as_expr=false
28970 fi
28972 rm -f conf$$ conf$$.exe conf$$.file
28973 if test -d conf$$.dir; then
28974 rm -f conf$$.dir/conf$$.file
28975 else
28976 rm -f conf$$.dir
28977 mkdir conf$$.dir
28978 fi
28979 echo >conf$$.file
28980 if ln -s conf$$.file conf$$ 2>/dev/null; then
28981 as_ln_s='ln -s'
28982 # ... but there are two gotchas:
28983 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28984 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28985 # In both cases, we have to default to `cp -p'.
28986 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28987 as_ln_s='cp -p'
28988 elif ln conf$$.file conf$$ 2>/dev/null; then
28989 as_ln_s=ln
28990 else
28991 as_ln_s='cp -p'
28992 fi
28993 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28994 rmdir conf$$.dir 2>/dev/null
28996 if mkdir -p . 2>/dev/null; then
28997 as_mkdir_p=:
28998 else
28999 test -d ./-p && rmdir ./-p
29000 as_mkdir_p=false
29001 fi
29003 if test -x / >/dev/null 2>&1; then
29004 as_test_x='test -x'
29005 else
29006 if ls -dL / >/dev/null 2>&1; then
29007 as_ls_L_option=L
29008 else
29009 as_ls_L_option=
29010 fi
29011 as_test_x='
29012 eval sh -c '\''
29013 if test -d "$1"; then
29014 test -d "$1/.";
29015 else
29016 case $1 in
29017 -*)set "./$1";;
29018 esac;
29019 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29020 ???[sx]*):;;*)false;;esac;fi
29021 '\'' sh
29022 '
29023 fi
29024 as_executable_p=$as_test_x
29026 # Sed expression to map a string onto a valid CPP name.
29027 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29029 # Sed expression to map a string onto a valid variable name.
29030 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29033 exec 6>&1
29035 # Save the log message, to keep $[0] and so on meaningful, and to
29036 # report actual input values of CONFIG_FILES etc. instead of their
29037 # values after options handling.
29038 ac_log="
29039 This file was extended by rrdtool $as_me 1.2.27, which was
29040 generated by GNU Autoconf 2.61. Invocation command line was
29042 CONFIG_FILES = $CONFIG_FILES
29043 CONFIG_HEADERS = $CONFIG_HEADERS
29044 CONFIG_LINKS = $CONFIG_LINKS
29045 CONFIG_COMMANDS = $CONFIG_COMMANDS
29046 $ $0 $@
29048 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29049 "
29051 _ACEOF
29053 cat >>$CONFIG_STATUS <<_ACEOF
29054 # Files that config.status was made for.
29055 config_files="$ac_config_files"
29056 config_headers="$ac_config_headers"
29057 config_commands="$ac_config_commands"
29059 _ACEOF
29061 cat >>$CONFIG_STATUS <<\_ACEOF
29062 ac_cs_usage="\
29063 \`$as_me' instantiates files from templates according to the
29064 current configuration.
29066 Usage: $0 [OPTIONS] [FILE]...
29068 -h, --help print this help, then exit
29069 -V, --version print version number and configuration settings, then exit
29070 -q, --quiet do not print progress messages
29071 -d, --debug don't remove temporary files
29072 --recheck update $as_me by reconfiguring in the same conditions
29073 --file=FILE[:TEMPLATE]
29074 instantiate the configuration file FILE
29075 --header=FILE[:TEMPLATE]
29076 instantiate the configuration header FILE
29078 Configuration files:
29079 $config_files
29081 Configuration headers:
29082 $config_headers
29084 Configuration commands:
29085 $config_commands
29087 Report bugs to <bug-autoconf@gnu.org>."
29089 _ACEOF
29090 cat >>$CONFIG_STATUS <<_ACEOF
29091 ac_cs_version="\\
29092 rrdtool config.status 1.2.27
29093 configured by $0, generated by GNU Autoconf 2.61,
29094 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29096 Copyright (C) 2006 Free Software Foundation, Inc.
29097 This config.status script is free software; the Free Software Foundation
29098 gives unlimited permission to copy, distribute and modify it."
29100 ac_pwd='$ac_pwd'
29101 srcdir='$srcdir'
29102 INSTALL='$INSTALL'
29103 _ACEOF
29105 cat >>$CONFIG_STATUS <<\_ACEOF
29106 # If no file are specified by the user, then we need to provide default
29107 # value. By we need to know if files were specified by the user.
29108 ac_need_defaults=:
29109 while test $# != 0
29110 do
29111 case $1 in
29112 --*=*)
29113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29115 ac_shift=:
29116 ;;
29117 *)
29118 ac_option=$1
29119 ac_optarg=$2
29120 ac_shift=shift
29121 ;;
29122 esac
29124 case $ac_option in
29125 # Handling of the options.
29126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29127 ac_cs_recheck=: ;;
29128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29129 echo "$ac_cs_version"; exit ;;
29130 --debug | --debu | --deb | --de | --d | -d )
29131 debug=: ;;
29132 --file | --fil | --fi | --f )
29133 $ac_shift
29134 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29135 ac_need_defaults=false;;
29136 --header | --heade | --head | --hea )
29137 $ac_shift
29138 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29139 ac_need_defaults=false;;
29140 --he | --h)
29141 # Conflict between --help and --header
29142 { echo "$as_me: error: ambiguous option: $1
29143 Try \`$0 --help' for more information." >&2
29144 { (exit 1); exit 1; }; };;
29145 --help | --hel | -h )
29146 echo "$ac_cs_usage"; exit ;;
29147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29149 ac_cs_silent=: ;;
29151 # This is an error.
29152 -*) { echo "$as_me: error: unrecognized option: $1
29153 Try \`$0 --help' for more information." >&2
29154 { (exit 1); exit 1; }; } ;;
29156 *) ac_config_targets="$ac_config_targets $1"
29157 ac_need_defaults=false ;;
29159 esac
29160 shift
29161 done
29163 ac_configure_extra_args=
29165 if $ac_cs_silent; then
29166 exec 6>/dev/null
29167 ac_configure_extra_args="$ac_configure_extra_args --silent"
29168 fi
29170 _ACEOF
29171 cat >>$CONFIG_STATUS <<_ACEOF
29172 if \$ac_cs_recheck; then
29173 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29174 CONFIG_SHELL=$SHELL
29175 export CONFIG_SHELL
29176 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29177 fi
29179 _ACEOF
29180 cat >>$CONFIG_STATUS <<\_ACEOF
29181 exec 5>>config.log
29182 {
29183 echo
29184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29185 ## Running $as_me. ##
29186 _ASBOX
29187 echo "$ac_log"
29188 } >&5
29190 _ACEOF
29191 cat >>$CONFIG_STATUS <<_ACEOF
29192 #
29193 # INIT-COMMANDS
29194 #
29195 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29198 _ACEOF
29200 cat >>$CONFIG_STATUS <<\_ACEOF
29202 # Handling of arguments.
29203 for ac_config_target in $ac_config_targets
29204 do
29205 case $ac_config_target in
29206 "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
29207 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29208 "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
29209 "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
29210 "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
29211 "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
29212 "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
29213 "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
29214 "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
29215 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
29216 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29217 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29218 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
29219 "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
29220 "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
29221 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29222 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29224 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29225 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29226 { (exit 1); exit 1; }; };;
29227 esac
29228 done
29231 # If the user did not use the arguments to specify the items to instantiate,
29232 # then the envvar interface is used. Set only those that are not.
29233 # We use the long form for the default assignment because of an extremely
29234 # bizarre bug on SunOS 4.1.3.
29235 if $ac_need_defaults; then
29236 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29237 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29238 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29239 fi
29241 # Have a temporary directory for convenience. Make it in the build tree
29242 # simply because there is no reason against having it here, and in addition,
29243 # creating and moving files from /tmp can sometimes cause problems.
29244 # Hook for its removal unless debugging.
29245 # Note that there is a small window in which the directory will not be cleaned:
29246 # after its creation but before its name has been assigned to `$tmp'.
29247 $debug ||
29248 {
29249 tmp=
29250 trap 'exit_status=$?
29251 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29252 ' 0
29253 trap '{ (exit 1); exit 1; }' 1 2 13 15
29254 }
29255 # Create a (secure) tmp directory for tmp files.
29257 {
29258 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29259 test -n "$tmp" && test -d "$tmp"
29260 } ||
29261 {
29262 tmp=./conf$$-$RANDOM
29263 (umask 077 && mkdir "$tmp")
29264 } ||
29265 {
29266 echo "$me: cannot create a temporary directory in ." >&2
29267 { (exit 1); exit 1; }
29268 }
29270 #
29271 # Set up the sed scripts for CONFIG_FILES section.
29272 #
29274 # No need to generate the scripts if there are no CONFIG_FILES.
29275 # This happens for instance when ./config.status config.h
29276 if test -n "$CONFIG_FILES"; then
29278 _ACEOF
29282 ac_delim='%!_!# '
29283 for ac_last_try in false false false false false :; do
29284 cat >conf$$subs.sed <<_ACEOF
29285 PERLFLAGS!$PERLFLAGS$ac_delim
29286 SHELL!$SHELL$ac_delim
29287 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29288 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29289 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29290 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29291 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29292 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29293 exec_prefix!$exec_prefix$ac_delim
29294 prefix!$prefix$ac_delim
29295 program_transform_name!$program_transform_name$ac_delim
29296 bindir!$bindir$ac_delim
29297 sbindir!$sbindir$ac_delim
29298 libexecdir!$libexecdir$ac_delim
29299 datarootdir!$datarootdir$ac_delim
29300 datadir!$datadir$ac_delim
29301 sysconfdir!$sysconfdir$ac_delim
29302 sharedstatedir!$sharedstatedir$ac_delim
29303 localstatedir!$localstatedir$ac_delim
29304 includedir!$includedir$ac_delim
29305 oldincludedir!$oldincludedir$ac_delim
29306 docdir!$docdir$ac_delim
29307 infodir!$infodir$ac_delim
29308 htmldir!$htmldir$ac_delim
29309 dvidir!$dvidir$ac_delim
29310 pdfdir!$pdfdir$ac_delim
29311 psdir!$psdir$ac_delim
29312 libdir!$libdir$ac_delim
29313 localedir!$localedir$ac_delim
29314 mandir!$mandir$ac_delim
29315 DEFS!$DEFS$ac_delim
29316 ECHO_C!$ECHO_C$ac_delim
29317 ECHO_N!$ECHO_N$ac_delim
29318 ECHO_T!$ECHO_T$ac_delim
29319 LIBS!$LIBS$ac_delim
29320 build_alias!$build_alias$ac_delim
29321 host_alias!$host_alias$ac_delim
29322 target_alias!$target_alias$ac_delim
29323 NUMVERS!$NUMVERS$ac_delim
29324 build!$build$ac_delim
29325 build_cpu!$build_cpu$ac_delim
29326 build_vendor!$build_vendor$ac_delim
29327 build_os!$build_os$ac_delim
29328 host!$host$ac_delim
29329 host_cpu!$host_cpu$ac_delim
29330 host_vendor!$host_vendor$ac_delim
29331 host_os!$host_os$ac_delim
29332 target!$target$ac_delim
29333 target_cpu!$target_cpu$ac_delim
29334 target_vendor!$target_vendor$ac_delim
29335 target_os!$target_os$ac_delim
29336 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29337 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29338 INSTALL_DATA!$INSTALL_DATA$ac_delim
29339 CYGPATH_W!$CYGPATH_W$ac_delim
29340 PACKAGE!$PACKAGE$ac_delim
29341 VERSION!$VERSION$ac_delim
29342 ACLOCAL!$ACLOCAL$ac_delim
29343 AUTOCONF!$AUTOCONF$ac_delim
29344 AUTOMAKE!$AUTOMAKE$ac_delim
29345 AUTOHEADER!$AUTOHEADER$ac_delim
29346 MAKEINFO!$MAKEINFO$ac_delim
29347 install_sh!$install_sh$ac_delim
29348 STRIP!$STRIP$ac_delim
29349 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29350 mkdir_p!$mkdir_p$ac_delim
29351 AWK!$AWK$ac_delim
29352 SET_MAKE!$SET_MAKE$ac_delim
29353 am__leading_dot!$am__leading_dot$ac_delim
29354 AMTAR!$AMTAR$ac_delim
29355 am__tar!$am__tar$ac_delim
29356 am__untar!$am__untar$ac_delim
29357 RRDGRAPH_YLEGEND_ANGLE!$RRDGRAPH_YLEGEND_ANGLE$ac_delim
29358 CC!$CC$ac_delim
29359 CFLAGS!$CFLAGS$ac_delim
29360 LDFLAGS!$LDFLAGS$ac_delim
29361 CPPFLAGS!$CPPFLAGS$ac_delim
29362 ac_ct_CC!$ac_ct_CC$ac_delim
29363 EXEEXT!$EXEEXT$ac_delim
29364 OBJEXT!$OBJEXT$ac_delim
29365 DEPDIR!$DEPDIR$ac_delim
29366 am__include!$am__include$ac_delim
29367 am__quote!$am__quote$ac_delim
29368 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29369 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29370 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29371 CCDEPMODE!$CCDEPMODE$ac_delim
29372 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29373 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29374 CPP!$CPP$ac_delim
29375 GREP!$GREP$ac_delim
29376 EGREP!$EGREP$ac_delim
29377 LN_S!$LN_S$ac_delim
29378 ECHO!$ECHO$ac_delim
29379 AR!$AR$ac_delim
29380 RANLIB!$RANLIB$ac_delim
29381 CXX!$CXX$ac_delim
29382 _ACEOF
29384 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29385 break
29386 elif $ac_last_try; then
29387 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29388 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29389 { (exit 1); exit 1; }; }
29390 else
29391 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29392 fi
29393 done
29395 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29396 if test -n "$ac_eof"; then
29397 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29398 ac_eof=`expr $ac_eof + 1`
29399 fi
29401 cat >>$CONFIG_STATUS <<_ACEOF
29402 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29404 _ACEOF
29405 sed '
29406 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29407 s/^/s,@/; s/!/@,|#_!!_#|/
29408 :n
29409 t n
29410 s/'"$ac_delim"'$/,g/; t
29411 s/$/\\/; p
29412 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29413 ' >>$CONFIG_STATUS <conf$$subs.sed
29414 rm -f conf$$subs.sed
29415 cat >>$CONFIG_STATUS <<_ACEOF
29416 CEOF$ac_eof
29417 _ACEOF
29420 ac_delim='%!_!# '
29421 for ac_last_try in false false false false false :; do
29422 cat >conf$$subs.sed <<_ACEOF
29423 CXXFLAGS!$CXXFLAGS$ac_delim
29424 ac_ct_CXX!$ac_ct_CXX$ac_delim
29425 CXXDEPMODE!$CXXDEPMODE$ac_delim
29426 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29427 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29428 CXXCPP!$CXXCPP$ac_delim
29429 F77!$F77$ac_delim
29430 FFLAGS!$FFLAGS$ac_delim
29431 ac_ct_F77!$ac_ct_F77$ac_delim
29432 LIBTOOL!$LIBTOOL$ac_delim
29433 RRD_DEFAULT_FONT!$RRD_DEFAULT_FONT$ac_delim
29434 MULTITHREAD_CFLAGS!$MULTITHREAD_CFLAGS$ac_delim
29435 MULTITHREAD_LDFLAGS!$MULTITHREAD_LDFLAGS$ac_delim
29436 acx_pthread_config!$acx_pthread_config$ac_delim
29437 PTHREAD_CC!$PTHREAD_CC$ac_delim
29438 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
29439 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
29440 BUILD_MULTITHREAD_TRUE!$BUILD_MULTITHREAD_TRUE$ac_delim
29441 BUILD_MULTITHREAD_FALSE!$BUILD_MULTITHREAD_FALSE$ac_delim
29442 BUILD_RRDCGI_TRUE!$BUILD_RRDCGI_TRUE$ac_delim
29443 BUILD_RRDCGI_FALSE!$BUILD_RRDCGI_FALSE$ac_delim
29444 PKGCONFIG!$PKGCONFIG$ac_delim
29445 CORE_LIBS!$CORE_LIBS$ac_delim
29446 ALL_LIBS!$ALL_LIBS$ac_delim
29447 PERL!$PERL$ac_delim
29448 PERLCC!$PERLCC$ac_delim
29449 PERLCCFLAGS!$PERLCCFLAGS$ac_delim
29450 PERLLD!$PERLLD$ac_delim
29451 PERLLDFLAGS!$PERLLDFLAGS$ac_delim
29452 PERL_CC!$PERL_CC$ac_delim
29453 PERL_MAKE_OPTIONS!$PERL_MAKE_OPTIONS$ac_delim
29454 COMP_PERL!$COMP_PERL$ac_delim
29455 PERL_VERSION!$PERL_VERSION$ac_delim
29456 RUBY!$RUBY$ac_delim
29457 RUBY_MAKE_OPTIONS!$RUBY_MAKE_OPTIONS$ac_delim
29458 COMP_RUBY!$COMP_RUBY$ac_delim
29459 BUILD_TCL_TRUE!$BUILD_TCL_TRUE$ac_delim
29460 BUILD_TCL_FALSE!$BUILD_TCL_FALSE$ac_delim
29461 BUILD_TCL_SITE_TRUE!$BUILD_TCL_SITE_TRUE$ac_delim
29462 BUILD_TCL_SITE_FALSE!$BUILD_TCL_SITE_FALSE$ac_delim
29463 TCL_PREFIX!$TCL_PREFIX$ac_delim
29464 TCL_SHLIB_CFLAGS!$TCL_SHLIB_CFLAGS$ac_delim
29465 TCL_SHLIB_LD!$TCL_SHLIB_LD$ac_delim
29466 TCL_SHLIB_SUFFIX!$TCL_SHLIB_SUFFIX$ac_delim
29467 TCL_PACKAGE_PATH!$TCL_PACKAGE_PATH$ac_delim
29468 TCL_LD_SEARCH_FLAGS!$TCL_LD_SEARCH_FLAGS$ac_delim
29469 TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
29470 TCL_VERSION!$TCL_VERSION$ac_delim
29471 TCL_PACKAGE_DIR!$TCL_PACKAGE_DIR$ac_delim
29472 PYTHON!$PYTHON$ac_delim
29473 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
29474 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
29475 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
29476 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
29477 pythondir!$pythondir$ac_delim
29478 pkgpythondir!$pkgpythondir$ac_delim
29479 pyexecdir!$pyexecdir$ac_delim
29480 pkgpyexecdir!$pkgpyexecdir$ac_delim
29481 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
29482 COMP_PYTHON!$COMP_PYTHON$ac_delim
29483 NROFF!$NROFF$ac_delim
29484 TROFF!$TROFF$ac_delim
29485 RRDDOCDIR!$RRDDOCDIR$ac_delim
29486 LIBOBJS!$LIBOBJS$ac_delim
29487 LTLIBOBJS!$LTLIBOBJS$ac_delim
29488 _ACEOF
29490 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then
29491 break
29492 elif $ac_last_try; then
29493 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29494 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29495 { (exit 1); exit 1; }; }
29496 else
29497 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29498 fi
29499 done
29501 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29502 if test -n "$ac_eof"; then
29503 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29504 ac_eof=`expr $ac_eof + 1`
29505 fi
29507 cat >>$CONFIG_STATUS <<_ACEOF
29508 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29510 _ACEOF
29511 sed '
29512 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29513 s/^/s,@/; s/!/@,|#_!!_#|/
29514 :n
29515 t n
29516 s/'"$ac_delim"'$/,g/; t
29517 s/$/\\/; p
29518 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29519 ' >>$CONFIG_STATUS <conf$$subs.sed
29520 rm -f conf$$subs.sed
29521 cat >>$CONFIG_STATUS <<_ACEOF
29522 :end
29523 s/|#_!!_#|//g
29524 CEOF$ac_eof
29525 _ACEOF
29528 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29529 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29530 # trailing colons and then remove the whole line if VPATH becomes empty
29531 # (actually we leave an empty line to preserve line numbers).
29532 if test "x$srcdir" = x.; then
29533 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29534 s/:*\$(srcdir):*/:/
29535 s/:*\${srcdir}:*/:/
29536 s/:*@srcdir@:*/:/
29537 s/^\([^=]*=[ ]*\):*/\1/
29538 s/:*$//
29539 s/^[^=]*=[ ]*$//
29540 }'
29541 fi
29543 cat >>$CONFIG_STATUS <<\_ACEOF
29544 fi # test -n "$CONFIG_FILES"
29547 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
29548 do
29549 case $ac_tag in
29550 :[FHLC]) ac_mode=$ac_tag; continue;;
29551 esac
29552 case $ac_mode$ac_tag in
29553 :[FHL]*:*);;
29554 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29555 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29556 { (exit 1); exit 1; }; };;
29557 :[FH]-) ac_tag=-:-;;
29558 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29559 esac
29560 ac_save_IFS=$IFS
29561 IFS=:
29562 set x $ac_tag
29563 IFS=$ac_save_IFS
29564 shift
29565 ac_file=$1
29566 shift
29568 case $ac_mode in
29569 :L) ac_source=$1;;
29570 :[FH])
29571 ac_file_inputs=
29572 for ac_f
29573 do
29574 case $ac_f in
29575 -) ac_f="$tmp/stdin";;
29576 *) # Look for the file first in the build tree, then in the source tree
29577 # (if the path is not absolute). The absolute path cannot be DOS-style,
29578 # because $ac_f cannot contain `:'.
29579 test -f "$ac_f" ||
29580 case $ac_f in
29581 [\\/$]*) false;;
29582 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29583 esac ||
29584 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29585 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29586 { (exit 1); exit 1; }; };;
29587 esac
29588 ac_file_inputs="$ac_file_inputs $ac_f"
29589 done
29591 # Let's still pretend it is `configure' which instantiates (i.e., don't
29592 # use $as_me), people would be surprised to read:
29593 # /* config.h. Generated by config.status. */
29594 configure_input="Generated from "`IFS=:
29595 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29596 if test x"$ac_file" != x-; then
29597 configure_input="$ac_file. $configure_input"
29598 { echo "$as_me:$LINENO: creating $ac_file" >&5
29599 echo "$as_me: creating $ac_file" >&6;}
29600 fi
29602 case $ac_tag in
29603 *:-:* | *:-) cat >"$tmp/stdin";;
29604 esac
29605 ;;
29606 esac
29608 ac_dir=`$as_dirname -- "$ac_file" ||
29609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29610 X"$ac_file" : 'X\(//\)[^/]' \| \
29611 X"$ac_file" : 'X\(//\)$' \| \
29612 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29613 echo X"$ac_file" |
29614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29615 s//\1/
29616 q
29617 }
29618 /^X\(\/\/\)[^/].*/{
29619 s//\1/
29620 q
29621 }
29622 /^X\(\/\/\)$/{
29623 s//\1/
29624 q
29625 }
29626 /^X\(\/\).*/{
29627 s//\1/
29628 q
29629 }
29630 s/.*/./; q'`
29631 { as_dir="$ac_dir"
29632 case $as_dir in #(
29633 -*) as_dir=./$as_dir;;
29634 esac
29635 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29636 as_dirs=
29637 while :; do
29638 case $as_dir in #(
29639 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29640 *) as_qdir=$as_dir;;
29641 esac
29642 as_dirs="'$as_qdir' $as_dirs"
29643 as_dir=`$as_dirname -- "$as_dir" ||
29644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29645 X"$as_dir" : 'X\(//\)[^/]' \| \
29646 X"$as_dir" : 'X\(//\)$' \| \
29647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29648 echo X"$as_dir" |
29649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29650 s//\1/
29651 q
29652 }
29653 /^X\(\/\/\)[^/].*/{
29654 s//\1/
29655 q
29656 }
29657 /^X\(\/\/\)$/{
29658 s//\1/
29659 q
29660 }
29661 /^X\(\/\).*/{
29662 s//\1/
29663 q
29664 }
29665 s/.*/./; q'`
29666 test -d "$as_dir" && break
29667 done
29668 test -z "$as_dirs" || eval "mkdir $as_dirs"
29669 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29670 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29671 { (exit 1); exit 1; }; }; }
29672 ac_builddir=.
29674 case "$ac_dir" in
29675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29676 *)
29677 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29678 # A ".." for each directory in $ac_dir_suffix.
29679 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29680 case $ac_top_builddir_sub in
29681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29683 esac ;;
29684 esac
29685 ac_abs_top_builddir=$ac_pwd
29686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29687 # for backward compatibility:
29688 ac_top_builddir=$ac_top_build_prefix
29690 case $srcdir in
29691 .) # We are building in place.
29692 ac_srcdir=.
29693 ac_top_srcdir=$ac_top_builddir_sub
29694 ac_abs_top_srcdir=$ac_pwd ;;
29695 [\\/]* | ?:[\\/]* ) # Absolute name.
29696 ac_srcdir=$srcdir$ac_dir_suffix;
29697 ac_top_srcdir=$srcdir
29698 ac_abs_top_srcdir=$srcdir ;;
29699 *) # Relative name.
29700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29701 ac_top_srcdir=$ac_top_build_prefix$srcdir
29702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29703 esac
29704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29707 case $ac_mode in
29708 :F)
29709 #
29710 # CONFIG_FILE
29711 #
29713 case $INSTALL in
29714 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29715 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29716 esac
29717 _ACEOF
29719 cat >>$CONFIG_STATUS <<\_ACEOF
29720 # If the template does not know about datarootdir, expand it.
29721 # FIXME: This hack should be removed a few years after 2.60.
29722 ac_datarootdir_hack=; ac_datarootdir_seen=
29724 case `sed -n '/datarootdir/ {
29725 p
29726 q
29727 }
29728 /@datadir@/p
29729 /@docdir@/p
29730 /@infodir@/p
29731 /@localedir@/p
29732 /@mandir@/p
29733 ' $ac_file_inputs` in
29734 *datarootdir*) ac_datarootdir_seen=yes;;
29735 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29736 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29737 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29738 _ACEOF
29739 cat >>$CONFIG_STATUS <<_ACEOF
29740 ac_datarootdir_hack='
29741 s&@datadir@&$datadir&g
29742 s&@docdir@&$docdir&g
29743 s&@infodir@&$infodir&g
29744 s&@localedir@&$localedir&g
29745 s&@mandir@&$mandir&g
29746 s&\\\${datarootdir}&$datarootdir&g' ;;
29747 esac
29748 _ACEOF
29750 # Neutralize VPATH when `$srcdir' = `.'.
29751 # Shell code in configure.ac might set extrasub.
29752 # FIXME: do we really want to maintain this feature?
29753 cat >>$CONFIG_STATUS <<_ACEOF
29754 sed "$ac_vpsub
29755 $extrasub
29756 _ACEOF
29757 cat >>$CONFIG_STATUS <<\_ACEOF
29758 :t
29759 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29760 s&@configure_input@&$configure_input&;t t
29761 s&@top_builddir@&$ac_top_builddir_sub&;t t
29762 s&@srcdir@&$ac_srcdir&;t t
29763 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29764 s&@top_srcdir@&$ac_top_srcdir&;t t
29765 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29766 s&@builddir@&$ac_builddir&;t t
29767 s&@abs_builddir@&$ac_abs_builddir&;t t
29768 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29769 s&@INSTALL@&$ac_INSTALL&;t t
29770 $ac_datarootdir_hack
29771 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29773 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29774 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29775 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29776 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29777 which seems to be undefined. Please make sure it is defined." >&5
29778 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29779 which seems to be undefined. Please make sure it is defined." >&2;}
29781 rm -f "$tmp/stdin"
29782 case $ac_file in
29783 -) cat "$tmp/out"; rm -f "$tmp/out";;
29784 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29785 esac
29786 ;;
29787 :H)
29788 #
29789 # CONFIG_HEADER
29790 #
29791 _ACEOF
29793 # Transform confdefs.h into a sed script `conftest.defines', that
29794 # substitutes the proper values into config.h.in to produce config.h.
29795 rm -f conftest.defines conftest.tail
29796 # First, append a space to every undef/define line, to ease matching.
29797 echo 's/$/ /' >conftest.defines
29798 # Then, protect against being on the right side of a sed subst, or in
29799 # an unquoted here document, in config.status. If some macros were
29800 # called several times there might be several #defines for the same
29801 # symbol, which is useless. But do not sort them, since the last
29802 # AC_DEFINE must be honored.
29803 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29804 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29805 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29806 # PARAMS is the parameter list in the macro definition--in most cases, it's
29807 # just an empty string.
29808 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29809 ac_dB='\\)[ (].*,\\1define\\2'
29810 ac_dC=' '
29811 ac_dD=' ,'
29813 uniq confdefs.h |
29814 sed -n '
29815 t rset
29816 :rset
29817 s/^[ ]*#[ ]*define[ ][ ]*//
29818 t ok
29819 d
29820 :ok
29821 s/[\\&,]/\\&/g
29822 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29823 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29824 ' >>conftest.defines
29826 # Remove the space that was appended to ease matching.
29827 # Then replace #undef with comments. This is necessary, for
29828 # example, in the case of _POSIX_SOURCE, which is predefined and required
29829 # on some systems where configure will not decide to define it.
29830 # (The regexp can be short, since the line contains either #define or #undef.)
29831 echo 's/ $//
29832 s,^[ #]*u.*,/* & */,' >>conftest.defines
29834 # Break up conftest.defines:
29835 ac_max_sed_lines=50
29837 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29838 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29839 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29840 # et cetera.
29841 ac_in='$ac_file_inputs'
29842 ac_out='"$tmp/out1"'
29843 ac_nxt='"$tmp/out2"'
29845 while :
29846 do
29847 # Write a here document:
29848 cat >>$CONFIG_STATUS <<_ACEOF
29849 # First, check the format of the line:
29850 cat >"\$tmp/defines.sed" <<\\CEOF
29851 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
29852 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
29853 b
29854 :def
29855 _ACEOF
29856 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29857 echo 'CEOF
29858 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29859 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29860 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29861 grep . conftest.tail >/dev/null || break
29862 rm -f conftest.defines
29863 mv conftest.tail conftest.defines
29864 done
29865 rm -f conftest.defines conftest.tail
29867 echo "ac_result=$ac_in" >>$CONFIG_STATUS
29868 cat >>$CONFIG_STATUS <<\_ACEOF
29869 if test x"$ac_file" != x-; then
29870 echo "/* $configure_input */" >"$tmp/config.h"
29871 cat "$ac_result" >>"$tmp/config.h"
29872 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29873 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29874 echo "$as_me: $ac_file is unchanged" >&6;}
29875 else
29876 rm -f $ac_file
29877 mv "$tmp/config.h" $ac_file
29878 fi
29879 else
29880 echo "/* $configure_input */"
29881 cat "$ac_result"
29882 fi
29883 rm -f "$tmp/out12"
29884 # Compute $ac_file's index in $config_headers.
29885 _am_stamp_count=1
29886 for _am_header in $config_headers :; do
29887 case $_am_header in
29888 $ac_file | $ac_file:* )
29889 break ;;
29890 * )
29891 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29892 esac
29893 done
29894 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
29895 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29896 X$ac_file : 'X\(//\)[^/]' \| \
29897 X$ac_file : 'X\(//\)$' \| \
29898 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
29899 echo X$ac_file |
29900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29901 s//\1/
29902 q
29903 }
29904 /^X\(\/\/\)[^/].*/{
29905 s//\1/
29906 q
29907 }
29908 /^X\(\/\/\)$/{
29909 s//\1/
29910 q
29911 }
29912 /^X\(\/\).*/{
29913 s//\1/
29914 q
29915 }
29916 s/.*/./; q'`/stamp-h$_am_stamp_count
29917 ;;
29919 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
29920 echo "$as_me: executing $ac_file commands" >&6;}
29921 ;;
29922 esac
29925 case $ac_file$ac_mode in
29926 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29927 # Strip MF so we end up with the name of the file.
29928 mf=`echo "$mf" | sed -e 's/:.*$//'`
29929 # Check whether this is an Automake generated Makefile or not.
29930 # We used to match only the files named `Makefile.in', but
29931 # some people rename them; so instead we look at the file content.
29932 # Grep'ing the first line is not enough: some people post-process
29933 # each Makefile.in and add a new line on top of each file to say so.
29934 # So let's grep whole file.
29935 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29936 dirpart=`$as_dirname -- "$mf" ||
29937 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29938 X"$mf" : 'X\(//\)[^/]' \| \
29939 X"$mf" : 'X\(//\)$' \| \
29940 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29941 echo X"$mf" |
29942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29943 s//\1/
29944 q
29945 }
29946 /^X\(\/\/\)[^/].*/{
29947 s//\1/
29948 q
29949 }
29950 /^X\(\/\/\)$/{
29951 s//\1/
29952 q
29953 }
29954 /^X\(\/\).*/{
29955 s//\1/
29956 q
29957 }
29958 s/.*/./; q'`
29959 else
29960 continue
29961 fi
29962 # Extract the definition of DEPDIR, am__include, and am__quote
29963 # from the Makefile without running `make'.
29964 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29965 test -z "$DEPDIR" && continue
29966 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29967 test -z "am__include" && continue
29968 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29969 # When using ansi2knr, U may be empty or an underscore; expand it
29970 U=`sed -n 's/^U = //p' < "$mf"`
29971 # Find all dependency output files, they are included files with
29972 # $(DEPDIR) in their names. We invoke sed twice because it is the
29973 # simplest approach to changing $(DEPDIR) to its actual value in the
29974 # expansion.
29975 for file in `sed -n "
29976 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29977 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29978 # Make sure the directory exists.
29979 test -f "$dirpart/$file" && continue
29980 fdir=`$as_dirname -- "$file" ||
29981 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29982 X"$file" : 'X\(//\)[^/]' \| \
29983 X"$file" : 'X\(//\)$' \| \
29984 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29985 echo X"$file" |
29986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29987 s//\1/
29988 q
29989 }
29990 /^X\(\/\/\)[^/].*/{
29991 s//\1/
29992 q
29993 }
29994 /^X\(\/\/\)$/{
29995 s//\1/
29996 q
29997 }
29998 /^X\(\/\).*/{
29999 s//\1/
30000 q
30001 }
30002 s/.*/./; q'`
30003 { as_dir=$dirpart/$fdir
30004 case $as_dir in #(
30005 -*) as_dir=./$as_dir;;
30006 esac
30007 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30008 as_dirs=
30009 while :; do
30010 case $as_dir in #(
30011 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30012 *) as_qdir=$as_dir;;
30013 esac
30014 as_dirs="'$as_qdir' $as_dirs"
30015 as_dir=`$as_dirname -- "$as_dir" ||
30016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30017 X"$as_dir" : 'X\(//\)[^/]' \| \
30018 X"$as_dir" : 'X\(//\)$' \| \
30019 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30020 echo X"$as_dir" |
30021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30022 s//\1/
30023 q
30024 }
30025 /^X\(\/\/\)[^/].*/{
30026 s//\1/
30027 q
30028 }
30029 /^X\(\/\/\)$/{
30030 s//\1/
30031 q
30032 }
30033 /^X\(\/\).*/{
30034 s//\1/
30035 q
30036 }
30037 s/.*/./; q'`
30038 test -d "$as_dir" && break
30039 done
30040 test -z "$as_dirs" || eval "mkdir $as_dirs"
30041 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30042 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30043 { (exit 1); exit 1; }; }; }
30044 # echo "creating $dirpart/$file"
30045 echo '# dummy' > "$dirpart/$file"
30046 done
30047 done
30048 ;;
30049 "default":C) chmod +x examples/*.pl ;;
30051 esac
30052 done # for ac_tag
30055 { (exit 0); exit 0; }
30056 _ACEOF
30057 chmod +x $CONFIG_STATUS
30058 ac_clean_files=$ac_clean_files_save
30061 # configure is writing to config.log, and then calls config.status.
30062 # config.status does its own redirection, appending to config.log.
30063 # Unfortunately, on DOS this fails, as config.log is still kept open
30064 # by configure, so config.status won't be able to write to it; its
30065 # output is simply discarded. So we exec the FD to /dev/null,
30066 # effectively closing config.log, so it can be properly (re)opened and
30067 # appended to by config.status. When coming back to configure, we
30068 # need to make the FD available again.
30069 if test "$no_create" != yes; then
30070 ac_cs_success=:
30071 ac_config_status_args=
30072 test "$silent" = yes &&
30073 ac_config_status_args="$ac_config_status_args --quiet"
30074 exec 5>/dev/null
30075 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30076 exec 5>>config.log
30077 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30078 # would make configure fail if this is the last instruction.
30079 $ac_cs_success || { (exit 1); exit 1; }
30080 fi
30083 { echo "$as_me:$LINENO: checking in" >&5
30084 echo $ECHO_N "checking in... $ECHO_C" >&6; }
30085 { echo "$as_me:$LINENO: result: and out again" >&5
30086 echo "${ECHO_T}and out again" >&6; }
30088 echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
30089 sleep 1
30090 echo $ECHO_N ".$ECHO_C" 1>&6
30091 sleep 1
30092 echo $ECHO_N ".$ECHO_C" 1>&6
30093 sleep 1
30094 echo $ECHO_N ".$ECHO_C" 1>&6
30095 sleep 1
30096 echo $ECHO_N ".$ECHO_C" 1>&6
30097 sleep 1
30098 { echo "$as_me:$LINENO: result: just kidding ;-)" >&5
30099 echo "${ECHO_T} just kidding ;-)" >&6; }
30100 echo
30101 echo "----------------------------------------------------------------"
30102 echo "Config is DONE!"
30103 echo
30104 echo " With MMAP IO: $ac_cv_func_mmap_fixed_mapped"
30105 echo " Perl Modules: $COMP_PERL"
30106 echo " Perl Binary: $PERL"
30107 echo " Perl Version: $PERL_VERSION"
30108 echo " Perl Options: $PERL_MAKE_OPTIONS"
30109 echo " Ruby Modules: $COMP_RUBY"
30110 echo " Ruby Binary: $RUBY"
30111 echo " Ruby Options: $RUBY_MAKE_OPTIONS"
30112 echo " Build Tcl Bindings: $enable_tcl"
30113 echo " Build Python Bindings: $enable_python"
30114 echo " Build rrdcgi: $enable_rrdcgi"
30115 echo " Build librrd MT: $enable_pthread"
30116 echo
30117 echo
30118 echo "Type 'make' to compile the software and use 'make install' to "
30119 echo "install everything to: $prefix."
30120 echo
30121 echo " ... that wishlist is NO JOKE. If you find RRDtool useful"
30122 echo "make me happy. Go to http://tobi.oetiker.ch/wish and"
30123 echo "place an order."
30124 echo
30125 echo " -- Tobi Oetiker <tobi@oetiker.ch>"
30126 echo "----------------------------------------------------------------"